@everymatrix/player-account-self-exclusion-nd 1.54.2 → 1.54.5
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.
|
@@ -0,0 +1,3832 @@
|
|
|
1
|
+
"use strict";var Tc=Object.defineProperty,Dc=Object.defineProperties;var kc=Object.getOwnPropertyDescriptors;var Js=Object.getOwnPropertySymbols;var Mc=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable;var Mn=(i,e,t)=>e in i?Tc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ki=(i,e)=>{for(var t in e||(e={}))Mc.call(e,t)&&Mn(i,t,e[t]);if(Js)for(var t of Js(e))Oc.call(e,t)&&Mn(i,t,e[t]);return i},Mi=(i,e)=>Dc(i,kc(e));var xe=(i,e,t)=>Mn(i,typeof e!="symbol"?e+"":e,t);var He=(i,e,t)=>new Promise((n,r)=>{var s=l=>{try{a(t.next(l))}catch(u){r(u)}},o=l=>{try{a(t.throw(l))}catch(u){r(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ae(){}function tl(i){return i()}function Zs(){return Object.create(null)}function Ft(i){i.forEach(tl)}function _s(i){return typeof i=="function"}function il(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function Nc(i){return Object.keys(i).length===0}function nl(i,...e){if(i==null){for(const n of e)n(void 0);return Ae}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ic(i,e,t){i.$$.on_destroy.push(nl(e,t))}function x(i,e){i.appendChild(e)}function Hc(i,e,t){const n=Lc(i);if(!n.getElementById(e)){const r=B("style");r.id=e,r.textContent=t,Bc(n,r)}}function Lc(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Bc(i,e){return x(i.head||i,e),e.sheet}function Ne(i,e,t){i.insertBefore(e,t||null)}function Pe(i){i.parentNode&&i.parentNode.removeChild(i)}function Rc(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function B(i){return document.createElement(i)}function ke(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function pe(i){return document.createTextNode(i)}function he(){return pe(" ")}function Qi(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function C(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Q(i,e,t){const n=e.toLowerCase();n in i?i[n]=typeof i[n]=="boolean"&&t===""?!0:t:e in i?i[e]=typeof i[e]=="boolean"&&t===""?!0:t:C(i,e,t)}function zc(i){return Array.from(i.childNodes)}function Ee(i,e){e=""+e,i.data!==e&&(i.data=e)}function dt(i,e,t){i.classList.toggle(e,!!t)}function Fc(i){const e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let li;function ri(i){li=i}function Uc(){if(!li)throw new Error("Function called outside component initialization");return li}function jc(i){Uc().$$.on_mount.push(i)}const _t=[],en=[];let xt=[];const Qs=[],Vc=Promise.resolve();let wr=!1;function Yc(){wr||(wr=!0,Vc.then(we))}function Ar(i){xt.push(i)}const On=new Set;let ft=0;function we(){if(ft!==0)return;const i=li;do{try{for(;ft<_t.length;){const e=_t[ft];ft++,ri(e),Wc(e.$$)}}catch(e){throw _t.length=0,ft=0,e}for(ri(null),_t.length=0,ft=0;en.length;)en.pop()();for(let e=0;e<xt.length;e+=1){const t=xt[e];On.has(t)||(On.add(t),t())}xt.length=0}while(_t.length);for(;Qs.length;)Qs.pop()();wr=!1,On.clear(),ri(i)}function Wc(i){if(i.fragment!==null){i.update(),Ft(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ar)}}function Gc(i){const e=[],t=[];xt.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),xt=e}const qc=new Set;function Xc(i,e){i&&i.i&&(qc.delete(i),i.i(e))}function eo(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Kc(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),Ar(()=>{const s=i.$$.on_mount.map(tl).filter(_s);i.$$.on_destroy?i.$$.on_destroy.push(...s):Ft(s),i.$$.on_mount=[]}),r.forEach(Ar)}function Jc(i,e){const t=i.$$;t.fragment!==null&&(Gc(t.after_update),Ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Zc(i,e){i.$$.dirty[0]===-1&&(_t.push(i),Yc(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Qc(i,e,t,n,r,s,o=null,a=[-1]){const l=li;ri(i);const u=i.$$={fragment:null,ctx:[],props:s,update:Ae,not_equal:r,bound:Zs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Zs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=t(i,e.props||{},(h,d,...f)=>{const p=f.length?f[0]:d;return u.ctx&&r(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),c&&Zc(i,h)),d}),u.update(),c=!0,Ft(u.before_update),u.fragment=n(u.ctx),e.target){if(e.hydrate){const h=zc(e.target);u.fragment&&u.fragment.l(h),h.forEach(Pe)}else u.fragment&&u.fragment.c();e.intro&&Xc(i.$$.fragment),Kc(i,e.target,e.anchor),we()}ri(l)}let rl;typeof HTMLElement=="function"&&(rl=class extends HTMLElement{constructor(e,t,n){super();xe(this,"$$ctor");xe(this,"$$s");xe(this,"$$c");xe(this,"$$cn",!1);xe(this,"$$d",{});xe(this,"$$r",!1);xe(this,"$$p_d",{});xe(this,"$$l",{});xe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}connectedCallback(){return He(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let o;return{c:function(){o=B("slot"),s!=="default"&&C(o,"name",s)},m:function(u,c){Ne(u,o,c)},d:function(u){u&&Pe(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Fc(this);for(const s of this.$$s)s in n&&(t[s]=[e(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Ri(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Mi(ki({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Ri(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(e,t,n){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ri(e,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ri(i,e,t,n){var s;const r=(s=t[i])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function eh(i,e,t,n,r,s){let o=class extends rl{constructor(){super(i,t,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=Ri(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),n.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=o,o}class th{constructor(){xe(this,"$$");xe(this,"$$set")}$destroy(){Jc(this,1),this.$destroy=Ae}$on(e,t){if(!_s(t))return Ae;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!Nc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ih="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ih);var Sr=function(i,e){return Sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},Sr(i,e)};function Ie(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Sr(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},L.apply(this,arguments)};function nh(i,e){var t={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(i);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(i,n[r])&&(t[n[r]]=i[n[r]]);return t}function Cr(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function $r(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var n=t.call(i),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return s}function Et(i,e,t){if(t||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return i.concat(s||Array.prototype.slice.call(e))}function Me(i){return typeof i=="function"}function sl(i){var e=function(n){Error.call(n),n.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Nn=sl(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
2
|
+
`+t.map(function(n,r){return r+1+") "+n.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Pr(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var gn=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,n,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Cr(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(Me(c))try{c()}catch(g){s=g instanceof Nn?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Cr(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{to(p)}catch(g){s=s!=null?s:[],g instanceof Nn?s=Et(Et([],$r(s)),$r(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}if(s)throw new Nn(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)to(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pr(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Pr(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),ol=gn.EMPTY;function al(i){return i instanceof gn||i&&"closed"in i&&Me(i.remove)&&Me(i.add)&&Me(i.unsubscribe)}function to(i){Me(i)?i():i.unsubscribe()}var rh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},sh={setTimeout:function(i,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return setTimeout.apply(void 0,Et([i,e],$r(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function oh(i){sh.setTimeout(function(){throw i})}function io(){}function zi(i){i()}var ll=function(i){Ie(e,i);function e(t){var n=i.call(this)||this;return n.isStopped=!1,t?(n.destination=t,al(t)&&t.add(n)):n.destination=uh,n}return e.create=function(t,n,r){return new Tr(t,n,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(gn),ah=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){Oi(n)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){Oi(n)}else Oi(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Oi(t)}},i}(),Tr=function(i){Ie(e,i);function e(t,n,r){var s=i.call(this)||this,o;return Me(t)||!t?o={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:r!=null?r:void 0}:o=t,s.destination=new ah(o),s}return e}(ll);function Oi(i){oh(i)}function lh(i){throw i}var uh={closed:!0,next:io,error:lh,complete:io},ch=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function hh(i){return i}function dh(i){return i.length===0?hh:i.length===1?i[0]:function(t){return i.reduce(function(n,r){return r(n)},t)}}var no=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,n){var r=this,s=ph(e)?e:new Tr(e,t,n);return zi(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var n=this;return t=ro(t),new t(function(r,s){var o=new Tr({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});n.subscribe(o)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[ch]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dh(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=ro(e),new e(function(n,r){var s;t.subscribe(function(o){return s=o},function(o){return r(o)},function(){return n(s)})})},i.create=function(e){return new i(e)},i}();function ro(i){var e;return(e=i!=null?i:rh.Promise)!==null&&e!==void 0?e:Promise}function fh(i){return i&&Me(i.next)&&Me(i.error)&&Me(i.complete)}function ph(i){return i&&i instanceof ll||fh(i)&&al(i)}var mh=sl(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ul=function(i){Ie(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var n=new so(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new mh},e.prototype.next=function(t){var n=this;zi(function(){var r,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=Cr(n.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(t)}}catch(u){r={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var n=this;zi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var r=n.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;zi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?ol:(this.currentObservers=null,a.push(t),new gn(function(){n.currentObservers=null,Pr(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var n=this,r=n.hasError,s=n.thrownError,o=n.isStopped;r?t.error(s):o&&t.complete()},e.prototype.asObservable=function(){var t=new no;return t.source=this,t},e.create=function(t,n){return new so(t,n)},e}(no),so=function(i){Ie(e,i);function e(t,n){var r=i.call(this)||this;return r.destination=t,r.source=n,r}return e.prototype.next=function(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)},e.prototype.error=function(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)},e.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},e.prototype._subscribe=function(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ol},e}(ul),cl={now:function(){return(cl.delegate||Date).now()},delegate:void 0},_h=function(i){Ie(e,i);function e(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0),r===void 0&&(r=cl);var s=i.call(this)||this;return s._bufferSize=t,s._windowTime=n,s._timestampProvider=r,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,n),s}return e.prototype.next=function(t){var n=this,r=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;r||(s.push(t),!o&&s.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),r=this,s=r._infiniteTimeWindow,o=r._buffer,a=o.slice(),l=0;l<a.length&&!t.closed;l+=s?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),n},e.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,r=t._timestampProvider,s=t._buffer,o=t._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=r.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},e}(ul);const oo=[],ao={},gh=(i,e=0)=>{if(oo.indexOf(i)==-1){const t=new _h(e);ao[i]=t,oo.push(i)}return ao[i]},pt=[];function yh(i,e){return{subscribe:yn(i,e).subscribe}}function yn(i,e=Ae){let t;const n=new Set;function r(a){if(il(i,a)&&(i=a,t)){const l=!pt.length;for(const u of n)u[1](),pt.push(u,i);if(l){for(let u=0;u<pt.length;u+=2)pt[u][0](pt[u+1]);pt.length=0}}}function s(a){r(a(i))}function o(a,l=Ae){const u=[a,l];return n.add(u),n.size===1&&(t=e(r,s)||Ae),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:r,update:s,subscribe:o}}function Ut(i,e,t){const n=!Array.isArray(i),r=n?[i]:i;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return yh(t,(o,a)=>{let l=!1;const u=[];let c=0,h=Ae;const d=()=>{if(c)return;h();const p=e(n?u[0]:u,o,a);s?o(p):h=_s(p)?p:Ae},f=r.map((p,g)=>nl(p,$=>{u[g]=$,c&=~(1<<g),l&&d()},()=>{c|=1<<g}));return l=!0,d(),function(){Ft(f),h(),l=!1}})}var bh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hl(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var vh=function(e){return xh(e)&&!Eh(e)};function xh(i){return!!i&&typeof i=="object"}function Eh(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||Sh(i)}var wh=typeof Symbol=="function"&&Symbol.for,Ah=wh?Symbol.for("react.element"):60103;function Sh(i){return i.$$typeof===Ah}function Ch(i){return Array.isArray(i)?[]:{}}function ui(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Ct(Ch(i),i,e):i}function $h(i,e,t){return i.concat(e).map(function(n){return ui(n,t)})}function Ph(i,e){if(!e.customMerge)return Ct;var t=e.customMerge(i);return typeof t=="function"?t:Ct}function Th(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function lo(i){return Object.keys(i).concat(Th(i))}function dl(i,e){try{return e in i}catch(t){return!1}}function Dh(i,e){return dl(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function kh(i,e,t){var n={};return t.isMergeableObject(i)&&lo(i).forEach(function(r){n[r]=ui(i[r],t)}),lo(e).forEach(function(r){Dh(i,r)||(dl(i,r)&&t.isMergeableObject(e[r])?n[r]=Ph(r,t)(i[r],e[r],t):n[r]=ui(e[r],t))}),n}function Ct(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||$h,t.isMergeableObject=t.isMergeableObject||vh,t.cloneUnlessOtherwiseSpecified=ui;var n=Array.isArray(e),r=Array.isArray(i),s=n===r;return s?n?t.arrayMerge(i,e,t):kh(i,e,t):ui(e,t)}Ct.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return Ct(n,r,t)},{})};var Mh=Ct,Oh=Mh;const Nh=hl(Oh);function In(i,e){var t=e&&e.cache?e.cache:Fh,n=e&&e.serializer?e.serializer:Rh,r=e&&e.strategy?e.strategy:Hh;return r(i,{cache:t,serializer:n})}function Ih(i){return i==null||typeof i=="number"||typeof i=="boolean"}function fl(i,e,t,n){var r=Ih(n)?n:t(n),s=e.get(r);return typeof s=="undefined"&&(s=i.call(this,n),e.set(r,s)),s}function pl(i,e,t){var n=Array.prototype.slice.call(arguments,3),r=t(n),s=e.get(r);return typeof s=="undefined"&&(s=i.apply(this,n),e.set(r,s)),s}function gs(i,e,t,n,r){return t.bind(e,i,n,r)}function Hh(i,e){var t=i.length===1?fl:pl;return gs(i,this,t,e.cache.create(),e.serializer)}function Lh(i,e){return gs(i,this,pl,e.cache.create(),e.serializer)}function Bh(i,e){return gs(i,this,fl,e.cache.create(),e.serializer)}var Rh=function(){return JSON.stringify(arguments)},zh=function(){function i(){this.cache=Object.create(null)}return i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t},i}(),Fh={create:function(){return new zh}},Hn={variadic:Lh,monadic:Bh},T;(function(i){i[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var G;(function(i){i[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag"})(G||(G={}));var $t;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})($t||($t={}));function uo(i){return i.type===G.literal}function Uh(i){return i.type===G.argument}function ml(i){return i.type===G.number}function _l(i){return i.type===G.date}function gl(i){return i.type===G.time}function yl(i){return i.type===G.select}function bl(i){return i.type===G.plural}function jh(i){return i.type===G.pound}function vl(i){return i.type===G.tag}function xl(i){return!!(i&&typeof i=="object"&&i.type===$t.number)}function Dr(i){return!!(i&&typeof i=="object"&&i.type===$t.dateTime)}var El=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Vh=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Yh(i){var e={};return i.replace(Vh,function(t){var n=t.length;switch(t[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Wh=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Gh(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(Wh).filter(function(d){return d.length>0}),t=[],n=0,r=e;n<r.length;n++){var s=r[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function qh(i){return i.replace(/^(.*?)-/,"")}var co=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wl=/^(@+)?(\+|#+)?[rs]?$/g,Xh=/(\*)(0+)|(#+)(0+)|(0+)/g,Al=/^(0+)$/;function ho(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(wl,function(t,n,r){return typeof r!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):r==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof r=="string"?r.length:0)),""}),e}function Sl(i){switch(i){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Kh(i){var e;if(i[0]==="E"&&i[1]==="E"?(e={notation:"engineering"},i=i.slice(2)):i[0]==="E"&&(e={notation:"scientific"},i=i.slice(1)),e){var t=i.slice(0,2);if(t==="+!"?(e.signDisplay="always",i=i.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",i=i.slice(2)),!Al.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function fo(i){var e={},t=Sl(i);return t||e}function Jh(i){for(var e={},t=0,n=i;t<n.length;t++){var r=n[t];switch(r.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=r.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=qh(r.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=L(L(L({},e),{notation:"scientific"}),r.options.reduce(function(l,u){return L(L({},l),fo(u))},{}));continue;case"engineering":e=L(L(L({},e),{notation:"engineering"}),r.options.reduce(function(l,u){return L(L({},l),fo(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Xh,function(l,u,c,h,d,f){if(u)e.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Al.test(r.stem)){e.minimumIntegerDigits=r.stem.length;continue}if(co.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(co,function(l,u,c,h,d,f){return c==="*"?e.minimumFractionDigits=u.length:h&&h[0]==="#"?e.maximumFractionDigits=h.length:d&&f?(e.minimumFractionDigits=d.length,e.maximumFractionDigits=d.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var s=r.options[0];s==="w"?e=L(L({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=L(L({},e),ho(s)));continue}if(wl.test(r.stem)){e=L(L({},e),ho(r.stem));continue}var o=Sl(r.stem);o&&(e=L(L({},e),o));var a=Kh(r.stem);a&&(e=L(L({},e),a))}return e}var Ni={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Zh(i,e){for(var t="",n=0;n<i.length;n++){var r=i.charAt(n);if(r==="j"){for(var s=0;n+1<i.length&&i.charAt(n+1)===r;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=Qh(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;o-- >0;)t=u+t}else r==="J"?t+="H":t+=r}return t}function Qh(i){var e=i.hourCycle;if(e===void 0&&i.hourCycles&&i.hourCycles.length&&(e=i.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=i.language,n;t!=="root"&&(n=i.maximize().region);var r=Ni[n||""]||Ni[t||""]||Ni["".concat(t,"-001")]||Ni["001"];return r[0]}var Ln,ed=new RegExp("^".concat(El.source,"*")),td=new RegExp("".concat(El.source,"*$"));function k(i,e){return{start:i,end:e}}var id=!!String.prototype.startsWith&&"_a".startsWith("a",1),nd=!!String.fromCodePoint,rd=!!Object.fromEntries,sd=!!String.prototype.codePointAt,od=!!String.prototype.trimStart,ad=!!String.prototype.trimEnd,ld=!!Number.isSafeInteger,ud=ld?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},kr=!0;try{var cd=$l("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kr=((Ln=cd.exec("a"))===null||Ln===void 0?void 0:Ln[0])==="a"}catch(i){kr=!1}var po=id?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Mr=nd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=e.length,s=0,o;r>s;){if(o=e[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},mo=rd?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var s=r[n],o=s[0],a=s[1];t[o]=a}return t},Cl=sd?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),s;return r<55296||r>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},hd=od?function(e){return e.trimStart()}:function(e){return e.replace(ed,"")},dd=ad?function(e){return e.trimEnd()}:function(e){return e.replace(td,"")};function $l(i,e){return new RegExp(i,e)}var Or;if(kr){var _o=$l("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Or=function(e,t){var n;_o.lastIndex=t;var r=_o.exec(e);return(n=r[1])!==null&&n!==void 0?n:""}}else Or=function(e,t){for(var n=[];;){var r=Cl(e,t);if(r===void 0||Pl(r)||_d(r))break;n.push(r),t+=r>=65536?2:1}return Mr.apply(void 0,n)};var fd=function(){function i(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return i.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(e,n);if(o.err)return o;r.push(o.val)}else{if(s===125&&e>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:G.pound,location:k(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Nr(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:G.literal,value:"<".concat(r,"/>"),location:k(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Nr(this.char()))return this.error(T.INVALID_TAG,k(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return r!==u?this.error(T.UNMATCHED_CLOSING_TAG,k(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:G.tag,value:r,children:o,location:k(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,k(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,k(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,k(n,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&md(this.char());)this.bump();return this.message.slice(e,this.offset())},i.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var s=this.tryParseQuote(t);if(s){r+=s;continue}var o=this.tryParseUnquoted(e,t);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var l=k(n,this.clonePosition());return{val:{type:G.literal,value:r,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!pd(this.peek()||0))?(this.bump(),"<"):null},i.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return Mr.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t==="plural"||t==="selectordinal")||n===125&&e>0?null:(this.bump(),Mr(n))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,k(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,k(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(T.MALFORMED_ARGUMENT,k(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,k(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:G.argument,value:r,location:k(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,k(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(T.MALFORMED_ARGUMENT,k(n,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Or(this.message,t),r=t+n.length;this.bumpTo(r);var s=this.clonePosition(),o=k(e,s);return{value:n,location:o}},i.prototype.parseArgumentOptions=function(e,t,n,r){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,k(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=dd(h.val);if(d.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var f=k(c,this.clonePosition());u={style:d,styleLocation:f}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var g=k(r,this.clonePosition());if(u&&po(u==null?void 0:u.style,"::",0)){var $=hd(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString($,u.styleLocation);return h.err?h:{val:{type:G.number,value:n,location:g,style:h.val},err:null}}else{if($.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var N=$;this.locale&&(N=Zh($,this.locale));var d={type:$t.dateTime,pattern:N,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Yh(N):{}},M=a==="date"?G.date:G.time;return{val:{type:M,value:n,location:g,style:d},err:null}}}return{val:{type:a==="number"?G.number:a==="date"?G.date:G.time,value:n,location:g,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,k(R,L({},R)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),F=0;if(a!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),V=this.parseIdentifierIfPossible(),F=h.val}var Z=this.tryParsePluralOrSelectOptions(e,a,t,V);if(Z.err)return Z;var p=this.tryParseArgumentClose(r);if(p.err)return p;var me=k(r,this.clonePosition());return a==="select"?{val:{type:G.select,value:n,options:mo(Z.val),location:me},err:null}:{val:{type:G.plural,value:n,options:mo(Z.val),offset:F,pluralType:a==="plural"?"cardinal":"ordinal",location:me},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,k(o,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(r,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},i.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=Gh(e)}catch(r){return this.error(T.INVALID_NUMBER_SKELETON,t)}return{val:{type:$t.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Jh(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var s,o=!1,a=[],l=new Set,u=r.value,c=r.location;;){if(u.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=k(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:p.val,location:k(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(t==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(T.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=k(r,this.clonePosition());return s?(o*=n,ud(o)?{val:o,err:null}:this.error(t,l)):this.error(e,l)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Cl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},i.prototype.bumpIf=function(e){if(po(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pl(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return n!=null?n:null},i}();function Nr(i){return i>=97&&i<=122||i>=65&&i<=90}function pd(i){return Nr(i)||i===47}function md(i){return i===45||i===46||i>=48&&i<=57||i===95||i>=97&&i<=122||i>=65&&i<=90||i==183||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8255&&i<=8256||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}function Pl(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function _d(i){return i>=33&&i<=35||i===36||i>=37&&i<=39||i===40||i===41||i===42||i===43||i===44||i===45||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||i===91||i===92||i===93||i===94||i===96||i===123||i===124||i===125||i===126||i===161||i>=162&&i<=165||i===166||i===167||i===169||i===171||i===172||i===174||i===176||i===177||i===182||i===187||i===191||i===215||i===247||i>=8208&&i<=8213||i>=8214&&i<=8215||i===8216||i===8217||i===8218||i>=8219&&i<=8220||i===8221||i===8222||i===8223||i>=8224&&i<=8231||i>=8240&&i<=8248||i===8249||i===8250||i>=8251&&i<=8254||i>=8257&&i<=8259||i===8260||i===8261||i===8262||i>=8263&&i<=8273||i===8274||i===8275||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||i===8608||i>=8609&&i<=8610||i===8611||i>=8612&&i<=8613||i===8614||i>=8615&&i<=8621||i===8622||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||i===8658||i===8659||i===8660||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||i===8968||i===8969||i===8970||i===8971||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||i===9001||i===9002||i>=9003&&i<=9083||i===9084||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||i===9655||i>=9656&&i<=9664||i===9665||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||i===9839||i>=9840&&i<=10087||i===10088||i===10089||i===10090||i===10091||i===10092||i===10093||i===10094||i===10095||i===10096||i===10097||i===10098||i===10099||i===10100||i===10101||i>=10132&&i<=10175||i>=10176&&i<=10180||i===10181||i===10182||i>=10183&&i<=10213||i===10214||i===10215||i===10216||i===10217||i===10218||i===10219||i===10220||i===10221||i===10222||i===10223||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||i===10627||i===10628||i===10629||i===10630||i===10631||i===10632||i===10633||i===10634||i===10635||i===10636||i===10637||i===10638||i===10639||i===10640||i===10641||i===10642||i===10643||i===10644||i===10645||i===10646||i===10647||i===10648||i>=10649&&i<=10711||i===10712||i===10713||i===10714||i===10715||i>=10716&&i<=10747||i===10748||i===10749||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||i===11158||i>=11159&&i<=11263||i>=11776&&i<=11777||i===11778||i===11779||i===11780||i===11781||i>=11782&&i<=11784||i===11785||i===11786||i===11787||i===11788||i===11789||i>=11790&&i<=11798||i===11799||i>=11800&&i<=11801||i===11802||i===11803||i===11804||i===11805||i>=11806&&i<=11807||i===11808||i===11809||i===11810||i===11811||i===11812||i===11813||i===11814||i===11815||i===11816||i===11817||i>=11818&&i<=11822||i===11823||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||i===11840||i===11841||i===11842||i>=11843&&i<=11855||i>=11856&&i<=11857||i===11858||i>=11859&&i<=11903||i>=12289&&i<=12291||i===12296||i===12297||i===12298||i===12299||i===12300||i===12301||i===12302||i===12303||i===12304||i===12305||i>=12306&&i<=12307||i===12308||i===12309||i===12310||i===12311||i===12312||i===12313||i===12314||i===12315||i===12316||i===12317||i>=12318&&i<=12319||i===12320||i===12336||i===64830||i===64831||i>=65093&&i<=65094}function Ir(i){i.forEach(function(e){if(delete e.location,yl(e)||bl(e))for(var t in e.options)delete e.options[t].location,Ir(e.options[t].value);else ml(e)&&xl(e.style)||(_l(e)||gl(e))&&Dr(e.style)?delete e.style.location:vl(e)&&Ir(e.children)})}function gd(i,e){e===void 0&&(e={}),e=L({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new fd(i,e).parse();if(t.err){var n=SyntaxError(T[t.err.kind]);throw n.location=t.err.location,n.originalMessage=t.err.message,n}return e!=null&&e.captureLocation||Ir(t.val),t.val}var Pt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(Pt||(Pt={}));var bn=function(i){Ie(e,i);function e(t,n,r){var s=i.call(this,t)||this;return s.code=n,s.originalMessage=r,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),go=function(i){Ie(e,i);function e(t,n,r,s){return i.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pt.INVALID_VALUE,s)||this}return e}(bn),yd=function(i){Ie(e,i);function e(t,n,r){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Pt.INVALID_VALUE,r)||this}return e}(bn),bd=function(i){Ie(e,i);function e(t,n){return i.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Pt.MISSING_VALUE,n)||this}return e}(bn),de;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(de||(de={}));function vd(i){return i.length<2?i:i.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==de.literal||t.type!==de.literal?e.push(t):n.value+=t.value,e},[])}function xd(i){return typeof i=="function"}function Fi(i,e,t,n,r,s,o){if(i.length===1&&uo(i[0]))return[{type:de.literal,value:i[0].value}];for(var a=[],l=0,u=i;l<u.length;l++){var c=u[l];if(uo(c)){a.push({type:de.literal,value:c.value});continue}if(jh(c)){typeof s=="number"&&a.push({type:de.literal,value:t.getNumberFormat(e).format(s)});continue}var h=c.value;if(!(r&&h in r))throw new bd(h,o);var d=r[h];if(Uh(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?de.literal:de.object,value:d});continue}if(_l(c)){var f=typeof c.style=="string"?n.date[c.style]:Dr(c.style)?c.style.parsedOptions:void 0;a.push({type:de.literal,value:t.getDateTimeFormat(e,f).format(d)});continue}if(gl(c)){var f=typeof c.style=="string"?n.time[c.style]:Dr(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:de.literal,value:t.getDateTimeFormat(e,f).format(d)});continue}if(ml(c)){var f=typeof c.style=="string"?n.number[c.style]:xl(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),a.push({type:de.literal,value:t.getNumberFormat(e,f).format(d)});continue}if(vl(c)){var p=c.children,g=c.value,$=r[g];if(!xd($))throw new yd(g,"function",o);var N=Fi(p,e,t,n,r,s),M=$(N.map(function(F){return F.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(F){return{type:typeof F=="string"?de.literal:de.object,value:F}}))}if(yl(c)){var R=c.options[d]||c.options.other;if(!R)throw new go(c.value,d,Object.keys(c.options),o);a.push.apply(a,Fi(R.value,e,t,n,r));continue}if(bl(c)){var R=c.options["=".concat(d)];if(!R){if(!Intl.PluralRules)throw new bn(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,Pt.MISSING_INTL_API,o);var V=t.getPluralRules(e,{type:c.pluralType}).select(d-(c.offset||0));R=c.options[V]||c.options.other}if(!R)throw new go(c.value,d,Object.keys(c.options),o);a.push.apply(a,Fi(R.value,e,t,n,r,d-(c.offset||0)));continue}}return vd(a)}function Ed(i,e){return e?L(L(L({},i||{}),e||{}),Object.keys(i).reduce(function(t,n){return t[n]=L(L({},i[n]),e[n]||{}),t},{})):i}function wd(i,e){return e?Object.keys(i).reduce(function(t,n){return t[n]=Ed(i[n],e[n]),t},L({},i)):i}function Bn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function Ad(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:In(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Et([void 0],t,!1)))},{cache:Bn(i.number),strategy:Hn.variadic}),getDateTimeFormat:In(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Et([void 0],t,!1)))},{cache:Bn(i.dateTime),strategy:Hn.variadic}),getPluralRules:In(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Et([void 0],t,!1)))},{cache:Bn(i.pluralRules),strategy:Hn.variadic})}}var Sd=function(){function i(e,t,n,r){t===void 0&&(t=i.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==de.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Fi(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=i.resolveLocale(t),typeof e=="string"){if(this.message=e,!i.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=r||{};o.formatters;var a=nh(o,["formatters"]);this.ast=i.__parse(e,L(L({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=wd(i.formats,n),this.formatters=r&&r.formatters||Ad(this.formatterCache)}return Object.defineProperty(i,"defaultLocale",{get:function(){return i.memoizedDefaultLocale||(i.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),i.memoizedDefaultLocale},enumerable:!1,configurable:!0}),i.memoizedDefaultLocale=null,i.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},i.__parse=gd,i.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},i}();function Cd(i,e){if(e==null)return;if(e in i)return i[e];const t=e.split(".");let n=i;for(let r=0;r<t.length;r++)if(typeof n=="object"){if(r>0){const s=t.slice(r,t.length).join(".");if(s in n){n=n[s];break}}n=n[t[r]]}else n=void 0;return n}const Fe={},$d=(i,e,t)=>t&&(e in Fe||(Fe[e]={}),i in Fe[e]||(Fe[e][i]=t),t),Tl=(i,e)=>{if(e==null)return;if(e in Fe&&i in Fe[e])return Fe[e][i];const t=vn(e);for(let n=0;n<t.length;n++){const r=t[n],s=Td(r,i);if(s)return $d(i,e,s)}};let ys;const Pi=yn({});function Pd(i){return ys[i]||null}function Dl(i){return i in ys}function Td(i,e){if(!Dl(i))return null;const t=Pd(i);return Cd(t,e)}function Dd(i){if(i==null)return;const e=vn(i);for(let t=0;t<e.length;t++){const n=e[t];if(Dl(n))return n}}function kl(i,...e){delete Fe[i],Pi.update(t=>(t[i]=Nh.all([t[i]||{},...e]),t))}Ut([Pi],([i])=>Object.keys(i));Pi.subscribe(i=>ys=i);const Ui={};function kd(i,e){Ui[i].delete(e),Ui[i].size===0&&delete Ui[i]}function Ml(i){return Ui[i]}function Md(i){return vn(i).map(e=>{const t=Ml(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Hr(i){return i==null?!1:vn(i).some(e=>{var t;return(t=Ml(e))==null?void 0:t.size})}function Od(i,e){return Promise.all(e.map(n=>(kd(i,n),n().then(r=>r.default||r)))).then(n=>kl(i,...n))}const Gt={};function Ol(i){if(!Hr(i))return i in Gt?Gt[i]:Promise.resolve();const e=Md(i);return Gt[i]=Promise.all(e.map(([t,n])=>Od(t,n))).then(()=>{if(Hr(i))return Ol(i);delete Gt[i]}),Gt[i]}const Nd={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Id={fallbackLocale:null,loadingDelay:200,formats:Nd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Hd=Id;function Tt(){return Hd}const Rn=yn(!1);var Ld=Object.defineProperty,Bd=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,zd=Object.prototype.hasOwnProperty,Fd=Object.prototype.propertyIsEnumerable,bo=(i,e,t)=>e in i?Ld(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ud=(i,e)=>{for(var t in e)zd.call(e,t)&&bo(i,t,e[t]);if(yo)for(var t of yo(e))Fd.call(e,t)&&bo(i,t,e[t]);return i},jd=(i,e)=>Bd(i,Rd(e));let Lr;const tn=yn(null);function vo(i){return i.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function vn(i,e=Tt().fallbackLocale){const t=vo(i);return e?[...new Set([...t,...vo(e)])]:t}function lt(){return Lr!=null?Lr:void 0}tn.subscribe(i=>{Lr=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const Vd=i=>{if(i&&Dd(i)&&Hr(i)){const{loadingDelay:e}=Tt();let t;return typeof window!="undefined"&<()!=null&&e?t=window.setTimeout(()=>Rn.set(!0),e):Rn.set(!0),Ol(i).then(()=>{tn.set(i)}).finally(()=>{clearTimeout(t),Rn.set(!1)})}return tn.set(i)},jt=jd(Ud({},tn),{set:Vd}),xn=i=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=i(n)}};var Yd=Object.defineProperty,nn=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable,xo=(i,e,t)=>e in i?Yd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,bs=(i,e)=>{for(var t in e||(e={}))Nl.call(e,t)&&xo(i,t,e[t]);if(nn)for(var t of nn(e))Il.call(e,t)&&xo(i,t,e[t]);return i},Vt=(i,e)=>{var t={};for(var n in i)Nl.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&nn)for(var n of nn(i))e.indexOf(n)<0&&Il.call(i,n)&&(t[n]=i[n]);return t};const ci=(i,e)=>{const{formats:t}=Tt();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},Wd=xn(i=>{var e=i,{locale:t,format:n}=e,r=Vt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=ci("number",n)),new Intl.NumberFormat(t,r)}),Gd=xn(i=>{var e=i,{locale:t,format:n}=e,r=Vt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=ci("date",n):Object.keys(r).length===0&&(r=ci("date","short")),new Intl.DateTimeFormat(t,r)}),qd=xn(i=>{var e=i,{locale:t,format:n}=e,r=Vt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=ci("time",n):Object.keys(r).length===0&&(r=ci("time","short")),new Intl.DateTimeFormat(t,r)}),Xd=(i={})=>{var e=i,{locale:t=lt()}=e,n=Vt(e,["locale"]);return Wd(bs({locale:t},n))},Kd=(i={})=>{var e=i,{locale:t=lt()}=e,n=Vt(e,["locale"]);return Gd(bs({locale:t},n))},Jd=(i={})=>{var e=i,{locale:t=lt()}=e,n=Vt(e,["locale"]);return qd(bs({locale:t},n))},Zd=xn((i,e=lt())=>new Sd(i,e,Tt().formats,{ignoreTag:Tt().ignoreTag})),Qd=(i,e={})=>{var t,n,r,s;let o=e;typeof i=="object"&&(o=i,i=o.id);const{values:a,locale:l=lt(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Tl(i,l);if(!c)c=(s=(r=(n=(t=Tt()).handleMissingMessage)==null?void 0:n.call(t,{locale:l,id:i,defaultValue:u}))!=null?r:u)!=null?s:i;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=Zd(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,d.message)}return h},ef=(i,e)=>Jd(e).format(i),tf=(i,e)=>Kd(e).format(i),nf=(i,e)=>Xd(e).format(i),rf=(i,e=lt())=>Tl(i,e),sf=Ut([jt,Pi],()=>Qd);Ut([jt],()=>ef);Ut([jt],()=>tf);Ut([jt],()=>nf);Ut([jt,Pi],()=>rf);window.emWidgets={topic:gh};const of=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Hl={exports:{}};(function(i,e){(function(t,n){i.exports=n()})(bh,function(){var t=1e3,n=6e4,r=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",p="date",g="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|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(E){var y=["th","st","nd","rd"],m=E%100;return"["+E+(y[(m-20)%10]||y[m]||y[0])+"]"}},R=function(E,y,m){var b=String(E);return!b||b.length>=y?E:""+Array(y+1-b.length).join(m)+E},V={s:R,z:function(E){var y=-E.utcOffset(),m=Math.abs(y),b=Math.floor(m/60),_=m%60;return(y<=0?"+":"-")+R(b,2,"0")+":"+R(_,2,"0")},m:function E(y,m){if(y.date()<m.date())return-E(m,y);var b=12*(m.year()-y.year())+(m.month()-y.month()),_=y.clone().add(b,h),A=m-_<0,w=y.clone().add(b+(A?-1:1),h);return+(-(b+(m-_)/(A?_-w:w-_))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:h,y:f,w:c,d:u,D:p,h:l,m:a,s:o,ms:s,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},F="en",Z={};Z[F]=M;var me="$isDayjsObject",ge=function(E){return E instanceof ue||!(!E||!E[me])},ye=function E(y,m,b){var _;if(!y)return F;if(typeof y=="string"){var A=y.toLowerCase();Z[A]&&(_=A),m&&(Z[A]=m,_=A);var w=y.split("-");if(!_&&w.length>1)return E(w[0])}else{var D=y.name;Z[D]=y,_=D}return!b&&_&&(F=_),_||!b&&F},O=function(E,y){if(ge(E))return E.clone();var m=typeof y=="object"?y:{};return m.date=E,m.args=arguments,new ue(m)},P=V;P.l=ye,P.i=ge,P.w=function(E,y){return O(E,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var ue=function(){function E(m){this.$L=ye(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[me]=!0}var y=E.prototype;return y.parse=function(m){this.$d=function(b){var _=b.date,A=b.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var w=_.match($);if(w){var D=w[2]-1||0,U=(w[7]||"0").substring(0,3);return A?new Date(Date.UTC(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,U)):new Date(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,U)}}return new Date(_)}(m),this.init()},y.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return this.$d.toString()!==g},y.isSame=function(m,b){var _=O(m);return this.startOf(b)<=_&&_<=this.endOf(b)},y.isAfter=function(m,b){return O(m)<this.startOf(b)},y.isBefore=function(m,b){return this.endOf(b)<O(m)},y.$g=function(m,b,_){return P.u(m)?this[b]:this.set(_,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,b){var _=this,A=!!P.u(b)||b,w=P.p(m),D=function(le,I){var W=P.w(_.$u?Date.UTC(_.$y,I,le):new Date(_.$y,I,le),_);return A?W:W.endOf(u)},U=function(le,I){return P.w(_.toDate()[le].apply(_.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(I)),_)},Y=this.$W,q=this.$M,se=this.$D,be="set"+(this.$u?"UTC":"");switch(w){case f:return A?D(1,0):D(31,11);case h:return A?D(1,q):D(0,q+1);case c:var ve=this.$locale().weekStart||0,ce=(Y<ve?Y+7:Y)-ve;return D(A?se-ce:se+(6-ce),q);case u:case p:return U(be+"Hours",0);case l:return U(be+"Minutes",1);case a:return U(be+"Seconds",2);case o:return U(be+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,b){var _,A=P.p(m),w="set"+(this.$u?"UTC":""),D=(_={},_[u]=w+"Date",_[p]=w+"Date",_[h]=w+"Month",_[f]=w+"FullYear",_[l]=w+"Hours",_[a]=w+"Minutes",_[o]=w+"Seconds",_[s]=w+"Milliseconds",_)[A],U=A===u?this.$D+(b-this.$W):b;if(A===h||A===f){var Y=this.clone().set(p,1);Y.$d[D](U),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else D&&this.$d[D](U);return this.init(),this},y.set=function(m,b){return this.clone().$set(m,b)},y.get=function(m){return this[P.p(m)]()},y.add=function(m,b){var _,A=this;m=Number(m);var w=P.p(b),D=function(q){var se=O(A);return P.w(se.date(se.date()+Math.round(q*m)),A)};if(w===h)return this.set(h,this.$M+m);if(w===f)return this.set(f,this.$y+m);if(w===u)return D(1);if(w===c)return D(7);var U=(_={},_[a]=n,_[l]=r,_[o]=t,_)[w]||1,Y=this.$d.getTime()+m*U;return P.w(Y,this)},y.subtract=function(m,b){return this.add(-1*m,b)},y.format=function(m){var b=this,_=this.$locale();if(!this.isValid())return _.invalidDate||g;var A=m||"YYYY-MM-DDTHH:mm:ssZ",w=P.z(this),D=this.$H,U=this.$m,Y=this.$M,q=_.weekdays,se=_.months,be=_.meridiem,ve=function(I,W,v,X){return I&&(I[W]||I(b,A))||v[W].slice(0,X)},ce=function(I){return P.s(D%12||12,I,"0")},le=be||function(I,W,v){var X=I<12?"AM":"PM";return v?X.toLowerCase():X};return A.replace(N,function(I,W){return W||function(v){switch(v){case"YY":return String(b.$y).slice(-2);case"YYYY":return P.s(b.$y,4,"0");case"M":return Y+1;case"MM":return P.s(Y+1,2,"0");case"MMM":return ve(_.monthsShort,Y,se,3);case"MMMM":return ve(se,Y);case"D":return b.$D;case"DD":return P.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ve(_.weekdaysMin,b.$W,q,2);case"ddd":return ve(_.weekdaysShort,b.$W,q,3);case"dddd":return q[b.$W];case"H":return String(D);case"HH":return P.s(D,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return le(D,U,!0);case"A":return le(D,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(b.$s);case"ss":return P.s(b.$s,2,"0");case"SSS":return P.s(b.$ms,3,"0");case"Z":return w}return null}(I)||w.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,b,_){var A,w=this,D=P.p(b),U=O(m),Y=(U.utcOffset()-this.utcOffset())*n,q=this-U,se=function(){return P.m(w,U)};switch(D){case f:A=se()/12;break;case h:A=se();break;case d:A=se()/3;break;case c:A=(q-Y)/6048e5;break;case u:A=(q-Y)/864e5;break;case l:A=q/r;break;case a:A=q/n;break;case o:A=q/t;break;default:A=q}return _?A:P.a(A)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return Z[this.$L]},y.locale=function(m,b){if(!m)return this.$L;var _=this.clone(),A=ye(m,b,!0);return A&&(_.$L=A),_},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},E}(),We=ue.prototype;return O.prototype=We,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",p]].forEach(function(E){We[E[1]]=function(y){return this.$g(y,E[0],E[1])}}),O.extend=function(E,y){return E.$i||(E(y,ue,O),E.$i=!0),O},O.locale=ye,O.isDayjs=ge,O.unix=function(E){return O(1e3*E)},O.en=Z[F],O.Ls=Z,O.p={},O})})(Hl);var af=Hl.exports;const zn=hl(af);function Eo(i,e){kl(i,e)}function lf(i){jt.set(i)}const wo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion 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.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<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>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</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 consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Está seguro de que desea autoexcluirse por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea autoexcluirse hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Está seguro de que desea autoexcluirse por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea autoexcluirse hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
8
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
+
*/function Se(i){const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const t=e.version;t&&i.version&&t===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
12
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13
|
+
*/let uf=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};Se(uf);/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2019 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/const ji=window,vs=ji.ShadowRoot&&(ji.ShadyCSS===void 0||ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xs=Symbol(),Ao=new WeakMap;let Es=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==xs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(vs&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Ao.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ao.set(t,e))}return e}toString(){return this.cssText}};const cf=i=>new Es(typeof i=="string"?i:i+"",void 0,xs),z=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new Es(t,i,xs)},hf=(i,e)=>{vs?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=ji.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},So=vs?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return cf(t)})(i):i;/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2017 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/var Fn;const rn=window,Co=rn.trustedTypes,df=Co?Co.emptyScript:"",$o=rn.reactiveElementPolyfillSupport,Br={toAttribute(i,e){switch(e){case Boolean:i=i?df:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(n){t=null}}return t}},Ll=(i,e)=>e!==i&&(e==e||i==i),Un={attribute:!0,type:String,converter:Br,reflect:!1,hasChanged:Ll},Rr="finalized";let gt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=Un){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const s=this[e];this[t]=r,this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Un}static finalize(){if(this.hasOwnProperty(Rr))return!1;this[Rr]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(So(r))}else e!==void 0&&t.push(So(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return hf(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Un){var r;const s=this.constructor._$Ep(e,n);if(s!==void 0&&n.reflect===!0){const o=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:Br).toAttribute(t,n.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,s=r._$Ev.get(e);if(s!==void 0&&this._$El!==s){const o=r.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?o.converter:Br;this._$El=s,this[s]=a.fromAttribute(t,o.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Ll)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){return He(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}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;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};gt[Rr]=!0,gt.elementProperties=new Map,gt.elementStyles=[],gt.shadowRootOptions={mode:"open"},$o==null||$o({ReactiveElement:gt}),((Fn=rn.reactiveElementVersions)!==null&&Fn!==void 0?Fn:rn.reactiveElementVersions=[]).push("1.6.3");/**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2017 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
+
*/var jn;const sn=window,Dt=sn.trustedTypes,Po=Dt?Dt.createPolicy("lit-html",{createHTML:i=>i}):void 0,zr="$lit$",Le=`lit$${(Math.random()+"").slice(9)}$`,Bl="?"+Le,ff=`<${Bl}>`,rt=document,hi=()=>rt.createComment(""),di=i=>i===null||typeof i!="object"&&typeof i!="function",Rl=Array.isArray,pf=i=>Rl(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Vn=`[
|
|
26
|
+
\f\r]`,qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,To=/-->/g,Do=/>/g,Ge=RegExp(`>|${Vn}(?:([^\\s"'>=/]+)(${Vn}*=${Vn}*(?:[^
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ko=/'/g,Mo=/"/g,zl=/^(?:script|style|textarea|title)$/i,kt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Oo=new WeakMap,Je=rt.createTreeWalker(rt,129,null,!1);function Fl(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Po!==void 0?Po.createHTML(e):e}const mf=(i,e)=>{const t=i.length-1,n=[];let r,s=e===2?"<svg>":"",o=qt;for(let a=0;a<t;a++){const l=i[a];let u,c,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,c=o.exec(l),c!==null);)d=o.lastIndex,o===qt?c[1]==="!--"?o=To:c[1]!==void 0?o=Do:c[2]!==void 0?(zl.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=Ge):c[3]!==void 0&&(o=Ge):o===Ge?c[0]===">"?(o=r!=null?r:qt,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=c[3]===void 0?Ge:c[3]==='"'?Mo:ko):o===Mo||o===ko?o=Ge:o===To||o===Do?o=qt:(o=Ge,r=void 0);const f=o===Ge&&i[a+1].startsWith("/>")?" ":"";s+=o===qt?l+ff:h>=0?(n.push(u),l.slice(0,h)+zr+l.slice(h)+Le+f):l+Le+(h===-2?(n.push(void 0),a):f)}return[Fl(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};let Fr=class Ul{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[u,c]=mf(e,t);if(this.el=Ul.createElement(u,n),Je.currentNode=this.el.content,t===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(r=Je.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const h=[];for(const d of r.getAttributeNames())if(d.endsWith(zr)||d.startsWith(Le)){const f=c[o++];if(h.push(d),f!==void 0){const p=r.getAttribute(f.toLowerCase()+zr).split(Le),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:p,ctor:g[1]==="."?gf:g[1]==="?"?bf:g[1]==="@"?vf:En})}else l.push({type:6,index:s})}for(const d of h)r.removeAttribute(d)}if(zl.test(r.tagName)){const h=r.textContent.split(Le),d=h.length-1;if(d>0){r.textContent=Dt?Dt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],hi()),Je.nextNode(),l.push({type:2,index:++s});r.append(h[d],hi())}}}else if(r.nodeType===8)if(r.data===Bl)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(Le,h+1))!==-1;)l.push({type:7,index:s}),h+=Le.length-1}s++}}static createElement(e,t){const n=rt.createElement("template");return n.innerHTML=e,n}};function Mt(i,e,t=i,n){var r,s,o,a;if(e===kt)return e;let l=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const u=di(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(i),l._$AT(i,t,n)),n!==void 0?((o=(a=t)._$Co)!==null&&o!==void 0?o:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=Mt(i,l._$AS(i,e.values),l,n)),e}let _f=class{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:n},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:rt).importNode(n,!0);Je.currentNode=s;let o=Je.nextNode(),a=0,l=0,u=r[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new ws(o,o.nextSibling,this,e):u.type===1?c=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(c=new xf(o,this,e)),this._$AV.push(c),u=r[++l]}a!==(u==null?void 0:u.index)&&(o=Je.nextNode(),a++)}return Je.currentNode=rt,s}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},ws=class jl{constructor(e,t,n,r){var s;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(s=r==null?void 0:r.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}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),di(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==kt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):pf(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==te&&di(this._$AH)?this._$AA.nextSibling.data=e:this.$(rt.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Fr.createElement(Fl(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(n);else{const o=new _f(s,this),a=o.u(this.options);o.v(n),this.$(a),this._$AH=o}}_$AC(e){let t=Oo.get(e.strings);return t===void 0&&Oo.set(e.strings,t=new Fr(e)),t}T(e){Rl(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const s of e)r===t.length?t.push(n=new jl(this.k(hi()),this.k(hi()),this,this.options)):n=t[r],n._$AI(s),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.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._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},En=class{constructor(e,t,n,r,s){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=te}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const s=this.strings;let o=!1;if(s===void 0)e=Mt(this,e,t,0),o=!di(e)||e!==this._$AH&&e!==kt,o&&(this._$AH=e);else{const a=e;let l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Mt(this,a[n+l],t,l),u===kt&&(u=this._$AH[l]),o||(o=!di(u)||u!==this._$AH[l]),u===te?e=te:e!==te&&(e+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!r&&this.j(e)}j(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},gf=class extends En{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===te?void 0:e}};const yf=Dt?Dt.emptyScript:"";let bf=class extends En{constructor(){super(...arguments),this.type=4}j(e){e&&e!==te?this.element.setAttribute(this.name,yf):this.element.removeAttribute(this.name)}},vf=class extends En{constructor(e,t,n,r,s){super(e,t,n,r,s),this.type=5}_$AI(e,t=this){var n;if((e=(n=Mt(this,e,t,0))!==null&&n!==void 0?n:te)===kt)return;const r=this._$AH,s=e===te&&r!==te||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==te&&(r===te||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}},xf=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Mt(this,e)}};const No=sn.litHtmlPolyfillSupport;No==null||No(Fr,ws),((jn=sn.litHtmlVersions)!==null&&jn!==void 0?jn:sn.litHtmlVersions=[]).push("2.8.0");const Ef=(i,e,t)=>{var n,r;const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let o=s._$litPart$;if(o===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=o=new ws(e.insertBefore(hi(),a),a,void 0,t!=null?t:{})}return o._$AI(i),o};/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2017 Google LLC
|
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
+
*/var Yn,Wn;let Vi=class extends gt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ef(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return kt}};Vi.finalized=!0,Vi._$litElement$=!0,(Yn=globalThis.litElementHydrateSupport)===null||Yn===void 0||Yn.call(globalThis,{LitElement:Vi});const Io=globalThis.litElementPolyfillSupport;Io==null||Io({LitElement:Vi});((Wn=globalThis.litElementVersions)!==null&&Wn!==void 0?Wn:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
+
*/const wf=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),t==="theme"&&this._set_theme(r)}};/**
|
|
36
|
+
* @license
|
|
37
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
38
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
39
|
+
*/const Vl=[];function Yl(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Af(i){return Yl(customElements.get(i))}function Sf(i=[]){return[i].flat(1/0).filter(e=>e instanceof Es?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function K(i,e,t={}){i&&Af(i)&&console.warn(`The custom element definition for "${i}"
|
|
40
|
+
was finalized before a style module was registered.
|
|
41
|
+
Make sure to add component specific style modules before
|
|
42
|
+
importing the corresponding custom element.`),e=Sf(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Vl.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId})}function Ur(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Vl}function Cf(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function $f(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Wl(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const n=Ur().find(r=>r.moduleId===t);n?e.push(...Wl(n),...n.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Pf(i,e){const t=document.createElement("style");t.innerHTML=i.map(n=>n.cssText).join(`
|
|
43
|
+
`),e.content.appendChild(t)}function Tf(i){const e=`${i}-default-theme`,t=Ur().filter(n=>n.moduleId!==e&&Cf(n.themeFor,i)).map(n=>Mi(ki({},n),{styles:[...Wl(n),...n.styles],includePriority:$f(n.moduleId)})).sort((n,r)=>r.includePriority-n.includePriority);return t.length>0?t:Ur().filter(n=>n.moduleId===e)}const ut=i=>class extends wf(i){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||Yl(this)||Pf(this.getStylesForThis(),t)}static finalizeStyles(t){const n=this.getStylesForThis();return t?[...super.finalizeStyles(t),...n]:n}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),n=(t?t.constructor.__themes:[])||[];this.__themes=[...n,...Tf(this.is)];const r=this.__themes.flatMap(s=>s.styles);return r.filter((s,o)=>o===r.lastIndexOf(s))}};/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
46
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
47
|
+
*/const Gl=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(n=>n.toString()).join(`
|
|
48
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},wn=(i,...e)=>{Gl(`lumo-${i}`,e)};/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
51
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
+
*/const Df=z`
|
|
53
|
+
:host {
|
|
54
|
+
/* Base (background) */
|
|
55
|
+
--lumo-base-color: #fff;
|
|
56
|
+
|
|
57
|
+
/* Tint */
|
|
58
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
59
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
60
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
61
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
62
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
63
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
64
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
65
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
66
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
67
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
68
|
+
--lumo-tint: #fff;
|
|
69
|
+
|
|
70
|
+
/* Shade */
|
|
71
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
72
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
73
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
74
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
75
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
76
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
77
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
78
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
79
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
80
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
81
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
82
|
+
|
|
83
|
+
/* Contrast */
|
|
84
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
85
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
86
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
87
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
88
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
89
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
90
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
91
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
92
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
93
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
94
|
+
--lumo-contrast: var(--lumo-shade);
|
|
95
|
+
|
|
96
|
+
/* Text */
|
|
97
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
98
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
99
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
100
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
101
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
102
|
+
|
|
103
|
+
/* Primary */
|
|
104
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
105
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
106
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
107
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
108
|
+
--lumo-primary-contrast-color: #fff;
|
|
109
|
+
|
|
110
|
+
/* Error */
|
|
111
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
112
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
113
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
114
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
115
|
+
--lumo-error-contrast-color: #fff;
|
|
116
|
+
|
|
117
|
+
/* Success */
|
|
118
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
119
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
120
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
121
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
122
|
+
--lumo-success-contrast-color: #fff;
|
|
123
|
+
|
|
124
|
+
/* Warning */
|
|
125
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
126
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
127
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
128
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* forced-colors mode adjustments */
|
|
132
|
+
@media (forced-colors: active) {
|
|
133
|
+
html {
|
|
134
|
+
--lumo-disabled-text-color: GrayText;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`;wn("color-props",Df);const kf=z`
|
|
138
|
+
[theme~='dark'] {
|
|
139
|
+
/* Base (background) */
|
|
140
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
141
|
+
|
|
142
|
+
/* Tint */
|
|
143
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
144
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
145
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
146
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
147
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
148
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
149
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
150
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
151
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
152
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
153
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
154
|
+
|
|
155
|
+
/* Shade */
|
|
156
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
157
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
158
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
159
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
160
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
161
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
162
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
163
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
164
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
165
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
166
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
167
|
+
|
|
168
|
+
/* Contrast */
|
|
169
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
170
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
171
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
172
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
173
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
174
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
175
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
176
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
177
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
178
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
179
|
+
--lumo-contrast: var(--lumo-tint);
|
|
180
|
+
|
|
181
|
+
/* Text */
|
|
182
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
183
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
184
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
185
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
186
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
187
|
+
|
|
188
|
+
/* Primary */
|
|
189
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
190
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
191
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
192
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
193
|
+
--lumo-primary-contrast-color: #fff;
|
|
194
|
+
|
|
195
|
+
/* Error */
|
|
196
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
197
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
198
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
199
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
200
|
+
|
|
201
|
+
/* Success */
|
|
202
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
203
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
204
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
205
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
206
|
+
|
|
207
|
+
/* Warning */
|
|
208
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
209
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
210
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
211
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
html {
|
|
215
|
+
color: var(--lumo-body-text-color);
|
|
216
|
+
background-color: var(--lumo-base-color);
|
|
217
|
+
color-scheme: light;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
[theme~='dark'] {
|
|
221
|
+
color: var(--lumo-body-text-color);
|
|
222
|
+
background-color: var(--lumo-base-color);
|
|
223
|
+
color-scheme: dark;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
h1,
|
|
227
|
+
h2,
|
|
228
|
+
h3,
|
|
229
|
+
h4,
|
|
230
|
+
h5,
|
|
231
|
+
h6 {
|
|
232
|
+
color: var(--lumo-header-text-color);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
a:where(:any-link) {
|
|
236
|
+
color: var(--lumo-primary-text-color);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
a:not(:any-link) {
|
|
240
|
+
color: var(--lumo-disabled-text-color);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
blockquote {
|
|
244
|
+
color: var(--lumo-secondary-text-color);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
code,
|
|
248
|
+
pre {
|
|
249
|
+
background-color: var(--lumo-contrast-10pct);
|
|
250
|
+
border-radius: var(--lumo-border-radius-m);
|
|
251
|
+
}
|
|
252
|
+
`;K("",kf,{moduleId:"lumo-color"});/**
|
|
253
|
+
* @license
|
|
254
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
255
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
256
|
+
*/const Mf=z`
|
|
257
|
+
:host {
|
|
258
|
+
--lumo-size-xs: 1.625rem;
|
|
259
|
+
--lumo-size-s: 1.875rem;
|
|
260
|
+
--lumo-size-m: 2.25rem;
|
|
261
|
+
--lumo-size-l: 2.75rem;
|
|
262
|
+
--lumo-size-xl: 3.5rem;
|
|
263
|
+
|
|
264
|
+
/* Icons */
|
|
265
|
+
--lumo-icon-size-s: 1.25em;
|
|
266
|
+
--lumo-icon-size-m: 1.5em;
|
|
267
|
+
--lumo-icon-size-l: 2.25em;
|
|
268
|
+
/* For backwards compatibility */
|
|
269
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
270
|
+
}
|
|
271
|
+
`;wn("sizing-props",Mf);/**
|
|
272
|
+
* @license
|
|
273
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
274
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
275
|
+
*/const Of=z`
|
|
276
|
+
:host {
|
|
277
|
+
/* Border radius */
|
|
278
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
279
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
280
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
281
|
+
|
|
282
|
+
/* Shadow */
|
|
283
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
284
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
285
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
286
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
287
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
288
|
+
|
|
289
|
+
/* Clickable element cursor */
|
|
290
|
+
--lumo-clickable-cursor: default;
|
|
291
|
+
}
|
|
292
|
+
`;z`
|
|
293
|
+
html {
|
|
294
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
295
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
296
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
297
|
+
}
|
|
298
|
+
`;wn("style-props",Of);/**
|
|
299
|
+
* @license
|
|
300
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
301
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
302
|
+
*/const Nf=z`
|
|
303
|
+
:host {
|
|
304
|
+
/* prettier-ignore */
|
|
305
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
306
|
+
|
|
307
|
+
/* Font sizes */
|
|
308
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
309
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
310
|
+
--lumo-font-size-s: 0.875rem;
|
|
311
|
+
--lumo-font-size-m: 1rem;
|
|
312
|
+
--lumo-font-size-l: 1.125rem;
|
|
313
|
+
--lumo-font-size-xl: 1.375rem;
|
|
314
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
315
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
316
|
+
|
|
317
|
+
/* Line heights */
|
|
318
|
+
--lumo-line-height-xs: 1.25;
|
|
319
|
+
--lumo-line-height-s: 1.375;
|
|
320
|
+
--lumo-line-height-m: 1.625;
|
|
321
|
+
}
|
|
322
|
+
`,If=z`
|
|
323
|
+
body,
|
|
324
|
+
:host {
|
|
325
|
+
font-family: var(--lumo-font-family);
|
|
326
|
+
font-size: var(--lumo-font-size-m);
|
|
327
|
+
line-height: var(--lumo-line-height-m);
|
|
328
|
+
-webkit-text-size-adjust: 100%;
|
|
329
|
+
-webkit-font-smoothing: antialiased;
|
|
330
|
+
-moz-osx-font-smoothing: grayscale;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
small,
|
|
334
|
+
[theme~='font-size-s'] {
|
|
335
|
+
font-size: var(--lumo-font-size-s);
|
|
336
|
+
line-height: var(--lumo-line-height-s);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
[theme~='font-size-xs'] {
|
|
340
|
+
font-size: var(--lumo-font-size-xs);
|
|
341
|
+
line-height: var(--lumo-line-height-xs);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
345
|
+
font-weight: 600;
|
|
346
|
+
line-height: var(--lumo-line-height-xs);
|
|
347
|
+
margin-block: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
:where(h1) {
|
|
351
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:where(h2) {
|
|
355
|
+
font-size: var(--lumo-font-size-xxl);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
:where(h3) {
|
|
359
|
+
font-size: var(--lumo-font-size-xl);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:where(h4) {
|
|
363
|
+
font-size: var(--lumo-font-size-l);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:where(h5) {
|
|
367
|
+
font-size: var(--lumo-font-size-m);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
:where(h6) {
|
|
371
|
+
font-size: var(--lumo-font-size-xs);
|
|
372
|
+
text-transform: uppercase;
|
|
373
|
+
letter-spacing: 0.03em;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
p,
|
|
377
|
+
blockquote {
|
|
378
|
+
margin-top: 0.5em;
|
|
379
|
+
margin-bottom: 0.75em;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
a {
|
|
383
|
+
text-decoration: none;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
a:where(:any-link):hover {
|
|
387
|
+
text-decoration: underline;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
hr {
|
|
391
|
+
display: block;
|
|
392
|
+
align-self: stretch;
|
|
393
|
+
height: 1px;
|
|
394
|
+
border: 0;
|
|
395
|
+
padding: 0;
|
|
396
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
397
|
+
background-color: var(--lumo-contrast-10pct);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
blockquote {
|
|
401
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
b,
|
|
405
|
+
strong {
|
|
406
|
+
font-weight: 600;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* RTL specific styles */
|
|
410
|
+
blockquote[dir='rtl'] {
|
|
411
|
+
border-left: none;
|
|
412
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
413
|
+
}
|
|
414
|
+
`;K("",If,{moduleId:"lumo-typography"});wn("typography-props",Nf);K("vaadin-input-container",z`
|
|
415
|
+
:host {
|
|
416
|
+
background-color: var(--lumo-contrast-10pct);
|
|
417
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
418
|
+
font-weight: 500;
|
|
419
|
+
line-height: 1;
|
|
420
|
+
position: relative;
|
|
421
|
+
cursor: text;
|
|
422
|
+
box-sizing: border-box;
|
|
423
|
+
border-radius:
|
|
424
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
425
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
426
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
427
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
428
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
429
|
+
/* Fallback */
|
|
430
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
431
|
+
/* Default field border color */
|
|
432
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
:host([dir='rtl']) {
|
|
436
|
+
border-radius:
|
|
437
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
438
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
439
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
440
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
441
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Used for hover and activation effects */
|
|
445
|
+
:host::after {
|
|
446
|
+
content: '';
|
|
447
|
+
position: absolute;
|
|
448
|
+
inset: 0;
|
|
449
|
+
border-radius: inherit;
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
background-color: var(--lumo-contrast-50pct);
|
|
452
|
+
opacity: 0;
|
|
453
|
+
transition: transform 0.15s, opacity 0.2s;
|
|
454
|
+
transform-origin: 100% 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
::slotted(:not([slot$='fix'])) {
|
|
458
|
+
cursor: inherit;
|
|
459
|
+
min-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
460
|
+
padding: 0 0.25em;
|
|
461
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
462
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
463
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* Read-only */
|
|
467
|
+
:host([readonly]) {
|
|
468
|
+
color: var(--lumo-secondary-text-color);
|
|
469
|
+
background-color: transparent;
|
|
470
|
+
cursor: default;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
:host([readonly])::after {
|
|
474
|
+
background-color: transparent;
|
|
475
|
+
opacity: 1;
|
|
476
|
+
border: 1px dashed var(--lumo-contrast-30pct);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Disabled */
|
|
480
|
+
:host([disabled]) {
|
|
481
|
+
background-color: var(--lumo-contrast-5pct);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
:host([disabled]) ::slotted(*) {
|
|
485
|
+
color: var(--lumo-disabled-text-color);
|
|
486
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* Invalid */
|
|
490
|
+
:host([invalid]) {
|
|
491
|
+
background-color: var(--lumo-error-color-10pct);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
:host([invalid])::after {
|
|
495
|
+
background-color: var(--lumo-error-color-50pct);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Slotted icons */
|
|
499
|
+
::slotted(vaadin-icon) {
|
|
500
|
+
color: var(--lumo-contrast-60pct);
|
|
501
|
+
width: var(--lumo-icon-size-m);
|
|
502
|
+
height: var(--lumo-icon-size-m);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
506
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
507
|
+
padding: 0.25em;
|
|
508
|
+
box-sizing: border-box !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* Text align */
|
|
512
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
513
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@-moz-document url-prefix() {
|
|
517
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
518
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
523
|
+
text-align: start;
|
|
524
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
528
|
+
text-align: center;
|
|
529
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
533
|
+
text-align: end;
|
|
534
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
@-moz-document url-prefix() {
|
|
538
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
539
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
540
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@-moz-document url-prefix() {
|
|
545
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
546
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
547
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/* RTL specific styles */
|
|
552
|
+
:host([dir='rtl'])::after {
|
|
553
|
+
transform-origin: 0% 0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
557
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
561
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
565
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@-moz-document url-prefix() {
|
|
569
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
570
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
571
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@-moz-document url-prefix() {
|
|
576
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
577
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
578
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
582
|
+
@license
|
|
583
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
584
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
585
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
586
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
587
|
+
Code distributed by Google as part of the polymer project is also
|
|
588
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
589
|
+
*/window.JSCompiler_renameProperty=function(i,e){return i};/**
|
|
590
|
+
@license
|
|
591
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
592
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
593
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
594
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
595
|
+
Code distributed by Google as part of the polymer project is also
|
|
596
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
597
|
+
*/let Hf=/(url\()([^)]*)(\))/g,Lf=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ii,_e;function si(i,e){if(i&&Lf.test(i)||i==="//")return i;if(Ii===void 0){Ii=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ii=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ii)try{return new URL(i,e).href}catch(t){return i}return _e||(_e=document.implementation.createHTMLDocument("temp"),_e.base=_e.createElement("base"),_e.head.appendChild(_e.base),_e.anchor=_e.createElement("a"),_e.body.appendChild(_e.anchor)),_e.base.href=e,_e.anchor.href=i,_e.anchor.href||i}function As(i,e){return i.replace(Hf,function(t,n,r,s){return n+"'"+si(r.replace(/["']/g,""),e)+"'"+s})}function Ss(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
598
|
+
@license
|
|
599
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
600
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
601
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
602
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
603
|
+
Code distributed by Google as part of the polymer project is also
|
|
604
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
605
|
+
*/const ql=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Bf=ql&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Rf=window.Polymer&&window.Polymer.rootPath||Ss(document.baseURI||window.location.href),on=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let an=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,zf=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xl=window.Polymer&&window.Polymer.legacyOptimizations||!1,Kl=window.Polymer&&window.Polymer.legacyWarnings||!1,Ff=window.Polymer&&window.Polymer.syncInitialRender||!1,jr=window.Polymer&&window.Polymer.legacyUndefined||!1,Uf=window.Polymer&&window.Polymer.orderedComputed||!1,Ho=window.Polymer&&window.Polymer.removeNestedTemplates||!1,jf=window.Polymer&&window.Polymer.fastDomIf||!1,Lo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Vf=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
606
|
+
@license
|
|
607
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
608
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
609
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
610
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
611
|
+
Code distributed by Google as part of the polymer project is also
|
|
612
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
613
|
+
*/let Yf=0;const ee=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Yf++;function n(r){let s=r.__mixinSet;if(s&&s[t])return r;let o=e,a=o.get(r);if(!a){a=i(r),o.set(r,a);let l=Object.create(a.__mixinSet||s||null);l[t]=!0,a.__mixinSet=l}return a}return n};/**
|
|
614
|
+
@license
|
|
615
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
616
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
617
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
618
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
619
|
+
Code distributed by Google as part of the polymer project is also
|
|
620
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
621
|
+
*/let Cs={},Jl={};function Bo(i,e){Cs[i]=Jl[i.toLowerCase()]=e}function Ro(i){return Cs[i]||Jl[i.toLowerCase()]}function Wf(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class fi extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let n=Ro(e);return n&&t?n.querySelector(t):n}return null}attributeChangedCallback(e,t,n,r){t!==n&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=si(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ss(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(an&&Ro(e)!==void 0)throw Bo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Bo(e,this),Wf(this)}}}fi.prototype.modules=Cs;customElements.define("dom-module",fi);/**
|
|
622
|
+
@license
|
|
623
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
624
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
625
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
626
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
627
|
+
Code distributed by Google as part of the polymer project is also
|
|
628
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
629
|
+
*/const Gf="link[rel=import][type~=css]",qf="include",zo="shady-unscoped";function Zl(i){return fi.import(i)}function Fo(i){let e=i.body?i.body:i;const t=As(e.textContent,i.baseURI),n=document.createElement("style");return n.textContent=t,n}function Xf(i){const e=i.trim().split(/\s+/),t=[];for(let n=0;n<e.length;n++)t.push(...Kf(e[n]));return t}function Kf(i){const e=Zl(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...eu(e));const n=e.querySelector("template");n&&t.push(...Ql(n,e.assetpath)),e._styles=t}return e._styles}function Ql(i,e){if(!i._styles){const t=[],n=i.content.querySelectorAll("style");for(let r=0;r<n.length;r++){let s=n[r],o=s.getAttribute(qf);o&&t.push(...Xf(o).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(s.textContent=As(s.textContent,e)),t.push(s)}i._styles=t}return i._styles}function Jf(i){let e=Zl(i);return e?eu(e):[]}function eu(i){const e=[],t=i.querySelectorAll(Gf);for(let n=0;n<t.length;n++){let r=t[n];if(r.import){const s=r.import,o=r.hasAttribute(zo);if(o&&!s._unscopedStyle){const a=Fo(s);a.setAttribute(zo,""),s._unscopedStyle=a}else s._style||(s._style=Fo(s));e.push(o?s._unscopedStyle:s._style)}}return e}/**
|
|
630
|
+
@license
|
|
631
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
632
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
633
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
634
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
635
|
+
Code distributed by Google as part of the polymer project is also
|
|
636
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
637
|
+
*/const ae=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
|
|
638
|
+
@license
|
|
639
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
640
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
641
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
642
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
643
|
+
Code distributed by Google as part of the polymer project is also
|
|
644
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
645
|
+
*/function Vr(i){return i.indexOf(".")>=0}function ct(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function tu(i,e){return i.indexOf(e+".")===0}function pi(i,e){return e.indexOf(i+".")===0}function mi(i,e,t){return e+t.slice(i.length)}function Zf(i,e){return i===e||tu(i,e)||pi(i,e)}function ii(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let n=i[t].toString().split(".");for(let r=0;r<n.length;r++)e.push(n[r])}return e.join(".")}else return i}function iu(i){return Array.isArray(i)?ii(i).split("."):i.toString().split(".")}function fe(i,e,t){let n=i,r=iu(e);for(let s=0;s<r.length;s++){if(!n)return;let o=r[s];n=n[o]}return t&&(t.path=r.join(".")),n}function Uo(i,e,t){let n=i,r=iu(e),s=r[r.length-1];if(r.length>1){for(let o=0;o<r.length-1;o++){let a=r[o];if(n=n[a],!n)return}n[s]=t}else n[e]=t;return r.join(".")}/**
|
|
646
|
+
@license
|
|
647
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
648
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
649
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
650
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
651
|
+
Code distributed by Google as part of the polymer project is also
|
|
652
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
653
|
+
*/const ln={},Qf=/-[a-z]/g,ep=/([A-Z])/g;function nu(i){return ln[i]||(ln[i]=i.indexOf("-")<0?i:i.replace(Qf,e=>e[1].toUpperCase()))}function An(i){return ln[i]||(ln[i]=i.replace(ep,"-$1").toLowerCase())}/**
|
|
654
|
+
@license
|
|
655
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
656
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
657
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
658
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
659
|
+
Code distributed by Google as part of the polymer project is also
|
|
660
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
661
|
+
*/let tp=0,ru=0,wt=[],ip=0,Yr=!1,su=document.createTextNode("");new window.MutationObserver(np).observe(su,{characterData:!0});function np(){Yr=!1;const i=wt.length;for(let e=0;e<i;e++){let t=wt[e];if(t)try{t()}catch(n){setTimeout(()=>{throw n})}}wt.splice(0,i),ru+=i}const rp={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},ou={run(i){return Yr||(Yr=!0,su.textContent=ip++),wt.push(i),tp++},cancel(i){const e=i-ru;if(e>=0){if(!wt[e])throw new Error("invalid async handle: "+i);wt[e]=null}}};/**
|
|
662
|
+
@license
|
|
663
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
664
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
665
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
666
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
667
|
+
Code distributed by Google as part of the polymer project is also
|
|
668
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
669
|
+
*/const sp=ou,au=ee(i=>{class e extends i{static createProperties(n){const r=this.prototype;for(let s in n)s in r||r._createPropertyAccessor(s)}static attributeNameForProperty(n){return n.toLowerCase()}static typeForProperty(n){}_createPropertyAccessor(n,r){this._addPropertyToAttributeMap(n),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[n]||(this.__dataHasAccessor[n]=!0,this._definePropertyAccessor(n,r))}_addPropertyToAttributeMap(n){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[n];return r||(r=this.constructor.attributeNameForProperty(n),this.__dataAttributes[r]=n),r}_definePropertyAccessor(n,r){Object.defineProperty(this,n,{get(){return this.__data[n]},set:r?function(){}:function(s){this._setPendingProperty(n,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 n in this.__dataHasAccessor)this.hasOwnProperty(n)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[n]=this[n],delete this[n])}_initializeInstanceProperties(n){Object.assign(this,n)}_setProperty(n,r){this._setPendingProperty(n,r)&&this._invalidateProperties()}_getProperty(n){return this.__data[n]}_setPendingProperty(n,r,s){let o=this.__data[n],a=this._shouldPropertyChange(n,r,o);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(n in this.__dataOld)&&(this.__dataOld[n]=o),this.__data[n]=r,this.__dataPending[n]=r),a}_isPropertyPending(n){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(n))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,sp.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 n=this.__data,r=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(n,r,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(n,r,s)),this.__dataCounter--}_shouldPropertiesChange(n,r,s){return!!r}_propertiesChanged(n,r,s){}_shouldPropertyChange(n,r,s){return s!==r&&(s===s||r===r)}attributeChangedCallback(n,r,s,o){r!==s&&this._attributeToProperty(n,s),super.attributeChangedCallback&&super.attributeChangedCallback(n,r,s,o)}_attributeToProperty(n,r,s){if(!this.__serializing){const o=this.__dataAttributes,a=o&&o[n]||n;this[a]=this._deserializeValue(r,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(n,r,s){this.__serializing=!0,s=arguments.length<3?this[n]:s,this._valueToNodeAttribute(this,s,r||this.constructor.attributeNameForProperty(n)),this.__serializing=!1}_valueToNodeAttribute(n,r,s){const o=this._serializeValue(r);(s==="class"||s==="name"||s==="slot")&&(n=ae(n)),o===void 0?n.removeAttribute(s):n.setAttribute(s,o===""&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(n){switch(typeof n){case"boolean":return n?"":void 0;default:return n!=null?n.toString():void 0}}_deserializeValue(n,r){switch(r){case Boolean:return n!==null;case Number:return Number(n);default:return n}}}return e});/**
|
|
670
|
+
@license
|
|
671
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
672
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
673
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
674
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
675
|
+
Code distributed by Google as part of the polymer project is also
|
|
676
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
677
|
+
*/const lu={};let Hi=HTMLElement.prototype;for(;Hi;){let i=Object.getOwnPropertyNames(Hi);for(let e=0;e<i.length;e++)lu[i[e]]=!0;Hi=Object.getPrototypeOf(Hi)}const op=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function ap(i,e){if(!lu[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const lp=ee(i=>{const e=au(i);class t extends e{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(nu(r[s]))}static attributeNameForProperty(r){return An(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 o=this;o.hasAttribute(r)||this._valueToNodeAttribute(o,s,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(op(r))return r;try{return JSON.stringify(r)}catch(s){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,s){let o;switch(s){case Object:try{o=JSON.parse(r)}catch(a){o=r}break;case Array:try{o=JSON.parse(r)}catch(a){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:o=isNaN(r)?String(r):Number(r),o=new Date(o);break;default:o=super._deserializeValue(r,s);break}return o}_definePropertyAccessor(r,s){ap(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});/**
|
|
678
|
+
@license
|
|
679
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
680
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
681
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
682
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
683
|
+
Code distributed by Google as part of the polymer project is also
|
|
684
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
685
|
+
*/const up={"dom-if":!0,"dom-repeat":!0};let jo=!1,Vo=!1;function cp(){if(!jo){jo=!0;const i=document.createElement("textarea");i.placeholder="a",Vo=i.placeholder===i.textContent}return Vo}function hp(i){cp()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const dp=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{const r=t.getAttribute(n);if(i&&n.startsWith("on-")){e.setAttribute(n,i.createScript(r,n));return}e.setAttribute(n,r)}})();function fp(i){let e=i.getAttribute("is");if(e&&up[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:n}=t.attributes[0];dp(i,t,n),t.removeAttribute(n)}}return i}function uu(i,e){let t=e.parentInfo&&uu(i,e.parentInfo);if(t){for(let n=t.firstChild,r=0;n;n=n.nextSibling)if(e.parentIndex===r++)return n}else return i}function pp(i,e,t,n){n.id&&(e[n.id]=t)}function mp(i,e,t){if(t.events&&t.events.length)for(let n=0,r=t.events,s;n<r.length&&(s=r[n]);n++)i._addMethodEventListenerToNode(e,s.name,s.value,i)}function _p(i,e,t,n){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=n)}function gp(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const yp=ee(i=>{class e extends i{static _parseTemplate(n,r){if(!n._templateInfo){let s=n._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!r,s.stripWhiteSpace=r&&r.stripWhiteSpace||n.hasAttribute&&n.hasAttribute("strip-whitespace"),this._parseTemplateContent(n,s,{parent:null})}return n._templateInfo}static _parseTemplateContent(n,r,s){return this._parseTemplateNode(n.content,r,s)}static _parseTemplateNode(n,r,s){let o=!1,a=n;return a.localName=="template"&&!a.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(a,r,s)||o:a.localName==="slot"&&(r.hasInsertionPoint=!0),hp(a),a.firstChild&&this._parseTemplateChildNodes(a,r,s),a.hasAttributes&&a.hasAttributes()&&(o=this._parseTemplateNodeAttributes(a,r,s)||o),o||s.noted}static _parseTemplateChildNodes(n,r,s){if(!(n.localName==="script"||n.localName==="style"))for(let o=n.firstChild,a=0,l;o;o=l){if(o.localName=="template"&&(o=fp(o)),l=o.nextSibling,o.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)o.textContent+=c.textContent,l=c.nextSibling,n.removeChild(c),c=l;if(r.stripWhiteSpace&&!o.textContent.trim()){n.removeChild(o);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(o,r,u)&&(u.infoIndex=r.nodeInfoList.push(u)-1),o.parentNode&&a++}}static _parseTemplateNestedTemplate(n,r,s){let o=n,a=this._parseTemplate(o,r);return(a.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(n,r,s){let o=!1,a=Array.from(n.attributes);for(let l=a.length-1,u;u=a[l];l--)o=this._parseTemplateNodeAttribute(n,r,s,u.name,u.value)||o;return o}static _parseTemplateNodeAttribute(n,r,s,o,a){return o.slice(0,3)==="on-"?(n.removeAttribute(o),s.events=s.events||[],s.events.push({name:o.slice(3),value:a}),!0):o==="id"?(s.id=a,!0):!1}static _contentForTemplate(n){let r=n._templateInfo;return r&&r.content||n.content}_stampTemplate(n,r){n&&!n.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(n),r=r||this.constructor._parseTemplate(n);let s=r.nodeInfoList,o=r.content||n.content,a=document.importNode(o,!0);a.__noInsertionPoint=!r.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,c=s.length,h;u<c&&(h=s[u]);u++){let d=l[u]=uu(a,h);pp(this,a.$,d,h),_p(this,d,h,r),mp(this,d,h)}return a=a,a}_addMethodEventListenerToNode(n,r,s,o){o=o||n;let a=gp(o,r,s);return this._addEventListenerToNode(n,r,a),a}_addEventListenerToNode(n,r,s){n.addEventListener(r,s)}_removeEventListenerFromNode(n,r,s){n.removeEventListener(r,s)}}return e});/**
|
|
686
|
+
* @fileoverview
|
|
687
|
+
* @suppress {checkPrototypalTypes}
|
|
688
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
689
|
+
* This code may only be used under the BSD style license found at
|
|
690
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
691
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
692
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
693
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
694
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
695
|
+
*/let _i=0;const gi=[],H={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cu="__computeInfo",bp=/[A-Z]/;function Gn(i,e,t){let n=i[e];if(!n)n=i[e]={};else if(!i.hasOwnProperty(e)&&(n=i[e]=Object.create(i[e]),t))for(let r in n){let s=n[r],o=n[r]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return n}function ni(i,e,t,n,r,s){if(e){let o=!1;const a=_i++;for(let l in t){let u=r?ct(l):l,c=e[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!r||$s(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(i,l,t,n,f.info,r,s),o=!0)}return o}return!1}function vp(i,e,t,n,r,s,o,a){let l=!1,u=o?ct(n):n,c=e[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==t)&&(!o||$s(n,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(i,n,r,s,f.info,o,a),l=!0);return l}function $s(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&tu(t,i))||!!(e.wildcard&&pi(t,i))}else return!0}function Yo(i,e,t,n,r){let s=typeof r.method=="string"?i[r.method]:r.method,o=r.property;s?s.call(i,i.__data[o],n[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function xp(i,e,t,n,r){let s=i[H.NOTIFY],o,a=_i++;for(let u in e)e[u]&&(s&&vp(i,s,a,u,t,n,r)||r&&Ep(i,u,t))&&(o=!0);let l;o&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ep(i,e,t){let n=ct(e);if(n!==e){let r=An(n)+"-changed";return hu(i,r,t[e],e),!0}return!1}function hu(i,e,t,n){let r={value:t,queueProperty:!0};n&&(r.path=n),ae(i).dispatchEvent(new CustomEvent(e,{detail:r}))}function wp(i,e,t,n,r,s){let a=(s?ct(e):e)!=e?e:null,l=a?fe(i,a):i.__data[e];a&&l===void 0&&(l=t[e]),hu(i,r.eventName,l,a)}function Ap(i,e,t,n,r){let s,o=i.detail,a=o&&o.path;a?(n=mi(t,n,a),s=o&&o.value):s=i.currentTarget[t],s=r?!s:s,(!e[H.READ_ONLY]||!e[H.READ_ONLY][n])&&e._setPendingPropertyOrPath(n,s,!0,!!a)&&(!o||!o.queueProperty)&&e._invalidateProperties()}function Sp(i,e,t,n,r){let s=i.__data[e];on&&(s=on(s,r.attrName,"attribute",i)),i._propertyToAttribute(e,r.attrName,s)}function Cp(i,e,t,n){let r=i[H.COMPUTE];if(r)if(Uf){_i++;const s=Pp(i),o=[];for(let l in e)Wo(l,r,o,s,n);let a;for(;a=o.shift();)du(i,"",e,t,a)&&Wo(a.methodInfo,r,o,s,n);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;ni(i,r,s,t,n);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const $p=(i,e,t)=>{let n=0,r=e.length-1,s=-1;for(;n<=r;){const o=n+r>>1,a=t.get(e[o].methodInfo)-t.get(i.methodInfo);if(a<0)n=o+1;else if(a>0)r=o-1;else{s=o;break}}s<0&&(s=r+1),e.splice(s,0,i)},Wo=(i,e,t,n,r)=>{const s=r?ct(i):i,o=e[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==_i&&(!r||$s(i,l.trigger))&&(l.info.lastRun=_i,$p(l.info,t,n))}};function Pp(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[H.COMPUTE];let{counts:n,ready:r,total:s}=Tp(i),o;for(;o=r.shift();){e.set(o,e.size);const a=t[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--n[u]===0&&r.push(u)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Tp(i){const e=i[cu],t={},n=i[H.COMPUTE],r=[];let s=0;for(let o in e){const a=e[o];s+=t[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in n)e[o]||r.push(o);return{counts:t,ready:r,total:s}}function du(i,e,t,n,r){let s=Wr(i,e,t,n,r);if(s===gi)return!1;let o=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[o]?i._setPendingProperty(o,s,!0):(i[o]=s,!1)}function Dp(i,e,t){let n=i.__dataLinkedPaths;if(n){let r;for(let s in n){let o=n[s];pi(s,e)?(r=mi(s,o,e),i._setPendingPropertyOrPath(r,t,!0,!0)):pi(o,e)&&(r=mi(o,s,e),i._setPendingPropertyOrPath(r,t,!0,!0))}}}function qn(i,e,t,n,r,s,o){t.bindings=t.bindings||[];let a={kind:n,target:r,parts:s,literal:o,isCompound:s.length!==1};if(t.bindings.push(a),Ip(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||An(r)+"-changed",a.listenerNegate=c}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,kp(i,e,a,c,l)}}function kp(i,e,t,n,r){if(!n.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=n.dependencies,o={index:r,binding:t,part:n,evaluator:i};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=pu(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Mp,info:o,trigger:l})}}}function Mp(i,e,t,n,r,s,o){let a=o[r.index],l=r.binding,u=r.part;if(s&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=t[e];e=mi(u.source,l.target,e),a._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(a)}else{let c=r.evaluator._evaluateBinding(i,u,e,t,n,s);c!==gi&&Op(i,a,l,u,c)}}function Op(i,e,t,n,r){if(r=Np(e,r,t,n),on&&(r=on(r,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,r,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[H.READ_ONLY]||!e[H.READ_ONLY][s])&&e._setPendingProperty(s,r)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,r)}}function Np(i,e,t,n){if(t.isCompound){let r=i.__dataCompoundStorage[t.target];r[n.compoundIndex]=e,e=r.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Ip(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Hp(i,e){let{nodeList:t,nodeInfoList:n}=e;if(n.length)for(let r=0;r<n.length;r++){let s=n[r],o=t[r],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Lp(o,u),Bp(o,i,u)}o.__dataHost=i}}function Lp(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),n=e.parts,r=new Array(n.length);for(let o=0;o<n.length;o++)r[o]=n[o].literal;let s=e.target;t[s]=r,e.literal&&e.kind=="property"&&(s==="className"&&(i=ae(i)),i[s]=e.literal)}}function Bp(i,e,t){if(t.listenerEvent){let n=t.parts[0];i.addEventListener(t.listenerEvent,function(r){Ap(r,e,t.target,n.source,n.negate)})}}function Go(i,e,t,n,r,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let o={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||i._addPropertyEffect(l.rootProperty,t,{fn:n,info:o,trigger:l});return s&&i._addPropertyEffect(e.methodName,t,{fn:n,info:o}),o}function Wr(i,e,t,n,r){let s=i._methodHost||i,o=s[r.methodName];if(o){let a=i._marshalArgs(r.args,e,t);return a===gi?gi:o.apply(s,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Rp=[],fu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",zp="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Fp="(?:'(?:[^'\\\\]|\\\\.)*')",Up='(?:"(?:[^"\\\\]|\\\\.)*")',jp="(?:"+Fp+"|"+Up+")",qo="(?:("+fu+"|"+zp+"|"+jp+")\\s*)",Vp="(?:"+qo+"(?:,\\s*"+qo+")*)",Yp="(?:\\(\\s*(?:"+Vp+"?)\\)\\s*)",Wp="("+fu+"\\s*"+Yp+"?)",Gp="(\\[\\[|{{)\\s*",qp="(?:]]|}})",Xp="(?:(!)\\s*)?",Kp=Gp+Xp+Wp+qp,Xo=new RegExp(Kp,"g");function Ko(i){let e="";for(let t=0;t<i.length;t++){let n=i[t].literal;e+=n||""}return e}function Xn(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let n={methodName:e[1],static:!0,args:Rp};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return Jp(r,n)}else return n}return null}function Jp(i,e){return e.args=i.map(function(t){let n=pu(t);return n.literal||(e.static=!1),n},this),e}function pu(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},n=e[0];switch(n==="-"&&(n=e[1]),n>="0"&&n<="9"&&(n="#"),n){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=ct(e),t.structured=Vr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Jo(i,e,t){let n=fe(i,t);return n===void 0&&(n=e[t]),n}function mu(i,e,t,n){const r={indexSplices:n};jr&&!i._overrideLegacyUndefined&&(e.splices=r),i.notifyPath(t+".splices",r),i.notifyPath(t+".length",e.length),jr&&!i._overrideLegacyUndefined&&(r.indexSplices=[])}function Xt(i,e,t,n,r,s){mu(i,e,t,[{index:n,addedCount:r,removed:s,object:e,type:"splice"}])}function Zp(i){return i[0].toUpperCase()+i.substring(1)}const Ps=ee(i=>{const e=yp(lp(i));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 H}_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(Kt.length){let r=Kt[Kt.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[H.READ_ONLY];for(let o in r)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=r[o])}_addPropertyEffect(r,s,o){this._createPropertyAccessor(r,s==H.READ_ONLY);let a=Gn(this,s,!0)[r];a||(a=this[s][r]=[]),a.push(o)}_removePropertyEffect(r,s,o){let a=Gn(this,s,!0)[r],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(r,s){let o=this[s];return!!(o&&o[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,H.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,H.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,H.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,H.COMPUTE)}_setPendingPropertyOrPath(r,s,o,a){if(a||ct(Array.isArray(r)?r[0]:r)!==r){if(!a){let l=fe(this,r);if(r=Uo(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,o))return Dp(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,o);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,o){(o!==r[s]||typeof o=="object")&&(s==="className"&&(r=ae(r)),r[s]=o)}_setPendingProperty(r,s,o){let a=this.__dataHasPaths&&Vr(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[H.NOTIFY]&&this[H.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=o),!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 o=r[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let o in r)(s||!this[H.READ_ONLY]||!this[H.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Cp(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),ni(this,this[H.REFLECT],s,o,a),ni(this,this[H.OBSERVE],s,o,a),l&&xp(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,o){this[H.PROPAGATE]&&ni(this,this[H.PROPAGATE],r,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,o)}_runEffectsForTemplate(r,s,o,a){const l=(u,c)=>{ni(this,r.propertyEffects,u,o,c,r.nodeList);for(let h=r.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,o,c)};r.runEffects?r.runEffects(l,s,a):l(s,a)}linkPaths(r,s){r=ii(r),s=ii(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=ii(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let o={path:""},a=fe(this,r,o);mu(this,a,o.path,s)}get(r,s){return fe(s||this,r)}set(r,s,o){o?Uo(o,r,s):(!this[H.READ_ONLY]||!this[H.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let o={path:""},a=fe(this,r,o),l=a.length,u=a.push(...s);return s.length&&Xt(this,a,o.path,l,s.length,[]),u}pop(r){let s={path:""},o=fe(this,r,s),a=!!o.length,l=o.pop();return a&&Xt(this,o,s.path,o.length,0,[l]),l}splice(r,s,o,...a){let l={path:""},u=fe(this,r,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,o,...a),(a.length||c.length)&&Xt(this,u,l.path,s,a.length,c),c}shift(r){let s={path:""},o=fe(this,r,s),a=!!o.length,l=o.shift();return a&&Xt(this,o,s.path,0,0,[l]),l}unshift(r,...s){let o={path:""},a=fe(this,r,o),l=a.unshift(...s);return s.length&&Xt(this,a,o.path,0,s.length,[]),l}notifyPath(r,s){let o;if(arguments.length==1){let a={path:""};s=fe(this,r,a),o=a.path}else Array.isArray(r)?o=ii(r):o=r;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,H.READ_ONLY),s&&(this["_set"+Zp(r)]=function(o){this._setProperty(r,o)})}_createPropertyObserver(r,s,o){let a={property:r,method:s,dynamicFn:!!o};this._addPropertyEffect(r,H.OBSERVE,{fn:Yo,info:a,trigger:{name:r}}),o&&this._addPropertyEffect(s,H.OBSERVE,{fn:Yo,info:a,trigger:{name:s}})}_createMethodObserver(r,s){let o=Xn(r);if(!o)throw new Error("Malformed observer expression '"+r+"'");Go(this,o,H.OBSERVE,Wr,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,H.NOTIFY,{fn:wp,info:{eventName:An(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,H.REFLECT,{fn:Sp,info:{attrName:s}})}_createComputedProperty(r,s,o){let a=Xn(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Go(this,a,H.COMPUTE,du,r,o);Gn(this,cu)[r]=l}_marshalArgs(r,s,o){const a=this.__data,l=[];for(let u=0,c=r.length;u<c;u++){let{name:h,structured:d,wildcard:f,value:p,literal:g}=r[u];if(!g)if(f){const $=pi(h,s),N=Jo(a,o,$?s:h);p={path:$?s:h,value:N,base:$?fe(a,h):N}}else p=d?Jo(a,o,h):a[h];if(jr&&!this._overrideLegacyUndefined&&p===void 0&&r.length>1)return gi;l[u]=p}return l}static addPropertyEffect(r,s,o){this.prototype._addPropertyEffect(r,s,o)}static createPropertyObserver(r,s,o){this.prototype._createPropertyObserver(r,s,o)}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,o){this.prototype._createComputedProperty(r,s,o)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let o=this.constructor._parseTemplate(r),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=r._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(r,s,o){let a=r.hostProps=r.hostProps||{};a[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),Kt.push(this);let o=super._stampTemplate(r,s);if(Kt.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,Hp(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ae(ae(h).parentNode).removeChild(h)}}static _parseTemplateNode(r,s,o){let a=e._parseTemplateNode.call(this,r,s,o);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=Ko(l)||" ",qn(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(r,s,o,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";bp.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=Ko(u);return d&&h=="attribute"&&(a=="class"&&r.hasAttribute("class")&&(d+=" "+r.getAttribute(a)),r.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&r.setAttribute(a,""),r.localName==="input"&&c==="value"&&r.setAttribute(c,""),r.removeAttribute(c),h==="property"&&(a=nu(a)),qn(this,s,o,h,a,u,d),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,o,a,l)}static _parseTemplateNestedTemplate(r,s,o){let a=e._parseTemplateNestedTemplate.call(this,r,s,o);const l=r.parentNode,u=o.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";Ho&&(c||h)&&(l.removeChild(r),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let d=u.hostProps;if(jf&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),Ho||(o.parentInfo.noted=!0));else{let f="{";for(let p in d){let g=[{mode:f,source:p,dependencies:[p],hostProp:!0}];qn(this,s,o,"property","_host_"+p,g)}}return a}static _parseBindings(r,s){let o=[],a=0,l;for(;(l=Xo.exec(r))!==null;){l.index>a&&o.push({literal:r.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,f="",p=-1;u=="{"&&(p=h.indexOf("::"))>0&&(f=h.substring(p+2),h=h.substring(0,p),d=!0);let g=Xn(h),$=[];if(g){let{args:N,methodName:M}=g;for(let V=0;V<N.length;V++){let F=N[V];F.literal||$.push(F)}let R=s.dynamicFns;(R&&R[M]||g.static)&&($.push(M),g.dynamicFn=!0)}else $.push(h);o.push({source:h,mode:u,negate:c,customEvent:d,signature:g,dependencies:$,event:f}),a=Xo.lastIndex}if(a&&a<r.length){let u=r.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(r,s,o,a,l,u){let c;return s.signature?c=Wr(r,o,a,l,s.signature):o!=s.source?c=fe(r,s.source):u&&Vr(o)?c=fe(r,o):c=r.__data[o],s.negate&&(c=!c),c}}return t}),Kt=[];/**
|
|
696
|
+
@license
|
|
697
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
698
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
699
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
700
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
701
|
+
Code distributed by Google as part of the polymer project is also
|
|
702
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
703
|
+
*//**
|
|
704
|
+
@license
|
|
705
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
706
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
707
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
708
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
709
|
+
Code distributed by Google as part of the polymer project is also
|
|
710
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
711
|
+
*/function Qp(i){const e={};for(let t in i){const n=i[t];e[t]=typeof n=="function"?{type:n}:n}return e}const em=ee(i=>{const e=au(i);function t(s){const o=Object.getPrototypeOf(s);return o.prototype instanceof r?o:null}function n(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let o=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(o=Qp(a))}s.__ownProperties=o}return s.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const o=this._properties;this.__observedAttributes=o?Object.keys(o).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const o=t(this);o&&o.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const o=n(this);o&&this.createProperties(o)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const o=t(this);this.__properties=Object.assign({},o&&o._properties,n(this))}return this.__properties}static typeForProperty(o){const a=this._properties[o];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r});/**
|
|
712
|
+
* @fileoverview
|
|
713
|
+
* @suppress {checkPrototypalTypes}
|
|
714
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
715
|
+
* This code may only be used under the BSD style license found at
|
|
716
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
717
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
718
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
719
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
720
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
721
|
+
*/const tm="3.5.2",Zo=window.ShadyCSS&&window.ShadyCSS.cssBuild,im=ee(i=>{const e=em(Ps(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function n(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function r(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,c,h){if(!Zo){const d=u.content.querySelectorAll("style"),f=Ql(u),p=Jf(c),g=u.content.firstElementChild;for(let N=0;N<p.length;N++){let M=p[N];M.textContent=l._processStyleText(M.textContent,h),u.content.insertBefore(M,g)}let $=0;for(let N=0;N<f.length;N++){let M=f[N],R=d[$];R!==M?(M=M.cloneNode(!0),R.parentNode.insertBefore(M,R)):$++,M.textContent=l._processStyleText(M.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),Vf&&Zo&&Bf){const d=u.content.querySelectorAll("style");if(d){let f="";Array.from(d).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function o(l){let u=null;if(l&&(!an||zf)&&(u=fi.import(l,"template"),an&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return tm}static _finalizeClass(){e._finalizeClass.call(this);const u=n(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Xl||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)r(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&o(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=Ss(u.url);else{const c=fi.import(this.is);this._importPath=c&&c.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=Rf,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return As(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?si(h):"";s(this,c,u,d),this.prototype._bindTemplate(c)}}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(u){const c=ae(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ff&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=si(this.importPath)),si(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return Kl&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
|
|
722
|
+
@license
|
|
723
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
724
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
725
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
726
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
727
|
+
Code distributed by Google as part of the polymer project is also
|
|
728
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
729
|
+
*/const Qo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class _u{constructor(e,t){yu(e,t);const n=t.reduce((r,s,o)=>r+gu(s)+e[o+1],e[0]);this.value=n.toString()}toString(){return this.value}}function gu(i){if(i instanceof _u)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function nm(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof _u)return gu(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const ht=function(e,...t){yu(e,t);const n=document.createElement("template");let r=t.reduce((s,o,a)=>s+nm(o)+e[a+1],e[0]);return Qo&&(r=Qo.createHTML(r)),n.innerHTML=r,n},yu=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
730
|
+
@license
|
|
731
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
732
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
733
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
734
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
735
|
+
Code distributed by Google as part of the polymer project is also
|
|
736
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
737
|
+
*/const Ve=im(HTMLElement);/**
|
|
738
|
+
* @license
|
|
739
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
740
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
741
|
+
*/const Te=[];function Gr(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function qr(){return document.documentElement.getAttribute("dir")}function rm(){const i=qr();Te.forEach(e=>{Gr(e,i)})}const sm=new MutationObserver(rm);sm.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Sn=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Gr(this,qr(),null))}attributeChangedCallback(t,n,r){if(super.attributeChangedCallback(t,n,r),t!=="dir")return;const s=qr(),o=r===s&&Te.indexOf(this)===-1,a=!r&&n&&Te.indexOf(this)===-1;o||a?(this.__subscribe(),Gr(this,s,r)):r!==s&&n===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Te.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,n,r){r==="dir"&&n===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,n,r)}_attributeToProperty(t,n,r){t==="dir"&&!n?this.dir="":super._attributeToProperty(t,n,r)}__subscribe(){Te.includes(this)||Te.push(this)}__unsubscribe(){Te.includes(this)&&Te.splice(Te.indexOf(this),1)}};/**
|
|
742
|
+
* @license
|
|
743
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
744
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
745
|
+
*/class om extends ut(Sn(Ve)){static get is(){return"vaadin-input-container"}static get template(){return ht`
|
|
746
|
+
<style>
|
|
747
|
+
:host {
|
|
748
|
+
display: flex;
|
|
749
|
+
align-items: center;
|
|
750
|
+
flex: 0 1 auto;
|
|
751
|
+
border-radius:
|
|
752
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
753
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
754
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
755
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
756
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
757
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0px);
|
|
758
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
759
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
760
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
:host([dir='rtl']) {
|
|
764
|
+
border-radius:
|
|
765
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
766
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
767
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
768
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
769
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
:host([hidden]) {
|
|
773
|
+
display: none !important;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/* Reset the native input styles */
|
|
777
|
+
::slotted(input) {
|
|
778
|
+
-webkit-appearance: none;
|
|
779
|
+
-moz-appearance: none;
|
|
780
|
+
flex: auto;
|
|
781
|
+
white-space: nowrap;
|
|
782
|
+
overflow: hidden;
|
|
783
|
+
width: 100%;
|
|
784
|
+
height: 100%;
|
|
785
|
+
outline: none;
|
|
786
|
+
margin: 0;
|
|
787
|
+
padding: 0;
|
|
788
|
+
border: 0;
|
|
789
|
+
border-radius: 0;
|
|
790
|
+
min-width: 0;
|
|
791
|
+
font: inherit;
|
|
792
|
+
line-height: normal;
|
|
793
|
+
color: inherit;
|
|
794
|
+
background-color: transparent;
|
|
795
|
+
/* Disable default invalid style in Firefox */
|
|
796
|
+
box-shadow: none;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
::slotted(*) {
|
|
800
|
+
flex: none;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
804
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
805
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
806
|
+
font: inherit;
|
|
807
|
+
color: inherit;
|
|
808
|
+
/* Override default opacity in Firefox */
|
|
809
|
+
opacity: 1;
|
|
810
|
+
}
|
|
811
|
+
</style>
|
|
812
|
+
<slot name="prefix"></slot>
|
|
813
|
+
<slot></slot>
|
|
814
|
+
<slot name="suffix"></slot>
|
|
815
|
+
`}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}Se(om);/**
|
|
816
|
+
* @license
|
|
817
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
818
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
819
|
+
*/class am extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}Se(am);const Yt=(i,...e)=>{Gl(`lumo-${i}`,e)};/**
|
|
820
|
+
* @license
|
|
821
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
822
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
823
|
+
*/const lm=z`
|
|
824
|
+
:host {
|
|
825
|
+
--lumo-size-xs: 1.625rem;
|
|
826
|
+
--lumo-size-s: 1.875rem;
|
|
827
|
+
--lumo-size-m: 2.25rem;
|
|
828
|
+
--lumo-size-l: 2.75rem;
|
|
829
|
+
--lumo-size-xl: 3.5rem;
|
|
830
|
+
|
|
831
|
+
/* Icons */
|
|
832
|
+
--lumo-icon-size-s: 1.25em;
|
|
833
|
+
--lumo-icon-size-m: 1.5em;
|
|
834
|
+
--lumo-icon-size-l: 2.25em;
|
|
835
|
+
/* For backwards compatibility */
|
|
836
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
837
|
+
}
|
|
838
|
+
`;Yt("sizing-props",lm);/**
|
|
839
|
+
* @license
|
|
840
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
841
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
842
|
+
*/const um=z`
|
|
843
|
+
:host {
|
|
844
|
+
/* Square */
|
|
845
|
+
--lumo-space-xs: 0.25rem;
|
|
846
|
+
--lumo-space-s: 0.5rem;
|
|
847
|
+
--lumo-space-m: 1rem;
|
|
848
|
+
--lumo-space-l: 1.5rem;
|
|
849
|
+
--lumo-space-xl: 2.5rem;
|
|
850
|
+
|
|
851
|
+
/* Wide */
|
|
852
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
853
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
854
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
855
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
856
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
857
|
+
|
|
858
|
+
/* Tall */
|
|
859
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
860
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
861
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
862
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
863
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
864
|
+
}
|
|
865
|
+
`;Yt("spacing-props",um);/**
|
|
866
|
+
* @license
|
|
867
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
868
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
869
|
+
*/const cm=z`
|
|
870
|
+
:host {
|
|
871
|
+
/* Border radius */
|
|
872
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
873
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
874
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
875
|
+
|
|
876
|
+
/* Shadow */
|
|
877
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
878
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
879
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
880
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
881
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
882
|
+
|
|
883
|
+
/* Clickable element cursor */
|
|
884
|
+
--lumo-clickable-cursor: default;
|
|
885
|
+
}
|
|
886
|
+
`;z`
|
|
887
|
+
html {
|
|
888
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
889
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
890
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
891
|
+
}
|
|
892
|
+
`;Yt("style-props",cm);/**
|
|
893
|
+
* @license
|
|
894
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
895
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
896
|
+
*/const hm=z`
|
|
897
|
+
:host {
|
|
898
|
+
/* Base (background) */
|
|
899
|
+
--lumo-base-color: #fff;
|
|
900
|
+
|
|
901
|
+
/* Tint */
|
|
902
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
903
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
904
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
905
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
906
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
907
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
908
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
909
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
910
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
911
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
912
|
+
--lumo-tint: #fff;
|
|
913
|
+
|
|
914
|
+
/* Shade */
|
|
915
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
916
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
917
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
918
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
919
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
920
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
921
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
922
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
923
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
924
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
925
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
926
|
+
|
|
927
|
+
/* Contrast */
|
|
928
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
929
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
930
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
931
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
932
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
933
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
934
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
935
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
936
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
937
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
938
|
+
--lumo-contrast: var(--lumo-shade);
|
|
939
|
+
|
|
940
|
+
/* Text */
|
|
941
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
942
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
943
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
944
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
945
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
946
|
+
|
|
947
|
+
/* Primary */
|
|
948
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
949
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
950
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
951
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
952
|
+
--lumo-primary-contrast-color: #fff;
|
|
953
|
+
|
|
954
|
+
/* Error */
|
|
955
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
956
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
957
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
958
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
959
|
+
--lumo-error-contrast-color: #fff;
|
|
960
|
+
|
|
961
|
+
/* Success */
|
|
962
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
963
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
964
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
965
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
966
|
+
--lumo-success-contrast-color: #fff;
|
|
967
|
+
|
|
968
|
+
/* Warning */
|
|
969
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
970
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
971
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
972
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* forced-colors mode adjustments */
|
|
976
|
+
@media (forced-colors: active) {
|
|
977
|
+
html {
|
|
978
|
+
--lumo-disabled-text-color: GrayText;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
`;Yt("color-props",hm);const dm=z`
|
|
982
|
+
[theme~='dark'] {
|
|
983
|
+
/* Base (background) */
|
|
984
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
985
|
+
|
|
986
|
+
/* Tint */
|
|
987
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
988
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
989
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
990
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
991
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
992
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
993
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
994
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
995
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
996
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
997
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
998
|
+
|
|
999
|
+
/* Shade */
|
|
1000
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
1001
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
1002
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
1003
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
1004
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
1005
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
1006
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
1007
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
1008
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
1009
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
1010
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
1011
|
+
|
|
1012
|
+
/* Contrast */
|
|
1013
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
1014
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
1015
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
1016
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
1017
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
1018
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
1019
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
1020
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
1021
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
1022
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
1023
|
+
--lumo-contrast: var(--lumo-tint);
|
|
1024
|
+
|
|
1025
|
+
/* Text */
|
|
1026
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
1027
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1028
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1029
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1030
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1031
|
+
|
|
1032
|
+
/* Primary */
|
|
1033
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
1034
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
1035
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
1036
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
1037
|
+
--lumo-primary-contrast-color: #fff;
|
|
1038
|
+
|
|
1039
|
+
/* Error */
|
|
1040
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
1041
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
1042
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
1043
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
1044
|
+
|
|
1045
|
+
/* Success */
|
|
1046
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1047
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
1048
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
1049
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
1050
|
+
|
|
1051
|
+
/* Warning */
|
|
1052
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
1053
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
1054
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
1055
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
html {
|
|
1059
|
+
color: var(--lumo-body-text-color);
|
|
1060
|
+
background-color: var(--lumo-base-color);
|
|
1061
|
+
color-scheme: light;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
[theme~='dark'] {
|
|
1065
|
+
color: var(--lumo-body-text-color);
|
|
1066
|
+
background-color: var(--lumo-base-color);
|
|
1067
|
+
color-scheme: dark;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
h1,
|
|
1071
|
+
h2,
|
|
1072
|
+
h3,
|
|
1073
|
+
h4,
|
|
1074
|
+
h5,
|
|
1075
|
+
h6 {
|
|
1076
|
+
color: var(--lumo-header-text-color);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
a:where(:any-link) {
|
|
1080
|
+
color: var(--lumo-primary-text-color);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
a:not(:any-link) {
|
|
1084
|
+
color: var(--lumo-disabled-text-color);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
blockquote {
|
|
1088
|
+
color: var(--lumo-secondary-text-color);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
code,
|
|
1092
|
+
pre {
|
|
1093
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1094
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1095
|
+
}
|
|
1096
|
+
`;K("",dm,{moduleId:"lumo-color"});/**
|
|
1097
|
+
* @license
|
|
1098
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1099
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1100
|
+
*/const fm=z`
|
|
1101
|
+
:host {
|
|
1102
|
+
/* prettier-ignore */
|
|
1103
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
1104
|
+
|
|
1105
|
+
/* Font sizes */
|
|
1106
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
1107
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
1108
|
+
--lumo-font-size-s: 0.875rem;
|
|
1109
|
+
--lumo-font-size-m: 1rem;
|
|
1110
|
+
--lumo-font-size-l: 1.125rem;
|
|
1111
|
+
--lumo-font-size-xl: 1.375rem;
|
|
1112
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
1113
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
1114
|
+
|
|
1115
|
+
/* Line heights */
|
|
1116
|
+
--lumo-line-height-xs: 1.25;
|
|
1117
|
+
--lumo-line-height-s: 1.375;
|
|
1118
|
+
--lumo-line-height-m: 1.625;
|
|
1119
|
+
}
|
|
1120
|
+
`,pm=z`
|
|
1121
|
+
body,
|
|
1122
|
+
:host {
|
|
1123
|
+
font-family: var(--lumo-font-family);
|
|
1124
|
+
font-size: var(--lumo-font-size-m);
|
|
1125
|
+
line-height: var(--lumo-line-height-m);
|
|
1126
|
+
-webkit-text-size-adjust: 100%;
|
|
1127
|
+
-webkit-font-smoothing: antialiased;
|
|
1128
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
small,
|
|
1132
|
+
[theme~='font-size-s'] {
|
|
1133
|
+
font-size: var(--lumo-font-size-s);
|
|
1134
|
+
line-height: var(--lumo-line-height-s);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
[theme~='font-size-xs'] {
|
|
1138
|
+
font-size: var(--lumo-font-size-xs);
|
|
1139
|
+
line-height: var(--lumo-line-height-xs);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
1143
|
+
font-weight: 600;
|
|
1144
|
+
line-height: var(--lumo-line-height-xs);
|
|
1145
|
+
margin-block: 0;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
:where(h1) {
|
|
1149
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
:where(h2) {
|
|
1153
|
+
font-size: var(--lumo-font-size-xxl);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
:where(h3) {
|
|
1157
|
+
font-size: var(--lumo-font-size-xl);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
:where(h4) {
|
|
1161
|
+
font-size: var(--lumo-font-size-l);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
:where(h5) {
|
|
1165
|
+
font-size: var(--lumo-font-size-m);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
:where(h6) {
|
|
1169
|
+
font-size: var(--lumo-font-size-xs);
|
|
1170
|
+
text-transform: uppercase;
|
|
1171
|
+
letter-spacing: 0.03em;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
p,
|
|
1175
|
+
blockquote {
|
|
1176
|
+
margin-top: 0.5em;
|
|
1177
|
+
margin-bottom: 0.75em;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
a {
|
|
1181
|
+
text-decoration: none;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
a:where(:any-link):hover {
|
|
1185
|
+
text-decoration: underline;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
hr {
|
|
1189
|
+
display: block;
|
|
1190
|
+
align-self: stretch;
|
|
1191
|
+
height: 1px;
|
|
1192
|
+
border: 0;
|
|
1193
|
+
padding: 0;
|
|
1194
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
1195
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
blockquote {
|
|
1199
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
b,
|
|
1203
|
+
strong {
|
|
1204
|
+
font-weight: 600;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/* RTL specific styles */
|
|
1208
|
+
blockquote[dir='rtl'] {
|
|
1209
|
+
border-left: none;
|
|
1210
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1211
|
+
}
|
|
1212
|
+
`;K("",pm,{moduleId:"lumo-typography"});Yt("typography-props",fm);/**
|
|
1213
|
+
* @license
|
|
1214
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1215
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1216
|
+
*/const bu=z`
|
|
1217
|
+
:host {
|
|
1218
|
+
top: var(--lumo-space-m);
|
|
1219
|
+
right: var(--lumo-space-m);
|
|
1220
|
+
bottom: var(--lumo-space-m);
|
|
1221
|
+
left: var(--lumo-space-m);
|
|
1222
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
1223
|
+
/* stylelint-disable-next-line */
|
|
1224
|
+
outline: 0px solid transparent;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
[part='overlay'] {
|
|
1228
|
+
background-color: var(--lumo-base-color);
|
|
1229
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1230
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1231
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
1232
|
+
color: var(--lumo-body-text-color);
|
|
1233
|
+
font-family: var(--lumo-font-family);
|
|
1234
|
+
font-size: var(--lumo-font-size-m);
|
|
1235
|
+
font-weight: 400;
|
|
1236
|
+
line-height: var(--lumo-line-height-m);
|
|
1237
|
+
letter-spacing: 0;
|
|
1238
|
+
text-transform: none;
|
|
1239
|
+
-webkit-text-size-adjust: 100%;
|
|
1240
|
+
-webkit-font-smoothing: antialiased;
|
|
1241
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
[part='content'] {
|
|
1245
|
+
padding: var(--lumo-space-xs);
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[part='backdrop'] {
|
|
1249
|
+
background-color: var(--lumo-shade-20pct);
|
|
1250
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
1251
|
+
will-change: opacity;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
1255
|
+
0% {
|
|
1256
|
+
opacity: 0;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
:host([closing]) [part='backdrop'] {
|
|
1261
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
1265
|
+
100% {
|
|
1266
|
+
opacity: 0;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
1271
|
+
0% {
|
|
1272
|
+
opacity: 1;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
100% {
|
|
1276
|
+
opacity: 1;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
`;K("",bu,{moduleId:"lumo-overlay"});/**
|
|
1280
|
+
* @license
|
|
1281
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1282
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1283
|
+
*/const vu=z`
|
|
1284
|
+
:host([opening]),
|
|
1285
|
+
:host([closing]) {
|
|
1286
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
[part='overlay'] {
|
|
1290
|
+
will-change: opacity, transform;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
:host([opening]) [part='overlay'] {
|
|
1294
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
@keyframes lumo-menu-overlay-enter {
|
|
1298
|
+
0% {
|
|
1299
|
+
opacity: 0;
|
|
1300
|
+
transform: translateY(-4px);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
:host([closing]) [part='overlay'] {
|
|
1305
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
@keyframes lumo-menu-overlay-exit {
|
|
1309
|
+
100% {
|
|
1310
|
+
opacity: 0;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
`;K("",vu,{moduleId:"lumo-menu-overlay-core"});const mm=z`
|
|
1314
|
+
/* Small viewport (bottom sheet) styles */
|
|
1315
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1316
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
1317
|
+
:host {
|
|
1318
|
+
top: 0 !important;
|
|
1319
|
+
right: 0 !important;
|
|
1320
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
1321
|
+
left: 0 !important;
|
|
1322
|
+
align-items: stretch !important;
|
|
1323
|
+
justify-content: flex-end !important;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
[part='overlay'] {
|
|
1327
|
+
max-height: 50vh;
|
|
1328
|
+
width: 100vw;
|
|
1329
|
+
border-radius: 0;
|
|
1330
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
1334
|
+
[part='content'] {
|
|
1335
|
+
padding: 30px var(--lumo-space-m);
|
|
1336
|
+
max-height: inherit;
|
|
1337
|
+
box-sizing: border-box;
|
|
1338
|
+
-webkit-overflow-scrolling: touch;
|
|
1339
|
+
overflow: auto;
|
|
1340
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1341
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
[part='backdrop'] {
|
|
1345
|
+
display: block;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/* Animations */
|
|
1349
|
+
|
|
1350
|
+
:host([opening]) [part='overlay'] {
|
|
1351
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
:host([closing]),
|
|
1355
|
+
:host([closing]) [part='backdrop'] {
|
|
1356
|
+
animation-delay: 0.14s;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
:host([closing]) [part='overlay'] {
|
|
1360
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
1365
|
+
0% {
|
|
1366
|
+
transform: translateY(150%);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
1371
|
+
100% {
|
|
1372
|
+
transform: translateY(150%);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
`,xu=[bu,vu,mm];K("",xu,{moduleId:"lumo-menu-overlay"});const _m=z`
|
|
1376
|
+
[part='overlay'] {
|
|
1377
|
+
/*
|
|
1378
|
+
Width:
|
|
1379
|
+
date cell widths
|
|
1380
|
+
+ month calendar side padding
|
|
1381
|
+
+ year scroller width
|
|
1382
|
+
*/
|
|
1383
|
+
/* prettier-ignore */
|
|
1384
|
+
width:
|
|
1385
|
+
calc(
|
|
1386
|
+
var(--lumo-size-m) * 7
|
|
1387
|
+
+ var(--lumo-space-xs) * 2
|
|
1388
|
+
+ 57px
|
|
1389
|
+
);
|
|
1390
|
+
height: 100%;
|
|
1391
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
1392
|
+
overflow: hidden;
|
|
1393
|
+
-webkit-tap-highlight-color: transparent;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
[part='overlay'] {
|
|
1397
|
+
flex-direction: column;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
[part='content'] {
|
|
1401
|
+
padding: 0;
|
|
1402
|
+
height: 100%;
|
|
1403
|
+
overflow: hidden;
|
|
1404
|
+
-webkit-mask-image: none;
|
|
1405
|
+
mask-image: none;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
1409
|
+
margin-top: var(--lumo-space-xs);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
1413
|
+
margin-bottom: var(--lumo-space-xs);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
1417
|
+
[part='overlay'] {
|
|
1418
|
+
width: 100vw;
|
|
1419
|
+
height: 70vh;
|
|
1420
|
+
max-height: 70vh;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
`;K("vaadin-date-picker-overlay",[xu,_m],{moduleId:"lumo-date-picker-overlay"});const gm=z`
|
|
1424
|
+
:host {
|
|
1425
|
+
/* Sizing */
|
|
1426
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
1427
|
+
min-width: calc(var(--lumo-button-size) * 2);
|
|
1428
|
+
height: var(--lumo-button-size);
|
|
1429
|
+
padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
|
|
1430
|
+
margin: var(--lumo-space-xs) 0;
|
|
1431
|
+
box-sizing: border-box;
|
|
1432
|
+
/* Style */
|
|
1433
|
+
font-family: var(--lumo-font-family);
|
|
1434
|
+
font-size: var(--lumo-font-size-m);
|
|
1435
|
+
font-weight: 500;
|
|
1436
|
+
color: var(--_lumo-button-color, var(--lumo-primary-text-color));
|
|
1437
|
+
background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
|
|
1438
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1439
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1440
|
+
-webkit-tap-highlight-color: transparent;
|
|
1441
|
+
-webkit-font-smoothing: antialiased;
|
|
1442
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1443
|
+
flex-shrink: 0;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
1447
|
+
[part='label'],
|
|
1448
|
+
[part='prefix'],
|
|
1449
|
+
[part='suffix'] {
|
|
1450
|
+
line-height: var(--lumo-line-height-xs);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
[part='label'] {
|
|
1454
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
:host([theme~='small']) {
|
|
1458
|
+
font-size: var(--lumo-font-size-s);
|
|
1459
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
:host([theme~='large']) {
|
|
1463
|
+
font-size: var(--lumo-font-size-l);
|
|
1464
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/* For interaction states */
|
|
1468
|
+
:host::before,
|
|
1469
|
+
:host::after {
|
|
1470
|
+
content: '';
|
|
1471
|
+
/* We rely on the host always being relative */
|
|
1472
|
+
position: absolute;
|
|
1473
|
+
z-index: 1;
|
|
1474
|
+
inset: 0;
|
|
1475
|
+
background-color: currentColor;
|
|
1476
|
+
border-radius: inherit;
|
|
1477
|
+
opacity: 0;
|
|
1478
|
+
pointer-events: none;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
/* Hover */
|
|
1482
|
+
|
|
1483
|
+
@media (any-hover: hover) {
|
|
1484
|
+
:host(:hover)::before {
|
|
1485
|
+
opacity: 0.02;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/* Active */
|
|
1490
|
+
|
|
1491
|
+
:host::after {
|
|
1492
|
+
transition: opacity 1.4s, transform 0.1s;
|
|
1493
|
+
filter: blur(8px);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
:host([active])::before {
|
|
1497
|
+
opacity: 0.05;
|
|
1498
|
+
transition-duration: 0s;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
:host([active])::after {
|
|
1502
|
+
opacity: 0.1;
|
|
1503
|
+
transition-duration: 0s, 0s;
|
|
1504
|
+
transform: scale(0);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/* Keyboard focus */
|
|
1508
|
+
|
|
1509
|
+
:host([focus-ring]) {
|
|
1510
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
:host([theme~='primary'][focus-ring]) {
|
|
1514
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
1518
|
+
|
|
1519
|
+
:host([theme~='tertiary']),
|
|
1520
|
+
:host([theme~='tertiary-inline']) {
|
|
1521
|
+
background-color: transparent !important;
|
|
1522
|
+
min-width: 0;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
:host([theme~='tertiary']) {
|
|
1526
|
+
padding: 0 calc(var(--lumo-button-size) / 6);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
:host([theme~='tertiary-inline'])::before {
|
|
1530
|
+
display: none;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
:host([theme~='tertiary-inline']) {
|
|
1534
|
+
margin: 0;
|
|
1535
|
+
height: auto;
|
|
1536
|
+
padding: 0;
|
|
1537
|
+
line-height: inherit;
|
|
1538
|
+
font-size: inherit;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
1542
|
+
padding: 0;
|
|
1543
|
+
overflow: visible;
|
|
1544
|
+
line-height: inherit;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
:host([theme~='primary']) {
|
|
1548
|
+
background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
|
|
1549
|
+
color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
|
|
1550
|
+
font-weight: 600;
|
|
1551
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
:host([theme~='primary'])::before {
|
|
1555
|
+
background-color: black;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
@media (any-hover: hover) {
|
|
1559
|
+
:host([theme~='primary']:hover)::before {
|
|
1560
|
+
opacity: 0.05;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
:host([theme~='primary'][active])::before {
|
|
1565
|
+
opacity: 0.1;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
:host([theme~='primary'][active])::after {
|
|
1569
|
+
opacity: 0.2;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/* Colors (success, error, contrast) */
|
|
1573
|
+
|
|
1574
|
+
:host([theme~='success']) {
|
|
1575
|
+
color: var(--lumo-success-text-color);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
:host([theme~='success'][theme~='primary']) {
|
|
1579
|
+
background-color: var(--lumo-success-color);
|
|
1580
|
+
color: var(--lumo-success-contrast-color);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
:host([theme~='error']) {
|
|
1584
|
+
color: var(--lumo-error-text-color);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
:host([theme~='error'][theme~='primary']) {
|
|
1588
|
+
background-color: var(--lumo-error-color);
|
|
1589
|
+
color: var(--lumo-error-contrast-color);
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
:host([theme~='contrast']) {
|
|
1593
|
+
color: var(--lumo-contrast);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
1597
|
+
background-color: var(--lumo-contrast);
|
|
1598
|
+
color: var(--lumo-base-color);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
1602
|
+
|
|
1603
|
+
:host([disabled]) {
|
|
1604
|
+
pointer-events: none;
|
|
1605
|
+
color: var(--lumo-disabled-text-color);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
:host([theme~='primary'][disabled]) {
|
|
1609
|
+
background-color: var(--lumo-contrast-30pct);
|
|
1610
|
+
color: var(--lumo-base-color);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
1614
|
+
opacity: 0.7;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/* Icons */
|
|
1618
|
+
|
|
1619
|
+
[part] ::slotted(vaadin-icon) {
|
|
1620
|
+
display: inline-block;
|
|
1621
|
+
width: var(--lumo-icon-size-m);
|
|
1622
|
+
height: var(--lumo-icon-size-m);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
1626
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
1627
|
+
padding: 0.25em;
|
|
1628
|
+
box-sizing: border-box !important;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
[part='prefix'] {
|
|
1632
|
+
margin-left: -0.25em;
|
|
1633
|
+
margin-right: 0.25em;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
[part='suffix'] {
|
|
1637
|
+
margin-left: 0.25em;
|
|
1638
|
+
margin-right: -0.25em;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/* Icon-only */
|
|
1642
|
+
|
|
1643
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
1644
|
+
min-width: var(--lumo-button-size);
|
|
1645
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
1646
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
:host([theme~='icon']) [part='prefix'],
|
|
1650
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
1651
|
+
margin-left: 0;
|
|
1652
|
+
margin-right: 0;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
/* RTL specific styles */
|
|
1656
|
+
|
|
1657
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
1658
|
+
margin-left: 0.25em;
|
|
1659
|
+
margin-right: -0.25em;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
1663
|
+
margin-left: -0.25em;
|
|
1664
|
+
margin-right: 0.25em;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
1668
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
1669
|
+
margin-left: 0;
|
|
1670
|
+
margin-right: 0;
|
|
1671
|
+
}
|
|
1672
|
+
`;K("vaadin-button",gm,{moduleId:"lumo-button"});/**
|
|
1673
|
+
* @license
|
|
1674
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1675
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1676
|
+
*/const Wt=ee(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}),ym=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Yi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function bm(){function i(){return!0}return Eu(i)}function vm(){try{return xm()?!0:Em()?Yi?!wm():!bm():!1}catch(i){return!1}}function xm(){return localStorage.getItem("vaadin.developmentmode.force")}function Em(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function wm(){return!!(Yi&&Object.keys(Yi).map(e=>Yi[e]).filter(e=>e.productionMode).length>0)}function Eu(i,e){if(typeof i!="function")return;const t=ym.exec(i.toString());if(t)try{i=new Function(t[1])}catch(n){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",n)}return i(e)}window.Vaadin=window.Vaadin||{};const ea=function(i,e){if(window.Vaadin.developmentMode)return Eu(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=vm());function Am(){/*! vaadin-dev-mode:start
|
|
1677
|
+
(function () {
|
|
1678
|
+
'use strict';
|
|
1679
|
+
|
|
1680
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
1681
|
+
return typeof obj;
|
|
1682
|
+
} : function (obj) {
|
|
1683
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
var classCallCheck = function (instance, Constructor) {
|
|
1687
|
+
if (!(instance instanceof Constructor)) {
|
|
1688
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
var createClass = function () {
|
|
1693
|
+
function defineProperties(target, props) {
|
|
1694
|
+
for (var i = 0; i < props.length; i++) {
|
|
1695
|
+
var descriptor = props[i];
|
|
1696
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
1697
|
+
descriptor.configurable = true;
|
|
1698
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
1699
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
return function (Constructor, protoProps, staticProps) {
|
|
1704
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
1705
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
1706
|
+
return Constructor;
|
|
1707
|
+
};
|
|
1708
|
+
}();
|
|
1709
|
+
|
|
1710
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
1711
|
+
return window.Polymer && window.Polymer.version;
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1714
|
+
var StatisticsGatherer = function () {
|
|
1715
|
+
function StatisticsGatherer(logger) {
|
|
1716
|
+
classCallCheck(this, StatisticsGatherer);
|
|
1717
|
+
|
|
1718
|
+
this.now = new Date().getTime();
|
|
1719
|
+
this.logger = logger;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
createClass(StatisticsGatherer, [{
|
|
1723
|
+
key: 'frameworkVersionDetectors',
|
|
1724
|
+
value: function frameworkVersionDetectors() {
|
|
1725
|
+
return {
|
|
1726
|
+
'Flow': function Flow() {
|
|
1727
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
1728
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
1729
|
+
return window.Vaadin.Flow.clients[key];
|
|
1730
|
+
}).filter(function (client) {
|
|
1731
|
+
return client.getVersionInfo;
|
|
1732
|
+
}).map(function (client) {
|
|
1733
|
+
return client.getVersionInfo().flow;
|
|
1734
|
+
});
|
|
1735
|
+
if (flowVersions.length > 0) {
|
|
1736
|
+
return flowVersions[0];
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
1741
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
1742
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
1743
|
+
return client.getVersionInfo;
|
|
1744
|
+
}).map(function (client) {
|
|
1745
|
+
return client.getVersionInfo().vaadinVersion;
|
|
1746
|
+
});
|
|
1747
|
+
if (frameworkVersions.length > 0) {
|
|
1748
|
+
return frameworkVersions[0];
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
'AngularJs': function AngularJs() {
|
|
1753
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
1754
|
+
return window.angular.version.full;
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
'Angular': function Angular() {
|
|
1758
|
+
if (window.ng) {
|
|
1759
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
1760
|
+
if (tags.length > 0) {
|
|
1761
|
+
return tags[0].getAttribute("ng-version");
|
|
1762
|
+
}
|
|
1763
|
+
return "Unknown";
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
'Backbone.js': function BackboneJs() {
|
|
1767
|
+
if (window.Backbone) {
|
|
1768
|
+
return window.Backbone.VERSION;
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
'React': function React() {
|
|
1772
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
1773
|
+
if (!!document.querySelector(reactSelector)) {
|
|
1774
|
+
// React does not publish the version by default
|
|
1775
|
+
return "unknown";
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
'Ember': function Ember() {
|
|
1779
|
+
if (window.Em && window.Em.VERSION) {
|
|
1780
|
+
return window.Em.VERSION;
|
|
1781
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
1782
|
+
return window.Ember.VERSION;
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
'jQuery': function (_jQuery) {
|
|
1786
|
+
function jQuery() {
|
|
1787
|
+
return _jQuery.apply(this, arguments);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
jQuery.toString = function () {
|
|
1791
|
+
return _jQuery.toString();
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
return jQuery;
|
|
1795
|
+
}(function () {
|
|
1796
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
1797
|
+
return jQuery.prototype.jquery;
|
|
1798
|
+
}
|
|
1799
|
+
}),
|
|
1800
|
+
'Polymer': function Polymer() {
|
|
1801
|
+
var version = getPolymerVersion();
|
|
1802
|
+
if (version) {
|
|
1803
|
+
return version;
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
'LitElement': function LitElement() {
|
|
1807
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
1808
|
+
if (version) {
|
|
1809
|
+
return version;
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
'LitHtml': function LitHtml() {
|
|
1813
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
1814
|
+
if (version) {
|
|
1815
|
+
return version;
|
|
1816
|
+
}
|
|
1817
|
+
},
|
|
1818
|
+
'Vue.js': function VueJs() {
|
|
1819
|
+
if (window.Vue) {
|
|
1820
|
+
return window.Vue.version;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
}, {
|
|
1826
|
+
key: 'getUsedVaadinElements',
|
|
1827
|
+
value: function getUsedVaadinElements(elements) {
|
|
1828
|
+
var version = getPolymerVersion();
|
|
1829
|
+
var elementClasses = void 0;
|
|
1830
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
1831
|
+
// Check all locations calling the method getEntries() in
|
|
1832
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
1833
|
+
// Currently it is only used by BootstrapHandler.
|
|
1834
|
+
if (version && version.indexOf('2') === 0) {
|
|
1835
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
1836
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
1837
|
+
return window.Vaadin[c];
|
|
1838
|
+
}).filter(function (c) {
|
|
1839
|
+
return c.is;
|
|
1840
|
+
});
|
|
1841
|
+
} else {
|
|
1842
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
1843
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
1844
|
+
}
|
|
1845
|
+
elementClasses.forEach(function (klass) {
|
|
1846
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
1847
|
+
elements[klass.is] = { version: version };
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
}, {
|
|
1851
|
+
key: 'getUsedVaadinThemes',
|
|
1852
|
+
value: function getUsedVaadinThemes(themes) {
|
|
1853
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
1854
|
+
var theme;
|
|
1855
|
+
var version = getPolymerVersion();
|
|
1856
|
+
if (version && version.indexOf('2') === 0) {
|
|
1857
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
1858
|
+
theme = window.Vaadin[themeName];
|
|
1859
|
+
} else {
|
|
1860
|
+
// Polymer 3: themes are stored in custom element registry
|
|
1861
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
1862
|
+
}
|
|
1863
|
+
if (theme && theme.version) {
|
|
1864
|
+
themes[themeName] = { version: theme.version };
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
}, {
|
|
1869
|
+
key: 'getFrameworks',
|
|
1870
|
+
value: function getFrameworks(frameworks) {
|
|
1871
|
+
var detectors = this.frameworkVersionDetectors();
|
|
1872
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
1873
|
+
var detector = detectors[framework];
|
|
1874
|
+
try {
|
|
1875
|
+
var version = detector();
|
|
1876
|
+
if (version) {
|
|
1877
|
+
frameworks[framework] = { version: version };
|
|
1878
|
+
}
|
|
1879
|
+
} catch (e) {}
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
}, {
|
|
1883
|
+
key: 'gather',
|
|
1884
|
+
value: function gather(storage) {
|
|
1885
|
+
var storedStats = storage.read();
|
|
1886
|
+
var gatheredStats = {};
|
|
1887
|
+
var types = ["elements", "frameworks", "themes"];
|
|
1888
|
+
|
|
1889
|
+
types.forEach(function (type) {
|
|
1890
|
+
gatheredStats[type] = {};
|
|
1891
|
+
if (!storedStats[type]) {
|
|
1892
|
+
storedStats[type] = {};
|
|
1893
|
+
}
|
|
1894
|
+
});
|
|
1895
|
+
|
|
1896
|
+
var previousStats = JSON.stringify(storedStats);
|
|
1897
|
+
|
|
1898
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
1899
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
1900
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
1901
|
+
|
|
1902
|
+
var now = this.now;
|
|
1903
|
+
types.forEach(function (type) {
|
|
1904
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
1905
|
+
keys.forEach(function (key) {
|
|
1906
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
1907
|
+
storedStats[type][key] = { firstUsed: now };
|
|
1908
|
+
}
|
|
1909
|
+
// Discards any previously logged version number
|
|
1910
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
1911
|
+
storedStats[type][key].lastUsed = now;
|
|
1912
|
+
});
|
|
1913
|
+
});
|
|
1914
|
+
|
|
1915
|
+
var newStats = JSON.stringify(storedStats);
|
|
1916
|
+
storage.write(newStats);
|
|
1917
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
1918
|
+
this.logger.debug("New stats: " + newStats);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
}]);
|
|
1922
|
+
return StatisticsGatherer;
|
|
1923
|
+
}();
|
|
1924
|
+
|
|
1925
|
+
var StatisticsStorage = function () {
|
|
1926
|
+
function StatisticsStorage(key) {
|
|
1927
|
+
classCallCheck(this, StatisticsStorage);
|
|
1928
|
+
|
|
1929
|
+
this.key = key;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
createClass(StatisticsStorage, [{
|
|
1933
|
+
key: 'read',
|
|
1934
|
+
value: function read() {
|
|
1935
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
1936
|
+
try {
|
|
1937
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
1938
|
+
} catch (e) {
|
|
1939
|
+
return {};
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
}, {
|
|
1943
|
+
key: 'write',
|
|
1944
|
+
value: function write(data) {
|
|
1945
|
+
localStorage.setItem(this.key, data);
|
|
1946
|
+
}
|
|
1947
|
+
}, {
|
|
1948
|
+
key: 'clear',
|
|
1949
|
+
value: function clear() {
|
|
1950
|
+
localStorage.removeItem(this.key);
|
|
1951
|
+
}
|
|
1952
|
+
}, {
|
|
1953
|
+
key: 'isEmpty',
|
|
1954
|
+
value: function isEmpty() {
|
|
1955
|
+
var storedStats = this.read();
|
|
1956
|
+
var empty = true;
|
|
1957
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
1958
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
1959
|
+
empty = false;
|
|
1960
|
+
}
|
|
1961
|
+
});
|
|
1962
|
+
|
|
1963
|
+
return empty;
|
|
1964
|
+
}
|
|
1965
|
+
}]);
|
|
1966
|
+
return StatisticsStorage;
|
|
1967
|
+
}();
|
|
1968
|
+
|
|
1969
|
+
var StatisticsSender = function () {
|
|
1970
|
+
function StatisticsSender(url, logger) {
|
|
1971
|
+
classCallCheck(this, StatisticsSender);
|
|
1972
|
+
|
|
1973
|
+
this.url = url;
|
|
1974
|
+
this.logger = logger;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
createClass(StatisticsSender, [{
|
|
1978
|
+
key: 'send',
|
|
1979
|
+
value: function send(data, errorHandler) {
|
|
1980
|
+
var logger = this.logger;
|
|
1981
|
+
|
|
1982
|
+
if (navigator.onLine === false) {
|
|
1983
|
+
logger.debug("Offline, can't send");
|
|
1984
|
+
errorHandler();
|
|
1985
|
+
return;
|
|
1986
|
+
}
|
|
1987
|
+
logger.debug("Sending data to " + this.url);
|
|
1988
|
+
|
|
1989
|
+
var req = new XMLHttpRequest();
|
|
1990
|
+
req.withCredentials = true;
|
|
1991
|
+
req.addEventListener("load", function () {
|
|
1992
|
+
// Stats sent, nothing more to do
|
|
1993
|
+
logger.debug("Response: " + req.responseText);
|
|
1994
|
+
});
|
|
1995
|
+
req.addEventListener("error", function () {
|
|
1996
|
+
logger.debug("Send failed");
|
|
1997
|
+
errorHandler();
|
|
1998
|
+
});
|
|
1999
|
+
req.addEventListener("abort", function () {
|
|
2000
|
+
logger.debug("Send aborted");
|
|
2001
|
+
errorHandler();
|
|
2002
|
+
});
|
|
2003
|
+
req.open("POST", this.url);
|
|
2004
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2005
|
+
req.send(data);
|
|
2006
|
+
}
|
|
2007
|
+
}]);
|
|
2008
|
+
return StatisticsSender;
|
|
2009
|
+
}();
|
|
2010
|
+
|
|
2011
|
+
var StatisticsLogger = function () {
|
|
2012
|
+
function StatisticsLogger(id) {
|
|
2013
|
+
classCallCheck(this, StatisticsLogger);
|
|
2014
|
+
|
|
2015
|
+
this.id = id;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
createClass(StatisticsLogger, [{
|
|
2019
|
+
key: '_isDebug',
|
|
2020
|
+
value: function _isDebug() {
|
|
2021
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2022
|
+
}
|
|
2023
|
+
}, {
|
|
2024
|
+
key: 'debug',
|
|
2025
|
+
value: function debug(msg) {
|
|
2026
|
+
if (this._isDebug()) {
|
|
2027
|
+
console.info(this.id + ": " + msg);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}]);
|
|
2031
|
+
return StatisticsLogger;
|
|
2032
|
+
}();
|
|
2033
|
+
|
|
2034
|
+
var UsageStatistics = function () {
|
|
2035
|
+
function UsageStatistics() {
|
|
2036
|
+
classCallCheck(this, UsageStatistics);
|
|
2037
|
+
|
|
2038
|
+
this.now = new Date();
|
|
2039
|
+
this.timeNow = this.now.getTime();
|
|
2040
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2041
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2042
|
+
|
|
2043
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2044
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2045
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2046
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
createClass(UsageStatistics, [{
|
|
2050
|
+
key: 'maybeGatherAndSend',
|
|
2051
|
+
value: function maybeGatherAndSend() {
|
|
2052
|
+
var _this = this;
|
|
2053
|
+
|
|
2054
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2055
|
+
return;
|
|
2056
|
+
}
|
|
2057
|
+
this.gatherer.gather(this.storage);
|
|
2058
|
+
setTimeout(function () {
|
|
2059
|
+
_this.maybeSend();
|
|
2060
|
+
}, this.gatherDelay * 1000);
|
|
2061
|
+
}
|
|
2062
|
+
}, {
|
|
2063
|
+
key: 'lottery',
|
|
2064
|
+
value: function lottery() {
|
|
2065
|
+
return true;
|
|
2066
|
+
}
|
|
2067
|
+
}, {
|
|
2068
|
+
key: 'currentMonth',
|
|
2069
|
+
value: function currentMonth() {
|
|
2070
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2071
|
+
}
|
|
2072
|
+
}, {
|
|
2073
|
+
key: 'maybeSend',
|
|
2074
|
+
value: function maybeSend() {
|
|
2075
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2076
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2077
|
+
|
|
2078
|
+
if (!firstUse) {
|
|
2079
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2080
|
+
firstUse = this.timeNow;
|
|
2081
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2085
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2086
|
+
return;
|
|
2087
|
+
}
|
|
2088
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2089
|
+
this.logger.debug("This month has already been processed");
|
|
2090
|
+
return;
|
|
2091
|
+
}
|
|
2092
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2093
|
+
// Use random sampling
|
|
2094
|
+
if (this.lottery()) {
|
|
2095
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2096
|
+
} else {
|
|
2097
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2098
|
+
return;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
this.send();
|
|
2102
|
+
}
|
|
2103
|
+
}, {
|
|
2104
|
+
key: 'send',
|
|
2105
|
+
value: function send() {
|
|
2106
|
+
// Ensure we have the latest data
|
|
2107
|
+
this.gatherer.gather(this.storage);
|
|
2108
|
+
|
|
2109
|
+
// Read, send and clean up
|
|
2110
|
+
var data = this.storage.read();
|
|
2111
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2112
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2113
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2114
|
+
var self = this;
|
|
2115
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2116
|
+
// Revert the 'month processed' flag
|
|
2117
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
}], [{
|
|
2121
|
+
key: 'version',
|
|
2122
|
+
get: function get$1() {
|
|
2123
|
+
return '2.1.2';
|
|
2124
|
+
}
|
|
2125
|
+
}, {
|
|
2126
|
+
key: 'firstUseKey',
|
|
2127
|
+
get: function get$1() {
|
|
2128
|
+
return 'vaadin.statistics.firstuse';
|
|
2129
|
+
}
|
|
2130
|
+
}, {
|
|
2131
|
+
key: 'monthProcessedKey',
|
|
2132
|
+
get: function get$1() {
|
|
2133
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2134
|
+
}
|
|
2135
|
+
}, {
|
|
2136
|
+
key: 'optOutKey',
|
|
2137
|
+
get: function get$1() {
|
|
2138
|
+
return 'vaadin.statistics.optout';
|
|
2139
|
+
}
|
|
2140
|
+
}]);
|
|
2141
|
+
return UsageStatistics;
|
|
2142
|
+
}();
|
|
2143
|
+
|
|
2144
|
+
try {
|
|
2145
|
+
window.Vaadin = window.Vaadin || {};
|
|
2146
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2147
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2148
|
+
} catch (e) {
|
|
2149
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
}());
|
|
2153
|
+
|
|
2154
|
+
vaadin-dev-mode:end **/}const Sm=function(){if(typeof ea=="function")return ea(Am)};/**
|
|
2155
|
+
* @license
|
|
2156
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2157
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2158
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2159
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2160
|
+
* Code distributed by Google as part of the polymer project is also
|
|
2161
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2162
|
+
*/let ta=0,wu=0;const At=[];let Xr=!1;function Cm(){Xr=!1;const i=At.length;for(let e=0;e<i;e++){const t=At[e];if(t)try{t()}catch(n){setTimeout(()=>{throw n})}}At.splice(0,i),wu+=i}const un={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},$m={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Pm={run(i){Xr||(Xr=!0,queueMicrotask(()=>Cm())),At.push(i);const e=ta;return ta+=1,e},cancel(i){const e=i-wu;if(e>=0){if(!At[e])throw new Error(`invalid async handle: ${i}`);At[e]=null}}};/**
|
|
2163
|
+
@license
|
|
2164
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2165
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2166
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2167
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2168
|
+
Code distributed by Google as part of the polymer project is also
|
|
2169
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2170
|
+
*/const Kr=new Set;let yi=class Jr{static debounce(e,t,n){return e instanceof Jr?e._cancelAsync():e=new Jr,e.setConfig(t,n),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,Kr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Kr.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 Tm(i){Kr.add(i)}/**
|
|
2171
|
+
* @license
|
|
2172
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2173
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2174
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Sm()};let Kn;const ia=new Set,Au=i=>class extends Sn(i){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:t}=this;t&&!ia.has(t)&&(window.Vaadin.registrations.push(this),ia.add(t),window.Vaadin.developmentModeCallback&&(Kn=yi.debounce(Kn,$m,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Tm(Kn)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2175
|
+
* @license
|
|
2176
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2177
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2178
|
+
*/function Dm(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Ts(i){return i?new Set(i.split(" ")):new Set}function Cn(i){return i?[...i].join(" "):""}function Su(i,e,t){const n=Ts(i.getAttribute(e));n.add(t),i.setAttribute(e,Cn(n))}function km(i,e,t){const n=Ts(i.getAttribute(e));if(n.delete(t),n.size===0){i.removeAttribute(e);return}i.setAttribute(e,Cn(n))}function Mm(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
|
|
2179
|
+
* @license
|
|
2180
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
2181
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2182
|
+
*/class Om{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 n=[],r=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,o)=>{const a=e.indexOf(s);a===-1?n.push(s):a!==o&&r.push(s)}),(t.length||n.length||r.length)&&this.callback({addedNodes:t,movedNodes:r,removedNodes:n}),this._storedNodes=e}}/**
|
|
2183
|
+
* @license
|
|
2184
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2185
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2186
|
+
*/let Nm=0;function Cu(){return Nm++}/**
|
|
2187
|
+
* @license
|
|
2188
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2189
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2190
|
+
*/class Ze extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-${Cu()}`}constructor(e,t,n,r={}){super();const{initializer:s,multiple:o,observe:a,useUniqueId:l}=r;this.host=e,this.slotName=t,this.tagName=n,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof o=="boolean"?o:!1,this.slotInitializer=s,o&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,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:n}=this;let r=this.defaultNode;return!r&&n&&(r=document.createElement(n),r instanceof Element&&(t!==""&&r.setAttribute("slot",t),this.node=r,this.defaultNode=r)),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}]`,n=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Om(n,({addedNodes:r,removedNodes:s})=>{const o=this.multiple?this.nodes:[this.node],a=r.filter(l=>!Mm(l)&&!o.includes(l));s.length&&(this.nodes=o.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...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)))})}}/**
|
|
2191
|
+
* @license
|
|
2192
|
+
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2193
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2194
|
+
*/class $u extends Ze{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}}))}}/**
|
|
2195
|
+
* @license
|
|
2196
|
+
* Copyright 2019 Google LLC
|
|
2197
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2198
|
+
*/const Wi=window,Ds=Wi.ShadowRoot&&(Wi.ShadyCSS===void 0||Wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),na=new WeakMap;let Pu=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ds&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=na.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&na.set(t,e))}return e}toString(){return this.cssText}};const Im=i=>new Pu(typeof i=="string"?i:i+"",void 0,ks),Ti=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new Pu(t,i,ks)},Hm=(i,e)=>{Ds?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=Wi.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},ra=Ds?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return Im(t)})(i):i;/**
|
|
2199
|
+
* @license
|
|
2200
|
+
* Copyright 2017 Google LLC
|
|
2201
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2202
|
+
*/var Jn;const cn=window,sa=cn.trustedTypes,Lm=sa?sa.emptyScript:"",oa=cn.reactiveElementPolyfillSupport,Zr={toAttribute(i,e){switch(e){case Boolean:i=i?Lm:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(n){t=null}}return t}},Tu=(i,e)=>e!==i&&(e==e||i==i),Zn={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Tu},Qr="finalized";let yt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=Zn){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const s=this[e];this[t]=r,this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Zn}static finalize(){if(this.hasOwnProperty(Qr))return!1;this[Qr]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(ra(r))}else e!==void 0&&t.push(ra(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Hm(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Zn){var r;const s=this.constructor._$Ep(e,n);if(s!==void 0&&n.reflect===!0){const o=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:Zr).toAttribute(t,n.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,s=r._$Ev.get(e);if(s!==void 0&&this._$El!==s){const o=r.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?o.converter:Zr;this._$El=s,this[s]=a.fromAttribute(t,o.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Tu)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){return He(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}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;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};yt[Qr]=!0,yt.elementProperties=new Map,yt.elementStyles=[],yt.shadowRootOptions={mode:"open"},oa==null||oa({ReactiveElement:yt}),((Jn=cn.reactiveElementVersions)!==null&&Jn!==void 0?Jn:cn.reactiveElementVersions=[]).push("1.6.3");/**
|
|
2203
|
+
* @license
|
|
2204
|
+
* Copyright 2017 Google LLC
|
|
2205
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2206
|
+
*/var Qn;const hn=window,Ot=hn.trustedTypes,aa=Ot?Ot.createPolicy("lit-html",{createHTML:i=>i}):void 0,es="$lit$",Be=`lit$${(Math.random()+"").slice(9)}$`,Du="?"+Be,Bm=`<${Du}>`,st=document,bi=()=>st.createComment(""),vi=i=>i===null||typeof i!="object"&&typeof i!="function",ku=Array.isArray,Rm=i=>ku(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",er=`[
|
|
2207
|
+
\f\r]`,Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,la=/-->/g,ua=/>/g,qe=RegExp(`>|${er}(?:([^\\s"'>=/]+)(${er}*=${er}*(?:[^
|
|
2208
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ca=/'/g,ha=/"/g,Mu=/^(?:script|style|textarea|title)$/i,Nt=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),da=new WeakMap,Qe=st.createTreeWalker(st,129,null,!1);function Ou(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return aa!==void 0?aa.createHTML(e):e}const zm=(i,e)=>{const t=i.length-1,n=[];let r,s=e===2?"<svg>":"",o=Jt;for(let a=0;a<t;a++){const l=i[a];let u,c,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,c=o.exec(l),c!==null);)d=o.lastIndex,o===Jt?c[1]==="!--"?o=la:c[1]!==void 0?o=ua:c[2]!==void 0?(Mu.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=qe):c[3]!==void 0&&(o=qe):o===qe?c[0]===">"?(o=r!=null?r:Jt,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=c[3]===void 0?qe:c[3]==='"'?ha:ca):o===ha||o===ca?o=qe:o===la||o===ua?o=Jt:(o=qe,r=void 0);const f=o===qe&&i[a+1].startsWith("/>")?" ":"";s+=o===Jt?l+Bm:h>=0?(n.push(u),l.slice(0,h)+es+l.slice(h)+Be+f):l+Be+(h===-2?(n.push(void 0),a):f)}return[Ou(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};let ts=class Nu{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[u,c]=zm(e,t);if(this.el=Nu.createElement(u,n),Qe.currentNode=this.el.content,t===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(r=Qe.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const h=[];for(const d of r.getAttributeNames())if(d.endsWith(es)||d.startsWith(Be)){const f=c[o++];if(h.push(d),f!==void 0){const p=r.getAttribute(f.toLowerCase()+es).split(Be),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:p,ctor:g[1]==="."?Um:g[1]==="?"?Vm:g[1]==="@"?Ym:$n})}else l.push({type:6,index:s})}for(const d of h)r.removeAttribute(d)}if(Mu.test(r.tagName)){const h=r.textContent.split(Be),d=h.length-1;if(d>0){r.textContent=Ot?Ot.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],bi()),Qe.nextNode(),l.push({type:2,index:++s});r.append(h[d],bi())}}}else if(r.nodeType===8)if(r.data===Du)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(Be,h+1))!==-1;)l.push({type:7,index:s}),h+=Be.length-1}s++}}static createElement(e,t){const n=st.createElement("template");return n.innerHTML=e,n}};function It(i,e,t=i,n){var r,s,o,a;if(e===Nt)return e;let l=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const u=vi(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(i),l._$AT(i,t,n)),n!==void 0?((o=(a=t)._$Co)!==null&&o!==void 0?o:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=It(i,l._$AS(i,e.values),l,n)),e}let Fm=class{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:n},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:st).importNode(n,!0);Qe.currentNode=s;let o=Qe.nextNode(),a=0,l=0,u=r[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ms(o,o.nextSibling,this,e):u.type===1?c=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(c=new Wm(o,this,e)),this._$AV.push(c),u=r[++l]}a!==(u==null?void 0:u.index)&&(o=Qe.nextNode(),a++)}return Qe.currentNode=st,s}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},Ms=class Iu{constructor(e,t,n,r){var s;this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(s=r==null?void 0:r.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}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=It(this,e,t),vi(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rm(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ie&&vi(this._$AH)?this._$AA.nextSibling.data=e:this.$(st.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ts.createElement(Ou(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(n);else{const o=new Fm(s,this),a=o.u(this.options);o.v(n),this.$(a),this._$AH=o}}_$AC(e){let t=da.get(e.strings);return t===void 0&&da.set(e.strings,t=new ts(e)),t}T(e){ku(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const s of e)r===t.length?t.push(n=new Iu(this.k(bi()),this.k(bi()),this,this.options)):n=t[r],n._$AI(s),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.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._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},$n=class{constructor(e,t,n,r,s){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ie}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const s=this.strings;let o=!1;if(s===void 0)e=It(this,e,t,0),o=!vi(e)||e!==this._$AH&&e!==Nt,o&&(this._$AH=e);else{const a=e;let l,u;for(e=s[0],l=0;l<s.length-1;l++)u=It(this,a[n+l],t,l),u===Nt&&(u=this._$AH[l]),o||(o=!vi(u)||u!==this._$AH[l]),u===ie?e=ie:e!==ie&&(e+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!r&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Um=class extends $n{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}};const jm=Ot?Ot.emptyScript:"";let Vm=class extends $n{constructor(){super(...arguments),this.type=4}j(e){e&&e!==ie?this.element.setAttribute(this.name,jm):this.element.removeAttribute(this.name)}},Ym=class extends $n{constructor(e,t,n,r,s){super(e,t,n,r,s),this.type=5}_$AI(e,t=this){var n;if((e=(n=It(this,e,t,0))!==null&&n!==void 0?n:ie)===Nt)return;const r=this._$AH,s=e===ie&&r!==ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==ie&&(r===ie||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}},Wm=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){It(this,e)}};const fa=hn.litHtmlPolyfillSupport;fa==null||fa(ts,Ms),((Qn=hn.litHtmlVersions)!==null&&Qn!==void 0?Qn:hn.litHtmlVersions=[]).push("2.8.0");const Gm=(i,e,t)=>{var n,r;const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let o=s._$litPart$;if(o===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=o=new Ms(e.insertBefore(bi(),a),a,void 0,t!=null?t:{})}return o._$AI(i),o};/**
|
|
2209
|
+
* @license
|
|
2210
|
+
* Copyright 2017 Google LLC
|
|
2211
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2212
|
+
*/var tr,ir;let Gi=class extends yt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Gm(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Nt}};Gi.finalized=!0,Gi._$litElement$=!0,(tr=globalThis.litElementHydrateSupport)===null||tr===void 0||tr.call(globalThis,{LitElement:Gi});const pa=globalThis.litElementPolyfillSupport;pa==null||pa({LitElement:Gi});((ir=globalThis.litElementVersions)!==null&&ir!==void 0?ir:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
2213
|
+
* @license
|
|
2214
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2215
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2216
|
+
*/const qm=Ti`
|
|
2217
|
+
:host {
|
|
2218
|
+
display: inline-block;
|
|
2219
|
+
position: relative;
|
|
2220
|
+
outline: none;
|
|
2221
|
+
white-space: nowrap;
|
|
2222
|
+
-webkit-user-select: none;
|
|
2223
|
+
-moz-user-select: none;
|
|
2224
|
+
user-select: none;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
:host([hidden]) {
|
|
2228
|
+
display: none !important;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
2232
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2233
|
+
.vaadin-button-container::before {
|
|
2234
|
+
content: '\\2003';
|
|
2235
|
+
display: inline-block;
|
|
2236
|
+
width: 0;
|
|
2237
|
+
max-height: 100%;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.vaadin-button-container {
|
|
2241
|
+
display: inline-flex;
|
|
2242
|
+
align-items: center;
|
|
2243
|
+
justify-content: center;
|
|
2244
|
+
text-align: center;
|
|
2245
|
+
width: 100%;
|
|
2246
|
+
height: 100%;
|
|
2247
|
+
min-height: inherit;
|
|
2248
|
+
text-shadow: inherit;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
[part='prefix'],
|
|
2252
|
+
[part='suffix'] {
|
|
2253
|
+
flex: none;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
[part='label'] {
|
|
2257
|
+
white-space: nowrap;
|
|
2258
|
+
overflow: hidden;
|
|
2259
|
+
text-overflow: ellipsis;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
@media (forced-colors: active) {
|
|
2263
|
+
:host {
|
|
2264
|
+
outline: 1px solid;
|
|
2265
|
+
outline-offset: -1px;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
:host([focused]) {
|
|
2269
|
+
outline-width: 2px;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
:host([disabled]) {
|
|
2273
|
+
outline-color: GrayText;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
`,Xm=i=>i`
|
|
2277
|
+
<div class="vaadin-button-container">
|
|
2278
|
+
<span part="prefix" aria-hidden="true">
|
|
2279
|
+
<slot name="prefix"></slot>
|
|
2280
|
+
</span>
|
|
2281
|
+
<span part="label">
|
|
2282
|
+
<slot></slot>
|
|
2283
|
+
</span>
|
|
2284
|
+
<span part="suffix" aria-hidden="true">
|
|
2285
|
+
<slot name="suffix"></slot>
|
|
2286
|
+
</span>
|
|
2287
|
+
</div>
|
|
2288
|
+
<slot name="tooltip"></slot>
|
|
2289
|
+
`;/**
|
|
2290
|
+
@license
|
|
2291
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2292
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2293
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2294
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2295
|
+
Code distributed by Google as part of the polymer project is also
|
|
2296
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2297
|
+
*/const Km=i=>i,Hu=typeof document.head.style.touchAction=="string",is="__polymerGestures",nr="__polymerGesturesHandled",ns="__polymerGesturesTouchAction",ma=25,_a=5,Jm=2,Zm=["mousedown","mousemove","mouseup","click"],Qm=[0,1,4,2],e_=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Os(i){return Zm.indexOf(i)>-1}let t_=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){t_=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function i_(i){Os(i)}const n_=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),r_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function nt(i){const e=i.type;if(!Os(e))return!1;if(e==="mousemove"){let n=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!e_&&(n=Qm[i.which]||0),!!(n&1)}return(i.button===void 0?0:i.button)===0}function s_(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Ue(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),n=i.pageX,r=i.pageY;return!(n>=t.left&&n<=t.right&&r>=t.top&&r<=t.bottom)}return!1}const De={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function o_(i){let e="auto";const t=Bu(i);for(let n=0,r;n<t.length;n++)if(r=t[n],r[ns]){e=r[ns];break}return e}function Lu(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function St(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Bu=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Ns={},et=[];function a_(i,e){let t=document.elementFromPoint(i,e),n=t;for(;n&&n.shadowRoot&&!window.ShadyDOM;){const r=n;if(n=n.shadowRoot.elementFromPoint(i,e),r===n)break;n&&(t=n)}return t}function Ue(i){const e=Bu(i);return e.length>0?e[0]:i.target}function l_(i){const e=i.type,n=i.currentTarget[is];if(!n)return;const r=n[e];if(!r)return;if(!i[nr]&&(i[nr]={},e.startsWith("touch"))){const o=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(De.touch.id=o.identifier),De.touch.id!==o.identifier)return;Hu||(e==="touchstart"||e==="touchmove")&&u_(i)}const s=i[nr];if(!s.skip){for(let o=0,a;o<et.length;o++)a=et[o],r[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let o=0,a;o<et.length;o++)a=et[o],r[a.name]&&!s[a.name]&&(s[a.name]=!0,a[e](i))}}function u_(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")De.touch.x=e.clientX,De.touch.y=e.clientY,De.touch.scrollDecided=!1;else if(t==="touchmove"){if(De.touch.scrollDecided)return;De.touch.scrollDecided=!0;const n=o_(i);let r=!1;const s=Math.abs(De.touch.x-e.clientX),o=Math.abs(De.touch.y-e.clientY);i.cancelable&&(n==="none"?r=!0:n==="pan-x"?r=o>s:n==="pan-y"&&(r=s>o)),r?i.preventDefault():dn("track")}}function $e(i,e,t){return Ns[e]?(c_(i,e,t),!0):!1}function c_(i,e,t){const n=Ns[e],r=n.deps,s=n.name;let o=i[is];o||(i[is]=o={});for(let a=0,l,u;a<r.length;a++)l=r[a],!(n_&&Os(l)&&l!=="click")&&(u=o[l],u||(o[l]=u={_count:0}),u._count===0&&i.addEventListener(l,l_,i_(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);i.addEventListener(e,t),n.touchAction&&Ru(i,n.touchAction)}function Is(i){et.push(i),i.emits.forEach(e=>{Ns[e]=i})}function h_(i){for(let e=0,t;e<et.length;e++){t=et[e];for(let n=0,r;n<t.emits.length;n++)if(r=t.emits[n],r===i)return t}return null}function Ru(i,e){Hu&&i instanceof HTMLElement&&Pm.run(()=>{i.style.touchAction=e}),i[ns]=e}function Hs(i,e,t){const n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=t,Km(i).dispatchEvent(n),n.defaultPrevented){const r=t.preventer||t.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function dn(i){const e=h_(i);e.info&&(e.info.prevent=!0)}Is({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){St(this.info)},mousedown(i){if(!nt(i))return;const e=Ue(i),t=this,n=s=>{nt(s)||(Zt("up",e,s),St(t.info))},r=s=>{nt(s)&&Zt("up",e,s),St(t.info)};Lu(this.info,n,r),Zt("down",e,i)},touchstart(i){Zt("down",Ue(i),i.changedTouches[0],i)},touchend(i){Zt("up",Ue(i),i.changedTouches[0],i)}});function Zt(i,e,t,n){e&&Hs(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n,prevent(r){return dn(r)}})}Is({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(i){this.moves.length>Jm&&this.moves.shift(),this.moves.push(i)},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,St(this.info)},mousedown(i){if(!nt(i))return;const e=Ue(i),t=this,n=s=>{const o=s.clientX,a=s.clientY;ga(t.info,o,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&dn("tap"),t.info.addMove({x:o,y:a}),nt(s)||(t.info.state="end",St(t.info)),e&&rr(t.info,e,s),t.info.started=!0)},r=s=>{t.info.started&&n(s),St(t.info)};Lu(this.info,n,r),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=Ue(i),t=i.changedTouches[0],n=t.clientX,r=t.clientY;ga(this.info,n,r)&&(this.info.state==="start"&&dn("tap"),this.info.addMove({x:n,y:r}),rr(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Ue(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),rr(this.info,e,t))}});function ga(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const n=Math.abs(i.x-e),r=Math.abs(i.y-t);return n>=_a||r>=_a}function rr(i,e,t){if(!e)return;const n=i.moves[i.moves.length-2],r=i.moves[i.moves.length-1],s=r.x-i.x,o=r.y-i.y;let a,l=0;n&&(a=r.x-n.x,l=r.y-n.y),Hs(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:s,dy:o,ddx:a,ddy:l,sourceEvent:t,hover(){return a_(t.clientX,t.clientY)}})}Is({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(i){nt(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){nt(i)&&ya(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){ya(this.info,i.changedTouches[0],i)}});function ya(i,e,t){const n=Math.abs(e.clientX-i.x),r=Math.abs(e.clientY-i.y),s=Ue(t||e);!s||r_[s.localName]&&s.hasAttribute("disabled")||(isNaN(n)||isNaN(r)||n<=ma&&r<=ma||s_(e))&&(i.prevent||Hs(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
2298
|
+
* @license
|
|
2299
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2300
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2301
|
+
*/const zu=ee(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2302
|
+
* @license
|
|
2303
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2304
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2305
|
+
*/const Pn=ee(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
|
|
2306
|
+
* @license
|
|
2307
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2308
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2309
|
+
*/const d_=i=>class extends zu(Pn(i)){get _activeKeys(){return[" "]}ready(){super.ready(),$e(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),$e(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",n=>{this._activeKeys.includes(n.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
|
|
2310
|
+
* @license
|
|
2311
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2312
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2313
|
+
*/let Ls=!1;window.addEventListener("keydown",()=>{Ls=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ls=!1},{capture:!0});function rs(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function f_(){return Ls}function p_(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function m_(i,e){const t=Math.max(i.tabIndex,0),n=Math.max(e.tabIndex,0);return t===0||n===0?n>t:t>n}function __(i,e){const t=[];for(;i.length>0&&e.length>0;)m_(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function ss(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),n=ss(i.slice(0,t)),r=ss(i.slice(t));return __(n,r)}function g_(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function y_(i){return i.getRootNode().activeElement===i}function b_(i){if(!g_(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function Fu(i,e){if(i.nodeType!==Node.ELEMENT_NODE||p_(i))return!1;const t=i,n=b_(t);let r=n>0;n>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(o=>{r=Fu(o,e)||r}),r}function v_(i){const e=[];return Fu(i,e)?ss(e):e}/**
|
|
2314
|
+
* @license
|
|
2315
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2316
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2317
|
+
*/const Bs=ee(i=>class extends i{get _keyboardActive(){return f_()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
|
|
2318
|
+
* @license
|
|
2319
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2320
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2321
|
+
*/const Uu=i=>class extends zu(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,n){super._disabledChanged(t,n),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):n&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
|
|
2322
|
+
* @license
|
|
2323
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2324
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2325
|
+
*/const x_=i=>class extends d_(Uu(Bs(i))){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(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
|
|
2326
|
+
* @license
|
|
2327
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2328
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2329
|
+
*/K("vaadin-button",qm,{moduleId:"vaadin-button-styles"});class E_ extends x_(Au(ut(Wt(Ve)))){static get is(){return"vaadin-button"}static get template(){return Xm(ht)}ready(){super.ready(),this._tooltipController=new $u(this),this.addController(this._tooltipController)}}Se(E_);K("vaadin-date-picker-year",z`
|
|
2330
|
+
:host([current]) [part='year-number'] {
|
|
2331
|
+
color: var(--lumo-primary-text-color);
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
:host(:not([current])) [part='year-number'],
|
|
2335
|
+
[part='year-separator'] {
|
|
2336
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
2337
|
+
transition: 0.2s opacity;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
[part='year-number'],
|
|
2341
|
+
[part='year-separator'] {
|
|
2342
|
+
display: flex;
|
|
2343
|
+
align-items: center;
|
|
2344
|
+
justify-content: center;
|
|
2345
|
+
height: 50%;
|
|
2346
|
+
transform: translateY(-50%);
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
[part='year-separator']::after {
|
|
2350
|
+
color: var(--lumo-disabled-text-color);
|
|
2351
|
+
content: '\\2022';
|
|
2352
|
+
}
|
|
2353
|
+
`,{moduleId:"lumo-date-picker-year"});K("vaadin-date-picker-overlay-content",z`
|
|
2354
|
+
:host {
|
|
2355
|
+
position: relative;
|
|
2356
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
2357
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
2358
|
+
background-size: 57px 100%;
|
|
2359
|
+
background-position: top right;
|
|
2360
|
+
background-repeat: no-repeat;
|
|
2361
|
+
cursor: default;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
::slotted([slot='months']) {
|
|
2365
|
+
/* Month calendar height:
|
|
2366
|
+
header height + margin-bottom
|
|
2367
|
+
+ weekdays height + margin-bottom
|
|
2368
|
+
+ date cell heights
|
|
2369
|
+
+ small margin between month calendars
|
|
2370
|
+
*/
|
|
2371
|
+
/* prettier-ignore */
|
|
2372
|
+
--vaadin-infinite-scroller-item-height:
|
|
2373
|
+
calc(
|
|
2374
|
+
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
2375
|
+
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
2376
|
+
+ var(--lumo-size-m) * 6
|
|
2377
|
+
+ var(--lumo-space-s)
|
|
2378
|
+
);
|
|
2379
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
2380
|
+
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
2381
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
2382
|
+
position: relative;
|
|
2383
|
+
margin-right: 57px;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
::slotted([slot='years']) {
|
|
2387
|
+
/* TODO get rid of fixed magic number */
|
|
2388
|
+
--vaadin-infinite-scroller-buffer-width: 97px;
|
|
2389
|
+
width: 57px;
|
|
2390
|
+
height: auto;
|
|
2391
|
+
top: 0;
|
|
2392
|
+
bottom: 0;
|
|
2393
|
+
font-size: var(--lumo-font-size-s);
|
|
2394
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
2395
|
+
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
2396
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
2397
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
::slotted([slot='years']:hover) {
|
|
2401
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
/* TODO unsupported selector */
|
|
2405
|
+
#scrollers {
|
|
2406
|
+
position: static;
|
|
2407
|
+
display: block;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
/* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
|
|
2411
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
2412
|
+
right: auto;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
/* Year scroller position indicator */
|
|
2416
|
+
::slotted([slot='years'])::before {
|
|
2417
|
+
border: none;
|
|
2418
|
+
width: 1em;
|
|
2419
|
+
height: 1em;
|
|
2420
|
+
background-color: var(--lumo-base-color);
|
|
2421
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
2422
|
+
transform: translate(-75%, -50%) rotate(45deg);
|
|
2423
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
2424
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
2425
|
+
z-index: 1;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
[part='toolbar'] {
|
|
2429
|
+
padding: var(--lumo-space-s);
|
|
2430
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
2431
|
+
margin-right: 57px;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
2435
|
+
margin: 0;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
/* Narrow viewport mode (fullscreen) */
|
|
2439
|
+
|
|
2440
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
2441
|
+
order: -1;
|
|
2442
|
+
background-color: var(--lumo-base-color);
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
:host([fullscreen]) [part='overlay-header'] {
|
|
2446
|
+
order: -2;
|
|
2447
|
+
height: var(--lumo-size-m);
|
|
2448
|
+
padding: var(--lumo-space-s);
|
|
2449
|
+
position: absolute;
|
|
2450
|
+
left: 0;
|
|
2451
|
+
right: 0;
|
|
2452
|
+
justify-content: center;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
:host([fullscreen]) [part='toggle-button'],
|
|
2456
|
+
:host([fullscreen]) [part='clear-button'],
|
|
2457
|
+
[part='overlay-header'] [part='label'] {
|
|
2458
|
+
display: none;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
2462
|
+
|
|
2463
|
+
[part='years-toggle-button'] {
|
|
2464
|
+
display: flex;
|
|
2465
|
+
align-items: center;
|
|
2466
|
+
height: var(--lumo-size-s);
|
|
2467
|
+
padding: 0 0.5em;
|
|
2468
|
+
border-radius: var(--lumo-border-radius-m);
|
|
2469
|
+
z-index: 3;
|
|
2470
|
+
color: var(--lumo-primary-text-color);
|
|
2471
|
+
font-weight: 500;
|
|
2472
|
+
-webkit-font-smoothing: antialiased;
|
|
2473
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
2477
|
+
background-color: var(--lumo-primary-color);
|
|
2478
|
+
color: var(--lumo-primary-contrast-color);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
2482
|
+
@media screen and (max-width: 374px) {
|
|
2483
|
+
:host {
|
|
2484
|
+
background-image: none;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
[part='toolbar'],
|
|
2488
|
+
::slotted([slot='months']) {
|
|
2489
|
+
margin-right: 0;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
2493
|
+
::slotted([slot='years']) {
|
|
2494
|
+
--vaadin-infinite-scroller-buffer-width: 90px;
|
|
2495
|
+
width: 50px;
|
|
2496
|
+
background-color: var(--lumo-shade-5pct);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
:host([years-visible]) ::slotted([slot='months']) {
|
|
2500
|
+
padding-left: 50px;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});K("vaadin-month-calendar",z`
|
|
2504
|
+
:host {
|
|
2505
|
+
-moz-user-select: none;
|
|
2506
|
+
-webkit-user-select: none;
|
|
2507
|
+
-webkit-tap-highlight-color: transparent;
|
|
2508
|
+
user-select: none;
|
|
2509
|
+
font-size: var(--lumo-font-size-m);
|
|
2510
|
+
color: var(--lumo-body-text-color);
|
|
2511
|
+
text-align: center;
|
|
2512
|
+
padding: 0 var(--lumo-space-xs);
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
/* Month header */
|
|
2516
|
+
|
|
2517
|
+
[part='month-header'] {
|
|
2518
|
+
color: var(--lumo-header-text-color);
|
|
2519
|
+
font-size: var(--lumo-font-size-l);
|
|
2520
|
+
line-height: 1;
|
|
2521
|
+
font-weight: 500;
|
|
2522
|
+
margin-bottom: var(--lumo-space-m);
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
/* Week days and numbers */
|
|
2526
|
+
|
|
2527
|
+
[part='weekdays'],
|
|
2528
|
+
[part='weekday'],
|
|
2529
|
+
[part='week-number'] {
|
|
2530
|
+
font-size: var(--lumo-font-size-xxs);
|
|
2531
|
+
line-height: 1;
|
|
2532
|
+
color: var(--lumo-secondary-text-color);
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
[part='weekdays'] {
|
|
2536
|
+
margin-bottom: var(--lumo-space-s);
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
[part='weekday']:empty,
|
|
2540
|
+
[part='week-number'] {
|
|
2541
|
+
width: var(--lumo-size-xs);
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
/* Date and week number cells */
|
|
2545
|
+
|
|
2546
|
+
[part~='date'],
|
|
2547
|
+
[part='week-number'] {
|
|
2548
|
+
box-sizing: border-box;
|
|
2549
|
+
display: inline-flex;
|
|
2550
|
+
align-items: center;
|
|
2551
|
+
justify-content: center;
|
|
2552
|
+
height: var(--lumo-size-m);
|
|
2553
|
+
position: relative;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
[part~='date'] {
|
|
2557
|
+
transition: color 0.1s;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
[part~='date']:not(:empty) {
|
|
2561
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
2565
|
+
:host([week-numbers]) [part~='date'] {
|
|
2566
|
+
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
/* Today date */
|
|
2570
|
+
|
|
2571
|
+
[part~='date'][part~='today'] {
|
|
2572
|
+
color: var(--lumo-primary-text-color);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
/* Focused date */
|
|
2576
|
+
|
|
2577
|
+
[part~='date']::before {
|
|
2578
|
+
content: '';
|
|
2579
|
+
position: absolute;
|
|
2580
|
+
z-index: -1;
|
|
2581
|
+
top: 50%;
|
|
2582
|
+
left: 50%;
|
|
2583
|
+
transform: translate(-50%, -50%);
|
|
2584
|
+
min-width: 2em;
|
|
2585
|
+
min-height: 2em;
|
|
2586
|
+
width: 80%;
|
|
2587
|
+
height: 80%;
|
|
2588
|
+
max-height: 100%;
|
|
2589
|
+
max-width: 100%;
|
|
2590
|
+
border-radius: var(--lumo-border-radius-m);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
[part~='date'][part~='focused']::before {
|
|
2594
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
2598
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2602
|
+
50% {
|
|
2603
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
2608
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
[part~='date'][part~='selected'] {
|
|
2612
|
+
color: var(--lumo-primary-contrast-color);
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
[part~='date'][part~='selected']::before {
|
|
2616
|
+
background-color: var(--lumo-primary-color);
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
[part~='date'][part~='disabled'] {
|
|
2620
|
+
color: var(--lumo-disabled-text-color);
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
@media (pointer: coarse) {
|
|
2624
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
2625
|
+
[part~='focused']:not([part~='selected'])::before {
|
|
2626
|
+
display: none;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
2630
|
+
display: block;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
[part~='date'][part~='selected']::before {
|
|
2634
|
+
box-shadow: none;
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
/* Disabled */
|
|
2639
|
+
|
|
2640
|
+
:host([disabled]) * {
|
|
2641
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
2642
|
+
}
|
|
2643
|
+
`,{moduleId:"lumo-month-calendar"});const ju=document.createElement("template");ju.innerHTML=`
|
|
2644
|
+
<style>
|
|
2645
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2646
|
+
50% {
|
|
2647
|
+
box-shadow: 0 0 0 2px transparent;
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
</style>
|
|
2651
|
+
`;document.head.appendChild(ju.content);/**
|
|
2652
|
+
* @license
|
|
2653
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2654
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2655
|
+
*/const w_=z`
|
|
2656
|
+
@font-face {
|
|
2657
|
+
font-family: 'lumo-icons';
|
|
2658
|
+
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==)
|
|
2659
|
+
format('woff');
|
|
2660
|
+
font-weight: normal;
|
|
2661
|
+
font-style: normal;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
html {
|
|
2665
|
+
--lumo-icons-align-center: '\\ea01';
|
|
2666
|
+
--lumo-icons-align-left: '\\ea02';
|
|
2667
|
+
--lumo-icons-align-right: '\\ea03';
|
|
2668
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
2669
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
2670
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
2671
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
2672
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
2673
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
2674
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
2675
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
2676
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
2677
|
+
--lumo-icons-bell: '\\ea0d';
|
|
2678
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
2679
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
2680
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
2681
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
2682
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
2683
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
2684
|
+
--lumo-icons-clock: '\\ea14';
|
|
2685
|
+
--lumo-icons-cog: '\\ea15';
|
|
2686
|
+
--lumo-icons-cross: '\\ea16';
|
|
2687
|
+
--lumo-icons-download: '\\ea17';
|
|
2688
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
2689
|
+
--lumo-icons-edit: '\\ea19';
|
|
2690
|
+
--lumo-icons-error: '\\ea1a';
|
|
2691
|
+
--lumo-icons-eye: '\\ea1b';
|
|
2692
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2693
|
+
--lumo-icons-menu: '\\ea1d';
|
|
2694
|
+
--lumo-icons-minus: '\\ea1e';
|
|
2695
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
2696
|
+
--lumo-icons-phone: '\\ea20';
|
|
2697
|
+
--lumo-icons-photo: '\\ea21';
|
|
2698
|
+
--lumo-icons-play: '\\ea22';
|
|
2699
|
+
--lumo-icons-plus: '\\ea23';
|
|
2700
|
+
--lumo-icons-redo: '\\ea24';
|
|
2701
|
+
--lumo-icons-reload: '\\ea25';
|
|
2702
|
+
--lumo-icons-search: '\\ea26';
|
|
2703
|
+
--lumo-icons-undo: '\\ea27';
|
|
2704
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
2705
|
+
--lumo-icons-upload: '\\ea29';
|
|
2706
|
+
--lumo-icons-user: '\\ea2a';
|
|
2707
|
+
}
|
|
2708
|
+
`;Yt("font-icons",w_);/**
|
|
2709
|
+
* @license
|
|
2710
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2711
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2712
|
+
*/const Vu=z`
|
|
2713
|
+
[part$='button'] {
|
|
2714
|
+
flex: none;
|
|
2715
|
+
width: 1em;
|
|
2716
|
+
height: 1em;
|
|
2717
|
+
line-height: 1;
|
|
2718
|
+
font-size: var(--lumo-icon-size-m);
|
|
2719
|
+
text-align: center;
|
|
2720
|
+
color: var(--lumo-contrast-60pct);
|
|
2721
|
+
transition: 0.2s color;
|
|
2722
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
[part$='button']:hover {
|
|
2726
|
+
color: var(--lumo-contrast-90pct);
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
:host([disabled]) [part$='button'],
|
|
2730
|
+
:host([readonly]) [part$='button'] {
|
|
2731
|
+
color: var(--lumo-contrast-20pct);
|
|
2732
|
+
cursor: default;
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
[part$='button']::before {
|
|
2736
|
+
font-family: 'lumo-icons';
|
|
2737
|
+
display: block;
|
|
2738
|
+
}
|
|
2739
|
+
`;K("",Vu,{moduleId:"lumo-field-button"});/**
|
|
2740
|
+
* @license
|
|
2741
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2742
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2743
|
+
*/const A_=z`
|
|
2744
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
2745
|
+
content: '';
|
|
2746
|
+
display: block;
|
|
2747
|
+
height: 0.4em;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
[part='helper-text'] {
|
|
2751
|
+
display: block;
|
|
2752
|
+
color: var(--lumo-secondary-text-color);
|
|
2753
|
+
font-size: var(--lumo-font-size-xs);
|
|
2754
|
+
line-height: var(--lumo-line-height-xs);
|
|
2755
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2756
|
+
transition: color 0.2s;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
2760
|
+
color: var(--lumo-body-text-color);
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
:host([disabled]) [part='helper-text'] {
|
|
2764
|
+
color: var(--lumo-disabled-text-color);
|
|
2765
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
2769
|
+
display: none;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
2773
|
+
content: '';
|
|
2774
|
+
display: block;
|
|
2775
|
+
height: 0.4em;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
2779
|
+
order: 0;
|
|
2780
|
+
padding-bottom: 0.4em;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
2784
|
+
order: 1;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
2788
|
+
order: 2;
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
2792
|
+
order: 3;
|
|
2793
|
+
}
|
|
2794
|
+
`;/**
|
|
2795
|
+
* @license
|
|
2796
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2797
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2798
|
+
*/const Yu=z`
|
|
2799
|
+
[part='label'] {
|
|
2800
|
+
align-self: flex-start;
|
|
2801
|
+
color: var(--lumo-secondary-text-color);
|
|
2802
|
+
font-weight: 500;
|
|
2803
|
+
font-size: var(--lumo-font-size-s);
|
|
2804
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2805
|
+
transition: color 0.2s;
|
|
2806
|
+
line-height: 1;
|
|
2807
|
+
padding-right: 1em;
|
|
2808
|
+
padding-bottom: 0.5em;
|
|
2809
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
2810
|
+
negative margin to compensate */
|
|
2811
|
+
padding-top: 0.25em;
|
|
2812
|
+
margin-top: -0.25em;
|
|
2813
|
+
overflow: hidden;
|
|
2814
|
+
white-space: nowrap;
|
|
2815
|
+
text-overflow: ellipsis;
|
|
2816
|
+
position: relative;
|
|
2817
|
+
max-width: 100%;
|
|
2818
|
+
box-sizing: border-box;
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
:host([has-label])::before {
|
|
2822
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
:host([has-label][theme~='small'])::before {
|
|
2826
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
:host([has-label]) {
|
|
2830
|
+
padding-top: var(--lumo-space-m);
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
2834
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
:host([required]) [part='required-indicator']::after {
|
|
2838
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
2839
|
+
transition: opacity 0.2s;
|
|
2840
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
2841
|
+
position: absolute;
|
|
2842
|
+
right: 0;
|
|
2843
|
+
width: 1em;
|
|
2844
|
+
text-align: center;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
2848
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
[part='error-message'] {
|
|
2852
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2853
|
+
font-size: var(--lumo-font-size-xs);
|
|
2854
|
+
line-height: var(--lumo-line-height-xs);
|
|
2855
|
+
color: var(--lumo-error-text-color);
|
|
2856
|
+
will-change: max-height;
|
|
2857
|
+
transition: 0.4s max-height;
|
|
2858
|
+
max-height: 5em;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
2862
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
2863
|
+
content: '';
|
|
2864
|
+
display: block;
|
|
2865
|
+
height: 0.4em;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
2869
|
+
max-height: 0;
|
|
2870
|
+
overflow: hidden;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
/* RTL specific styles */
|
|
2874
|
+
|
|
2875
|
+
:host([dir='rtl']) [part='label'] {
|
|
2876
|
+
margin-left: 0;
|
|
2877
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
:host([dir='rtl']) [part='label'] {
|
|
2881
|
+
padding-left: 1em;
|
|
2882
|
+
padding-right: 0;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
2886
|
+
right: auto;
|
|
2887
|
+
left: 0;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
2891
|
+
margin-left: 0;
|
|
2892
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2893
|
+
}
|
|
2894
|
+
`;K("",Yu,{moduleId:"lumo-required-field"});/**
|
|
2895
|
+
* @license
|
|
2896
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2897
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2898
|
+
*/const S_=z`
|
|
2899
|
+
:host {
|
|
2900
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
2901
|
+
color: var(--lumo-body-text-color);
|
|
2902
|
+
font-size: var(--lumo-font-size-m);
|
|
2903
|
+
font-family: var(--lumo-font-family);
|
|
2904
|
+
-webkit-font-smoothing: antialiased;
|
|
2905
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2906
|
+
-webkit-tap-highlight-color: transparent;
|
|
2907
|
+
padding: var(--lumo-space-xs) 0;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
:host::before {
|
|
2911
|
+
height: var(--lumo-text-field-size);
|
|
2912
|
+
box-sizing: border-box;
|
|
2913
|
+
display: inline-flex;
|
|
2914
|
+
align-items: center;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
2918
|
+
color: var(--lumo-primary-text-color);
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
2922
|
+
-webkit-mask-image: none;
|
|
2923
|
+
mask-image: none;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
2927
|
+
color: var(--lumo-secondary-text-color);
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
/* Hover */
|
|
2931
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2932
|
+
color: var(--lumo-body-text-color);
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2936
|
+
opacity: 0.1;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
/* Touch device adjustment */
|
|
2940
|
+
@media (pointer: coarse) {
|
|
2941
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2942
|
+
color: var(--lumo-secondary-text-color);
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2946
|
+
opacity: 0;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2950
|
+
opacity: 0.2;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
/* Trigger when not focusing using the keyboard */
|
|
2955
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
2956
|
+
transform: scaleX(0);
|
|
2957
|
+
transition-duration: 0.15s, 1s;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/* Focus-ring */
|
|
2961
|
+
:host([focus-ring]) [part='input-field'] {
|
|
2962
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
/* Read-only and disabled */
|
|
2966
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
2967
|
+
opacity: 0;
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
/* Read-only style */
|
|
2971
|
+
:host([readonly]) {
|
|
2972
|
+
--vaadin-input-field-border-color: transparent;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/* Disabled style */
|
|
2976
|
+
:host([disabled]) {
|
|
2977
|
+
pointer-events: none;
|
|
2978
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
:host([disabled]) [part='label'],
|
|
2982
|
+
:host([disabled]) [part='input-field'] ::slotted(*) {
|
|
2983
|
+
color: var(--lumo-disabled-text-color);
|
|
2984
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
/* Invalid style */
|
|
2988
|
+
:host([invalid]) {
|
|
2989
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
2993
|
+
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
:host([input-prevented]) [part='input-field'] {
|
|
2997
|
+
animation: shake 0.15s infinite;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
@keyframes shake {
|
|
3001
|
+
25% {
|
|
3002
|
+
transform: translateX(4px);
|
|
3003
|
+
}
|
|
3004
|
+
75% {
|
|
3005
|
+
transform: translateX(-4px);
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
/* Small theme */
|
|
3010
|
+
:host([theme~='small']) {
|
|
3011
|
+
font-size: var(--lumo-font-size-s);
|
|
3012
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
:host([theme~='small']) [part='label'] {
|
|
3016
|
+
font-size: var(--lumo-font-size-xs);
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
:host([theme~='small']) [part='error-message'] {
|
|
3020
|
+
font-size: var(--lumo-font-size-xxs);
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
/* Slotted content */
|
|
3024
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
3025
|
+
color: var(--lumo-secondary-text-color);
|
|
3026
|
+
font-weight: 400;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
[part='clear-button']::before {
|
|
3030
|
+
content: var(--lumo-icons-cross);
|
|
3031
|
+
}
|
|
3032
|
+
`,Wu=[Yu,Vu,A_,S_];K("",Wu,{moduleId:"lumo-input-field-shared-styles"});const C_=z`
|
|
3033
|
+
:host {
|
|
3034
|
+
outline: none;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
[part='toggle-button']::before {
|
|
3038
|
+
content: var(--lumo-icons-calendar);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
[part='clear-button']::before {
|
|
3042
|
+
content: var(--lumo-icons-cross);
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
3046
|
+
[part='overlay-content'] {
|
|
3047
|
+
height: 70vh;
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
3052
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
3056
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
3057
|
+
}
|
|
3058
|
+
`;K("vaadin-date-picker",[Wu,C_],{moduleId:"lumo-date-picker"});/**
|
|
3059
|
+
@license
|
|
3060
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3061
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3062
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3063
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3064
|
+
Code distributed by Google as part of the polymer project is also
|
|
3065
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3066
|
+
*/let os=!1,$_=[],Gu=[];function P_(){os=!0,requestAnimationFrame(function(){os=!1,T_($_),setTimeout(function(){D_(Gu)})})}function T_(i){for(;i.length;)qu(i.shift())}function D_(i){for(let e=0,t=i.length;e<t;e++)qu(i.shift())}function qu(i){const e=i[0],t=i[1],n=i[2];try{t.apply(e,n)}catch(r){setTimeout(()=>{throw r})}}function Xu(i,e,t){os||P_(),Gu.push([i,e,t])}/**
|
|
3067
|
+
* @license
|
|
3068
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3069
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3070
|
+
*/const Tn=i=>i.test(navigator.userAgent),as=i=>i.test(navigator.platform),k_=i=>i.test(navigator.vendor);Tn(/Android/u);Tn(/Chrome/u)&&k_(/Google Inc/u);const M_=Tn(/Firefox/u),O_=as(/^iPad/u)||as(/^Mac/u)&&navigator.maxTouchPoints>1,N_=as(/^iPhone/u),Ku=N_||O_;Tn(/^((?!chrome|android).)*safari/iu);const I_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
|
|
3071
|
+
* @license
|
|
3072
|
+
* Copyright (c) 2017 Anton Korzunov
|
|
3073
|
+
* SPDX-License-Identifier: MIT
|
|
3074
|
+
*/let mt=new WeakMap,Li=new WeakMap,Bi={},sr=0;const ba=i=>i&&i.nodeType===Node.ELEMENT_NODE,or=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},H_=(i,e)=>ba(i)?e.map(t=>{if(!ba(t))return or(t,"is not a valid element"),null;let n=t;for(;n&&n!==i;){if(i.contains(n))return t;n=n.getRootNode().host}return or(t,"is not contained inside",i),null}).filter(t=>!!t):(or(i,"is not a valid element"),[]),L_=(i,e,t,n)=>{const r=H_(e,Array.isArray(i)?i:[i]);Bi[t]||(Bi[t]=new WeakMap);const s=Bi[t],o=[],a=new Set,l=new Set(r),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};r.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const g=p.getAttribute(n),$=g!==null&&g!=="false",N=(mt.get(p)||0)+1,M=(s.get(p)||0)+1;mt.set(p,N),s.set(p,M),o.push(p),N===1&&$&&Li.set(p,!0),M===1&&p.setAttribute(t,"true"),$||p.setAttribute(n,"true")}})};return c(e),a.clear(),sr+=1,()=>{o.forEach(h=>{const d=mt.get(h)-1,f=s.get(h)-1;mt.set(h,d),s.set(h,f),d||(Li.has(h)?Li.delete(h):h.removeAttribute(n)),f||h.removeAttribute(t)}),sr-=1,sr||(mt=new WeakMap,mt=new WeakMap,Li=new WeakMap,Bi={})}},Ju=(i,e=document.body,t="data-aria-hidden")=>{const n=Array.from(Array.isArray(i)?i:[i]);return e&&n.push(...Array.from(e.querySelectorAll("[aria-live]"))),L_(n,e,t,"aria-hidden")};/**
|
|
3075
|
+
* @license
|
|
3076
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3077
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3078
|
+
*/class B_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Ju(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3079
|
+
* @license
|
|
3080
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3081
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3082
|
+
*/class R_{saveFocus(e){this.focusNode=e||rs()}restoreFocus(){const e=this.focusNode;e&&(rs()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}/**
|
|
3083
|
+
* @license
|
|
3084
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3085
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3086
|
+
*/const ar=[];class z_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return v_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(y_).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.");ar.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ar.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ar).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,n=e?-1:1,r=this.__focusedElementIndex,s=(t.length+r+n)%t.length,o=t[s];o.focus(),o.localName==="input"&&o.select()}}/**
|
|
3087
|
+
* @license
|
|
3088
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3089
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3090
|
+
*/const F_=i=>class extends Wt(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new B_(this),this.__focusTrapController=new z_(this),this.__focusRestorationController=new R_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=rs();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let n=t;const r=t.ownerDocument;for(;n&&n!==r&&n!==this;)n=n.parentNode||n.host;return n===this}};/**
|
|
3091
|
+
* @license
|
|
3092
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3093
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3094
|
+
*/const qi=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),U_=i=>i===qi().pop(),j_=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return U_(this)}bringToFront(){let t="";const n=qi().filter(r=>r!==this).pop();n&&(t=n.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),qi().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=qi();let n;for(;(n=t.pop())&&!(n!==this&&(n.$.overlay.style.removeProperty("pointer-events"),!n.modeless)););}};/**
|
|
3095
|
+
* @license
|
|
3096
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3097
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3098
|
+
*/const V_=i=>class extends F_(j_(i)){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),Ku&&(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(t){const n=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(n),n.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,r=window.innerWidth>t,s=document.documentElement.clientHeight;r&&s>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}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(t,n,r,s){const o=this._oldOwner!==n||this._oldModel!==r;this._oldModel=r,this._oldOwner=n;const a=this._oldRenderer!==t;this._oldRenderer=t;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.innerHTML="",delete this._$litPart$),s&&t&&(a||l||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,n){t?(this._saveFocus(),this._animatedOpening(),Xu(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):n&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),n=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&n&&n!=="none"}_enqueueAnimation(t,n){const r=`__${t}Handler`,s=o=>{o&&o.target!==this||(n(),this.removeEventListener("animationend",s),delete this[r])};this[r]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const n=`__${t}Handler`;typeof this[n]=="function"&&this[n]()}_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(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const n=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(n),this.opened&&!n.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const n=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(n),this.opened&&!n.defaultPrevented&&this.close(t)}}};/**
|
|
3099
|
+
* @license
|
|
3100
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3101
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3102
|
+
*/const lr={start:"top",end:"bottom"},ur={start:"left",end:"right"},va=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Y_=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Dm(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,n){if(this.__removeUpdatePositionEventListeners(),n&&(n.__overlay=null,va.unobserve(n),t&&(this.__addUpdatePositionEventListeners(),n.__overlay=this,va.observe(n))),t){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(r[s],10)})),this.setAttribute("dir",r.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),n=this.__shouldAlignStartVertically(t);this.style.justifyContent=n?"flex-start":"flex-end";const r=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,r),o=!r&&s||r&&!s;this.style.alignItems=o?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,lr,this,n),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,ur,this,s);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!n),this.toggleAttribute("top-aligned",n),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,n){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!n&&this.horizontalAlign==="start"||n&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,r,s,this.__margins,o,this.noHorizontalOverlap,ur)}__shouldAlignStartVertically(t){const n=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(t,n,r,this.__margins,s,this.noVerticalOverlap,lr)}__shouldAlignStart(t,n,r,s,o,a,l){const u=r-t[a?l.end:l.start]-s[l.end],c=t[a?l.start:l.end]-s[l.start],h=o?u:c,f=h>(o?c:u)||h>n;return o===f}__adjustBottomProperty(t,n,r){let s;if(t===n.end){if(n.end===lr.end){const o=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>o&&this.__oldViewportHeight){const a=this.__oldViewportHeight-o;s=r-a}this.__oldViewportHeight=o}if(n.end===ur.end){const o=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>o&&this.__oldViewportWidth){const a=this.__oldViewportWidth-o;s=r-a}this.__oldViewportWidth=o}}return s}__calculatePositionInOneDimension(t,n,r,s,o,a){const l=a?s.start:s.end,u=a?s.end:s.start,c=parseFloat(o.style[l]||getComputedStyle(o)[l]),h=this.__adjustBottomProperty(l,s,c),d=n[a?s.start:s.end]-t[r===a?s.end:s.start],f=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
|
|
3103
|
+
* @license
|
|
3104
|
+
* Copyright 2019 Google LLC
|
|
3105
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3106
|
+
*/const Xi=globalThis,Rs=Xi.ShadowRoot&&(Xi.ShadyCSS===void 0||Xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zs=Symbol(),xa=new WeakMap;let Zu=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==zs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Rs&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=xa.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&xa.set(t,e))}return e}toString(){return this.cssText}};const W_=i=>new Zu(typeof i=="string"?i:i+"",void 0,zs),G_=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new Zu(t,i,zs)},q_=(i,e)=>{if(Rs)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const n=document.createElement("style"),r=Xi.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)}},Ea=Rs?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return W_(t)})(i):i;/**
|
|
3107
|
+
* @license
|
|
3108
|
+
* Copyright 2017 Google LLC
|
|
3109
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3110
|
+
*/const{is:X_,defineProperty:K_,getOwnPropertyDescriptor:J_,getOwnPropertyNames:Z_,getOwnPropertySymbols:Q_,getPrototypeOf:eg}=Object,je=globalThis,wa=je.trustedTypes,tg=wa?wa.emptyScript:"",cr=je.reactiveElementPolyfillSupport,oi=(i,e)=>i,ls={toAttribute(i,e){switch(e){case Boolean:i=i?tg:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(n){t=null}}return t}},Qu=(i,e)=>!X_(i,e),Aa={attribute:!0,type:String,converter:ls,reflect:!1,hasChanged:Qu};var Xa,Ka;(Xa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ka=je.litPropertyMetadata)!=null||(je.litPropertyMetadata=new WeakMap);class bt 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=Aa){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&K_(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){var o;const{get:r,set:s}=(o=J_(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get(){return r==null?void 0:r.call(this)},set(a){const l=r==null?void 0:r.call(this);s.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Aa}static _$Ei(){if(this.hasOwnProperty(oi("elementProperties")))return;const e=eg(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oi("properties"))){const t=this.properties,n=[...Z_(t),...Q_(t)];for(const r of n)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,r]of t)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const r=this._$Eu(t,n);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(Ea(r))}else e!==void 0&&t.push(Ea(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n: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,n;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return q_(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var n;return(n=t.hostDisconnected)==null?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){var s;const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:ls).toAttribute(t,n.type);this._$Em=e,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(e,t){var s;const n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const o=n.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:ls;this._$Em=r,this[r]=a.fromAttribute(t,o.type),this._$Em=null}}requestUpdate(e,t,n){var r;if(e!==void 0){if(n!=null||(n=this.constructor.getPropertyOptions(e)),!((r=n.hasChanged)!=null?r:Qu)(this[e],t))return;this.P(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,n){var r;this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}_$ET(){return He(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 n,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,a]of s)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),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 Ja;bt.elementStyles=[],bt.shadowRootOptions={mode:"open"},bt[oi("elementProperties")]=new Map,bt[oi("finalized")]=new Map,cr==null||cr({ReactiveElement:bt}),((Ja=je.reactiveElementVersions)!=null?Ja:je.reactiveElementVersions=[]).push("2.0.4");/**
|
|
3111
|
+
* @license
|
|
3112
|
+
* Copyright 2017 Google LLC
|
|
3113
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3114
|
+
*/const ai=globalThis,fn=ai.trustedTypes,Sa=fn?fn.createPolicy("lit-html",{createHTML:i=>i}):void 0,ec="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,tc="?"+Re,ig=`<${tc}>`,ot=document,xi=()=>ot.createComment(""),Ei=i=>i===null||typeof i!="object"&&typeof i!="function",Fs=Array.isArray,ng=i=>Fs(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",hr=`[
|
|
3115
|
+
\f\r]`,Qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ca=/-->/g,$a=/>/g,Xe=RegExp(`>|${hr}(?:([^\\s"'>=/]+)(${hr}*=${hr}*(?:[^
|
|
3116
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pa=/'/g,Ta=/"/g,ic=/^(?:script|style|textarea|title)$/i,Ht=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),Da=new WeakMap,tt=ot.createTreeWalker(ot,129);function nc(i,e){if(!Fs(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sa!==void 0?Sa.createHTML(e):e}const rg=(i,e)=>{const t=i.length-1,n=[];let r,s=e===2?"<svg>":e===3?"<math>":"",o=Qt;for(let a=0;a<t;a++){const l=i[a];let u,c,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,c=o.exec(l),c!==null);)d=o.lastIndex,o===Qt?c[1]==="!--"?o=Ca:c[1]!==void 0?o=$a:c[2]!==void 0?(ic.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=Xe):c[3]!==void 0&&(o=Xe):o===Xe?c[0]===">"?(o=r!=null?r:Qt,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=c[3]===void 0?Xe:c[3]==='"'?Ta:Pa):o===Ta||o===Pa?o=Xe:o===Ca||o===$a?o=Qt:(o=Xe,r=void 0);const f=o===Xe&&i[a+1].startsWith("/>")?" ":"";s+=o===Qt?l+ig:h>=0?(n.push(u),l.slice(0,h)+ec+l.slice(h)+Re+f):l+Re+(h===-2?a:f)}return[nc(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let us=class rc{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[u,c]=rg(e,t);if(this.el=rc.createElement(u,n),tt.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=tt.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(ec)){const d=c[o++],f=r.getAttribute(h).split(Re),p=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:p[2],strings:f,ctor:p[1]==="."?og:p[1]==="?"?ag:p[1]==="@"?lg:Dn}),r.removeAttribute(h)}else h.startsWith(Re)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(ic.test(r.tagName)){const h=r.textContent.split(Re),d=h.length-1;if(d>0){r.textContent=fn?fn.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],xi()),tt.nextNode(),l.push({type:2,index:++s});r.append(h[d],xi())}}}else if(r.nodeType===8)if(r.data===tc)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(Re,h+1))!==-1;)l.push({type:7,index:s}),h+=Re.length-1}s++}}static createElement(e,t){const n=ot.createElement("template");return n.innerHTML=e,n}};function Lt(i,e,t=i,n){var o,a,l;if(e===Ht)return e;let r=n!==void 0?(o=t._$Co)==null?void 0:o[n]:t._$Cl;const s=Ei(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(i),r._$AT(i,t,n)),n!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[n]=r:t._$Cl=r),r!==void 0&&(e=Lt(i,r._$AS(i,e.values),r,n)),e}let sg=class{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 u;const{el:{content:t},parts:n}=this._$AD,r=((u=e==null?void 0:e.creationScope)!=null?u:ot).importNode(t,!0);tt.currentNode=r;let s=tt.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Us(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new ug(s,this,e)),this._$AV.push(c),l=n[++a]}o!==(l==null?void 0:l.index)&&(s=tt.nextNode(),o++)}return tt.currentNode=ot,r}p(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},Us=class sc{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,n,r){var s;this.type=2,this._$AH=ne,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,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=Lt(this,e,t),Ei(e)?e===ne||e==null||e===""?(this._$AH!==ne&&this._$AR(),this._$AH=ne):e!==this._$AH&&e!==Ht&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ng(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!==ne&&Ei(this._$AH)?this._$AA.nextSibling.data=e:this.T(ot.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:n}=e,r=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=us.createElement(nc(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const o=new sg(r,this),a=o.u(this.options);o.p(t),this.T(a),this._$AH=o}}_$AC(e){let t=Da.get(e.strings);return t===void 0&&Da.set(e.strings,t=new us(e)),t}k(e){Fs(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const s of e)r===t.length?t.push(n=new sc(this.O(xi()),this.O(xi()),this,this.options)):n=t[r],n._$AI(s),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)==null?void 0:n.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))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,s){this.type=1,this._$AH=ne,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ne}_$AI(e,t=this,n,r){const s=this.strings;let o=!1;if(s===void 0)e=Lt(this,e,t,0),o=!Ei(e)||e!==this._$AH&&e!==Ht,o&&(this._$AH=e);else{const a=e;let l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Lt(this,a[n+l],t,l),u===Ht&&(u=this._$AH[l]),o||(o=!Ei(u)||u!==this._$AH[l]),u===ne?e=ne:e!==ne&&(e+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!r&&this.j(e)}j(e){e===ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},og=class extends Dn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ne?void 0:e}},ag=class extends Dn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ne)}},lg=class extends Dn{constructor(e,t,n,r,s){super(e,t,n,r,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=Lt(this,e,t,0))!=null?o:ne)===Ht)return;const n=this._$AH,r=e===ne&&n!==ne||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==ne&&(n===ne||r);r&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)==null?void 0:t.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},ug=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Lt(this,e)}};const dr=ai.litHtmlPolyfillSupport;var Za;dr==null||dr(us,Us),((Za=ai.litHtmlVersions)!=null?Za:ai.litHtmlVersions=[]).push("3.2.1");const cg=(i,e,t)=>{var s,o;const n=(s=t==null?void 0:t.renderBefore)!=null?s:e;let r=n._$litPart$;if(r===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;n._$litPart$=r=new Us(e.insertBefore(xi(),a),a,void 0,t!=null?t:{})}return r._$AI(i),r};/**
|
|
3117
|
+
* @license
|
|
3118
|
+
* Copyright 2017 Google LLC
|
|
3119
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3120
|
+
*/let Ki=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const e=super.createRenderRoot();return(n=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=cg(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 Ht}};var Qa;Ki._$litElement$=!0,Ki.finalized=!0,(Qa=globalThis.litElementHydrateSupport)==null||Qa.call(globalThis,{LitElement:Ki});const fr=globalThis.litElementPolyfillSupport;fr==null||fr({LitElement:Ki});var el;((el=globalThis.litElementVersions)!=null?el:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
3121
|
+
* @license
|
|
3122
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3123
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3124
|
+
*/const hg=G_`
|
|
3125
|
+
:host {
|
|
3126
|
+
z-index: 200;
|
|
3127
|
+
position: fixed;
|
|
3128
|
+
|
|
3129
|
+
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
3130
|
+
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
3131
|
+
|
|
3132
|
+
/* Default position constraints: the entire viewport. Note: themes can
|
|
3133
|
+
override this to introduce gaps between the overlay and the viewport. */
|
|
3134
|
+
inset: 0;
|
|
3135
|
+
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
3136
|
+
|
|
3137
|
+
/* Use flexbox alignment for the overlay part. */
|
|
3138
|
+
display: flex;
|
|
3139
|
+
flex-direction: column; /* makes dropdowns sizing easier */
|
|
3140
|
+
/* Align to center by default. */
|
|
3141
|
+
align-items: center;
|
|
3142
|
+
justify-content: center;
|
|
3143
|
+
|
|
3144
|
+
/* Allow centering when max-width/max-height applies. */
|
|
3145
|
+
margin: auto;
|
|
3146
|
+
|
|
3147
|
+
/* The host is not clickable, only the overlay part is. */
|
|
3148
|
+
pointer-events: none;
|
|
3149
|
+
|
|
3150
|
+
/* Remove tap highlight on touch devices. */
|
|
3151
|
+
-webkit-tap-highlight-color: transparent;
|
|
3152
|
+
|
|
3153
|
+
/* CSS API for host */
|
|
3154
|
+
--vaadin-overlay-viewport-bottom: 0;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
:host([hidden]),
|
|
3158
|
+
:host(:not([opened]):not([closing])) {
|
|
3159
|
+
display: none !important;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
[part='overlay'] {
|
|
3163
|
+
-webkit-overflow-scrolling: touch;
|
|
3164
|
+
overflow: auto;
|
|
3165
|
+
pointer-events: auto;
|
|
3166
|
+
|
|
3167
|
+
/* Prevent overflowing the host */
|
|
3168
|
+
max-width: 100%;
|
|
3169
|
+
box-sizing: border-box;
|
|
3170
|
+
|
|
3171
|
+
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
[part='backdrop'] {
|
|
3175
|
+
z-index: -1;
|
|
3176
|
+
content: '';
|
|
3177
|
+
background: rgba(0, 0, 0, 0.5);
|
|
3178
|
+
position: fixed;
|
|
3179
|
+
inset: 0;
|
|
3180
|
+
pointer-events: auto;
|
|
3181
|
+
}
|
|
3182
|
+
`;/**
|
|
3183
|
+
* @license
|
|
3184
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3185
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3186
|
+
*/const dg=Ti`
|
|
3187
|
+
[part='overlay'] {
|
|
3188
|
+
display: flex;
|
|
3189
|
+
flex: auto;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
[part~='content'] {
|
|
3193
|
+
flex: auto;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
@media (forced-colors: active) {
|
|
3197
|
+
[part='overlay'] {
|
|
3198
|
+
outline: 3px solid;
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
`;/**
|
|
3202
|
+
* @license
|
|
3203
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3204
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3205
|
+
*/K("vaadin-date-picker-overlay",[hg,dg],{moduleId:"vaadin-date-picker-overlay-styles"});class fg extends Y_(V_(Sn(ut(Ve)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ht`
|
|
3206
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3207
|
+
<div part="overlay" id="overlay">
|
|
3208
|
+
<div part="content" id="content">
|
|
3209
|
+
<slot></slot>
|
|
3210
|
+
</div>
|
|
3211
|
+
</div>
|
|
3212
|
+
`}}Se(fg);/**
|
|
3213
|
+
* @license
|
|
3214
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3215
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3216
|
+
*/function pg(i){let e=i.getDay();e===0&&(e=7);const t=4-e,n=new Date(i.getTime()+t*24*3600*1e3),r=new Date(0,0);r.setFullYear(n.getFullYear());const s=n.getTime()-r.getTime(),o=Math.round(s/(24*3600*1e3));return Math.floor(o/7+1)}function Oe(i,e){return i instanceof Date&&e instanceof Date&&i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth()&&i.getDate()===e.getDate()}function wi(i,e,t){return(!e||i>=e)&&(!t||i<=t)}function oc(i,e){return e.filter(t=>t!==void 0).reduce((t,n)=>{if(!n)return t;if(!t)return n;const r=Math.abs(i.getTime()-n.getTime()),s=Math.abs(t.getTime()-i.getTime());return r<s?n:t})}function ac(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function lc(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function mg(i,e,t=0,n=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(i.getFullYear()/100)*100;return i<new Date(r-50,t,n)?r-=100:i>new Date(r+50,t,n)&&(r+=100),r}function ei(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);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}/**
|
|
3217
|
+
* @license
|
|
3218
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3219
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3220
|
+
*/const uc=document.createElement("template");uc.innerHTML=`
|
|
3221
|
+
<style>
|
|
3222
|
+
:host {
|
|
3223
|
+
display: block;
|
|
3224
|
+
overflow: hidden;
|
|
3225
|
+
height: 500px;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
#scroller {
|
|
3229
|
+
position: relative;
|
|
3230
|
+
height: 100%;
|
|
3231
|
+
overflow: auto;
|
|
3232
|
+
outline: none;
|
|
3233
|
+
margin-right: -40px;
|
|
3234
|
+
-webkit-overflow-scrolling: touch;
|
|
3235
|
+
overflow-x: hidden;
|
|
3236
|
+
}
|
|
3237
|
+
|
|
3238
|
+
#scroller.notouchscroll {
|
|
3239
|
+
-webkit-overflow-scrolling: auto;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
#scroller::-webkit-scrollbar {
|
|
3243
|
+
display: none;
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
.buffer {
|
|
3247
|
+
position: absolute;
|
|
3248
|
+
width: var(--vaadin-infinite-scroller-buffer-width, 100%);
|
|
3249
|
+
box-sizing: border-box;
|
|
3250
|
+
padding-right: 40px;
|
|
3251
|
+
top: var(--vaadin-infinite-scroller-buffer-offset, 0);
|
|
3252
|
+
animation: fadein 0.2s;
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
@keyframes fadein {
|
|
3256
|
+
from {
|
|
3257
|
+
opacity: 0;
|
|
3258
|
+
}
|
|
3259
|
+
to {
|
|
3260
|
+
opacity: 1;
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
</style>
|
|
3264
|
+
|
|
3265
|
+
<div id="scroller">
|
|
3266
|
+
<div class="buffer"></div>
|
|
3267
|
+
<div class="buffer"></div>
|
|
3268
|
+
<div id="fullHeight"></div>
|
|
3269
|
+
</div>
|
|
3270
|
+
`;class cc extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(uc.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 n=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(n)}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`,M_&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_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,n=e>this._buffers[1].translateY+t,r=e<this._buffers[0].translateY+t;(n||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=yi.debounce(this._debouncerScrollFinish,un.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=yi.debounce(this._debouncerUpdateClones,un.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 n=0;n<this.bufferSize;n++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const s=`vaadin-infinite-scroller-item-content-${Cu()}`,o=document.createElement("slot");o.setAttribute("name",s),o._itemWrapper=r,t.appendChild(o),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(n=>{e.instance[n]=t[n]})}_updateClones(e){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((n,r)=>{if(!n.updated){const s=this._firstIndex+this.bufferSize*r;[...n.children].forEach((o,a)=>{const l=o._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,s+a)}),n.updated=!0}})}_isVisible(e,t){const n=e.getBoundingClientRect();return n.bottom>t.top&&n.top<t.bottom}}/**
|
|
3271
|
+
* @license
|
|
3272
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3273
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3274
|
+
*/const hc=document.createElement("template");hc.innerHTML=`
|
|
3275
|
+
<style>
|
|
3276
|
+
:host {
|
|
3277
|
+
--vaadin-infinite-scroller-item-height: 270px;
|
|
3278
|
+
position: absolute;
|
|
3279
|
+
top: 0;
|
|
3280
|
+
left: 0;
|
|
3281
|
+
right: 0;
|
|
3282
|
+
bottom: 0;
|
|
3283
|
+
height: 100%;
|
|
3284
|
+
}
|
|
3285
|
+
</style>
|
|
3286
|
+
`;class _g extends cc{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(hc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=lc(t)}}Se(_g);/**
|
|
3287
|
+
* @license
|
|
3288
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3289
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3290
|
+
*/const dc=document.createElement("template");dc.innerHTML=`
|
|
3291
|
+
<style>
|
|
3292
|
+
:host {
|
|
3293
|
+
--vaadin-infinite-scroller-item-height: 80px;
|
|
3294
|
+
width: 50px;
|
|
3295
|
+
display: block;
|
|
3296
|
+
height: 100%;
|
|
3297
|
+
position: absolute;
|
|
3298
|
+
right: 0;
|
|
3299
|
+
transform: translateX(100%);
|
|
3300
|
+
-webkit-tap-highlight-color: transparent;
|
|
3301
|
+
-webkit-user-select: none;
|
|
3302
|
+
-moz-user-select: none;
|
|
3303
|
+
user-select: none;
|
|
3304
|
+
/* Center the year scroller position. */
|
|
3305
|
+
--vaadin-infinite-scroller-buffer-offset: 50%;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
:host::before {
|
|
3309
|
+
content: '';
|
|
3310
|
+
display: block;
|
|
3311
|
+
background: transparent;
|
|
3312
|
+
width: 0;
|
|
3313
|
+
height: 0;
|
|
3314
|
+
position: absolute;
|
|
3315
|
+
left: 0;
|
|
3316
|
+
top: 50%;
|
|
3317
|
+
transform: translateY(-50%);
|
|
3318
|
+
border-width: 6px;
|
|
3319
|
+
border-style: solid;
|
|
3320
|
+
border-color: transparent;
|
|
3321
|
+
border-left-color: #000;
|
|
3322
|
+
}
|
|
3323
|
+
</style>
|
|
3324
|
+
`;class gg extends cc{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(dc.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,n=new Date(t);return n.setFullYear(parseInt(e)+t.getFullYear()),n.getFullYear()}}Se(gg);/**
|
|
3325
|
+
* @license
|
|
3326
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3327
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3328
|
+
*/class yg extends ut(Ve){static get is(){return"vaadin-date-picker-year"}static get template(){return ht`
|
|
3329
|
+
<style>
|
|
3330
|
+
:host {
|
|
3331
|
+
display: block;
|
|
3332
|
+
height: 100%;
|
|
3333
|
+
}
|
|
3334
|
+
</style>
|
|
3335
|
+
<div part="year-number">[[year]]</div>
|
|
3336
|
+
<div part="year-separator" aria-hidden="true"></div>
|
|
3337
|
+
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}}Se(yg);/**
|
|
3338
|
+
@license
|
|
3339
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3340
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3341
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3342
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3343
|
+
Code distributed by Google as part of the polymer project is also
|
|
3344
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3345
|
+
*/function js(i,e,t,n,r){let s;r&&(s=typeof t=="object"&&t!==null,s&&(n=i.__dataTemp[e]));let o=n!==t&&(n===n||t===t);return s&&o&&(i.__dataTemp[e]=t),o}const Vs=ee(i=>{class e extends i{_shouldPropertyChange(n,r,s){return js(this,n,r,s,!0)}}return e}),bg=ee(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(n,r,s){return js(this,n,r,s,this.mutableData)}}return e});Vs._mutablePropertyChange=js;/**
|
|
3346
|
+
@license
|
|
3347
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3348
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3349
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3350
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3351
|
+
Code distributed by Google as part of the polymer project is also
|
|
3352
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3353
|
+
*/let cs=null;function hs(){return cs}hs.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:hs,writable:!0}});const fc=Ps(hs),vg=Vs(fc);function xg(i,e){cs=i,Object.setPrototypeOf(i,e.prototype),new e,cs=null}const Eg=Ps(class{});function wg(i,e){for(let t=0;t<e.length;t++){let n=e[t];if(!!i!=!!n.__hideTemplateChildren__)if(n.nodeType===Node.TEXT_NODE)i?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(i)n.__polymerReplaced__=document.createComment("hidden-slot"),ae(ae(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const r=n.__polymerReplaced__;r&&ae(ae(r).parentNode).replaceChild(n,r)}else n.style&&(i?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=i,n._showHideChildren&&n._showHideChildren(i)}}class Ye extends Eg{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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let n in this.__hostProps)this._setPendingProperty(n,this.__dataHost["_host_"+n]);for(let n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,n){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,r=>{r.model=this,n(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,n)}}_showHideChildren(e){wg(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}Ye.prototype.__dataHost;Ye.prototype.__templatizeOptions;Ye.prototype._methodHost;Ye.prototype.__templatizeOwner;Ye.prototype.__hostProps;const Ag=Vs(Ye);function ka(i){let e=i.__dataHost;return e&&e._methodHost||e}function Sg(i,e,t){let n=t.mutableData?Ag:Ye;ds.mixin&&(n=ds.mixin(n));let r=class extends n{};return r.prototype.__templatizeOptions=t,r.prototype._bindTemplate(i),Pg(r,i,e,t),r}function Cg(i,e,t,n){let r=t.forwardHostProp;if(r&&e.hasHostProps){const s=i.localName=="template";let o=e.templatizeTemplateClass;if(!o){if(s){let l=t.mutableData?vg:fc;class u extends l{}o=e.templatizeTemplateClass=u}else{const l=i.constructor;class u extends l{}o=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)o.prototype._addPropertyEffect("_host_"+l,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$g(l,r)}),o.prototype._createNotifyingProperty("_host_"+l);Kl&&n&&kg(e,t,n)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),s)xg(i,o),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,o.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in i){const u=i[l];delete i[l],i.__data[l]=u}}}}function $g(i,e){return function(n,r,s){e.call(n.__templatizeOwner,r.substring(6),s[r])}}function Pg(i,e,t,n){let r=t.hostProps||{};for(let s in n.instanceProps){delete r[s];let o=n.notifyInstanceProp;o&&i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Tg(s,o)})}if(n.forwardHostProp&&e.__dataHost)for(let s in r)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Dg()})}function Tg(i,e){return function(n,r,s){e.call(n.__templatizeOwner,n,r,s[r])}}function Dg(){return function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}}function ds(i,e,t){if(an&&!ka(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:Ye)._parseTemplate(i),s=r.templatizeInstanceClass;s||(s=Sg(i,r,t),r.templatizeInstanceClass=s);const o=ka(i);Cg(i,r,t,o);let a=class extends s{};return a.prototype._methodHost=o,a.prototype.__dataHost=i,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=r.hostProps,a=a,a}function kg(i,e,t){const n=t.constructor._properties,{propertyEffects:r}=i,{instanceProps:s}=e;for(let o in r)if(!n[o]&&!(s&&s[o])){const a=r[o];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Mg(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=ae(e).parentNode;return null}/**
|
|
3354
|
+
@license
|
|
3355
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3356
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3357
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3358
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3359
|
+
Code distributed by Google as part of the polymer project is also
|
|
3360
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3361
|
+
*/class pn{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,Ai.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ai.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,n){return e instanceof pn?e._cancelAsync():e=new pn,e.setConfig(t,n),e}}let Ai=new Set;const Og=function(i){Ai.add(i)},Ng=function(){const i=!!Ai.size;return Ai.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
|
|
3362
|
+
@license
|
|
3363
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3364
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3365
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3366
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3367
|
+
Code distributed by Google as part of the polymer project is also
|
|
3368
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3369
|
+
*/const pc=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Ng();while(i||e)};/**
|
|
3370
|
+
@license
|
|
3371
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3372
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3373
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3374
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3375
|
+
Code distributed by Google as part of the polymer project is also
|
|
3376
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3377
|
+
*/let Ma=!1;function Ig(){if(Xl&&!ql){if(!Ma){Ma=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
|
|
3378
|
+
@license
|
|
3379
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3380
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3381
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3382
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3383
|
+
Code distributed by Google as part of the polymer project is also
|
|
3384
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3385
|
+
*/const Hg=bg(Ve);class Oa extends Hg{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:!Lo,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(),Ig()||(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 n={};n[this.as]=!0,n[this.indexAs]=!0,n[this.itemsIndexAs]=!0,this.__ctor=ds(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(r,s){let o=this.__instances;for(let a=0,l;a<o.length&&(l=o[a]);a++)l.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,o){if(Zf(this.as,s)){let a=r[this.itemsIndexAs];s==this.as&&(this.items[a]=o);let l=mi(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,n=this.__getMethodHost();return function(){return n[t].apply(n,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 n=0;n<t.length;n++)e.indexOf(t[n])===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=pn.debounce(this.__renderDebouncer,t>0?rp.after(t):ou,e.bind(this)),Og(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),pc()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length);this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Lo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=n;return this.__filterFn&&(t=t.filter((n,r,s)=>this.__filterFn(e[n],r,s))),this.__sortFn&&t.sort((n,r)=>this.__sortFn(e[n],e[r])),t}__calculateLimit(e){let t=e;const n=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-n,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-n,0),this.__chunkCount),t=Math.min(n+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,n){const r=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let o=this.__instances[s],a=n[s],l=e[a];r[a]=s,o?(o._setPendingProperty(this.as,l),o._setPendingProperty(this.indexAs,s),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(l,s,a)}for(let o=this.__instances.length-1;o>=s;o--)this.__detachAndRemoveInstance(o)}__detachInstance(e){let t=this.__instances[e];const n=ae(t.root);for(let r=0;r<t.children.length;r++){let s=t.children[r];n.appendChild(s)}return t}__attachInstance(e,t){let n=this.__instances[e];t.insertBefore(n.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,n){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}__insertInstance(e,t,n){const r=this.__stampInstance(e,t,n);let s=this.__instances[t+1],o=s?s.children[0]:this;return ae(ae(this).parentNode).insertBefore(r.root,o),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 n=e.slice(6),r=n.indexOf("."),s=r<0?n:n.substring(0,r);if(s==parseInt(s,10)){let o=r<0?"":n.substring(r+1);this.__handleObservedPaths(o);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(o?"."+o:"");l._setPendingPropertyOrPath(u,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 Mg(this.template,e)}}customElements.define(Oa.is,Oa);/**
|
|
3386
|
+
* @license
|
|
3387
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3388
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3389
|
+
*/const Lg=i=>class extends Bs(i){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},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(t=>Oe(t.date,this.focusedDate))}ready(){super.ready(),$e(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,n,r){const s=new Date(0,0);s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()),s.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),n&&r&&n.getMonth()===r.getMonth()&&n.getMonth()===t.getMonth()&&r.getDate()-n.getDate()>=0?!1:!wi(s,n,r)&&!wi(o,n,r)}_getTitle(t,n){if(!(t===void 0||n===void 0))return n.formatTitle(n.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,n){t.setDate(t.getDate()+n)}_applyFirstDayOfWeek(t,n){if(!(t===void 0||n===void 0))return t.slice(n).concat(t.slice(0,n))}_getWeekDayNames(t,n){if(t===void 0||n===void 0)return[];const{weekdays:r,weekdaysShort:s,firstDayOfWeek:o}=t,a=this._applyFirstDayOfWeek(s,o);return this._applyFirstDayOfWeek(r,o).map((u,c)=>({weekDay:u,weekDayShort:a[c]}))}__focusedDateChanged(t,n){Array.isArray(n)&&n.some(r=>Oe(r,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,n){return t&&n&&n.firstDayOfWeek===1}_isToday(t){return Oe(new Date,t)}_getDays(t,n){if(t===void 0||n===void 0)return[];const r=new Date(0,0);for(r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);r.getDay()!==n.firstDayOfWeek;)this._dateAdd(r,-1);const s=[],o=r.getMonth(),a=t.getMonth();for(;r.getMonth()===a||r.getMonth()===o;)s.push(r.getMonth()===a?new Date(r.getTime()):null),this._dateAdd(r,1);return s}_getWeeks(t){return t.reduce((n,r,s)=>(s%7===0&&n.push([]),n[n.length-1].push(r),n),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const n=t.reduce((r,s)=>!r&&s?s:r);return pg(n)}__getDayAriaLabel(t){if(!t)return"";let n=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(n+=`, ${this.i18n.today}`),n}};/**
|
|
3390
|
+
* @license
|
|
3391
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3392
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3393
|
+
*/const Bg=Ti`
|
|
3394
|
+
:host {
|
|
3395
|
+
display: block;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
#monthGrid {
|
|
3399
|
+
width: 100%;
|
|
3400
|
+
border-collapse: collapse;
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
#days-container tr,
|
|
3404
|
+
#weekdays-container tr {
|
|
3405
|
+
display: flex;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
[part~='date'] {
|
|
3409
|
+
outline: none;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
[part~='disabled'] {
|
|
3413
|
+
pointer-events: none;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
[part='week-number'][hidden],
|
|
3417
|
+
[part='weekday'][hidden] {
|
|
3418
|
+
display: none;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
[part='weekday'],
|
|
3422
|
+
[part~='date'] {
|
|
3423
|
+
width: calc(100% / 7);
|
|
3424
|
+
padding: 0;
|
|
3425
|
+
font-weight: normal;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
[part='weekday']:empty,
|
|
3429
|
+
[part='week-number'] {
|
|
3430
|
+
width: 12.5%;
|
|
3431
|
+
flex-shrink: 0;
|
|
3432
|
+
padding: 0;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
3436
|
+
:host([week-numbers]) [part~='date'] {
|
|
3437
|
+
width: 12.5%;
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
@media (forced-colors: active) {
|
|
3441
|
+
[part~='date'][part~='focused'] {
|
|
3442
|
+
outline: 1px solid;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
[part~='date'][part~='selected'] {
|
|
3446
|
+
outline: 3px solid;
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
`;/**
|
|
3450
|
+
* @license
|
|
3451
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3452
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3453
|
+
*/K("vaadin-month-calendar",Bg,{moduleId:"vaadin-month-calendar-styles"});class Rg extends Lg(ut(Ve)){static get template(){return ht`
|
|
3454
|
+
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3455
|
+
<table
|
|
3456
|
+
id="monthGrid"
|
|
3457
|
+
role="grid"
|
|
3458
|
+
aria-labelledby="month-header"
|
|
3459
|
+
on-touchend="_preventDefault"
|
|
3460
|
+
on-touchstart="_onMonthGridTouchStart"
|
|
3461
|
+
>
|
|
3462
|
+
<thead id="weekdays-container">
|
|
3463
|
+
<tr role="row" part="weekdays">
|
|
3464
|
+
<th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
|
|
3465
|
+
<template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
|
|
3466
|
+
<th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
|
|
3467
|
+
[[item.weekDayShort]]
|
|
3468
|
+
</th>
|
|
3469
|
+
</template>
|
|
3470
|
+
</tr>
|
|
3471
|
+
</thead>
|
|
3472
|
+
<tbody id="days-container">
|
|
3473
|
+
<template is="dom-repeat" items="[[_weeks]]" as="week">
|
|
3474
|
+
<tr role="row">
|
|
3475
|
+
<td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
|
|
3476
|
+
[[__getWeekNumber(week)]]
|
|
3477
|
+
</td>
|
|
3478
|
+
<template is="dom-repeat" items="[[week]]">
|
|
3479
|
+
<td
|
|
3480
|
+
role="gridcell"
|
|
3481
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
|
|
3482
|
+
date="[[item]]"
|
|
3483
|
+
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3484
|
+
disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
|
|
3485
|
+
aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
|
|
3486
|
+
aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
|
|
3487
|
+
aria-label$="[[__getDayAriaLabel(item)]]"
|
|
3488
|
+
>[[_getDate(item)]]</td
|
|
3489
|
+
>
|
|
3490
|
+
</template>
|
|
3491
|
+
</tr>
|
|
3492
|
+
</template>
|
|
3493
|
+
</tbody>
|
|
3494
|
+
</table>
|
|
3495
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_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,n,r,s){const o=["date"];return this.__isDayDisabled(e,r,s)&&o.push("disabled"),this.__isDayFocused(e,t)&&o.push("focused"),this.__isDaySelected(e,n)&&o.push("selected"),this._isToday(e)&&o.push("today"),o.join(" ")}__isDayFocused(e,t){return Oe(e,t)}__isDaySelected(e,t){return Oe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,n){return!wi(e,t,n)}__getDayAriaDisabled(e,t,n){if(!(e===void 0||t===void 0||n===void 0)&&this.__isDayDisabled(e,t,n))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}Se(Rg);/**
|
|
3496
|
+
* @license
|
|
3497
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3498
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3499
|
+
*/class mc{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)}}/**
|
|
3500
|
+
* @license
|
|
3501
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3502
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3503
|
+
*/const zg=i=>class extends i{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},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)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(t=>t.focusableDateElement).find(Boolean)}_addListeners(){Ru(this.$.scrollers,"pan-y"),$e(this.$.scrollers,"track",this._track.bind(this)),$e(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),$e(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),$e(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new mc(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new Ze(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",n=>this.__onTodayButtonKeyDown(n)),$e(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Ze(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",n=>this.__onCancelButtonKeyDown(n)),$e(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,n){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+r,n),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ze(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",n=>{this.__onMonthCalendarKeyDown(n)}),t.addEventListener("init-done",()=>{const n=[...this.querySelectorAll("vaadin-month-calendar")];n.forEach(r=>{r.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=n}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Ze(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),$e(t,"tap",n=>{this._onYearTap(n)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,n){t&&(t.textContent=n&&n.cancel)}__updateTodayButton(t,n,r,s){t&&(t.textContent=n&&n.today,t.disabled=!this._isTodayAllowed(r,s))}__updateCalendars(t,n,r,s,o,a,l,u,c){t&&t.length&&t.forEach(h=>{h.i18n=n,h.minDate=r,h.maxDate=s,h.focusedDate=a,h.selectedDate=o,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(t,n,r){t&&t.length&&t.forEach(s=>{s.selectedDate=n,r?s.setAttribute("theme",r):s.removeAttribute("theme")})}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,n=!0){if(!t)return;const r=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(r+u,n);return}const s=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<r;s?this._scrollToPosition(r,n):l&&this._scrollToPosition(r-a+1,n)}_calculateWeekScrollOffset(t){const n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(1);let r=0;for(;n.getDate()<t.getDate();)n.setDate(n.getDate()+1),n.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+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=yi.debounce(this._debouncer,un.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,n,r){return t&&n&&typeof n.formatDate=="function"?n.formatDate(ac(t)):r}_onTodayTap(){const t=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const r=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+r*12,!0)}}_scrollToPosition(t,n){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!n){this._monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let r;this._revealPromise=new Promise(u=>{r=u});const s=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const c=u-o;if(c<this.scrollDuration){const h=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(t,n){return Math.min(n.max,Math.max(n.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const n=this._translateX+t.detail.ddx;this._translateX=this._limit(n,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?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(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return lc(t).getFullYear()}_differenceInMonths(t,n){return(t.getFullYear()-n.getFullYear())*12-n.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Oe(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let n=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),n=!0;break;case"ArrowUp":this._moveFocusByDays(-7),n=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),n=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),n=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),n=!0;break;case" ":this.__toggleDate(this.focusedDate),n=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),n=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),n=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),n=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),n=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}n&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,n){switch(t.stopPropagation(),n){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const n=this.focusableDateElement;n&&Oe(n.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,n.focus())}}focusDate(t,n){return He(this,null,function*(){const r=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,n||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return He(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(n=>{Xu(this,()=>{pc(),n()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(oc(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,n,r){this._dateAllowed(t)?this.focusDate(t,r):this._dateAllowed(this.focusedDate)?n>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,n){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+t),n&&r.setDate(this.focusedDate.getDate()+n),r}_moveFocusByDays(t){const n=this._getDateDiff(0,t);this._focusAllowedDate(n,t,!1)}_moveFocusByMonths(t){const n=this._getDateDiff(t),r=n.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),n.setDate(this._focusedMonthDate),n.getMonth()!==r&&n.setDate(0),this._focusAllowedDate(n,t,!0)}_moveFocusInsideMonth(t,n){const r=new Date(0,0);r.setFullYear(t.getFullYear()),n==="minDate"?(r.setMonth(t.getMonth()),r.setDate(1)):(r.setMonth(t.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(t)?this.focusDate(this[n]):this._focusClosestDate(t)}_dateAllowed(t,n=this.minDate,r=this.maxDate){return(!n||t>=n)&&(!r||t<=r)}_isTodayAllowed(t,n){const r=new Date,s=new Date(0,0);return s.setFullYear(r.getFullYear()),s.setMonth(r.getMonth()),s.setDate(r.getDate()),this._dateAllowed(s,t,n)}};/**
|
|
3504
|
+
* @license
|
|
3505
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3506
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3507
|
+
*/const Fg=Ti`
|
|
3508
|
+
:host {
|
|
3509
|
+
display: flex;
|
|
3510
|
+
flex-direction: column;
|
|
3511
|
+
height: 100%;
|
|
3512
|
+
width: 100%;
|
|
3513
|
+
outline: none;
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
[part='overlay-header'] {
|
|
3517
|
+
display: flex;
|
|
3518
|
+
flex-shrink: 0;
|
|
3519
|
+
flex-wrap: nowrap;
|
|
3520
|
+
align-items: center;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
:host(:not([fullscreen])) [part='overlay-header'] {
|
|
3524
|
+
display: none;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
[part='label'] {
|
|
3528
|
+
flex-grow: 1;
|
|
3529
|
+
}
|
|
3530
|
+
|
|
3531
|
+
[hidden] {
|
|
3532
|
+
display: none !important;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
[part='years-toggle-button'] {
|
|
3536
|
+
display: flex;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
#scrollers {
|
|
3540
|
+
display: flex;
|
|
3541
|
+
height: 100%;
|
|
3542
|
+
width: 100%;
|
|
3543
|
+
position: relative;
|
|
3544
|
+
overflow: hidden;
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
3548
|
+
right: 50px;
|
|
3549
|
+
transform: none !important;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
:host([desktop]) ::slotted([slot='years']) {
|
|
3553
|
+
transform: none !important;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
:host(.animate) ::slotted([slot='months']),
|
|
3557
|
+
:host(.animate) ::slotted([slot='years']) {
|
|
3558
|
+
transition: all 200ms;
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
[part='toolbar'] {
|
|
3562
|
+
display: flex;
|
|
3563
|
+
justify-content: space-between;
|
|
3564
|
+
z-index: 2;
|
|
3565
|
+
flex-shrink: 0;
|
|
3566
|
+
}
|
|
3567
|
+
`;/**
|
|
3568
|
+
* @license
|
|
3569
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3570
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3571
|
+
*/K("vaadin-date-picker-overlay-content",Fg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ug extends zg(Wt(ut(Sn(Ve)))){static get template(){return ht`
|
|
3572
|
+
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3573
|
+
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3574
|
+
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
3575
|
+
<div part="toggle-button"></div>
|
|
3576
|
+
|
|
3577
|
+
<div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
|
|
3578
|
+
[[_yearAfterXMonths(_visibleMonthIndex)]]
|
|
3579
|
+
</div>
|
|
3580
|
+
</div>
|
|
3581
|
+
|
|
3582
|
+
<div id="scrollers">
|
|
3583
|
+
<slot name="months"></slot>
|
|
3584
|
+
<slot name="years"></slot>
|
|
3585
|
+
</div>
|
|
3586
|
+
|
|
3587
|
+
<div on-touchend="_preventDefault" role="toolbar" part="toolbar">
|
|
3588
|
+
<slot name="today-button"></slot>
|
|
3589
|
+
<slot name="cancel-button"></slot>
|
|
3590
|
+
</div>
|
|
3591
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Se(Ug);/**
|
|
3592
|
+
* @license
|
|
3593
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3594
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3595
|
+
*/const _c=ee(i=>class extends Bs(Uu(i)){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(t,n){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):n&&this._removeFocusListeners(n)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,n){super._disabledChanged(t,n),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
|
|
3596
|
+
* @license
|
|
3597
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3598
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3599
|
+
*/const pr=new WeakMap;function jg(i){return pr.has(i)||pr.set(i,new Set),pr.get(i)}function Vg(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Yg=ee(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),n=jg(t);this.slotStyles.forEach(r=>{n.has(r)||(Vg(r,t),n.add(r))})}});/**
|
|
3600
|
+
* @license
|
|
3601
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3602
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3603
|
+
*/const gc=ee(i=>class extends i{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(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,n){t?this._addInputListeners(t):n&&this._removeInputListeners(n)}_hasInputValueChanged(t,n){(t||n)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const n=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=n.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,n){this._toggleHasValue(this._hasValue),!(t===""&&n===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const n=t.composedPath()[0];this._hasInputValue=n.value.length>0}});/**
|
|
3604
|
+
* @license
|
|
3605
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3606
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3607
|
+
*/const Wg=i=>class extends gc(Pn(i)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),I_||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3608
|
+
* @license
|
|
3609
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
3610
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3611
|
+
*/const mr=new Map;function Ys(i){return mr.has(i)||mr.set(i,new WeakMap),mr.get(i)}function yc(i,e){i&&i.removeAttribute(e)}function bc(i,e){if(!i||!e)return;const t=Ys(e);if(t.has(i))return;const n=Ts(i.getAttribute(e));t.set(i,new Set(n))}function Gg(i,e){if(!i)return;const t=Ys(e),n=t.get(i);!n||n.size===0?i.removeAttribute(e):Su(i,e,Cn(n)),t.delete(i)}function _r(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:n,oldId:r,fromUser:s}=t,o=Ys(e),a=o.get(i);if(!s&&a){r&&a.delete(r),n&&a.add(n);return}s&&(a?n||o.delete(i):bc(i,e),yc(i,e)),km(i,e,r);const l=n||Cn(a);l&&Su(i,e,l)}function qg(i,e){bc(i,e),yc(i,e)}/**
|
|
3612
|
+
* @license
|
|
3613
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3614
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3615
|
+
*/class Xg{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 n=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,n,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?(qg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Gg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,n){_r(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:n})}__setErrorIdToAriaAttribute(e,t){_r(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){_r(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")))}}/**
|
|
3616
|
+
* @license
|
|
3617
|
+
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3618
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3619
|
+
*/class Ws extends Ze{constructor(e,t,n,r={}){super(e,t,n,Mi(ki({},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(n=>{const r=n.target,s=r===this.node;n.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)}}/**
|
|
3620
|
+
* @license
|
|
3621
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3622
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3623
|
+
*/class Kg extends Ws{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:n}=this,r=!!(n&&t&&t.trim()!=="");e&&(e.textContent=r?t:"",e.hidden=!r,r?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}/**
|
|
3624
|
+
* @license
|
|
3625
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3626
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3627
|
+
*/class Jg extends Ws{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)}}/**
|
|
3628
|
+
* @license
|
|
3629
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3630
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3631
|
+
*/class Zg extends Ws{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)}}/**
|
|
3632
|
+
* @license
|
|
3633
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3634
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3635
|
+
*/const Qg=ee(i=>class extends Wt(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Zg(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
|
|
3636
|
+
* @license
|
|
3637
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3638
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3639
|
+
*/const vc=ee(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
|
|
3640
|
+
* @license
|
|
3641
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3642
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3643
|
+
*/const ey=i=>class extends vc(Qg(Wt(i))){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 Xg(this),this._helperController=new Jg(this),this._errorController=new Kg(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:n,node:r}=t.detail;this.__labelChanged(n,r)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:n,node:r}=t.detail;this.toggleAttribute("has-helper",n),this.__helperChanged(n,r)})}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(t,n){t?this._fieldAriaController.setHelperId(n.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,n){t?this._fieldAriaController.setLabelId(n.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const n=this._errorNode;this._fieldAriaController.setErrorId(n&&n.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3644
|
+
* @license
|
|
3645
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3646
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3647
|
+
*/const ty=ee(i=>class extends i{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(t){t&&(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(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((n,r)=>{this._delegateAttribute(n,t[r])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((n,r)=>{this._delegateProperty(n,t[r])})}_delegateAttribute(t,n){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",n?"true":!1),typeof n=="boolean"?this.stateTarget.toggleAttribute(t,n):n?this.stateTarget.setAttribute(t,n):this.stateTarget.removeAttribute(t))}_delegateProperty(t,n){this.stateTarget&&(this.stateTarget[t]=n)}});/**
|
|
3648
|
+
* @license
|
|
3649
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3650
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3651
|
+
*/const xc=ee(i=>class extends ty(vc(gc(i))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(n=>this.__isValidConstraint(n))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...n){if(!t)return;const r=this._hasValidConstraints(n),s=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
|
|
3652
|
+
* @license
|
|
3653
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3654
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3655
|
+
*/const iy=i=>class extends Yg(_c(xc(ey(Wg(Pn(i)))))){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[`
|
|
3656
|
+
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3657
|
+
font: inherit;
|
|
3658
|
+
color: inherit;
|
|
3659
|
+
}
|
|
3660
|
+
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=yi.debounce(this._preventInputDebouncer,un.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const n=t.clipboardData.getData("text");this.__allowedTextRegExp.test(n)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const n=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(n)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(n){console.error(n)}}};/**
|
|
3661
|
+
* @license
|
|
3662
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3663
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3664
|
+
*/class ny extends Ze{constructor(e,t){super(e,"input","input",{initializer:(n,r)=>{r.value&&(n.value=r.value),r.type&&n.setAttribute("type",r.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0})}}/**
|
|
3665
|
+
* @license
|
|
3666
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3667
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3668
|
+
*/class ry{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",n=>{this.__initLabel(n.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)}}/**
|
|
3669
|
+
* @license
|
|
3670
|
+
* Copyright 2019 Google LLC
|
|
3671
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3672
|
+
*/const Ji=window,Gs=Ji.ShadowRoot&&(Ji.ShadyCSS===void 0||Ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qs=Symbol(),Na=new WeakMap;let Ec=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==qs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Gs&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Na.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Na.set(t,e))}return e}toString(){return this.cssText}};const sy=i=>new Ec(typeof i=="string"?i:i+"",void 0,qs),Xs=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,r,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new Ec(t,i,qs)},oy=(i,e)=>{Gs?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=Ji.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},Ia=Gs?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return sy(t)})(i):i;/**
|
|
3673
|
+
* @license
|
|
3674
|
+
* Copyright 2017 Google LLC
|
|
3675
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3676
|
+
*/var gr;const mn=window,Ha=mn.trustedTypes,ay=Ha?Ha.emptyScript:"",La=mn.reactiveElementPolyfillSupport,fs={toAttribute(i,e){switch(e){case Boolean:i=i?ay:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(n){t=null}}return t}},wc=(i,e)=>e!==i&&(e==e||i==i),yr={attribute:!0,type:String,converter:fs,reflect:!1,hasChanged:wc},ps="finalized";let vt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=yr){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const s=this[e];this[t]=r,this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||yr}static finalize(){if(this.hasOwnProperty(ps))return!1;this[ps]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(Ia(r))}else e!==void 0&&t.push(Ia(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return oy(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=yr){var r;const s=this.constructor._$Ep(e,n);if(s!==void 0&&n.reflect===!0){const o=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:fs).toAttribute(t,n.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,s=r._$Ev.get(e);if(s!==void 0&&this._$El!==s){const o=r.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?o.converter:fs;this._$El=s,this[s]=a.fromAttribute(t,o.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||wc)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){return He(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}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;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};vt[ps]=!0,vt.elementProperties=new Map,vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},La==null||La({ReactiveElement:vt}),((gr=mn.reactiveElementVersions)!==null&&gr!==void 0?gr:mn.reactiveElementVersions=[]).push("1.6.3");/**
|
|
3677
|
+
* @license
|
|
3678
|
+
* Copyright 2017 Google LLC
|
|
3679
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3680
|
+
*/var br;const _n=window,Bt=_n.trustedTypes,Ba=Bt?Bt.createPolicy("lit-html",{createHTML:i=>i}):void 0,ms="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ac="?"+ze,ly=`<${Ac}>`,at=document,Si=()=>at.createComment(""),Ci=i=>i===null||typeof i!="object"&&typeof i!="function",Sc=Array.isArray,uy=i=>Sc(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",vr=`[
|
|
3681
|
+
\f\r]`,ti=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ra=/-->/g,za=/>/g,Ke=RegExp(`>|${vr}(?:([^\\s"'>=/]+)(${vr}*=${vr}*(?:[^
|
|
3682
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Fa=/'/g,Ua=/"/g,Cc=/^(?:script|style|textarea|title)$/i,Rt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),ja=new WeakMap,it=at.createTreeWalker(at,129,null,!1);function $c(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ba!==void 0?Ba.createHTML(e):e}const cy=(i,e)=>{const t=i.length-1,n=[];let r,s=e===2?"<svg>":"",o=ti;for(let a=0;a<t;a++){const l=i[a];let u,c,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,c=o.exec(l),c!==null);)d=o.lastIndex,o===ti?c[1]==="!--"?o=Ra:c[1]!==void 0?o=za:c[2]!==void 0?(Cc.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=Ke):c[3]!==void 0&&(o=Ke):o===Ke?c[0]===">"?(o=r!=null?r:ti,h=-1):c[1]===void 0?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=c[3]===void 0?Ke:c[3]==='"'?Ua:Fa):o===Ua||o===Fa?o=Ke:o===Ra||o===za?o=ti:(o=Ke,r=void 0);const f=o===Ke&&i[a+1].startsWith("/>")?" ":"";s+=o===ti?l+ly:h>=0?(n.push(u),l.slice(0,h)+ms+l.slice(h)+ze+f):l+ze+(h===-2?(n.push(void 0),a):f)}return[$c(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class $i{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[u,c]=cy(e,t);if(this.el=$i.createElement(u,n),it.currentNode=this.el.content,t===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(r=it.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const h=[];for(const d of r.getAttributeNames())if(d.endsWith(ms)||d.startsWith(ze)){const f=c[o++];if(h.push(d),f!==void 0){const p=r.getAttribute(f.toLowerCase()+ms).split(ze),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:p,ctor:g[1]==="."?dy:g[1]==="?"?py:g[1]==="@"?my:kn})}else l.push({type:6,index:s})}for(const d of h)r.removeAttribute(d)}if(Cc.test(r.tagName)){const h=r.textContent.split(ze),d=h.length-1;if(d>0){r.textContent=Bt?Bt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],Si()),it.nextNode(),l.push({type:2,index:++s});r.append(h[d],Si())}}}else if(r.nodeType===8)if(r.data===Ac)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(ze,h+1))!==-1;)l.push({type:7,index:s}),h+=ze.length-1}s++}}static createElement(e,t){const n=at.createElement("template");return n.innerHTML=e,n}}function zt(i,e,t=i,n){var r,s,o,a;if(e===Rt)return e;let l=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const u=Ci(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(i),l._$AT(i,t,n)),n!==void 0?((o=(a=t)._$Co)!==null&&o!==void 0?o:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=zt(i,l._$AS(i,e.values),l,n)),e}class hy{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:n},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:at).importNode(n,!0);it.currentNode=s;let o=it.nextNode(),a=0,l=0,u=r[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Di(o,o.nextSibling,this,e):u.type===1?c=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(c=new _y(o,this,e)),this._$AV.push(c),u=r[++l]}a!==(u==null?void 0:u.index)&&(o=it.nextNode(),a++)}return it.currentNode=at,s}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Di{constructor(e,t,n,r){var s;this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(s=r==null?void 0:r.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}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=zt(this,e,t),Ci(e)?e===re||e==null||e===""?(this._$AH!==re&&this._$AR(),this._$AH=re):e!==this._$AH&&e!==Rt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):uy(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==re&&Ci(this._$AH)?this._$AA.nextSibling.data=e:this.$(at.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=$i.createElement($c(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(n);else{const o=new hy(s,this),a=o.u(this.options);o.v(n),this.$(a),this._$AH=o}}_$AC(e){let t=ja.get(e.strings);return t===void 0&&ja.set(e.strings,t=new $i(e)),t}T(e){Sc(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const s of e)r===t.length?t.push(n=new Di(this.k(Si()),this.k(Si()),this,this.options)):n=t[r],n._$AI(s),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.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._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class kn{constructor(e,t,n,r,s){this.type=1,this._$AH=re,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=re}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const s=this.strings;let o=!1;if(s===void 0)e=zt(this,e,t,0),o=!Ci(e)||e!==this._$AH&&e!==Rt,o&&(this._$AH=e);else{const a=e;let l,u;for(e=s[0],l=0;l<s.length-1;l++)u=zt(this,a[n+l],t,l),u===Rt&&(u=this._$AH[l]),o||(o=!Ci(u)||u!==this._$AH[l]),u===re?e=re:e!==re&&(e+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!r&&this.j(e)}j(e){e===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class dy extends kn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===re?void 0:e}}const fy=Bt?Bt.emptyScript:"";class py extends kn{constructor(){super(...arguments),this.type=4}j(e){e&&e!==re?this.element.setAttribute(this.name,fy):this.element.removeAttribute(this.name)}}class my extends kn{constructor(e,t,n,r,s){super(e,t,n,r,s),this.type=5}_$AI(e,t=this){var n;if((e=(n=zt(this,e,t,0))!==null&&n!==void 0?n:re)===Rt)return;const r=this._$AH,s=e===re&&r!==re||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==re&&(r===re||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class _y{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){zt(this,e)}}const Va=_n.litHtmlPolyfillSupport;Va==null||Va($i,Di),((br=_n.litHtmlVersions)!==null&&br!==void 0?br:_n.litHtmlVersions=[]).push("2.8.0");const gy=(i,e,t)=>{var n,r;const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let o=s._$litPart$;if(o===void 0){const a=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=o=new Di(e.insertBefore(Si(),a),a,void 0,t!=null?t:{})}return o._$AI(i),o};/**
|
|
3683
|
+
* @license
|
|
3684
|
+
* Copyright 2017 Google LLC
|
|
3685
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3686
|
+
*/var xr,Er;class Zi extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=gy(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Rt}}Zi.finalized=!0,Zi._$litElement$=!0,(xr=globalThis.litElementHydrateSupport)===null||xr===void 0||xr.call(globalThis,{LitElement:Zi});const Ya=globalThis.litElementPolyfillSupport;Ya==null||Ya({LitElement:Zi});((Er=globalThis.litElementVersions)!==null&&Er!==void 0?Er:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
3687
|
+
* @license
|
|
3688
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3689
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3690
|
+
*/const yy=Xs`
|
|
3691
|
+
[part='clear-button'] {
|
|
3692
|
+
display: none;
|
|
3693
|
+
cursor: default;
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
[part='clear-button']::before {
|
|
3697
|
+
content: '\\2715';
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
3701
|
+
display: block;
|
|
3702
|
+
}
|
|
3703
|
+
`;/**
|
|
3704
|
+
* @license
|
|
3705
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3706
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3707
|
+
*/const by=Xs`
|
|
3708
|
+
:host {
|
|
3709
|
+
display: inline-flex;
|
|
3710
|
+
outline: none;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
:host::before {
|
|
3714
|
+
content: '\\2003';
|
|
3715
|
+
width: 0;
|
|
3716
|
+
display: inline-block;
|
|
3717
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
3718
|
+
to make vertical align for the host element work as expected */
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
:host([hidden]) {
|
|
3722
|
+
display: none !important;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
:host(:not([has-label])) [part='label'] {
|
|
3726
|
+
display: none;
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
@media (forced-colors: active) {
|
|
3730
|
+
:host(:not([readonly])) [part='input-field'] {
|
|
3731
|
+
outline: 1px solid;
|
|
3732
|
+
outline-offset: -1px;
|
|
3733
|
+
}
|
|
3734
|
+
:host([focused]) [part='input-field'] {
|
|
3735
|
+
outline-width: 2px;
|
|
3736
|
+
}
|
|
3737
|
+
:host([disabled]) [part='input-field'] {
|
|
3738
|
+
outline-color: GrayText;
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
`;/**
|
|
3742
|
+
* @license
|
|
3743
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3744
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3745
|
+
*/const vy=Xs`
|
|
3746
|
+
[class$='container'] {
|
|
3747
|
+
display: flex;
|
|
3748
|
+
flex-direction: column;
|
|
3749
|
+
min-width: 100%;
|
|
3750
|
+
max-width: 100%;
|
|
3751
|
+
width: var(--vaadin-field-default-width, 12em);
|
|
3752
|
+
}
|
|
3753
|
+
`;/**
|
|
3754
|
+
* @license
|
|
3755
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3756
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3757
|
+
*/const xy=[by,vy,yy];/**
|
|
3758
|
+
* @license
|
|
3759
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
3760
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3761
|
+
*/const Ey=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,n){if(!n||t===void 0)return;const{classList:r}=n;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const o=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));o.length>0&&r.remove(...o)}const s=typeof t=="string"?t.split(" "):[];s.length>0&&r.add(...s),this.__previousClasses=s}};/**
|
|
3762
|
+
* @license
|
|
3763
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3764
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3765
|
+
*/class wy{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")}}/**
|
|
3766
|
+
* @license
|
|
3767
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3768
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3769
|
+
*/const Ay=i=>class extends Ey(Wt(_c(xc(Pn(i))))){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: 420px), (max-height: 420px)"},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(t){const n=String(t.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[t.month+1,t.day,n].join("/")},parseDate(t){const n=t.split("/"),r=new Date;let s,o=r.getMonth(),a=r.getFullYear();if(n.length===3){if(o=parseInt(n[0])-1,s=parseInt(n[1]),a=parseInt(n[2]),n[2].length<3&&a>=0){const l=this.referenceDate?ei(this.referenceDate):new Date;a=mg(l,a,o,s)}}else n.length===2?(o=parseInt(n[0])-1,s=parseInt(n[1])):n.length===1&&(s=parseInt(n[0]));if(s!==void 0)return{day:s,month:o,year:a}},formatTitle:(t,n)=>`${t} ${n}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_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:Ku},_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)","__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(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new mc(this._fullscreenMediaQuery,n=>{this._fullscreen=n})),this.addController(new wy(this));const t=this.$.overlay;this._overlayElement=t,t.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(t){if(t.firstChild)return;const n=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(n),this._overlayContent=n,n.addEventListener("close",()=>{this._close()}),n.addEventListener("focus-input",this._focusAndSelect.bind(this)),n.addEventListener("date-tap",r=>{this.__userConfirmedDate=!0,this._selectDate(r.detail.date),this._close()}),n.addEventListener("date-selected",r=>{this.__userConfirmedDate=!!r.detail.date,this._selectDate(r.detail.date)}),n.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),n.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value})}__parseDate(t){if(!this.i18n.parseDate)return;let n=this.i18n.parseDate(t);if(n&&(n=ei(`${n.year}-${n.month+1}-${n.day}`)),n&&!isNaN(n.getTime()))return n}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(ac(t))}checkValidity(){const t=this._inputElementValue,n=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),r=!this._selectedDate||wi(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),n&&r&&s}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(t){const n=this.value;this._selectedDate=t,n!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,n,r,s,o,a){return!t||n&&(!a||o)||r&&o||!s.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const n=(c,h="00")=>(h+c).substr((h+c).length-h.length);let r="",s="0000",o=t.getFullYear();o<0?(o=-o,r="-",s="000000"):t.getFullYear()>=1e4&&(r="+",s="000000");const a=r+n(o,s),l=n(t.getMonth()+1),u=n(t.getDate());return[a,l,u].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,n){t===void 0||n===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,n){t===void 0||n===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,n){const r=ei(t);if(t&&!r){this.value=n;return}t?Oe(this._selectedDate,r)||(this._selectedDate=r,n!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,n,r,s,o,a,l,u){t&&(t.i18n=n,t.label=r,t.minDate=s,t.maxDate=o,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u)}__updateOverlayContentTheme(t,n){t&&(n?t.setAttribute("theme",n):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,n){t&&t.toggleAttribute("fullscreen",n)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const n=this._getInitialPosition();t.initialPosition=n;const r=t.focusedDate||n;t.scrollToDate(r),this._ignoreFocusedDateChange=!0,t.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?t:[s,t];this.__showOthers=Ju(o)}_getInitialPosition(){const t=ei(this.initialPosition),n=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||wi(n,this._minDate,this._maxDate)?n:oc(n,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",n=this.__parseDate(t);n?this._selectDate(n):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,n){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,n)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){const n=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),n===this.value&&this.validate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value){t.stopPropagation(),this._onClearButtonClick(t);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Oe(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return ei(t)}};/**
|
|
3770
|
+
* @license
|
|
3771
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3772
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3773
|
+
*/const Sy=Ti`
|
|
3774
|
+
:host([opened]) {
|
|
3775
|
+
pointer-events: auto;
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
3779
|
+
direction: ltr;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
3783
|
+
direction: rtl;
|
|
3784
|
+
text-align: left;
|
|
3785
|
+
}
|
|
3786
|
+
`;/**
|
|
3787
|
+
* @license
|
|
3788
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3789
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3790
|
+
*/K("vaadin-date-picker",[xy,Sy],{moduleId:"vaadin-date-picker-styles"});class Cy extends Ay(iy(ut(Au(Ve)))){static get is(){return"vaadin-date-picker"}static get template(){return ht`
|
|
3791
|
+
<div class="vaadin-date-picker-container">
|
|
3792
|
+
<div part="label">
|
|
3793
|
+
<slot name="label"></slot>
|
|
3794
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
3795
|
+
</div>
|
|
3796
|
+
|
|
3797
|
+
<vaadin-input-container
|
|
3798
|
+
part="input-field"
|
|
3799
|
+
readonly="[[readonly]]"
|
|
3800
|
+
disabled="[[disabled]]"
|
|
3801
|
+
invalid="[[invalid]]"
|
|
3802
|
+
theme$="[[_theme]]"
|
|
3803
|
+
>
|
|
3804
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
3805
|
+
<slot name="input"></slot>
|
|
3806
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
3807
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
|
|
3808
|
+
</vaadin-input-container>
|
|
3809
|
+
|
|
3810
|
+
<div part="helper-text">
|
|
3811
|
+
<slot name="helper"></slot>
|
|
3812
|
+
</div>
|
|
3813
|
+
|
|
3814
|
+
<div part="error-message">
|
|
3815
|
+
<slot name="error-message"></slot>
|
|
3816
|
+
</div>
|
|
3817
|
+
</div>
|
|
3818
|
+
|
|
3819
|
+
<vaadin-date-picker-overlay
|
|
3820
|
+
id="overlay"
|
|
3821
|
+
fullscreen$="[[_fullscreen]]"
|
|
3822
|
+
theme$="[[_theme]]"
|
|
3823
|
+
opened="{{opened}}"
|
|
3824
|
+
on-vaadin-overlay-escape-press="_onOverlayEscapePress"
|
|
3825
|
+
on-vaadin-overlay-open="_onOverlayOpened"
|
|
3826
|
+
on-vaadin-overlay-closing="_onOverlayClosed"
|
|
3827
|
+
restore-focus-on-close
|
|
3828
|
+
restore-focus-node="[[inputElement]]"
|
|
3829
|
+
></vaadin-date-picker-overlay>
|
|
3830
|
+
|
|
3831
|
+
<slot name="tooltip"></slot>
|
|
3832
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ny(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new ry(this.inputElement,this._labelController)),this._tooltipController=new $u(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.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}}Se(Cy);function $y(i){Hc(i,"svelte-1vlqk70",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{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, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{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}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{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, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown 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}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper 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}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{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-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Wa(i,e,t){const n=i.slice();return n[47]=e[t],n}function Py(i){let e,t,n,r,s,o,a,l,u,c,h=i[18]("titleSelfExclusion")+"",d,f,p;return{c(){e=B("div"),t=ke("svg"),n=ke("defs"),r=ke("style"),s=pe(".aaa{fill:var(--emw--color-primary, #22B04E);}"),o=ke("g"),a=ke("g"),l=ke("path"),u=he(),c=B("h2"),d=pe(h),C(l,"class","aaa"),C(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),C(l,"transform","translate(15 15) rotate(180)"),C(a,"transform","translate(20 158)"),C(o,"transform","translate(-20 -158)"),C(t,"xmlns","http://www.w3.org/2000/svg"),C(t,"width","15"),C(t,"height","15"),C(t,"viewBox","0 0 15 15"),C(c,"class","PlayerSelfExclusionTitleMobile"),C(e,"class","MenuReturnButton")},m(g,$){Ne(g,e,$),x(e,t),x(t,n),x(n,r),x(r,s),x(t,o),x(o,a),x(a,l),x(e,u),x(e,c),x(c,d),f||(p=Qi(e,"click",i[28]),f=!0)},p(g,$){$[0]&262144&&h!==(h=g[18]("titleSelfExclusion")+"")&&Ee(d,h)},d(g){g&&Pe(e),f=!1,p()}}}function Ga(i){let e,t=i[18](`${i[47].key}`)+"",n,r,s;function o(){return i[30](i[47])}return{c(){e=B("div"),n=pe(t)},m(a,l){Ne(a,e,l),x(e,n),r||(s=Qi(e,"click",o),r=!0)},p(a,l){i=a,l[0]&262400&&t!==(t=i[18](`${i[47].key}`)+"")&&Ee(n,t)},d(a){a&&Pe(e),r=!1,s()}}}function qa(i){let e,t,n=i[18]("duration")+"",r,s,o,a=i[18]("dateInstructions")+"",l,u,c,h,d;return{c(){e=B("div"),t=B("label"),r=pe(n),s=he(),o=B("span"),l=pe(a),u=he(),c=B("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=he(),d=B("vaadin-date-picker"),C(t,"for","SelfExclusionDate"),C(o,"class","SelfExclusionDateInstructions"),Q(d,"min",i[9]),Q(d,"max",i[10]),Q(d,"value",i[9]),C(e,"class","SelfExclusionDateWrapper "+(i[19]?"SelfExclusionDateWrapperMobile":""))},m(f,p){Ne(f,e,p),x(e,t),x(t,r),x(e,s),x(e,o),x(o,l),x(o,u),x(o,c),x(e,h),x(e,d),i[31](d)},p(f,p){p[0]&262144&&n!==(n=f[18]("duration")+"")&&Ee(r,n),p[0]&262144&&a!==(a=f[18]("dateInstructions")+"")&&Ee(l,a),p[0]&512&&Q(d,"min",f[9]),p[0]&1024&&Q(d,"max",f[10]),p[0]&512&&Q(d,"value",f[9])},d(f){f&&Pe(e),i[31](null)}}}function Ty(i){let e,t,n=i[18]("temporarySelfExclusion",{values:{date:i[11]}})+"",r;return{c(){e=B("p"),t=B("strong"),r=pe(n),C(e,"class","SelfExclusionDescriptionText")},m(s,o){Ne(s,e,o),x(e,t),x(t,r)},p(s,o){o[0]&264192&&n!==(n=s[18]("temporarySelfExclusion",{values:{date:s[11]}})+"")&&Ee(r,n)},d(s){s&&Pe(e)}}}function Dy(i){let e,t,n=i[18]("noPeriodSelected")+"",r;return{c(){e=B("p"),t=B("strong"),r=pe(n),C(e,"class","SelfExclusionDescriptionText")},m(s,o){Ne(s,e,o),x(e,t),x(t,r)},p(s,o){o[0]&262144&&n!==(n=s[18]("noPeriodSelected")+"")&&Ee(r,n)},d(s){s&&Pe(e)}}}function ky(i){let e,t,n=i[18]("permanentSelfExclusion")+"",r;return{c(){e=B("p"),t=B("strong"),r=pe(n),C(e,"class","SelfExclusionDescriptionText")},m(s,o){Ne(s,e,o),x(e,t),x(t,r)},p(s,o){o[0]&262144&&n!==(n=s[18]("permanentSelfExclusion")+"")&&Ee(r,n)},d(s){s&&Pe(e)}}}function My(i){let e,t,n,r;return{c(){e=B("player-account-modal"),t=B("player-account-general-confirmation-modal"),Q(t,"modaltitle",n=i[18]("confirmationModalTitle")),Q(t,"modaltext",i[13]),Q(t,"hascancelbutton",!1),Q(t,"modalconfirmevent",r={type:"SetSelfExclusion",selfExclusionPeriod:i[12],selfExclusionExpiryDate:i[11]}),Q(t,"lang",i[0]),Q(e,"clientstyling",i[4]),Q(e,"clientstylingurl",i[5]),Q(e,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,o){Ne(s,e,o),x(e,t)},p(s,o){o[0]&262144&&n!==(n=s[18]("confirmationModalTitle"))&&Q(t,"modaltitle",n),o[0]&8192&&Q(t,"modaltext",s[13]),o[0]&6144&&r!==(r={type:"SetSelfExclusion",selfExclusionPeriod:s[12],selfExclusionExpiryDate:s[11]})&&Q(t,"modalconfirmevent",r),o[0]&1&&Q(t,"lang",s[0]),o[0]&16&&Q(e,"clientstyling",s[4]),o[0]&32&&Q(e,"clientstylingurl",s[5])},d(s){s&&Pe(e)}}}function Oy(i){let e,t,n,r,s=i[18]("titleSelfExclusion")+"",o,a,l,u,c=i[18]("selfExclusionText",{values:{operatorname:i[1],baseurl:i[3],lang:i[0]}})+"",h,d,f=i[18]("selfExclusionEmailText")+"",p,g,$,N,M,R,V,F,Z,me=i[18](`${i[12]}`)+"",ge,ye,O,P,ue,We,E,y,m,b,_,A,w,D=i[18]("save")+"",U,Y,q,se,be,ve,ce=i[19]&&Py(i),le=eo(i[8]),I=[];for(let S=0;S<le.length;S+=1)I[S]=Ga(Wa(i,le,S));let W=i[15]&&qa(i);function v(S,J){return S[14]?ky:S[16]?Ty:Dy}let X=v(i),j=X(i),Ce=i[20]&&My(i);return{c(){e=B("div"),t=B("form"),ce&&ce.c(),n=he(),r=B("h2"),o=pe(s),a=he(),l=B("div"),u=B("p"),h=he(),d=B("p"),p=pe(f),g=he(),$=B("a"),N=pe(i[2]),R=he(),V=B("div"),F=B("div"),Z=B("p"),ge=pe(me),ye=he(),O=ke("svg"),P=ke("g"),ue=ke("path"),We=he(),E=B("div");for(let S=0;S<I.length;S+=1)I[S].c();y=he(),W&&W.c(),m=he(),b=B("div"),j.c(),_=he(),A=B("div"),w=B("button"),U=pe(D),se=he(),Ce&&Ce.c(),C(r,"class","PlayerSelfExclusionTitle "+(i[19]?"PlayerSelfExclusionTitleNone":"")),C(u,"class","SelfExclusionDescriptionText"),C($,"href",M="mailto:"+i[2]),C(d,"class","SelfExclusionDescriptionText"),C(l,"class","SelfExclusionDescription "+(i[19]?"SelfExclusionDescriptionMobile":"")),C(ue,"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"),C(ue,"stroke-linecap","round"),C(O,"xmlns","http://www.w3.org/2000/svg"),C(O,"xmlns:xlink","http://www.w3.org/1999/xlink"),C(O,"version","1.1"),C(O,"viewBox","0 0 100 100"),C(O,"xml:space","preserve"),C(O,"class","SelfExclusionConfigIcon"),dt(O,"active",i[17]),C(F,"class","SelfExclusionConfigLabel"),C(E,"class","SelfExclusionDropDown"),dt(E,"active",i[17]),C(V,"class","SelfExclusionConfigWrapper "+(i[19]?"SelfExclusionConfigWrapperMobile":"")),dt(V,"active",i[17]),C(b,"class","SelfExclusionDescription "+(i[19]?"SelfExclusionDescriptionMobile":"")),C(w,"class",Y="SelfExclusionSave "+(i[16]?"active":"")),w.disabled=q=!i[16],C(A,"class","SelfExclusionActionButtons "+(i[19]?"SelfExclusionActionButtonsMobile":"")),C(t,"class","SelfExclusionWrapper "+(i[19]?"SelfExclusionWrapperMobile":""))},m(S,J){Ne(S,e,J),x(e,t),ce&&ce.m(t,null),x(t,n),x(t,r),x(r,o),x(t,a),x(t,l),x(l,u),u.innerHTML=c,x(l,h),x(l,d),x(d,p),x(d,g),x(d,$),x($,N),x(t,R),x(t,V),x(V,F),x(F,Z),x(Z,ge),x(F,ye),x(F,O),x(O,P),x(P,ue),x(V,We),x(V,E);for(let oe=0;oe<I.length;oe+=1)I[oe]&&I[oe].m(E,null);x(t,y),W&&W.m(t,null),x(t,m),x(t,b),j.m(b,null),x(t,_),x(t,A),x(A,w),x(w,U),x(e,se),Ce&&Ce.m(e,null),i[33](e),be||(ve=[Qi(F,"click",i[29]),Qi(w,"click",i[32])],be=!0)},p(S,J){if(S[19]&&ce.p(S,J),J[0]&262144&&s!==(s=S[18]("titleSelfExclusion")+"")&&Ee(o,s),J[0]&262155&&c!==(c=S[18]("selfExclusionText",{values:{operatorname:S[1],baseurl:S[3],lang:S[0]}})+"")&&(u.innerHTML=c),J[0]&262144&&f!==(f=S[18]("selfExclusionEmailText")+"")&&Ee(p,f),J[0]&4&&Ee(N,S[2]),J[0]&4&&M!==(M="mailto:"+S[2])&&C($,"href",M),J[0]&266240&&me!==(me=S[18](`${S[12]}`)+"")&&Ee(ge,me),J[0]&131072&&dt(O,"active",S[17]),J[0]&4456704){le=eo(S[8]);let oe;for(oe=0;oe<le.length;oe+=1){const Ks=Wa(S,le,oe);I[oe]?I[oe].p(Ks,J):(I[oe]=Ga(Ks),I[oe].c(),I[oe].m(E,null))}for(;oe<I.length;oe+=1)I[oe].d(1);I.length=le.length}J[0]&131072&&dt(E,"active",S[17]),J[0]&131072&&dt(V,"active",S[17]),S[15]?W?W.p(S,J):(W=qa(S),W.c(),W.m(t,m)):W&&(W.d(1),W=null),X===(X=v(S))&&j?j.p(S,J):(j.d(1),j=X(S),j&&(j.c(),j.m(b,null))),J[0]&262144&&D!==(D=S[18]("save")+"")&&Ee(U,D),J[0]&65536&&Y!==(Y="SelfExclusionSave "+(S[16]?"active":""))&&C(w,"class",Y),J[0]&65536&&q!==(q=!S[16])&&(w.disabled=q),S[20]&&Ce.p(S,J)},i:Ae,o:Ae,d(S){S&&Pe(e),ce&&ce.d(),Rc(I,S),W&&W.d(),j.d(),Ce&&Ce.d(),i[33](null),be=!1,Ft(ve)}}}function Ny(i,e,t){let n;Ic(i,sf,v=>t(18,n=v));let{endpoint:r="",lang:s="en",operator:o="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:u="",clientstylingurl:c="",translationurl:h="",hasconfirmationmodal:d="false"}=e,f,p,g=[],$=window.navigator.userAgent,N,M,R="",V="",F="selectAPeriod",Z="",me=of($)!=="PC",ge=!1,ye=!1,O=!1,P=!1,ue=d==="true";const We=()=>{fetch(h).then(X=>X.json()).then(X=>{Object.keys(X).forEach(j=>{Eo(j,X[j])})}).catch(X=>{console.log(X)})};Object.keys(wo).forEach(v=>{Eo(v,wo[v])});const E=()=>{let v=new URL(`${r}/v1/player/selfExclusionSettings`);fetch(v,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(j=>y(j)).then(j=>{t(8,g=j.periods)}).catch(j=>{console.log(j)})},y=v=>{if(v.status>=300)throw new Error("There was an error fetching the config");return v.json()},m=()=>{t(17,P=!P)},b=v=>{switch(V=v.text,t(12,F=v.key),t(16,O=!0),t(17,P=!1),t(14,ge=!1),t(15,ye=!1),V){case"Until":t(15,ye=!0),t(9,N=zn().add(6,"M").format("YYYY-MM-DD")),t(10,M=zn().add(5,"y").format("YYYY-MM-DD")),t(11,R=N);break;case"Permanent":t(14,ge=!ge);break;default:const[X,j]=V.split(" "),Ce=j.includes("Day")?"days":j.includes("Month")?"months":j.includes("Year")?"years":null;if(!Ce)return;t(11,R=zn().add(Number(X),Ce).format("YYYY-MM-DD"));break}ue&&_()},_=()=>{if(!ue){t(13,Z="");return}t(13,Z=ye?n("confirmationModalTextUntil",{values:{date:R}}):n("confirmationModalTextPeriod",{values:{period:n(V)}}))},A=v=>{v.preventDefault(),ue?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:F,selfExclusionExpiryDate:R},window.location.href)},w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:me},window.location.href)},D=v=>{t(11,R=v.target.value)},U=()=>{p.addEventListener("change",D,!1)},Y=()=>{let v=document.createElement("style");v.innerHTML=u,f.appendChild(v)},q=()=>{let v=new URL(c),X=document.createElement("style");fetch(v.href).then(j=>j.text()).then(j=>{X.innerHTML=j,setTimeout(()=>{f.appendChild(X)},1)})};jc(()=>()=>{p.removeEventListener("change",D)});const se=()=>{lf(s)},be=()=>w(),ve=()=>m(),ce=v=>b(v);function le(v){en[v?"unshift":"push"](()=>{p=v,t(7,p)})}const I=v=>A(v);function W(v){en[v?"unshift":"push"](()=>{f=v,t(6,f)})}return i.$$set=v=>{"endpoint"in v&&t(25,r=v.endpoint),"lang"in v&&t(0,s=v.lang),"operator"in v&&t(1,o=v.operator),"supportemail"in v&&t(2,a=v.supportemail),"baseurl"in v&&t(3,l=v.baseurl),"clientstyling"in v&&t(4,u=v.clientstyling),"clientstylingurl"in v&&t(5,c=v.clientstylingurl),"translationurl"in v&&t(26,h=v.translationurl),"hasconfirmationmodal"in v&&t(27,d=v.hasconfirmationmodal)},i.$$.update=()=>{i.$$.dirty[0]&128&&p&&U(),i.$$.dirty[0]&33554432&&r&&E(),i.$$.dirty[0]&1&&s&&se(),i.$$.dirty[0]&96&&c&&f&&q(),i.$$.dirty[0]&80&&u&&f&&Y(),i.$$.dirty[0]&67108864&&h&&We()},ue&&_(),[s,o,a,l,u,c,f,p,g,N,M,R,F,Z,ge,ye,O,P,n,me,ue,m,b,A,w,r,h,d,be,ve,ce,le,I,W]}class Pc extends th{constructor(e){super(),Qc(this,e,Ny,Oy,il,{endpoint:25,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,translationurl:26,hasconfirmationmodal:27},$y,[-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(e){this.$$set({endpoint:e}),we()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),we()}get operator(){return this.$$.ctx[1]}set operator(e){this.$$set({operator:e}),we()}get supportemail(){return this.$$.ctx[2]}set supportemail(e){this.$$set({supportemail:e}),we()}get baseurl(){return this.$$.ctx[3]}set baseurl(e){this.$$set({baseurl:e}),we()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),we()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),we()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),we()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),we()}}eh(Pc,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=Pc;
|