@everymatrix/player-account-controller 1.74.2 → 1.74.4

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.
Files changed (36) hide show
  1. package/components/{PlayerAccountController-CuSu4yPu.js → PlayerAccountController-B47r10OB.js} +323 -293
  2. package/components/PlayerAccountController-DGK3dgIb.cjs +1 -0
  3. package/components/{PlayerAccountController-DQlrRIb4.js → PlayerAccountController-OkqLzDKb.js} +324 -294
  4. package/components/{PlayerAccountProductRestriction-CrX42K5t.js → PlayerAccountProductRestriction-BrbHcAfU.js} +1805 -1743
  5. package/components/{PlayerAccountProductRestriction-BooFlgXw.js → PlayerAccountProductRestriction-CLG0mXNs.js} +1844 -1782
  6. package/components/{PlayerAccountProductRestriction-AAK9uBJW.cjs → PlayerAccountProductRestriction-nQ_8_MV1.cjs} +251 -251
  7. package/components/{PlayerAccountSelfExclusion-DQ-4bxAj.cjs → PlayerAccountSelfExclusion---HyNqaB.cjs} +32 -32
  8. package/components/{PlayerAccountSelfExclusion-DhZreZr1.js → PlayerAccountSelfExclusion-CxHNtxAD.js} +532 -511
  9. package/components/{PlayerAccountSelfExclusion-BtNYjY8J.js → PlayerAccountSelfExclusion-DLQ-HVLx.js} +466 -445
  10. package/components/{PlayerAccountTimeout-CHpJvfPI.cjs → PlayerAccountTimeout-B98Pp_88.cjs} +1 -1
  11. package/components/{PlayerAccountTimeout-Dozc16V1.js → PlayerAccountTimeout-BiuDm_C7.js} +2 -2
  12. package/components/{PlayerAccountTimeout-DzDkP5j2.js → PlayerAccountTimeout-BwriD4ZF.js} +2 -2
  13. package/components/PlayerAccountTransactionsHistory-CKkc0h_L.js +1950 -0
  14. package/components/PlayerAccountTransactionsHistory-D1eLaVcc.cjs +4 -0
  15. package/components/PlayerAccountTransactionsHistory-DJuFj0z7.js +1919 -0
  16. package/components/{PlayerBonusHistory-DlQnpPjy.js → PlayerBonusHistory-BtsC9ZN8.js} +1 -1
  17. package/components/{PlayerBonusHistory-qXyytjxK.js → PlayerBonusHistory-DdcyUG-1.js} +1 -1
  18. package/components/{PlayerBonusHistory-BFQwHuVP.cjs → PlayerBonusHistory-l9JKc1SI.cjs} +1 -1
  19. package/components/{PlayerGamingHistory-DVC3hSBK.js → PlayerGamingHistory-CgSvSixH.js} +1 -1
  20. package/components/{PlayerGamingHistory-Db8SvXdu.cjs → PlayerGamingHistory-DrygiT7t.cjs} +1 -1
  21. package/components/{PlayerGamingHistory-A-34JfM3.js → PlayerGamingHistory-GxtuAObW.js} +1 -1
  22. package/es2015/player-account-controller.cjs +1 -1
  23. package/es2015/player-account-controller.js +1 -1
  24. package/esnext/player-account-controller.js +1 -1
  25. package/package.json +1 -1
  26. package/stencil/{index-9c0f6c58-Bv8IBM1p.js → index-9c0f6c58-8sXzcKbt.js} +1 -1
  27. package/stencil/{index-9c0f6c58-zsW8QQHO.cjs → index-9c0f6c58-CbFwvYJ1.cjs} +1 -1
  28. package/stencil/{index-9c0f6c58-DLLdeaWe.js → index-9c0f6c58-DH5Ki39B.js} +1 -1
  29. package/stencil/{player-kyc-verification-DJDR-AK_.js → player-kyc-verification-BJuBsd7A.js} +71 -71
  30. package/stencil/player-kyc-verification-DW2tWbg_.cjs +181 -0
  31. package/stencil/{player-kyc-verification-CEsLhoEl.js → player-kyc-verification-u-XUlDen.js} +11 -11
  32. package/components/PlayerAccountController-zcUcE3eO.cjs +0 -1
  33. package/components/PlayerAccountTransactionsHistory-1XrpbIoG.js +0 -1890
  34. package/components/PlayerAccountTransactionsHistory-CVcAHeMT.cjs +0 -4
  35. package/components/PlayerAccountTransactionsHistory-PgkRt7_X.js +0 -1859
  36. package/stencil/player-kyc-verification--Oo2H-oo.cjs +0 -181
@@ -1,4 +1,4 @@
1
- "use strict";var na=Object.defineProperty,aa=Object.defineProperties;var la=Object.getOwnPropertyDescriptors;var sr=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable;var nr=(o,e,t)=>e in o?na(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ar=(o,e)=>{for(var t in e||(e={}))da.call(e,t)&&nr(o,t,e[t]);if(sr)for(var t of sr(e))ca.call(e,t)&&nr(o,t,e[t]);return o},lr=(o,e)=>aa(o,la(e));var dr=(o,e,t)=>new Promise((i,r)=>{var s=d=>{try{a(t.next(d))}catch(c){r(c)}},n=d=>{try{a(t.throw(d))}catch(c){r(c)}},a=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,n);a((t=t.apply(o,e)).next())});const l=require("./GeneralLogout-TofSUXEw.cjs");require("../stencil/ui-skeleton-Bez-iF-R.cjs");require("./PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs");if(typeof window!="undefined"){let o=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs")).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}var vs={exports:{}};(function(o,e){(function(t,i){o.exports=i()})(l.commonjsGlobal,function(){var t=1e3,i=6e4,r=36e5,s="millisecond",n="second",a="minute",d="hour",c="day",h="week",u="month",_="quarter",p="year",w="date",I="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var g=["th","st","nd","rd"],f=P%100;return"["+P+(g[(f-20)%10]||g[f]||g[0])+"]"}},L=function(P,g,f){var b=String(P);return!b||b.length>=g?P:""+Array(g+1-b.length).join(f)+P},G={s:L,z:function(P){var g=-P.utcOffset(),f=Math.abs(g),b=Math.floor(f/60),v=f%60;return(g<=0?"+":"-")+L(b,2,"0")+":"+L(v,2,"0")},m:function P(g,f){if(g.date()<f.date())return-P(f,g);var b=12*(f.year()-g.year())+(f.month()-g.month()),v=g.clone().add(b,u),k=f-v<0,E=g.clone().add(b+(k?-1:1),u);return+(-(b+(f-v)/(k?v-E:E-v))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:u,y:p,w:h,d:c,D:w,h:d,m:a,s:n,ms:s,Q:_}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},q="en",A={};A[q]=N;var ye="$isDayjsObject",J=function(P){return P instanceof ee||!(!P||!P[ye])},_e=function P(g,f,b){var v;if(!g)return q;if(typeof g=="string"){var k=g.toLowerCase();A[k]&&(v=k),f&&(A[k]=f,v=k);var E=g.split("-");if(!v&&E.length>1)return P(E[0])}else{var O=g.name;A[O]=g,v=O}return!b&&v&&(q=v),v||!b&&q},K=function(P,g){if(J(P))return P.clone();var f=typeof g=="object"?g:{};return f.date=P,f.args=arguments,new ee(f)},D=G;D.l=_e,D.i=J,D.w=function(P,g){return K(P,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ee=function(){function P(f){this.$L=_e(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[ye]=!0}var g=P.prototype;return g.parse=function(f){this.$d=function(b){var v=b.date,k=b.utc;if(v===null)return new Date(NaN);if(D.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(T);if(E){var O=E[2]-1||0,B=(E[7]||"0").substring(0,3);return k?new Date(Date.UTC(E[1],O,E[3]||1,E[4]||0,E[5]||0,E[6]||0,B)):new Date(E[1],O,E[3]||1,E[4]||0,E[5]||0,E[6]||0,B)}}return new Date(v)}(f),this.init()},g.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},g.$utils=function(){return D},g.isValid=function(){return this.$d.toString()!==I},g.isSame=function(f,b){var v=K(f);return this.startOf(b)<=v&&v<=this.endOf(b)},g.isAfter=function(f,b){return K(f)<this.startOf(b)},g.isBefore=function(f,b){return this.endOf(b)<K(f)},g.$g=function(f,b,v){return D.u(f)?this[b]:this.set(v,f)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(f,b){var v=this,k=!!D.u(b)||b,E=D.p(f),O=function(te,X){var le=D.w(v.$u?Date.UTC(v.$y,X,te):new Date(v.$y,X,te),v);return k?le:le.endOf(c)},B=function(te,X){return D.w(v.toDate()[te].apply(v.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},j=this.$W,U=this.$M,se=this.$D,he="set"+(this.$u?"UTC":"");switch(E){case p:return k?O(1,0):O(31,11);case u:return k?O(1,U):O(0,U+1);case h:var pe=this.$locale().weekStart||0,fe=(j<pe?j+7:j)-pe;return O(k?se-fe:se+(6-fe),U);case c:case w:return B(he+"Hours",0);case d:return B(he+"Minutes",1);case a:return B(he+"Seconds",2);case n:return B(he+"Milliseconds",3);default:return this.clone()}},g.endOf=function(f){return this.startOf(f,!1)},g.$set=function(f,b){var v,k=D.p(f),E="set"+(this.$u?"UTC":""),O=(v={},v[c]=E+"Date",v[w]=E+"Date",v[u]=E+"Month",v[p]=E+"FullYear",v[d]=E+"Hours",v[a]=E+"Minutes",v[n]=E+"Seconds",v[s]=E+"Milliseconds",v)[k],B=k===c?this.$D+(b-this.$W):b;if(k===u||k===p){var j=this.clone().set(w,1);j.$d[O](B),j.init(),this.$d=j.set(w,Math.min(this.$D,j.daysInMonth())).$d}else O&&this.$d[O](B);return this.init(),this},g.set=function(f,b){return this.clone().$set(f,b)},g.get=function(f){return this[D.p(f)]()},g.add=function(f,b){var v,k=this;f=Number(f);var E=D.p(b),O=function(U){var se=K(k);return D.w(se.date(se.date()+Math.round(U*f)),k)};if(E===u)return this.set(u,this.$M+f);if(E===p)return this.set(p,this.$y+f);if(E===c)return O(1);if(E===h)return O(7);var B=(v={},v[a]=i,v[d]=r,v[n]=t,v)[E]||1,j=this.$d.getTime()+f*B;return D.w(j,this)},g.subtract=function(f,b){return this.add(-1*f,b)},g.format=function(f){var b=this,v=this.$locale();if(!this.isValid())return v.invalidDate||I;var k=f||"YYYY-MM-DDTHH:mm:ssZ",E=D.z(this),O=this.$H,B=this.$m,j=this.$M,U=v.weekdays,se=v.months,he=v.meridiem,pe=function(X,le,xe,we){return X&&(X[le]||X(b,k))||xe[le].slice(0,we)},fe=function(X){return D.s(O%12||12,X,"0")},te=he||function(X,le,xe){var we=X<12?"AM":"PM";return xe?we.toLowerCase():we};return k.replace(M,function(X,le){return le||function(xe){switch(xe){case"YY":return String(b.$y).slice(-2);case"YYYY":return D.s(b.$y,4,"0");case"M":return j+1;case"MM":return D.s(j+1,2,"0");case"MMM":return pe(v.monthsShort,j,se,3);case"MMMM":return pe(se,j);case"D":return b.$D;case"DD":return D.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return pe(v.weekdaysMin,b.$W,U,2);case"ddd":return pe(v.weekdaysShort,b.$W,U,3);case"dddd":return U[b.$W];case"H":return String(O);case"HH":return D.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return te(O,B,!0);case"A":return te(O,B,!1);case"m":return String(B);case"mm":return D.s(B,2,"0");case"s":return String(b.$s);case"ss":return D.s(b.$s,2,"0");case"SSS":return D.s(b.$ms,3,"0");case"Z":return E}return null}(X)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(f,b,v){var k,E=this,O=D.p(b),B=K(f),j=(B.utcOffset()-this.utcOffset())*i,U=this-B,se=function(){return D.m(E,B)};switch(O){case p:k=se()/12;break;case u:k=se();break;case _:k=se()/3;break;case h:k=(U-j)/6048e5;break;case c:k=(U-j)/864e5;break;case d:k=U/r;break;case a:k=U/i;break;case n:k=U/t;break;default:k=U}return v?k:D.a(k)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return A[this.$L]},g.locale=function(f,b){if(!f)return this.$L;var v=this.clone(),k=_e(f,b,!0);return k&&(v.$L=k),v},g.clone=function(){return D.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},P}(),ue=ee.prototype;return K.prototype=ue,[["$ms",s],["$s",n],["$m",a],["$H",d],["$W",c],["$M",u],["$y",p],["$D",w]].forEach(function(P){ue[P[1]]=function(g){return this.$g(g,P[0],P[1])}}),K.extend=function(P,g){return P.$i||(P(g,ee,K),P.$i=!0),K},K.locale=_e,K.isDayjs=J,K.unix=function(P){return K(1e3*P)},K.en=A[q],K.Ls=A,K.p={},K})})(vs);var ha=vs.exports;const Ye=l.getDefaultExportFromCjs(ha);var ua=Object.defineProperty,pa=Object.defineProperties,ma=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertySymbols,_a=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,Gi=(o,e,t)=>e in o?ua(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ri=(o,e)=>{for(var t in e||(e={}))_a.call(e,t)&&Gi(o,t,e[t]);if(cr)for(var t of cr(e))fa.call(e,t)&&Gi(o,t,e[t]);return o},gs=(o,e)=>pa(o,ma(e)),ce=(o,e,t)=>(Gi(o,typeof e!="symbol"?e+"":e,t),t),si=(o,e,t)=>new Promise((i,r)=>{var s=d=>{try{a(t.next(d))}catch(c){r(c)}},n=d=>{try{a(t.throw(d))}catch(c){r(c)}},a=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,n);a((t=t.apply(o,e)).next())});/**
1
+ "use strict";var na=Object.defineProperty,aa=Object.defineProperties;var la=Object.getOwnPropertyDescriptors;var Jo=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable;var Xo=(o,e,t)=>e in o?na(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Zo=(o,e)=>{for(var t in e||(e={}))da.call(e,t)&&Xo(o,t,e[t]);if(Jo)for(var t of Jo(e))ca.call(e,t)&&Xo(o,t,e[t]);return o},Qo=(o,e)=>aa(o,la(e));var er=(o,e,t)=>new Promise((i,r)=>{var s=l=>{try{a(t.next(l))}catch(c){r(c)}},n=l=>{try{a(t.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(o,e)).next())});const d=require("./GeneralLogout-TofSUXEw.cjs");require("../stencil/ui-skeleton-Bez-iF-R.cjs");require("./PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs");if(typeof window!="undefined"){let o=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs")).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}var ls={exports:{}};(function(o,e){(function(t,i){o.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,r=36e5,s="millisecond",n="second",a="minute",l="hour",c="day",h="week",u="month",_="quarter",p="year",y="date",C="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var g=["th","st","nd","rd"],f=P%100;return"["+P+(g[(f-20)%10]||g[f]||g[0])+"]"}},N=function(P,g,f){var b=String(P);return!b||b.length>=g?P:""+Array(g+1-b.length).join(f)+P},Q={s:N,z:function(P){var g=-P.utcOffset(),f=Math.abs(g),b=Math.floor(f/60),v=f%60;return(g<=0?"+":"-")+N(b,2,"0")+":"+N(v,2,"0")},m:function P(g,f){if(g.date()<f.date())return-P(f,g);var b=12*(f.year()-g.year())+(f.month()-g.month()),v=g.clone().add(b,u),S=f-v<0,A=g.clone().add(b+(S?-1:1),u);return+(-(b+(f-v)/(S?v-A:A-v))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:u,y:p,w:h,d:c,D:y,h:l,m:a,s:n,ms:s,Q:_}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},F="en",I={};I[F]=M;var he="$isDayjsObject",te=function(P){return P instanceof de||!(!P||!P[he])},le=function P(g,f,b){var v;if(!g)return F;if(typeof g=="string"){var S=g.toLowerCase();I[S]&&(v=S),f&&(I[S]=f,v=S);var A=g.split("-");if(!v&&A.length>1)return P(A[0])}else{var z=g.name;I[z]=g,v=z}return!b&&v&&(F=v),v||!b&&F},G=function(P,g){if(te(P))return P.clone();var f=typeof g=="object"?g:{};return f.date=P,f.args=arguments,new de(f)},D=Q;D.l=le,D.i=te,D.w=function(P,g){return G(P,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var de=function(){function P(f){this.$L=le(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[he]=!0}var g=P.prototype;return g.parse=function(f){this.$d=function(b){var v=b.date,S=b.utc;if(v===null)return new Date(NaN);if(D.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var A=v.match(E);if(A){var z=A[2]-1||0,$=(A[7]||"0").substring(0,3);return S?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)}}return new Date(v)}(f),this.init()},g.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},g.$utils=function(){return D},g.isValid=function(){return this.$d.toString()!==C},g.isSame=function(f,b){var v=G(f);return this.startOf(b)<=v&&v<=this.endOf(b)},g.isAfter=function(f,b){return G(f)<this.startOf(b)},g.isBefore=function(f,b){return this.endOf(b)<G(f)},g.$g=function(f,b,v){return D.u(f)?this[b]:this.set(v,f)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(f,b){var v=this,S=!!D.u(b)||b,A=D.p(f),z=function(K,H){var pe=D.w(v.$u?Date.UTC(v.$y,H,K):new Date(v.$y,H,K),v);return S?pe:pe.endOf(c)},$=function(K,H){return D.w(v.toDate()[K].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(H)),v)},q=this.$W,J=this.$M,ie=this.$D,be="set"+(this.$u?"UTC":"");switch(A){case p:return S?z(1,0):z(31,11);case u:return S?z(1,J):z(0,J+1);case h:var ee=this.$locale().weekStart||0,ue=(q<ee?q+7:q)-ee;return z(S?ie-ue:ie+(6-ue),J);case c:case y:return $(be+"Hours",0);case l:return $(be+"Minutes",1);case a:return $(be+"Seconds",2);case n:return $(be+"Milliseconds",3);default:return this.clone()}},g.endOf=function(f){return this.startOf(f,!1)},g.$set=function(f,b){var v,S=D.p(f),A="set"+(this.$u?"UTC":""),z=(v={},v[c]=A+"Date",v[y]=A+"Date",v[u]=A+"Month",v[p]=A+"FullYear",v[l]=A+"Hours",v[a]=A+"Minutes",v[n]=A+"Seconds",v[s]=A+"Milliseconds",v)[S],$=S===c?this.$D+(b-this.$W):b;if(S===u||S===p){var q=this.clone().set(y,1);q.$d[z]($),q.init(),this.$d=q.set(y,Math.min(this.$D,q.daysInMonth())).$d}else z&&this.$d[z]($);return this.init(),this},g.set=function(f,b){return this.clone().$set(f,b)},g.get=function(f){return this[D.p(f)]()},g.add=function(f,b){var v,S=this;f=Number(f);var A=D.p(b),z=function(J){var ie=G(S);return D.w(ie.date(ie.date()+Math.round(J*f)),S)};if(A===u)return this.set(u,this.$M+f);if(A===p)return this.set(p,this.$y+f);if(A===c)return z(1);if(A===h)return z(7);var $=(v={},v[a]=i,v[l]=r,v[n]=t,v)[A]||1,q=this.$d.getTime()+f*$;return D.w(q,this)},g.subtract=function(f,b){return this.add(-1*f,b)},g.format=function(f){var b=this,v=this.$locale();if(!this.isValid())return v.invalidDate||C;var S=f||"YYYY-MM-DDTHH:mm:ssZ",A=D.z(this),z=this.$H,$=this.$m,q=this.$M,J=v.weekdays,ie=v.months,be=v.meridiem,ee=function(H,pe,ye,oe){return H&&(H[pe]||H(b,S))||ye[pe].slice(0,oe)},ue=function(H){return D.s(z%12||12,H,"0")},K=be||function(H,pe,ye){var oe=H<12?"AM":"PM";return ye?oe.toLowerCase():oe};return S.replace(L,function(H,pe){return pe||function(ye){switch(ye){case"YY":return String(b.$y).slice(-2);case"YYYY":return D.s(b.$y,4,"0");case"M":return q+1;case"MM":return D.s(q+1,2,"0");case"MMM":return ee(v.monthsShort,q,ie,3);case"MMMM":return ee(ie,q);case"D":return b.$D;case"DD":return D.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ee(v.weekdaysMin,b.$W,J,2);case"ddd":return ee(v.weekdaysShort,b.$W,J,3);case"dddd":return J[b.$W];case"H":return String(z);case"HH":return D.s(z,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return K(z,$,!0);case"A":return K(z,$,!1);case"m":return String($);case"mm":return D.s($,2,"0");case"s":return String(b.$s);case"ss":return D.s(b.$s,2,"0");case"SSS":return D.s(b.$ms,3,"0");case"Z":return A}return null}(H)||A.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(f,b,v){var S,A=this,z=D.p(b),$=G(f),q=($.utcOffset()-this.utcOffset())*i,J=this-$,ie=function(){return D.m(A,$)};switch(z){case p:S=ie()/12;break;case u:S=ie();break;case _:S=ie()/3;break;case h:S=(J-q)/6048e5;break;case c:S=(J-q)/864e5;break;case l:S=J/r;break;case a:S=J/i;break;case n:S=J/t;break;default:S=J}return v?S:D.a(S)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return I[this.$L]},g.locale=function(f,b){if(!f)return this.$L;var v=this.clone(),S=le(f,b,!0);return S&&(v.$L=S),v},g.clone=function(){return D.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},P}(),_e=de.prototype;return G.prototype=_e,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",c],["$M",u],["$y",p],["$D",y]].forEach(function(P){_e[P[1]]=function(g){return this.$g(g,P[0],P[1])}}),G.extend=function(P,g){return P.$i||(P(g,de,G),P.$i=!0),G},G.locale=le,G.isDayjs=te,G.unix=function(P){return G(1e3*P)},G.en=I[F],G.Ls=I,G.p={},G})})(ls);var ha=ls.exports;const We=d.getDefaultExportFromCjs(ha);var ua=Object.defineProperty,pa=Object.defineProperties,ma=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,_a=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,Vi=(o,e,t)=>e in o?ua(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Yt=(o,e)=>{for(var t in e||(e={}))_a.call(e,t)&&Vi(o,t,e[t]);if(tr)for(var t of tr(e))fa.call(e,t)&&Vi(o,t,e[t]);return o},ds=(o,e)=>pa(o,ma(e)),ce=(o,e,t)=>(Vi(o,typeof e!="symbol"?e+"":e,t),t),Kt=(o,e,t)=>new Promise((i,r)=>{var s=l=>{try{a(t.next(l))}catch(c){r(c)}},n=l=>{try{a(t.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(o,e)).next())});/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10,39 +10,39 @@
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const ei=globalThis,xo=ei.ShadowRoot&&(ei.ShadyCSS===void 0||ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wo=Symbol(),hr=new WeakMap;let Co=class{constructor(o,e,t){if(this._$cssResult$=!0,t!==wo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(xo&&o===void 0){const t=e!==void 0&&e.length===1;t&&(o=hr.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&hr.set(e,o))}return o}toString(){return this.cssText}};const ga=o=>new Co(typeof o=="string"?o:o+"",void 0,wo),y=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[s+1],o[0]);return new Co(t,o,wo)},bs=(o,e)=>{if(xo)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),r=ei.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)}},ur=xo?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ga(t)})(o):o;/**
13
+ */const Wt=globalThis,co=Wt.ShadowRoot&&(Wt.ShadyCSS===void 0||Wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ho=Symbol(),ir=new WeakMap;let uo=class{constructor(o,e,t){if(this._$cssResult$=!0,t!==ho)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(co&&o===void 0){const t=e!==void 0&&e.length===1;t&&(o=ir.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&ir.set(e,o))}return o}toString(){return this.cssText}};const ga=o=>new uo(typeof o=="string"?o:o+"",void 0,ho),w=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[s+1],o[0]);return new uo(t,o,ho)},cs=(o,e)=>{if(co)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),r=Wt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)}},or=co?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ga(t)})(o):o;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:ba,defineProperty:ya,getOwnPropertyDescriptor:xa,getOwnPropertyNames:wa,getOwnPropertySymbols:Ca,getPrototypeOf:Pa}=Object,ut=globalThis,pr=ut.trustedTypes,ka=pr?pr.emptyScript:"",mr=ut.reactiveElementPolyfillSupport,St=(o,e)=>o,Ji={toAttribute(o,e){switch(e){case Boolean:o=o?ka:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(i){t=null}}return t}},ys=(o,e)=>!ba(o,e),_r={attribute:!0,type:String,converter:Ji,reflect:!1,hasChanged:ys};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),ut.litPropertyMetadata!=null||(ut.litPropertyMetadata=new WeakMap);class at extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_r){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&ya(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){var r;const{get:s,set:n}=(r=xa(this.prototype,e))!=null?r:{get(){return this[t]},set(a){this[t]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const d=s==null?void 0:s.call(this);n.call(this,a),this.requestUpdate(e,d,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:_r}static _$Ei(){if(this.hasOwnProperty(St("elementProperties")))return;const e=Pa(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(St("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(St("properties"))){const t=this.properties,i=[...wa(t),...Ca(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(ur(r))}else e!==void 0&&t.push(ur(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return bs(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var i;const r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){const n=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:Ji).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var i;const r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:Ji;this._$Em=s,this[s]=a.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((r=i.hasChanged)!=null?r:ys)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){var r;this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}_$ET(){return si(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(i)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var fr;at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[St("elementProperties")]=new Map,at[St("finalized")]=new Map,mr==null||mr({ReactiveElement:at}),((fr=ut.reactiveElementVersions)!=null?fr:ut.reactiveElementVersions=[]).push("2.0.4");/**
17
+ */const{is:ba,defineProperty:ya,getOwnPropertyDescriptor:xa,getOwnPropertyNames:wa,getOwnPropertySymbols:Ca,getPrototypeOf:Pa}=Object,rt=globalThis,rr=rt.trustedTypes,ka=rr?rr.emptyScript:"",sr=rt.reactiveElementPolyfillSupport,gt=(o,e)=>o,Fi={toAttribute(o,e){switch(e){case Boolean:o=o?ka:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(i){t=null}}return t}},hs=(o,e)=>!ba(o,e),nr={attribute:!0,type:String,converter:Fi,reflect:!1,hasChanged:hs};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),rt.litPropertyMetadata!=null||(rt.litPropertyMetadata=new WeakMap);class Qe extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=nr){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&ya(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){var r;const{get:s,set:n}=(r=xa(this.prototype,e))!=null?r:{get(){return this[t]},set(a){this[t]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);n.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:nr}static _$Ei(){if(this.hasOwnProperty(gt("elementProperties")))return;const e=Pa(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(gt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gt("properties"))){const t=this.properties,i=[...wa(t),...Ca(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(or(r))}else e!==void 0&&t.push(or(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return cs(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var i;const r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){const n=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:Fi).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var i;const r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:Fi;this._$Em=s,this[s]=a.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((r=i.hasChanged)!=null?r:hs)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){var r;this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}_$ET(){return Kt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(i)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var ar;Qe.elementStyles=[],Qe.shadowRootOptions={mode:"open"},Qe[gt("elementProperties")]=new Map,Qe[gt("finalized")]=new Map,sr==null||sr({ReactiveElement:Qe}),((ar=rt.reactiveElementVersions)!=null?ar:rt.reactiveElementVersions=[]).push("2.0.4");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const ni=globalThis,ai=ni.trustedTypes,vr=ai?ai.createPolicy("lit-html",{createHTML:o=>o}):void 0,xs="$lit$",Ve=`lit$${Math.random().toFixed(9).slice(2)}$`,ws="?"+Ve,Aa=`<${ws}>`,Xe=document,Dt=()=>Xe.createComment(""),Ot=o=>o===null||typeof o!="object"&&typeof o!="function",Po=Array.isArray,Ea=o=>Po(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",zi=`[
22
- \f\r]`,xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gr=/-->/g,br=/>/g,Ue=RegExp(`>|${zi}(?:([^\\s"'>=/]+)(${zi}*=${zi}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),yr=/'/g,xr=/"/g,Cs=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),wr=new WeakMap,Ke=Xe.createTreeWalker(Xe,129);function Ps(o,e){if(!Po(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return vr!==void 0?vr.createHTML(e):e}const Ia=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",n=xt;for(let a=0;a<t;a++){const d=o[a];let c,h,u=-1,_=0;for(;_<d.length&&(n.lastIndex=_,h=n.exec(d),h!==null);)_=n.lastIndex,n===xt?h[1]==="!--"?n=gr:h[1]!==void 0?n=br:h[2]!==void 0?(Cs.test(h[2])&&(r=RegExp("</"+h[2],"g")),n=Ue):h[3]!==void 0&&(n=Ue):n===Ue?h[0]===">"?(n=r!=null?r:xt,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?Ue:h[3]==='"'?xr:yr):n===xr||n===yr?n=Ue:n===gr||n===br?n=xt:(n=Ue,r=void 0);const p=n===Ue&&o[a+1].startsWith("/>")?" ":"";s+=n===xt?d+Aa:u>=0?(i.push(c),d.slice(0,u)+xs+d.slice(u)+Ve+p):d+Ve+(u===-2?a:p)}return[Ps(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Rt{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,n=0;const a=e.length-1,d=this.parts,[c,h]=Ia(e,t);if(this.el=Rt.createElement(c,i),Ke.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=Ke.nextNode())!==null&&d.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(xs)){const _=h[n++],p=r.getAttribute(u).split(Ve),w=/([.?@])?(.*)/.exec(_);d.push({type:1,index:s,name:w[2],strings:p,ctor:w[1]==="."?Ta:w[1]==="?"?Da:w[1]==="@"?Oa:vi}),r.removeAttribute(u)}else u.startsWith(Ve)&&(d.push({type:6,index:s}),r.removeAttribute(u));if(Cs.test(r.tagName)){const u=r.textContent.split(Ve),_=u.length-1;if(_>0){r.textContent=ai?ai.emptyScript:"";for(let p=0;p<_;p++)r.append(u[p],Dt()),Ke.nextNode(),d.push({type:2,index:++s});r.append(u[_],Dt())}}}else if(r.nodeType===8)if(r.data===ws)d.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(Ve,u+1))!==-1;)d.push({type:7,index:s}),u+=Ve.length-1}s++}}static createElement(e,t){const i=Xe.createElement("template");return i.innerHTML=e,i}}function mt(o,e,t=o,i){var r,s,n;if(e===pt)return e;let a=i!==void 0?(r=t._$Co)==null?void 0:r[i]:t._$Cl;const d=Ot(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((s=a==null?void 0:a._$AO)==null||s.call(a,!1),d===void 0?a=void 0:(a=new d(o),a._$AT(o,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=mt(o,a._$AS(o,e.values),a,i)),e}class Sa{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:Xe).importNode(i,!0);Ke.currentNode=s;let n=Ke.nextNode(),a=0,d=0,c=r[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new $t(n,n.nextSibling,this,e):c.type===1?h=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(h=new Ra(n,this,e)),this._$AV.push(h),c=r[++d]}a!==(c==null?void 0:c.index)&&(n=Ke.nextNode(),a++)}return Ke.currentNode=Xe,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class $t{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,r){var s;this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(s=r==null?void 0:r.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=mt(this,e,t),Ot(e)?e===re||e==null||e===""?(this._$AH!==re&&this._$AR(),this._$AH=re):e!==this._$AH&&e!==pt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ea(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==re&&Ot(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Rt.createElement(Ps(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(i);else{const n=new Sa(s,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let t=wr.get(e.strings);return t===void 0&&wr.set(e.strings,t=new Rt(e)),t}k(e){Po(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new $t(this.O(Dt()),this.O(Dt()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class vi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=re,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=re}_$AI(e,t=this,i,r){const s=this.strings;let n=!1;if(s===void 0)e=mt(this,e,t,0),n=!Ot(e)||e!==this._$AH&&e!==pt,n&&(this._$AH=e);else{const a=e;let d,c;for(e=s[0],d=0;d<s.length-1;d++)c=mt(this,a[i+d],t,d),c===pt&&(c=this._$AH[d]),n||(n=!Ot(c)||c!==this._$AH[d]),c===re?e=re:e!==re&&(e+=(c!=null?c:"")+s[d+1]),this._$AH[d]=c}n&&!r&&this.j(e)}j(e){e===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ta extends vi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===re?void 0:e}}class Da extends vi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==re)}}class Oa extends vi{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){var i;if((e=(i=mt(this,e,t,0))!=null?i:re)===pt)return;const r=this._$AH,s=e===re&&r!==re||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==re&&(r===re||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Ra{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){mt(this,e)}}const Cr=ni.litHtmlPolyfillSupport;var Pr;Cr==null||Cr(Rt,$t),((Pr=ni.litHtmlVersions)!=null?Pr:ni.litHtmlVersions=[]).push("3.2.1");const ks=(o,e,t)=>{var i,r;const s=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=s._$litPart$;if(n===void 0){const a=(r=t==null?void 0:t.renderBefore)!=null?r:null;s._$litPart$=n=new $t(e.insertBefore(Dt(),a),a,void 0,t!=null?t:{})}return n._$AI(o),n};/**
21
+ */const Gt=globalThis,Jt=Gt.trustedTypes,lr=Jt?Jt.createPolicy("lit-html",{createHTML:o=>o}):void 0,us="$lit$",Me=`lit$${Math.random().toFixed(9).slice(2)}$`,ps="?"+Me,Aa=`<${ps}>`,Ye=document,yt=()=>Ye.createComment(""),xt=o=>o===null||typeof o!="object"&&typeof o!="function",po=Array.isArray,Ea=o=>po(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ci=`[
22
+ \f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dr=/-->/g,cr=/>/g,$e=RegExp(`>|${Ci}(?:([^\\s"'>=/]+)(${Ci}*=${Ci}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),hr=/'/g,ur=/"/g,ms=/^(?:script|style|textarea|title)$/i,st=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),pr=new WeakMap,je=Ye.createTreeWalker(Ye,129);function _s(o,e){if(!po(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return lr!==void 0?lr.createHTML(e):e}const Ia=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",n=ct;for(let a=0;a<t;a++){const l=o[a];let c,h,u=-1,_=0;for(;_<l.length&&(n.lastIndex=_,h=n.exec(l),h!==null);)_=n.lastIndex,n===ct?h[1]==="!--"?n=dr:h[1]!==void 0?n=cr:h[2]!==void 0?(ms.test(h[2])&&(r=RegExp("</"+h[2],"g")),n=$e):h[3]!==void 0&&(n=$e):n===$e?h[0]===">"?(n=r!=null?r:ct,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?$e:h[3]==='"'?ur:hr):n===ur||n===hr?n=$e:n===dr||n===cr?n=ct:(n=$e,r=void 0);const p=n===$e&&o[a+1].startsWith("/>")?" ":"";s+=n===ct?l+Aa:u>=0?(i.push(c),l.slice(0,u)+us+l.slice(u)+Me+p):l+Me+(u===-2?a:p)}return[_s(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class wt{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,n=0;const a=e.length-1,l=this.parts,[c,h]=Ia(e,t);if(this.el=wt.createElement(c,i),je.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=je.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(us)){const _=h[n++],p=r.getAttribute(u).split(Me),y=/([.?@])?(.*)/.exec(_);l.push({type:1,index:s,name:y[2],strings:p,ctor:y[1]==="."?Ta:y[1]==="?"?Da:y[1]==="@"?Ra:ni}),r.removeAttribute(u)}else u.startsWith(Me)&&(l.push({type:6,index:s}),r.removeAttribute(u));if(ms.test(r.tagName)){const u=r.textContent.split(Me),_=u.length-1;if(_>0){r.textContent=Jt?Jt.emptyScript:"";for(let p=0;p<_;p++)r.append(u[p],yt()),je.nextNode(),l.push({type:2,index:++s});r.append(u[_],yt())}}}else if(r.nodeType===8)if(r.data===ps)l.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(Me,u+1))!==-1;)l.push({type:7,index:s}),u+=Me.length-1}s++}}static createElement(e,t){const i=Ye.createElement("template");return i.innerHTML=e,i}}function nt(o,e,t=o,i){var r,s,n;if(e===st)return e;let a=i!==void 0?(r=t._$Co)==null?void 0:r[i]:t._$Cl;const l=xt(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((s=a==null?void 0:a._$AO)==null||s.call(a,!1),l===void 0?a=void 0:(a=new l(o),a._$AT(o,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=nt(o,a._$AS(o,e.values),a,i)),e}class Sa{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:Ye).importNode(i,!0);je.currentNode=s;let n=je.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new Dt(n,n.nextSibling,this,e):c.type===1?h=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(h=new Oa(n,this,e)),this._$AV.push(h),c=r[++l]}a!==(c==null?void 0:c.index)&&(n=je.nextNode(),a++)}return je.currentNode=Ye,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Dt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,r){var s;this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(s=r==null?void 0:r.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=nt(this,e,t),xt(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==st&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ea(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==se&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ye.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=wt.createElement(_s(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(i);else{const n=new Sa(s,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let t=pr.get(e.strings);return t===void 0&&pr.set(e.strings,t=new wt(e)),t}k(e){po(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new Dt(this.O(yt()),this.O(yt()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class ni{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=se}_$AI(e,t=this,i,r){const s=this.strings;let n=!1;if(s===void 0)e=nt(this,e,t,0),n=!xt(e)||e!==this._$AH&&e!==st,n&&(this._$AH=e);else{const a=e;let l,c;for(e=s[0],l=0;l<s.length-1;l++)c=nt(this,a[i+l],t,l),c===st&&(c=this._$AH[l]),n||(n=!xt(c)||c!==this._$AH[l]),c===se?e=se:e!==se&&(e+=(c!=null?c:"")+s[l+1]),this._$AH[l]=c}n&&!r&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ta extends ni{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}}class Da extends ni{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}}class Ra extends ni{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){var i;if((e=(i=nt(this,e,t,0))!=null?i:se)===st)return;const r=this._$AH,s=e===se&&r!==se||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==se&&(r===se||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Oa{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){nt(this,e)}}const mr=Gt.litHtmlPolyfillSupport;var _r;mr==null||mr(wt,Dt),((_r=Gt.litHtmlVersions)!=null?_r:Gt.litHtmlVersions=[]).push("3.2.1");const fs=(o,e,t)=>{var i,r;const s=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=s._$litPart$;if(n===void 0){const a=(r=t==null?void 0:t.renderBefore)!=null?r:null;s._$litPart$=n=new Dt(e.insertBefore(yt(),a),a,void 0,t!=null?t:{})}return n._$AI(o),n};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */class lt extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ks(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return pt}}var kr;lt._$litElement$=!0,lt.finalized=!0,(kr=globalThis.litElementHydrateSupport)==null||kr.call(globalThis,{LitElement:lt});const Ar=globalThis.litElementPolyfillSupport;Ar==null||Ar({LitElement:lt});var Er;((Er=globalThis.litElementVersions)!=null?Er:globalThis.litElementVersions=[]).push("4.1.1");/**
27
+ */class et extends Qe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=fs(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return st}}var fr;et._$litElement$=!0,et.finalized=!0,(fr=globalThis.litElementHydrateSupport)==null||fr.call(globalThis,{LitElement:et});const vr=globalThis.litElementPolyfillSupport;vr==null||vr({LitElement:et});var gr;((gr=globalThis.litElementVersions)!=null?gr:globalThis.litElementVersions=[]).push("4.1.1");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
- */const As=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
31
+ */const vs=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
32
32
  * @license
33
33
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Es=[],Xi=new Set,ko=new Set;function Is(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function za(o){return Is(customElements.get(o))}function Ma(o=[]){return[o].flat(1/0).filter(e=>e instanceof Co?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ss(o,e){return(o||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Ts(o){return o.map(e=>e.cssText).join(`
36
- `)}const li="vaadin-themable-mixin-style";function Na(o,e){const t=document.createElement("style");t.id=li,t.textContent=Ts(o),e.content.appendChild(t)}function La(o){if(!o.shadowRoot)return;const e=o.constructor;if(o instanceof lt)[...o.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),bs(o.shadowRoot,e.elementStyles);else{const t=o.shadowRoot.getElementById(li),i=e.prototype._template;t.textContent=i.content.getElementById(li).textContent}}function Va(o){Xi.forEach(e=>{const t=e.deref();t instanceof o?La(t):t||Xi.delete(e)})}function Ds(o){if(o.prototype instanceof lt)o.elementStyles=o.finalizeStyles(o.styles);else{const e=o.prototype._template;e.content.getElementById(li).textContent=Ts(o.getStylesForThis())}ko.forEach(e=>{const t=customElements.get(e);t!==o&&t.prototype instanceof o&&Ds(t)})}function Fa(o,e){const t=o.__themes;return!t||!e?!1:t.some(i=>i.styles.some(r=>e.some(s=>s.cssText===r.cssText)))}function C(o,e,t={}){e=Ma(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,e,t):Es.push({themeFor:o,styles:e,include:t.include,moduleId:t.moduleId}),o&&ko.forEach(i=>{if(Ss(o,i)&&za(i)){const r=customElements.get(i);Fa(r,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Ds(r),Va(r)}})}function Zi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Es}function Ba(o=""){let e=0;return o.startsWith("lumo-")||o.startsWith("material-")?e=1:o.startsWith("vaadin-")&&(e=2),e}function Os(o){const e=[];return o.include&&[].concat(o.include).forEach(t=>{const i=Zi().find(r=>r.moduleId===t);i?e.push(...Os(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},o.styles),e}function Ha(o){const e=`${o}-default-theme`,t=Zi().filter(i=>i.moduleId!==e&&Ss(i.themeFor,o)).map(i=>gs(ri({},i),{styles:[...Os(i),...i.styles],includePriority:Ba(i.moduleId)})).sort((i,r)=>r.includePriority-i.includePriority);return t.length>0?t:Zi().filter(i=>i.moduleId===e)}const Y=o=>class extends As(o){constructor(){super(),Xi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ko.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Is(this)||Na(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=o.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...Ha(this.is)];const r=this.__themes.flatMap(s=>s.styles);return r.filter((s,n)=>n===r.lastIndexOf(s))}};/**
35
+ */const gs=[],Bi=new Set,mo=new Set;function bs(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function za(o){return bs(customElements.get(o))}function Ma(o=[]){return[o].flat(1/0).filter(e=>e instanceof uo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ys(o,e){return(o||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function xs(o){return o.map(e=>e.cssText).join(`
36
+ `)}const Xt="vaadin-themable-mixin-style";function Na(o,e){const t=document.createElement("style");t.id=Xt,t.textContent=xs(o),e.content.appendChild(t)}function La(o){if(!o.shadowRoot)return;const e=o.constructor;if(o instanceof et)[...o.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),cs(o.shadowRoot,e.elementStyles);else{const t=o.shadowRoot.getElementById(Xt),i=e.prototype._template;t.textContent=i.content.getElementById(Xt).textContent}}function Va(o){Bi.forEach(e=>{const t=e.deref();t instanceof o?La(t):t||Bi.delete(e)})}function ws(o){if(o.prototype instanceof et)o.elementStyles=o.finalizeStyles(o.styles);else{const e=o.prototype._template;e.content.getElementById(Xt).textContent=xs(o.getStylesForThis())}mo.forEach(e=>{const t=customElements.get(e);t!==o&&t.prototype instanceof o&&ws(t)})}function Fa(o,e){const t=o.__themes;return!t||!e?!1:t.some(i=>i.styles.some(r=>e.some(s=>s.cssText===r.cssText)))}function k(o,e,t={}){e=Ma(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,e,t):gs.push({themeFor:o,styles:e,include:t.include,moduleId:t.moduleId}),o&&mo.forEach(i=>{if(ys(o,i)&&za(i)){const r=customElements.get(i);Fa(r,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),ws(r),Va(r)}})}function Hi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():gs}function Ba(o=""){let e=0;return o.startsWith("lumo-")||o.startsWith("material-")?e=1:o.startsWith("vaadin-")&&(e=2),e}function Cs(o){const e=[];return o.include&&[].concat(o.include).forEach(t=>{const i=Hi().find(r=>r.moduleId===t);i?e.push(...Cs(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},o.styles),e}function Ha(o){const e=`${o}-default-theme`,t=Hi().filter(i=>i.moduleId!==e&&ys(i.themeFor,o)).map(i=>ds(Yt({},i),{styles:[...Cs(i),...i.styles],includePriority:Ba(i.moduleId)})).sort((i,r)=>r.includePriority-i.includePriority);return t.length>0?t:Hi().filter(i=>i.moduleId===e)}const Y=o=>class extends vs(o){constructor(){super(),Bi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&mo.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||bs(this)||Na(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=o.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...Ha(this.is)];const r=this.__themes.flatMap(s=>s.styles);return r.filter((s,n)=>n===r.lastIndexOf(s))}};/**
37
37
  * @license
38
38
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
39
39
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
40
  */const $a=(o,...e)=>{const t=document.createElement("style");t.id=o,t.textContent=e.map(i=>i.toString()).join(`
41
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},ft=(o,...e)=>{$a(`lumo-${o}`,e)};/**
41
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},lt=(o,...e)=>{$a(`lumo-${o}`,e)};/**
42
42
  * @license
43
43
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
44
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
45
- */const ja=y`
45
+ */const Wa=w`
46
46
  :host {
47
47
  /* Base (background) */
48
48
  --lumo-base-color: #fff;
@@ -127,7 +127,7 @@
127
127
  --lumo-disabled-text-color: GrayText;
128
128
  }
129
129
  }
130
- `;ft("color-props",ja);const Wa=y`
130
+ `;lt("color-props",Wa);const ja=w`
131
131
  [theme~='dark'] {
132
132
  /* Base (background) */
133
133
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -245,11 +245,11 @@
245
245
  pre code {
246
246
  background: transparent;
247
247
  }
248
- `;C("",Wa,{moduleId:"lumo-color"});/**
248
+ `;k("",ja,{moduleId:"lumo-color"});/**
249
249
  * @license
250
250
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
251
251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
- */const qa=y`
252
+ */const qa=w`
253
253
  @font-face {
254
254
  font-family: 'lumo-icons';
255
255
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -302,11 +302,11 @@
302
302
  --lumo-icons-upload: '\\ea29';
303
303
  --lumo-icons-user: '\\ea2a';
304
304
  }
305
- `;ft("font-icons",qa);/**
305
+ `;lt("font-icons",qa);/**
306
306
  * @license
307
307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
308
308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
309
- */const Ua=y`
309
+ */const Ua=w`
310
310
  :host {
311
311
  --lumo-size-xs: 1.625rem;
312
312
  --lumo-size-s: 1.875rem;
@@ -321,11 +321,11 @@
321
321
  /* For backwards compatibility */
322
322
  --lumo-icon-size: var(--lumo-icon-size-m);
323
323
  }
324
- `;ft("sizing-props",Ua);/**
324
+ `;lt("sizing-props",Ua);/**
325
325
  * @license
326
326
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
327
327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
328
- */const Ya=y`
328
+ */const Ya=w`
329
329
  :host {
330
330
  /* Square */
331
331
  --lumo-space-xs: 0.25rem;
@@ -348,11 +348,11 @@
348
348
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
349
349
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
350
350
  }
351
- `;ft("spacing-props",Ya);/**
351
+ `;lt("spacing-props",Ya);/**
352
352
  * @license
353
353
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
354
354
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
355
- */const Ka=y`
355
+ */const Ka=w`
356
356
  :host {
357
357
  /* Border radius */
358
358
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -369,7 +369,7 @@
369
369
  /* Clickable element cursor */
370
370
  --lumo-clickable-cursor: default;
371
371
  }
372
- `;y`
372
+ `;w`
373
373
  html {
374
374
  /* Button */
375
375
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -452,11 +452,11 @@
452
452
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
453
453
  --vaadin-input-field-value-font-weight: 500;
454
454
  }
455
- `;ft("style-props",Ka);/**
455
+ `;lt("style-props",Ka);/**
456
456
  * @license
457
457
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
458
458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
459
- */const Ga=y`
459
+ */const Ga=w`
460
460
  :host {
461
461
  /* prettier-ignore */
462
462
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -476,7 +476,7 @@
476
476
  --lumo-line-height-s: 1.375;
477
477
  --lumo-line-height-m: 1.625;
478
478
  }
479
- `,Ja=y`
479
+ `,Ja=w`
480
480
  body,
481
481
  :host {
482
482
  font-family: var(--lumo-font-family);
@@ -568,7 +568,7 @@
568
568
  border-left: none;
569
569
  border-right: 2px solid var(--lumo-contrast-30pct);
570
570
  }
571
- `;C("",Ja,{moduleId:"lumo-typography"});ft("typography-props",Ga);C("vaadin-checkbox",y`
571
+ `;k("",Ja,{moduleId:"lumo-typography"});lt("typography-props",Ga);k("vaadin-checkbox",w`
572
572
  :host {
573
573
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
574
574
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -888,7 +888,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
888
888
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
889
889
  Code distributed by Google as part of the polymer project is also
890
890
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
891
- */let Xa=/(url\()([^)]*)(\))/g,Za=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ut,ge;function Tt(o,e){if(o&&Za.test(o)||o==="//")return o;if(Ut===void 0){Ut=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ut=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ut)try{return new URL(o,e).href}catch(t){return o}return ge||(ge=document.implementation.createHTMLDocument("temp"),ge.base=ge.createElement("base"),ge.head.appendChild(ge.base),ge.anchor=ge.createElement("a"),ge.body.appendChild(ge.anchor)),ge.base.href=e,ge.anchor.href=o,ge.anchor.href||o}function Ao(o,e){return o.replace(Xa,function(t,i,r,s){return i+"'"+Tt(r.replace(/["']/g,""),e)+"'"+s})}function Eo(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
891
+ */let Xa=/(url\()([^)]*)(\))/g,Za=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Mt,ve;function bt(o,e){if(o&&Za.test(o)||o==="//")return o;if(Mt===void 0){Mt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Mt=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Mt)try{return new URL(o,e).href}catch(t){return o}return ve||(ve=document.implementation.createHTMLDocument("temp"),ve.base=ve.createElement("base"),ve.head.appendChild(ve.base),ve.anchor=ve.createElement("a"),ve.body.appendChild(ve.anchor)),ve.base.href=e,ve.anchor.href=o,ve.anchor.href||o}function _o(o,e){return o.replace(Xa,function(t,i,r,s){return i+"'"+bt(r.replace(/["']/g,""),e)+"'"+s})}function fo(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
892
892
  @license
893
893
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
894
894
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -896,7 +896,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
896
896
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
897
897
  Code distributed by Google as part of the polymer project is also
898
898
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
899
- */const Rs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Qa=Rs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[o],e.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let el=window.Polymer&&window.Polymer.rootPath||Eo(document.baseURI||window.location.href),di=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let ci=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tl=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,zs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ms=window.Polymer&&window.Polymer.legacyWarnings||!1,il=window.Polymer&&window.Polymer.syncInitialRender||!1,Qi=window.Polymer&&window.Polymer.legacyUndefined||!1,ol=window.Polymer&&window.Polymer.orderedComputed||!1,Ir=window.Polymer&&window.Polymer.removeNestedTemplates||!1,rl=window.Polymer&&window.Polymer.fastDomIf||!1,Sr=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let sl=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
899
+ */const Ps=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Qa=Ps&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[o],e.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let el=window.Polymer&&window.Polymer.rootPath||fo(document.baseURI||window.location.href),Zt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Qt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tl=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ks=window.Polymer&&window.Polymer.legacyOptimizations||!1,As=window.Polymer&&window.Polymer.legacyWarnings||!1,il=window.Polymer&&window.Polymer.syncInitialRender||!1,$i=window.Polymer&&window.Polymer.legacyUndefined||!1,ol=window.Polymer&&window.Polymer.orderedComputed||!1,br=window.Polymer&&window.Polymer.removeNestedTemplates||!1,rl=window.Polymer&&window.Polymer.fastDomIf||!1,yr=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let sl=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
900
900
  @license
901
901
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
902
902
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -904,7 +904,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
904
904
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
905
905
  Code distributed by Google as part of the polymer project is also
906
906
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
907
- */let nl=0;const Z=function(o){let e=o.__mixinApplications;e||(e=new WeakMap,o.__mixinApplications=e);let t=nl++;function i(r){let s=r.__mixinSet;if(s&&s[t])return r;let n=e,a=n.get(r);if(!a){a=o(r),n.set(r,a);let d=Object.create(a.__mixinSet||s||null);d[t]=!0,a.__mixinSet=d}return a}return i};/**
907
+ */let nl=0;const X=function(o){let e=o.__mixinApplications;e||(e=new WeakMap,o.__mixinApplications=e);let t=nl++;function i(r){let s=r.__mixinSet;if(s&&s[t])return r;let n=e,a=n.get(r);if(!a){a=o(r),n.set(r,a);let l=Object.create(a.__mixinSet||s||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
908
908
  @license
909
909
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
910
910
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -912,7 +912,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
912
912
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
913
913
  Code distributed by Google as part of the polymer project is also
914
914
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
915
- */let Io={},Ns={};function Tr(o,e){Io[o]=Ns[o.toLowerCase()]=e}function Dr(o){return Io[o]||Ns[o.toLowerCase()]}function al(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class zt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=Dr(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Tt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Eo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ci&&Dr(e)!==void 0)throw Tr(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Tr(e,this),al(this)}}}zt.prototype.modules=Io;customElements.define("dom-module",zt);/**
915
+ */let vo={},Es={};function xr(o,e){vo[o]=Es[o.toLowerCase()]=e}function wr(o){return vo[o]||Es[o.toLowerCase()]}function al(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class Ct extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=wr(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=bt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=fo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Qt&&wr(e)!==void 0)throw xr(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,xr(e,this),al(this)}}}Ct.prototype.modules=vo;customElements.define("dom-module",Ct);/**
916
916
  @license
917
917
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
918
918
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -920,7 +920,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
920
920
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
921
921
  Code distributed by Google as part of the polymer project is also
922
922
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
923
- */const ll="link[rel=import][type~=css]",dl="include",Or="shady-unscoped";function Ls(o){return zt.import(o)}function Rr(o){let e=o.body?o.body:o;const t=Ao(e.textContent,o.baseURI),i=document.createElement("style");return i.textContent=t,i}function cl(o){const e=o.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...hl(e[i]));return t}function hl(o){const e=Ls(o);if(!e)return console.warn("Could not find style data in module named",o),[];if(e._styles===void 0){const t=[];t.push(...Fs(e));const i=e.querySelector("template");i&&t.push(...Vs(i,e.assetpath)),e._styles=t}return e._styles}function Vs(o,e){if(!o._styles){const t=[],i=o.content.querySelectorAll("style");for(let r=0;r<i.length;r++){let s=i[r],n=s.getAttribute(dl);n&&t.push(...cl(n).filter(function(a,d,c){return c.indexOf(a)===d})),e&&(s.textContent=Ao(s.textContent,e)),t.push(s)}o._styles=t}return o._styles}function ul(o){let e=Ls(o);return e?Fs(e):[]}function Fs(o){const e=[],t=o.querySelectorAll(ll);for(let i=0;i<t.length;i++){let r=t[i];if(r.import){const s=r.import,n=r.hasAttribute(Or);if(n&&!s._unscopedStyle){const a=Rr(s);a.setAttribute(Or,""),s._unscopedStyle=a}else s._style||(s._style=Rr(s));e.push(n?s._unscopedStyle:s._style)}}return e}/**
923
+ */const ll="link[rel=import][type~=css]",dl="include",Cr="shady-unscoped";function Is(o){return Ct.import(o)}function Pr(o){let e=o.body?o.body:o;const t=_o(e.textContent,o.baseURI),i=document.createElement("style");return i.textContent=t,i}function cl(o){const e=o.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...hl(e[i]));return t}function hl(o){const e=Is(o);if(!e)return console.warn("Could not find style data in module named",o),[];if(e._styles===void 0){const t=[];t.push(...Ts(e));const i=e.querySelector("template");i&&t.push(...Ss(i,e.assetpath)),e._styles=t}return e._styles}function Ss(o,e){if(!o._styles){const t=[],i=o.content.querySelectorAll("style");for(let r=0;r<i.length;r++){let s=i[r],n=s.getAttribute(dl);n&&t.push(...cl(n).filter(function(a,l,c){return c.indexOf(a)===l})),e&&(s.textContent=_o(s.textContent,e)),t.push(s)}o._styles=t}return o._styles}function ul(o){let e=Is(o);return e?Ts(e):[]}function Ts(o){const e=[],t=o.querySelectorAll(ll);for(let i=0;i<t.length;i++){let r=t[i];if(r.import){const s=r.import,n=r.hasAttribute(Cr);if(n&&!s._unscopedStyle){const a=Pr(s);a.setAttribute(Cr,""),s._unscopedStyle=a}else s._style||(s._style=Pr(s));e.push(n?s._unscopedStyle:s._style)}}return e}/**
924
924
  @license
925
925
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
926
926
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -936,7 +936,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
936
936
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
937
937
  Code distributed by Google as part of the polymer project is also
938
938
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
939
- */function eo(o){return o.indexOf(".")>=0}function Ze(o){let e=o.indexOf(".");return e===-1?o:o.slice(0,e)}function Bs(o,e){return o.indexOf(e+".")===0}function Mt(o,e){return e.indexOf(o+".")===0}function Nt(o,e,t){return e+t.slice(o.length)}function pl(o,e){return o===e||Bs(o,e)||Mt(o,e)}function At(o){if(Array.isArray(o)){let e=[];for(let t=0;t<o.length;t++){let i=o[t].toString().split(".");for(let r=0;r<i.length;r++)e.push(i[r])}return e.join(".")}else return o}function Hs(o){return Array.isArray(o)?At(o).split("."):o.toString().split(".")}function me(o,e,t){let i=o,r=Hs(e);for(let s=0;s<r.length;s++){if(!i)return;let n=r[s];i=i[n]}return t&&(t.path=r.join(".")),i}function zr(o,e,t){let i=o,r=Hs(e),s=r[r.length-1];if(r.length>1){for(let n=0;n<r.length-1;n++){let a=r[n];if(i=i[a],!i)return}i[s]=t}else i[e]=t;return r.join(".")}/**
939
+ */function Wi(o){return o.indexOf(".")>=0}function Ke(o){let e=o.indexOf(".");return e===-1?o:o.slice(0,e)}function Ds(o,e){return o.indexOf(e+".")===0}function Pt(o,e){return e.indexOf(o+".")===0}function kt(o,e,t){return e+t.slice(o.length)}function pl(o,e){return o===e||Ds(o,e)||Pt(o,e)}function _t(o){if(Array.isArray(o)){let e=[];for(let t=0;t<o.length;t++){let i=o[t].toString().split(".");for(let r=0;r<i.length;r++)e.push(i[r])}return e.join(".")}else return o}function Rs(o){return Array.isArray(o)?_t(o).split("."):o.toString().split(".")}function me(o,e,t){let i=o,r=Rs(e);for(let s=0;s<r.length;s++){if(!i)return;let n=r[s];i=i[n]}return t&&(t.path=r.join(".")),i}function kr(o,e,t){let i=o,r=Rs(e),s=r[r.length-1];if(r.length>1){for(let n=0;n<r.length-1;n++){let a=r[n];if(i=i[a],!i)return}i[s]=t}else i[e]=t;return r.join(".")}/**
940
940
  @license
941
941
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
942
942
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -944,7 +944,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
944
944
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
945
945
  Code distributed by Google as part of the polymer project is also
946
946
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
947
- */const hi={},ml=/-[a-z]/g,_l=/([A-Z])/g;function $s(o){return hi[o]||(hi[o]=o.indexOf("-")<0?o:o.replace(ml,e=>e[1].toUpperCase()))}function gi(o){return hi[o]||(hi[o]=o.replace(_l,"-$1").toLowerCase())}/**
947
+ */const ei={},ml=/-[a-z]/g,_l=/([A-Z])/g;function Os(o){return ei[o]||(ei[o]=o.indexOf("-")<0?o:o.replace(ml,e=>e[1].toUpperCase()))}function ai(o){return ei[o]||(ei[o]=o.replace(_l,"-$1").toLowerCase())}/**
948
948
  @license
949
949
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
950
950
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -952,7 +952,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
952
952
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
953
953
  Code distributed by Google as part of the polymer project is also
954
954
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
955
- */let fl=0,js=0,dt=[],vl=0,to=!1,Ws=document.createTextNode("");new window.MutationObserver(gl).observe(Ws,{characterData:!0});function gl(){to=!1;const o=dt.length;for(let e=0;e<o;e++){let t=dt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}dt.splice(0,o),js+=o}const bl={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},qs={run(o){return to||(to=!0,Ws.textContent=vl++),dt.push(o),fl++},cancel(o){const e=o-js;if(e>=0){if(!dt[e])throw new Error("invalid async handle: "+o);dt[e]=null}}};/**
955
+ */let fl=0,zs=0,tt=[],vl=0,ji=!1,Ms=document.createTextNode("");new window.MutationObserver(gl).observe(Ms,{characterData:!0});function gl(){ji=!1;const o=tt.length;for(let e=0;e<o;e++){let t=tt[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}tt.splice(0,o),zs+=o}const bl={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},Ns={run(o){return ji||(ji=!0,Ms.textContent=vl++),tt.push(o),fl++},cancel(o){const e=o-zs;if(e>=0){if(!tt[e])throw new Error("invalid async handle: "+o);tt[e]=null}}};/**
956
956
  @license
957
957
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
958
958
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -960,7 +960,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
960
960
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
961
961
  Code distributed by Google as part of the polymer project is also
962
962
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
963
- */const yl=qs,Us=Z(o=>{class e extends o{static createProperties(i){const r=this.prototype;for(let s in i)s in r||r._createPropertyAccessor(s)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,r){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,r))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[i];return r||(r=this.constructor.attributeNameForProperty(i),this.__dataAttributes[r]=i),r}_definePropertyAccessor(i,r){Object.defineProperty(this,i,{get(){return this.__data[i]},set:r?function(){}:function(s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,r){this._setPendingProperty(i,r)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,r,s){let n=this.__data[i],a=this._shouldPropertyChange(i,r,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=r,this.__dataPending[i]=r),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,yl.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,r=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(i,r,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,r,s)),this.__dataCounter--}_shouldPropertiesChange(i,r,s){return!!r}_propertiesChanged(i,r,s){}_shouldPropertyChange(i,r,s){return s!==r&&(s===s||r===r)}attributeChangedCallback(i,r,s,n){r!==s&&this._attributeToProperty(i,s),super.attributeChangedCallback&&super.attributeChangedCallback(i,r,s,n)}_attributeToProperty(i,r,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(r,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,r,s){this.__serializing=!0,s=arguments.length<3?this[i]:s,this._valueToNodeAttribute(this,s,r||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,r,s){const n=this._serializeValue(r);(s==="class"||s==="name"||s==="slot")&&(i=ae(i)),n===void 0?i.removeAttribute(s):i.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,r){switch(r){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
963
+ */const yl=Ns,Ls=X(o=>{class e extends o{static createProperties(i){const r=this.prototype;for(let s in i)s in r||r._createPropertyAccessor(s)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,r){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,r))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[i];return r||(r=this.constructor.attributeNameForProperty(i),this.__dataAttributes[r]=i),r}_definePropertyAccessor(i,r){Object.defineProperty(this,i,{get(){return this.__data[i]},set:r?function(){}:function(s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,r){this._setPendingProperty(i,r)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,r,s){let n=this.__data[i],a=this._shouldPropertyChange(i,r,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=r,this.__dataPending[i]=r),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,yl.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,r=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(i,r,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,r,s)),this.__dataCounter--}_shouldPropertiesChange(i,r,s){return!!r}_propertiesChanged(i,r,s){}_shouldPropertyChange(i,r,s){return s!==r&&(s===s||r===r)}attributeChangedCallback(i,r,s,n){r!==s&&this._attributeToProperty(i,s),super.attributeChangedCallback&&super.attributeChangedCallback(i,r,s,n)}_attributeToProperty(i,r,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(r,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,r,s){this.__serializing=!0,s=arguments.length<3?this[i]:s,this._valueToNodeAttribute(this,s,r||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,r,s){const n=this._serializeValue(r);(s==="class"||s==="name"||s==="slot")&&(i=ae(i)),n===void 0?i.removeAttribute(s):i.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,r){switch(r){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
964
964
  @license
965
965
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
966
966
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -968,7 +968,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
968
968
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
969
969
  Code distributed by Google as part of the polymer project is also
970
970
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
971
- */const Ys={};let Yt=HTMLElement.prototype;for(;Yt;){let o=Object.getOwnPropertyNames(Yt);for(let e=0;e<o.length;e++)Ys[o[e]]=!0;Yt=Object.getPrototypeOf(Yt)}const xl=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function wl(o,e){if(!Ys[e]){let t=o[e];t!==void 0&&(o.__data?o._setPendingProperty(e,t):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[e]=t))}}const Cl=Z(o=>{const e=Us(o);class t extends e{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor($s(r[s]))}static attributeNameForProperty(r){return gi(r)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(r){for(let s in r)this._setProperty(s,r[s])}_ensureAttribute(r,s){const n=this;n.hasAttribute(r)||this._valueToNodeAttribute(n,s,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(xl(r))return r;try{return JSON.stringify(r)}catch(s){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,s){let n;switch(s){case Object:try{n=JSON.parse(r)}catch(a){n=r}break;case Array:try{n=JSON.parse(r)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:n=isNaN(r)?String(r):Number(r),n=new Date(n);break;default:n=super._deserializeValue(r,s);break}return n}_definePropertyAccessor(r,s){wl(this,r),super._definePropertyAccessor(r,s)}_hasAccessor(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]}_isPropertyPending(r){return!!(this.__dataPending&&r in this.__dataPending)}}return t});/**
971
+ */const Vs={};let Nt=HTMLElement.prototype;for(;Nt;){let o=Object.getOwnPropertyNames(Nt);for(let e=0;e<o.length;e++)Vs[o[e]]=!0;Nt=Object.getPrototypeOf(Nt)}const xl=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function wl(o,e){if(!Vs[e]){let t=o[e];t!==void 0&&(o.__data?o._setPendingProperty(e,t):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[e]=t))}}const Cl=X(o=>{const e=Ls(o);class t extends e{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(Os(r[s]))}static attributeNameForProperty(r){return ai(r)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(r){for(let s in r)this._setProperty(s,r[s])}_ensureAttribute(r,s){const n=this;n.hasAttribute(r)||this._valueToNodeAttribute(n,s,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(xl(r))return r;try{return JSON.stringify(r)}catch(s){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,s){let n;switch(s){case Object:try{n=JSON.parse(r)}catch(a){n=r}break;case Array:try{n=JSON.parse(r)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:n=isNaN(r)?String(r):Number(r),n=new Date(n);break;default:n=super._deserializeValue(r,s);break}return n}_definePropertyAccessor(r,s){wl(this,r),super._definePropertyAccessor(r,s)}_hasAccessor(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]}_isPropertyPending(r){return!!(this.__dataPending&&r in this.__dataPending)}}return t});/**
972
972
  @license
973
973
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
974
974
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -976,7 +976,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
976
976
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
977
977
  Code distributed by Google as part of the polymer project is also
978
978
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
979
- */const Pl={"dom-if":!0,"dom-repeat":!0};let Mr=!1,Nr=!1;function kl(){if(!Mr){Mr=!0;const o=document.createElement("textarea");o.placeholder="a",Nr=o.placeholder===o.textContent}return Nr}function Al(o){kl()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const El=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const r=t.getAttribute(i);if(o&&i.startsWith("on-")){e.setAttribute(i,o.createScript(r,i));return}e.setAttribute(i,r)}})();function Il(o){let e=o.getAttribute("is");if(e&&Pl[e]){let t=o;for(t.removeAttribute("is"),o=t.ownerDocument.createElement(e),t.parentNode.replaceChild(o,t),o.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];El(o,t,i),t.removeAttribute(i)}}return o}function Ks(o,e){let t=e.parentInfo&&Ks(o,e.parentInfo);if(t){for(let i=t.firstChild,r=0;i;i=i.nextSibling)if(e.parentIndex===r++)return i}else return o}function Sl(o,e,t,i){i.id&&(e[i.id]=t)}function Tl(o,e,t){if(t.events&&t.events.length)for(let i=0,r=t.events,s;i<r.length&&(s=r[i]);i++)o._addMethodEventListenerToNode(e,s.name,s.value,o)}function Dl(o,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Ol(o,e,t){return o=o._methodHost||o,function(i){o[t]?o[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Rl=Z(o=>{class e extends o{static _parseTemplate(i,r){if(!i._templateInfo){let s=i._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!r,s.stripWhiteSpace=r&&r.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,s,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,r,s){return this._parseTemplateNode(i.content,r,s)}static _parseTemplateNode(i,r,s){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,r,s)||n:a.localName==="slot"&&(r.hasInsertionPoint=!0),Al(a),a.firstChild&&this._parseTemplateChildNodes(a,r,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,r,s)||n),n||s.noted}static _parseTemplateChildNodes(i,r,s){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,d;n;n=d){if(n.localName=="template"&&(n=Il(n)),d=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=d;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,d=h.nextSibling,i.removeChild(h),h=d;if(r.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let c={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,r,c)&&(c.infoIndex=r.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,r,s){let n=i,a=this._parseTemplate(n,r);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,r,s){let n=!1,a=Array.from(i.attributes);for(let d=a.length-1,c;c=a[d];d--)n=this._parseTemplateNodeAttribute(i,r,s,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(i,r,s,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(i){let r=i._templateInfo;return r&&r.content||i.content}_stampTemplate(i,r){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),r=r||this.constructor._parseTemplate(i);let s=r.nodeInfoList,n=r.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!r.hasInsertionPoint;let d=a.nodeList=new Array(s.length);a.$={};for(let c=0,h=s.length,u;c<h&&(u=s[c]);c++){let _=d[c]=Ks(a,u);Sl(this,a.$,_,u),Dl(this,_,u,r),Tl(this,_,u)}return a=a,a}_addMethodEventListenerToNode(i,r,s,n){n=n||i;let a=Ol(n,r,s);return this._addEventListenerToNode(i,r,a),a}_addEventListenerToNode(i,r,s){i.addEventListener(r,s)}_removeEventListenerFromNode(i,r,s){i.removeEventListener(r,s)}}return e});/**
979
+ */const Pl={"dom-if":!0,"dom-repeat":!0};let Ar=!1,Er=!1;function kl(){if(!Ar){Ar=!0;const o=document.createElement("textarea");o.placeholder="a",Er=o.placeholder===o.textContent}return Er}function Al(o){kl()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const El=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const r=t.getAttribute(i);if(o&&i.startsWith("on-")){e.setAttribute(i,o.createScript(r,i));return}e.setAttribute(i,r)}})();function Il(o){let e=o.getAttribute("is");if(e&&Pl[e]){let t=o;for(t.removeAttribute("is"),o=t.ownerDocument.createElement(e),t.parentNode.replaceChild(o,t),o.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];El(o,t,i),t.removeAttribute(i)}}return o}function Fs(o,e){let t=e.parentInfo&&Fs(o,e.parentInfo);if(t){for(let i=t.firstChild,r=0;i;i=i.nextSibling)if(e.parentIndex===r++)return i}else return o}function Sl(o,e,t,i){i.id&&(e[i.id]=t)}function Tl(o,e,t){if(t.events&&t.events.length)for(let i=0,r=t.events,s;i<r.length&&(s=r[i]);i++)o._addMethodEventListenerToNode(e,s.name,s.value,o)}function Dl(o,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function Rl(o,e,t){return o=o._methodHost||o,function(i){o[t]?o[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Ol=X(o=>{class e extends o{static _parseTemplate(i,r){if(!i._templateInfo){let s=i._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!r,s.stripWhiteSpace=r&&r.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,s,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,r,s){return this._parseTemplateNode(i.content,r,s)}static _parseTemplateNode(i,r,s){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,r,s)||n:a.localName==="slot"&&(r.hasInsertionPoint=!0),Al(a),a.firstChild&&this._parseTemplateChildNodes(a,r,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,r,s)||n),n||s.noted}static _parseTemplateChildNodes(i,r,s){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Il(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(r.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let c={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,r,c)&&(c.infoIndex=r.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,r,s){let n=i,a=this._parseTemplate(n,r);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,r,s){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(i,r,s,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(i,r,s,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(i){let r=i._templateInfo;return r&&r.content||i.content}_stampTemplate(i,r){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),r=r||this.constructor._parseTemplate(i);let s=r.nodeInfoList,n=r.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!r.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let c=0,h=s.length,u;c<h&&(u=s[c]);c++){let _=l[c]=Fs(a,u);Sl(this,a.$,_,u),Dl(this,_,u,r),Tl(this,_,u)}return a=a,a}_addMethodEventListenerToNode(i,r,s,n){n=n||i;let a=Rl(n,r,s);return this._addEventListenerToNode(i,r,a),a}_addEventListenerToNode(i,r,s){i.addEventListener(r,s)}_removeEventListenerFromNode(i,r,s){i.removeEventListener(r,s)}}return e});/**
980
980
  * @fileoverview
981
981
  * @suppress {checkPrototypalTypes}
982
982
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -986,7 +986,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
986
986
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
987
987
  * Google as part of the polymer project is also subject to an additional IP
988
988
  * rights grant found at http://polymer.github.io/PATENTS.txt
989
- */let Lt=0;const Vt=[],F={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Gs="__computeInfo",zl=/[A-Z]/;function Mi(o,e,t){let i=o[e];if(!i)i=o[e]={};else if(!o.hasOwnProperty(e)&&(i=o[e]=Object.create(o[e]),t))for(let r in i){let s=i[r],n=i[r]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return i}function Et(o,e,t,i,r,s){if(e){let n=!1;const a=Lt++;for(let d in t){let c=r?Ze(d):d,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==a)&&(!r||So(d,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(o,d,t,i,p.info,r,s),n=!0)}return n}return!1}function Ml(o,e,t,i,r,s,n,a){let d=!1,c=n?Ze(i):i,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||So(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(o,i,r,s,p.info,n,a),d=!0);return d}function So(o,e){if(e){let t=e.name;return t==o||!!(e.structured&&Bs(t,o))||!!(e.wildcard&&Mt(t,o))}else return!0}function Lr(o,e,t,i,r){let s=typeof r.method=="string"?o[r.method]:r.method,n=r.property;s?s.call(o,o.__data[n],i[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Nl(o,e,t,i,r){let s=o[F.NOTIFY],n,a=Lt++;for(let c in e)e[c]&&(s&&Ml(o,s,a,c,t,i,r)||r&&Ll(o,c,t))&&(n=!0);let d;n&&(d=o.__dataHost)&&d._invalidateProperties&&d._invalidateProperties()}function Ll(o,e,t){let i=Ze(e);if(i!==e){let r=gi(i)+"-changed";return Js(o,r,t[e],e),!0}return!1}function Js(o,e,t,i){let r={value:t,queueProperty:!0};i&&(r.path=i),ae(o).dispatchEvent(new CustomEvent(e,{detail:r}))}function Vl(o,e,t,i,r,s){let n=(s?Ze(e):e)!=e?e:null,a=n?me(o,n):o.__data[e];n&&a===void 0&&(a=t[e]),Js(o,r.eventName,a,n)}function Fl(o,e,t,i,r){let s,n=o.detail,a=n&&n.path;a?(i=Nt(t,i,a),s=n&&n.value):s=o.currentTarget[t],s=r?!s:s,(!e[F.READ_ONLY]||!e[F.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Bl(o,e,t,i,r){let s=o.__data[e];di&&(s=di(s,r.attrName,"attribute",o)),o._propertyToAttribute(e,r.attrName,s)}function Hl(o,e,t,i){let r=o[F.COMPUTE];if(r)if(ol){Lt++;const s=jl(o),n=[];for(let d in e)Vr(d,r,n,s,i);let a;for(;a=n.shift();)Xs(o,"",e,t,a)&&Vr(a.methodInfo,r,n,s,i);Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),o.__dataPending=null}else{let s=e;for(;Et(o,r,s,t,i);)Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),s=o.__dataPending,o.__dataPending=null}}const $l=(o,e,t)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const n=i+r>>1,a=t.get(e[n].methodInfo)-t.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)r=n-1;else{s=n;break}}s<0&&(s=r+1),e.splice(s,0,o)},Vr=(o,e,t,i,r)=>{const s=r?Ze(o):o,n=e[s];if(n)for(let a=0;a<n.length;a++){const d=n[a];d.info.lastRun!==Lt&&(!r||So(o,d.trigger))&&(d.info.lastRun=Lt,$l(d.info,t,i))}};function jl(o){let e=o.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=o[F.COMPUTE];let{counts:i,ready:r,total:s}=Wl(o),n;for(;n=r.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(d=>{const c=d.info.methodInfo;--s,--i[c]===0&&r.push(c)})}s!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=e}return e}function Wl(o){const e=o[Gs],t={},i=o[F.COMPUTE],r=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(d=>!d.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||r.push(n);return{counts:t,ready:r,total:s}}function Xs(o,e,t,i,r){let s=io(o,e,t,i,r);if(s===Vt)return!1;let n=r.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,s,!0):(o[n]=s,!1)}function ql(o,e,t){let i=o.__dataLinkedPaths;if(i){let r;for(let s in i){let n=i[s];Mt(s,e)?(r=Nt(s,n,e),o._setPendingPropertyOrPath(r,t,!0,!0)):Mt(n,e)&&(r=Nt(n,s,e),o._setPendingPropertyOrPath(r,t,!0,!0))}}}function Ni(o,e,t,i,r,s,n){t.bindings=t.bindings||[];let a={kind:i,target:r,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Jl(a)){let{event:c,negate:h}=a.parts[0];a.listenerEvent=c||gi(r)+"-changed",a.listenerNegate=h}let d=e.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let h=a.parts[c];h.compoundIndex=c,Ul(o,e,a,h,d)}}function Ul(o,e,t,i,r){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,n={index:r,binding:t,part:i,evaluator:o};for(let a=0;a<s.length;a++){let d=s[a];typeof d=="string"&&(d=Qs(d),d.wildcard=!0),o._addTemplatePropertyEffect(e,d.rootProperty,{fn:Yl,info:n,trigger:d})}}}function Yl(o,e,t,i,r,s,n){let a=n[r.index],d=r.binding,c=r.part;if(s&&c.source&&e.length>c.source.length&&d.kind=="property"&&!d.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[d.target]){let h=t[e];e=Nt(c.source,d.target,e),a._setPendingPropertyOrPath(e,h,!1,!0)&&o._enqueueClient(a)}else{let h=r.evaluator._evaluateBinding(o,c,e,t,i,s);h!==Vt&&Kl(o,a,d,c,h)}}function Kl(o,e,t,i,r){if(r=Gl(e,r,t,i),di&&(r=di(r,t.target,t.kind,e)),t.kind=="attribute")o._valueToNodeAttribute(e,r,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[F.READ_ONLY]||!e[F.READ_ONLY][s])&&e._setPendingProperty(s,r)&&o._enqueueClient(e):o._setUnmanagedPropertyToNode(e,s,r)}}function Gl(o,e,t,i){if(t.isCompound){let r=o.__dataCompoundStorage[t.target];r[i.compoundIndex]=e,e=r.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(e=e==null?"":e),e}function Jl(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Xl(o,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let r=0;r<i.length;r++){let s=i[r],n=t[r],a=s.bindings;if(a)for(let d=0;d<a.length;d++){let c=a[d];Zl(n,c),Ql(n,o,c)}n.__dataHost=o}}function Zl(o,e){if(e.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let n=0;n<i.length;n++)r[n]=i[n].literal;let s=e.target;t[s]=r,e.literal&&e.kind=="property"&&(s==="className"&&(o=ae(o)),o[s]=e.literal)}}function Ql(o,e,t){if(t.listenerEvent){let i=t.parts[0];o.addEventListener(t.listenerEvent,function(r){Fl(r,e,t.target,i.source,i.negate)})}}function Fr(o,e,t,i,r,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let a=0,d;a<e.args.length&&(d=e.args[a]);a++)d.literal||o._addPropertyEffect(d.rootProperty,t,{fn:i,info:n,trigger:d});return s&&o._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function io(o,e,t,i,r){let s=o._methodHost||o,n=s[r.methodName];if(n){let a=o._marshalArgs(r.args,e,t);return a===Vt?Vt:n.apply(s,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const ed=[],Zs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",td="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",id="(?:'(?:[^'\\\\]|\\\\.)*')",od='(?:"(?:[^"\\\\]|\\\\.)*")',rd="(?:"+id+"|"+od+")",Br="(?:("+Zs+"|"+td+"|"+rd+")\\s*)",sd="(?:"+Br+"(?:,\\s*"+Br+")*)",nd="(?:\\(\\s*(?:"+sd+"?)\\)\\s*)",ad="("+Zs+"\\s*"+nd+"?)",ld="(\\[\\[|{{)\\s*",dd="(?:]]|}})",cd="(?:(!)\\s*)?",hd=ld+cd+ad+dd,Hr=new RegExp(hd,"g");function $r(o){let e="";for(let t=0;t<o.length;t++){let i=o[t].literal;e+=i||""}return e}function Li(o){let e=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ed};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return ud(i,t)}else return t}return null}function ud(o,e){return e.args=o.map(function(t){let i=Qs(t);return i.literal||(e.static=!1),i},this),e}function Qs(o){let e=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ze(e),t.structured=eo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function jr(o,e,t){let i=me(o,t);return i===void 0&&(i=e[t]),i}function en(o,e,t,i){const r={indexSplices:i};Qi&&!o._overrideLegacyUndefined&&(e.splices=r),o.notifyPath(t+".splices",r),o.notifyPath(t+".length",e.length),Qi&&!o._overrideLegacyUndefined&&(r.indexSplices=[])}function wt(o,e,t,i,r,s){en(o,e,t,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}function pd(o){return o[0].toUpperCase()+o.substring(1)}const To=Z(o=>{const e=Rl(Cl(o));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return F}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ct.length){let r=Ct[Ct.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let s=this[F.READ_ONLY];for(let n in r)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=r[n])}_addPropertyEffect(r,s,n){this._createPropertyAccessor(r,s==F.READ_ONLY);let a=Mi(this,s,!0)[r];a||(a=this[s][r]=[]),a.push(n)}_removePropertyEffect(r,s,n){let a=Mi(this,s,!0)[r],d=a.indexOf(n);d>=0&&a.splice(d,1)}_hasPropertyEffect(r,s){let n=this[s];return!!(n&&n[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,F.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,F.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,F.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,F.COMPUTE)}_setPendingPropertyOrPath(r,s,n,a){if(a||Ze(Array.isArray(r)?r[0]:r)!==r){if(!a){let d=me(this,r);if(r=zr(this,r,s),!r||!super._shouldPropertyChange(r,s,d))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,n))return ql(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,n);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,n){(n!==r[s]||typeof n=="object")&&(s==="className"&&(r=ae(r)),r[s]=n)}_setPendingProperty(r,s,n){let a=this.__dataHasPaths&&eo(r),d=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,d[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),a?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(a||this[F.NOTIFY]&&this[F.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=n),!0):!1}_setProperty(r,s){this._setPendingProperty(r,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let s=0;s<r.length;s++){let n=r[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let n in r)(s||!this[F.READ_ONLY]||!this[F.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,r[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let d;Hl(this,s,n,a),d=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),Et(this,this[F.REFLECT],s,n,a),Et(this,this[F.OBSERVE],s,n,a),d&&Nl(this,d,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,n){this[F.PROPAGATE]&&Et(this,this[F.PROPAGATE],r,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,n)}_runEffectsForTemplate(r,s,n,a){const d=(c,h)=>{Et(this,r.propertyEffects,c,n,h,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,n,h)};r.runEffects?r.runEffects(d,s,a):d(s,a)}linkPaths(r,s){r=At(r),s=At(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=At(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let n={path:""},a=me(this,r,n);en(this,a,n.path,s)}get(r,s){return me(s||this,r)}set(r,s,n){n?zr(n,r,s):(!this[F.READ_ONLY]||!this[F.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let n={path:""},a=me(this,r,n),d=a.length,c=a.push(...s);return s.length&&wt(this,a,n.path,d,s.length,[]),c}pop(r){let s={path:""},n=me(this,r,s),a=!!n.length,d=n.pop();return a&&wt(this,n,s.path,n.length,0,[d]),d}splice(r,s,n,...a){let d={path:""},c=me(this,r,d);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,n,...a),(a.length||h.length)&&wt(this,c,d.path,s,a.length,h),h}shift(r){let s={path:""},n=me(this,r,s),a=!!n.length,d=n.shift();return a&&wt(this,n,s.path,0,0,[d]),d}unshift(r,...s){let n={path:""},a=me(this,r,n),d=a.unshift(...s);return s.length&&wt(this,a,n.path,0,s.length,[]),d}notifyPath(r,s){let n;if(arguments.length==1){let a={path:""};s=me(this,r,a),n=a.path}else Array.isArray(r)?n=At(r):n=r;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,F.READ_ONLY),s&&(this["_set"+pd(r)]=function(n){this._setProperty(r,n)})}_createPropertyObserver(r,s,n){let a={property:r,method:s,dynamicFn:!!n};this._addPropertyEffect(r,F.OBSERVE,{fn:Lr,info:a,trigger:{name:r}}),n&&this._addPropertyEffect(s,F.OBSERVE,{fn:Lr,info:a,trigger:{name:s}})}_createMethodObserver(r,s){let n=Li(r);if(!n)throw new Error("Malformed observer expression '"+r+"'");Fr(this,n,F.OBSERVE,io,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,F.NOTIFY,{fn:Vl,info:{eventName:gi(r)+"-changed",property:r}})}_createReflectedProperty(r){let s=this.constructor.attributeNameForProperty(r);s[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,F.REFLECT,{fn:Bl,info:{attrName:s}})}_createComputedProperty(r,s,n){let a=Li(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const d=Fr(this,a,F.COMPUTE,Xs,r,n);Mi(this,Gs)[r]=d}_marshalArgs(r,s,n){const a=this.__data,d=[];for(let c=0,h=r.length;c<h;c++){let{name:u,structured:_,wildcard:p,value:w,literal:I}=r[c];if(!I)if(p){const T=Mt(u,s),M=jr(a,n,T?s:u);w={path:T?s:u,value:M,base:T?me(a,u):M}}else w=_?jr(a,n,u):a[u];if(Qi&&!this._overrideLegacyUndefined&&w===void 0&&r.length>1)return Vt;d[c]=w}return d}static addPropertyEffect(r,s,n){this.prototype._addPropertyEffect(r,s,n)}static createPropertyObserver(r,s,n){this.prototype._createPropertyObserver(r,s,n)}static createMethodObserver(r,s){this.prototype._createMethodObserver(r,s)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,s){this.prototype._createReadOnlyProperty(r,s)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,s,n){this.prototype._createComputedProperty(r,s,n)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let n=this.constructor._parseTemplate(r),a=this.__preBoundTemplateInfo==n;if(!a)for(let d in n.propertyEffects)this._createPropertyAccessor(d);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const d=r._parentTemplateInfo||this.__templateInfo,c=d.lastChild;n.parent=d,d.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:d.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(r,s,n){let a=r.hostProps=r.hostProps||{};a[s]=!0;let d=r.propertyEffects=r.propertyEffects||{};(d[s]=d[s]||[]).push(n)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),Ct.push(this);let n=super._stampTemplate(r,s);if(Ct.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let d=n.firstChild;d;d=d.nextSibling)a.push(d)}return n.templateInfo=s,Xl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:n,nextSibling:a,parent:d}=s;n?n.nextSibling=a:d&&(d.firstChild=a),a?a.previousSibling=n:d&&(d.lastChild=n),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ae(ae(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,n){let a=e._parseTemplateNode.call(this,r,s,n);if(r.nodeType===Node.TEXT_NODE){let d=this._parseBindings(r.textContent,s);d&&(r.textContent=$r(d)||" ",Ni(this,s,n,"text","textContent",d),a=!0)}return a}static _parseTemplateNodeAttribute(r,s,n,a,d){let c=this._parseBindings(d,s);if(c){let h=a,u="property";zl.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let _=$r(c);return _&&u=="attribute"&&(a=="class"&&r.hasAttribute("class")&&(_+=" "+r.getAttribute(a)),r.setAttribute(a,_)),u=="attribute"&&h=="disable-upgrade$"&&r.setAttribute(a,""),r.localName==="input"&&h==="value"&&r.setAttribute(h,""),r.removeAttribute(h),u==="property"&&(a=$s(a)),Ni(this,s,n,u,a,c,_),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,n,a,d)}static _parseTemplateNestedTemplate(r,s,n){let a=e._parseTemplateNestedTemplate.call(this,r,s,n);const d=r.parentNode,c=n.templateInfo,h=d.localName==="dom-if",u=d.localName==="dom-repeat";Ir&&(h||u)&&(d.removeChild(r),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let _=c.hostProps;if(rl&&h)_&&(s.hostProps=Object.assign(s.hostProps||{},_),Ir||(n.parentInfo.noted=!0));else{let p="{";for(let w in _){let I=[{mode:p,source:w,dependencies:[w],hostProp:!0}];Ni(this,s,n,"property","_host_"+w,I)}}return a}static _parseBindings(r,s){let n=[],a=0,d;for(;(d=Hr.exec(r))!==null;){d.index>a&&n.push({literal:r.slice(a,d.index)});let c=d[1][0],h=!!d[2],u=d[3].trim(),_=!1,p="",w=-1;c=="{"&&(w=u.indexOf("::"))>0&&(p=u.substring(w+2),u=u.substring(0,w),_=!0);let I=Li(u),T=[];if(I){let{args:M,methodName:N}=I;for(let G=0;G<M.length;G++){let q=M[G];q.literal||T.push(q)}let L=s.dynamicFns;(L&&L[N]||I.static)&&(T.push(N),I.dynamicFn=!0)}else T.push(u);n.push({source:u,mode:c,negate:h,customEvent:_,signature:I,dependencies:T,event:p}),a=Hr.lastIndex}if(a&&a<r.length){let c=r.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(r,s,n,a,d,c){let h;return s.signature?h=io(r,n,a,d,s.signature):n!=s.source?h=me(r,s.source):c&&eo(n)?h=me(r,n):h=r.__data[n],s.negate&&(h=!h),h}}return t}),Ct=[];/**
989
+ */let At=0;const Et=[],B={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Bs="__computeInfo",zl=/[A-Z]/;function Pi(o,e,t){let i=o[e];if(!i)i=o[e]={};else if(!o.hasOwnProperty(e)&&(i=o[e]=Object.create(o[e]),t))for(let r in i){let s=i[r],n=i[r]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return i}function ft(o,e,t,i,r,s){if(e){let n=!1;const a=At++;for(let l in t){let c=r?Ke(l):l,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==a)&&(!r||go(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(o,l,t,i,p.info,r,s),n=!0)}return n}return!1}function Ml(o,e,t,i,r,s,n,a){let l=!1,c=n?Ke(i):i,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||go(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(o,i,r,s,p.info,n,a),l=!0);return l}function go(o,e){if(e){let t=e.name;return t==o||!!(e.structured&&Ds(t,o))||!!(e.wildcard&&Pt(t,o))}else return!0}function Ir(o,e,t,i,r){let s=typeof r.method=="string"?o[r.method]:r.method,n=r.property;s?s.call(o,o.__data[n],i[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Nl(o,e,t,i,r){let s=o[B.NOTIFY],n,a=At++;for(let c in e)e[c]&&(s&&Ml(o,s,a,c,t,i,r)||r&&Ll(o,c,t))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ll(o,e,t){let i=Ke(e);if(i!==e){let r=ai(i)+"-changed";return Hs(o,r,t[e],e),!0}return!1}function Hs(o,e,t,i){let r={value:t,queueProperty:!0};i&&(r.path=i),ae(o).dispatchEvent(new CustomEvent(e,{detail:r}))}function Vl(o,e,t,i,r,s){let n=(s?Ke(e):e)!=e?e:null,a=n?me(o,n):o.__data[e];n&&a===void 0&&(a=t[e]),Hs(o,r.eventName,a,n)}function Fl(o,e,t,i,r){let s,n=o.detail,a=n&&n.path;a?(i=kt(t,i,a),s=n&&n.value):s=o.currentTarget[t],s=r?!s:s,(!e[B.READ_ONLY]||!e[B.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Bl(o,e,t,i,r){let s=o.__data[e];Zt&&(s=Zt(s,r.attrName,"attribute",o)),o._propertyToAttribute(e,r.attrName,s)}function Hl(o,e,t,i){let r=o[B.COMPUTE];if(r)if(ol){At++;const s=Wl(o),n=[];for(let l in e)Sr(l,r,n,s,i);let a;for(;a=n.shift();)$s(o,"",e,t,a)&&Sr(a.methodInfo,r,n,s,i);Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),o.__dataPending=null}else{let s=e;for(;ft(o,r,s,t,i);)Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),s=o.__dataPending,o.__dataPending=null}}const $l=(o,e,t)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const n=i+r>>1,a=t.get(e[n].methodInfo)-t.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)r=n-1;else{s=n;break}}s<0&&(s=r+1),e.splice(s,0,o)},Sr=(o,e,t,i,r)=>{const s=r?Ke(o):o,n=e[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==At&&(!r||go(o,l.trigger))&&(l.info.lastRun=At,$l(l.info,t,i))}};function Wl(o){let e=o.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=o[B.COMPUTE];let{counts:i,ready:r,total:s}=jl(o),n;for(;n=r.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--s,--i[c]===0&&r.push(c)})}s!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=e}return e}function jl(o){const e=o[Bs],t={},i=o[B.COMPUTE],r=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||r.push(n);return{counts:t,ready:r,total:s}}function $s(o,e,t,i,r){let s=qi(o,e,t,i,r);if(s===Et)return!1;let n=r.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,s,!0):(o[n]=s,!1)}function ql(o,e,t){let i=o.__dataLinkedPaths;if(i){let r;for(let s in i){let n=i[s];Pt(s,e)?(r=kt(s,n,e),o._setPendingPropertyOrPath(r,t,!0,!0)):Pt(n,e)&&(r=kt(n,s,e),o._setPendingPropertyOrPath(r,t,!0,!0))}}}function ki(o,e,t,i,r,s,n){t.bindings=t.bindings||[];let a={kind:i,target:r,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Jl(a)){let{event:c,negate:h}=a.parts[0];a.listenerEvent=c||ai(r)+"-changed",a.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let h=a.parts[c];h.compoundIndex=c,Ul(o,e,a,h,l)}}function Ul(o,e,t,i,r){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,n={index:r,binding:t,part:i,evaluator:o};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=js(l),l.wildcard=!0),o._addTemplatePropertyEffect(e,l.rootProperty,{fn:Yl,info:n,trigger:l})}}}function Yl(o,e,t,i,r,s,n){let a=n[r.index],l=r.binding,c=r.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=t[e];e=kt(c.source,l.target,e),a._setPendingPropertyOrPath(e,h,!1,!0)&&o._enqueueClient(a)}else{let h=r.evaluator._evaluateBinding(o,c,e,t,i,s);h!==Et&&Kl(o,a,l,c,h)}}function Kl(o,e,t,i,r){if(r=Gl(e,r,t,i),Zt&&(r=Zt(r,t.target,t.kind,e)),t.kind=="attribute")o._valueToNodeAttribute(e,r,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[B.READ_ONLY]||!e[B.READ_ONLY][s])&&e._setPendingProperty(s,r)&&o._enqueueClient(e):o._setUnmanagedPropertyToNode(e,s,r)}}function Gl(o,e,t,i){if(t.isCompound){let r=o.__dataCompoundStorage[t.target];r[i.compoundIndex]=e,e=r.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(e=e==null?"":e),e}function Jl(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Xl(o,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let r=0;r<i.length;r++){let s=i[r],n=t[r],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Zl(n,c),Ql(n,o,c)}n.__dataHost=o}}function Zl(o,e){if(e.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let n=0;n<i.length;n++)r[n]=i[n].literal;let s=e.target;t[s]=r,e.literal&&e.kind=="property"&&(s==="className"&&(o=ae(o)),o[s]=e.literal)}}function Ql(o,e,t){if(t.listenerEvent){let i=t.parts[0];o.addEventListener(t.listenerEvent,function(r){Fl(r,e,t.target,i.source,i.negate)})}}function Tr(o,e,t,i,r,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return s&&o._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function qi(o,e,t,i,r){let s=o._methodHost||o,n=s[r.methodName];if(n){let a=o._marshalArgs(r.args,e,t);return a===Et?Et:n.apply(s,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const ed=[],Ws="(?:[a-zA-Z_$][\\w.:$\\-*]*)",td="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",id="(?:'(?:[^'\\\\]|\\\\.)*')",od='(?:"(?:[^"\\\\]|\\\\.)*")',rd="(?:"+id+"|"+od+")",Dr="(?:("+Ws+"|"+td+"|"+rd+")\\s*)",sd="(?:"+Dr+"(?:,\\s*"+Dr+")*)",nd="(?:\\(\\s*(?:"+sd+"?)\\)\\s*)",ad="("+Ws+"\\s*"+nd+"?)",ld="(\\[\\[|{{)\\s*",dd="(?:]]|}})",cd="(?:(!)\\s*)?",hd=ld+cd+ad+dd,Rr=new RegExp(hd,"g");function Or(o){let e="";for(let t=0;t<o.length;t++){let i=o[t].literal;e+=i||""}return e}function Ai(o){let e=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ed};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return ud(i,t)}else return t}return null}function ud(o,e){return e.args=o.map(function(t){let i=js(t);return i.literal||(e.static=!1),i},this),e}function js(o){let e=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ke(e),t.structured=Wi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function zr(o,e,t){let i=me(o,t);return i===void 0&&(i=e[t]),i}function qs(o,e,t,i){const r={indexSplices:i};$i&&!o._overrideLegacyUndefined&&(e.splices=r),o.notifyPath(t+".splices",r),o.notifyPath(t+".length",e.length),$i&&!o._overrideLegacyUndefined&&(r.indexSplices=[])}function ht(o,e,t,i,r,s){qs(o,e,t,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}function pd(o){return o[0].toUpperCase()+o.substring(1)}const bo=X(o=>{const e=Ol(Cl(o));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return B}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(ut.length){let r=ut[ut.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let s=this[B.READ_ONLY];for(let n in r)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=r[n])}_addPropertyEffect(r,s,n){this._createPropertyAccessor(r,s==B.READ_ONLY);let a=Pi(this,s,!0)[r];a||(a=this[s][r]=[]),a.push(n)}_removePropertyEffect(r,s,n){let a=Pi(this,s,!0)[r],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(r,s){let n=this[s];return!!(n&&n[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,B.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,B.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,B.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,B.COMPUTE)}_setPendingPropertyOrPath(r,s,n,a){if(a||Ke(Array.isArray(r)?r[0]:r)!==r){if(!a){let l=me(this,r);if(r=kr(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,n))return ql(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,n);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,n){(n!==r[s]||typeof n=="object")&&(s==="className"&&(r=ae(r)),r[s]=n)}_setPendingProperty(r,s,n){let a=this.__dataHasPaths&&Wi(r),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),a?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(a||this[B.NOTIFY]&&this[B.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=n),!0):!1}_setProperty(r,s){this._setPendingProperty(r,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let s=0;s<r.length;s++){let n=r[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let n in r)(s||!this[B.READ_ONLY]||!this[B.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,r[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Hl(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),ft(this,this[B.REFLECT],s,n,a),ft(this,this[B.OBSERVE],s,n,a),l&&Nl(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,n){this[B.PROPAGATE]&&ft(this,this[B.PROPAGATE],r,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,n)}_runEffectsForTemplate(r,s,n,a){const l=(c,h)=>{ft(this,r.propertyEffects,c,n,h,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,n,h)};r.runEffects?r.runEffects(l,s,a):l(s,a)}linkPaths(r,s){r=_t(r),s=_t(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=_t(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let n={path:""},a=me(this,r,n);qs(this,a,n.path,s)}get(r,s){return me(s||this,r)}set(r,s,n){n?kr(n,r,s):(!this[B.READ_ONLY]||!this[B.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let n={path:""},a=me(this,r,n),l=a.length,c=a.push(...s);return s.length&&ht(this,a,n.path,l,s.length,[]),c}pop(r){let s={path:""},n=me(this,r,s),a=!!n.length,l=n.pop();return a&&ht(this,n,s.path,n.length,0,[l]),l}splice(r,s,n,...a){let l={path:""},c=me(this,r,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,n,...a),(a.length||h.length)&&ht(this,c,l.path,s,a.length,h),h}shift(r){let s={path:""},n=me(this,r,s),a=!!n.length,l=n.shift();return a&&ht(this,n,s.path,0,0,[l]),l}unshift(r,...s){let n={path:""},a=me(this,r,n),l=a.unshift(...s);return s.length&&ht(this,a,n.path,0,s.length,[]),l}notifyPath(r,s){let n;if(arguments.length==1){let a={path:""};s=me(this,r,a),n=a.path}else Array.isArray(r)?n=_t(r):n=r;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,B.READ_ONLY),s&&(this["_set"+pd(r)]=function(n){this._setProperty(r,n)})}_createPropertyObserver(r,s,n){let a={property:r,method:s,dynamicFn:!!n};this._addPropertyEffect(r,B.OBSERVE,{fn:Ir,info:a,trigger:{name:r}}),n&&this._addPropertyEffect(s,B.OBSERVE,{fn:Ir,info:a,trigger:{name:s}})}_createMethodObserver(r,s){let n=Ai(r);if(!n)throw new Error("Malformed observer expression '"+r+"'");Tr(this,n,B.OBSERVE,qi,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,B.NOTIFY,{fn:Vl,info:{eventName:ai(r)+"-changed",property:r}})}_createReflectedProperty(r){let s=this.constructor.attributeNameForProperty(r);s[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,B.REFLECT,{fn:Bl,info:{attrName:s}})}_createComputedProperty(r,s,n){let a=Ai(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Tr(this,a,B.COMPUTE,$s,r,n);Pi(this,Bs)[r]=l}_marshalArgs(r,s,n){const a=this.__data,l=[];for(let c=0,h=r.length;c<h;c++){let{name:u,structured:_,wildcard:p,value:y,literal:C}=r[c];if(!C)if(p){const E=Pt(u,s),L=zr(a,n,E?s:u);y={path:E?s:u,value:L,base:E?me(a,u):L}}else y=_?zr(a,n,u):a[u];if($i&&!this._overrideLegacyUndefined&&y===void 0&&r.length>1)return Et;l[c]=y}return l}static addPropertyEffect(r,s,n){this.prototype._addPropertyEffect(r,s,n)}static createPropertyObserver(r,s,n){this.prototype._createPropertyObserver(r,s,n)}static createMethodObserver(r,s){this.prototype._createMethodObserver(r,s)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,s){this.prototype._createReadOnlyProperty(r,s)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,s,n){this.prototype._createComputedProperty(r,s,n)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let n=this.constructor._parseTemplate(r),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=r._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(r,s,n){let a=r.hostProps=r.hostProps||{};a[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),ut.push(this);let n=super._stampTemplate(r,s);if(ut.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,Xl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ae(ae(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,n){let a=e._parseTemplateNode.call(this,r,s,n);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=Or(l)||" ",ki(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(r,s,n,a,l){let c=this._parseBindings(l,s);if(c){let h=a,u="property";zl.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let _=Or(c);return _&&u=="attribute"&&(a=="class"&&r.hasAttribute("class")&&(_+=" "+r.getAttribute(a)),r.setAttribute(a,_)),u=="attribute"&&h=="disable-upgrade$"&&r.setAttribute(a,""),r.localName==="input"&&h==="value"&&r.setAttribute(h,""),r.removeAttribute(h),u==="property"&&(a=Os(a)),ki(this,s,n,u,a,c,_),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,n,a,l)}static _parseTemplateNestedTemplate(r,s,n){let a=e._parseTemplateNestedTemplate.call(this,r,s,n);const l=r.parentNode,c=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";br&&(h||u)&&(l.removeChild(r),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let _=c.hostProps;if(rl&&h)_&&(s.hostProps=Object.assign(s.hostProps||{},_),br||(n.parentInfo.noted=!0));else{let p="{";for(let y in _){let C=[{mode:p,source:y,dependencies:[y],hostProp:!0}];ki(this,s,n,"property","_host_"+y,C)}}return a}static _parseBindings(r,s){let n=[],a=0,l;for(;(l=Rr.exec(r))!==null;){l.index>a&&n.push({literal:r.slice(a,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),_=!1,p="",y=-1;c=="{"&&(y=u.indexOf("::"))>0&&(p=u.substring(y+2),u=u.substring(0,y),_=!0);let C=Ai(u),E=[];if(C){let{args:L,methodName:M}=C;for(let Q=0;Q<L.length;Q++){let F=L[Q];F.literal||E.push(F)}let N=s.dynamicFns;(N&&N[M]||C.static)&&(E.push(M),C.dynamicFn=!0)}else E.push(u);n.push({source:u,mode:c,negate:h,customEvent:_,signature:C,dependencies:E,event:p}),a=Rr.lastIndex}if(a&&a<r.length){let c=r.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(r,s,n,a,l,c){let h;return s.signature?h=qi(r,n,a,l,s.signature):n!=s.source?h=me(r,s.source):c&&Wi(n)?h=me(r,n):h=r.__data[n],s.negate&&(h=!h),h}}return t}),ut=[];/**
990
990
  @license
991
991
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
992
992
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1002,7 +1002,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1002
1002
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1003
1003
  Code distributed by Google as part of the polymer project is also
1004
1004
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1005
- */function md(o){const e={};for(let t in o){const i=o[t];e[t]=typeof i=="function"?{type:i}:i}return e}const _d=Z(o=>{const e=Us(o);function t(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof r?n:null}function i(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=md(a))}s.__ownProperties=n}return s.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r});/**
1005
+ */function md(o){const e={};for(let t in o){const i=o[t];e[t]=typeof i=="function"?{type:i}:i}return e}const _d=X(o=>{const e=Ls(o);function t(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof r?n:null}function i(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=md(a))}s.__ownProperties=n}return s.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r});/**
1006
1006
  * @fileoverview
1007
1007
  * @suppress {checkPrototypalTypes}
1008
1008
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1012,7 +1012,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1012
1012
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1013
1013
  * Google as part of the polymer project is also subject to an additional IP
1014
1014
  * rights grant found at http://polymer.github.io/PATENTS.txt
1015
- */const fd="3.5.2",Wr=window.ShadyCSS&&window.ShadyCSS.cssBuild,vd=Z(o=>{const e=_d(To(o));function t(d){if(!d.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",d))){d.__propertyDefaults=null;let c=d._properties;for(let h in c){let u=c[h];"value"in u&&(d.__propertyDefaults=d.__propertyDefaults||{},d.__propertyDefaults[h]=u)}}return d.__propertyDefaults}function i(d){return d.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",d))||(d.__ownObservers=d.hasOwnProperty(JSCompiler_renameProperty("observers",d))?d.observers:null),d.__ownObservers}function r(d,c,h,u){h.computed&&(h.readOnly=!0),h.computed&&(d._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):d._createComputedProperty(c,h.computed,u)),h.readOnly&&!d._hasReadOnlyEffect(c)?d._createReadOnlyProperty(c,!h.computed):h.readOnly===!1&&d._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),h.reflectToAttribute&&!d._hasReflectEffect(c)?d._createReflectedProperty(c):h.reflectToAttribute===!1&&d._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),h.notify&&!d._hasNotifyEffect(c)?d._createNotifyingProperty(c):h.notify===!1&&d._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),h.observer&&d._createPropertyObserver(c,h.observer,u[h.observer]),d._addPropertyToAttributeMap(c)}function s(d,c,h,u){if(!Wr){const _=c.content.querySelectorAll("style"),p=Vs(c),w=ul(h),I=c.content.firstElementChild;for(let M=0;M<w.length;M++){let N=w[M];N.textContent=d._processStyleText(N.textContent,u),c.content.insertBefore(N,I)}let T=0;for(let M=0;M<p.length;M++){let N=p[M],L=_[T];L!==N?(N=N.cloneNode(!0),L.parentNode.insertBefore(N,L)):T++,N.textContent=d._processStyleText(N.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,h),sl&&Wr&&Qa){const _=c.content.querySelectorAll("style");if(_){let p="";Array.from(_).forEach(w=>{p+=w.textContent,w.parentNode.removeChild(w)}),d._styleSheet=new CSSStyleSheet,d._styleSheet.replaceSync(p)}}}function n(d){let c=null;if(d&&(!ci||tl)&&(c=zt.import(d,"template"),ci&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${d}`);return c}class a extends e{static get polymerElementVersion(){return fd}static _finalizeClass(){e._finalizeClass.call(this);const c=i(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):zs||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let h in c)r(this.prototype,h,c[h],c)}static createObservers(c,h){const u=this.prototype;for(let _=0;_<c.length;_++)u._createMethodObserver(c[_],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=Eo(c.url);else{const h=zt.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=el,this.importPath=this.constructor.importPath;let c=t(this.constructor);if(c)for(let h in c){let u=c[h];if(this._canApplyPropertyDefault(h)){let _=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,_,!0):this[h]=_}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,h){return Ao(c,h)}static _finalizeTemplate(c){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,_=u?Tt(u):"";s(this,h,c,_),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const h=ae(this);if(h.attachShadow)return c?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:c}),h.shadowRoot.appendChild(c),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),il&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,h){return!h&&this.importPath&&(h=Tt(this.importPath)),Tt(c,h)}static _parseTemplateContent(c,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,c,h,u)}static _addTemplatePropertyEffect(c,h,u){return Ms&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,c,h,u)}}return a});/**
1015
+ */const fd="3.5.2",Mr=window.ShadyCSS&&window.ShadyCSS.cssBuild,vd=X(o=>{const e=_d(bo(o));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let h in c){let u=c[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function r(l,c,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):h.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),h.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):h.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),h.observer&&l._createPropertyObserver(c,h.observer,u[h.observer]),l._addPropertyToAttributeMap(c)}function s(l,c,h,u){if(!Mr){const _=c.content.querySelectorAll("style"),p=Ss(c),y=ul(h),C=c.content.firstElementChild;for(let L=0;L<y.length;L++){let M=y[L];M.textContent=l._processStyleText(M.textContent,u),c.content.insertBefore(M,C)}let E=0;for(let L=0;L<p.length;L++){let M=p[L],N=_[E];N!==M?(M=M.cloneNode(!0),N.parentNode.insertBefore(M,N)):E++,M.textContent=l._processStyleText(M.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,h),sl&&Mr&&Qa){const _=c.content.querySelectorAll("style");if(_){let p="";Array.from(_).forEach(y=>{p+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let c=null;if(l&&(!Qt||tl)&&(c=Ct.import(l,"template"),Qt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends e{static get polymerElementVersion(){return fd}static _finalizeClass(){e._finalizeClass.call(this);const c=i(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):ks||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let h in c)r(this.prototype,h,c[h],c)}static createObservers(c,h){const u=this.prototype;for(let _=0;_<c.length;_++)u._createMethodObserver(c[_],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=fo(c.url);else{const h=Ct.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=el,this.importPath=this.constructor.importPath;let c=t(this.constructor);if(c)for(let h in c){let u=c[h];if(this._canApplyPropertyDefault(h)){let _=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,_,!0):this[h]=_}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,h){return _o(c,h)}static _finalizeTemplate(c){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,_=u?bt(u):"";s(this,h,c,_),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const h=ae(this);if(h.attachShadow)return c?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:c}),h.shadowRoot.appendChild(c),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),il&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,h){return!h&&this.importPath&&(h=bt(this.importPath)),bt(c,h)}static _parseTemplateContent(c,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,c,h,u)}static _addTemplatePropertyEffect(c,h,u){return As&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,c,h,u)}}return a});/**
1016
1016
  @license
1017
1017
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1018
1018
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1020,7 +1020,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1020
1020
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1021
1021
  Code distributed by Google as part of the polymer project is also
1022
1022
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1023
- */const qr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class tn{constructor(e,t){rn(e,t);const i=t.reduce((r,s,n)=>r+on(s)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function on(o){if(o instanceof tn)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function gd(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof tn)return on(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const H=function(o,...e){rn(o,e);const t=document.createElement("template");let i=e.reduce((r,s,n)=>r+gd(s)+o[n+1],o[0]);return qr&&(i=qr.createHTML(i)),t.innerHTML=i,t},rn=(o,e)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||e.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1023
+ */const Nr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Us{constructor(e,t){Ks(e,t);const i=t.reduce((r,s,n)=>r+Ys(s)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ys(o){if(o instanceof Us)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function gd(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Us)return Ys(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const W=function(o,...e){Ks(o,e);const t=document.createElement("template");let i=e.reduce((r,s,n)=>r+gd(s)+o[n+1],o[0]);return Nr&&(i=Nr.createHTML(i)),t.innerHTML=i,t},Ks=(o,e)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||e.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
1024
  @license
1025
1025
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1026
1026
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1028,7 +1028,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1028
1028
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1029
1029
  Code distributed by Google as part of the polymer project is also
1030
1030
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1031
- */const $=vd(HTMLElement),bd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ti=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function yd(){function o(){return!0}return sn(o)}function xd(){try{return wd()?!0:Cd()?ti?!Pd():!yd():!1}catch(o){return!1}}function wd(){return localStorage.getItem("vaadin.developmentmode.force")}function Cd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Pd(){return!!(ti&&Object.keys(ti).map(o=>ti[o]).filter(o=>o.productionMode).length>0)}function sn(o,e){if(typeof o!="function")return;const t=bd.exec(o.toString());if(t)try{o=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(e)}window.Vaadin=window.Vaadin||{};const Ur=function(o,e){if(window.Vaadin.developmentMode)return sn(o,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=xd());function kd(){/*! vaadin-dev-mode:start
1031
+ */const j=vd(HTMLElement),bd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,jt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function yd(){function o(){return!0}return Gs(o)}function xd(){try{return wd()?!0:Cd()?jt?!Pd():!yd():!1}catch(o){return!1}}function wd(){return localStorage.getItem("vaadin.developmentmode.force")}function Cd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Pd(){return!!(jt&&Object.keys(jt).map(o=>jt[o]).filter(o=>o.productionMode).length>0)}function Gs(o,e){if(typeof o!="function")return;const t=bd.exec(o.toString());if(t)try{o=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(e)}window.Vaadin=window.Vaadin||{};const Lr=function(o,e){if(window.Vaadin.developmentMode)return Gs(o,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=xd());function kd(){/*! vaadin-dev-mode:start
1032
1032
  (function () {
1033
1033
  'use strict';
1034
1034
 
@@ -1506,7 +1506,7 @@ try {
1506
1506
 
1507
1507
  }());
1508
1508
 
1509
- vaadin-dev-mode:end **/}const Ad=function(){if(typeof Ur=="function")return Ur(kd)};/**
1509
+ vaadin-dev-mode:end **/}const Ad=function(){if(typeof Lr=="function")return Lr(kd)};/**
1510
1510
  * @license
1511
1511
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1512
1512
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1514,7 +1514,7 @@ try {
1514
1514
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1515
1515
  * Code distributed by Google as part of the polymer project is also
1516
1516
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1517
- */let Yr=0,nn=0;const ct=[];let oo=!1;function Ed(){oo=!1;const o=ct.length;for(let e=0;e<o;e++){const t=ct[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ct.splice(0,o),nn+=o}const Fe={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},Ft={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},an={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},ui={run(o){oo||(oo=!0,queueMicrotask(()=>Ed())),ct.push(o);const e=Yr;return Yr+=1,e},cancel(o){const e=o-nn;if(e>=0){if(!ct[e])throw new Error(`invalid async handle: ${o}`);ct[e]=null}}};/**
1517
+ */let Vr=0,Js=0;const it=[];let Ui=!1;function Ed(){Ui=!1;const o=it.length;for(let e=0;e<o;e++){const t=it[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}it.splice(0,o),Js+=o}const Ne={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},It={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Xs={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},ti={run(o){Ui||(Ui=!0,queueMicrotask(()=>Ed())),it.push(o);const e=Vr;return Vr+=1,e},cancel(o){const e=o-Js;if(e>=0){if(!it[e])throw new Error(`invalid async handle: ${o}`);it[e]=null}}};/**
1518
1518
  @license
1519
1519
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1520
1520
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1522,35 +1522,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1522
1522
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1523
1523
  Code distributed by Google as part of the polymer project is also
1524
1524
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1525
- */const Bt=new Set;let be=class ro{static debounce(e,t,i){return e instanceof ro?e._cancelAsync():e=new ro,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Bt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Bt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function ln(o){Bt.add(o)}function Id(){const o=!!Bt.size;return Bt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o}const It=()=>{let o;do o=Id();while(o)};/**
1525
+ */const St=new Set;let ge=class Yi{static debounce(e,t,i){return e instanceof Yi?e._cancelAsync():e=new Yi,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,St.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),St.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Zs(o){St.add(o)}function Id(){const o=!!St.size;return St.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o}const vt=()=>{let o;do o=Id();while(o)};/**
1526
1526
  * @license
1527
1527
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1528
1528
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1529
- */const De=[];function so(o,e,t=o.getAttribute("dir")){e?o.setAttribute("dir",e):t!=null&&o.removeAttribute("dir")}function no(){return document.documentElement.getAttribute("dir")}function Sd(){const o=no();De.forEach(e=>{so(e,o)})}const Td=new MutationObserver(Sd);Td.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Pe=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),so(this,no(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const r=no(),s=i===r&&De.indexOf(this)===-1,n=!i&&t&&De.indexOf(this)===-1;s||n?(this.__subscribe(),so(this,r,i)):i!==r&&t===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=De.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){De.includes(this)||De.push(this)}__unsubscribe(){De.includes(this)&&De.splice(De.indexOf(this),1)}};/**
1529
+ */const Se=[];function Ki(o,e,t=o.getAttribute("dir")){e?o.setAttribute("dir",e):t!=null&&o.removeAttribute("dir")}function Gi(){return document.documentElement.getAttribute("dir")}function Sd(){const o=Gi();Se.forEach(e=>{Ki(e,o)})}const Td=new MutationObserver(Sd);Td.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const xe=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Ki(this,Gi(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const r=Gi(),s=i===r&&Se.indexOf(this)===-1,n=!i&&t&&Se.indexOf(this)===-1;s||n?(this.__subscribe(),Ki(this,r,i)):i!==r&&t===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Se.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){Se.includes(this)||Se.push(this)}__unsubscribe(){Se.includes(this)&&Se.splice(Se.indexOf(this),1)}};/**
1530
1530
  * @license
1531
1531
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1532
1532
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1533
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ad()};let Vi;const Kr=new Set,Ie=o=>class extends Pe(o){static finalize(){super.finalize();const{is:e}=this;e&&!Kr.has(e)&&(window.Vaadin.registrations.push(this),Kr.add(e),window.Vaadin.developmentModeCallback&&(Vi=be.debounce(Vi,an,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ln(Vi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1533
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ad()};let Ei;const Fr=new Set,Ae=o=>class extends xe(o){static finalize(){super.finalize();const{is:e}=this;e&&!Fr.has(e)&&(window.Vaadin.registrations.push(this),Fr.add(e),window.Vaadin.developmentModeCallback&&(Ei=ge.debounce(Ei,Xs,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Zs(Ei)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
1534
  * @license
1535
1535
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1536
1536
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1537
- */function Dd(o){const e=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){e.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return e}function dn(o){const e=[];let t;return o.localName==="slot"?t=o.assignedElements():(e.push(o),t=[...o.children]),t.forEach(i=>e.push(...dn(i))),e}function Do(o){return o?new Set(o.split(" ")):new Set}function bi(o){return o?[...o].join(" "):""}function cn(o,e,t){const i=Do(o.getAttribute(e));i.add(t),o.setAttribute(e,bi(i))}function Od(o,e,t){const i=Do(o.getAttribute(e));if(i.delete(t),i.size===0){o.removeAttribute(e);return}o.setAttribute(e,bi(i))}function Rd(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
1537
+ */function Dd(o){const e=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){e.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return e}function Qs(o){const e=[];let t;return o.localName==="slot"?t=o.assignedElements():(e.push(o),t=[...o.children]),t.forEach(i=>e.push(...Qs(i))),e}function yo(o){return o?new Set(o.split(" ")):new Set}function li(o){return o?[...o].join(" "):""}function en(o,e,t){const i=yo(o.getAttribute(e));i.add(t),o.setAttribute(e,li(i))}function Rd(o,e,t){const i=yo(o.getAttribute(e));if(i.delete(t),i.size===0){o.removeAttribute(e);return}o.setAttribute(e,li(i))}function Od(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
1538
1538
  * @license
1539
1539
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1540
1540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1541
- */class Oo{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],r=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=e.indexOf(s);a===-1?i.push(s):a!==n&&r.push(s)}),(t.length||i.length||r.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:r,removedNodes:i}),this._storedNodes=e}}/**
1541
+ */class xo{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],r=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=e.indexOf(s);a===-1?i.push(s):a!==n&&r.push(s)}),(t.length||i.length||r.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:r,removedNodes:i}),this._storedNodes=e}}/**
1542
1542
  * @license
1543
1543
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1544
1544
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1545
- */let zd=0;function yi(){return zd++}/**
1545
+ */let zd=0;function di(){return zd++}/**
1546
1546
  * @license
1547
1547
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1548
1548
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1549
- */class Ee extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${yi()}`}constructor(e,t,i,r={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:d,uniqueIdPrefix:c}=r;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),d&&(this.defaultId=this.constructor.generateId(e,c||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(t!==""&&r.setAttribute("slot",t),this.defaultNode=r)),r&&(this.node=r,e.appendChild(r)),r}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Oo(i,({addedNodes:r,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=r.filter(d=>!Rd(d)&&!n.includes(d));s.length&&(this.nodes=n.filter(d=>!s.includes(d)),s.forEach(d=>{this.teardownNode(d)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(d=>d!==this.defaultNode),a.forEach(d=>{this.initAddedNode(d)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1549
+ */class ke extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${di()}`}constructor(e,t,i,r={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:c}=r;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,c||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(t!==""&&r.setAttribute("slot",t),this.defaultNode=r)),r&&(this.node=r,e.appendChild(r)),r}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new xo(i,({addedNodes:r,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=r.filter(l=>!Od(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1550
1550
  * @license
1551
1551
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1552
1552
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1553
- */class $e extends Ee{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1553
+ */class Fe extends ke{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1554
1554
  @license
1555
1555
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1556
1556
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1558,107 +1558,107 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1558
1558
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1559
1559
  Code distributed by Google as part of the polymer project is also
1560
1560
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1561
- */const Md=!1,Nd=o=>o,Ro=typeof document.head.style.touchAction=="string",ao="__polymerGestures",Fi="__polymerGesturesHandled",lo="__polymerGesturesTouchAction",Gr=25,Jr=5,Ld=2,Vd=["mousedown","mousemove","mouseup","click"],Fd=[0,1,4,2],Bd=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function zo(o){return Vd.indexOf(o)>-1}let hn=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){hn=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Hd(o){if(!(zo(o)||o==="touchend")&&Ro&&hn&&Md)return{passive:!0}}const $d=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),jd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Je(o){const e=o.type;if(!zo(e))return!1;if(e==="mousemove"){let t=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Bd&&(t=Fd[o.which]||0),!!(t&1)}return(o.button===void 0?0:o.button)===0}function Wd(o){if(o.type==="click"){if(o.detail===0)return!0;const e=Be(o);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=o.pageX,r=o.pageY;return!(i>=t.left&&i<=t.right&&r>=t.top&&r<=t.bottom)}return!1}const Oe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function qd(o){let e="auto";const t=pn(o);for(let i=0,r;i<t.length;i++)if(r=t[i],r[lo]){e=r[lo];break}return e}function un(o,e,t){o.movefn=e,o.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function ht(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const pn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Mo={},Ge=[];function Ud(o,e){let t=document.elementFromPoint(o,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const r=i;if(i=i.shadowRoot.elementFromPoint(o,e),r===i)break;i&&(t=i)}return t}function Be(o){const e=pn(o);return e.length>0?e[0]:o.target}function Yd(o){const e=o.type,t=o.currentTarget[ao];if(!t)return;const i=t[e];if(!i)return;if(!o[Fi]&&(o[Fi]={},e.startsWith("touch"))){const s=o.changedTouches[0];if(e==="touchstart"&&o.touches.length===1&&(Oe.touch.id=s.identifier),Oe.touch.id!==s.identifier)return;Ro||(e==="touchstart"||e==="touchmove")&&Kd(o)}const r=o[Fi];if(!r.skip){for(let s=0,n;s<Ge.length;s++)n=Ge[s],i[n.name]&&!r[n.name]&&n.flow&&n.flow.start.indexOf(o.type)>-1&&n.reset&&n.reset();for(let s=0,n;s<Ge.length;s++)n=Ge[s],i[n.name]&&!r[n.name]&&(r[n.name]=!0,n[e](o))}}function Kd(o){const e=o.changedTouches[0],t=o.type;if(t==="touchstart")Oe.touch.x=e.clientX,Oe.touch.y=e.clientY,Oe.touch.scrollDecided=!1;else if(t==="touchmove"){if(Oe.touch.scrollDecided)return;Oe.touch.scrollDecided=!0;const i=qd(o);let r=!1;const s=Math.abs(Oe.touch.x-e.clientX),n=Math.abs(Oe.touch.y-e.clientY);o.cancelable&&(i==="none"?r=!0:i==="pan-x"?r=n>s:i==="pan-y"&&(r=s>n)),r?o.preventDefault():pi("track")}}function Ae(o,e,t){return Mo[e]?(Gd(o,e,t),!0):!1}function Gd(o,e,t){const i=Mo[e],r=i.deps,s=i.name;let n=o[ao];n||(o[ao]=n={});for(let a=0,d,c;a<r.length;a++)d=r[a],!($d&&zo(d)&&d!=="click")&&(c=n[d],c||(n[d]=c={_count:0}),c._count===0&&o.addEventListener(d,Yd,Hd(d)),c[s]=(c[s]||0)+1,c._count=(c._count||0)+1);o.addEventListener(e,t),i.touchAction&&mn(o,i.touchAction)}function No(o){Ge.push(o),o.emits.forEach(e=>{Mo[e]=o})}function Jd(o){for(let e=0,t;e<Ge.length;e++){t=Ge[e];for(let i=0,r;i<t.emits.length;i++)if(r=t.emits[i],r===o)return t}return null}function mn(o,e){Ro&&o instanceof HTMLElement&&ui.run(()=>{o.style.touchAction=e}),o[lo]=e}function Lo(o,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Nd(o).dispatchEvent(i),i.defaultPrevented){const r=t.preventer||t.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function pi(o){const e=Jd(o);e.info&&(e.info.prevent=!0)}No({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ht(this.info)},mousedown(o){if(!Je(o))return;const e=Be(o),t=this,i=s=>{Je(s)||(Pt("up",e,s),ht(t.info))},r=s=>{Je(s)&&Pt("up",e,s),ht(t.info)};un(this.info,i,r),Pt("down",e,o)},touchstart(o){Pt("down",Be(o),o.changedTouches[0],o)},touchend(o){Pt("up",Be(o),o.changedTouches[0],o)}});function Pt(o,e,t,i){e&&Lo(e,o,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(r){return pi(r)}})}No({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>Ld&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ht(this.info)},mousedown(o){if(!Je(o))return;const e=Be(o),t=this,i=s=>{const n=s.clientX,a=s.clientY;Xr(t.info,n,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&pi("tap"),t.info.addMove({x:n,y:a}),Je(s)||(t.info.state="end",ht(t.info)),e&&Bi(t.info,e,s),t.info.started=!0)},r=s=>{t.info.started&&i(s),ht(t.info)};un(this.info,i,r),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(o){const e=Be(o),t=o.changedTouches[0],i=t.clientX,r=t.clientY;Xr(this.info,i,r)&&(this.info.state==="start"&&pi("tap"),this.info.addMove({x:i,y:r}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(o){const e=Be(o),t=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function Xr(o,e,t){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-e),r=Math.abs(o.y-t);return i>=Jr||r>=Jr}function Bi(o,e,t){if(!e)return;const i=o.moves[o.moves.length-2],r=o.moves[o.moves.length-1],s=r.x-o.x,n=r.y-o.y;let a,d=0;i&&(a=r.x-i.x,d=r.y-i.y),Lo(e,"track",{state:o.state,x:t.clientX,y:t.clientY,dx:s,dy:n,ddx:a,ddy:d,sourceEvent:t,hover(){return Ud(t.clientX,t.clientY)}})}No({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){Je(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Je(o)&&Zr(this.info,o)},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(o){Zr(this.info,o.changedTouches[0],o)}});function Zr(o,e,t){const i=Math.abs(e.clientX-o.x),r=Math.abs(e.clientY-o.y),s=Be(t||e);!s||jd[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(r)||i<=Gr&&r<=Gr||Wd(e))&&(o.prevent||Lo(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1561
+ */const Md=!1,Nd=o=>o,wo=typeof document.head.style.touchAction=="string",Ji="__polymerGestures",Ii="__polymerGesturesHandled",Xi="__polymerGesturesTouchAction",Br=25,Hr=5,Ld=2,Vd=["mousedown","mousemove","mouseup","click"],Fd=[0,1,4,2],Bd=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Co(o){return Vd.indexOf(o)>-1}let tn=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){tn=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Hd(o){if(!(Co(o)||o==="touchend")&&wo&&tn&&Md)return{passive:!0}}const $d=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Wd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ue(o){const e=o.type;if(!Co(e))return!1;if(e==="mousemove"){let t=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Bd&&(t=Fd[o.which]||0),!!(t&1)}return(o.button===void 0?0:o.button)===0}function jd(o){if(o.type==="click"){if(o.detail===0)return!0;const e=Le(o);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=o.pageX,r=o.pageY;return!(i>=t.left&&i<=t.right&&r>=t.top&&r<=t.bottom)}return!1}const Te={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function qd(o){let e="auto";const t=rn(o);for(let i=0,r;i<t.length;i++)if(r=t[i],r[Xi]){e=r[Xi];break}return e}function on(o,e,t){o.movefn=e,o.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function ot(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const rn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Po={},qe=[];function Ud(o,e){let t=document.elementFromPoint(o,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const r=i;if(i=i.shadowRoot.elementFromPoint(o,e),r===i)break;i&&(t=i)}return t}function Le(o){const e=rn(o);return e.length>0?e[0]:o.target}function Yd(o){const e=o.type,t=o.currentTarget[Ji];if(!t)return;const i=t[e];if(!i)return;if(!o[Ii]&&(o[Ii]={},e.startsWith("touch"))){const s=o.changedTouches[0];if(e==="touchstart"&&o.touches.length===1&&(Te.touch.id=s.identifier),Te.touch.id!==s.identifier)return;wo||(e==="touchstart"||e==="touchmove")&&Kd(o)}const r=o[Ii];if(!r.skip){for(let s=0,n;s<qe.length;s++)n=qe[s],i[n.name]&&!r[n.name]&&n.flow&&n.flow.start.indexOf(o.type)>-1&&n.reset&&n.reset();for(let s=0,n;s<qe.length;s++)n=qe[s],i[n.name]&&!r[n.name]&&(r[n.name]=!0,n[e](o))}}function Kd(o){const e=o.changedTouches[0],t=o.type;if(t==="touchstart")Te.touch.x=e.clientX,Te.touch.y=e.clientY,Te.touch.scrollDecided=!1;else if(t==="touchmove"){if(Te.touch.scrollDecided)return;Te.touch.scrollDecided=!0;const i=qd(o);let r=!1;const s=Math.abs(Te.touch.x-e.clientX),n=Math.abs(Te.touch.y-e.clientY);o.cancelable&&(i==="none"?r=!0:i==="pan-x"?r=n>s:i==="pan-y"&&(r=s>n)),r?o.preventDefault():ii("track")}}function Pe(o,e,t){return Po[e]?(Gd(o,e,t),!0):!1}function Gd(o,e,t){const i=Po[e],r=i.deps,s=i.name;let n=o[Ji];n||(o[Ji]=n={});for(let a=0,l,c;a<r.length;a++)l=r[a],!($d&&Co(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&o.addEventListener(l,Yd,Hd(l)),c[s]=(c[s]||0)+1,c._count=(c._count||0)+1);o.addEventListener(e,t),i.touchAction&&sn(o,i.touchAction)}function ko(o){qe.push(o),o.emits.forEach(e=>{Po[e]=o})}function Jd(o){for(let e=0,t;e<qe.length;e++){t=qe[e];for(let i=0,r;i<t.emits.length;i++)if(r=t.emits[i],r===o)return t}return null}function sn(o,e){wo&&o instanceof HTMLElement&&ti.run(()=>{o.style.touchAction=e}),o[Xi]=e}function Ao(o,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Nd(o).dispatchEvent(i),i.defaultPrevented){const r=t.preventer||t.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function ii(o){const e=Jd(o);e.info&&(e.info.prevent=!0)}ko({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ot(this.info)},mousedown(o){if(!Ue(o))return;const e=Le(o),t=this,i=s=>{Ue(s)||(pt("up",e,s),ot(t.info))},r=s=>{Ue(s)&&pt("up",e,s),ot(t.info)};on(this.info,i,r),pt("down",e,o)},touchstart(o){pt("down",Le(o),o.changedTouches[0],o)},touchend(o){pt("up",Le(o),o.changedTouches[0],o)}});function pt(o,e,t,i){e&&Ao(e,o,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(r){return ii(r)}})}ko({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>Ld&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ot(this.info)},mousedown(o){if(!Ue(o))return;const e=Le(o),t=this,i=s=>{const n=s.clientX,a=s.clientY;$r(t.info,n,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&ii("tap"),t.info.addMove({x:n,y:a}),Ue(s)||(t.info.state="end",ot(t.info)),e&&Si(t.info,e,s),t.info.started=!0)},r=s=>{t.info.started&&i(s),ot(t.info)};on(this.info,i,r),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(o){const e=Le(o),t=o.changedTouches[0],i=t.clientX,r=t.clientY;$r(this.info,i,r)&&(this.info.state==="start"&&ii("tap"),this.info.addMove({x:i,y:r}),Si(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(o){const e=Le(o),t=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Si(this.info,e,t))}});function $r(o,e,t){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-e),r=Math.abs(o.y-t);return i>=Hr||r>=Hr}function Si(o,e,t){if(!e)return;const i=o.moves[o.moves.length-2],r=o.moves[o.moves.length-1],s=r.x-o.x,n=r.y-o.y;let a,l=0;i&&(a=r.x-i.x,l=r.y-i.y),Ao(e,"track",{state:o.state,x:t.clientX,y:t.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:t,hover(){return Ud(t.clientX,t.clientY)}})}ko({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){Ue(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Ue(o)&&Wr(this.info,o)},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(o){Wr(this.info,o.changedTouches[0],o)}});function Wr(o,e,t){const i=Math.abs(e.clientX-o.x),r=Math.abs(e.clientY-o.y),s=Le(t||e);!s||Wd[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(r)||i<=Br&&r<=Br||jd(e))&&(o.prevent||Ao(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
1562
  * @license
1563
1563
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1564
1564
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1565
- */const vt=Z(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1565
+ */const dt=X(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1566
1566
  * @license
1567
1567
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1568
1568
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1569
- */const Qe=Z(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1569
+ */const Ge=X(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1570
1570
  * @license
1571
1571
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1572
1572
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1573
- */const Vo=o=>class extends vt(Qe(o)){get _activeKeys(){return[" "]}ready(){super.ready(),Ae(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ae(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1573
+ */const Eo=o=>class extends dt(Ge(o)){get _activeKeys(){return[" "]}ready(){super.ready(),Pe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Pe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
- */let Fo=!1;window.addEventListener("keydown",()=>{Fo=!0},{capture:!0});window.addEventListener("mousedown",()=>{Fo=!1},{capture:!0});function co(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function xi(){return Fo}function _n(o){const e=o.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(o);return t.visibility==="hidden"||t.display==="none"}function Xd(o,e){const t=Math.max(o.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function Zd(o,e){const t=[];for(;o.length>0&&e.length>0;)Xd(o[0],e[0])?t.push(e.shift()):t.push(o.shift());return t.concat(o,e)}function ho(o){const e=o.length;if(e<2)return o;const t=Math.ceil(e/2),i=ho(o.slice(0,t)),r=ho(o.slice(t));return Zd(i,r)}function uo(o){return o.offsetParent===null&&o.clientWidth===0&&o.clientHeight===0?!0:_n(o)}function Bo(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ho(o){return o.getRootNode().activeElement===o}function Qd(o){if(!Bo(o))return-1;const e=o.getAttribute("tabindex")||0;return Number(e)}function fn(o,e){if(o.nodeType!==Node.ELEMENT_NODE||_n(o))return!1;const t=o,i=Qd(t);let r=i>0;i>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(n=>{r=fn(n,e)||r}),r}function ec(o){const e=[];return fn(o,e)?ho(e):e}/**
1577
+ */let Io=!1;window.addEventListener("keydown",()=>{Io=!0},{capture:!0});window.addEventListener("mousedown",()=>{Io=!1},{capture:!0});function Zi(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function ci(){return Io}function nn(o){const e=o.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(o);return t.visibility==="hidden"||t.display==="none"}function Xd(o,e){const t=Math.max(o.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function Zd(o,e){const t=[];for(;o.length>0&&e.length>0;)Xd(o[0],e[0])?t.push(e.shift()):t.push(o.shift());return t.concat(o,e)}function Qi(o){const e=o.length;if(e<2)return o;const t=Math.ceil(e/2),i=Qi(o.slice(0,t)),r=Qi(o.slice(t));return Zd(i,r)}function eo(o){return o.offsetParent===null&&o.clientWidth===0&&o.clientHeight===0?!0:nn(o)}function So(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function To(o){return o.getRootNode().activeElement===o}function Qd(o){if(!So(o))return-1;const e=o.getAttribute("tabindex")||0;return Number(e)}function an(o,e){if(o.nodeType!==Node.ELEMENT_NODE||nn(o))return!1;const t=o,i=Qd(t);let r=i>0;i>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(n=>{r=an(n,e)||r}),r}function ec(o){const e=[];return an(o,e)?Qi(e):e}/**
1578
1578
  * @license
1579
1579
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1580
1580
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1581
- */const et=Z(o=>class extends o{get _keyboardActive(){return xi()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1581
+ */const Je=X(o=>class extends o{get _keyboardActive(){return ci()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
1582
  * @license
1583
1583
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1584
1584
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1585
- */const vn=o=>class extends vt(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1585
+ */const ln=o=>class extends dt(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1586
1586
  * @license
1587
1587
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1588
1588
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1589
- */const wi=Z(o=>class extends et(vn(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1589
+ */const hi=X(o=>class extends Je(ln(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
1590
  * @license
1591
1591
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1592
1592
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1593
- */const $o=Z(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1593
+ */const Do=X(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
1594
  * @license
1595
1595
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1596
1596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
- */const jt=Z(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1597
+ */const Rt=X(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1598
1598
  * @license
1599
1599
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1600
1600
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1601
- */const tc=Z(o=>class extends $o(vt(jt(o))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1601
+ */const tc=X(o=>class extends Do(dt(Rt(o))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
1602
  * @license
1603
1603
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1604
1604
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1605
- */const Hi=new Map;function jo(o){return Hi.has(o)||Hi.set(o,new WeakMap),Hi.get(o)}function gn(o,e){o&&o.removeAttribute(e)}function bn(o,e){if(!o||!e)return;const t=jo(e);if(t.has(o))return;const i=Do(o.getAttribute(e));t.set(o,new Set(i))}function ic(o,e){if(!o||!e)return;const t=jo(e),i=t.get(o);!i||i.size===0?o.removeAttribute(e):cn(o,e,bi(i)),t.delete(o)}function ii(o,e,t={newId:null,oldId:null,fromUser:!1}){if(!o||!e)return;const{newId:i,oldId:r,fromUser:s}=t,n=jo(e),a=n.get(o);if(!s&&a){r&&a.delete(r),i&&a.add(i);return}s&&(a?i||n.delete(o):bn(o,e),gn(o,e)),Od(o,e,r);const d=i||bi(a);d&&cn(o,e,d)}function oc(o,e){bn(o,e),gn(o,e)}/**
1605
+ */const Ti=new Map;function Ro(o){return Ti.has(o)||Ti.set(o,new WeakMap),Ti.get(o)}function dn(o,e){o&&o.removeAttribute(e)}function cn(o,e){if(!o||!e)return;const t=Ro(e);if(t.has(o))return;const i=yo(o.getAttribute(e));t.set(o,new Set(i))}function ic(o,e){if(!o||!e)return;const t=Ro(e),i=t.get(o);!i||i.size===0?o.removeAttribute(e):en(o,e,li(i)),t.delete(o)}function qt(o,e,t={newId:null,oldId:null,fromUser:!1}){if(!o||!e)return;const{newId:i,oldId:r,fromUser:s}=t,n=Ro(e),a=n.get(o);if(!s&&a){r&&a.delete(r),i&&a.add(i);return}s&&(a?i||n.delete(o):cn(o,e),dn(o,e)),Rd(o,e,r);const l=i||li(a);l&&en(o,e,l)}function oc(o,e){cn(o,e),dn(o,e)}/**
1606
1606
  * @license
1607
1607
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1608
1608
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1609
- */class rc{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(oc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(ic(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){ii(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){ii(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){ii(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1609
+ */class rc{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(oc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(ic(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){qt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){qt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){qt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1610
1610
  * @license
1611
1611
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1612
1612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1613
- */const je=Z(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1613
+ */const Be=X(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1614
1614
  * @license
1615
1615
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1616
1616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1617
- */const ke=document.createElement("div");ke.style.position="fixed";ke.style.clip="rect(0px, 0px, 0px, 0px)";ke.setAttribute("aria-live","polite");document.body.appendChild(ke);let Kt;function oi(o,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(ke.removeAttribute("aria-live"),ke.removeAttribute("role"),Kt=be.debounce(Kt,Ft,()=>{ke.setAttribute("role","alert")})):(Kt&&Kt.cancel(),ke.removeAttribute("role"),ke.setAttribute("aria-live",t)),ke.textContent="",setTimeout(()=>{ke.textContent=o},i)}/**
1617
+ */const we=document.createElement("div");we.style.position="fixed";we.style.clip="rect(0px, 0px, 0px, 0px)";we.setAttribute("aria-live","polite");document.body.appendChild(we);let Lt;function Ut(o,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(we.removeAttribute("aria-live"),we.removeAttribute("role"),Lt=ge.debounce(Lt,It,()=>{we.setAttribute("role","alert")})):(Lt&&Lt.cancel(),we.removeAttribute("role"),we.setAttribute("aria-live",t)),we.textContent="",setTimeout(()=>{we.textContent=o},i)}/**
1618
1618
  * @license
1619
1619
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1620
1620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1621
- */class Wo extends Ee{constructor(e,t,i,r={}){super(e,t,i,gs(ri({},r),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const r=i.target,s=r===this.node;i.type==="attributes"?s&&this.__updateNodeId(r):(s||r.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1621
+ */class Oo extends ke{constructor(e,t,i,r={}){super(e,t,i,ds(Yt({},r),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const r=i.target,s=r===this.node;i.type==="attributes"?s&&this.__updateNodeId(r):(s||r.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
1622
  * @license
1623
1623
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1624
1624
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1625
- */class sc extends Wo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,r=!!(i&&t&&t.trim()!=="");e&&(e.textContent=r?t:"",e.hidden=!r,r&&oi(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1625
+ */class sc extends Oo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,r=!!(i&&t&&t.trim()!=="");e&&(e.textContent=r?t:"",e.hidden=!r,r&&Ut(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1626
1626
  * @license
1627
1627
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1628
1628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1629
- */class nc extends Wo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1629
+ */class nc extends Oo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1630
1630
  * @license
1631
1631
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1632
1632
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1633
- */class yn extends Wo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1633
+ */class hn extends Oo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1634
1634
  * @license
1635
1635
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1636
1636
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1637
- */const ac=Z(o=>class extends je(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new yn(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1637
+ */const ac=X(o=>class extends Be(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new hn(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
1638
  * @license
1639
1639
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1640
1640
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1641
- */const qo=Z(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1641
+ */const zo=X(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
1642
  * @license
1643
1643
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1644
1644
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1645
- */const Ci=o=>class extends qo(ac(je(o))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new rc(this),this._helperController=new nc(this),this._errorController=new sc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1645
+ */const ui=o=>class extends zo(ac(Be(o))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new rc(this),this._helperController=new nc(this),this._errorController=new sc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1646
1646
  * @license
1647
1647
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1649
- */class Wt extends Ee{constructor(e,t,i={}){const{uniqueIdPrefix:r}=i;super(e,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:r})}}/**
1649
+ */class Ot extends ke{constructor(e,t,i={}){const{uniqueIdPrefix:r}=i;super(e,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:r})}}/**
1650
1650
  * @license
1651
1651
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1652
1652
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1653
- */class qt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1653
+ */class zt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1654
1654
  * @license
1655
1655
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1656
1656
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1657
- */const lc=o=>class extends Ci(tc(wi(Vo(o)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Wt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qt(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1657
+ */const lc=o=>class extends ui(tc(hi(Eo(o)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Ot(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
1658
  * @license
1659
1659
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1660
1660
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1661
- */const dc=y`
1661
+ */const dc=w`
1662
1662
  :host {
1663
1663
  display: inline-block;
1664
1664
  }
@@ -1750,7 +1750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1750
1750
  * @license
1751
1751
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1752
1752
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1753
- */C("vaadin-checkbox",dc,{moduleId:"vaadin-checkbox-styles"});class cc extends lc(Ie(Y($))){static get is(){return"vaadin-checkbox"}static get template(){return H`
1753
+ */k("vaadin-checkbox",dc,{moduleId:"vaadin-checkbox-styles"});class cc extends lc(Ae(Y(j))){static get is(){return"vaadin-checkbox"}static get template(){return W`
1754
1754
  <div class="vaadin-checkbox-container">
1755
1755
  <div part="checkbox" aria-hidden="true"></div>
1756
1756
  <slot name="input"></slot>
@@ -1766,11 +1766,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1766
1766
  </div>
1767
1767
  </div>
1768
1768
  <slot name="tooltip"></slot>
1769
- `}ready(){super.ready(),this._tooltipController=new $e(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}V(cc);/**
1769
+ `}ready(){super.ready(),this._tooltipController=new Fe(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}V(cc);/**
1770
1770
  * @license
1771
1771
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1772
1772
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1773
- */const xn=y`
1773
+ */const un=w`
1774
1774
  :host {
1775
1775
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1776
1776
  }
@@ -1830,7 +1830,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1830
1830
  * @license
1831
1831
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1832
1832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1833
- */const Uo=y`
1833
+ */const Mo=w`
1834
1834
  [part='label'] {
1835
1835
  align-self: flex-start;
1836
1836
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1942,7 +1942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1942
1942
  margin-left: 0;
1943
1943
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1944
1944
  }
1945
- `;C("",Uo,{moduleId:"lumo-required-field"});const hc=y`
1945
+ `;k("",Mo,{moduleId:"lumo-required-field"});const hc=w`
1946
1946
  :host {
1947
1947
  color: var(--lumo-body-text-color);
1948
1948
  font-size: var(--lumo-font-size-m);
@@ -1985,15 +1985,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1985
1985
  color: var(--lumo-secondary-text-color);
1986
1986
  }
1987
1987
  }
1988
- `;C("vaadin-checkbox-group",[Uo,xn,hc],{moduleId:"lumo-checkbox-group"});/**
1988
+ `;k("vaadin-checkbox-group",[Mo,un,hc],{moduleId:"lumo-checkbox-group"});/**
1989
1989
  * @license
1990
1990
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1991
1991
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1992
- */const uc=o=>class extends Ci(et(vt(o))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new $e(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oo(e,({addedNodes:t,removedNodes:i})=>{const r=this.__filterCheckboxes(t),s=this.__filterCheckboxes(i);r.forEach(this.__registerCheckbox),s.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(r)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1992
+ */const uc=o=>class extends ui(Je(dt(o))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Fe(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new xo(e,({addedNodes:t,removedNodes:i})=>{const r=this.__filterCheckboxes(t),s=this.__filterCheckboxes(i);r.forEach(this.__registerCheckbox),s.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(r)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
1993
  * @license
1994
1994
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1995
1995
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1996
- */const pc=y`
1996
+ */const pc=w`
1997
1997
  :host {
1998
1998
  display: inline-flex;
1999
1999
  }
@@ -2026,7 +2026,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2026
2026
  * @license
2027
2027
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2028
2028
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2029
- */C("vaadin-checkbox-group",pc,{moduleId:"vaadin-checkbox-group-styles"});class mc extends uc(Ie(Y($))){static get is(){return"vaadin-checkbox-group"}static get template(){return H`
2029
+ */k("vaadin-checkbox-group",pc,{moduleId:"vaadin-checkbox-group-styles"});class mc extends uc(Ae(Y(j))){static get is(){return"vaadin-checkbox-group"}static get template(){return W`
2030
2030
  <div class="vaadin-group-field-container">
2031
2031
  <div part="label">
2032
2032
  <slot name="label"></slot>
@@ -2051,7 +2051,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2051
2051
  * @license
2052
2052
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2053
2053
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2054
- */const Pi=y`
2054
+ */const pi=w`
2055
2055
  :host {
2056
2056
  top: var(--lumo-space-m);
2057
2057
  right: var(--lumo-space-m);
@@ -2116,11 +2116,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2116
2116
  opacity: 1;
2117
2117
  }
2118
2118
  }
2119
- `;C("",Pi,{moduleId:"lumo-overlay"});/**
2119
+ `;k("",pi,{moduleId:"lumo-overlay"});/**
2120
2120
  * @license
2121
2121
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2122
2122
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2123
- */const ki=y`
2123
+ */const mi=w`
2124
2124
  :host([opening]),
2125
2125
  :host([closing]) {
2126
2126
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2150,7 +2150,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2150
2150
  opacity: 0;
2151
2151
  }
2152
2152
  }
2153
- `;C("",ki,{moduleId:"lumo-menu-overlay-core"});const _c=y`
2153
+ `;k("",mi,{moduleId:"lumo-menu-overlay-core"});const _c=w`
2154
2154
  /* Small viewport (bottom sheet) styles */
2155
2155
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2156
2156
  @media (max-width: 450px), (max-height: 450px) {
@@ -2212,7 +2212,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2212
2212
  transform: translateY(150%);
2213
2213
  }
2214
2214
  }
2215
- `,Yo=[Pi,ki,_c];C("",Yo,{moduleId:"lumo-menu-overlay"});const fc=y`
2215
+ `,No=[pi,mi,_c];k("",No,{moduleId:"lumo-menu-overlay"});const fc=w`
2216
2216
  [part='overlay'] {
2217
2217
  /*
2218
2218
  Width:
@@ -2257,7 +2257,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2257
2257
  max-height: 70vh;
2258
2258
  }
2259
2259
  }
2260
- `;C("vaadin-date-picker-overlay",[Yo,fc],{moduleId:"lumo-date-picker-overlay"});const wn=y`
2260
+ `;k("vaadin-date-picker-overlay",[No,fc],{moduleId:"lumo-date-picker-overlay"});const pn=w`
2261
2261
  :host {
2262
2262
  /* Sizing */
2263
2263
  --lumo-button-size: var(--lumo-size-m);
@@ -2533,7 +2533,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2533
2533
  margin-left: 0;
2534
2534
  margin-right: 0;
2535
2535
  }
2536
- `;C("vaadin-button",wn,{moduleId:"lumo-button"});C("vaadin-date-picker-year",y`
2536
+ `;k("vaadin-button",pn,{moduleId:"lumo-button"});k("vaadin-date-picker-year",w`
2537
2537
  :host([current]) [part='year-number'] {
2538
2538
  color: var(--lumo-primary-text-color);
2539
2539
  }
@@ -2557,7 +2557,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2557
2557
  color: var(--lumo-disabled-text-color);
2558
2558
  content: '\\2022';
2559
2559
  }
2560
- `,{moduleId:"lumo-date-picker-year"});C("vaadin-date-picker-overlay-content",y`
2560
+ `,{moduleId:"lumo-date-picker-year"});k("vaadin-date-picker-overlay-content",w`
2561
2561
  :host {
2562
2562
  position: relative;
2563
2563
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -2707,7 +2707,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2707
2707
  padding-left: 50px;
2708
2708
  }
2709
2709
  }
2710
- `,{moduleId:"lumo-date-picker-overlay-content"});C("vaadin-month-calendar",y`
2710
+ `,{moduleId:"lumo-date-picker-overlay-content"});k("vaadin-month-calendar",w`
2711
2711
  :host {
2712
2712
  -moz-user-select: none;
2713
2713
  -webkit-user-select: none;
@@ -2854,7 +2854,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2854
2854
  :host([disabled]) * {
2855
2855
  color: var(--lumo-disabled-text-color) !important;
2856
2856
  }
2857
- `,{moduleId:"lumo-month-calendar"});C("vaadin-input-container",y`
2857
+ `,{moduleId:"lumo-month-calendar"});k("vaadin-input-container",w`
2858
2858
  :host {
2859
2859
  background: var(--_background);
2860
2860
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -3036,7 +3036,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3036
3036
  * @license
3037
3037
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3038
3038
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3039
- */const Ko=y`
3039
+ */const Lo=w`
3040
3040
  [part$='button'] {
3041
3041
  flex: none;
3042
3042
  width: 1em;
@@ -3063,11 +3063,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3063
3063
  font-family: 'lumo-icons';
3064
3064
  display: block;
3065
3065
  }
3066
- `;C("",Ko,{moduleId:"lumo-field-button"});/**
3066
+ `;k("",Lo,{moduleId:"lumo-field-button"});/**
3067
3067
  * @license
3068
3068
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3069
3069
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3070
- */const vc=y`
3070
+ */const vc=w`
3071
3071
  :host {
3072
3072
  --lumo-text-field-size: var(--lumo-size-m);
3073
3073
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3198,7 +3198,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3198
3198
  [part='clear-button']::before {
3199
3199
  content: var(--lumo-icons-cross);
3200
3200
  }
3201
- `,tt=[Uo,Ko,xn,vc];C("",tt,{moduleId:"lumo-input-field-shared-styles"});const gc=y`
3201
+ `,Xe=[Mo,Lo,un,vc];k("",Xe,{moduleId:"lumo-input-field-shared-styles"});const gc=w`
3202
3202
  [part='toggle-button']::before {
3203
3203
  content: var(--lumo-icons-calendar);
3204
3204
  }
@@ -3220,7 +3220,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3220
3220
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3221
3221
  --_lumo-text-field-overflow-mask-image: none;
3222
3222
  }
3223
- `;C("vaadin-date-picker",[tt,gc],{moduleId:"lumo-date-picker"});/**
3223
+ `;k("vaadin-date-picker",[Xe,gc],{moduleId:"lumo-date-picker"});/**
3224
3224
  * @license
3225
3225
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3226
3226
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3228,7 +3228,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3228
3228
  * @license
3229
3229
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3230
3230
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3231
- */const yc=y`
3231
+ */const yc=w`
3232
3232
  :host {
3233
3233
  display: flex;
3234
3234
  align-items: center;
@@ -3297,15 +3297,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3297
3297
  * @license
3298
3298
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3299
3299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3300
- */C("vaadin-input-container",yc,{moduleId:"vaadin-input-container-styles"});class Cn extends bc(Y(Pe($))){static get is(){return"vaadin-input-container"}static get template(){return H`
3300
+ */k("vaadin-input-container",yc,{moduleId:"vaadin-input-container-styles"});class mn extends bc(Y(xe(j))){static get is(){return"vaadin-input-container"}static get template(){return W`
3301
3301
  <slot name="prefix"></slot>
3302
3302
  <slot></slot>
3303
3303
  <slot name="suffix"></slot>
3304
- `}}V(Cn);/**
3304
+ `}}V(mn);/**
3305
3305
  * @license
3306
3306
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3307
3307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
- */const Ai=y`
3308
+ */const _i=w`
3309
3309
  :host {
3310
3310
  z-index: 200;
3311
3311
  position: fixed;
@@ -3372,55 +3372,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3372
3372
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3373
3373
  Code distributed by Google as part of the polymer project is also
3374
3374
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3375
- */let po=!1,xc=[],Pn=[];function wc(){po=!0,requestAnimationFrame(function(){po=!1,Cc(xc),setTimeout(function(){Pc(Pn)})})}function Cc(o){for(;o.length;)kn(o.shift())}function Pc(o){for(let e=0,t=o.length;e<t;e++)kn(o.shift())}function kn(o){const e=o[0],t=o[1],i=o[2];try{t.apply(e,i)}catch(r){setTimeout(()=>{throw r})}}function An(o,e,t){po||wc(),Pn.push([o,e,t])}/**
3375
+ */let to=!1,xc=[],_n=[];function wc(){to=!0,requestAnimationFrame(function(){to=!1,Cc(xc),setTimeout(function(){Pc(_n)})})}function Cc(o){for(;o.length;)fn(o.shift())}function Pc(o){for(let e=0,t=o.length;e<t;e++)fn(o.shift())}function fn(o){const e=o[0],t=o[1],i=o[2];try{t.apply(e,i)}catch(r){setTimeout(()=>{throw r})}}function vn(o,e,t){to||wc(),_n.push([o,e,t])}/**
3376
3376
  * @license
3377
3377
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3378
3378
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3379
- */const Ei=o=>o.test(navigator.userAgent),mo=o=>o.test(navigator.platform),kc=o=>o.test(navigator.vendor);Ei(/Android/u);Ei(/Chrome/u)&&kc(/Google Inc/u);Ei(/Firefox/u);const Ac=mo(/^iPad/u)||mo(/^Mac/u)&&navigator.maxTouchPoints>1,Ec=mo(/^iPhone/u),Go=Ec||Ac,Ic=Ei(/^((?!chrome|android).)*safari/iu),_o=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
3379
+ */const fi=o=>o.test(navigator.userAgent),io=o=>o.test(navigator.platform),kc=o=>o.test(navigator.vendor);fi(/Android/u);fi(/Chrome/u)&&kc(/Google Inc/u);fi(/Firefox/u);const Ac=io(/^iPad/u)||io(/^Mac/u)&&navigator.maxTouchPoints>1,Ec=io(/^iPhone/u),Vo=Ec||Ac,Ic=fi(/^((?!chrome|android).)*safari/iu),oo=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
3380
3380
  * @license
3381
3381
  * Copyright (c) 2017 Anton Korzunov
3382
3382
  * SPDX-License-Identifier: MIT
3383
- */let nt=new WeakMap,Gt=new WeakMap,Jt={},$i=0;const Qr=o=>o&&o.nodeType===Node.ELEMENT_NODE,ji=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},Sc=(o,e)=>Qr(o)?e.map(t=>{if(!Qr(t))return ji(t,"is not a valid element"),null;let i=t;for(;i&&i!==o;){if(o.contains(i))return t;i=i.getRootNode().host}return ji(t,"is not contained inside",o),null}).filter(t=>!!t):(ji(o,"is not a valid element"),[]),Tc=(o,e,t,i)=>{const r=Sc(e,Array.isArray(o)?o:[o]);Jt[t]||(Jt[t]=new WeakMap);const s=Jt[t],n=[],a=new Set,d=new Set(r),c=u=>{if(!u||a.has(u))return;a.add(u);const _=u.assignedSlot;_&&c(_),c(u.parentNode||u.host)};r.forEach(c);const h=u=>{if(!u||d.has(u))return;const _=u.shadowRoot;(_?[...u.children,..._.children]:[...u.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))h(p);else{const w=p.getAttribute(i),I=w!==null&&w!=="false",T=(nt.get(p)||0)+1,M=(s.get(p)||0)+1;nt.set(p,T),s.set(p,M),n.push(p),T===1&&I&&Gt.set(p,!0),M===1&&p.setAttribute(t,"true"),I||p.setAttribute(i,"true")}})};return h(e),a.clear(),$i+=1,()=>{n.forEach(u=>{const _=nt.get(u)-1,p=s.get(u)-1;nt.set(u,_),s.set(u,p),_||(Gt.has(u)?Gt.delete(u):u.removeAttribute(i)),p||u.removeAttribute(t)}),$i-=1,$i||(nt=new WeakMap,nt=new WeakMap,Gt=new WeakMap,Jt={})}},En=(o,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Tc(i,e,t,"aria-hidden")};/**
3383
+ */let Ze=new WeakMap,Vt=new WeakMap,Ft={},Di=0;const jr=o=>o&&o.nodeType===Node.ELEMENT_NODE,Ri=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},Sc=(o,e)=>jr(o)?e.map(t=>{if(!jr(t))return Ri(t,"is not a valid element"),null;let i=t;for(;i&&i!==o;){if(o.contains(i))return t;i=i.getRootNode().host}return Ri(t,"is not contained inside",o),null}).filter(t=>!!t):(Ri(o,"is not a valid element"),[]),Tc=(o,e,t,i)=>{const r=Sc(e,Array.isArray(o)?o:[o]);Ft[t]||(Ft[t]=new WeakMap);const s=Ft[t],n=[],a=new Set,l=new Set(r),c=u=>{if(!u||a.has(u))return;a.add(u);const _=u.assignedSlot;_&&c(_),c(u.parentNode||u.host)};r.forEach(c);const h=u=>{if(!u||l.has(u))return;const _=u.shadowRoot;(_?[...u.children,..._.children]:[...u.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))h(p);else{const y=p.getAttribute(i),C=y!==null&&y!=="false",E=(Ze.get(p)||0)+1,L=(s.get(p)||0)+1;Ze.set(p,E),s.set(p,L),n.push(p),E===1&&C&&Vt.set(p,!0),L===1&&p.setAttribute(t,"true"),C||p.setAttribute(i,"true")}})};return h(e),a.clear(),Di+=1,()=>{n.forEach(u=>{const _=Ze.get(u)-1,p=s.get(u)-1;Ze.set(u,_),s.set(u,p),_||(Vt.has(u)?Vt.delete(u):u.removeAttribute(i)),p||u.removeAttribute(t)}),Di-=1,Di||(Ze=new WeakMap,Ze=new WeakMap,Vt=new WeakMap,Ft={})}},gn=(o,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),Tc(i,e,t,"aria-hidden")};/**
3384
3384
  * @license
3385
3385
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3386
3386
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3387
- */class Dc{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=En(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3387
+ */class Dc{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=gn(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3388
3388
  * @license
3389
3389
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3390
3390
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3391
- */class Oc{saveFocus(e){this.focusNode=e||co()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;co()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3391
+ */class Rc{saveFocus(e){this.focusNode=e||Zi()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;Zi()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3392
3392
  * @license
3393
3393
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3394
3394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3395
- */const Wi=[];class Rc{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return ec(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Ho).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Wi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Wi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Wi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,r=this.__focusedElementIndex,s=(t.length+r+i)%t.length,n=t[s];n.focus(),n.localName==="input"&&n.select()}}/**
3395
+ */const Oi=[];class Oc{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return ec(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(To).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Oi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Oi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Oi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,r=this.__focusedElementIndex,s=(t.length+r+i)%t.length,n=t[s];n.focus(),n.localName==="input"&&n.select()}}/**
3396
3396
  * @license
3397
3397
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3398
3398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3399
- */const zc=o=>class extends je(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Dc(this),this.__focusTrapController=new Rc(this),this.__focusRestorationController=new Oc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!xi();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=co();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3399
+ */const zc=o=>class extends Be(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Dc(this),this.__focusTrapController=new Oc(this),this.__focusRestorationController=new Rc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ci();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Zi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
3400
  * @license
3401
3401
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3402
3402
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3403
- */const In=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,e)=>o.__zIndex-e.__zIndex||0),fo=()=>In().filter(o=>o.$.overlay),Mc=o=>o===fo().pop(),Sn=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Mc(this)}bringToFront(){let e="";const t=In().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),fo().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=fo();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3403
+ */const bn=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,e)=>o.__zIndex-e.__zIndex||0),ro=()=>bn().filter(o=>o.$.overlay),Mc=o=>o===ro().pop(),yn=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Mc(this)}bringToFront(){let e="";const t=bn().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ro().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ro();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3404
3404
  * @license
3405
3405
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3406
3406
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3407
- */const Ii=o=>class extends zc(Sn(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Go&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){const s=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,n&&a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(n||d||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),An(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=s=>{s&&s.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3407
+ */const vi=o=>class extends zc(yn(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Vo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){const s=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,n&&a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(n||l||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),vn(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=s=>{s&&s.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3408
3408
  * @license
3409
3409
  * Copyright (c) 2024 Vaadin Ltd.
3410
3410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3411
- */function Nc(o,e){let t=null;const i=document.documentElement;function r(){t&&t.disconnect(),t=null}function s(n=!1,a=1){r();const{left:d,top:c,width:h,height:u}=o.getBoundingClientRect();if(n||e(),!h||!u)return;const _=Math.floor(c),p=Math.floor(i.clientWidth-(d+h)),w=Math.floor(i.clientHeight-(c+u)),I=Math.floor(d),T={rootMargin:`${-_}px ${-p}px ${-w}px ${-I}px`,threshold:Math.max(0,Math.min(1,a))||1};let M=!0;function N(L){let G=L[0].intersectionRatio;if(G!==a){if(!M)return s();G===0&&(G=1e-7),s(!1,G)}M=!1}t=new IntersectionObserver(N,T),t.observe(o)}return s(!0),r}/**
3411
+ */function Nc(o,e){let t=null;const i=document.documentElement;function r(){t&&t.disconnect(),t=null}function s(n=!1,a=1){r();const{left:l,top:c,width:h,height:u}=o.getBoundingClientRect();if(n||e(),!h||!u)return;const _=Math.floor(c),p=Math.floor(i.clientWidth-(l+h)),y=Math.floor(i.clientHeight-(c+u)),C=Math.floor(l),E={rootMargin:`${-_}px ${-p}px ${-y}px ${-C}px`,threshold:Math.max(0,Math.min(1,a))||1};let L=!0;function M(N){let Q=N[0].intersectionRatio;if(Q!==a){if(!L)return s();Q===0&&(Q=1e-7),s(!1,Q)}L=!1}t=new IntersectionObserver(M,E),t.observe(o)}return s(!0),r}/**
3412
3412
  * @license
3413
3413
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3414
3414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3415
- */const qi={start:"top",end:"bottom"},Ui={start:"left",end:"right"},es=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Jo=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Dd(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Nc(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,es.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,es.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),s=!i&&r||i&&!r;this.style.alignItems=s?"flex-start":"flex-end";const n=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,qi,this,t),d=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Ui,this,r);Object.assign(this.style,a,d),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,s,this.noHorizontalOverlap,Ui)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,qi)}__shouldAlignStart(e,t,i,r,s,n,a){const d=i-e[n?a.end:a.start]-r[a.end],c=e[n?a.start:a.end]-r[a.start],h=s?d:c,u=h>(s?c:d)||h>t;return s===u}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===qi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const n=this.__oldViewportHeight-s;r=i-n}this.__oldViewportHeight=s}if(t.end===Ui.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const n=this.__oldViewportWidth-s;r=i-n}this.__oldViewportWidth=s}}return r}__calculatePositionInOneDimension(e,t,i,r,s,n){const a=n?r.start:r.end,d=n?r.end:r.start,c=parseFloat(s.style[a]||getComputedStyle(s)[a]),h=this.__adjustBottomProperty(a,r,c),u=t[n?r.start:r.end]-e[i===n?r.end:r.start],_=h?`${h}px`:`${c+u*(n?-1:1)}px`;return{[a]:_,[d]:""}}};/**
3415
+ */const zi={start:"top",end:"bottom"},Mi={start:"left",end:"right"},qr=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Fo=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Dd(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Nc(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,qr.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,qr.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),s=!i&&r||i&&!r;this.style.alignItems=s?"flex-start":"flex-end";const n=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,zi,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Mi,this,r);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,s,this.noHorizontalOverlap,Mi)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,zi)}__shouldAlignStart(e,t,i,r,s,n,a){const l=i-e[n?a.end:a.start]-r[a.end],c=e[n?a.start:a.end]-r[a.start],h=s?l:c,u=h>(s?c:l)||h>t;return s===u}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===zi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const n=this.__oldViewportHeight-s;r=i-n}this.__oldViewportHeight=s}if(t.end===Mi.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const n=this.__oldViewportWidth-s;r=i-n}this.__oldViewportWidth=s}}return r}__calculatePositionInOneDimension(e,t,i,r,s,n){const a=n?r.start:r.end,l=n?r.end:r.start,c=parseFloat(s.style[a]||getComputedStyle(s)[a]),h=this.__adjustBottomProperty(a,r,c),u=t[n?r.start:r.end]-e[i===n?r.end:r.start],_=h?`${h}px`:`${c+u*(n?-1:1)}px`;return{[a]:_,[l]:""}}};/**
3416
3416
  * @license
3417
3417
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3418
3418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3419
- */const Lc=o=>class extends Jo(Ii(o)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bo(e.composedPath()[0])&&e.preventDefault()}};/**
3419
+ */const Lc=o=>class extends Fo(vi(o)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!So(e.composedPath()[0])&&e.preventDefault()}};/**
3420
3420
  * @license
3421
3421
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3422
3422
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3423
- */const Vc=y`
3423
+ */const Vc=w`
3424
3424
  [part='overlay'] {
3425
3425
  display: flex;
3426
3426
  flex: auto;
@@ -3439,7 +3439,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3439
3439
  * @license
3440
3440
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3441
3441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3442
- */C("vaadin-date-picker-overlay",[Ai,Vc],{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends Lc(Pe(Y($))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return H`
3442
+ */k("vaadin-date-picker-overlay",[_i,Vc],{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends Lc(xe(Y(j))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return W`
3443
3443
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3444
3444
  <div part="overlay" id="overlay">
3445
3445
  <div part="content" id="content">
@@ -3450,7 +3450,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3450
3450
  * @license
3451
3451
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3452
3452
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3453
- */const Tn=y`
3453
+ */const xn=w`
3454
3454
  :host {
3455
3455
  display: inline-block;
3456
3456
  position: relative;
@@ -3527,15 +3527,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */const Xo=o=>class extends Vo(vn(et(o))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3530
+ */const Bo=o=>class extends Eo(ln(Je(o))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3531
3531
  * @license
3532
3532
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3533
3533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3534
- */C("vaadin-button",Tn,{moduleId:"vaadin-button-styles"});class Hc extends Xo(Ie(Y(je($)))){static get is(){return"vaadin-button"}static get template(){return Bc(H)}ready(){super.ready(),this._tooltipController=new $e(this),this.addController(this._tooltipController)}}V(Hc);/**
3534
+ */k("vaadin-button",xn,{moduleId:"vaadin-button-styles"});class Hc extends Bo(Ae(Y(Be(j)))){static get is(){return"vaadin-button"}static get template(){return Bc(W)}ready(){super.ready(),this._tooltipController=new Fe(this),this.addController(this._tooltipController)}}V(Hc);/**
3535
3535
  * @license
3536
3536
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3537
3537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3538
- */function $c(o){let e=o.getDay();e===0&&(e=7);const t=4-e,i=new Date(o.getTime()+t*24*3600*1e3),r=new Date(0,0);r.setFullYear(i.getFullYear());const s=i.getTime()-r.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function vo(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function ze(o,e,t=vo){return o instanceof Date&&e instanceof Date&&t(o).getTime()===t(e).getTime()}function Zo(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function _t(o,e,t,i){let r=!1;if(typeof i=="function"&&o){const s=Zo(o);r=i(s)}return(!e||o>=e)&&(!t||o<=t)&&!r}function Dn(o,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const r=Math.abs(o.getTime()-i.getTime()),s=Math.abs(t.getTime()-o.getTime());return r<s?i:t})}function On(o){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(o)+e.getMonth()),t}function jc(o,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let r=e+Math.floor(o.getFullYear()/100)*100;return o<new Date(r-50,t,i)?r-=100:o>new Date(r+50,t,i)&&(r+=100),r}function kt(o){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Wc(o){const e=(d,c="00")=>(c+d).substr((c+d).length-c.length);let t="",i="0000",r=o.year;r<0?(r=-r,t="-",i="000000"):o.year>=1e4&&(t="+",i="000000");const s=t+e(r,i),n=e(o.month+1),a=e(o.day);return[s,n,a].join("-")}function qc(o){return o instanceof Date?Wc({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
3538
+ */function $c(o){let e=o.getDay();e===0&&(e=7);const t=4-e,i=new Date(o.getTime()+t*24*3600*1e3),r=new Date(0,0);r.setFullYear(i.getFullYear());const s=i.getTime()-r.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function so(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function Re(o,e,t=so){return o instanceof Date&&e instanceof Date&&t(o).getTime()===t(e).getTime()}function Ho(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function at(o,e,t,i){let r=!1;if(typeof i=="function"&&o){const s=Ho(o);r=i(s)}return(!e||o>=e)&&(!t||o<=t)&&!r}function wn(o,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const r=Math.abs(o.getTime()-i.getTime()),s=Math.abs(t.getTime()-o.getTime());return r<s?i:t})}function Cn(o){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(o)+e.getMonth()),t}function Wc(o,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let r=e+Math.floor(o.getFullYear()/100)*100;return o<new Date(r-50,t,i)?r-=100:o>new Date(r+50,t,i)&&(r+=100),r}function mt(o){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function jc(o){const e=(l,c="00")=>(c+l).substr((c+l).length-c.length);let t="",i="0000",r=o.year;r<0?(r=-r,t="-",i="000000"):o.year>=1e4&&(t="+",i="000000");const s=t+e(r,i),n=e(o.month+1),a=e(o.day);return[s,n,a].join("-")}function qc(o){return o instanceof Date?jc({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
3539
3539
  @license
3540
3540
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3541
3541
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3543,7 +3543,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3543
3543
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3544
3544
  Code distributed by Google as part of the polymer project is also
3545
3545
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3546
- */class mi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Ht.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ht.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof mi?e._cancelAsync():e=new mi,e.setConfig(t,i),e}}let Ht=new Set;const Uc=function(o){Ht.add(o)},Yc=function(){const o=!!Ht.size;return Ht.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o};/**
3546
+ */class oi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Tt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Tt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof oi?e._cancelAsync():e=new oi,e.setConfig(t,i),e}}let Tt=new Set;const Uc=function(o){Tt.add(o)},Yc=function(){const o=!!Tt.size;return Tt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o};/**
3547
3547
  @license
3548
3548
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3549
3549
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3551,11 +3551,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3551
3551
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3552
3552
  Code distributed by Google as part of the polymer project is also
3553
3553
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3554
- */const Qo=function(){let o,e;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Yc();while(o||e)};/**
3554
+ */const $o=function(){let o,e;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Yc();while(o||e)};/**
3555
3555
  * @license
3556
3556
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3557
3557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3558
- */const Rn=document.createElement("template");Rn.innerHTML=`
3558
+ */const Pn=document.createElement("template");Pn.innerHTML=`
3559
3559
  <style>
3560
3560
  :host {
3561
3561
  display: block;
@@ -3605,11 +3605,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3605
3605
  <div class="buffer"></div>
3606
3606
  <div id="fullHeight"></div>
3607
3607
  </div>
3608
- `;class zn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Rn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Qo()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,r=e<this._buffers[0].translateY+t;(i||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=be.debounce(this._debouncerScrollFinish,Fe.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=be.debounce(this._debouncerUpdateClones,Fe.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const s=`vaadin-infinite-scroller-item-content-${yi()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=r,t.appendChild(n),r.setAttribute("slot",s),this.appendChild(r),this._isVisible(r,e)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,r)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*r;[...i.children].forEach((n,a)=>{const d=n._itemWrapper;(!e||this._isVisible(d,t))&&this._updateElement(d.instance,s+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3608
+ `;class kn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Pn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),$o()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,r=e<this._buffers[0].translateY+t;(i||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ge.debounce(this._debouncerScrollFinish,Ne.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ge.debounce(this._debouncerUpdateClones,Ne.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const s=`vaadin-infinite-scroller-item-content-${di()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=r,t.appendChild(n),r.setAttribute("slot",s),this.appendChild(r),this._isVisible(r,e)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,r)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*r;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,s+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3609
3609
  * @license
3610
3610
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3611
3611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3612
- */const Mn=document.createElement("template");Mn.innerHTML=`
3612
+ */const An=document.createElement("template");An.innerHTML=`
3613
3613
  <style>
3614
3614
  :host {
3615
3615
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3621,11 +3621,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3621
3621
  height: 100%;
3622
3622
  }
3623
3623
  </style>
3624
- `;class Kc extends zn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Mn.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=On(t)}}V(Kc);/**
3624
+ `;class Kc extends kn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(An.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Cn(t)}}V(Kc);/**
3625
3625
  * @license
3626
3626
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3627
3627
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3628
- */const Nn=document.createElement("template");Nn.innerHTML=`
3628
+ */const En=document.createElement("template");En.innerHTML=`
3629
3629
  <style>
3630
3630
  :host {
3631
3631
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3659,7 +3659,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3659
3659
  border-left-color: #000;
3660
3660
  }
3661
3661
  </style>
3662
- `;class Gc extends zn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Nn.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}V(Gc);/**
3662
+ `;class Gc extends kn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(En.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}V(Gc);/**
3663
3663
  * @license
3664
3664
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3665
3665
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3667,7 +3667,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3667
3667
  * @license
3668
3668
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3669
3669
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3670
- */class Xc extends Y(Jc($)){static get is(){return"vaadin-date-picker-year"}static get template(){return H`
3670
+ */class Xc extends Y(Jc(j)){static get is(){return"vaadin-date-picker-year"}static get template(){return W`
3671
3671
  <style>
3672
3672
  :host {
3673
3673
  display: block;
@@ -3684,7 +3684,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3684
3684
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3685
3685
  Code distributed by Google as part of the polymer project is also
3686
3686
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3687
- */function er(o,e,t,i,r){let s;r&&(s=typeof t=="object"&&t!==null,s&&(i=o.__dataTemp[e]));let n=i!==t&&(i===i||t===t);return s&&n&&(o.__dataTemp[e]=t),n}const tr=Z(o=>{class e extends o{_shouldPropertyChange(i,r,s){return er(this,i,r,s,!0)}}return e}),Zc=Z(o=>{class e extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,r,s){return er(this,i,r,s,this.mutableData)}}return e});tr._mutablePropertyChange=er;/**
3687
+ */function Wo(o,e,t,i,r){let s;r&&(s=typeof t=="object"&&t!==null,s&&(i=o.__dataTemp[e]));let n=i!==t&&(i===i||t===t);return s&&n&&(o.__dataTemp[e]=t),n}const jo=X(o=>{class e extends o{_shouldPropertyChange(i,r,s){return Wo(this,i,r,s,!0)}}return e}),Zc=X(o=>{class e extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,r,s){return Wo(this,i,r,s,this.mutableData)}}return e});jo._mutablePropertyChange=Wo;/**
3688
3688
  @license
3689
3689
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3690
3690
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3692,7 +3692,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3692
3692
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3693
3693
  Code distributed by Google as part of the polymer project is also
3694
3694
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3695
- */let go=null;function bo(){return go}bo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:bo,writable:!0}});const Ln=To(bo),Qc=tr(Ln);function eh(o,e){go=o,Object.setPrototypeOf(o,e.prototype),new e,go=null}const th=To(class{});function ih(o,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),ae(ae(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const r=i.__polymerReplaced__;r&&ae(ae(r).parentNode).replaceChild(i,r)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class We extends th{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let r=this.root.firstChild;r;r=r.nextSibling)t.push(r),r.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,r=>{r.model=this,i(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,i)}}_showHideChildren(e){ih(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}We.prototype.__dataHost;We.prototype.__templatizeOptions;We.prototype._methodHost;We.prototype.__templatizeOwner;We.prototype.__hostProps;const oh=tr(We);function ts(o){let e=o.__dataHost;return e&&e._methodHost||e}function rh(o,e,t){let i=t.mutableData?oh:We;yo.mixin&&(i=yo.mixin(i));let r=class extends i{};return r.prototype.__templatizeOptions=t,r.prototype._bindTemplate(o),ah(r,o,e,t),r}function sh(o,e,t,i){let r=t.forwardHostProp;if(r&&e.hasHostProps){const s=o.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(s){let d=t.mutableData?Qc:Ln;class c extends d{}n=e.templatizeTemplateClass=c}else{const d=o.constructor;class c extends d{}n=e.templatizeTemplateClass=c}let a=e.hostProps;for(let d in a)n.prototype._addPropertyEffect("_host_"+d,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:nh(d,r)}),n.prototype._createNotifyingProperty("_host_"+d);Ms&&i&&ch(e,t,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),s)eh(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=e.hostProps;for(let d in a)if(d="_host_"+d,d in o){const c=o[d];delete o[d],o.__data[d]=c}}}}function nh(o,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function ah(o,e,t,i){let r=t.hostProps||{};for(let s in i.instanceProps){delete r[s];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(s,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lh(s,n)})}if(i.forwardHostProp&&e.__dataHost)for(let s in r)t.hasHostProps||(t.hasHostProps=!0),o.prototype._addPropertyEffect(s,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:dh()})}function lh(o,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function dh(){return function(o,e,t){o.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function yo(o,e,t){if(ci&&!ts(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=e;let i=(e?e.constructor:We)._parseTemplate(o),r=i.templatizeInstanceClass;r||(r=rh(o,i,t),i.templatizeInstanceClass=r);const s=ts(o);sh(o,i,t,s);let n=class extends r{};return n.prototype._methodHost=s,n.prototype.__dataHost=o,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n=n,n}function ch(o,e,t){const i=t.constructor._properties,{propertyEffects:r}=o,{instanceProps:s}=e;for(let n in r)if(!i[n]&&!(s&&s[n])){const a=r[n];for(let d=0;d<a.length;d++){const{part:c}=a[d].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function hh(o,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=o)e=t.__dataHost;else return t;else e=ae(e).parentNode;return null}/**
3695
+ */let no=null;function ao(){return no}ao.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ao,writable:!0}});const In=bo(ao),Qc=jo(In);function eh(o,e){no=o,Object.setPrototypeOf(o,e.prototype),new e,no=null}const th=bo(class{});function ih(o,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),ae(ae(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const r=i.__polymerReplaced__;r&&ae(ae(r).parentNode).replaceChild(i,r)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class He extends th{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let r=this.root.firstChild;r;r=r.nextSibling)t.push(r),r.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,r=>{r.model=this,i(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,i)}}_showHideChildren(e){ih(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}He.prototype.__dataHost;He.prototype.__templatizeOptions;He.prototype._methodHost;He.prototype.__templatizeOwner;He.prototype.__hostProps;const oh=jo(He);function Ur(o){let e=o.__dataHost;return e&&e._methodHost||e}function rh(o,e,t){let i=t.mutableData?oh:He;lo.mixin&&(i=lo.mixin(i));let r=class extends i{};return r.prototype.__templatizeOptions=t,r.prototype._bindTemplate(o),ah(r,o,e,t),r}function sh(o,e,t,i){let r=t.forwardHostProp;if(r&&e.hasHostProps){const s=o.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(s){let l=t.mutableData?Qc:In;class c extends l{}n=e.templatizeTemplateClass=c}else{const l=o.constructor;class c extends l{}n=e.templatizeTemplateClass=c}let a=e.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:nh(l,r)}),n.prototype._createNotifyingProperty("_host_"+l);As&&i&&ch(e,t,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),s)eh(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in o){const c=o[l];delete o[l],o.__data[l]=c}}}}function nh(o,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function ah(o,e,t,i){let r=t.hostProps||{};for(let s in i.instanceProps){delete r[s];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(s,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lh(s,n)})}if(i.forwardHostProp&&e.__dataHost)for(let s in r)t.hasHostProps||(t.hasHostProps=!0),o.prototype._addPropertyEffect(s,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:dh()})}function lh(o,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function dh(){return function(o,e,t){o.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function lo(o,e,t){if(Qt&&!Ur(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=e;let i=(e?e.constructor:He)._parseTemplate(o),r=i.templatizeInstanceClass;r||(r=rh(o,i,t),i.templatizeInstanceClass=r);const s=Ur(o);sh(o,i,t,s);let n=class extends r{};return n.prototype._methodHost=s,n.prototype.__dataHost=o,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n=n,n}function ch(o,e,t){const i=t.constructor._properties,{propertyEffects:r}=o,{instanceProps:s}=e;for(let n in r)if(!i[n]&&!(s&&s[n])){const a=r[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function hh(o,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=o)e=t.__dataHost;else return t;else e=ae(e).parentNode;return null}/**
3696
3696
  @license
3697
3697
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3698
3698
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3700,7 +3700,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3700
3700
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3701
3701
  Code distributed by Google as part of the polymer project is also
3702
3702
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3703
- */let is=!1;function uh(){if(zs&&!Rs){if(!is){is=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3703
+ */let Yr=!1;function uh(){if(ks&&!Ps){if(!Yr){Yr=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3704
3704
  @license
3705
3705
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3706
3706
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3708,15 +3708,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3708
3708
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3709
3709
  Code distributed by Google as part of the polymer project is also
3710
3710
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3711
- */const ph=Zc($);class os extends ph{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Sr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),uh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ae(ae(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let r=new MutationObserver(()=>{if(this.querySelector("template"))r.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return r.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=yo(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(r,s){let n=this.__instances;for(let a=0,d;a<n.length&&(d=n[a]);a++)d.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,n){if(pl(this.as,s)){let a=r[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let d=Nt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(d,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=mi.debounce(this.__renderDebouncer,t>0?bl.after(t):qs,e.bind(this)),Uc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Qo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Sr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,r,s)=>this.__filterFn(e[i],r,s))),this.__sortFn&&t.sort((i,r)=>this.__sortFn(e[i],e[r])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+r,e)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const r=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let n=this.__instances[s],a=i[s],d=e[a];r[a]=s,n?(n._setPendingProperty(this.as,d),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(d,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=ae(t.root);for(let r=0;r<t.children.length;r++){let s=t.children[r];i.appendChild(s)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){const r=this.__stampInstance(e,t,i);let s=this.__instances[t+1],n=s?s.children[0]:this;return ae(ae(this).parentNode).insertBefore(r.root,n),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),r=i.indexOf("."),s=r<0?i:i.substring(0,r);if(s==parseInt(s,10)){let n=r<0?"":i.substring(r+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],d=this.__instances[a];if(d){let c=this.as+(n?"."+n:"");d._setPendingPropertyOrPath(c,t,!1,!0),d._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return hh(this.template,e)}}customElements.define(os.is,os);/**
3711
+ */const ph=Zc(j);class Kr extends ph{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!yr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),uh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ae(ae(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let r=new MutationObserver(()=>{if(this.querySelector("template"))r.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return r.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=lo(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(r,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,n){if(pl(this.as,s)){let a=r[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=kt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=oi.debounce(this.__renderDebouncer,t>0?bl.after(t):Ns,e.bind(this)),Uc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),$o()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!yr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,r,s)=>this.__filterFn(e[i],r,s))),this.__sortFn&&t.sort((i,r)=>this.__sortFn(e[i],e[r])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+r,e)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const r=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let n=this.__instances[s],a=i[s],l=e[a];r[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=ae(t.root);for(let r=0;r<t.children.length;r++){let s=t.children[r];i.appendChild(s)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){const r=this.__stampInstance(e,t,i);let s=this.__instances[t+1],n=s?s.children[0]:this;return ae(ae(this).parentNode).insertBefore(r.root,n),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),r=i.indexOf("."),s=r<0?i:i.substring(0,r);if(s==parseInt(s,10)){let n=r<0?"":i.substring(r+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return hh(this.template,e)}}customElements.define(Kr.is,Kr);/**
3712
3712
  * @license
3713
3713
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3714
3714
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3715
- */const mh=o=>class extends et(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>ze(e.date,this.focusedDate))}ready(){super.ready(),Ae(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!_t(r,t,i)&&!_t(s,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:s}=e,n=this._applyFirstDayOfWeek(r,s);return this._applyFirstDayOfWeek(i,s).map((a,d)=>({weekDay:a,weekDayShort:n[d]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>ze(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return ze(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],s=i.getMonth(),n=e.getMonth();for(;i.getMonth()===n||i.getMonth()===s;)r.push(i.getMonth()===n?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((t,i,r)=>(r%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,r)=>!i&&r?r:i);return $c(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3715
+ */const mh=o=>class extends Je(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Re(e.date,this.focusedDate))}ready(){super.ready(),Pe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!at(r,t,i)&&!at(s,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:s}=e,n=this._applyFirstDayOfWeek(r,s);return this._applyFirstDayOfWeek(i,s).map((a,l)=>({weekDay:a,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>Re(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return Re(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],s=i.getMonth(),n=e.getMonth();for(;i.getMonth()===n||i.getMonth()===s;)r.push(i.getMonth()===n?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((t,i,r)=>(r%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,r)=>!i&&r?r:i);return $c(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3716
3716
  * @license
3717
3717
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3718
3718
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3719
- */const _h=y`
3719
+ */const _h=w`
3720
3720
  :host {
3721
3721
  display: block;
3722
3722
  }
@@ -3776,7 +3776,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3776
3776
  * @license
3777
3777
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3778
3778
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3779
- */C("vaadin-month-calendar",_h,{moduleId:"vaadin-month-calendar-styles"});class fh extends mh(Y($)){static get template(){return H`
3779
+ */k("vaadin-month-calendar",_h,{moduleId:"vaadin-month-calendar-styles"});class fh extends mh(Y(j)){static get template(){return W`
3780
3780
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3781
3781
  <table
3782
3782
  id="monthGrid"
@@ -3818,19 +3818,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3818
3818
  </template>
3819
3819
  </tbody>
3820
3820
  </table>
3821
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,s,n){const a=["date"],d=e>vo(new Date),c=e<vo(new Date);return this.__isDayDisabled(e,r,s,n)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),c&&a.push("past"),d&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return ze(e,t)}__isDaySelected(e,t){return ze(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,r){return!_t(e,t,i,r)}__getDayAriaDisabled(e,t,i,r){if(!(e===void 0||t===void 0&&i===void 0&&r===void 0)&&this.__isDayDisabled(e,t,i,r))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}V(fh);/**
3821
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,s,n){const a=["date"],l=e>so(new Date),c=e<so(new Date);return this.__isDayDisabled(e,r,s,n)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),c&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return Re(e,t)}__isDaySelected(e,t){return Re(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,r){return!at(e,t,i,r)}__getDayAriaDisabled(e,t,i,r){if(!(e===void 0||t===void 0&&i===void 0&&r===void 0)&&this.__isDayDisabled(e,t,i,r))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}V(fh);/**
3822
3822
  * @license
3823
3823
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3824
3824
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3825
- */class ir{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3825
+ */class qo{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3826
3826
  * @license
3827
3827
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3828
3828
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3829
- */const vh=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){mn(this.$.scrollers,"pan-y"),Ae(this.$.scrollers,"track",this._track.bind(this)),Ae(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ae(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ae(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ir(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ae(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ae(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ee(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ae(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r,s))}__updateCalendars(e,t,i,r,s,n,a,d,c,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=i,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=n,u.selectedDate=s,u.showWeekNumbers=a,u.ignoreTaps=d,c?u.setAttribute("theme",c):u.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(r=>{r.selectedDate=t,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const r=this._monthScroller.position>i,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+s-1<i;r?this._scrollToPosition(i,t):n&&this._scrollToPosition(i-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=be.debounce(this._debouncer,Fe.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Zo(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(d=>{i=d});const r=(d,c,h,u)=>(d/=u/2,d<1?h/2*d*d+c:(d-=1,-h/2*(d*(d-2)-1)+c));let s=0;const n=this._monthScroller.position,a=d=>{s||(s=d);const c=d-s;if(c<this.scrollDuration){const h=r(c,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return On(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ze(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&ze(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return si(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return si(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{An(this,()=>{Qo(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Dn(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,r=this.isDateDisabled){return _t(e,t,i,r)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3829
+ */const vh=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){sn(this.$.scrollers,"pan-y"),Pe(this.$.scrollers,"track",this._track.bind(this)),Pe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Pe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new qo(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Pe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Pe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ke(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Pe(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r,s))}__updateCalendars(e,t,i,r,s,n,a,l,c,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=i,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=n,u.selectedDate=s,u.showWeekNumbers=a,u.ignoreTaps=l,c?u.setAttribute("theme",c):u.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(r=>{r.selectedDate=t,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const r=this._monthScroller.position>i,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+s-1<i;r?this._scrollToPosition(i,t):n&&this._scrollToPosition(i-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ge.debounce(this._debouncer,Ne.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Ho(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const r=(l,c,h,u)=>(l/=u/2,l<1?h/2*l*l+c:(l-=1,-h/2*(l*(l-2)-1)+c));let s=0;const n=this._monthScroller.position,a=l=>{s||(s=l);const c=l-s;if(c<this.scrollDuration){const h=r(c,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Cn(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Re(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Re(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Kt(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Kt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{vn(this,()=>{$o(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(wn(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,r=this.isDateDisabled){return at(e,t,i,r)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
3830
  * @license
3831
3831
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3832
3832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3833
- */const gh=y`
3833
+ */const gh=w`
3834
3834
  :host {
3835
3835
  display: flex;
3836
3836
  flex-direction: column;
@@ -3894,7 +3894,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3894
3894
  * @license
3895
3895
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3896
3896
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3897
- */C("vaadin-date-picker-overlay-content",gh,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bh extends vh(je(Y(Pe($)))){static get template(){return H`
3897
+ */k("vaadin-date-picker-overlay-content",gh,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bh extends vh(Be(Y(xe(j)))){static get template(){return W`
3898
3898
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3899
3899
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3900
3900
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3918,28 +3918,28 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3918
3918
  * @license
3919
3919
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3920
3920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3921
- */const Yi=new WeakMap;function yh(o){return Yi.has(o)||Yi.set(o,new Set),Yi.get(o)}function xh(o,e){const t=document.createElement("style");t.textContent=o,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Vn=Z(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=yh(e);this.slotStyles.forEach(i=>{t.has(i)||(xh(i,e),t.add(i))})}});/**
3921
+ */const Ni=new WeakMap;function yh(o){return Ni.has(o)||Ni.set(o,new Set),Ni.get(o)}function xh(o,e){const t=document.createElement("style");t.textContent=o,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Sn=X(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=yh(e);this.slotStyles.forEach(i=>{t.has(i)||(xh(i,e),t.add(i))})}});/**
3922
3922
  * @license
3923
3923
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3924
3924
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3925
- */const wh=o=>class extends jt(Qe(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),_o||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3925
+ */const wh=o=>class extends Rt(Ge(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),oo||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3926
3926
  * @license
3927
3927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3928
3928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3929
- */const or=Z(o=>class extends $o(qo(jt(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3929
+ */const Uo=X(o=>class extends Do(zo(Rt(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
3930
  * @license
3931
3931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3932
3932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3933
- */const Si=o=>class extends Vn(wi(or(Ci(wh(Qe(o)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3933
+ */const gi=o=>class extends Sn(hi(Uo(ui(wh(Ge(o)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3934
3934
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3935
3935
  font: inherit;
3936
3936
  color: inherit;
3937
3937
  }
3938
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=be.debounce(this._preventInputDebouncer,Fe.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(t){console.error(t)}}};/**
3938
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ge.debounce(this._preventInputDebouncer,Ne.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(t){console.error(t)}}};/**
3939
3939
  * @license
3940
3940
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3941
3941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3942
- */const Ch=y`
3942
+ */const Ch=w`
3943
3943
  [part='clear-button'] {
3944
3944
  display: none;
3945
3945
  cursor: default;
@@ -3956,7 +3956,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3956
3956
  * @license
3957
3957
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3958
3958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3959
- */const Fn=y`
3959
+ */const Tn=w`
3960
3960
  :host {
3961
3961
  display: inline-flex;
3962
3962
  outline: none;
@@ -3994,7 +3994,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3994
3994
  * @license
3995
3995
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3996
3996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3997
- */const Bn=y`
3997
+ */const Dn=w`
3998
3998
  [class$='container'] {
3999
3999
  display: flex;
4000
4000
  flex-direction: column;
@@ -4006,23 +4006,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4006
4006
  * @license
4007
4007
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4008
4008
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4009
- */const Ti=[Fn,Bn,Ch];/**
4009
+ */const bi=[Tn,Dn,Ch];/**
4010
4010
  * @license
4011
4011
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4012
4012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4013
- */const Di=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));s.length>0&&i.remove(...s)}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
4013
+ */const yi=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));s.length>0&&i.remove(...s)}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
4014
4014
  * @license
4015
4015
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4016
4016
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4017
- */class Hn{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4017
+ */class Rn{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4018
4018
  * @license
4019
4019
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4020
4020
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4021
- */const Ph=o=>class extends Di(je(wi(or(Qe(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let r,s=i.getMonth(),n=i.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,r=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?kt(this.referenceDate):new Date;n=jc(a,n,s,r)}}else t.length===2?(s=parseInt(t[0])-1,r=parseInt(t[1])):t.length===1&&(r=parseInt(t[0]));if(r!==void 0)return{day:r,month:s,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Go},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!xi()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ir(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Hn(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=kt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Zo(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||_t(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,r,s,n){return!e||t&&(!n||s)||i&&s||!r.parseDate}_formatISO(e){return qc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=kt(e);if(e&&!i){this.value=t;return}e?ze(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,r,s,n,a,d,c){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=s,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=d,e.isDateDisabled=c)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[r,e];this.__showOthers=En(s)}_getInitialPosition(){const e=kt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||_t(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Dn(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ze(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return kt(e)}};/**
4021
+ */const Ph=o=>class extends yi(Be(hi(Uo(Ge(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let r,s=i.getMonth(),n=i.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,r=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?mt(this.referenceDate):new Date;n=Wc(a,n,s,r)}}else t.length===2?(s=parseInt(t[0])-1,r=parseInt(t[1])):t.length===1&&(r=parseInt(t[0]));if(r!==void 0)return{day:r,month:s,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Vo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ci()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new qo(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Rn(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=mt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ho(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||at(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,r,s,n){return!e||t&&(!n||s)||i&&s||!r.parseDate}_formatISO(e){return qc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=mt(e);if(e&&!i){this.value=t;return}e?Re(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,r,s,n,a,l,c){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=s,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=c)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[r,e];this.__showOthers=gn(s)}_getInitialPosition(){const e=mt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||at(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?wn(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Re(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return mt(e)}};/**
4022
4022
  * @license
4023
4023
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4024
4024
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4025
- */const kh=y`
4025
+ */const kh=w`
4026
4026
  :host([opened]) {
4027
4027
  pointer-events: auto;
4028
4028
  }
@@ -4039,7 +4039,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4039
4039
  * @license
4040
4040
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4041
4041
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4042
- */C("vaadin-date-picker",[Ti,kh],{moduleId:"vaadin-date-picker-styles"});class Ah extends Ph(Si(Y(Ie($)))){static get is(){return"vaadin-date-picker"}static get template(){return H`
4042
+ */k("vaadin-date-picker",[bi,kh],{moduleId:"vaadin-date-picker-styles"});class Ah extends Ph(gi(Y(Ae(j)))){static get is(){return"vaadin-date-picker"}static get template(){return W`
4043
4043
  <div class="vaadin-date-picker-container">
4044
4044
  <div part="label">
4045
4045
  <slot name="label"></slot>
@@ -4081,23 +4081,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4081
4081
  ></vaadin-date-picker-overlay>
4082
4082
 
4083
4083
  <slot name="tooltip"></slot>
4084
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Wt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new qt(this.inputElement,this._labelController)),this._tooltipController=new $e(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}V(Ah);/**
4084
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ot(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new Fe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}V(Ah);/**
4085
4085
  * @license
4086
4086
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4087
4087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4088
- */C("vaadin-text-field",tt,{moduleId:"lumo-text-field-styles"});/**
4088
+ */k("vaadin-text-field",Xe,{moduleId:"lumo-text-field-styles"});/**
4089
4089
  * @license
4090
4090
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4091
4091
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4092
- */const Eh=o=>class extends Si(o){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4092
+ */const Eh=o=>class extends gi(o){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4093
4093
  * @license
4094
4094
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4095
4095
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4096
- */const Ih=o=>class extends Eh(o){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Wt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qt(this.inputElement,this._labelController))}};/**
4096
+ */const Ih=o=>class extends Eh(o){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ot(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController))}};/**
4097
4097
  * @license
4098
4098
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4099
4099
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4100
- */C("vaadin-text-field",Ti,{moduleId:"vaadin-text-field-styles"});class $n extends Ih(Y(Ie($))){static get is(){return"vaadin-text-field"}static get template(){return H`
4100
+ */k("vaadin-text-field",bi,{moduleId:"vaadin-text-field-styles"});class On extends Ih(Y(Ae(j))){static get is(){return"vaadin-text-field"}static get template(){return W`
4101
4101
  <div class="vaadin-field-container">
4102
4102
  <div part="label">
4103
4103
  <slot name="label"></slot>
@@ -4126,11 +4126,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4126
4126
  </div>
4127
4127
  </div>
4128
4128
  <slot name="tooltip"></slot>
4129
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new $e(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}V($n);/**
4129
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Fe(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}V(On);/**
4130
4130
  * @license
4131
4131
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4132
4132
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4133
- */const Sh=y`
4133
+ */const Sh=w`
4134
4134
  :host {
4135
4135
  position: absolute;
4136
4136
  right: 0;
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4143
4143
  background: transparent;
4144
4144
  outline: none;
4145
4145
  }
4146
- `;C("vaadin-password-field-button",[wn,Sh],{moduleId:"lumo-password-field-button"});/**
4146
+ `;k("vaadin-password-field-button",[pn,Sh],{moduleId:"lumo-password-field-button"});/**
4147
4147
  * @license
4148
4148
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4149
4149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4150
- */const Th=y`
4150
+ */const Th=w`
4151
4151
  [part='reveal-button']::before {
4152
4152
  content: var(--lumo-icons-eye);
4153
4153
  }
@@ -4165,27 +4165,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4165
4165
  [part='reveal-button'][hidden] {
4166
4166
  display: none !important;
4167
4167
  }
4168
- `;C("vaadin-password-field",[tt,Th],{moduleId:"lumo-password-field"});/**
4168
+ `;k("vaadin-password-field",[Xe,Th],{moduleId:"lumo-password-field"});/**
4169
4169
  * @license
4170
4170
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4171
4171
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4172
- */C("vaadin-password-field-button",Tn,{moduleId:"vaadin-password-field-button-styles"});class Dh extends Xo(Pe(Y($))){static get is(){return"vaadin-password-field-button"}static get template(){return H``}}V(Dh);/**
4172
+ */k("vaadin-password-field-button",xn,{moduleId:"vaadin-password-field-button-styles"});class Dh extends Bo(xe(Y(j))){static get is(){return"vaadin-password-field-button"}static get template(){return W``}}V(Dh);/**
4173
4173
  * @license
4174
4174
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4175
4175
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4176
- */const Oh=o=>class extends Vn(vt(et(jt(o)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4176
+ */const Rh=o=>class extends Sn(dt(Je(Rt(o)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4177
4177
  ${e} [slot="input"]::-ms-reveal {
4178
4178
  display: none;
4179
4179
  }
4180
- `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Ee(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4180
+ `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new ke(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4181
4181
  * @license
4182
4182
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4183
4183
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4184
- */const Rh=H`
4184
+ */const Oh=W`
4185
4185
  <div part="reveal-button" slot="suffix">
4186
4186
  <slot name="reveal"></slot>
4187
4187
  </div>
4188
- `;let Xt;class zh extends Oh($n){static get is(){return"vaadin-password-field"}static get template(){if(!Xt){Xt=super.template.cloneNode(!0);const e=Rh.content.querySelector('[part="reveal-button"]');Xt.content.querySelector('[part="input-field"]').appendChild(e)}return Xt}}V(zh);const Oi=y`
4188
+ `;let Bt;class zh extends Rh(On){static get is(){return"vaadin-password-field"}static get template(){if(!Bt){Bt=super.template.cloneNode(!0);const e=Oh.content.querySelector('[part="reveal-button"]');Bt.content.querySelector('[part="input-field"]').appendChild(e)}return Bt}}V(zh);const xi=w`
4189
4189
  :host {
4190
4190
  display: flex;
4191
4191
  align-items: center;
@@ -4269,7 +4269,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4269
4269
  width: var(--lumo-icon-size-m);
4270
4270
  height: var(--lumo-icon-size-m);
4271
4271
  }
4272
- `;C("vaadin-item",Oi,{moduleId:"lumo-item"});const jn=y`
4272
+ `;k("vaadin-item",xi,{moduleId:"lumo-item"});const zn=w`
4273
4273
  :host {
4274
4274
  transition: background-color 100ms;
4275
4275
  overflow: hidden;
@@ -4281,11 +4281,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4281
4281
  :host([focused]:not([disabled])) {
4282
4282
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4283
4283
  }
4284
- `;C("vaadin-combo-box-item",[Oi,jn],{moduleId:"lumo-combo-box-item"});/**
4284
+ `;k("vaadin-combo-box-item",[xi,zn],{moduleId:"lumo-combo-box-item"});/**
4285
4285
  * @license
4286
4286
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4287
4287
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4288
- */const Wn=y`
4288
+ */const Mn=w`
4289
4289
  [part~='loader'] {
4290
4290
  box-sizing: border-box;
4291
4291
  width: var(--lumo-icon-size-s);
@@ -4327,7 +4327,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4327
4327
  transform: rotate(360deg);
4328
4328
  }
4329
4329
  }
4330
- `,qn=y`
4330
+ `,Nn=w`
4331
4331
  [part='content'] {
4332
4332
  padding: 0;
4333
4333
  }
@@ -4348,7 +4348,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4348
4348
  :host([bottom-aligned]) [part~='overlay'] {
4349
4349
  margin-bottom: var(--lumo-space-xs);
4350
4350
  }
4351
- `,Un=y`
4351
+ `,Ln=w`
4352
4352
  [part~='loader'] {
4353
4353
  position: absolute;
4354
4354
  z-index: 1;
@@ -4356,24 +4356,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4356
4356
  top: var(--lumo-space-s);
4357
4357
  margin-inline: auto 0;
4358
4358
  }
4359
- `;C("vaadin-combo-box-overlay",[Pi,ki,qn,Wn,Un,y`
4359
+ `;k("vaadin-combo-box-overlay",[pi,mi,Nn,Mn,Ln,w`
4360
4360
  :host {
4361
4361
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4362
4362
  --_vaadin-combo-box-items-container-border-style: solid;
4363
4363
  }
4364
- `],{moduleId:"lumo-combo-box-overlay"});const Mh=y`
4364
+ `],{moduleId:"lumo-combo-box-overlay"});const Mh=w`
4365
4365
  [part='toggle-button']::before {
4366
4366
  content: var(--lumo-icons-dropdown);
4367
4367
  }
4368
- `;C("vaadin-combo-box",[tt,Mh],{moduleId:"lumo-combo-box"});/**
4368
+ `;k("vaadin-combo-box",[Xe,Mh],{moduleId:"lumo-combo-box"});/**
4369
4369
  * @license
4370
4370
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4371
4371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4372
- */const Yn=o=>class extends o{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4372
+ */const Vn=o=>class extends o{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4373
4373
  * @license
4374
4374
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4375
4375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4376
- */class Nh extends Yn(Y(Pe($))){static get template(){return H`
4376
+ */class Nh extends Vn(Y(xe(j))){static get template(){return W`
4377
4377
  <style>
4378
4378
  :host {
4379
4379
  display: block;
@@ -4391,11 +4391,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4391
4391
  * @license
4392
4392
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4393
4393
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4394
- */const Kn=o=>class extends Jo(o){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bo(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4394
+ */const Fn=o=>class extends Fo(o){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!So(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4395
4395
  * @license
4396
4396
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4397
4397
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4398
- */const Lh=y`
4398
+ */const Lh=w`
4399
4399
  #overlay {
4400
4400
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4401
4401
  }
@@ -4405,7 +4405,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4405
4405
  flex-direction: column;
4406
4406
  height: 100%;
4407
4407
  }
4408
- `;C("vaadin-combo-box-overlay",[Ai,Lh],{moduleId:"vaadin-combo-box-overlay-styles"});class Vh extends Kn(Ii(Pe(Y($)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return H`
4408
+ `;k("vaadin-combo-box-overlay",[_i,Lh],{moduleId:"vaadin-combo-box-overlay-styles"});class Vh extends Fn(vi(xe(Y(j)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return W`
4409
4409
  <div id="backdrop" part="backdrop" hidden></div>
4410
4410
  <div part="overlay" id="overlay">
4411
4411
  <div part="loader"></div>
@@ -4415,7 +4415,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4415
4415
  * @license
4416
4416
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4417
4417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4418
- */function _i(o,e){return o.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4418
+ */function ri(o,e){return o.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4419
4419
  * @license
4420
4420
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4421
4421
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4423,23 +4423,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4423
4423
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4424
4424
  * Code distributed by Google as part of the polymer project is also
4425
4425
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4426
- */const rs=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Fh=rs&&rs[1]>=8,ss=3,Bh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const o=this._virtualCount;return Math.max(0,o-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(o){o=this._clamp(o,0,this._maxVirtualStart),this._virtualStartVal=o},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(o){o%=this._physicalCount,o<0&&(o=this._physicalCount+o),this._physicalStartVal=o},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(o){this._physicalCountVal=o},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let o=this._firstVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;o=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=o}return o},get lastVisibleIndex(){let o=this._lastVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(o=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=o}return o},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const o=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=o-this._scrollPosition;const t=e>=0;if(this._scrollPosition=o,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ui)}},_getReusables(o){let e,t,i;const r=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,d=this._physicalCount;let c=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,_=this._scrollBottom;for(o?(e=this._physicalStart,t=u-c):(e=this._physicalEnd,t=h-_);i=this._getPhysicalSizeIncrement(e),t-=i,!(r.length>=d||t<=s);)if(o){if(a+r.length+1>=this._virtualCount||c+i>=u-this._scrollOffset)break;r.push(e),c+=i,e=(e+1)%d}else{if(n-r.length<=0||c+this._physicalSize-i<=_)break;r.push(e),c-=i,e=e===0?d-1:e-1}return{indexes:r,physicalTop:c-this._scrollOffset}},_update(o,e){if(!(o&&o.length===0||this._physicalCount===0)){if(this._assignModels(o),this._updateMetrics(o),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(o){const e=this._clamp(this._physicalCount+o,ss,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),an):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ui))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const o=this._getReusables(!0);this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length,this._update(o.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ss))},_itemsChanged(o){o.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ft))},_iterateItems(o,e){let t,i,r,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],i=this._computeVidx(t),(r=o.call(this,t,i))!=null)return r}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((r=o.call(this,t,i))!=null)return r;for(t=0;t<this._physicalStart;t++,i++)if((r=o.call(this,t,i))!=null)return r}},_computeVidx(o){return o>=this._physicalStart?this._virtualStart+(o-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+o},_positionItems(){this._adjustScrollPosition();let o=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${o}px`,0,this._physicalItems[e]),o+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(o){return this._physicalSizes[o]},_adjustScrollPosition(){const o=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(o!==0){this._physicalTop-=o;const e=this._scrollPosition;!Fh&&e>0&&this._resetScrollPosition(e-o)}},_resetScrollPosition(o){this.scrollTarget&&o>=0&&(this._scrollTop=o,this._scrollPosition=this._scrollTop)},_updateScrollerSize(o){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(o||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(o){if(typeof o!="number"||o<0||o>this.items.length-1||(It(),this._physicalCount===0))return;o=this._clamp(o,0,this._virtualCount-1),(!this._isIndexRendered(o)||o>=this._maxVirtualStart)&&(this._virtualStart=o-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const r=this._hiddenContentSize;for(;t<o&&i<=r;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Ft)},_isIndexRendered(o){return o>=this._virtualStart&&o<=this._virtualEnd},_getPhysicalIndex(o){return(this._physicalStart+(o-this._virtualStart))%this._physicalCount},_clamp(o,e,t){return Math.min(t,Math.max(e,o))},_debounce(o,e,t){this._debouncers||(this._debouncers={}),this._debouncers[o]=be.debounce(this._debouncers[o],t,e.bind(this)),ln(this._debouncers[o])}};/**
4426
+ */const Gr=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Fh=Gr&&Gr[1]>=8,Jr=3,Bh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const o=this._virtualCount;return Math.max(0,o-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(o){o=this._clamp(o,0,this._maxVirtualStart),this._virtualStartVal=o},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(o){o%=this._physicalCount,o<0&&(o=this._physicalCount+o),this._physicalStartVal=o},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(o){this._physicalCountVal=o},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let o=this._firstVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;o=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=o}return o},get lastVisibleIndex(){let o=this._lastVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(o=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=o}return o},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const o=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=o-this._scrollPosition;const t=e>=0;if(this._scrollPosition=o,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ti)}},_getReusables(o){let e,t,i;const r=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let c=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,_=this._scrollBottom;for(o?(e=this._physicalStart,t=u-c):(e=this._physicalEnd,t=h-_);i=this._getPhysicalSizeIncrement(e),t-=i,!(r.length>=l||t<=s);)if(o){if(a+r.length+1>=this._virtualCount||c+i>=u-this._scrollOffset)break;r.push(e),c+=i,e=(e+1)%l}else{if(n-r.length<=0||c+this._physicalSize-i<=_)break;r.push(e),c-=i,e=e===0?l-1:e-1}return{indexes:r,physicalTop:c-this._scrollOffset}},_update(o,e){if(!(o&&o.length===0||this._physicalCount===0)){if(this._assignModels(o),this._updateMetrics(o),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(o){const e=this._clamp(this._physicalCount+o,Jr,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Xs):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ti))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const o=this._getReusables(!0);this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length,this._update(o.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Jr))},_itemsChanged(o){o.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,It))},_iterateItems(o,e){let t,i,r,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],i=this._computeVidx(t),(r=o.call(this,t,i))!=null)return r}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((r=o.call(this,t,i))!=null)return r;for(t=0;t<this._physicalStart;t++,i++)if((r=o.call(this,t,i))!=null)return r}},_computeVidx(o){return o>=this._physicalStart?this._virtualStart+(o-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+o},_positionItems(){this._adjustScrollPosition();let o=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${o}px`,0,this._physicalItems[e]),o+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(o){return this._physicalSizes[o]},_adjustScrollPosition(){const o=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(o!==0){this._physicalTop-=o;const e=this._scrollPosition;!Fh&&e>0&&this._resetScrollPosition(e-o)}},_resetScrollPosition(o){this.scrollTarget&&o>=0&&(this._scrollTop=o,this._scrollPosition=this._scrollTop)},_updateScrollerSize(o){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(o||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(o){if(typeof o!="number"||o<0||o>this.items.length-1||(vt(),this._physicalCount===0))return;o=this._clamp(o,0,this._virtualCount-1),(!this._isIndexRendered(o)||o>=this._maxVirtualStart)&&(this._virtualStart=o-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const r=this._hiddenContentSize;for(;t<o&&i<=r;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},It)},_isIndexRendered(o){return o>=this._virtualStart&&o<=this._virtualEnd},_getPhysicalIndex(o){return(this._physicalStart+(o-this._virtualStart))%this._physicalCount},_clamp(o,e,t){return Math.min(t,Math.max(e,o))},_debounce(o,e,t){this._debouncers||(this._debouncers={}),this._debouncers[o]=ge.debounce(this._debouncers[o],t,e.bind(this)),Zs(this._debouncers[o])}};/**
4427
4427
  * @license
4428
4428
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4429
4429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4430
- */const Hh=1e5,Ki=1e3;class Gn{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:r,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=s||r,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const d=a.width===0&&a.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Ki?(i=e,this._vidxOffset=0):(i=Ki,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),It(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))}),this.__afterElementsUpdated(i)}_updateMetrics(e){It();let t=0,i=0;const r=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((s*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const r=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+r+s+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=be.debounce(this.__placeholderClearDebouncer,Ft,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(r.reduce((s,n)=>s+n,0)/r.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),It(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);i!==void 0&&r!==void 0&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),It(),this._debounce("_update",this._update,ui)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Hh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(r=>{r.style.position="absolute",i.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,r)=>{const s=this._physicalItems[i];s.hidden=r>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=be.debounce(this.__fixInvalidItemPositioningDebouncer,Fe.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=be.debounce(this.__scrollReorderDebouncer,Fe.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!r){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=be.debounce(this.__debouncerWheelAnimationFrame,Ft,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=be.debounce(this._debouncerIgnoreNewWheel,Fe.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const r=i.__virtualIndex-e,s=t.indexOf(i)-r;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Ic){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,r=Ki,s=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<r&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-r&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Gn.prototype,Bh);class $h{constructor(e){this.__adapter=new Gn(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4430
+ */const Hh=1e5,Li=1e3;class Bn{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:r,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=s||r,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Li?(i=e,this._vidxOffset=0):(i=Li,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),vt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))}),this.__afterElementsUpdated(i)}_updateMetrics(e){vt();let t=0,i=0;const r=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((s*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const r=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+r+s+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ge.debounce(this.__placeholderClearDebouncer,It,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(r.reduce((s,n)=>s+n,0)/r.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),vt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);i!==void 0&&r!==void 0&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),vt(),this._debounce("_update",this._update,ti)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Hh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(r=>{r.style.position="absolute",i.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,r)=>{const s=this._physicalItems[i];s.hidden=r>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ge.debounce(this.__fixInvalidItemPositioningDebouncer,Ne.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ge.debounce(this.__scrollReorderDebouncer,Ne.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!r){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ge.debounce(this.__debouncerWheelAnimationFrame,It,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ge.debounce(this._debouncerIgnoreNewWheel,Ne.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const r=i.__virtualIndex-e,s=t.indexOf(i)-r;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Ic){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,r=Li,s=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<r&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-r&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Bn.prototype,Bh);class $h{constructor(e){this.__adapter=new Bn(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
4431
  * @license
4432
4432
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4433
4433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4434
- */const He=class{toString(){return""}};/**
4434
+ */const Ve=class{toString(){return""}};/**
4435
4435
  * @license
4436
4436
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4437
4437
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4438
- */const Jn=o=>class extends o{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${yi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const s=r.getBoundingClientRect(),n=this.getBoundingClientRect(),a=s.bottom-n.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof He?!1:i&&e!==void 0&&t!==void 0?_i(i,e)===_i(i,t):e===t}__initVirtualizer(){this.__virtualizer=new $h({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],r=this.focusedIndex,s=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:s,renderer:this.renderer,focused:!this.loading&&r===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",s.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof He&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4438
+ */const Hn=o=>class extends o{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${di()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const s=r.getBoundingClientRect(),n=this.getBoundingClientRect(),a=s.bottom-n.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof Ve?!1:i&&e!==void 0&&t!==void 0?ri(i,e)===ri(i,t):e===t}__initVirtualizer(){this.__virtualizer=new $h({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],r=this.focusedIndex,s=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:s,renderer:this.renderer,focused:!this.loading&&r===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",s.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Ve&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
4439
  * @license
4440
4440
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4441
4441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4442
- */class jh extends Jn($){static get is(){return"vaadin-combo-box-scroller"}static get template(){return H`
4442
+ */class Wh extends Hn(j){static get is(){return"vaadin-combo-box-scroller"}static get template(){return W`
4443
4443
  <style>
4444
4444
  :host {
4445
4445
  display: block;
@@ -4466,39 +4466,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4466
4466
  <div id="selector">
4467
4467
  <slot></slot>
4468
4468
  </div>
4469
- `}}V(jh);/**
4469
+ `}}V(Wh);/**
4470
4470
  * @license
4471
4471
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4472
4472
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4473
- */const Wh=o=>class extends or(o){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4473
+ */const jh=o=>class extends Uo(o){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4474
4474
  * @license
4475
4475
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4476
4476
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4477
- */function fi(o,e,t=0){let i=e;for(const r of o.subCaches){const s=r.parentCacheIndex;if(i<=s)break;if(i<=s+r.flatSize)return fi(r,i-s-1,t+1);i-=r.flatSize}return{cache:o,item:o.items[i],index:i,page:Math.floor(i/o.pageSize),level:t}}function Xn({getItemId:o},e,t,i=0,r=0){for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&o(n)===o(t))return{cache:e,level:i,item:n,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:r+e.getFlatIndex(s)}}for(const s of e.subCaches){const n=r+e.getFlatIndex(s.parentCacheIndex),a=Xn({getItemId:o},s,t,i+1,n+1);if(a)return a}}function Zn(o,[e,...t],i=0){e===1/0&&(e=o.size-1);const r=o.getFlatIndex(e),s=o.getSubCache(e);return s&&s.flatSize>0&&t.length?Zn(s,t,i+r+1):i+r}/**
4477
+ */function si(o,e,t=0){let i=e;for(const r of o.subCaches){const s=r.parentCacheIndex;if(i<=s)break;if(i<=s+r.flatSize)return si(r,i-s-1,t+1);i-=r.flatSize}return{cache:o,item:o.items[i],index:i,page:Math.floor(i/o.pageSize),level:t}}function $n({getItemId:o},e,t,i=0,r=0){for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&o(n)===o(t))return{cache:e,level:i,item:n,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:r+e.getFlatIndex(s)}}for(const s of e.subCaches){const n=r+e.getFlatIndex(s.parentCacheIndex),a=$n({getItemId:o},s,t,i+1,n+1);if(a)return a}}function Wn(o,[e,...t],i=0){e===1/0&&(e=o.size-1);const r=o.getFlatIndex(e),s=o.getSubCache(e);return s&&s.flatSize>0&&t.length?Wn(s,t,i+r+1):i+r}/**
4478
4478
  * @license
4479
4479
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4480
4480
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4481
- */class rr{constructor(e,t,i,r,s){ce(this,"context"),ce(this,"pageSize"),ce(this,"items",[]),ce(this,"pendingRequests",{}),ce(this,"__subCacheByIndex",{}),ce(this,"__size",0),ce(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=r,this.parentCacheIndex=s,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((r,s)=>{const n=i+s;(this.size===void 0||n<this.size)&&(this.items[n]=r)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new rr(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,r)=>{const s=r.parentCacheIndex;return t>s?i+r.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=fi(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=fi(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4481
+ */class Yo{constructor(e,t,i,r,s){ce(this,"context"),ce(this,"pageSize"),ce(this,"items",[]),ce(this,"pendingRequests",{}),ce(this,"__subCacheByIndex",{}),ce(this,"__size",0),ce(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=r,this.parentCacheIndex=s,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((r,s)=>{const n=i+s;(this.size===void 0||n<this.size)&&(this.items[n]=r)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Yo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,r)=>{const s=r.parentCacheIndex;return t>s?i+r.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=si(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=si(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4482
4482
  * @license
4483
4483
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4484
4484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4485
- */class qh extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:r,getItemId:s,isPlaceholder:n,placeholder:a,dataProvider:d,dataProviderParams:c}){super(),ce(this,"host"),ce(this,"dataProvider"),ce(this,"dataProviderParams"),ce(this,"pageSize"),ce(this,"isExpanded"),ce(this,"getItemId"),ce(this,"rootCache"),ce(this,"placeholder"),ce(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=s,this.isExpanded=r,this.placeholder=a,this.isPlaceholder=n,this.dataProvider=d,this.dataProviderParams=c,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return fi(this.rootCache,e)}getItemContext(e){return Xn({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Zn(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(r)){const s=t.createSubCache(r);this.__loadCachePage(s,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new rr(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ri(ri({},i),this.dataProviderParams()));const r=(s,n)=>{e.pendingRequests[t]===r&&(n!==void 0?e.size=n:i.parentItem&&(e.size=s.length),e.setPage(t,s),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4485
+ */class qh extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:r,getItemId:s,isPlaceholder:n,placeholder:a,dataProvider:l,dataProviderParams:c}){super(),ce(this,"host"),ce(this,"dataProvider"),ce(this,"dataProviderParams"),ce(this,"pageSize"),ce(this,"isExpanded"),ce(this,"getItemId"),ce(this,"rootCache"),ce(this,"placeholder"),ce(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=s,this.isExpanded=r,this.placeholder=a,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=c,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return si(this.rootCache,e)}getItemContext(e){return $n({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Wn(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(r)){const s=t.createSubCache(r);this.__loadCachePage(s,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Yo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=Yt(Yt({},i),this.dataProviderParams()));const r=(s,n)=>{e.pendingRequests[t]===r&&(n!==void 0?e.size=n:i.parentItem&&(e.size=s.length),e.setPage(t,s),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
4486
  * @license
4487
4487
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4488
4488
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4489
- */const Qn=o=>class extends o{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new qh(this,{placeholder:new He,isPlaceholder:e=>e instanceof He,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4489
+ */const jn=o=>class extends o{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new qh(this,{placeholder:new Ve,isPlaceholder:e=>e instanceof Ve,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4490
4490
  * @license
4491
4491
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4492
4492
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4493
- */function Ri(o){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(o);return}o.querySelector("template")&&console.warn(`WARNING: <template> inside <${o.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4493
+ */function wi(o){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(o);return}o.querySelector("template")&&console.warn(`WARNING: <template> inside <${o.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4494
4494
  * @license
4495
4495
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4496
4496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4497
- */function ns(o){return o!=null}function as(o,e){return o.findIndex(t=>t instanceof He?!1:e(t))}const ea=o=>class extends Di(je(qo(et(Qe(jt(vt(o))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Ri(this),this.addController(new Hn(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=r=>{r.innerHTML||r.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,r,s,n,a,d,c,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:r,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:d,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,i,r){this._overlayOpened=e&&(r||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Ho(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(r=>r.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!_o&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?_i(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?_i(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{_o&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const r=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ns(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const s=this.__getItemIndexByValue(e,this._getItemValue(i));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!ns(t)?-1:as(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:as(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof He)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(xi()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4497
+ */function Xr(o){return o!=null}function Zr(o,e){return o.findIndex(t=>t instanceof Ve?!1:e(t))}const qn=o=>class extends yi(Be(zo(Je(Ge(Rt(dt(o))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),wi(this),this.addController(new Rn(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=r=>{r.innerHTML||r.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,r,s,n,a,l,c,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:r,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:l,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,i,r){this._overlayOpened=e&&(r||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&To(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(r=>r.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!oo&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ri(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ri(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{oo&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const r=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Xr(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const s=this.__getItemIndexByValue(e,this._getItemValue(i));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Xr(t)?-1:Zr(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Zr(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ve)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ci()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
4498
  * @license
4499
4499
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4500
4500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4501
- */C("vaadin-combo-box",Ti,{moduleId:"vaadin-combo-box-styles"});class Uh extends Qn(ea(Wh(Si(Y(Ie($)))))){static get is(){return"vaadin-combo-box"}static get template(){return H`
4501
+ */k("vaadin-combo-box",bi,{moduleId:"vaadin-combo-box-styles"});class Uh extends jn(qn(jh(gi(Y(Ae(j)))))){static get is(){return"vaadin-combo-box"}static get template(){return W`
4502
4502
  <style>
4503
4503
  :host([opened]) {
4504
4504
  pointer-events: auto;
@@ -4543,11 +4543,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4543
4543
  ></vaadin-combo-box-overlay>
4544
4544
 
4545
4545
  <slot name="tooltip"></slot>
4546
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Wt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qt(this.inputElement,this._labelController)),this._tooltipController=new $e(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}V(Uh);/**
4546
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ot(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new Fe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}V(Uh);/**
4547
4547
  * @license
4548
4548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4549
4549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4550
- */const Yh=y`
4550
+ */const Yh=w`
4551
4551
  :host {
4552
4552
  font-size: var(--lumo-font-size-xxs);
4553
4553
  line-height: 1;
@@ -4636,27 +4636,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4636
4636
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4637
4637
  pointer-events: none;
4638
4638
  }
4639
- `;C("vaadin-multi-select-combo-box-chip",[Ko,Yh],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4639
+ `;k("vaadin-multi-select-combo-box-chip",[Lo,Yh],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4640
4640
  * @license
4641
4641
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4642
4642
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4643
- */const Kh=y`
4643
+ */const Kh=w`
4644
4644
  @media (any-hover: hover) {
4645
4645
  :host(:hover[readonly]) {
4646
4646
  background-color: transparent;
4647
4647
  cursor: default;
4648
4648
  }
4649
4649
  }
4650
- `;C("vaadin-multi-select-combo-box-item",[Oi,jn,Kh],{moduleId:"lumo-multi-select-combo-box-item"});C("vaadin-multi-select-combo-box-overlay",[Pi,ki,qn,Wn,Un,y`
4650
+ `;k("vaadin-multi-select-combo-box-item",[xi,zn,Kh],{moduleId:"lumo-multi-select-combo-box-item"});k("vaadin-multi-select-combo-box-overlay",[pi,mi,Nn,Mn,Ln,w`
4651
4651
  :host {
4652
4652
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
4654
4654
  }
4655
- `],{moduleId:"lumo-multi-select-combo-box-overlay"});C("vaadin-multi-select-combo-box-container",y`
4655
+ `],{moduleId:"lumo-multi-select-combo-box-overlay"});k("vaadin-multi-select-combo-box-container",w`
4656
4656
  :host([auto-expand-vertically]) {
4657
4657
  padding-block: var(--lumo-space-xs);
4658
4658
  }
4659
- `,{moduleId:"lumo-multi-select-combo-box-container"});const Gh=y`
4659
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Gh=w`
4660
4660
  :host([has-value]) {
4661
4661
  padding-inline-start: 0;
4662
4662
  }
@@ -4709,11 +4709,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4709
4709
  color: var(--lumo-contrast-60pct);
4710
4710
  cursor: var(--lumo-clickable-cursor);
4711
4711
  }
4712
- `;C("vaadin-multi-select-combo-box",[tt,Gh],{moduleId:"lumo-multi-select-combo-box"});/**
4712
+ `;k("vaadin-multi-select-combo-box",[Xe,Gh],{moduleId:"lumo-multi-select-combo-box"});/**
4713
4713
  * @license
4714
4714
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4715
4715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4716
- */class Jh extends Y($){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return H`
4716
+ */class Jh extends Y(j){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return W`
4717
4717
  <style>
4718
4718
  :host {
4719
4719
  display: inline-flex;
@@ -4746,7 +4746,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4746
4746
  * @license
4747
4747
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4748
4748
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4749
- */C("vaadin-multi-select-combo-box-container",y`
4749
+ */k("vaadin-multi-select-combo-box-container",w`
4750
4750
  #wrapper {
4751
4751
  display: flex;
4752
4752
  width: 100%;
@@ -4756,11 +4756,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4756
4756
  :host([auto-expand-vertically]) #wrapper {
4757
4757
  flex-wrap: wrap;
4758
4758
  }
4759
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Zt;class Xh extends Cn{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Zt){Zt=super.template.cloneNode(!0);const e=Zt.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return Zt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}V(Xh);/**
4759
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Ht;class Xh extends mn{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Ht){Ht=super.template.cloneNode(!0);const e=Ht.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return Ht}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}V(Xh);/**
4760
4760
  * @license
4761
4761
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4762
4762
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4763
- */class Zh extends Yn(Y(Pe($))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return H`
4763
+ */class Zh extends Vn(Y(xe(j))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return W`
4764
4764
  <style>
4765
4765
  :host {
4766
4766
  display: block;
@@ -4778,7 +4778,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4778
4778
  * @license
4779
4779
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4780
4780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4781
- */const Qh=y`
4781
+ */const Qh=w`
4782
4782
  #overlay {
4783
4783
  width: var(
4784
4784
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4791,7 +4791,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4791
4791
  flex-direction: column;
4792
4792
  height: 100%;
4793
4793
  }
4794
- `;C("vaadin-multi-select-combo-box-overlay",[Ai,Qh],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class eu extends Kn(Ii(Pe(Y($)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return H`
4794
+ `;k("vaadin-multi-select-combo-box-overlay",[_i,Qh],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class eu extends Fn(vi(xe(Y(j)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return W`
4795
4795
  <div id="backdrop" part="backdrop" hidden></div>
4796
4796
  <div part="overlay" id="overlay">
4797
4797
  <div part="loader"></div>
@@ -4801,7 +4801,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4801
4801
  * @license
4802
4802
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4803
4803
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4804
- */class tu extends Jn($){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return H`
4804
+ */class tu extends Hn(j){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return W`
4805
4805
  <style>
4806
4806
  :host {
4807
4807
  display: block;
@@ -4828,11 +4828,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4828
4828
  <div id="selector">
4829
4829
  <slot></slot>
4830
4830
  </div>
4831
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof He||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}V(tu);/**
4831
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof Ve||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}V(tu);/**
4832
4832
  * @license
4833
4833
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4834
4834
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4835
- */class iu extends Qn(ea(Y($))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return H`
4835
+ */class iu extends jn(qn(Y(j))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return W`
4836
4836
  <style>
4837
4837
  :host([opened]) {
4838
4838
  pointer-events: auto;
@@ -4850,15 +4850,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4850
4850
  no-vertical-overlap
4851
4851
  restore-focus-node="[[inputElement]]"
4852
4852
  ></vaadin-multi-select-combo-box-overlay>
4853
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof He||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}V(iu);/**
4853
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Ve||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}V(iu);/**
4854
4854
  * @license
4855
4855
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4856
4856
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4857
- */const Qt=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),ou=Z(o=>class extends o{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Qt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Qt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Qt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Qt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4857
+ */const $t=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),ou=X(o=>class extends o{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),$t.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,$t.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),$t.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&$t.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
4858
  * @license
4859
4859
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4860
4860
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4861
- */const ru=y`
4861
+ */const ru=w`
4862
4862
  :host {
4863
4863
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4864
4864
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4896,7 +4896,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4896
4896
  :host([auto-expand-horizontally]) [class$='container'] {
4897
4897
  width: auto;
4898
4898
  }
4899
- `;C("vaadin-multi-select-combo-box",[Ti,ru],{moduleId:"vaadin-multi-select-combo-box-styles"});class su extends ou(Si(Y(Ie($)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return H`
4899
+ `;k("vaadin-multi-select-combo-box",[bi,ru],{moduleId:"vaadin-multi-select-combo-box-styles"});class su extends ou(gi(Y(Ae(j)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return W`
4900
4900
  <div class="vaadin-multi-select-combo-box-container">
4901
4901
  <div part="label">
4902
4902
  <slot name="label"></slot>
@@ -4972,7 +4972,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4972
4972
  color: transparent !important;
4973
4973
  forced-color-adjust: none;
4974
4974
  }
4975
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Wt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qt(this.inputElement,this._labelController)),this._tooltipController=new $e(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ee(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Ri(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),oi(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let r=0;r<t.length;r++)if(t[r]&&t[r][i]===e[i])return r;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const r=t?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);oi(`${e} ${this.i18n[r]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),r=this._getItemLabel(e);let s=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===r.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(r,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",r=>this._onItemRemoved(r)),t.addEventListener("mousedown",r=>this._preventBlur(r)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),r=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=t-i;e.length>1&&(r-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,n.unshift(u)}const a=[],d=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&d<i){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(s,r)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const d=this.__createChip(e[n]);if(this.insertBefore(d,a),!this.autoExpandVertically&&this.$.chips.clientWidth>r)if(a===null)d.style.maxWidth=`${Math.max(s,r)}px`;else{d.remove();break}e.pop(),a=d}this._overflowItems=e}__updateOverflowChip(e,t,i,r){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=i,e.readonly=r}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let r;this.__isRTL?i===e.length-1?r=-1:i>-1&&(r=i+1):i===-1?r=e.length-1:i>0&&(r=i-1),r!==void 0&&(this._focusedChipIndex=r)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let r;this.__isRTL?i===-1?r=e.length-1:i>0&&(r=i-1):i===e.length-1?r=-1:i>-1&&(r=i+1),r!==void 0&&(this._focusedChipIndex=r)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((r,s)=>{r.toggleAttribute("focused",s===e)}),e>-1){const r=i[e].item,s=this._getItemLabel(r);oi(`${s} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}V(su);C("vaadin-notification-card",y`
4975
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ot(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new Fe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ke(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),wi(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Ut(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let r=0;r<t.length;r++)if(t[r]&&t[r][i]===e[i])return r;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const r=t?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);Ut(`${e} ${this.i18n[r]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),r=this._getItemLabel(e);let s=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===r.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(r,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",r=>this._onItemRemoved(r)),t.addEventListener("mousedown",r=>this._preventBlur(r)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),r=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=t-i;e.length>1&&(r-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,n.unshift(u)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(s,r)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>r)if(a===null)l.style.maxWidth=`${Math.max(s,r)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,r){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=i,e.readonly=r}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let r;this.__isRTL?i===e.length-1?r=-1:i>-1&&(r=i+1):i===-1?r=e.length-1:i>0&&(r=i-1),r!==void 0&&(this._focusedChipIndex=r)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let r;this.__isRTL?i===-1?r=e.length-1:i>0&&(r=i-1):i===e.length-1?r=-1:i>-1&&(r=i+1),r!==void 0&&(this._focusedChipIndex=r)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((r,s)=>{r.toggleAttribute("focused",s===e)}),e>-1){const r=i[e].item,s=this._getItemLabel(r);Ut(`${s} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}V(su);k("vaadin-notification-card",w`
4976
4976
  :host {
4977
4977
  position: relative;
4978
4978
  margin: var(--lumo-space-s);
@@ -5194,7 +5194,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5194
5194
  * @license
5195
5195
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5196
5196
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5197
- */class au extends Sn(Y(Ie($))){static get template(){return H`
5197
+ */class au extends yn(Y(Ae(j))){static get template(){return W`
5198
5198
  <style>
5199
5199
  :host {
5200
5200
  position: fixed;
@@ -5261,7 +5261,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5261
5261
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5262
5262
  </div>
5263
5263
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5264
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Go&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class lu extends Y($){static get template(){return H`
5264
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Vo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class lu extends Y(j){static get template(){return W`
5265
5265
  <style>
5266
5266
  :host {
5267
5267
  display: block;
@@ -5283,14 +5283,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5283
5283
  <slot></slot>
5284
5284
  </div>
5285
5285
  </div>
5286
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Re extends Di(As(Ie($))){static get template(){return H`
5286
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class De extends yi(vs(Ae(j))){static get template(){return W`
5287
5287
  <style>
5288
5288
  :host {
5289
5289
  display: none !important;
5290
5290
  }
5291
5291
  </style>
5292
5292
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5293
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return nu(e)?Re._createAndShowNotification(i=>{ks(e,i)},t):Re._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(Re.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",r=>{r.detail.value||i.remove()}),i}get _container(){return Re._container||(Re._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Re._container)),Re._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ri(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const r=this._oldRenderer!==e;this._oldRenderer=e,r&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}V(au);V(lu);V(Re);const ta=y`
5293
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return nu(e)?De._createAndShowNotification(i=>{fs(e,i)},t):De._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement(De.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",r=>{r.detail.value||i.remove()}),i}get _container(){return De._container||(De._container=document.createElement("vaadin-notification-container"),document.body.appendChild(De._container)),De._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),wi(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const r=this._oldRenderer!==e;this._oldRenderer=e,r&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}V(au);V(lu);V(De);const Un=w`
5294
5294
  :host {
5295
5295
  -webkit-tap-highlight-color: transparent;
5296
5296
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5304,11 +5304,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5304
5304
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5305
5305
  background-color: var(--lumo-contrast-10pct);
5306
5306
  }
5307
- `;C("vaadin-list-box",ta,{moduleId:"lumo-list-box"});/**
5307
+ `;k("vaadin-list-box",Un,{moduleId:"lumo-list-box"});/**
5308
5308
  * @license
5309
5309
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5310
5310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5311
- */C("vaadin-select-item",Oi,{moduleId:"lumo-select-item"});C("vaadin-select-list-box",ta,{moduleId:"lumo-select-list-box"});const du=y`
5311
+ */k("vaadin-select-item",xi,{moduleId:"lumo-select-item"});k("vaadin-select-list-box",Un,{moduleId:"lumo-select-list-box"});const du=w`
5312
5312
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5313
5313
  text-align: start;
5314
5314
  }
@@ -5351,7 +5351,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5351
5351
  --_lumo-selected-item-height: var(--lumo-size-s);
5352
5352
  --_lumo-selected-item-padding: 0;
5353
5353
  }
5354
- `;C("vaadin-select",[tt,du],{moduleId:"lumo-select"});C("vaadin-select-value-button",y`
5354
+ `;k("vaadin-select",[Xe,du],{moduleId:"lumo-select"});k("vaadin-select-value-button",w`
5355
5355
  :host {
5356
5356
  font-family: var(--lumo-font-family);
5357
5357
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5370,7 +5370,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5370
5370
  ::slotted(*:hover) {
5371
5371
  background-color: transparent;
5372
5372
  }
5373
- `,{moduleId:"lumo-select-value-button"});const cu=y`
5373
+ `,{moduleId:"lumo-select-value-button"});const cu=w`
5374
5374
  :host {
5375
5375
  --_lumo-item-selected-icon-display: block;
5376
5376
  }
@@ -5406,15 +5406,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5406
5406
  :host([theme~='align-center']) {
5407
5407
  text-align: center;
5408
5408
  }
5409
- `;C("vaadin-select-overlay",[Yo,cu],{moduleId:"lumo-select-overlay"});/**
5409
+ `;k("vaadin-select-overlay",[No,cu],{moduleId:"lumo-select-overlay"});/**
5410
5410
  * @license
5411
5411
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5412
5412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5413
- */const hu=o=>class extends Vo(et(o)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5413
+ */const hu=o=>class extends Eo(Je(o)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5414
5414
  * @license
5415
5415
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5416
5416
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5417
- */class uu extends hu(Y(Pe($))){static get is(){return"vaadin-select-item"}static get template(){return H`
5417
+ */class uu extends hu(Y(xe(j))){static get is(){return"vaadin-select-item"}static get template(){return W`
5418
5418
  <style>
5419
5419
  :host {
5420
5420
  display: inline-block;
@@ -5436,15 +5436,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5436
5436
  * @license
5437
5437
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5438
5438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5439
- */const _u=o=>class extends Qe(o){get focused(){return(this._getItems()||[]).find(Ho)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!uo(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],r=i.indexOf(this.focused);let s,n;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-a,s=r-a):this.__isNextKey(t)?(n=a,s=r+a):t==="Home"?(n=1,s=0):t==="End"&&(n=-1,s=i.length-1),s=this._getAvailableIndex(i,s,n,d=>!uo(d)),s>=0&&(e.preventDefault(),this._focus(s,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,r){const s=e.length;let n=t;for(let a=0;typeof n=="number"&&a<s;a+=1,n+=i||1){n<0?n=s-1:n>=s&&(n=0);const d=e[n];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5439
+ */const _u=o=>class extends Ge(o){get focused(){return(this._getItems()||[]).find(To)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!eo(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],r=i.indexOf(this.focused);let s,n;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-a,s=r-a):this.__isNextKey(t)?(n=a,s=r+a):t==="Home"?(n=1,s=0):t==="End"&&(n=-1,s=i.length-1),s=this._getAvailableIndex(i,s,n,l=>!eo(l)),s>=0&&(e.preventDefault(),this._focus(s,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,r){const s=e.length;let n=t;for(let a=0;typeof n=="number"&&a<s;a+=1,n+=i||1){n<0?n=s-1:n>=s&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,r))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5440
5440
  * @license
5441
5441
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5442
5442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5443
- */const fu=o=>class extends _u(o){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!uo(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oo(e,()=>{this._setItems(this._filterItems(dn(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,r){if(!r&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const s=e[i];e.forEach(n=>{n.selected=n===s}),s&&!s.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=be.debounce(this._searchReset,Fe.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const r=this._searchKey(i,t);r>=0&&this._focus(r);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),s=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&s[i[1]]>=r[i[1]]||this._isRTL&&s[i[1]]<=r[i[1]]?a=s[i[1]]-r[i[1]]:(!this._isRTL&&n[i[0]]<=r[i[0]]||this._isRTL&&n[i[0]]>=r[i[0]])&&(a=n[i[0]]-r[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=pu(this._scrollerElement,t)+e;mu(this._scrollerElement,t,i)}}};/**
5443
+ */const fu=o=>class extends _u(o){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!eo(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new xo(e,()=>{this._setItems(this._filterItems(Qs(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,r){if(!r&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const s=e[i];e.forEach(n=>{n.selected=n===s}),s&&!s.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=ge.debounce(this._searchReset,Ne.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const r=this._searchKey(i,t);r>=0&&this._focus(r);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),s=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&s[i[1]]>=r[i[1]]||this._isRTL&&s[i[1]]<=r[i[1]]?a=s[i[1]]-r[i[1]]:(!this._isRTL&&n[i[0]]<=r[i[0]]||this._isRTL&&n[i[0]]>=r[i[0]])&&(a=n[i[0]]-r[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=pu(this._scrollerElement,t)+e;mu(this._scrollerElement,t,i)}}};/**
5444
5444
  * @license
5445
5445
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5446
5446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5447
- */class vu extends fu(Y(Pe(je($)))){static get is(){return"vaadin-select-list-box"}static get template(){return H`
5447
+ */class vu extends fu(Y(xe(Be(j)))){static get is(){return"vaadin-select-list-box"}static get template(){return W`
5448
5448
  <style>
5449
5449
  :host {
5450
5450
  display: flex;
@@ -5468,11 +5468,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5468
5468
  * @license
5469
5469
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5470
5470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5471
- */const gu=o=>class extends Jo(Ii(Pe(o))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",r=getComputedStyle(t).getPropertyValue(i);r===""?this.style.removeProperty(i):this.style.setProperty(i,r)}}};/**
5471
+ */const gu=o=>class extends Fo(vi(xe(o))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",r=getComputedStyle(t).getPropertyValue(i);r===""?this.style.removeProperty(i):this.style.setProperty(i,r)}}};/**
5472
5472
  * @license
5473
5473
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5474
5474
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5475
- */const bu=y`
5475
+ */const bu=w`
5476
5476
  :host {
5477
5477
  align-items: flex-start;
5478
5478
  justify-content: flex-start;
@@ -5487,7 +5487,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5487
5487
  outline: 3px solid;
5488
5488
  }
5489
5489
  }
5490
- `;C("vaadin-select-overlay",[Ai,bu],{moduleId:"vaadin-select-overlay-styles"});class yu extends gu(Y($)){static get is(){return"vaadin-select-overlay"}static get template(){return H`
5490
+ `;k("vaadin-select-overlay",[_i,bu],{moduleId:"vaadin-select-overlay-styles"});class yu extends gu(Y(j)){static get is(){return"vaadin-select-overlay"}static get template(){return W`
5491
5491
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5492
5492
  <div part="overlay" id="overlay" tabindex="0">
5493
5493
  <div part="content" id="content">
@@ -5498,7 +5498,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5498
5498
  * @license
5499
5499
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5500
5500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5501
- */const xu=y`
5501
+ */const xu=w`
5502
5502
  :host {
5503
5503
  display: inline-block;
5504
5504
  position: relative;
@@ -5544,7 +5544,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5544
5544
  * @license
5545
5545
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5546
5546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5547
- */C("vaadin-select-value-button",xu,{moduleId:"vaadin-select-value-button-styles"});class wu extends Xo(Y($)){static get is(){return"vaadin-select-value-button"}static get template(){return H`
5547
+ */k("vaadin-select-value-button",xu,{moduleId:"vaadin-select-value-button-styles"});class wu extends Bo(Y(j)){static get is(){return"vaadin-select-value-button"}static get template(){return W`
5548
5548
  <div class="vaadin-button-container">
5549
5549
  <span part="label">
5550
5550
  <slot></slot>
@@ -5554,7 +5554,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5554
5554
  * @license
5555
5555
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5556
5556
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5557
- */const Cu=y`
5557
+ */const Cu=w`
5558
5558
  .sr-only {
5559
5559
  border: 0 !important;
5560
5560
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5572,15 +5572,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5572
5572
  * @license
5573
5573
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5574
5574
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5575
- */class Pu extends Ee{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5575
+ */class Pu extends ke{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
5576
  * @license
5577
5577
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5578
5578
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5579
- */const ku=o=>class extends Di(wi($o(Qe(Ci(o))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${yi()}`,this._srLabelController=new yn(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Pu(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ir(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new $e(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,r=this._menuElement._searchKey(i,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};ii(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((r,s,n)=>r===void 0&&s.value===i?n:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(r=>{i.appendChild(this.__createItemElement(r))})}__dispatchChange(){return si(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5579
+ */const ku=o=>class extends yi(hi(Do(Ge(ui(o))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${di()}`,this._srLabelController=new hn(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Pu(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new qo(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Fe(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,r=this._menuElement._searchKey(i,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};qt(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((r,s,n)=>r===void 0&&s.value===i?n:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(r=>{i.appendChild(this.__createItemElement(r))})}__dispatchChange(){return Kt(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5580
5580
  * @license
5581
5581
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5582
5582
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5583
- */C("vaadin-select",[Fn,Bn,Cu],{moduleId:"vaadin-select-styles"});class Au extends ku(Ie(Y($))){static get is(){return"vaadin-select"}static get template(){return H`
5583
+ */k("vaadin-select",[Tn,Dn,Cu],{moduleId:"vaadin-select-styles"});class Au extends ku(Ae(Y(j))){static get is(){return"vaadin-select"}static get template(){return W`
5584
5584
  <style>
5585
5585
  :host {
5586
5586
  position: relative;
@@ -5633,7 +5633,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5633
5633
  <div class="sr-only">
5634
5634
  <slot name="sr-label"></slot>
5635
5635
  </div>
5636
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ri(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}V(Au);function ls(o,e){l.addMessages(o,e)}function Eu(o){l.$locale.set(o)}const ds={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function Iu(o){l.append_styles(o,"svelte-q8bsrd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}@container (max-width: 768px){.ProductRestrictionContainer .ProductRestrictionWrapper{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:none}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function cs(o,e,t){const i=o.slice();return i[74]=e[t],i[76]=t,i}function hs(o,e,t){const i=o.slice();return i[77]=e[t],i}function Su(o,e,t){const i=o.slice();return i[69]=e[t],i}function Tu(o,e,t){const i=o.slice();return i[69]=e[t],i}function Du(o){let e,t,i,r,s,n,a,d,c,h,u,_,p=o[23]("titleProductRestriction")+"",w,I,T,M=o[23]("titleProductRestriction")+"",N,L,G,q,A=o[23]("productRestrictionText",{values:{baseurl:o[1],lang:o[0]}})+"",ye,J,_e=o[23]("productRestrictionEmailText")+"",K,D,ee,ue,P=o[23](`${o[14]}`)+"",g,f,b,v,k,E,O,B,j,U,se,he,pe,fe,te,X=o[23]("save")+"",le,xe,we,gt,it,ot,rt,bt,Me=l.ensure_array_like(o[8]),ie=[];for(let x=0;x<Me.length;x+=1)ie[x]=us(hs(o,Me,x));let ne=o[18]&&ps(o);function yt(x,W){return x[17]?Mu:x[13]?Ru:zu}let st=yt(o),Ce=st(o),Ne=l.ensure_array_like(o[9]),oe=[];for(let x=0;x<Ne.length;x+=1)oe[x]=_s(cs(o,Ne,x));let de=o[22]&&fs(o),Se=o[25]&&Nu(o);return{c(){e=l.element("div"),t=l.element("div"),i=l.element("button"),r=l.svg_element("svg"),s=l.svg_element("defs"),n=l.svg_element("style"),a=l.text(`.svgClass {
5637
- fill: var(--emw--color-primary, #22b04e);
5638
- }
5639
- `),d=l.svg_element("g"),c=l.svg_element("g"),h=l.svg_element("path"),u=l.space(),_=l.element("h2"),w=l.text(p),I=l.space(),T=l.element("h2"),N=l.text(M),L=l.space(),G=l.element("div"),q=l.element("p"),ye=l.space(),J=l.element("p"),K=l.space(),D=l.element("div"),ee=l.element("div"),ue=l.element("p"),g=l.text(P),f=l.space(),b=l.svg_element("svg"),v=l.svg_element("g"),k=l.svg_element("path"),E=l.space(),O=l.element("div");for(let x=0;x<ie.length;x+=1)ie[x].c();B=l.space(),ne&&ne.c(),j=l.space(),U=l.element("div"),Ce.c(),se=l.space(),he=l.element("div");for(let x=0;x<oe.length;x+=1)oe[x].c();pe=l.space(),fe=l.element("div"),te=l.element("button"),le=l.text(X),gt=l.space(),de&&de.c(),it=l.space(),Se&&Se.c(),ot=l.empty(),l.attr(h,"class","svgClass"),l.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),l.attr(h,"transform","translate(15 15) rotate(180)"),l.attr(c,"transform","translate(20 158)"),l.attr(d,"transform","translate(-20 -158)"),l.attr(r,"xmlns","http://www.w3.org/2000/svg"),l.attr(r,"width","15"),l.attr(r,"height","15"),l.attr(r,"viewBox","0 0 15 15"),l.attr(_,"class","PlayerProductRestrictionTitleMobile"),l.attr(i,"class","MenuReturnButton"),l.attr(T,"class","PlayerProductRestrictionTitle"),l.attr(q,"class","ProductRestrictionDescriptionText"),l.attr(J,"class","ProductRestrictionDescriptionText"),l.attr(G,"class","ProductRestrictionDescription"),l.attr(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),l.attr(k,"stroke-linecap","round"),l.attr(b,"xmlns","http://www.w3.org/2000/svg"),l.attr(b,"xmlns:xlink","http://www.w3.org/1999/xlink"),l.attr(b,"version","1.1"),l.attr(b,"viewBox","0 0 100 100"),l.attr(b,"xml:space","preserve"),l.attr(b,"class","ProductRestrictionConfigIcon"),l.toggle_class(b,"active",o[20]),l.attr(ee,"class","ProductRestrictionConfigLabel"),l.attr(O,"class","ProductRestrictionDropDown"),l.toggle_class(O,"active",o[20]),l.attr(D,"class","ProductRestrictionConfigWrapper"),l.toggle_class(D,"active",o[20]),l.attr(U,"class","ProductRestrictionNotification"),l.attr(he,"class","ProductResitrctionTypes"),l.attr(te,"class",xe="ProductRestrictionSave "+(o[19]?"active":"")),te.disabled=we=!o[19],l.attr(fe,"class","ProductRestrictionActionButtons"),l.attr(t,"class","ProductRestrictionWrapper"),l.attr(e,"class","ProductRestrictionContainer")},m(x,W){l.insert(x,e,W),l.append(e,t),l.append(t,i),l.append(i,r),l.append(r,s),l.append(s,n),l.append(n,a),l.append(r,d),l.append(d,c),l.append(c,h),l.append(i,u),l.append(i,_),l.append(_,w),l.append(t,I),l.append(t,T),l.append(T,N),l.append(t,L),l.append(t,G),l.append(G,q),q.innerHTML=A,l.append(G,ye),l.append(G,J),J.innerHTML=_e,l.append(t,K),l.append(t,D),l.append(D,ee),l.append(ee,ue),l.append(ue,g),l.append(ee,f),l.append(ee,b),l.append(b,v),l.append(v,k),l.append(D,E),l.append(D,O);for(let z=0;z<ie.length;z+=1)ie[z]&&ie[z].m(O,null);l.append(t,B),ne&&ne.m(t,null),l.append(t,j),l.append(t,U),Ce.m(U,null),l.append(t,se),l.append(t,he);for(let z=0;z<oe.length;z+=1)oe[z]&&oe[z].m(he,null);l.append(t,pe),l.append(t,fe),l.append(fe,te),l.append(te,le),l.append(t,gt),de&&de.m(t,null),l.insert(x,it,W),Se&&Se.m(x,W),l.insert(x,ot,W),rt||(bt=[l.listen(i,"click",o[41]),l.listen(ee,"click",o[42]),l.listen(te,"click",o[46])],rt=!0)},p(x,W){if(W[0]&8388608&&p!==(p=x[23]("titleProductRestriction")+"")&&l.set_data(w,p),W[0]&8388608&&M!==(M=x[23]("titleProductRestriction")+"")&&l.set_data(N,M),W[0]&8388611&&A!==(A=x[23]("productRestrictionText",{values:{baseurl:x[1],lang:x[0]}})+"")&&(q.innerHTML=A),W[0]&8388608&&_e!==(_e=x[23]("productRestrictionEmailText")+"")&&(J.innerHTML=_e),W[0]&8404992&&P!==(P=x[23](`${x[14]}`)+"")&&l.set_data(g,P),W[0]&1048576&&l.toggle_class(b,"active",x[20]),W[0]&536871168){Me=l.ensure_array_like(x[8]);let z;for(z=0;z<Me.length;z+=1){const qe=hs(x,Me,z);ie[z]?ie[z].p(qe,W):(ie[z]=us(qe),ie[z].c(),ie[z].m(O,null))}for(;z<ie.length;z+=1)ie[z].d(1);ie.length=Me.length}if(W[0]&1048576&&l.toggle_class(O,"active",x[20]),W[0]&1048576&&l.toggle_class(D,"active",x[20]),x[18]?ne?ne.p(x,W):(ne=ps(x),ne.c(),ne.m(t,j)):ne&&(ne.d(1),ne=null),st===(st=yt(x))&&Ce?Ce.p(x,W):(Ce.d(1),Ce=st(x),Ce&&(Ce.c(),Ce.m(U,null))),W[0]&209715712|W[1]&2){Ne=l.ensure_array_like(x[9]);let z;for(z=0;z<Ne.length;z+=1){const qe=cs(x,Ne,z);oe[z]?oe[z].p(qe,W):(oe[z]=_s(qe),oe[z].c(),oe[z].m(he,null))}for(;z<oe.length;z+=1)oe[z].d(1);oe.length=Ne.length}W[0]&8388608&&X!==(X=x[23]("save")+"")&&l.set_data(le,X),W[0]&524288&&xe!==(xe="ProductRestrictionSave "+(x[19]?"active":""))&&l.attr(te,"class",xe),W[0]&524288&&we!==(we=!x[19])&&(te.disabled=we),x[22]?de?de.p(x,W):(de=fs(x),de.c(),de.m(t,null)):de&&(de.d(1),de=null),x[25]&&Se.p(x,W)},d(x){x&&(l.detach(e),l.detach(it),l.detach(ot)),l.destroy_each(ie,x),ne&&ne.d(),Ce.d(),l.destroy_each(oe,x),de&&de.d(),Se&&Se.d(x),rt=!1,l.run_all(bt)}}}function Ou(o){let e,t,i,r,s,n,a,d,c,h,u,_,p,w,I,T,M,N=l.ensure_array_like({length:3}),L=[];for(let A=0;A<N.length;A+=1)L[A]=Lu(Tu(o,N,A));let G=l.ensure_array_like({length:3}),q=[];for(let A=0;A<G.length;A+=1)q[A]=Vu(Su(o,G,A));return{c(){e=l.element("div"),t=l.element("div"),i=l.element("div"),i.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',r=l.space(),s=l.element("h2"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',n=l.space(),a=l.element("div");for(let A=0;A<L.length;A+=1)L[A].c();d=l.space(),c=l.element("ui-skeleton"),h=l.space(),u=l.element("div"),u.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',_=l.space(),p=l.element("div"),p.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',w=l.space(),I=l.element("div");for(let A=0;A<q.length;A+=1)q[A].c();T=l.space(),M=l.element("div"),M.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',l.attr(i,"class","MenuReturnButton"),l.attr(s,"class","PlayerProductRestrictionTitle"),l.set_custom_element_data(c,"structure","text"),l.set_custom_element_data(c,"width","auto"),l.set_custom_element_data(c,"height","10px"),l.attr(a,"class","ProductRestrictionDescription"),l.attr(u,"class","ProductRestrictionConfigWrapper"),l.attr(p,"class","ProductRestrictionNotification"),l.attr(I,"class","ProductResitrctionTypes"),l.attr(M,"class","ProductRestrictionActionButtons"),l.attr(t,"class","ProductRestrictionWrapper Skeleton"),l.attr(e,"class","ProductRestrictionContainer")},m(A,ye){l.insert(A,e,ye),l.append(e,t),l.append(t,i),l.append(t,r),l.append(t,s),l.append(t,n),l.append(t,a);for(let J=0;J<L.length;J+=1)L[J]&&L[J].m(a,null);l.append(a,d),l.append(a,c),l.append(t,h),l.append(t,u),l.append(t,_),l.append(t,p),l.append(t,w),l.append(t,I);for(let J=0;J<q.length;J+=1)q[J]&&q[J].m(I,null);l.append(t,T),l.append(t,M)},p:l.noop,d(A){A&&l.detach(e),l.destroy_each(L,A),l.destroy_each(q,A)}}}function us(o){let e,t=o[77].text+"",i,r,s;function n(){return o[43](o[77])}return{c(){e=l.element("div"),i=l.text(t)},m(a,d){l.insert(a,e,d),l.append(e,i),r||(s=l.listen(e,"click",n),r=!0)},p(a,d){o=a,d[0]&256&&t!==(t=o[77].text+"")&&l.set_data(i,t)},d(a){a&&l.detach(e),r=!1,s()}}}function ps(o){let e,t,i=o[23]("duration")+"",r,s,n,a=o[23]("dateInstructions")+"",d,c,h,u,_,p,w;return{c(){e=l.element("div"),t=l.element("label"),r=l.text(i),s=l.space(),n=l.element("span"),d=l.text(a),c=l.space(),h=l.element("strong"),u=l.text(o[24]),_=l.element("strong"),p=l.space(),w=l.element("vaadin-date-picker"),l.attr(t,"for","ProductRestrictionDate"),l.attr(n,"class","ProductRestrictionDateInstructions"),l.set_custom_element_data(w,"min",o[10]),l.set_custom_element_data(w,"max",o[11]),l.set_custom_element_data(w,"value",o[10]),l.attr(e,"class","ProductRestrictionDateWrapper")},m(I,T){l.insert(I,e,T),l.append(e,t),l.append(t,r),l.append(e,s),l.append(e,n),l.append(n,d),l.append(n,c),l.append(n,h),l.append(h,u),l.append(h,_),l.append(e,p),l.append(e,w),o[44](w)},p(I,T){T[0]&8388608&&i!==(i=I[23]("duration")+"")&&l.set_data(r,i),T[0]&8388608&&a!==(a=I[23]("dateInstructions")+"")&&l.set_data(d,a),T[0]&1024&&l.set_custom_element_data(w,"min",I[10]),T[0]&2048&&l.set_custom_element_data(w,"max",I[11]),T[0]&1024&&l.set_custom_element_data(w,"value",I[10])},d(I){I&&l.detach(e),o[44](null)}}}function Ru(o){let e,t,i=o[23]("temporaryProductRestriction",{values:{date:o[12]}})+"",r;return{c(){e=l.element("p"),t=l.element("strong"),r=l.text(i),l.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){l.insert(s,e,n),l.append(e,t),l.append(t,r)},p(s,n){n[0]&8392704&&i!==(i=s[23]("temporaryProductRestriction",{values:{date:s[12]}})+"")&&l.set_data(r,i)},d(s){s&&l.detach(e)}}}function zu(o){let e,t,i=o[23]("noPeriodSelected")+"",r;return{c(){e=l.element("p"),t=l.element("strong"),r=l.text(i),l.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){l.insert(s,e,n),l.append(e,t),l.append(t,r)},p(s,n){n[0]&8388608&&i!==(i=s[23]("noPeriodSelected")+"")&&l.set_data(r,i)},d(s){s&&l.detach(e)}}}function Mu(o){let e,t,i=o[23]("permanentProductRestriction")+"",r;return{c(){e=l.element("p"),t=l.element("strong"),r=l.text(i),l.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){l.insert(s,e,n),l.append(e,t),l.append(t,r)},p(s,n){n[0]&8388608&&i!==(i=s[23]("permanentProductRestriction")+"")&&l.set_data(r,i)},d(s){s&&l.detach(e)}}}function ms(o){let e,t=o[23]("deniedProductText",{values:{date:o[32](o[74])}})+"",i;return{c(){e=l.element("p"),i=l.text(t)},m(r,s){l.insert(r,e,s),l.append(e,i)},p(r,s){s[0]&8389120&&t!==(t=r[23]("deniedProductText",{values:{date:r[32](r[74])}})+"")&&l.set_data(i,t)},d(r){r&&l.detach(e)}}}function _s(o){let e,t,i,r,s,n=o[26](o[74])+"",a,d,c,h,u,_,p=o[74].restricted&&ms(o);function w(){return o[45](o[76])}return{c(){e=l.element("button"),t=l.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=l.space(),r=l.element("div"),s=l.element("p"),a=l.text(n),d=l.space(),p&&p.c(),c=l.space(),l.attr(t,"class","toggleCheckbox"),l.attr(s,"class","label"),l.attr(r,"class","ProductRestrictionLabel"),l.attr(e,"class",h="toggleContent "+(o[74].checked||o[74].restricted?"checked":""))},m(I,T){l.insert(I,e,T),l.append(e,t),l.append(e,i),l.append(e,r),l.append(r,s),l.append(s,a),l.append(r,d),p&&p.m(r,null),l.append(e,c),u||(_=l.listen(e,"click",w),u=!0)},p(I,T){o=I,T[0]&512&&n!==(n=o[26](o[74])+"")&&l.set_data(a,n),o[74].restricted?p?p.p(o,T):(p=ms(o),p.c(),p.m(r,null)):p&&(p.d(1),p=null),T[0]&512&&h!==(h="toggleContent "+(o[74].checked||o[74].restricted?"checked":""))&&l.attr(e,"class",h)},d(I){I&&l.detach(e),p&&p.d(),u=!1,_()}}}function fs(o){let e,t,i;return{c(){e=l.element("div"),t=l.element("p"),i=l.text(o[16]),l.attr(e,"class","ProductRestrictionError")},m(r,s){l.insert(r,e,s),l.append(e,t),l.append(t,i)},p(r,s){s[0]&65536&&l.set_data(i,r[16])},d(r){r&&l.detach(e)}}}function Nu(o){let e,t,i,r;return{c(){e=l.element("player-account-modal"),t=l.element("player-account-general-confirmation-modal"),l.set_custom_element_data(t,"modaltitle",i=o[23]("confirmationModalTitle")),l.set_custom_element_data(t,"modaltext",o[15]),l.set_custom_element_data(t,"hascancelbutton",r=o[2]==="true"),l.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),l.set_custom_element_data(t,"mbsource",o[5]),l.set_custom_element_data(t,"lang",o[0]),l.set_custom_element_data(e,"clientstyling",o[3]),l.set_custom_element_data(e,"clientstylingurl",o[4]),l.set_custom_element_data(e,"mbsource",o[5]),l.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){l.insert(s,e,n),l.append(e,t)},p(s,n){n[0]&8388608&&i!==(i=s[23]("confirmationModalTitle"))&&l.set_custom_element_data(t,"modaltitle",i),n[0]&32768&&l.set_custom_element_data(t,"modaltext",s[15]),n[0]&4&&r!==(r=s[2]==="true")&&l.set_custom_element_data(t,"hascancelbutton",r),n[0]&32&&l.set_custom_element_data(t,"mbsource",s[5]),n[0]&1&&l.set_custom_element_data(t,"lang",s[0]),n[0]&8&&l.set_custom_element_data(e,"clientstyling",s[3]),n[0]&16&&l.set_custom_element_data(e,"clientstylingurl",s[4]),n[0]&32&&l.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&l.detach(e)}}}function Lu(o){let e,t,i;return{c(){e=l.element("ui-skeleton"),t=l.space(),i=l.element("ui-skeleton"),l.set_custom_element_data(e,"structure","text"),l.set_custom_element_data(e,"width","auto"),l.set_custom_element_data(e,"height","10px"),l.set_custom_element_data(i,"structure","title"),l.set_custom_element_data(i,"width","auto"),l.set_custom_element_data(i,"height","10px")},m(r,s){l.insert(r,e,s),l.insert(r,t,s),l.insert(r,i,s)},p:l.noop,d(r){r&&(l.detach(e),l.detach(t),l.detach(i))}}}function Vu(o){let e;return{c(){e=l.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',l.attr(e,"class","toggleContent")},m(t,i){l.insert(t,e,i)},p:l.noop,d(t){t&&l.detach(e)}}}function Fu(o){let e;function t(s,n){return s[21]?Ou:Du}let i=t(o),r=i(o);return{c(){e=l.element("div"),r.c()},m(s,n){l.insert(s,e,n),r.m(e,null),o[47](e)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},i:l.noop,o:l.noop,d(s){s&&l.detach(e),r.d(),o[47](null)}}}function Bu(o,e,t){let i;l.component_subscribe(o,l.$format,m=>t(23,i=m));let{endpoint:r=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:d=""}=e,{mergeproducts:c="Casino+Virtuals"}=e,{hideproducts:h=""}=e,{hasconfirmationmodal:u="false"}=e,{hascancelbutton:_=""}=e,{dateformat:p="DD/MM/YYYY"}=e,{clientstyling:w=""}=e,{clientstylingurl:I=""}=e,{mbsource:T}=e,{translationurl:M=""}=e,N,L,G=[],q={},A=[],ye=p.toUpperCase(),J=window.navigator.userAgent,_e,K,D="",ee="",ue="selectAPeriod",P="",g="",f="",b=l.getDevice(J)!=="PC",v=!1,k=!1,E=!1,O=!1,B=u==="true",j=!0,U=!1;const se=()=>{fetch(M).then(R=>R.json()).then(R=>{Object.keys(R).forEach(S=>{ls(S,R[S])})}).catch(R=>{console.log(R)})};Object.keys(ds).forEach(m=>{ls(m,ds[m])});const he=m=>{m.data.type==="setProductRestriction"&&oe()},pe=m=>dr(this,null,function*(){var R;if(m.status>=300)return t(22,U=!0),g=(R=(yield m.json()).thirdPartyResponse)==null?void 0:R.errorCode,t(16,f=i(g||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:f}},window.location.href),Promise.reject(f);if(t(22,U=!1),m.headers.get("content-type")){let S=yield m.json();return Promise.resolve(S)}return Promise.resolve()}),fe=()=>{t(19,E=ee&&A.some(m=>m.checked)),B&&E&&ie()},te=m=>{if(!c)return m;const R=c.split(","),S=[],Q=new Set;for(const Te of m){if(Q.has(Te))continue;const Le=R.find(ve=>ve.includes(Te));Le?(Le.split("+").forEach(ve=>Q.add(ve)),S.push(Le)):S.push(Te)}return S},X=m=>{const R=Object.keys(m).filter(Q=>!h.includes(Q));let S=te(R);t(9,A=S.map(Q=>({type:Q,checked:!1,restricted:!1})))},le=m=>{var R;return(R=m.type)==null?void 0:R.split("+").map(S=>i(S)).join(" + ")},xe=m=>{t(8,G=m.map(R=>({key:(R.number||"")+R.unit,text:i((R.number||"")+R.unit)})))},we=m=>{A[m].restricted||(t(9,A[m].checked=!A[m].checked,A),fe())},gt=()=>{t(20,O=!O)},it=m=>{switch(t(13,ee=m.text),t(14,ue=m.key),t(20,O=!1),t(17,v=!1),t(18,k=!1),ue){case"Until":t(18,k=!0),t(10,_e=Ye().add(6,"M").format("YYYY-MM-DD")),t(11,K=Ye().add(5,"y").format("YYYY-MM-DD")),t(12,D=_e);break;case"Permanent":t(17,v=!v);break;default:const R=ue.match(/\d+/g)[0],S=ue.match(/[a-zA-Z]+/g)[0],Q=S.includes("Day")?"days":S.includes("Month")?"months":S.includes("Year")?"years":null;if(!S)return;t(12,D=ot(Ye().add(Number(R),Q)));break}fe()},ot=m=>Ye(m).format(ye),rt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},bt=m=>{t(12,D=m.target.value)},Me=()=>{L.addEventListener("change",bt,!1);const m=S=>Ye(new Date(S.year,S.month,S.day)).format(ye),R=S=>{const Q=Ye(S,ye);return{year:Q.year(),month:Q.month(),day:Q.date()}};t(7,L.i18n=lr(ar({},L.i18n),{formatDate:m,parseDate:R}),L)},ie=()=>{if(!B||!ee||!D){t(15,P="");return}let m="";A.forEach(R=>{!R.checked||R.restricted||(m=m?`${m}, ${le(R)}`:`${le(R)}`)}),t(15,P=i("confirmationModalTextPeriodProductRestriction",{values:{period:i(ee),product:m,date:D}}))},ne=m=>{m.preventDefault(),B?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):oe()},yt=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(S=>pe(S)).then(S=>{X(S.products),xe(S.periods),st()}).catch(S=>{console.error(S)}).finally(()=>{t(21,j=!1)})},st=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(S=>pe(S)).then(S=>{S.denyProductsRoles.forEach(Q=>{let Te=A.findIndex(Le=>{var ve;return c?(ve=Le.type)==null?void 0:ve.split("+").some(sa=>sa===Q.productType):Q.productType===Le.type});Te!=-1&&t(9,A[Te].restricted=!0,A),q[Q.productType]=ot(Q.expirationDate)})}).catch(S=>{console.error(S)}).finally(()=>{t(21,j=!1)})},Ce=m=>{if(!c)return q[m.type];if(m.type.includes("+")){const R=m.type.split("+");return q[R[0]]}else return q[m.type]},Ne=m=>{const R=m.filter(S=>S.checked);return c?R.reduce((S,Q)=>[...S,...Q.type.split("+")],[]):R.map(S=>S.type)},oe=()=>{t(21,j=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,r);let R=ue.match(/\d+/g)[0],S=ue.match(/[a-zA-Z]+/g)[0],Te=Ne(A).map(ve=>({productType:ve,expirationPeriod:{unit:S,number:R}})),Le={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Te})};fetch(m.href,Le).then(ve=>pe(ve)).then(ve=>{yt(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(19,E=!1)}).catch(ve=>{console.error(i("errorProductRestrictionCall"),ve)}).finally(()=>{t(21,j=!1)})};l.onMount(()=>(window.addEventListener("message",he,!1),()=>{L&&L.removeEventListener("change",bt),window.removeEventListener("message",he)}));const de=()=>{Eu(a)},Se=()=>rt(),x=()=>gt(),W=m=>it(m);function z(m){l.binding_callbacks[m?"unshift":"push"](()=>{L=m,t(7,L)})}const qe=m=>we(m),oa=m=>ne(m);function ra(m){l.binding_callbacks[m?"unshift":"push"](()=>{N=m,t(6,N)})}return o.$$set=m=>{"endpoint"in m&&t(33,r=m.endpoint),"session"in m&&t(34,s=m.session),"playerid"in m&&t(35,n=m.playerid),"lang"in m&&t(0,a=m.lang),"baseurl"in m&&t(1,d=m.baseurl),"mergeproducts"in m&&t(36,c=m.mergeproducts),"hideproducts"in m&&t(37,h=m.hideproducts),"hasconfirmationmodal"in m&&t(38,u=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,_=m.hascancelbutton),"dateformat"in m&&t(39,p=m.dateformat),"clientstyling"in m&&t(3,w=m.clientstyling),"clientstylingurl"in m&&t(4,I=m.clientstylingurl),"mbsource"in m&&t(5,T=m.mbsource),"translationurl"in m&&t(40,M=m.translationurl)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&de(),o.$$.dirty[1]&28&&r&&s&&n&&yt(),o.$$.dirty[0]&128&&L&&Me(),o.$$.dirty[0]&72&&w&&N&&l.setClientStyling(N,w),o.$$.dirty[0]&80&&I&&N&&l.setClientStylingURL(N,I),o.$$.dirty[0]&96&&T&&N&&l.setStreamStyling(N,`${T}.Style`),o.$$.dirty[1]&512&&M&&se()},B&&ie(),[a,d,_,w,I,T,N,L,G,A,_e,K,D,ee,ue,P,f,v,k,E,O,j,U,i,ye,B,le,we,gt,it,rt,ne,Ce,r,s,n,c,h,u,p,M,Se,x,W,z,qe,oa,ra]}class ia extends l.SvelteComponent{constructor(e){super(),l.init(this,e,Bu,Fu,l.safe_not_equal,{endpoint:33,session:34,playerid:35,lang:0,baseurl:1,mergeproducts:36,hideproducts:37,hasconfirmationmodal:38,hascancelbutton:2,dateformat:39,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:40},Iu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[33]}set endpoint(e){this.$$set({endpoint:e}),l.flush()}get session(){return this.$$.ctx[34]}set session(e){this.$$set({session:e}),l.flush()}get playerid(){return this.$$.ctx[35]}set playerid(e){this.$$set({playerid:e}),l.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),l.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),l.flush()}get mergeproducts(){return this.$$.ctx[36]}set mergeproducts(e){this.$$set({mergeproducts:e}),l.flush()}get hideproducts(){return this.$$.ctx[37]}set hideproducts(e){this.$$set({hideproducts:e}),l.flush()}get hasconfirmationmodal(){return this.$$.ctx[38]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),l.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),l.flush()}get dateformat(){return this.$$.ctx[39]}set dateformat(e){this.$$set({dateformat:e}),l.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),l.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),l.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),l.flush()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),l.flush()}}l.create_custom_element(ia,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},mergeproducts:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const Hu=Object.freeze(Object.defineProperty({__proto__:null,default:ia},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=Hu;exports.dayjs=Ye;
5636
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),wi(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}V(Au);function Qr(o,e){d.addMessages(o,e)}function Eu(o){d.$locale.set(o)}const es={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function Iu(o){d.append_styles(o,"svelte-1t8brnd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerProductRestrictionTitleNone{display:none}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .PlayerProductRestrictionTitle{display:none}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function ts(o,e,t){const i=o.slice();return i[74]=e[t],i[76]=t,i}function is(o,e,t){const i=o.slice();return i[77]=e[t],i}function Su(o,e,t){const i=o.slice();return i[69]=e[t],i}function Tu(o,e,t){const i=o.slice();return i[69]=e[t],i}function Du(o){let e,t,i,r,s=o[23]("titleProductRestriction")+"",n,a,l,c,h=o[23]("productRestrictionText",{values:{baseurl:o[1],lang:o[0]}})+"",u,_,p=o[23]("productRestrictionEmailText")+"",y,C,E,L,M=o[23](`${o[14]}`)+"",N,Q,F,I,he,te,le,G,D,de,_e,P,g,f,b,v=o[23]("save")+"",S,A,z,$,q,J,ie,be,ee=o[25]&&Ou(o),ue=d.ensure_array_like(o[8]),K=[];for(let x=0;x<ue.length;x+=1)K[x]=os(is(o,ue,x));let H=o[18]&&rs(o);function pe(x,U){return x[17]?Nu:x[13]?zu:Mu}let ye=pe(o),oe=ye(o),Ee=d.ensure_array_like(o[9]),re=[];for(let x=0;x<Ee.length;x+=1)re[x]=ns(ts(o,Ee,x));let ne=o[22]&&as(o),Ce=o[26]&&Lu(o);return{c(){e=d.element("div"),t=d.element("div"),ee&&ee.c(),i=d.space(),r=d.element("h2"),n=d.text(s),a=d.space(),l=d.element("div"),c=d.element("p"),u=d.space(),_=d.element("p"),y=d.space(),C=d.element("div"),E=d.element("div"),L=d.element("p"),N=d.text(M),Q=d.space(),F=d.svg_element("svg"),I=d.svg_element("g"),he=d.svg_element("path"),te=d.space(),le=d.element("div");for(let x=0;x<K.length;x+=1)K[x].c();G=d.space(),H&&H.c(),D=d.space(),de=d.element("div"),oe.c(),_e=d.space(),P=d.element("div");for(let x=0;x<re.length;x+=1)re[x].c();g=d.space(),f=d.element("div"),b=d.element("button"),S=d.text(v),$=d.space(),ne&&ne.c(),q=d.space(),Ce&&Ce.c(),J=d.empty(),d.attr(r,"class","PlayerProductRestrictionTitle "+(o[25]?"PlayerProductRestrictionTitleNone":"")),d.attr(c,"class","ProductRestrictionDescriptionText"),d.attr(_,"class","ProductRestrictionDescriptionText"),d.attr(l,"class","ProductRestrictionDescription "+(o[25]?"ProductRestrictionDescriptionMobile":"")),d.attr(he,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(he,"stroke-linecap","round"),d.attr(F,"xmlns","http://www.w3.org/2000/svg"),d.attr(F,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(F,"version","1.1"),d.attr(F,"viewBox","0 0 100 100"),d.attr(F,"xml:space","preserve"),d.attr(F,"class","ProductRestrictionConfigIcon"),d.toggle_class(F,"active",o[20]),d.attr(E,"class","ProductRestrictionConfigLabel"),d.attr(le,"class","ProductRestrictionDropDown"),d.toggle_class(le,"active",o[20]),d.attr(C,"class","ProductRestrictionConfigWrapper"),d.toggle_class(C,"active",o[20]),d.attr(de,"class","ProductRestrictionNotification"),d.attr(P,"class","ProductResitrctionTypes"),d.attr(b,"class",A="ProductRestrictionSave "+(o[19]?"active":"")),b.disabled=z=!o[19],d.attr(f,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper "+(o[25]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(x,U){d.insert(x,e,U),d.append(e,t),ee&&ee.m(t,null),d.append(t,i),d.append(t,r),d.append(r,n),d.append(t,a),d.append(t,l),d.append(l,c),c.innerHTML=h,d.append(l,u),d.append(l,_),_.innerHTML=p,d.append(t,y),d.append(t,C),d.append(C,E),d.append(E,L),d.append(L,N),d.append(E,Q),d.append(E,F),d.append(F,I),d.append(I,he),d.append(C,te),d.append(C,le);for(let O=0;O<K.length;O+=1)K[O]&&K[O].m(le,null);d.append(t,G),H&&H.m(t,null),d.append(t,D),d.append(t,de),oe.m(de,null),d.append(t,_e),d.append(t,P);for(let O=0;O<re.length;O+=1)re[O]&&re[O].m(P,null);d.append(t,g),d.append(t,f),d.append(f,b),d.append(b,S),d.append(t,$),ne&&ne.m(t,null),d.insert(x,q,U),Ce&&Ce.m(x,U),d.insert(x,J,U),ie||(be=[d.listen(E,"click",o[43]),d.listen(b,"click",o[47])],ie=!0)},p(x,U){if(x[25]&&ee.p(x,U),U[0]&8388608&&s!==(s=x[23]("titleProductRestriction")+"")&&d.set_data(n,s),U[0]&8388611&&h!==(h=x[23]("productRestrictionText",{values:{baseurl:x[1],lang:x[0]}})+"")&&(c.innerHTML=h),U[0]&8388608&&p!==(p=x[23]("productRestrictionEmailText")+"")&&(_.innerHTML=p),U[0]&8404992&&M!==(M=x[23](`${x[14]}`)+"")&&d.set_data(N,M),U[0]&1048576&&d.toggle_class(F,"active",x[20]),U[0]&1073742080){ue=d.ensure_array_like(x[8]);let O;for(O=0;O<ue.length;O+=1){const Oe=is(x,ue,O);K[O]?K[O].p(Oe,U):(K[O]=os(Oe),K[O].c(),K[O].m(le,null))}for(;O<K.length;O+=1)K[O].d(1);K.length=ue.length}if(U[0]&1048576&&d.toggle_class(le,"active",x[20]),U[0]&1048576&&d.toggle_class(C,"active",x[20]),x[18]?H?H.p(x,U):(H=rs(x),H.c(),H.m(t,D)):H&&(H.d(1),H=null),ye===(ye=pe(x))&&oe?oe.p(x,U):(oe.d(1),oe=ye(x),oe&&(oe.c(),oe.m(de,null))),U[0]&411042304|U[1]&4){Ee=d.ensure_array_like(x[9]);let O;for(O=0;O<Ee.length;O+=1){const Oe=ts(x,Ee,O);re[O]?re[O].p(Oe,U):(re[O]=ns(Oe),re[O].c(),re[O].m(P,null))}for(;O<re.length;O+=1)re[O].d(1);re.length=Ee.length}U[0]&8388608&&v!==(v=x[23]("save")+"")&&d.set_data(S,v),U[0]&524288&&A!==(A="ProductRestrictionSave "+(x[19]?"active":""))&&d.attr(b,"class",A),U[0]&524288&&z!==(z=!x[19])&&(b.disabled=z),x[22]?ne?ne.p(x,U):(ne=as(x),ne.c(),ne.m(t,null)):ne&&(ne.d(1),ne=null),x[26]&&Ce.p(x,U)},d(x){x&&(d.detach(e),d.detach(q),d.detach(J)),ee&&ee.d(),d.destroy_each(K,x),H&&H.d(),oe.d(),d.destroy_each(re,x),ne&&ne.d(),Ce&&Ce.d(x),ie=!1,d.run_all(be)}}}function Ru(o){let e,t,i,r,s,n,a,l,c,h,u,_,p,y;function C(I,he){return I[25]?Fu:Vu}let L=C(o)(o),M=d.ensure_array_like({length:3}),N=[];for(let I=0;I<M.length;I+=1)N[I]=Bu(Tu(o,M,I));let Q=d.ensure_array_like({length:3}),F=[];for(let I=0;I<Q.length;I+=1)F[I]=Hu(Su(o,Q,I));return{c(){e=d.element("div"),t=d.element("div"),L.c(),i=d.space(),r=d.element("div");for(let I=0;I<N.length;I+=1)N[I].c();s=d.space(),n=d.element("ui-skeleton"),a=d.space(),l=d.element("div"),l.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',c=d.space(),h=d.element("div"),h.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',u=d.space(),_=d.element("div");for(let I=0;I<F.length;I+=1)F[I].c();p=d.space(),y=d.element("div"),y.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.set_custom_element_data(n,"structure","text"),d.set_custom_element_data(n,"width","auto"),d.set_custom_element_data(n,"height","10px"),d.attr(r,"class","ProductRestrictionDescription"),d.attr(l,"class","ProductRestrictionConfigWrapper"),d.attr(h,"class","ProductRestrictionNotification"),d.attr(_,"class","ProductResitrctionTypes"),d.attr(y,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton "+(o[25]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(I,he){d.insert(I,e,he),d.append(e,t),L.m(t,null),d.append(t,i),d.append(t,r);for(let te=0;te<N.length;te+=1)N[te]&&N[te].m(r,null);d.append(r,s),d.append(r,n),d.append(t,a),d.append(t,l),d.append(t,c),d.append(t,h),d.append(t,u),d.append(t,_);for(let te=0;te<F.length;te+=1)F[te]&&F[te].m(_,null);d.append(t,p),d.append(t,y)},p:d.noop,d(I){I&&d.detach(e),L.d(),d.destroy_each(N,I),d.destroy_each(F,I)}}}function Ou(o){let e,t,i,r,s,n,a,l,c,h,u=o[23]("titleProductRestriction")+"",_,p,y;return{c(){e=d.element("button"),t=d.svg_element("svg"),i=d.svg_element("defs"),r=d.svg_element("style"),s=d.text(`.svgClass {
5637
+ fill: var(--emw--color-primary, #22b04e);
5638
+ }
5639
+ `),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),h=d.element("h2"),_=d.text(u),d.attr(l,"class","svgClass"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(t,"xmlns","http://www.w3.org/2000/svg"),d.attr(t,"width","15"),d.attr(t,"height","15"),d.attr(t,"viewBox","0 0 15 15"),d.attr(h,"class","PlayerProductRestrictionTitleMobile"),d.attr(e,"class","MenuReturnButton")},m(C,E){d.insert(C,e,E),d.append(e,t),d.append(t,i),d.append(i,r),d.append(r,s),d.append(t,n),d.append(n,a),d.append(a,l),d.append(e,c),d.append(e,h),d.append(h,_),p||(y=d.listen(e,"click",o[42]),p=!0)},p(C,E){E[0]&8388608&&u!==(u=C[23]("titleProductRestriction")+"")&&d.set_data(_,u)},d(C){C&&d.detach(e),p=!1,y()}}}function os(o){let e,t=o[77].text+"",i,r,s;function n(){return o[44](o[77])}return{c(){e=d.element("div"),i=d.text(t)},m(a,l){d.insert(a,e,l),d.append(e,i),r||(s=d.listen(e,"click",n),r=!0)},p(a,l){o=a,l[0]&256&&t!==(t=o[77].text+"")&&d.set_data(i,t)},d(a){a&&d.detach(e),r=!1,s()}}}function rs(o){let e,t,i=o[23]("duration")+"",r,s,n,a=o[23]("dateInstructions")+"",l,c,h,u,_,p,y;return{c(){e=d.element("div"),t=d.element("label"),r=d.text(i),s=d.space(),n=d.element("span"),l=d.text(a),c=d.space(),h=d.element("strong"),u=d.text(o[24]),_=d.element("strong"),p=d.space(),y=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(n,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(y,"min",o[10]),d.set_custom_element_data(y,"max",o[11]),d.set_custom_element_data(y,"value",o[10]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(C,E){d.insert(C,e,E),d.append(e,t),d.append(t,r),d.append(e,s),d.append(e,n),d.append(n,l),d.append(n,c),d.append(n,h),d.append(h,u),d.append(h,_),d.append(e,p),d.append(e,y),o[45](y)},p(C,E){E[0]&8388608&&i!==(i=C[23]("duration")+"")&&d.set_data(r,i),E[0]&8388608&&a!==(a=C[23]("dateInstructions")+"")&&d.set_data(l,a),E[0]&1024&&d.set_custom_element_data(y,"min",C[10]),E[0]&2048&&d.set_custom_element_data(y,"max",C[11]),E[0]&1024&&d.set_custom_element_data(y,"value",C[10])},d(C){C&&d.detach(e),o[45](null)}}}function zu(o){let e,t,i=o[23]("temporaryProductRestriction",{values:{date:o[12]}})+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,r)},p(s,n){n[0]&8392704&&i!==(i=s[23]("temporaryProductRestriction",{values:{date:s[12]}})+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function Mu(o){let e,t,i=o[23]("noPeriodSelected")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,r)},p(s,n){n[0]&8388608&&i!==(i=s[23]("noPeriodSelected")+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function Nu(o){let e,t,i=o[23]("permanentProductRestriction")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,r)},p(s,n){n[0]&8388608&&i!==(i=s[23]("permanentProductRestriction")+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function ss(o){let e,t=o[23]("deniedProductText",{values:{date:o[33](o[74])}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(r,s){d.insert(r,e,s),d.append(e,i)},p(r,s){s[0]&8389120&&t!==(t=r[23]("deniedProductText",{values:{date:r[33](r[74])}})+"")&&d.set_data(i,t)},d(r){r&&d.detach(e)}}}function ns(o){let e,t,i,r,s,n=o[27](o[74])+"",a,l,c,h,u,_,p=o[74].restricted&&ss(o);function y(){return o[46](o[76])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),r=d.element("div"),s=d.element("p"),a=d.text(n),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(r,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(o[74].checked||o[74].restricted?"checked":""))},m(C,E){d.insert(C,e,E),d.append(e,t),d.append(e,i),d.append(e,r),d.append(r,s),d.append(s,a),d.append(r,l),p&&p.m(r,null),d.append(e,c),u||(_=d.listen(e,"click",y),u=!0)},p(C,E){o=C,E[0]&512&&n!==(n=o[27](o[74])+"")&&d.set_data(a,n),o[74].restricted?p?p.p(o,E):(p=ss(o),p.c(),p.m(r,null)):p&&(p.d(1),p=null),E[0]&512&&h!==(h="toggleContent "+(o[74].checked||o[74].restricted?"checked":""))&&d.attr(e,"class",h)},d(C){C&&d.detach(e),p&&p.d(),u=!1,_()}}}function as(o){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(o[16]),d.attr(e,"class","ProductRestrictionError")},m(r,s){d.insert(r,e,s),d.append(e,t),d.append(t,i)},p(r,s){s[0]&65536&&d.set_data(i,r[16])},d(r){r&&d.detach(e)}}}function Lu(o){let e,t,i,r;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=o[23]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",o[15]),d.set_custom_element_data(t,"hascancelbutton",r=o[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",o[5]),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(e,"clientstyling",o[3]),d.set_custom_element_data(e,"clientstylingurl",o[4]),d.set_custom_element_data(e,"mbsource",o[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){d.insert(s,e,n),d.append(e,t)},p(s,n){n[0]&8388608&&i!==(i=s[23]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),n[0]&32768&&d.set_custom_element_data(t,"modaltext",s[15]),n[0]&4&&r!==(r=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",r),n[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),n[0]&1&&d.set_custom_element_data(t,"lang",s[0]),n[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),n[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),n[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e)}}}function Vu(o){let e;return{c(){e=d.element("h2"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","PlayerProductRestrictionTitle")},m(t,i){d.insert(t,e,i)},d(t){t&&d.detach(e)}}}function Fu(o){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","MenuReturnButton")},m(t,i){d.insert(t,e,i)},d(t){t&&d.detach(e)}}}function Bu(o){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(r,s){d.insert(r,e,s),d.insert(r,t,s),d.insert(r,i,s)},p:d.noop,d(r){r&&(d.detach(e),d.detach(t),d.detach(i))}}}function Hu(o){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function $u(o){let e;function t(s,n){return s[21]?Ru:Du}let i=t(o),r=i(o);return{c(){e=d.element("div"),r.c()},m(s,n){d.insert(s,e,n),r.m(e,null),o[48](e)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),r.d(),o[48](null)}}}function Wu(o,e,t){let i;d.component_subscribe(o,d.$format,m=>t(23,i=m));let{endpoint:r=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:l=""}=e,{mergeproducts:c="Casino+Virtuals"}=e,{hideproducts:h=""}=e,{hasconfirmationmodal:u="false"}=e,{hascancelbutton:_=""}=e,{dateformat:p="DD/MM/YYYY"}=e,{clientstyling:y=""}=e,{clientstylingurl:C=""}=e,{mbsource:E}=e,{translationurl:L=""}=e,M,N,Q=[],F={},I=[],he=p.toUpperCase(),te=window.navigator.userAgent,le,G,D="",de="",_e="selectAPeriod",P="",g="",f="",b=d.getDevice(te)!=="PC",v=!1,S=!1,A=!1,z=!1,$=u==="true",q=!0,J=!1;const ie=()=>{fetch(L).then(R=>R.json()).then(R=>{Object.keys(R).forEach(T=>{Qr(T,R[T])})}).catch(R=>{console.log(R)})};Object.keys(es).forEach(m=>{Qr(m,es[m])});const be=m=>{m.data.type==="setProductRestriction"&&Go()},ee=m=>er(this,null,function*(){var R;if(m.status>=300)return t(22,J=!0),g=(R=(yield m.json()).thirdPartyResponse)==null?void 0:R.errorCode,t(16,f=i(g||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:f}},window.location.href),Promise.reject(f);if(t(22,J=!1),m.headers.get("content-type")){let T=yield m.json();return Promise.resolve(T)}return Promise.resolve()}),ue=()=>{t(19,A=de&&I.some(m=>m.checked)),$&&A&&O()},K=m=>{if(!c)return m;const R=c.split(","),T=[],Z=new Set;for(const Ie of m){if(Z.has(Ie))continue;const ze=R.find(fe=>fe.includes(Ie));ze?(ze.split("+").forEach(fe=>Z.add(fe)),T.push(ze)):T.push(Ie)}return T},H=m=>{const R=Object.keys(m).filter(Z=>!h.includes(Z));let T=K(R);t(9,I=T.map(Z=>({type:Z,checked:!1,restricted:!1})))},pe=m=>{var R;return(R=m.type)==null?void 0:R.split("+").map(T=>i(T)).join(" + ")},ye=m=>{t(8,Q=m.map(R=>({key:(R.number||"")+R.unit,text:i((R.number||"")+R.unit)})))},oe=m=>{I[m].restricted||(t(9,I[m].checked=!I[m].checked,I),ue())},Ee=()=>{t(20,z=!z)},re=m=>{switch(t(13,de=m.text),t(14,_e=m.key),t(20,z=!1),t(17,v=!1),t(18,S=!1),_e){case"Until":t(18,S=!0),t(10,le=We().add(6,"M").format("YYYY-MM-DD")),t(11,G=We().add(5,"y").format("YYYY-MM-DD")),t(12,D=le);break;case"Permanent":t(17,v=!v);break;default:const R=_e.match(/\d+/g)[0],T=_e.match(/[a-zA-Z]+/g)[0],Z=T.includes("Day")?"days":T.includes("Month")?"months":T.includes("Year")?"years":null;if(!T)return;t(12,D=ne(We().add(Number(R),Z)));break}ue()},ne=m=>We(m).format(he),Ce=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},x=m=>{t(12,D=m.target.value)},U=()=>{N.addEventListener("change",x,!1);const m=T=>We(new Date(T.year,T.month,T.day)).format(he),R=T=>{const Z=We(T,he);return{year:Z.year(),month:Z.month(),day:Z.date()}};t(7,N.i18n=Qo(Zo({},N.i18n),{formatDate:m,parseDate:R}),N)},O=()=>{if(!$||!de||!D){t(15,P="");return}let m="";I.forEach(R=>{!R.checked||R.restricted||(m=m?`${m}, ${pe(R)}`:`${pe(R)}`)}),t(15,P=i("confirmationModalTextPeriodProductRestriction",{values:{period:i(de),product:m,date:D}}))},Oe=m=>{m.preventDefault(),$?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):Go()},Ko=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>ee(T)).then(T=>{H(T.products),ye(T.periods),Kn()}).catch(T=>{console.error(T)}).finally(()=>{t(21,q=!1)})},Kn=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>ee(T)).then(T=>{T.denyProductsRoles.forEach(Z=>{let Ie=I.findIndex(ze=>{var fe;return c?(fe=ze.type)==null?void 0:fe.split("+").some(sa=>sa===Z.productType):Z.productType===ze.type});Ie!=-1&&t(9,I[Ie].restricted=!0,I),F[Z.productType]=ne(Z.expirationDate)})}).catch(T=>{console.error(T)}).finally(()=>{t(21,q=!1)})},Gn=m=>{if(!c)return F[m.type];if(m.type.includes("+")){const R=m.type.split("+");return F[R[0]]}else return F[m.type]},Jn=m=>{const R=m.filter(T=>T.checked);return c?R.reduce((T,Z)=>[...T,...Z.type.split("+")],[]):R.map(T=>T.type)},Go=()=>{t(21,q=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,r);let R=_e.match(/\d+/g)[0],T=_e.match(/[a-zA-Z]+/g)[0],Ie=Jn(I).map(fe=>({productType:fe,expirationPeriod:{unit:T,number:R}})),ze={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Ie})};fetch(m.href,ze).then(fe=>ee(fe)).then(fe=>{Ko(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(19,A=!1)}).catch(fe=>{console.error(i("errorProductRestrictionCall"),fe)}).finally(()=>{t(21,q=!1)})};d.onMount(()=>(window.addEventListener("message",be,!1),()=>{N&&N.removeEventListener("change",x),window.removeEventListener("message",be)}));const Xn=()=>{Eu(a)},Zn=()=>Ce(),Qn=()=>Ee(),ea=m=>re(m);function ta(m){d.binding_callbacks[m?"unshift":"push"](()=>{N=m,t(7,N)})}const ia=m=>oe(m),oa=m=>Oe(m);function ra(m){d.binding_callbacks[m?"unshift":"push"](()=>{M=m,t(6,M)})}return o.$$set=m=>{"endpoint"in m&&t(34,r=m.endpoint),"session"in m&&t(35,s=m.session),"playerid"in m&&t(36,n=m.playerid),"lang"in m&&t(0,a=m.lang),"baseurl"in m&&t(1,l=m.baseurl),"mergeproducts"in m&&t(37,c=m.mergeproducts),"hideproducts"in m&&t(38,h=m.hideproducts),"hasconfirmationmodal"in m&&t(39,u=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,_=m.hascancelbutton),"dateformat"in m&&t(40,p=m.dateformat),"clientstyling"in m&&t(3,y=m.clientstyling),"clientstylingurl"in m&&t(4,C=m.clientstylingurl),"mbsource"in m&&t(5,E=m.mbsource),"translationurl"in m&&t(41,L=m.translationurl)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&Xn(),o.$$.dirty[1]&56&&r&&s&&n&&Ko(),o.$$.dirty[0]&128&&N&&U(),o.$$.dirty[0]&72&&y&&M&&d.setClientStyling(M,y),o.$$.dirty[0]&80&&C&&M&&d.setClientStylingURL(M,C),o.$$.dirty[0]&96&&E&&M&&d.setStreamStyling(M,`${E}.Style`),o.$$.dirty[1]&1024&&L&&ie()},$&&O(),[a,l,_,y,C,E,M,N,Q,I,le,G,D,de,_e,P,f,v,S,A,z,q,J,i,he,b,$,pe,oe,Ee,re,Ce,Oe,Gn,r,s,n,c,h,u,p,L,Zn,Qn,ea,ta,ia,oa,ra]}class Yn extends d.SvelteComponent{constructor(e){super(),d.init(this,e,Wu,$u,d.safe_not_equal,{endpoint:34,session:35,playerid:36,lang:0,baseurl:1,mergeproducts:37,hideproducts:38,hasconfirmationmodal:39,hascancelbutton:2,dateformat:40,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:41},Iu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[34]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[35]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[36]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get mergeproducts(){return this.$$.ctx[37]}set mergeproducts(e){this.$$set({mergeproducts:e}),d.flush()}get hideproducts(){return this.$$.ctx[38]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[39]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[40]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[41]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Yn,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},mergeproducts:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const ju=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=ju;exports.dayjs=We;