@everymatrix/player-account-transactions-history 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountTransactionsHistory-ocg2osww.cjs → PlayerAccountTransactionsHistory-BQtMH0Nr.cjs} +258 -258
- package/components/{PlayerAccountTransactionsHistory-DmGDTkmU.js → PlayerAccountTransactionsHistory-CxUZRh3_.js} +2988 -3007
- package/components/{PlayerAccountTransactionsHistory-Bx4kJlIs.js → PlayerAccountTransactionsHistory-y_eZf4bf.js} +2953 -2972
- package/es2015/player-account-transactions-history.cjs +1 -1
- package/es2015/player-account-transactions-history.js +1 -1
- package/esnext/player-account-transactions-history.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BtPvM93e.js +519 -0
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/index-b2193545-D_KBbaD-.js +503 -0
- package/stencil/{ui-skeleton-BL4789dS.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-Ca5rz3Hv.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-hI4GeaLk.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-xLf3HyeB.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BDBUiN3S.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Cn0ZM_hs.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/stencil/index-b2193545-BeKKnKhR.js +0 -519
- package/stencil/index-b2193545-HC0t7mHa.js +0 -503
- package/stencil/index-b2193545-YW9b062G.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ud=Object.defineProperty,pd=Object.defineProperties;var md=Object.getOwnPropertyDescriptors;var as=Object.getOwnPropertySymbols;var _d=Object.prototype.hasOwnProperty,fd=Object.prototype.propertyIsEnumerable;var ro=(i,e,t)=>e in i?ud(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qi=(i,e)=>{for(var t in e||(e={}))_d.call(e,t)&&ro(i,t,e[t]);if(as)for(var t of as(e))fd.call(e,t)&&ro(i,t,e[t]);return i},er=(i,e)=>pd(i,md(e));var Ve=(i,e,t)=>(ro(i,typeof e!="symbol"?e+"":e,t),t);var oo=(i,e,t)=>new Promise((r,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-BPqjm-YB.cjs");function ge(){}function Wa(i){return i()}function ls(){return Object.create(null)}function ni(i){i.forEach(Wa)}function fn(i){return typeof i=="function"}function ja(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function vd(i){return Object.keys(i).length===0}function Ga(i,...e){if(i==null){for(const r of e)r(void 0);return ge}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function gd(i,e,t){i.$$.on_destroy.push(Ga(e,t))}function m(i,e){i.appendChild(e)}function bd(i,e,t){const r=yd(i);if(!r.getElementById(e)){const o=C("style");o.id=e,o.textContent=t,xd(r,o)}}function yd(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function xd(i,e){return m(i.head||i,e),e.sheet}function ue(i,e,t){i.insertBefore(e,t||null)}function he(i){i.parentNode&&i.parentNode.removeChild(i)}function Ge(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function C(i){return document.createElement(i)}function Me(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Se(i){return document.createTextNode(i)}function J(){return Se(" ")}function vn(){return Se("")}function pt(i,e,t,r){return i.addEventListener(e,t,r),()=>i.removeEventListener(e,t,r)}function g(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Ue(i,e,t){const r=e.toLowerCase();r in i?i[r]=typeof i[r]=="boolean"&&t===""?!0:t:e in i?i[e]=typeof i[e]=="boolean"&&t===""?!0:t:g(i,e,t)}function wd(i){return Array.from(i.childNodes)}function Be(i,e){e=""+e,i.data!==e&&(i.data=e)}function Cd(i){const e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Di;function Pi(i){Di=i}function Ed(){if(!Di)throw new Error("Function called outside component initialization");return Di}function Sd(i){Ed().$$.on_mount.push(i)}const Ut=[],Ii=[];let jt=[];const hs=[],Ad=Promise.resolve();let ko=!1;function Pd(){ko||(ko=!0,Ad.then(Ee))}function To(i){jt.push(i)}const no=new Set;let Rt=0;function Ee(){if(Rt!==0)return;const i=Di;do{try{for(;Rt<Ut.length;){const e=Ut[Rt];Rt++,Pi(e),Id(e.$$)}}catch(e){throw Ut.length=0,Rt=0,e}for(Pi(null),Ut.length=0,Rt=0;Ii.length;)Ii.pop()();for(let e=0;e<jt.length;e+=1){const t=jt[e];no.has(t)||(no.add(t),t())}jt.length=0}while(Ut.length);for(;hs.length;)hs.pop()();ko=!1,no.clear(),Pi(i)}function Id(i){if(i.fragment!==null){i.update(),ni(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(To)}}function kd(i){const e=[],t=[];jt.forEach(r=>i.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),jt=e}const Td=new Set;function Dd(i,e){i&&i.i&&(Td.delete(i),i.i(e))}function be(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Od(i,e,t){const{fragment:r,after_update:o}=i.$$;r&&r.m(e,t),To(()=>{const n=i.$$.on_mount.map(Wa).filter(fn);i.$$.on_destroy?i.$$.on_destroy.push(...n):ni(n),i.$$.on_mount=[]}),o.forEach(To)}function Md(i,e){const t=i.$$;t.fragment!==null&&(kd(t.after_update),ni(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Nd(i,e){i.$$.dirty[0]===-1&&(Ut.push(i),Pd(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Bd(i,e,t,r,o,n,s=null,a=[-1]){const l=Di;Pi(i);const h=i.$$={fragment:null,ctx:[],props:n,update:ge,not_equal:o,bound:ls(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ls(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=t?t(i,e.props||{},(c,p,...u)=>{const b=u.length?u[0]:p;return h.ctx&&o(h.ctx[c],h.ctx[c]=b)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](b),d&&Nd(i,c)),p}):[],h.update(),d=!0,ni(h.before_update),h.fragment=r?r(h.ctx):!1,e.target){if(e.hydrate){const c=wd(e.target);h.fragment&&h.fragment.l(c),c.forEach(he)}else h.fragment&&h.fragment.c();e.intro&&Dd(i.$$.fragment),Od(i,e.target,e.anchor),Ee()}Pi(l)}let qa;typeof HTMLElement=="function"&&(qa=class extends HTMLElement{constructor(e,t,r){super();Ve(this,"$$ctor");Ve(this,"$$s");Ve(this,"$$c");Ve(this,"$$cn",!1);Ve(this,"$$d",{});Ve(this,"$$r",!1);Ve(this,"$$p_d",{});Ve(this,"$$l",{});Ve(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return oo(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=C("slot"),n!=="default"&&g(s,"name",n)},m:function(h,d){ue(h,s,d)},d:function(h){h&&he(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Cd(this);for(const n of this.$$s)n in r&&(t[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ur(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:er(Qi({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=ur(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(e,t,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ur(e,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 ur(i,e,t,r){var n;const o=(n=t[i])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[i])return e;if(r==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ld(i,e,t,r,o,n){let s=class extends qa{constructor(){super(i,t,o),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(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var h;l=ur(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),i.element=s,s}class zd{constructor(){Ve(this,"$$");Ve(this,"$$set")}$destroy(){Md(this,1),this.$destroy=ge}$on(e,t){if(!fn(t))return ge;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!vd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Fd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fd);function Hd(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function Rd(i,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function $d(i,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,o=>{r.innerHTML=o,i&&i.appendChild(r)})}}/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -11,37 +11,37 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
11
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var
|
|
14
|
+
***************************************************************************** */var Do=function(i,e){return Do=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Do(i,e)};function ot(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Do(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Z=function(){return Z=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Z.apply(this,arguments)};function Vd(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(i);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(i,r[o])&&(t[r[o]]=i[r[o]]);return t}function Oo(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mo(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return n}function Gt(i,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,n;r<o;r++)(n||!(r in e))&&(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return i.concat(n||e)}function it(i){return typeof i=="function"}function Ya(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var so=Ya(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
15
|
`+t.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Fo(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var zr=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,o,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Bo(n),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(f){e={error:f}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var d=this.initialTeardown;if(rt(d))try{d()}catch(f){s=f instanceof ho?f.errors:[f]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=Bo(c),u=p.next();!u.done;u=p.next()){var b=u.value;try{cn(b)}catch(f){s=s!=null?s:[],f instanceof ho?s=zo(zo([],Lo(s)),Lo(f.errors)):s.push(f)}}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new ho(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)cn(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)&&Fo(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Fo(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ka=zr.EMPTY;function Za(i){return i instanceof zr||i&&"closed"in i&&rt(i.remove)&&rt(i.add)&&rt(i.unsubscribe)}function cn(i){rt(i)?i():i.unsubscribe()}var Wd={Promise:void 0},Ud={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,zo([i,e],Lo(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function jd(i){Ud.setTimeout(function(){throw i})}function un(){}function mr(i){i()}var Ja=function(i){ji(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Za(t)&&t.add(r)):r.destination=Yd,r}return e.create=function(t,r,o){return new Ho(t,r,o)},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}(zr),Gd=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(r){ir(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){ir(r)}else ir(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ir(t)}},i}(),Ho=function(i){ji(e,i);function e(t,r,o){var s=i.call(this)||this,n;return rt(t)||!t?n={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:n=t,s.destination=new Gd(n),s}return e}(Ja);function ir(i){jd(i)}function qd(i){throw i}var Yd={closed:!0,next:un,error:qd,complete:un},Xd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Kd(i){return i}function Zd(i){return i.length===0?Kd:i.length===1?i[0]:function(t){return i.reduce(function(r,o){return o(r)},t)}}var pn=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,r){var o=this,s=Qd(e)?e:new Ho(e,t,r);return mr(function(){var n=o,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._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 r=this;return t=mn(t),new t(function(o,s){var n=new Ho({next:function(a){try{e(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:o});r.subscribe(n)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[Xd]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zd(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=mn(e),new e(function(r,o){var s;t.subscribe(function(n){return s=n},function(n){return o(n)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function mn(i){var e;return(e=i!=null?i:Wd.Promise)!==null&&e!==void 0?e:Promise}function Jd(i){return i&&rt(i.next)&&rt(i.error)&&rt(i.complete)}function Qd(i){return i&&i instanceof Ja||Jd(i)&&Za(i)}var ec=Xa(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qa=function(i){ji(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 r=new _n(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new ec},e.prototype.next=function(t){var r=this;mr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var n=Bo(r.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var r=this;mr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;mr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.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 r=this,o=this,s=o.hasError,n=o.isStopped,a=o.observers;return s||n?Ka:(this.currentObservers=null,a.push(t),new zr(function(){r.currentObservers=null,Fo(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,s=r.thrownError,n=r.isStopped;o?t.error(s):n&&t.complete()},e.prototype.asObservable=function(){var t=new pn;return t.source=this,t},e.create=function(t,r){return new _n(t,r)},e}(pn),_n=function(i){ji(e,i);function e(t,r){var o=i.call(this)||this;return o.destination=t,o.source=r,o}return e.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},e.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Ka},e}(Qa),el={now:function(){return(el.delegate||Date).now()},delegate:void 0},tc=function(i){ji(e,i);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=el);var s=i.call(this)||this;return s._bufferSize=t,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,r),s}return e.prototype.next=function(t){var r=this,o=r.isStopped,s=r._buffer,n=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(s.push(t),!n&&s.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,s=o._infiniteTimeWindow,n=o._buffer,a=n.slice(),l=0;l<a.length&&!t.closed;l+=s?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,s=t._buffer,n=t._infiniteTimeWindow,a=(n?1:2)*r;if(r<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=o.now(),h=0,d=1;d<s.length&&s[d]<=l;d+=2)h=d;h&&s.splice(0,h+1)}},e}(Qa);const fn=[],vn={},ic=(i,e=0)=>{if(fn.indexOf(i)==-1){const t=new tc(e);vn[i]=t,fn.push(i)}return vn[i]},$t=[];function rc(i,e){return{subscribe:Fr(i,e).subscribe}}function Fr(i,e=ge){let t;const r=new Set;function o(a){if(Ga(i,a)&&(i=a,t)){const l=!$t.length;for(const h of r)h[1](),$t.push(h,i);if(l){for(let h=0;h<$t.length;h+=2)$t[h][0]($t[h+1]);$t.length=0}}}function s(a){o(a(i))}function n(a,l=ge){const h=[a,l];return r.add(h),r.size===1&&(t=e(o,s)||ge),a(i),()=>{r.delete(h),r.size===0&&t&&(t(),t=null)}}return{set:o,update:s,subscribe:n}}function si(i,e,t){const r=!Array.isArray(i),o=r?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return rc(t,(n,a)=>{let l=!1;const h=[];let d=0,c=ge;const p=()=>{if(d)return;c();const b=e(r?h[0]:h,n,a);s?n(b):c=ys(b)?b:ge},u=o.map((b,f)=>qa(b,E=>{h[f]=E,d&=~(1<<f),l&&p()},()=>{d|=1<<f}));return l=!0,p(),function(){oi(u),c(),l=!1}})}var tl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ws(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oc=function(e){return sc(e)&&!nc(e)};function sc(i){return!!i&&typeof i=="object"}function nc(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||hc(i)}var ac=typeof Symbol=="function"&&Symbol.for,lc=ac?Symbol.for("react.element"):60103;function hc(i){return i.$$typeof===lc}function dc(i){return Array.isArray(i)?[]:{}}function Di(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Kt(dc(i),i,e):i}function cc(i,e,t){return i.concat(e).map(function(r){return Di(r,t)})}function uc(i,e){if(!e.customMerge)return Kt;var t=e.customMerge(i);return typeof t=="function"?t:Kt}function pc(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function gn(i){return Object.keys(i).concat(pc(i))}function il(i,e){try{return e in i}catch(t){return!1}}function mc(i,e){return il(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function _c(i,e,t){var r={};return t.isMergeableObject(i)&&gn(i).forEach(function(o){r[o]=Di(i[o],t)}),gn(e).forEach(function(o){mc(i,o)||(il(i,o)&&t.isMergeableObject(e[o])?r[o]=uc(o,t)(i[o],e[o],t):r[o]=Di(e[o],t))}),r}function Kt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||cc,t.isMergeableObject=t.isMergeableObject||oc,t.cloneUnlessOtherwiseSpecified=Di;var r=Array.isArray(e),o=Array.isArray(i),s=r===o;return s?r?t.arrayMerge(i,e,t):_c(i,e,t):Di(e,t)}Kt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Kt(r,o,t)},{})};var fc=Kt,vc=fc;const gc=ws(vc);var Ro=function(i,e){return Ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Ro(i,e)};function Hr(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ro(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ke=function(){return Ke=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Ke.apply(this,arguments)};function bc(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(i);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(i,r[o])&&(t[r[o]]=i[r[o]]);return t}function co(i,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function uo(i,e){var t=e&&e.cache?e.cache:Ac,r=e&&e.serializer?e.serializer:Ec,o=e&&e.strategy?e.strategy:wc;return o(i,{cache:t,serializer:r})}function yc(i){return i==null||typeof i=="number"||typeof i=="boolean"}function xc(i,e,t,r){var o=yc(r)?r:t(r),s=e.get(o);return typeof s=="undefined"&&(s=i.call(this,r),e.set(o,s)),s}function rl(i,e,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),s=e.get(o);return typeof s=="undefined"&&(s=i.apply(this,r),e.set(o,s)),s}function ol(i,e,t,r,o){return t.bind(e,i,r,o)}function wc(i,e){var t=i.length===1?xc:rl;return ol(i,this,t,e.cache.create(),e.serializer)}function Cc(i,e){return ol(i,this,rl,e.cache.create(),e.serializer)}var Ec=function(){return JSON.stringify(arguments)},Sc=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}(),Ac={create:function(){return new Sc}},po={variadic:Cc},xr=function(){return xr=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},xr.apply(this,arguments)};var q;(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"})(q||(q={}));var de;(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"})(de||(de={}));var Zt;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(Zt||(Zt={}));function bn(i){return i.type===de.literal}function Pc(i){return i.type===de.argument}function sl(i){return i.type===de.number}function nl(i){return i.type===de.date}function al(i){return i.type===de.time}function ll(i){return i.type===de.select}function hl(i){return i.type===de.plural}function Ic(i){return i.type===de.pound}function dl(i){return i.type===de.tag}function cl(i){return!!(i&&typeof i=="object"&&i.type===Zt.number)}function $o(i){return!!(i&&typeof i=="object"&&i.type===Zt.dateTime)}var ul=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kc=/(?:[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 Tc(i){var e={};return i.replace(kc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 _e=function(){return _e=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_e.apply(this,arguments)};var Dc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Oc(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(Dc).filter(function(p){return p.length>0}),t=[],r=0,o=e;r<o.length;r++){var s=o[r],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),h=0,d=l;h<d.length;h++){var c=d[h];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Mc(i){return i.replace(/^(.*?)-/,"")}var yn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pl=/^(@+)?(\+|#+)?[rs]?$/g,Nc=/(\*)(0+)|(#+)(0+)|(0+)/g,ml=/^(0+)$/;function xn(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(pl,function(t,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),e}function _l(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 Bc(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)),!ml.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function wn(i){var e={},t=_l(i);return t||e}function Lc(i){for(var e={},t=0,r=i;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.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=Mc(o.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=_e(_e(_e({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return _e(_e({},l),wn(h))},{}));continue;case"engineering":e=_e(_e(_e({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return _e(_e({},l),wn(h))},{}));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(o.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(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Nc,function(l,h,d,c,p,u){if(h)e.minimumIntegerDigits=d.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ml.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(yn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(yn,function(l,h,d,c,p,u){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:p&&u?(e.minimumFractionDigits=p.length,e.maximumFractionDigits=p.length+u.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var s=o.options[0];s==="w"?e=_e(_e({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=_e(_e({},e),xn(s)));continue}if(pl.test(o.stem)){e=_e(_e({},e),xn(o.stem));continue}var n=_l(o.stem);n&&(e=_e(_e({},e),n));var a=Bc(o.stem);a&&(e=_e(_e({},e),a))}return e}var rr={"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 zc(i,e){for(var t="",r=0;r<i.length;r++){var o=i.charAt(r);if(o==="j"){for(var s=0;r+1<i.length&&i.charAt(r+1)===o;)s++,r++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",h=Fc(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function Fc(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,r;t!=="root"&&(r=i.maximize().region);var o=rr[r||""]||rr[t||""]||rr["".concat(t,"-001")]||rr["001"];return o[0]}var mo,Hc=new RegExp("^".concat(ul.source,"*")),Rc=new RegExp("".concat(ul.source,"*$"));function Y(i,e){return{start:i,end:e}}var $c=!!String.prototype.startsWith&&"_a".startsWith("a",1),Vc=!!String.fromCodePoint,Wc=!!Object.fromEntries,Uc=!!String.prototype.codePointAt,jc=!!String.prototype.trimStart,Gc=!!String.prototype.trimEnd,qc=!!Number.isSafeInteger,Yc=qc?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},Vo=!0;try{var Xc=vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vo=((mo=Xc.exec("a"))===null||mo===void 0?void 0:mo[0])==="a"}catch(i){Vo=!1}var Cn=$c?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Wo=Vc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",o=e.length,s=0,n;o>s;){if(n=e[s++],n>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},En=Wc?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var s=o[r],n=s[0],a=s[1];t[n]=a}return t},fl=Uc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o=e.charCodeAt(t),s;return o<55296||o>56319||t+1===r||(s=e.charCodeAt(t+1))<56320||s>57343?o:(o-55296<<10)+(s-56320)+65536}},Kc=jc?function(e){return e.trimStart()}:function(e){return e.replace(Hc,"")},Zc=Gc?function(e){return e.trimEnd()}:function(e){return e.replace(Rc,"")};function vl(i,e){return new RegExp(i,e)}var Uo;if(Vo){var Sn=vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uo=function(e,t){var r;Sn.lastIndex=t;var o=Sn.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else Uo=function(e,t){for(var r=[];;){var o=fl(e,t);if(o===void 0||gl(o)||tu(o))break;r.push(o),t+=o>=65536?2:1}return Wo.apply(void 0,r)};var Jc=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,r){for(var o=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(e,r);if(n.err)return n;o.push(n.val)}else{if(s===125&&e>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:de.pound,location:Y(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(q.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&jo(this.peek()||0)){var n=this.parseTag(e,t);if(n.err)return n;o.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err)return n;o.push(n.val)}}}return{val:o,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:de.literal,value:"<".concat(o,"/>"),location:Y(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!jo(this.char()))return this.error(q.INVALID_TAG,Y(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(q.UNMATCHED_CLOSING_TAG,Y(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:de.tag,value:o,children:n,location:Y(r,this.clonePosition())},err:null}:this.error(q.INVALID_TAG,Y(a,this.clonePosition())))}else return this.error(q.UNCLOSED_TAG,Y(r,this.clonePosition()))}else return this.error(q.INVALID_TAG,Y(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&eu(this.char());)this.bump();return this.message.slice(e,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var s=this.tryParseQuote(t);if(s){o+=s;continue}var n=this.tryParseUnquoted(e,t);if(n){o+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=Y(r,this.clonePosition());return{val:{type:de.literal,value:o,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qc(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 r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Wo.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Wo(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(q.EMPTY_ARGUMENT,Y(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(q.MALFORMED_ARGUMENT,Y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:de.argument,value:o,location:Y(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(q.MALFORMED_ARGUMENT,Y(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Uo(this.message,t),o=t+r.length;this.bumpTo(o);var s=this.clonePosition(),n=Y(e,s);return{value:r,location:n}},i.prototype.parseArgumentOptions=function(e,t,r,o){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(q.EXPECT_ARGUMENT_TYPE,Y(n,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=Zc(c.val);if(p.length===0)return this.error(q.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));var u=Y(d,this.clonePosition());h={style:p,styleLocation:u}}var b=this.tryParseArgumentClose(o);if(b.err)return b;var f=Y(o,this.clonePosition());if(h&&Cn(h==null?void 0:h.style,"::",0)){var E=Kc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(E,h.styleLocation);return c.err?c:{val:{type:de.number,value:r,location:f,style:c.val},err:null}}else{if(E.length===0)return this.error(q.EXPECT_DATE_TIME_SKELETON,f);var P=E;this.locale&&(P=zc(E,this.locale));var p={type:Zt.dateTime,pattern:P,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Tc(P):{}},D=a==="date"?de.date:de.time;return{val:{type:D,value:r,location:f,style:p},err:null}}}return{val:{type:a==="number"?de.number:a==="date"?de.date:de.time,value:r,location:f,style:(s=h==null?void 0:h.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(q.EXPECT_SELECT_ARGUMENT_OPTIONS,Y(z,xr({},z)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),W=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),j=this.parseIdentifierIfPossible(),W=c.val}var G=this.tryParsePluralOrSelectOptions(e,a,t,j);if(G.err)return G;var b=this.tryParseArgumentClose(o);if(b.err)return b;var Q=Y(o,this.clonePosition());return a==="select"?{val:{type:de.select,value:r,options:En(G.val),location:Q},err:null}:{val:{type:de.plural,value:r,options:En(G.val),offset:W,pluralType:a==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(q.INVALID_ARGUMENT_TYPE,Y(n,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(o,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 r=[];try{r=Oc(e)}catch(o){return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:Zt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Lc(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var s,n=!1,a=[],l=new Set,h=o.value,d=o.location;;){if(h.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=Y(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(n=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,t,r);if(b.err)return b;var f=this.tryParseArgumentClose(u);if(f.err)return f;a.push([h,{value:b.val,location:Y(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),s=this.parseIdentifierIfPossible(),h=s.value,d=s.location}return a.length===0?this.error(t==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR:q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(q.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=Y(o,this.clonePosition());return s?(n*=r,Yc(n)?{val:n,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=fl(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(Cn(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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&gl(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},i}();function jo(i){return i>=97&&i<=122||i>=65&&i<=90}function Qc(i){return jo(i)||i===47}function eu(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 gl(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function tu(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 Go(i){i.forEach(function(e){if(delete e.location,ll(e)||hl(e))for(var t in e.options)delete e.options[t].location,Go(e.options[t].value);else sl(e)&&cl(e.style)||(nl(e)||al(e))&&$o(e.style)?delete e.style.location:dl(e)&&Go(e.children)})}function iu(i,e){e===void 0&&(e={}),e=xr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Jc(i,e).parse();if(t.err){var r=SyntaxError(q[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Go(t.val),t.val}var Jt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(Jt||(Jt={}));var Rr=function(i){Hr(e,i);function e(t,r,o){var s=i.call(this,t)||this;return s.code=r,s.originalMessage=o,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),An=function(i){Hr(e,i);function e(t,r,o,s){return i.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Jt.INVALID_VALUE,s)||this}return e}(Rr),ru=function(i){Hr(e,i);function e(t,r,o){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Jt.INVALID_VALUE,o)||this}return e}(Rr),ou=function(i){Hr(e,i);function e(t,r){return i.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Jt.MISSING_VALUE,r)||this}return e}(Rr),ke;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(ke||(ke={}));function su(i){return i.length<2?i:i.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==ke.literal||t.type!==ke.literal?e.push(t):r.value+=t.value,e},[])}function nu(i){return typeof i=="function"}function _r(i,e,t,r,o,s,n){if(i.length===1&&bn(i[0]))return[{type:ke.literal,value:i[0].value}];for(var a=[],l=0,h=i;l<h.length;l++){var d=h[l];if(bn(d)){a.push({type:ke.literal,value:d.value});continue}if(Ic(d)){typeof s=="number"&&a.push({type:ke.literal,value:t.getNumberFormat(e).format(s)});continue}var c=d.value;if(!(o&&c in o))throw new ou(c,n);var p=o[c];if(Pc(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?ke.literal:ke.object,value:p});continue}if(nl(d)){var u=typeof d.style=="string"?r.date[d.style]:$o(d.style)?d.style.parsedOptions:void 0;a.push({type:ke.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(al(d)){var u=typeof d.style=="string"?r.time[d.style]:$o(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ke.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(sl(d)){var u=typeof d.style=="string"?r.number[d.style]:cl(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:ke.literal,value:t.getNumberFormat(e,u).format(p)});continue}if(dl(d)){var b=d.children,f=d.value,E=o[f];if(!nu(E))throw new ru(f,"function",n);var P=_r(b,e,t,r,o,s),D=E(P.map(function(W){return W.value}));Array.isArray(D)||(D=[D]),a.push.apply(a,D.map(function(W){return{type:typeof W=="string"?ke.literal:ke.object,value:W}}))}if(ll(d)){var z=d.options[p]||d.options.other;if(!z)throw new An(d.value,p,Object.keys(d.options),n);a.push.apply(a,_r(z.value,e,t,r,o));continue}if(hl(d)){var z=d.options["=".concat(p)];if(!z){if(!Intl.PluralRules)throw new Rr(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function No(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var Br=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Oo(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(f){e={error:f}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(it(d))try{d()}catch(f){n=f instanceof so?f.errors:[f]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=Oo(c),u=p.next();!u.done;u=p.next()){var b=u.value;try{ds(b)}catch(f){n=n!=null?n:[],f instanceof so?n=Gt(Gt([],Mo(n)),Mo(f.errors)):n.push(f)}}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(n)throw new so(n)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ds(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)&&No(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&No(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Xa=Br.EMPTY;function Ka(i){return i instanceof Br||i&&"closed"in i&&it(i.remove)&&it(i.add)&&it(i.unsubscribe)}function ds(i){it(i)?i():i.unsubscribe()}var Za={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ud={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Gt([i,e],Mo(t)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Wd(i){Ud.setTimeout(function(){throw i})}function cs(){}function pr(i){i()}var Ja=function(i){ot(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ka(t)&&t.add(r)):r.destination=Yd,r}return e.create=function(t,r,o){return new Bo(t,r,o)},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}(Br),jd=Function.prototype.bind;function ao(i,e){return jd.call(i,e)}var Gd=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(r){tr(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){tr(r)}else tr(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){tr(t)}},i}(),Bo=function(i){ot(e,i);function e(t,r,o){var n=i.call(this)||this,s;if(it(t)||!t)s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var a;n&&Za.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return n.unsubscribe()},s={next:t.next&&ao(t.next,a),error:t.error&&ao(t.error,a),complete:t.complete&&ao(t.complete,a)}):s=t}return n.destination=new Gd(s),n}return e}(Ja);function tr(i){Wd(i)}function qd(i){throw i}var Yd={closed:!0,next:cs,error:qd,complete:cs},Xd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Kd(i){return i}function Zd(i){return i.length===0?Kd:i.length===1?i[0]:function(t){return i.reduce(function(r,o){return o(r)},t)}}var us=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,r){var o=this,n=Qd(e)?e:new Bo(e,t,r);return pr(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=ps(t),new t(function(o,n){var s=new Bo({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[Xd]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zd(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=ps(e),new e(function(r,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},i.create=function(e){return new i(e)},i}();function ps(i){var e;return(e=i!=null?i:Za.Promise)!==null&&e!==void 0?e:Promise}function Jd(i){return i&&it(i.next)&&it(i.error)&&it(i.complete)}function Qd(i){return i&&i instanceof Ja||Jd(i)&&Ka(i)}var ec=Ya(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qa=function(i){ot(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 r=new ms(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new ec},e.prototype.next=function(t){var r=this;pr(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Oo(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(h){o={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var r=this;pr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;pr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.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 r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Xa:(this.currentObservers=null,a.push(t),new Br(function(){r.currentObservers=null,No(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?t.error(n):s&&t.complete()},e.prototype.asObservable=function(){var t=new us;return t.source=this,t},e.create=function(t,r){return new ms(t,r)},e}(us),ms=function(i){ot(e,i);function e(t,r){var o=i.call(this)||this;return o.destination=t,o.source=r,o}return e.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},e.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Xa},e}(Qa),el={now:function(){return(el.delegate||Date).now()},delegate:void 0},tc=function(i){ot(e,i);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=el);var n=i.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return e.prototype.next=function(t){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),i.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),h=0,d=1;d<n.length&&n[d]<=l;d+=2)h=d;h&&n.splice(0,h+1)}},e}(Qa);const _s=[],fs={},ic=(i,e=0)=>{if(_s.indexOf(i)==-1){const t=new tc(e);fs[i]=t,_s.push(i)}return fs[i]},$t=[];function rc(i,e){return{subscribe:Lr(i,e).subscribe}}function Lr(i,e=ge){let t;const r=new Set;function o(a){if(ja(i,a)&&(i=a,t)){const l=!$t.length;for(const h of r)h[1](),$t.push(h,i);if(l){for(let h=0;h<$t.length;h+=2)$t[h][0]($t[h+1]);$t.length=0}}}function n(a){o(a(i))}function s(a,l=ge){const h=[a,l];return r.add(h),r.size===1&&(t=e(o,n)||ge),a(i),()=>{r.delete(h),r.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function si(i,e,t){const r=!Array.isArray(i),o=r?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return rc(t,(s,a)=>{let l=!1;const h=[];let d=0,c=ge;const p=()=>{if(d)return;c();const b=e(r?h[0]:h,s,a);n?s(b):c=fn(b)?b:ge},u=o.map((b,f)=>Ga(b,E=>{h[f]=E,d&=~(1<<f),l&&p()},()=>{d|=1<<f}));return l=!0,p(),function(){ni(u),c(),l=!1}})}var tl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function gn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oc=function(e){return nc(e)&&!sc(e)};function nc(i){return!!i&&typeof i=="object"}function sc(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||hc(i)}var ac=typeof Symbol=="function"&&Symbol.for,lc=ac?Symbol.for("react.element"):60103;function hc(i){return i.$$typeof===lc}function dc(i){return Array.isArray(i)?[]:{}}function Oi(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Zt(dc(i),i,e):i}function cc(i,e,t){return i.concat(e).map(function(r){return Oi(r,t)})}function uc(i,e){if(!e.customMerge)return Zt;var t=e.customMerge(i);return typeof t=="function"?t:Zt}function pc(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function vs(i){return Object.keys(i).concat(pc(i))}function il(i,e){try{return e in i}catch(t){return!1}}function mc(i,e){return il(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function _c(i,e,t){var r={};return t.isMergeableObject(i)&&vs(i).forEach(function(o){r[o]=Oi(i[o],t)}),vs(e).forEach(function(o){mc(i,o)||(il(i,o)&&t.isMergeableObject(e[o])?r[o]=uc(o,t)(i[o],e[o],t):r[o]=Oi(e[o],t))}),r}function Zt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||cc,t.isMergeableObject=t.isMergeableObject||oc,t.cloneUnlessOtherwiseSpecified=Oi;var r=Array.isArray(e),o=Array.isArray(i),n=r===o;return n?r?t.arrayMerge(i,e,t):_c(i,e,t):Oi(e,t)}Zt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Zt(r,o,t)},{})};var fc=Zt,vc=fc;const gc=gn(vc);function lo(i,e){var t=e&&e.cache?e.cache:Ec,r=e&&e.serializer?e.serializer:Cc,o=e&&e.strategy?e.strategy:yc;return o(i,{cache:t,serializer:r})}function bc(i){return i==null||typeof i=="number"||typeof i=="boolean"}function rl(i,e,t,r){var o=bc(r)?r:t(r),n=e.get(o);return typeof n=="undefined"&&(n=i.call(this,r),e.set(o,n)),n}function ol(i,e,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),n=e.get(o);return typeof n=="undefined"&&(n=i.apply(this,r),e.set(o,n)),n}function bn(i,e,t,r,o){return t.bind(e,i,r,o)}function yc(i,e){var t=i.length===1?rl:ol;return bn(i,this,t,e.cache.create(),e.serializer)}function xc(i,e){return bn(i,this,ol,e.cache.create(),e.serializer)}function wc(i,e){return bn(i,this,rl,e.cache.create(),e.serializer)}var Cc=function(){return JSON.stringify(arguments)};function yn(){this.cache=Object.create(null)}yn.prototype.get=function(i){return this.cache[i]};yn.prototype.set=function(i,e){this.cache[i]=e};var Ec={create:function(){return new yn}},ho={variadic:xc,monadic:wc},q;(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"})(q||(q={}));var ce;(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"})(ce||(ce={}));var Jt;(function(i){i[i.number=0]="number",i[i.dateTime=1]="dateTime"})(Jt||(Jt={}));function gs(i){return i.type===ce.literal}function Sc(i){return i.type===ce.argument}function nl(i){return i.type===ce.number}function sl(i){return i.type===ce.date}function al(i){return i.type===ce.time}function ll(i){return i.type===ce.select}function hl(i){return i.type===ce.plural}function Ac(i){return i.type===ce.pound}function dl(i){return i.type===ce.tag}function cl(i){return!!(i&&typeof i=="object"&&i.type===Jt.number)}function Lo(i){return!!(i&&typeof i=="object"&&i.type===Jt.dateTime)}var ul=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pc=/(?:[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 Ic(i){var e={};return i.replace(Pc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 kc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Tc(i){if(i.length===0)throw new Error("Number skeleton cannot be empty");for(var e=i.split(kc).filter(function(p){return p.length>0}),t=[],r=0,o=e;r<o.length;r++){var n=o[r],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),h=0,d=l;h<d.length;h++){var c=d[h];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Dc(i){return i.replace(/^(.*?)-/,"")}var bs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pl=/^(@+)?(\+|#+)?[rs]?$/g,Oc=/(\*)(0+)|(#+)(0+)|(0+)/g,ml=/^(0+)$/;function ys(i){var e={};return i[i.length-1]==="r"?e.roundingPriority="morePrecision":i[i.length-1]==="s"&&(e.roundingPriority="lessPrecision"),i.replace(pl,function(t,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),e}function _l(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 Mc(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)),!ml.test(i))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=i.length}return e}function xs(i){var e={},t=_l(i);return t||e}function Nc(i){for(var e={},t=0,r=i;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.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=Dc(o.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=Z(Z(Z({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return Z(Z({},l),xs(h))},{}));continue;case"engineering":e=Z(Z(Z({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return Z(Z({},l),xs(h))},{}));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(o.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(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Oc,function(l,h,d,c,p,u){if(h)e.minimumIntegerDigits=d.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ml.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(bs.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(bs,function(l,h,d,c,p,u){return d==="*"?e.minimumFractionDigits=h.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:p&&u?(e.minimumFractionDigits=p.length,e.maximumFractionDigits=p.length+u.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var n=o.options[0];n==="w"?e=Z(Z({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=Z(Z({},e),ys(n)));continue}if(pl.test(o.stem)){e=Z(Z({},e),ys(o.stem));continue}var s=_l(o.stem);s&&(e=Z(Z({},e),s));var a=Mc(o.stem);a&&(e=Z(Z({},e),a))}return e}var ir={"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 Bc(i,e){for(var t="",r=0;r<i.length;r++){var o=i.charAt(r);if(o==="j"){for(var n=0;r+1<i.length&&i.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=Lc(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=h+t}else o==="J"?t+="H":t+=o}return t}function Lc(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,r;t!=="root"&&(r=i.maximize().region);var o=ir[r||""]||ir[t||""]||ir["".concat(t,"-001")]||ir["001"];return o[0]}var co,zc=new RegExp("^".concat(ul.source,"*")),Fc=new RegExp("".concat(ul.source,"*$"));function Y(i,e){return{start:i,end:e}}var Hc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Rc=!!String.fromCodePoint,$c=!!Object.fromEntries,Vc=!!String.prototype.codePointAt,Uc=!!String.prototype.trimStart,Wc=!!String.prototype.trimEnd,jc=!!Number.isSafeInteger,Gc=jc?Number.isSafeInteger:function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},zo=!0;try{var qc=vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zo=((co=qc.exec("a"))===null||co===void 0?void 0:co[0])==="a"}catch(i){zo=!1}var ws=Hc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Fo=Rc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Cs=$c?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r],s=n[0],a=n[1];t[s]=a}return t},fl=Vc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o=e.charCodeAt(t),n;return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},Yc=Uc?function(e){return e.trimStart()}:function(e){return e.replace(zc,"")},Xc=Wc?function(e){return e.trimEnd()}:function(e){return e.replace(Fc,"")};function vl(i,e){return new RegExp(i,e)}var Ho;if(zo){var Es=vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ho=function(e,t){var r;Es.lastIndex=t;var o=Es.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else Ho=function(e,t){for(var r=[];;){var o=fl(e,t);if(o===void 0||gl(o)||Qc(o))break;r.push(o),t+=o>=65536?2:1}return Fo.apply(void 0,r)};var Kc=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,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,r);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:ce.pound,location:Y(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(q.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Ro(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ce.literal,value:"<".concat(o,"/>"),location:Y(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ro(this.char()))return this.error(q.INVALID_TAG,Y(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(q.UNMATCHED_CLOSING_TAG,Y(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ce.tag,value:o,children:s,location:Y(r,this.clonePosition())},err:null}:this.error(q.INVALID_TAG,Y(a,this.clonePosition())))}else return this.error(q.UNCLOSED_TAG,Y(r,this.clonePosition()))}else return this.error(q.INVALID_TAG,Y(r,this.clonePosition()))},i.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Jc(this.char());)this.bump();return this.message.slice(e,this.offset())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=Y(r,this.clonePosition());return{val:{type:ce.literal,value:o,location:l},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Zc(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 r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Fo.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Fo(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(q.EMPTY_ARGUMENT,Y(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(q.MALFORMED_ARGUMENT,Y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ce.argument,value:o,location:Y(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(q.MALFORMED_ARGUMENT,Y(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ho(this.message,t),o=t+r.length;this.bumpTo(o);var n=this.clonePosition(),s=Y(e,n);return{value:r,location:s}},i.prototype.parseArgumentOptions=function(e,t,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(q.EXPECT_ARGUMENT_TYPE,Y(s,l));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=Xc(c.val);if(p.length===0)return this.error(q.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));var u=Y(d,this.clonePosition());h={style:p,styleLocation:u}}var b=this.tryParseArgumentClose(o);if(b.err)return b;var f=Y(o,this.clonePosition());if(h&&ws(h==null?void 0:h.style,"::",0)){var E=Yc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(E,h.styleLocation);return c.err?c:{val:{type:ce.number,value:r,location:f,style:c.val},err:null}}else{if(E.length===0)return this.error(q.EXPECT_DATE_TIME_SKELETON,f);var P=E;this.locale&&(P=Bc(E,this.locale));var p={type:Jt.dateTime,pattern:P,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Ic(P):{}},D=a==="date"?ce.date:ce.time;return{val:{type:D,value:r,location:f,style:p},err:null}}}return{val:{type:a==="number"?ce.number:a==="date"?ce.date:ce.time,value:r,location:f,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(q.EXPECT_SELECT_ARGUMENT_OPTIONS,Y(z,Z({},z)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),U=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),j=this.parseIdentifierIfPossible(),U=c.val}var G=this.tryParsePluralOrSelectOptions(e,a,t,j);if(G.err)return G;var b=this.tryParseArgumentClose(o);if(b.err)return b;var ee=Y(o,this.clonePosition());return a==="select"?{val:{type:ce.select,value:r,options:Cs(G.val),location:ee},err:null}:{val:{type:ce.plural,value:r,options:Cs(G.val),offset:U,pluralType:a==="plural"?"cardinal":"ordinal",location:ee},err:null}}default:return this.error(q.INVALID_ARGUMENT_TYPE,Y(s,l))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Y(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(o,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 r=[];try{r=Tc(e)}catch(o){return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:Jt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Nc(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n,s=!1,a=[],l=new Set,h=o.value,d=o.location;;){if(h.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=Y(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(t==="select"?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,t,r);if(b.err)return b;var f=this.tryParseArgumentClose(u);if(f.err)return f;a.push([h,{value:b.val,location:Y(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(t==="select"?q.EXPECT_SELECT_ARGUMENT_SELECTOR:q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(q.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=Y(o,this.clonePosition());return n?(s*=r,Gc(s)?{val:s,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=fl(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(ws(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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&gl(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},i}();function Ro(i){return i>=97&&i<=122||i>=65&&i<=90}function Zc(i){return Ro(i)||i===47}function Jc(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 gl(i){return i>=9&&i<=13||i===32||i===133||i>=8206&&i<=8207||i===8232||i===8233}function Qc(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 $o(i){i.forEach(function(e){if(delete e.location,ll(e)||hl(e))for(var t in e.options)delete e.options[t].location,$o(e.options[t].value);else nl(e)&&cl(e.style)||(sl(e)||al(e))&&Lo(e.style)?delete e.style.location:dl(e)&&$o(e.children)})}function eu(i,e){e===void 0&&(e={}),e=Z({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Kc(i,e).parse();if(t.err){var r=SyntaxError(q[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||$o(t.val),t.val}var Qt;(function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"})(Qt||(Qt={}));var zr=function(i){ot(e,i);function e(t,r,o){var n=i.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ss=function(i){ot(e,i);function e(t,r,o,n){return i.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Qt.INVALID_VALUE,n)||this}return e}(zr),tu=function(i){ot(e,i);function e(t,r,o){return i.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Qt.INVALID_VALUE,o)||this}return e}(zr),iu=function(i){ot(e,i);function e(t,r){return i.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Qt.MISSING_VALUE,r)||this}return e}(zr),ke;(function(i){i[i.literal=0]="literal",i[i.object=1]="object"})(ke||(ke={}));function ru(i){return i.length<2?i:i.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==ke.literal||t.type!==ke.literal?e.push(t):r.value+=t.value,e},[])}function ou(i){return typeof i=="function"}function mr(i,e,t,r,o,n,s){if(i.length===1&&gs(i[0]))return[{type:ke.literal,value:i[0].value}];for(var a=[],l=0,h=i;l<h.length;l++){var d=h[l];if(gs(d)){a.push({type:ke.literal,value:d.value});continue}if(Ac(d)){typeof n=="number"&&a.push({type:ke.literal,value:t.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new iu(c,s);var p=o[c];if(Sc(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?ke.literal:ke.object,value:p});continue}if(sl(d)){var u=typeof d.style=="string"?r.date[d.style]:Lo(d.style)?d.style.parsedOptions:void 0;a.push({type:ke.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(al(d)){var u=typeof d.style=="string"?r.time[d.style]:Lo(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ke.literal,value:t.getDateTimeFormat(e,u).format(p)});continue}if(nl(d)){var u=typeof d.style=="string"?r.number[d.style]:cl(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:ke.literal,value:t.getNumberFormat(e,u).format(p)});continue}if(dl(d)){var b=d.children,f=d.value,E=o[f];if(!ou(E))throw new tu(f,"function",s);var P=mr(b,e,t,r,o,n),D=E(P.map(function(U){return U.value}));Array.isArray(D)||(D=[D]),a.push.apply(a,D.map(function(U){return{type:typeof U=="string"?ke.literal:ke.object,value:U}}))}if(ll(d)){var z=d.options[p]||d.options.other;if(!z)throw new Ss(d.value,p,Object.keys(d.options),s);a.push.apply(a,mr(z.value,e,t,r,o));continue}if(hl(d)){var z=d.options["=".concat(p)];if(!z){if(!Intl.PluralRules)throw new zr(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,Jt.MISSING_INTL_API,n);var j=t.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));z=d.options[j]||d.options.other}if(!z)throw new An(d.value,p,Object.keys(d.options),n);a.push.apply(a,_r(z.value,e,t,r,o,p-(d.offset||0)));continue}}return su(a)}function au(i,e){return e?Ke(Ke(Ke({},i||{}),e||{}),Object.keys(i).reduce(function(t,r){return t[r]=Ke(Ke({},i[r]),e[r]||{}),t},{})):i}function lu(i,e){return e?Object.keys(i).reduce(function(t,r){return t[r]=au(i[r],e[r]),t},Ke({},i)):i}function _o(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function hu(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,co([void 0],t,!1)))},{cache:_o(i.number),strategy:po.variadic}),getDateTimeFormat:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,co([void 0],t,!1)))},{cache:_o(i.dateTime),strategy:po.variadic}),getPluralRules:uo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,co([void 0],t,!1)))},{cache:_o(i.pluralRules),strategy:po.variadic})}}var du=function(){function i(e,t,r,o){t===void 0&&(t=i.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=s.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,p){return!c.length||p.type!==ke.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return _r(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 n=o||{};n.formatters;var a=bc(n,["formatters"]);this.ast=i.__parse(e,Ke(Ke({},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=lu(i.formats,r),this.formatters=o&&o.formatters||hu(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=iu,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 cu(i,e){if(e==null)return;if(e in i)return i[e];const t=e.split(".");let r=i;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const s=t.slice(o,t.length).join(".");if(s in r){r=r[s];break}}r=r[t[o]]}else r=void 0;return r}const _t={},uu=(i,e,t)=>t&&(e in _t||(_t[e]={}),i in _t[e]||(_t[e][i]=t),t),bl=(i,e)=>{if(e==null)return;if(e in _t&&i in _t[e])return _t[e][i];const t=$r(e);for(let r=0;r<t.length;r++){const o=t[r],s=mu(o,i);if(s)return uu(i,e,s)}};let Cs;const Gi=Fr({});function pu(i){return Cs[i]||null}function yl(i){return i in Cs}function mu(i,e){if(!yl(i))return null;const t=pu(i);return cu(t,e)}function _u(i){if(i==null)return;const e=$r(i);for(let t=0;t<e.length;t++){const r=e[t];if(yl(r))return r}}function xl(i,...e){delete _t[i],Gi.update(t=>(t[i]=gc.all([t[i]||{},...e]),t))}si([Gi],([i])=>Object.keys(i));Gi.subscribe(i=>Cs=i);const fr={};function fu(i,e){fr[i].delete(e),fr[i].size===0&&delete fr[i]}function wl(i){return fr[i]}function vu(i){return $r(i).map(e=>{const t=wl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function qo(i){return i==null?!1:$r(i).some(e=>{var t;return(t=wl(e))==null?void 0:t.size})}function gu(i,e){return Promise.all(e.map(r=>(fu(i,r),r().then(o=>o.default||o)))).then(r=>xl(i,...r))}const vi={};function Cl(i){if(!qo(i))return i in vi?vi[i]:Promise.resolve();const e=vu(i);return vi[i]=Promise.all(e.map(([t,r])=>gu(t,r))).then(()=>{if(qo(i))return Cl(i);delete vi[i]}),vi[i]}const bu={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"}}},yu={fallbackLocale:null,loadingDelay:200,formats:bu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},xu=yu;function Qt(){return xu}const fo=Fr(!1);var wu=Object.defineProperty,Cu=Object.defineProperties,Eu=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Su=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable,In=(i,e,t)=>e in i?wu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Pu=(i,e)=>{for(var t in e||(e={}))Su.call(e,t)&&In(i,t,e[t]);if(Pn)for(var t of Pn(e))Au.call(e,t)&&In(i,t,e[t]);return i},Iu=(i,e)=>Cu(i,Eu(e));let Yo;const wr=Fr(null);function kn(i){return i.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $r(i,e=Qt().fallbackLocale){const t=kn(i);return e?[...new Set([...t,...kn(e)])]:t}function kt(){return Yo!=null?Yo:void 0}wr.subscribe(i=>{Yo=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const ku=i=>{if(i&&_u(i)&&qo(i)){const{loadingDelay:e}=Qt();let t;return typeof window!="undefined"&&kt()!=null&&e?t=window.setTimeout(()=>fo.set(!0),e):fo.set(!0),Cl(i).then(()=>{wr.set(i)}).finally(()=>{clearTimeout(t),fo.set(!1)})}return wr.set(i)},ni=Iu(Pu({},wr),{set:ku}),Vr=i=>{const e=Object.create(null);return r=>{const o=JSON.stringify(r);return o in e?e[o]:e[o]=i(r)}};var Tu=Object.defineProperty,Cr=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable,Tn=(i,e,t)=>e in i?Tu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Es=(i,e)=>{for(var t in e||(e={}))El.call(e,t)&&Tn(i,t,e[t]);if(Cr)for(var t of Cr(e))Sl.call(e,t)&&Tn(i,t,e[t]);return i},ai=(i,e)=>{var t={};for(var r in i)El.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&Cr)for(var r of Cr(i))e.indexOf(r)<0&&Sl.call(i,r)&&(t[r]=i[r]);return t};const Oi=(i,e)=>{const{formats:t}=Qt();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},Du=Vr(i=>{var e=i,{locale:t,format:r}=e,o=ai(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Oi("number",r)),new Intl.NumberFormat(t,o)}),Ou=Vr(i=>{var e=i,{locale:t,format:r}=e,o=ai(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Oi("date",r):Object.keys(o).length===0&&(o=Oi("date","short")),new Intl.DateTimeFormat(t,o)}),Mu=Vr(i=>{var e=i,{locale:t,format:r}=e,o=ai(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Oi("time",r):Object.keys(o).length===0&&(o=Oi("time","short")),new Intl.DateTimeFormat(t,o)}),Nu=(i={})=>{var e=i,{locale:t=kt()}=e,r=ai(e,["locale"]);return Du(Es({locale:t},r))},Bu=(i={})=>{var e=i,{locale:t=kt()}=e,r=ai(e,["locale"]);return Ou(Es({locale:t},r))},Lu=(i={})=>{var e=i,{locale:t=kt()}=e,r=ai(e,["locale"]);return Mu(Es({locale:t},r))},zu=Vr((i,e=kt())=>new du(i,e,Qt().formats,{ignoreTag:Qt().ignoreTag})),Fu=(i,e={})=>{var t,r,o,s;let n=e;typeof i=="object"&&(n=i,i=n.id);const{values:a,locale:l=kt(),default:h}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=bl(i,l);if(!d)d=(s=(o=(r=(t=Qt()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:i,defaultValue:h}))!=null?o:h)!=null?s:i;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=zu(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,p.message)}return c},Hu=(i,e)=>Lu(e).format(i),Ru=(i,e)=>Bu(e).format(i),$u=(i,e)=>Nu(e).format(i),Vu=(i,e=kt())=>bl(i,e),Wu=si([ni,Gi],()=>Fu);si([ni],()=>Hu);si([ni],()=>Ru);si([ni],()=>$u);si([ni,Gi],()=>Vu);window.emWidgets={topic:ic};const Uu=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Dn(i,e){xl(i,e)}function ju(i){ni.set(i)}const On={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"}};var Al={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(tl,function(){var t=1e3,r=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",h="day",d="week",c="month",p="quarter",u="year",b="date",f="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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,D={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(T){var y=["th","st","nd","rd"],x=T%100;return"["+T+(y[(x-20)%10]||y[x]||y[0])+"]"}},z=function(T,y,x){var w=String(T);return!w||w.length>=y?T:""+Array(y+1-w.length).join(x)+T},j={s:z,z:function(T){var y=-T.utcOffset(),x=Math.abs(y),w=Math.floor(x/60),v=x%60;return(y<=0?"+":"-")+z(w,2,"0")+":"+z(v,2,"0")},m:function T(y,x){if(y.date()<x.date())return-T(x,y);var w=12*(x.year()-y.year())+(x.month()-y.month()),v=y.clone().add(w,c),S=x-v<0,k=y.clone().add(w+(S?-1:1),c);return+(-(w+(x-v)/(S?v-k:k-v))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:u,w:d,d:h,D:b,h:l,m:a,s:n,ms:s,Q:p}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},W="en",G={};G[W]=D;var Q="$isDayjsObject",O=function(T){return T instanceof ae||!(!T||!T[Q])},se=function T(y,x,w){var v;if(!y)return W;if(typeof y=="string"){var S=y.toLowerCase();G[S]&&(v=S),x&&(G[S]=x,v=S);var k=y.split("-");if(!v&&k.length>1)return T(k[0])}else{var V=y.name;G[V]=y,v=V}return!w&&v&&(W=v),v||!w&&W},N=function(T,y){if(O(T))return T.clone();var x=typeof y=="object"?y:{};return x.date=T,x.args=arguments,new ae(x)},L=j;L.l=se,L.i=O,L.w=function(T,y){return N(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var ae=function(){function T(x){this.$L=se(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Q]=!0}var y=T.prototype;return y.parse=function(x){this.$d=function(w){var v=w.date,S=w.utc;if(v===null)return new Date(NaN);if(L.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var k=v.match(E);if(k){var V=k[2]-1||0,U=(k[7]||"0").substring(0,3);return S?new Date(Date.UTC(k[1],V,k[3]||1,k[4]||0,k[5]||0,k[6]||0,U)):new Date(k[1],V,k[3]||1,k[4]||0,k[5]||0,k[6]||0,U)}}return new Date(v)}(x),this.init()},y.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},y.$utils=function(){return L},y.isValid=function(){return this.$d.toString()!==f},y.isSame=function(x,w){var v=N(x);return this.startOf(w)<=v&&v<=this.endOf(w)},y.isAfter=function(x,w){return N(x)<this.startOf(w)},y.isBefore=function(x,w){return this.endOf(w)<N(x)},y.$g=function(x,w,v){return L.u(x)?this[w]:this.set(v,x)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(x,w){var v=this,S=!!L.u(w)||w,k=L.p(x),V=function(F,oe){var me=L.w(v.$u?Date.UTC(v.$y,oe,F):new Date(v.$y,oe,F),v);return S?me:me.endOf(h)},U=function(F,oe){return L.w(v.toDate()[F].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(oe)),v)},J=this.$W,re=this.$M,pe=this.$D,Te="set"+(this.$u?"UTC":"");switch(k){case u:return S?V(1,0):V(31,11);case c:return S?V(1,re):V(0,re+1);case d:var xe=this.$locale().weekStart||0,ve=(J<xe?J+7:J)-xe;return V(S?pe-ve:pe+(6-ve),re);case h:case b:return U(Te+"Hours",0);case l:return U(Te+"Minutes",1);case a:return U(Te+"Seconds",2);case n:return U(Te+"Milliseconds",3);default:return this.clone()}},y.endOf=function(x){return this.startOf(x,!1)},y.$set=function(x,w){var v,S=L.p(x),k="set"+(this.$u?"UTC":""),V=(v={},v[h]=k+"Date",v[b]=k+"Date",v[c]=k+"Month",v[u]=k+"FullYear",v[l]=k+"Hours",v[a]=k+"Minutes",v[n]=k+"Seconds",v[s]=k+"Milliseconds",v)[S],U=S===h?this.$D+(w-this.$W):w;if(S===c||S===u){var J=this.clone().set(b,1);J.$d[V](U),J.init(),this.$d=J.set(b,Math.min(this.$D,J.daysInMonth())).$d}else V&&this.$d[V](U);return this.init(),this},y.set=function(x,w){return this.clone().$set(x,w)},y.get=function(x){return this[L.p(x)]()},y.add=function(x,w){var v,S=this;x=Number(x);var k=L.p(w),V=function(re){var pe=N(S);return L.w(pe.date(pe.date()+Math.round(re*x)),S)};if(k===c)return this.set(c,this.$M+x);if(k===u)return this.set(u,this.$y+x);if(k===h)return V(1);if(k===d)return V(7);var U=(v={},v[a]=r,v[l]=o,v[n]=t,v)[k]||1,J=this.$d.getTime()+x*U;return L.w(J,this)},y.subtract=function(x,w){return this.add(-1*x,w)},y.format=function(x){var w=this,v=this.$locale();if(!this.isValid())return v.invalidDate||f;var S=x||"YYYY-MM-DDTHH:mm:ssZ",k=L.z(this),V=this.$H,U=this.$m,J=this.$M,re=v.weekdays,pe=v.months,Te=v.meridiem,xe=function(oe,me,Pe,we){return oe&&(oe[me]||oe(w,S))||Pe[me].slice(0,we)},ve=function(oe){return L.s(V%12||12,oe,"0")},F=Te||function(oe,me,Pe){var we=oe<12?"AM":"PM";return Pe?we.toLowerCase():we};return S.replace(P,function(oe,me){return me||function(Pe){switch(Pe){case"YY":return String(w.$y).slice(-2);case"YYYY":return L.s(w.$y,4,"0");case"M":return J+1;case"MM":return L.s(J+1,2,"0");case"MMM":return xe(v.monthsShort,J,pe,3);case"MMMM":return xe(pe,J);case"D":return w.$D;case"DD":return L.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return xe(v.weekdaysMin,w.$W,re,2);case"ddd":return xe(v.weekdaysShort,w.$W,re,3);case"dddd":return re[w.$W];case"H":return String(V);case"HH":return L.s(V,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return F(V,U,!0);case"A":return F(V,U,!1);case"m":return String(U);case"mm":return L.s(U,2,"0");case"s":return String(w.$s);case"ss":return L.s(w.$s,2,"0");case"SSS":return L.s(w.$ms,3,"0");case"Z":return k}return null}(oe)||k.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(x,w,v){var S,k=this,V=L.p(w),U=N(x),J=(U.utcOffset()-this.utcOffset())*r,re=this-U,pe=function(){return L.m(k,U)};switch(V){case u:S=pe()/12;break;case c:S=pe();break;case p:S=pe()/3;break;case d:S=(re-J)/6048e5;break;case h:S=(re-J)/864e5;break;case l:S=re/o;break;case a:S=re/r;break;case n:S=re/t;break;default:S=re}return v?S:L.a(S)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return G[this.$L]},y.locale=function(x,w){if(!x)return this.$L;var v=this.clone(),S=se(x,w,!0);return S&&(v.$L=S),v},y.clone=function(){return L.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()},T}(),ue=ae.prototype;return N.prototype=ue,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",h],["$M",c],["$y",u],["$D",b]].forEach(function(T){ue[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),N.extend=function(T,y){return T.$i||(T(y,ae,N),T.$i=!0),N},N.locale=se,N.isDayjs=O,N.unix=function(T){return N(1e3*T)},N.en=G[W],N.Ls=G,N.p={},N})})(Al);var Gu=Al.exports;const or=ws(Gu);var Pl={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(tl,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},h=function(f){return function(E){this[f]=+E}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var P=E.match(/([+-]|\d\d)/g),D=60*P[1]+(+P[2]||0);return D===0?0:P[0]==="+"?-D:D}(f)}],c=function(f){var E=a[f];return E&&(E.indexOf?E:E.s.concat(E.f))},p=function(f,E){var P,D=a.meridiem;if(D){for(var z=1;z<=24;z+=1)if(f.indexOf(D(z,0,E))>-1){P=z>12;break}}else P=f===(E?"pm":"PM");return P},u={A:[n,function(f){this.afternoon=p(f,!1)}],a:[n,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[o,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[o,h("day")],Do:[n,function(f){var E=a.ordinal,P=f.match(/\d+/);if(this.day=P[0],E)for(var D=1;D<=31;D+=1)E(D).replace(/\[|\]/g,"")===f&&(this.day=D)}],M:[s,h("month")],MM:[o,h("month")],MMM:[n,function(f){var E=c("months"),P=(c("monthsShort")||E.map(function(D){return D.slice(0,3)})).indexOf(f)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[n,function(f){var E=c("months").indexOf(f)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(f){this.year=l(f)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function b(f){var E,P;E=f,P=a&&a.formats;for(var D=(f=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(se,N,L){var ae=L&&L.toUpperCase();return N||P[L]||t[L]||P[ae].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ue,T,y){return T||y.slice(1)})})).match(r),z=D.length,j=0;j<z;j+=1){var W=D[j],G=u[W],Q=G&&G[0],O=G&&G[1];D[j]=O?{regex:Q,parser:O}:W.replace(/^\[|\]$/g,"")}return function(se){for(var N={},L=0,ae=0;L<z;L+=1){var ue=D[L];if(typeof ue=="string")ae+=ue.length;else{var T=ue.regex,y=ue.parser,x=se.slice(ae),w=T.exec(x)[0];y.call(N,w),se=se.replace(w,"")}}return function(v){var S=v.afternoon;if(S!==void 0){var k=v.hours;S?k<12&&(v.hours+=12):k===12&&(v.hours=0),delete v.afternoon}}(N),N}}return function(f,E,P){P.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var D=E.prototype,z=D.parse;D.parse=function(j){var W=j.date,G=j.utc,Q=j.args;this.$u=G;var O=Q[1];if(typeof O=="string"){var se=Q[2]===!0,N=Q[3]===!0,L=se||N,ae=Q[2];N&&(ae=Q[2]),a=this.$locale(),!se&&ae&&(a=P.Ls[ae]),this.$d=function(x,w,v){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*x);var S=b(w)(x),k=S.year,V=S.month,U=S.day,J=S.hours,re=S.minutes,pe=S.seconds,Te=S.milliseconds,xe=S.zone,ve=new Date,F=U||(k||V?1:ve.getDate()),oe=k||ve.getFullYear(),me=0;k&&!V||(me=V>0?V-1:ve.getMonth());var Pe=J||0,we=re||0,st=pe||0,He=Te||0;return xe?new Date(Date.UTC(oe,me,F,Pe,we,st,He+60*xe.offset*1e3)):v?new Date(Date.UTC(oe,me,F,Pe,we,st,He)):new Date(oe,me,F,Pe,we,st,He)}catch(Re){return new Date("")}}(W,O,G),this.init(),ae&&ae!==!0&&(this.$L=this.locale(ae).$L),L&&W!=this.format(O)&&(this.$d=new Date("")),a={}}else if(O instanceof Array)for(var ue=O.length,T=1;T<=ue;T+=1){Q[1]=O[T-1];var y=P.apply(this,Q);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}T===ue&&(this.$d=new Date(""))}else z.call(this,j)}}})})(Pl);var qu=Pl.exports;const Yu=ws(qu);var Xu=Object.defineProperty,Ku=Object.defineProperties,Zu=Object.getOwnPropertyDescriptors,Mn=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Xo=(i,e,t)=>e in i?Xu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Er=(i,e)=>{for(var t in e||(e={}))Ju.call(e,t)&&Xo(i,t,e[t]);if(Mn)for(var t of Mn(e))Qu.call(e,t)&&Xo(i,t,e[t]);return i},Il=(i,e)=>Ku(i,Zu(e)),Ie=(i,e,t)=>(Xo(i,typeof e!="symbol"?e+"":e,t),t),Sr=(i,e,t)=>new Promise((r,o)=>{var s=l=>{try{a(t.next(l))}catch(h){o(h)}},n=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(i,e)).next())});/**
|
|
18
|
+
`,Qt.MISSING_INTL_API,s);var j=t.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));z=d.options[j]||d.options.other}if(!z)throw new Ss(d.value,p,Object.keys(d.options),s);a.push.apply(a,mr(z.value,e,t,r,o,p-(d.offset||0)));continue}}return ru(a)}function nu(i,e){return e?Z(Z(Z({},i||{}),e||{}),Object.keys(i).reduce(function(t,r){return t[r]=Z(Z({},i[r]),e[r]||{}),t},{})):i}function su(i,e){return e?Object.keys(i).reduce(function(t,r){return t[r]=nu(i[r],e[r]),t},Z({},i)):i}function uo(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}function au(i){return i===void 0&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:uo(i.number),strategy:ho.variadic}),getDateTimeFormat:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:uo(i.dateTime),strategy:ho.variadic}),getPluralRules:lo(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Gt([void 0],t,!1)))},{cache:uo(i.pluralRules),strategy:ho.variadic})}}var lu=function(){function i(e,t,r,o){t===void 0&&(t=i.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var h=n.formatToParts(l);if(h.length===1)return h[0].value;var d=h.reduce(function(c,p){return!c.length||p.type!==ke.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return mr(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.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 s=o||{};s.formatters;var a=Vd(s,["formatters"]);this.ast=i.__parse(e,Z(Z({},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=su(i.formats,r),this.formatters=o&&o.formatters||au(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=eu,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 hu(i,e){if(e==null)return;if(e in i)return i[e];const t=e.split(".");let r=i;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in r){r=r[n];break}}r=r[t[o]]}else r=void 0;return r}const _t={},du=(i,e,t)=>t&&(e in _t||(_t[e]={}),i in _t[e]||(_t[e][i]=t),t),bl=(i,e)=>{if(e==null)return;if(e in _t&&i in _t[e])return _t[e][i];const t=Fr(e);for(let r=0;r<t.length;r++){const o=t[r],n=uu(o,i);if(n)return du(i,e,n)}};let xn;const ji=Lr({});function cu(i){return xn[i]||null}function yl(i){return i in xn}function uu(i,e){if(!yl(i))return null;const t=cu(i);return hu(t,e)}function pu(i){if(i==null)return;const e=Fr(i);for(let t=0;t<e.length;t++){const r=e[t];if(yl(r))return r}}function xl(i,...e){delete _t[i],ji.update(t=>(t[i]=gc.all([t[i]||{},...e]),t))}si([ji],([i])=>Object.keys(i));ji.subscribe(i=>xn=i);const _r={};function mu(i,e){_r[i].delete(e),_r[i].size===0&&delete _r[i]}function wl(i){return _r[i]}function _u(i){return Fr(i).map(e=>{const t=wl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Vo(i){return i==null?!1:Fr(i).some(e=>{var t;return(t=wl(e))==null?void 0:t.size})}function fu(i,e){return Promise.all(e.map(r=>(mu(i,r),r().then(o=>o.default||o)))).then(r=>xl(i,...r))}const gi={};function Cl(i){if(!Vo(i))return i in gi?gi[i]:Promise.resolve();const e=_u(i);return gi[i]=Promise.all(e.map(([t,r])=>fu(t,r))).then(()=>{if(Vo(i))return Cl(i);delete gi[i]}),gi[i]}const vu={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"}}},gu={fallbackLocale:null,loadingDelay:200,formats:vu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},bu=gu;function ei(){return bu}const po=Lr(!1);var yu=Object.defineProperty,xu=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,Cu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,Ps=(i,e,t)=>e in i?yu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Su=(i,e)=>{for(var t in e||(e={}))Cu.call(e,t)&&Ps(i,t,e[t]);if(As)for(var t of As(e))Eu.call(e,t)&&Ps(i,t,e[t]);return i},Au=(i,e)=>xu(i,wu(e));let Uo;const yr=Lr(null);function Is(i){return i.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Fr(i,e=ei().fallbackLocale){const t=Is(i);return e?[...new Set([...t,...Is(e)])]:t}function kt(){return Uo!=null?Uo:void 0}yr.subscribe(i=>{Uo=i!=null?i:void 0,typeof window!="undefined"&&i!=null&&document.documentElement.setAttribute("lang",i)});const Pu=i=>{if(i&&pu(i)&&Vo(i)){const{loadingDelay:e}=ei();let t;return typeof window!="undefined"&&kt()!=null&&e?t=window.setTimeout(()=>po.set(!0),e):po.set(!0),Cl(i).then(()=>{yr.set(i)}).finally(()=>{clearTimeout(t),po.set(!1)})}return yr.set(i)},ai=Au(Su({},yr),{set:Pu}),Hr=i=>{const e=Object.create(null);return r=>{const o=JSON.stringify(r);return o in e?e[o]:e[o]=i(r)}};var Iu=Object.defineProperty,xr=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable,ks=(i,e,t)=>e in i?Iu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wn=(i,e)=>{for(var t in e||(e={}))El.call(e,t)&&ks(i,t,e[t]);if(xr)for(var t of xr(e))Sl.call(e,t)&&ks(i,t,e[t]);return i},li=(i,e)=>{var t={};for(var r in i)El.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&xr)for(var r of xr(i))e.indexOf(r)<0&&Sl.call(i,r)&&(t[r]=i[r]);return t};const Mi=(i,e)=>{const{formats:t}=ei();if(i in t&&e in t[i])return t[i][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${i} format.`)},ku=Hr(i=>{var e=i,{locale:t,format:r}=e,o=li(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Mi("number",r)),new Intl.NumberFormat(t,o)}),Tu=Hr(i=>{var e=i,{locale:t,format:r}=e,o=li(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Mi("date",r):Object.keys(o).length===0&&(o=Mi("date","short")),new Intl.DateTimeFormat(t,o)}),Du=Hr(i=>{var e=i,{locale:t,format:r}=e,o=li(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Mi("time",r):Object.keys(o).length===0&&(o=Mi("time","short")),new Intl.DateTimeFormat(t,o)}),Ou=(i={})=>{var e=i,{locale:t=kt()}=e,r=li(e,["locale"]);return ku(wn({locale:t},r))},Mu=(i={})=>{var e=i,{locale:t=kt()}=e,r=li(e,["locale"]);return Tu(wn({locale:t},r))},Nu=(i={})=>{var e=i,{locale:t=kt()}=e,r=li(e,["locale"]);return Du(wn({locale:t},r))},Bu=Hr((i,e=kt())=>new lu(i,e,ei().formats,{ignoreTag:ei().ignoreTag})),Lu=(i,e={})=>{var t,r,o,n;let s=e;typeof i=="object"&&(s=i,i=s.id);const{values:a,locale:l=kt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=bl(i,l);if(!d)d=(n=(o=(r=(t=ei()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:i,defaultValue:h}))!=null?o:h)!=null?n:i;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Bu(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,p.message)}return c},zu=(i,e)=>Nu(e).format(i),Fu=(i,e)=>Mu(e).format(i),Hu=(i,e)=>Ou(e).format(i),Ru=(i,e=kt())=>bl(i,e),$u=si([ai,ji],()=>Lu);si([ai],()=>zu);si([ai],()=>Fu);si([ai],()=>Hu);si([ai,ji],()=>Ru);window.emWidgets={topic:ic};const Vu=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Ts(i,e){xl(i,e)}function Uu(i){ai.set(i)}const Ds={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"}};var Al={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(tl,function(){var t=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",h="day",d="week",c="month",p="quarter",u="year",b="date",f="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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,D={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(T){var y=["th","st","nd","rd"],x=T%100;return"["+T+(y[(x-20)%10]||y[x]||y[0])+"]"}},z=function(T,y,x){var w=String(T);return!w||w.length>=y?T:""+Array(y+1-w.length).join(x)+T},j={s:z,z:function(T){var y=-T.utcOffset(),x=Math.abs(y),w=Math.floor(x/60),v=x%60;return(y<=0?"+":"-")+z(w,2,"0")+":"+z(v,2,"0")},m:function T(y,x){if(y.date()<x.date())return-T(x,y);var w=12*(x.year()-y.year())+(x.month()-y.month()),v=y.clone().add(w,c),S=x-v<0,k=y.clone().add(w+(S?-1:1),c);return+(-(w+(x-v)/(S?v-k:k-v))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:u,w:d,d:h,D:b,h:l,m:a,s,ms:n,Q:p}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},U="en",G={};G[U]=D;var ee="$isDayjsObject",O=function(T){return T instanceof le||!(!T||!T[ee])},se=function T(y,x,w){var v;if(!y)return U;if(typeof y=="string"){var S=y.toLowerCase();G[S]&&(v=S),x&&(G[S]=x,v=S);var k=y.split("-");if(!v&&k.length>1)return T(k[0])}else{var V=y.name;G[V]=y,v=V}return!w&&v&&(U=v),v||!w&&U},N=function(T,y){if(O(T))return T.clone();var x=typeof y=="object"?y:{};return x.date=T,x.args=arguments,new le(x)},L=j;L.l=se,L.i=O,L.w=function(T,y){return N(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var le=function(){function T(x){this.$L=se(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[ee]=!0}var y=T.prototype;return y.parse=function(x){this.$d=function(w){var v=w.date,S=w.utc;if(v===null)return new Date(NaN);if(L.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var k=v.match(E);if(k){var V=k[2]-1||0,W=(k[7]||"0").substring(0,3);return S?new Date(Date.UTC(k[1],V,k[3]||1,k[4]||0,k[5]||0,k[6]||0,W)):new Date(k[1],V,k[3]||1,k[4]||0,k[5]||0,k[6]||0,W)}}return new Date(v)}(x),this.init()},y.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},y.$utils=function(){return L},y.isValid=function(){return this.$d.toString()!==f},y.isSame=function(x,w){var v=N(x);return this.startOf(w)<=v&&v<=this.endOf(w)},y.isAfter=function(x,w){return N(x)<this.startOf(w)},y.isBefore=function(x,w){return this.endOf(w)<N(x)},y.$g=function(x,w,v){return L.u(x)?this[w]:this.set(v,x)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(x,w){var v=this,S=!!L.u(w)||w,k=L.p(x),V=function(F,ne){var _e=L.w(v.$u?Date.UTC(v.$y,ne,F):new Date(v.$y,ne,F),v);return S?_e:_e.endOf(h)},W=function(F,ne){return L.w(v.toDate()[F].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(ne)),v)},Q=this.$W,oe=this.$M,me=this.$D,Te="set"+(this.$u?"UTC":"");switch(k){case u:return S?V(1,0):V(31,11);case c:return S?V(1,oe):V(0,oe+1);case d:var xe=this.$locale().weekStart||0,ve=(Q<xe?Q+7:Q)-xe;return V(S?me-ve:me+(6-ve),oe);case h:case b:return W(Te+"Hours",0);case l:return W(Te+"Minutes",1);case a:return W(Te+"Seconds",2);case s:return W(Te+"Milliseconds",3);default:return this.clone()}},y.endOf=function(x){return this.startOf(x,!1)},y.$set=function(x,w){var v,S=L.p(x),k="set"+(this.$u?"UTC":""),V=(v={},v[h]=k+"Date",v[b]=k+"Date",v[c]=k+"Month",v[u]=k+"FullYear",v[l]=k+"Hours",v[a]=k+"Minutes",v[s]=k+"Seconds",v[n]=k+"Milliseconds",v)[S],W=S===h?this.$D+(w-this.$W):w;if(S===c||S===u){var Q=this.clone().set(b,1);Q.$d[V](W),Q.init(),this.$d=Q.set(b,Math.min(this.$D,Q.daysInMonth())).$d}else V&&this.$d[V](W);return this.init(),this},y.set=function(x,w){return this.clone().$set(x,w)},y.get=function(x){return this[L.p(x)]()},y.add=function(x,w){var v,S=this;x=Number(x);var k=L.p(w),V=function(oe){var me=N(S);return L.w(me.date(me.date()+Math.round(oe*x)),S)};if(k===c)return this.set(c,this.$M+x);if(k===u)return this.set(u,this.$y+x);if(k===h)return V(1);if(k===d)return V(7);var W=(v={},v[a]=r,v[l]=o,v[s]=t,v)[k]||1,Q=this.$d.getTime()+x*W;return L.w(Q,this)},y.subtract=function(x,w){return this.add(-1*x,w)},y.format=function(x){var w=this,v=this.$locale();if(!this.isValid())return v.invalidDate||f;var S=x||"YYYY-MM-DDTHH:mm:ssZ",k=L.z(this),V=this.$H,W=this.$m,Q=this.$M,oe=v.weekdays,me=v.months,Te=v.meridiem,xe=function(ne,_e,Pe,we){return ne&&(ne[_e]||ne(w,S))||Pe[_e].slice(0,we)},ve=function(ne){return L.s(V%12||12,ne,"0")},F=Te||function(ne,_e,Pe){var we=ne<12?"AM":"PM";return Pe?we.toLowerCase():we};return S.replace(P,function(ne,_e){return _e||function(Pe){switch(Pe){case"YY":return String(w.$y).slice(-2);case"YYYY":return L.s(w.$y,4,"0");case"M":return Q+1;case"MM":return L.s(Q+1,2,"0");case"MMM":return xe(v.monthsShort,Q,me,3);case"MMMM":return xe(me,Q);case"D":return w.$D;case"DD":return L.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return xe(v.weekdaysMin,w.$W,oe,2);case"ddd":return xe(v.weekdaysShort,w.$W,oe,3);case"dddd":return oe[w.$W];case"H":return String(V);case"HH":return L.s(V,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return F(V,W,!0);case"A":return F(V,W,!1);case"m":return String(W);case"mm":return L.s(W,2,"0");case"s":return String(w.$s);case"ss":return L.s(w.$s,2,"0");case"SSS":return L.s(w.$ms,3,"0");case"Z":return k}return null}(ne)||k.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(x,w,v){var S,k=this,V=L.p(w),W=N(x),Q=(W.utcOffset()-this.utcOffset())*r,oe=this-W,me=function(){return L.m(k,W)};switch(V){case u:S=me()/12;break;case c:S=me();break;case p:S=me()/3;break;case d:S=(oe-Q)/6048e5;break;case h:S=(oe-Q)/864e5;break;case l:S=oe/o;break;case a:S=oe/r;break;case s:S=oe/t;break;default:S=oe}return v?S:L.a(S)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return G[this.$L]},y.locale=function(x,w){if(!x)return this.$L;var v=this.clone(),S=se(x,w,!0);return S&&(v.$L=S),v},y.clone=function(){return L.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()},T}(),pe=le.prototype;return N.prototype=pe,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",h],["$M",c],["$y",u],["$D",b]].forEach(function(T){pe[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),N.extend=function(T,y){return T.$i||(T(y,le,N),T.$i=!0),N},N.locale=se,N.isDayjs=O,N.unix=function(T){return N(1e3*T)},N.en=G[U],N.Ls=G,N.p={},N})})(Al);var Wu=Al.exports;const rr=gn(Wu);var Pl={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(tl,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},h=function(f){return function(E){this[f]=+E}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var P=E.match(/([+-]|\d\d)/g),D=60*P[1]+(+P[2]||0);return D===0?0:P[0]==="+"?-D:D}(f)}],c=function(f){var E=a[f];return E&&(E.indexOf?E:E.s.concat(E.f))},p=function(f,E){var P,D=a.meridiem;if(D){for(var z=1;z<=24;z+=1)if(f.indexOf(D(z,0,E))>-1){P=z>12;break}}else P=f===(E?"pm":"PM");return P},u={A:[s,function(f){this.afternoon=p(f,!1)}],a:[s,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[o,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[o,h("day")],Do:[s,function(f){var E=a.ordinal,P=f.match(/\d+/);if(this.day=P[0],E)for(var D=1;D<=31;D+=1)E(D).replace(/\[|\]/g,"")===f&&(this.day=D)}],M:[n,h("month")],MM:[o,h("month")],MMM:[s,function(f){var E=c("months"),P=(c("monthsShort")||E.map(function(D){return D.slice(0,3)})).indexOf(f)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[s,function(f){var E=c("months").indexOf(f)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(f){this.year=l(f)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function b(f){var E,P;E=f,P=a&&a.formats;for(var D=(f=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(se,N,L){var le=L&&L.toUpperCase();return N||P[L]||t[L]||P[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(pe,T,y){return T||y.slice(1)})})).match(r),z=D.length,j=0;j<z;j+=1){var U=D[j],G=u[U],ee=G&&G[0],O=G&&G[1];D[j]=O?{regex:ee,parser:O}:U.replace(/^\[|\]$/g,"")}return function(se){for(var N={},L=0,le=0;L<z;L+=1){var pe=D[L];if(typeof pe=="string")le+=pe.length;else{var T=pe.regex,y=pe.parser,x=se.slice(le),w=T.exec(x)[0];y.call(N,w),se=se.replace(w,"")}}return function(v){var S=v.afternoon;if(S!==void 0){var k=v.hours;S?k<12&&(v.hours+=12):k===12&&(v.hours=0),delete v.afternoon}}(N),N}}return function(f,E,P){P.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var D=E.prototype,z=D.parse;D.parse=function(j){var U=j.date,G=j.utc,ee=j.args;this.$u=G;var O=ee[1];if(typeof O=="string"){var se=ee[2]===!0,N=ee[3]===!0,L=se||N,le=ee[2];N&&(le=ee[2]),a=this.$locale(),!se&&le&&(a=P.Ls[le]),this.$d=function(x,w,v){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*x);var S=b(w)(x),k=S.year,V=S.month,W=S.day,Q=S.hours,oe=S.minutes,me=S.seconds,Te=S.milliseconds,xe=S.zone,ve=new Date,F=W||(k||V?1:ve.getDate()),ne=k||ve.getFullYear(),_e=0;k&&!V||(_e=V>0?V-1:ve.getMonth());var Pe=Q||0,we=oe||0,nt=me||0,He=Te||0;return xe?new Date(Date.UTC(ne,_e,F,Pe,we,nt,He+60*xe.offset*1e3)):v?new Date(Date.UTC(ne,_e,F,Pe,we,nt,He)):new Date(ne,_e,F,Pe,we,nt,He)}catch(Re){return new Date("")}}(U,O,G),this.init(),le&&le!==!0&&(this.$L=this.locale(le).$L),L&&U!=this.format(O)&&(this.$d=new Date("")),a={}}else if(O instanceof Array)for(var pe=O.length,T=1;T<=pe;T+=1){ee[1]=O[T-1];var y=P.apply(this,ee);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}T===pe&&(this.$d=new Date(""))}else z.call(this,j)}}})})(Pl);var ju=Pl.exports;const Gu=gn(ju);var qu=Object.defineProperty,Yu=Object.defineProperties,Xu=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,Wo=(i,e,t)=>e in i?qu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wr=(i,e)=>{for(var t in e||(e={}))Ku.call(e,t)&&Wo(i,t,e[t]);if(Os)for(var t of Os(e))Zu.call(e,t)&&Wo(i,t,e[t]);return i},Il=(i,e)=>Yu(i,Xu(e)),Ie=(i,e,t)=>(Wo(i,typeof e!="symbol"?e+"":e,t),t),Cr=(i,e,t)=>new Promise((r,o)=>{var n=l=>{try{a(t.next(l))}catch(h){o(h)}},s=l=>{try{a(t.throw(l))}catch(h){o(h)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(i,e)).next())});/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
21
21
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22
|
-
*/function X(i,e="24.5.
|
|
22
|
+
*/function X(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
23
23
|
* @license
|
|
24
24
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
25
25
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
26
|
-
*/class
|
|
26
|
+
*/class Ju extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}X(Ju);/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2019 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const
|
|
30
|
+
*/const fr=globalThis,Cn=fr.ShadowRoot&&(fr.ShadyCSS===void 0||fr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,En=Symbol(),Ms=new WeakMap;let Sn=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==En)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Cn&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ms.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ms.set(e,i))}return i}toString(){return this.cssText}};const Qu=i=>new Sn(typeof i=="string"?i:i+"",void 0,En),I=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new Sn(t,i,En)},kl=(i,e)=>{if(Cn)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=fr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Ns=Cn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Qu(t)})(i):i;/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:
|
|
34
|
+
*/const{is:ep,defineProperty:tp,getOwnPropertyDescriptor:ip,getOwnPropertyNames:rp,getOwnPropertySymbols:op,getPrototypeOf:np}=Object,ti=globalThis,Bs=ti.trustedTypes,sp=Bs?Bs.emptyScript:"",Ls=ti.reactiveElementPolyfillSupport,ki=(i,e)=>i,jo={toAttribute(i,e){switch(e){case Boolean:i=i?sp: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(r){t=null}}return t}},Tl=(i,e)=>!ep(i,e),zs={attribute:!0,type:String,converter:jo,reflect:!1,hasChanged:Tl};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),ti.litPropertyMetadata!=null||(ti.litPropertyMetadata=new WeakMap);class Wt 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=zs){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&tp(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var o;const{get:n,set:s}=(o=ip(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);s.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:zs}static _$Ei(){if(this.hasOwnProperty(ki("elementProperties")))return;const e=np(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ki("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ki("properties"))){const t=this.properties,r=[...rp(t),...op(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Ns(o))}else e!==void 0&&t.push(Ns(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return kl(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var r;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:jo).toAttribute(t,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){var r;const o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:jo;this._$Em=n,this[n]=a.fromAttribute(t,s.type),this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((o=r.hasChanged)!=null?o:Tl)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}_$ET(){return Cr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,s]of o)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],s)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(r)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),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 Fs;Wt.elementStyles=[],Wt.shadowRootOptions={mode:"open"},Wt[ki("elementProperties")]=new Map,Wt[ki("finalized")]=new Map,Ls==null||Ls({ReactiveElement:Wt}),((Fs=ti.reactiveElementVersions)!=null?Fs:ti.reactiveElementVersions=[]).push("2.0.4");/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const
|
|
39
|
-
\f\r]`,
|
|
40
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
38
|
+
*/const Er=globalThis,Sr=Er.trustedTypes,Hs=Sr?Sr.createPolicy("lit-html",{createHTML:i=>i}):void 0,Dl="$lit$",mt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ol="?"+mt,ap=`<${Ol}>`,It=document,Ni=()=>It.createComment(""),Bi=i=>i===null||typeof i!="object"&&typeof i!="function",An=Array.isArray,lp=i=>An(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",mo=`[
|
|
39
|
+
\f\r]`,bi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rs=/-->/g,$s=/>/g,Et=RegExp(`>|${mo}(?:([^\\s"'>=/]+)(${mo}*=${mo}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vs=/'/g,Us=/"/g,Ml=/^(?:script|style|textarea|title)$/i,ii=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),Ws=new WeakMap,St=It.createTreeWalker(It,129);function Nl(i,e){if(!An(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hs!==void 0?Hs.createHTML(e):e}const hp=(i,e)=>{const t=i.length-1,r=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=bi;for(let a=0;a<t;a++){const l=i[a];let h,d,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,d=s.exec(l),d!==null);)p=s.lastIndex,s===bi?d[1]==="!--"?s=Rs:d[1]!==void 0?s=$s:d[2]!==void 0?(Ml.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Et):d[3]!==void 0&&(s=Et):s===Et?d[0]===">"?(s=o!=null?o:bi,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?Et:d[3]==='"'?Us:Vs):s===Us||s===Vs?s=Et:s===Rs||s===$s?s=bi:(s=Et,o=void 0);const u=s===Et&&i[a+1].startsWith("/>")?" ":"";n+=s===bi?l+ap:c>=0?(r.push(h),l.slice(0,c)+Dl+l.slice(c)+mt+u):l+mt+(c===-2?a:u)}return[Nl(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Li{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=hp(e,t);if(this.el=Li.createElement(h,r),St.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=St.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(Dl)){const p=d[s++],u=o.getAttribute(c).split(mt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:b[2],strings:u,ctor:b[1]==="."?cp:b[1]==="?"?up:b[1]==="@"?pp:Rr}),o.removeAttribute(c)}else c.startsWith(mt)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(Ml.test(o.tagName)){const c=o.textContent.split(mt),p=c.length-1;if(p>0){o.textContent=Sr?Sr.emptyScript:"";for(let u=0;u<p;u++)o.append(c[u],Ni()),St.nextNode(),l.push({type:2,index:++n});o.append(c[p],Ni())}}}else if(o.nodeType===8)if(o.data===Ol)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(mt,c+1))!==-1;)l.push({type:7,index:n}),c+=mt.length-1}n++}}static createElement(e,t){const r=It.createElement("template");return r.innerHTML=e,r}}function ri(i,e,t=i,r){var o,n,s;if(e===ii)return e;let a=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Bi(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((n=a==null?void 0:a._$AO)==null||n.call(a,!1),l===void 0?a=void 0:(a=new l(i),a._$AT(i,t,r)),r!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[r]=a:t._$Cl=a),a!==void 0&&(e=ri(i,a._$AS(i,e.values),a,r)),e}class dp{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:r},parts:o}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:It).importNode(r,!0);St.currentNode=n;let s=St.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Gi(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new mp(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=St.nextNode(),a++)}return St.currentNode=It,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Gi{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var n;this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!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=ri(this,e,t),Bi(e)?e===ye||e==null||e===""?(this._$AH!==ye&&this._$AR(),this._$AH=ye):e!==this._$AH&&e!==ii&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):lp(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!==ye&&Bi(this._$AH)?this._$AA.nextSibling.data=e:this.T(It.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Li.createElement(Nl(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(r);else{const s=new dp(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let t=Ws.get(e.strings);return t===void 0&&Ws.set(e.strings,t=new Li(e)),t}k(e){An(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new Gi(this.O(Ni()),this.O(Ni()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Rr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ye}_$AI(e,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)e=ri(this,e,t,0),s=!Bi(e)||e!==this._$AH&&e!==ii,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=ri(this,a[r+l],t,l),h===ii&&(h=this._$AH[l]),s||(s=!Bi(h)||h!==this._$AH[l]),h===ye?e=ye:e!==ye&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class cp extends Rr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ye?void 0:e}}class up extends Rr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ye)}}class pp extends Rr{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=ri(this,e,t,0))!=null?r:ye)===ii)return;const o=this._$AH,n=e===ye&&o!==ye||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==ye&&(o===ye||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class mp{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ri(this,e)}}const js=Er.litHtmlPolyfillSupport;var Gs;js==null||js(Li,Gi),((Gs=Er.litHtmlVersions)!=null?Gs:Er.litHtmlVersions=[]).push("3.2.1");const Bl=(i,e,t)=>{var r,o;const n=(r=t==null?void 0:t.renderBefore)!=null?r:e;let s=n._$litPart$;if(s===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;n._$litPart$=s=new Gi(e.insertBefore(Ni(),a),a,void 0,t!=null?t:{})}return s._$AI(i),s};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/
|
|
44
|
+
*/class qt extends Wt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Bl(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 ii}}var qs;qt._$litElement$=!0,qt.finalized=!0,(qs=globalThis.litElementHydrateSupport)==null||qs.call(globalThis,{LitElement:qt});const Ys=globalThis.litElementPolyfillSupport;Ys==null||Ys({LitElement:qt});var Xs;((Xs=globalThis.litElementVersions)!=null?Xs:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
47
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -49,17 +49,17 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
51
51
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
-
*/const zl=[],
|
|
53
|
-
`)}const
|
|
52
|
+
*/const zl=[],Go=new Set,Pn=new Set;function Fl(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function _p(i){return Fl(customElements.get(i))}function fp(i=[]){return[i].flat(1/0).filter(e=>e instanceof Sn?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Hl(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Rl(i){return i.map(e=>e.cssText).join(`
|
|
53
|
+
`)}const Ar="vaadin-themable-mixin-style";function vp(i,e){const t=document.createElement("style");t.id=Ar,t.textContent=Rl(i),e.content.appendChild(t)}function gp(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof qt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),kl(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Ar),r=e.prototype._template;t.textContent=r.content.getElementById(Ar).textContent}}function bp(i){Go.forEach(e=>{const t=e.deref();t instanceof i?gp(t):t||Go.delete(e)})}function $l(i){if(i.prototype instanceof qt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Ar).textContent=Rl(i.getStylesForThis())}Pn.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&$l(t)})}function yp(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function B(i,e,t={}){e=fp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):zl.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Pn.forEach(r=>{if(Hl(i,r)&&_p(r)){const o=customElements.get(r);yp(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),$l(o),bp(o)}})}function qo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():zl}function xp(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Vl(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=qo().find(o=>o.moduleId===t);r?e.push(...Vl(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function wp(i){const e=`${i}-default-theme`,t=qo().filter(r=>r.moduleId!==e&&Hl(r.themeFor,i)).map(r=>Il(wr({},r),{styles:[...Vl(r),...r.styles],includePriority:xp(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:qo().filter(r=>r.moduleId===e)}const ae=i=>class extends Ll(i){constructor(){super(),Go.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Pn.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Fl(this)||vp(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...wp(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,s)=>s===o.lastIndexOf(n))}};/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
56
56
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
57
|
-
*/const
|
|
58
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},
|
|
57
|
+
*/const Cp=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
|
|
58
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},hi=(i,...e)=>{Cp(`lumo-${i}`,e)};/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
61
61
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
62
|
-
*/const
|
|
62
|
+
*/const Ep=I`
|
|
63
63
|
:host {
|
|
64
64
|
/* Base (background) */
|
|
65
65
|
--lumo-base-color: #fff;
|
|
@@ -144,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
144
144
|
--lumo-disabled-text-color: GrayText;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;hi("color-props",Ep);const Sp=I`
|
|
148
148
|
[theme~='dark'] {
|
|
149
149
|
/* Base (background) */
|
|
150
150
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -262,11 +262,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
262
262
|
pre code {
|
|
263
263
|
background: transparent;
|
|
264
264
|
}
|
|
265
|
-
`;B("",
|
|
265
|
+
`;B("",Sp,{moduleId:"lumo-color"});/**
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
268
268
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
269
|
-
*/const
|
|
269
|
+
*/const Ap=I`
|
|
270
270
|
@font-face {
|
|
271
271
|
font-family: 'lumo-icons';
|
|
272
272
|
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==)
|
|
@@ -319,11 +319,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
319
319
|
--lumo-icons-upload: '\\ea29';
|
|
320
320
|
--lumo-icons-user: '\\ea2a';
|
|
321
321
|
}
|
|
322
|
-
`;
|
|
322
|
+
`;hi("font-icons",Ap);/**
|
|
323
323
|
* @license
|
|
324
324
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
325
325
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
326
|
-
*/const
|
|
326
|
+
*/const Pp=I`
|
|
327
327
|
:host {
|
|
328
328
|
--lumo-size-xs: 1.625rem;
|
|
329
329
|
--lumo-size-s: 1.875rem;
|
|
@@ -338,11 +338,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
338
338
|
/* For backwards compatibility */
|
|
339
339
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
340
340
|
}
|
|
341
|
-
`;
|
|
341
|
+
`;hi("sizing-props",Pp);/**
|
|
342
342
|
* @license
|
|
343
343
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
344
344
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
345
|
-
*/const
|
|
345
|
+
*/const Ip=I`
|
|
346
346
|
:host {
|
|
347
347
|
/* Square */
|
|
348
348
|
--lumo-space-xs: 0.25rem;
|
|
@@ -365,11 +365,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
365
365
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
366
366
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
367
367
|
}
|
|
368
|
-
`;
|
|
368
|
+
`;hi("spacing-props",Ip);/**
|
|
369
369
|
* @license
|
|
370
370
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
371
371
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
372
|
-
*/const
|
|
372
|
+
*/const kp=I`
|
|
373
373
|
:host {
|
|
374
374
|
/* Border radius */
|
|
375
375
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -469,11 +469,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
469
469
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
470
470
|
--vaadin-input-field-value-font-weight: 500;
|
|
471
471
|
}
|
|
472
|
-
`;
|
|
472
|
+
`;hi("style-props",kp);/**
|
|
473
473
|
* @license
|
|
474
474
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
475
475
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
476
|
-
*/const
|
|
476
|
+
*/const Tp=I`
|
|
477
477
|
:host {
|
|
478
478
|
/* prettier-ignore */
|
|
479
479
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -493,7 +493,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
493
493
|
--lumo-line-height-s: 1.375;
|
|
494
494
|
--lumo-line-height-m: 1.625;
|
|
495
495
|
}
|
|
496
|
-
`,
|
|
496
|
+
`,Dp=I`
|
|
497
497
|
body,
|
|
498
498
|
:host {
|
|
499
499
|
font-family: var(--lumo-font-family);
|
|
@@ -585,7 +585,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
585
585
|
border-left: none;
|
|
586
586
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
587
587
|
}
|
|
588
|
-
`;B("",
|
|
588
|
+
`;B("",Dp,{moduleId:"lumo-typography"});hi("typography-props",Tp);B("vaadin-checkbox",I`
|
|
589
589
|
:host {
|
|
590
590
|
color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
|
|
591
591
|
font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
|
|
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
905
905
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
906
906
|
Code distributed by Google as part of the polymer project is also
|
|
907
907
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
908
|
-
*/let
|
|
908
|
+
*/let Op=/(url\()([^)]*)(\))/g,Mp=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,or,ze;function Ti(i,e){if(i&&Mp.test(i)||i==="//")return i;if(or===void 0){or=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",or=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),or)try{return new URL(i,e).href}catch(t){return i}return ze||(ze=document.implementation.createHTMLDocument("temp"),ze.base=ze.createElement("base"),ze.head.appendChild(ze.base),ze.anchor=ze.createElement("a"),ze.body.appendChild(ze.anchor)),ze.base.href=e,ze.anchor.href=i,ze.anchor.href||i}function In(i,e){return i.replace(Op,function(t,r,o,n){return r+"'"+Ti(o.replace(/["']/g,""),e)+"'"+n})}function kn(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
909
909
|
@license
|
|
910
910
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
911
911
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
913
913
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
914
914
|
Code distributed by Google as part of the polymer project is also
|
|
915
915
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
916
|
-
*/const
|
|
916
|
+
*/const Ul=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Np=Ul&&"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 Bp=window.Polymer&&window.Polymer.rootPath||kn(document.baseURI||window.location.href),Pr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ir=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Lp=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Wl=window.Polymer&&window.Polymer.legacyOptimizations||!1,jl=window.Polymer&&window.Polymer.legacyWarnings||!1,zp=window.Polymer&&window.Polymer.syncInitialRender||!1,Yo=window.Polymer&&window.Polymer.legacyUndefined||!1,Fp=window.Polymer&&window.Polymer.orderedComputed||!1,Ks=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Hp=window.Polymer&&window.Polymer.fastDomIf||!1,Zs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Rp=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
917
917
|
@license
|
|
918
918
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
919
919
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
921
921
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
922
922
|
Code distributed by Google as part of the polymer project is also
|
|
923
923
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
924
|
-
*/let
|
|
924
|
+
*/let $p=0;const fe=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=$p++;function r(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=e,a=s.get(o);if(!a){a=i(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
|
|
925
925
|
@license
|
|
926
926
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
927
927
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -929,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
929
929
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
930
930
|
Code distributed by Google as part of the polymer project is also
|
|
931
931
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
932
|
-
*/let
|
|
932
|
+
*/let Tn={},Gl={};function Js(i,e){Tn[i]=Gl[i.toLowerCase()]=e}function Qs(i){return Tn[i]||Gl[i.toLowerCase()]}function Vp(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class zi extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Qs(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ti(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=kn(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ir&&Qs(e)!==void 0)throw Js(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Js(e,this),Vp(this)}}}zi.prototype.modules=Tn;customElements.define("dom-module",zi);/**
|
|
933
933
|
@license
|
|
934
934
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
935
935
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
937
937
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
938
938
|
Code distributed by Google as part of the polymer project is also
|
|
939
939
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
940
|
-
*/const
|
|
940
|
+
*/const Up="link[rel=import][type~=css]",Wp="include",ea="shady-unscoped";function ql(i){return zi.import(i)}function ta(i){let e=i.body?i.body:i;const t=In(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function jp(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Gp(e[r]));return t}function Gp(i){const e=ql(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...Xl(e));const r=e.querySelector("template");r&&t.push(...Yl(r,e.assetpath)),e._styles=t}return e._styles}function Yl(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute(Wp);s&&t.push(...jp(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=In(n.textContent,e)),t.push(n)}i._styles=t}return i._styles}function qp(i){let e=ql(i);return e?Xl(e):[]}function Xl(i){const e=[],t=i.querySelectorAll(Up);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const n=o.import,s=o.hasAttribute(ea);if(s&&!n._unscopedStyle){const a=ta(n);a.setAttribute(ea,""),n._unscopedStyle=a}else n._style||(n._style=ta(n));e.push(s?n._unscopedStyle:n._style)}}return e}/**
|
|
941
941
|
@license
|
|
942
942
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
943
943
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -953,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
953
953
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
954
954
|
Code distributed by Google as part of the polymer project is also
|
|
955
955
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
956
|
-
*/function
|
|
956
|
+
*/function Xo(i){return i.indexOf(".")>=0}function Tt(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Kl(i,e){return i.indexOf(e+".")===0}function Fi(i,e){return e.indexOf(i+".")===0}function Hi(i,e,t){return e+t.slice(i.length)}function Yp(i,e){return i===e||Kl(i,e)||Fi(i,e)}function Ei(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function Zl(i){return Array.isArray(i)?Ei(i).split("."):i.toString().split(".")}function Ne(i,e,t){let r=i,o=Zl(e);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return t&&(t.path=o.join(".")),r}function ia(i,e,t){let r=i,o=Zl(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=t}else r[e]=t;return o.join(".")}/**
|
|
957
957
|
@license
|
|
958
958
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
959
959
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
961
961
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
962
962
|
Code distributed by Google as part of the polymer project is also
|
|
963
963
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
964
|
-
*/const
|
|
964
|
+
*/const kr={},Xp=/-[a-z]/g,Kp=/([A-Z])/g;function Jl(i){return kr[i]||(kr[i]=i.indexOf("-")<0?i:i.replace(Xp,e=>e[1].toUpperCase()))}function $r(i){return kr[i]||(kr[i]=i.replace(Kp,"-$1").toLowerCase())}/**
|
|
965
965
|
@license
|
|
966
966
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
967
967
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
969
969
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
970
970
|
Code distributed by Google as part of the polymer project is also
|
|
971
971
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
972
|
-
*/let
|
|
972
|
+
*/let Zp=0,Ql=0,Yt=[],Jp=0,Ko=!1,eh=document.createTextNode("");new window.MutationObserver(Qp).observe(eh,{characterData:!0});function Qp(){Ko=!1;const i=Yt.length;for(let e=0;e<i;e++){let t=Yt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Yt.splice(0,i),Ql+=i}const em={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)}},th={run(i){return Ko||(Ko=!0,eh.textContent=Jp++),Yt.push(i),Zp++},cancel(i){const e=i-Ql;if(e>=0){if(!Yt[e])throw new Error("invalid async handle: "+i);Yt[e]=null}}};/**
|
|
973
973
|
@license
|
|
974
974
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
975
975
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
977
977
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
978
978
|
Code distributed by Google as part of the polymer project is also
|
|
979
979
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
980
|
-
*/const
|
|
980
|
+
*/const tm=th,ih=fe(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,n,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,tm.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 r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=Ae(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
|
|
981
981
|
@license
|
|
982
982
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
983
983
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -985,7 +985,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
985
985
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
986
986
|
Code distributed by Google as part of the polymer project is also
|
|
987
987
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
988
|
-
*/const rh={};let nr=HTMLElement.prototype;for(;nr;){let i=Object.getOwnPropertyNames(nr);for(let e=0;e<i.length;e++)rh[i[e]]=!0;nr=Object.getPrototypeOf(nr)}const
|
|
988
|
+
*/const rh={};let nr=HTMLElement.prototype;for(;nr;){let i=Object.getOwnPropertyNames(nr);for(let e=0;e<i.length;e++)rh[i[e]]=!0;nr=Object.getPrototypeOf(nr)}const im=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function rm(i,e){if(!rh[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 om=fe(i=>{const e=ih(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(Jl(o[n]))}static attributeNameForProperty(o){return $r(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(im(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){rm(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
|
|
989
989
|
@license
|
|
990
990
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
991
991
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -993,7 +993,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
993
993
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
994
994
|
Code distributed by Google as part of the polymer project is also
|
|
995
995
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
996
|
-
*/const
|
|
996
|
+
*/const nm={"dom-if":!0,"dom-repeat":!0};let ra=!1,oa=!1;function sm(){if(!ra){ra=!0;const i=document.createElement("textarea");i.placeholder="a",oa=i.placeholder===i.textContent}return oa}function am(i){sm()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const lm=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function hm(i){let e=i.getAttribute("is");if(e&&nm[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:r}=t.attributes[0];lm(i,t,r),t.removeAttribute(r)}}return i}function oh(i,e){let t=e.parentInfo&&oh(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function dm(i,e,t,r){r.id&&(e[r.id]=t)}function cm(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,n;r<o.length&&(n=o[r]);r++)i._addMethodEventListenerToNode(e,n.name,n.value,i)}function um(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function pm(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 mm=fe(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),am(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=hm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let h={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,h)&&(h.infoIndex=o.nodeInfoList.push(h)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let h=0,d=n.length,c;h<d&&(c=n[h]);h++){let p=l[h]=oh(a,c);dm(this,a.$,p,c),um(this,p,c,o),cm(this,p,c)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=pm(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return e});/**
|
|
997
997
|
* @fileoverview
|
|
998
998
|
* @suppress {checkPrototypalTypes}
|
|
999
999
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1003,7 +1003,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1003
1003
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1004
1004
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1005
1005
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1006
|
-
*/let Ri=0;const $i=[],K={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},sh="__computeInfo",vm=/[A-Z]/;function go(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let s=r[o],n=r[o]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return r}function Ei(i,e,t,r,o,s){if(e){let n=!1;const a=Ri++;for(let l in t){let h=o?Tt(l):l,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==a)&&(!o||Ms(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(i,l,t,r,u.info,o,s),n=!0)}return n}return!1}function gm(i,e,t,r,o,s,n,a){let l=!1,h=n?Tt(r):r,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==t)&&(!n||Ms(r,u.trigger))&&(u.info&&(u.info.lastRun=t),u.fn(i,r,o,s,u.info,n,a),l=!0);return l}function Ms(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Kl(t,i))||!!(e.wildcard&&Fi(t,i))}else return!0}function na(i,e,t,r,o){let s=typeof o.method=="string"?i[o.method]:o.method,n=o.property;s?s.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function bm(i,e,t,r,o){let s=i[K.NOTIFY],n,a=Ri++;for(let h in e)e[h]&&(s&&gm(i,s,a,h,t,r,o)||o&&ym(i,h,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ym(i,e,t){let r=Tt(e);if(r!==e){let o=Ur(r)+"-changed";return nh(i,o,t[e],e),!0}return!1}function nh(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),Ae(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function xm(i,e,t,r,o,s){let n=(s?Tt(e):e)!=e?e:null,a=n?Ne(i,n):i.__data[e];n&&a===void 0&&(a=t[e]),nh(i,o.eventName,a,n)}function wm(i,e,t,r,o){let s,n=i.detail,a=n&&n.path;a?(r=Hi(t,r,a),s=n&&n.value):s=i.currentTarget[t],s=o?!s:s,(!e[K.READ_ONLY]||!e[K.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Cm(i,e,t,r,o){let s=i.__data[e];kr&&(s=kr(s,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,s)}function Em(i,e,t,r){let o=i[K.COMPUTE];if(o)if(Rp){Ri++;const s=Am(i),n=[];for(let l in e)aa(l,o,n,s,r);let a;for(;a=n.shift();)ah(i,"",e,t,a)&&aa(a.methodInfo,o,n,s,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;Ei(i,o,s,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Sm=(i,e,t)=>{let r=0,o=e.length-1,s=-1;for(;r<=o;){const n=r+o>>1,a=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)o=n-1;else{s=n;break}}s<0&&(s=o+1),e.splice(s,0,i)},aa=(i,e,t,r,o)=>{const s=o?Tt(i):i,n=e[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ri&&(!o||Ms(i,l.trigger))&&(l.info.lastRun=Ri,Sm(l.info,t,r))}};function Am(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[K.COMPUTE];let{counts:r,ready:o,total:s}=Pm(i),n;for(;n=o.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const h=l.info.methodInfo;--s,--r[h]===0&&o.push(h)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Pm(i){const e=i[sh],t={},r=i[K.COMPUTE],o=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:s}}function ah(i,e,t,r,o){let s=is(i,e,t,r,o);if(s===$i)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,s,!0):(i[n]=s,!1)}function Im(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let s in r){let n=r[s];Fi(s,e)?(o=Hi(s,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Fi(n,e)&&(o=Hi(n,s,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function bo(i,e,t,r,o,s,n){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Mm(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Ur(o)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let h=0;h<a.parts.length;h++){let d=a.parts[h];d.compoundIndex=h,km(i,e,a,d,l)}}function km(i,e,t,r,o){if(!r.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=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=hh(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Tm,info:n,trigger:l})}}}function Tm(i,e,t,r,o,s,n){let a=n[o.index],l=o.binding,h=o.part;if(s&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hi(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&i._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(i,h,e,t,r,s);d!==$i&&Dm(i,a,l,h,d)}}function Dm(i,e,t,r,o){if(o=Om(e,o,t,r),kr&&(o=kr(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[K.READ_ONLY]||!e[K.READ_ONLY][s])&&e._setPendingProperty(s,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,o)}}function Om(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Mm(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Nm(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let s=r[o],n=t[o],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];Bm(n,h),Lm(n,i,h)}n.__dataHost=i}}function Bm(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let s=e.target;t[s]=o,e.literal&&e.kind=="property"&&(s==="className"&&(i=Ae(i)),i[s]=e.literal)}}function Lm(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){wm(o,e,t.target,r.source,r.negate)})}}function la(i,e,t,r,o,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return s&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function is(i,e,t,r,o){let s=i._methodHost||i,n=s[o.methodName];if(n){let a=i._marshalArgs(o.args,e,t);return a===$i?$i:n.apply(s,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const zm=[],lh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Fm="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Hm="(?:'(?:[^'\\\\]|\\\\.)*')",Rm='(?:"(?:[^"\\\\]|\\\\.)*")',$m="(?:"+Hm+"|"+Rm+")",ha="(?:("+lh+"|"+Fm+"|"+$m+")\\s*)",Vm="(?:"+ha+"(?:,\\s*"+ha+")*)",Wm="(?:\\(\\s*(?:"+Vm+"?)\\)\\s*)",Um="("+lh+"\\s*"+Wm+"?)",jm="(\\[\\[|{{)\\s*",Gm="(?:]]|}})",qm="(?:(!)\\s*)?",Ym=jm+qm+Um+Gm,da=new RegExp(Ym,"g");function ca(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function yo(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:zm};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return Xm(r,t)}else return t}return null}function Xm(i,e){return e.args=i.map(function(t){let r=hh(t);return r.literal||(e.static=!1),r},this),e}function hh(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){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=Tt(e),t.structured=es(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ua(i,e,t){let r=Ne(i,t);return r===void 0&&(r=e[t]),r}function dh(i,e,t,r){const o={indexSplices:r};Qo&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Qo&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function bi(i,e,t,r,o,s){dh(i,e,t,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}function Km(i){return i[0].toUpperCase()+i.substring(1)}const Ns=fe(i=>{const e=fm(nm(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 K}_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(yi.length){let o=yi[yi.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let s=this[K.READ_ONLY];for(let n in o)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,s,n){this._createPropertyAccessor(o,s==K.READ_ONLY);let a=go(this,s,!0)[o];a||(a=this[s][o]=[]),a.push(n)}_removePropertyEffect(o,s,n){let a=go(this,s,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,s){let n=this[s];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,K.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,K.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,K.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,K.COMPUTE)}_setPendingPropertyOrPath(o,s,n,a){if(a||Tt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Ne(this,o);if(o=ra(this,o,s),!o||!super._shouldPropertyChange(o,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,n))return Im(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,n);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,n){(n!==o[s]||typeof n=="object")&&(s==="className"&&(o=Ae(o)),o[s]=n)}_setPendingProperty(o,s,n){let a=this.__dataHasPaths&&es(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(a||this[K.NOTIFY]&&this[K.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let s=0;s<o.length;s++){let n=o[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let n in o)(s||!this[K.READ_ONLY]||!this[K.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Em(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),Ei(this,this[K.REFLECT],s,n,a),Ei(this,this[K.OBSERVE],s,n,a),l&&bm(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,n){this[K.PROPAGATE]&&Ei(this,this[K.PROPAGATE],o,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,n)}_runEffectsForTemplate(o,s,n,a){const l=(h,d)=>{Ei(this,o.propertyEffects,h,n,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,n,d)};o.runEffects?o.runEffects(l,s,a):l(s,a)}linkPaths(o,s){o=Ci(o),s=Ci(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=Ci(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let n={path:""},a=Ne(this,o,n);dh(this,a,n.path,s)}get(o,s){return Ne(s||this,o)}set(o,s,n){n?ra(n,o,s):(!this[K.READ_ONLY]||!this[K.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let n={path:""},a=Ne(this,o,n),l=a.length,h=a.push(...s);return s.length&&bi(this,a,n.path,l,s.length,[]),h}pop(o){let s={path:""},n=Ne(this,o,s),a=!!n.length,l=n.pop();return a&&bi(this,n,s.path,n.length,0,[l]),l}splice(o,s,n,...a){let l={path:""},h=Ne(this,o,l);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=h.splice(s):d=h.splice(s,n,...a),(a.length||d.length)&&bi(this,h,l.path,s,a.length,d),d}shift(o){let s={path:""},n=Ne(this,o,s),a=!!n.length,l=n.shift();return a&&bi(this,n,s.path,0,0,[l]),l}unshift(o,...s){let n={path:""},a=Ne(this,o,n),l=a.unshift(...s);return s.length&&bi(this,a,n.path,0,s.length,[]),l}notifyPath(o,s){let n;if(arguments.length==1){let a={path:""};s=Ne(this,o,a),n=a.path}else Array.isArray(o)?n=Ci(o):n=o;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,K.READ_ONLY),s&&(this["_set"+Km(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,s,n){let a={property:o,method:s,dynamicFn:!!n};this._addPropertyEffect(o,K.OBSERVE,{fn:na,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(s,K.OBSERVE,{fn:na,info:a,trigger:{name:s}})}_createMethodObserver(o,s){let n=yo(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");la(this,n,K.OBSERVE,is,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,K.NOTIFY,{fn:xm,info:{eventName:Ur(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" 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(o,K.REFLECT,{fn:Cm,info:{attrName:s}})}_createComputedProperty(o,s,n){let a=yo(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=la(this,a,K.COMPUTE,ah,o,n);go(this,sh)[o]=l}_marshalArgs(o,s,n){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:p,wildcard:u,value:b,literal:f}=o[h];if(!f)if(u){const E=Fi(c,s),P=ua(a,n,E?s:c);b={path:E?s:c,value:P,base:E?Ne(a,c):P}}else b=p?ua(a,n,c):a[c];if(Qo&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return $i;l[h]=b}return l}static addPropertyEffect(o,s,n){this.prototype._addPropertyEffect(o,s,n)}static createPropertyObserver(o,s,n){this.prototype._createPropertyObserver(o,s,n)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,n){this.prototype._createComputedProperty(o,s,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=h,h?h.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,s,n){let a=o.hostProps=o.hostProps||{};a[s]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),yi.push(this);let n=super._stampTemplate(o,s);if(yi.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,Nm(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Ae(Ae(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,s,n){let a=e._parseTemplateNode.call(this,o,s,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,s);l&&(o.textContent=ca(l)||" ",bo(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,s,n,a,l){let h=this._parseBindings(l,s);if(h){let d=a,c="property";vm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=ca(h);return p&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(a)),o.setAttribute(a,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=Jl(a)),bo(this,s,n,c,a,h,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,s,n,a,l)}static _parseTemplateNestedTemplate(o,s,n){let a=e._parseTemplateNestedTemplate.call(this,o,s,n);const l=o.parentNode,h=n.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Zn&&(d||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=h,n.noted=!0,a=!1);let p=h.hostProps;if($p&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),Zn||(n.parentInfo.noted=!0));else{let u="{";for(let b in p){let f=[{mode:u,source:b,dependencies:[b],hostProp:!0}];bo(this,s,n,"property","_host_"+b,f)}}return a}static _parseBindings(o,s){let n=[],a=0,l;for(;(l=da.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),p=!1,u="",b=-1;h=="{"&&(b=c.indexOf("::"))>0&&(u=c.substring(b+2),c=c.substring(0,b),p=!0);let f=yo(c),E=[];if(f){let{args:P,methodName:D}=f;for(let j=0;j<P.length;j++){let W=P[j];W.literal||E.push(W)}let z=s.dynamicFns;(z&&z[D]||f.static)&&(E.push(D),f.dynamicFn=!0)}else E.push(c);n.push({source:c,mode:h,negate:d,customEvent:p,signature:f,dependencies:E,event:u}),a=da.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&n.push({literal:h})}return n.length?n:null}static _evaluateBinding(o,s,n,a,l,h){let d;return s.signature?d=is(o,n,a,l,s.signature):n!=s.source?d=Ne(o,s.source):h&&es(n)?d=Ne(o,n):d=o.__data[n],s.negate&&(d=!d),d}}return t}),yi=[];/**
|
|
1006
|
+
*/let Ri=0;const $i=[],K={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},nh="__computeInfo",_m=/[A-Z]/;function _o(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function Si(i,e,t,r,o,n){if(e){let s=!1;const a=Ri++;for(let l in t){let h=o?Tt(l):l,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==a)&&(!o||Dn(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(i,l,t,r,u.info,o,n),s=!0)}return s}return!1}function fm(i,e,t,r,o,n,s,a){let l=!1,h=s?Tt(r):r,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==t)&&(!s||Dn(r,u.trigger))&&(u.info&&(u.info.lastRun=t),u.fn(i,r,o,n,u.info,s,a),l=!0);return l}function Dn(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Kl(t,i))||!!(e.wildcard&&Fi(t,i))}else return!0}function na(i,e,t,r,o){let n=typeof o.method=="string"?i[o.method]:o.method,s=o.property;n?n.call(i,i.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function vm(i,e,t,r,o){let n=i[K.NOTIFY],s,a=Ri++;for(let h in e)e[h]&&(n&&fm(i,n,a,h,t,r,o)||o&&gm(i,h,t))&&(s=!0);let l;s&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function gm(i,e,t){let r=Tt(e);if(r!==e){let o=$r(r)+"-changed";return sh(i,o,t[e],e),!0}return!1}function sh(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),Ae(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function bm(i,e,t,r,o,n){let s=(n?Tt(e):e)!=e?e:null,a=s?Ne(i,s):i.__data[e];s&&a===void 0&&(a=t[e]),sh(i,o.eventName,a,s)}function ym(i,e,t,r,o){let n,s=i.detail,a=s&&s.path;a?(r=Hi(t,r,a),n=s&&s.value):n=i.currentTarget[t],n=o?!n:n,(!e[K.READ_ONLY]||!e[K.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function xm(i,e,t,r,o){let n=i.__data[e];Pr&&(n=Pr(n,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,n)}function wm(i,e,t,r){let o=i[K.COMPUTE];if(o)if(Fp){Ri++;const n=Em(i),s=[];for(let l in e)sa(l,o,s,n,r);let a;for(;a=s.shift();)ah(i,"",e,t,a)&&sa(a.methodInfo,o,s,n,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let n=e;for(;Si(i,o,n,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),n=i.__dataPending,i.__dataPending=null}}const Cm=(i,e,t)=>{let r=0,o=e.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=t.get(e[s].methodInfo)-t.get(i.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,i)},sa=(i,e,t,r,o)=>{const n=o?Tt(i):i,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Ri&&(!o||Dn(i,l.trigger))&&(l.info.lastRun=Ri,Cm(l.info,t,r))}};function Em(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[K.COMPUTE];let{counts:r,ready:o,total:n}=Sm(i),s;for(;s=o.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--r[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Sm(i){const e=i[nh],t={},r=i[K.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||o.push(s);return{counts:t,ready:o,total:n}}function ah(i,e,t,r,o){let n=Zo(i,e,t,r,o);if(n===$i)return!1;let s=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[s]?i._setPendingProperty(s,n,!0):(i[s]=n,!1)}function Am(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Fi(n,e)?(o=Hi(n,s,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Fi(s,e)&&(o=Hi(s,n,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function fo(i,e,t,r,o,n,s){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),Dm(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||$r(o)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let h=0;h<a.parts.length;h++){let d=a.parts[h];d.compoundIndex=h,Pm(i,e,a,d,l)}}function Pm(i,e,t,r,o){if(!r.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 n=r.dependencies,s={index:o,binding:t,part:r,evaluator:i};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=hh(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Im,info:s,trigger:l})}}}function Im(i,e,t,r,o,n,s){let a=s[o.index],l=o.binding,h=o.part;if(n&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hi(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&i._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(i,h,e,t,r,n);d!==$i&&km(i,a,l,h,d)}}function km(i,e,t,r,o){if(o=Tm(e,o,t,r),Pr&&(o=Pr(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[K.READ_ONLY]||!e[K.READ_ONLY][n])&&e._setPendingProperty(n,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,n,o)}}function Tm(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Dm(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Om(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];Mm(s,h),Nm(s,i,h)}s.__dataHost=i}}function Mm(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=e.target;t[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(i=Ae(i)),i[n]=e.literal)}}function Nm(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){ym(o,e,t.target,r.source,r.negate)})}}function aa(i,e,t,r,o,n){n=e.static||n&&(typeof n!="object"||n[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return n&&i._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function Zo(i,e,t,r,o){let n=i._methodHost||i,s=n[o.methodName];if(s){let a=i._marshalArgs(o.args,e,t);return a===$i?$i:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Bm=[],lh="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Lm="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",zm="(?:'(?:[^'\\\\]|\\\\.)*')",Fm='(?:"(?:[^"\\\\]|\\\\.)*")',Hm="(?:"+zm+"|"+Fm+")",la="(?:("+lh+"|"+Lm+"|"+Hm+")\\s*)",Rm="(?:"+la+"(?:,\\s*"+la+")*)",$m="(?:\\(\\s*(?:"+Rm+"?)\\)\\s*)",Vm="("+lh+"\\s*"+$m+"?)",Um="(\\[\\[|{{)\\s*",Wm="(?:]]|}})",jm="(?:(!)\\s*)?",Gm=Um+jm+Vm+Wm,ha=new RegExp(Gm,"g");function da(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function vo(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Bm};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return qm(r,t)}else return t}return null}function qm(i,e){return e.args=i.map(function(t){let r=hh(t);return r.literal||(e.static=!1),r},this),e}function hh(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){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=Tt(e),t.structured=Xo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ca(i,e,t){let r=Ne(i,t);return r===void 0&&(r=e[t]),r}function dh(i,e,t,r){const o={indexSplices:r};Yo&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Yo&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function yi(i,e,t,r,o,n){dh(i,e,t,[{index:r,addedCount:o,removed:n,object:e,type:"splice"}])}function Ym(i){return i[0].toUpperCase()+i.substring(1)}const On=fe(i=>{const e=mm(om(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 K}_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(xi.length){let o=xi[xi.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let n=this[K.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==K.READ_ONLY);let a=_o(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=_o(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,K.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,K.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,K.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,K.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Tt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=Ne(this,o);if(o=ia(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return Am(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=Ae(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&Xo(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[K.NOTIFY]&&this[K.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[K.READ_ONLY]||!this[K.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;wm(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Si(this,this[K.REFLECT],n,s,a),Si(this,this[K.OBSERVE],n,s,a),l&&vm(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[K.PROPAGATE]&&Si(this,this[K.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{Si(this,o.propertyEffects,h,s,d,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,s,d)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Ei(o),n=Ei(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Ei(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=Ne(this,o,s);dh(this,a,s.path,n)}get(o,n){return Ne(n||this,o)}set(o,n,s){s?ia(s,o,n):(!this[K.READ_ONLY]||!this[K.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=Ne(this,o,s),l=a.length,h=a.push(...n);return n.length&&yi(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=Ne(this,o,n),a=!!s.length,l=s.pop();return a&&yi(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=Ne(this,o,l);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=h.splice(n):d=h.splice(n,s,...a),(a.length||d.length)&&yi(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=Ne(this,o,n),a=!!s.length,l=s.shift();return a&&yi(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=Ne(this,o,s),l=a.unshift(...n);return n.length&&yi(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=Ne(this,o,a),s=a.path}else Array.isArray(o)?s=Ei(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,K.READ_ONLY),n&&(this["_set"+Ym(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,K.OBSERVE,{fn:na,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,K.OBSERVE,{fn:na,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=vo(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");aa(this,s,K.OBSERVE,Zo,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,K.NOTIFY,{fn:bm,info:{eventName:$r(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,K.REFLECT,{fn:xm,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=vo(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=aa(this,a,K.COMPUTE,ah,o,s);_o(this,nh)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let h=0,d=o.length;h<d;h++){let{name:c,structured:p,wildcard:u,value:b,literal:f}=o[h];if(!f)if(u){const E=Fi(c,n),P=ca(a,s,E?n:c);b={path:E?n:c,value:P,base:E?Ne(a,c):P}}else b=p?ca(a,s,c):a[c];if(Yo&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return $i;l[h]=b}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,h=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=h,h?h.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),xi.push(this);let s=super._stampTemplate(o,n);if(xi.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,Om(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let h=n.childNodes;for(let d=0;d<h.length;d++){let c=h[d];Ae(Ae(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,n,s){let a=e._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=da(l)||" ",fo(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let h=this._parseBindings(l,n);if(h){let d=a,c="property";_m.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=da(h);return p&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(a)),o.setAttribute(a,p)),c=="attribute"&&d=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&d==="value"&&o.setAttribute(d,""),o.removeAttribute(d),c==="property"&&(a=Jl(a)),fo(this,n,s,c,a,h,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=e._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,h=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Ks&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let p=h.hostProps;if(Hp&&d)p&&(n.hostProps=Object.assign(n.hostProps||{},p),Ks||(s.parentInfo.noted=!0));else{let u="{";for(let b in p){let f=[{mode:u,source:b,dependencies:[b],hostProp:!0}];fo(this,n,s,"property","_host_"+b,f)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=ha.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let h=l[1][0],d=!!l[2],c=l[3].trim(),p=!1,u="",b=-1;h=="{"&&(b=c.indexOf("::"))>0&&(u=c.substring(b+2),c=c.substring(0,b),p=!0);let f=vo(c),E=[];if(f){let{args:P,methodName:D}=f;for(let j=0;j<P.length;j++){let U=P[j];U.literal||E.push(U)}let z=n.dynamicFns;(z&&z[D]||f.static)&&(E.push(D),f.dynamicFn=!0)}else E.push(c);s.push({source:c,mode:h,negate:d,customEvent:p,signature:f,dependencies:E,event:u}),a=ha.lastIndex}if(a&&a<o.length){let h=o.substring(a);h&&s.push({literal:h})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,h){let d;return n.signature?d=Zo(o,s,a,l,n.signature):s!=n.source?d=Ne(o,n.source):h&&Xo(s)?d=Ne(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return t}),xi=[];/**
|
|
1007
1007
|
@license
|
|
1008
1008
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1009
1009
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1019,7 +1019,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1019
1019
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1020
1020
|
Code distributed by Google as part of the polymer project is also
|
|
1021
1021
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1022
|
-
*/function
|
|
1022
|
+
*/function Xm(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const Km=fe(i=>{const e=ih(i);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=Xm(a))}n.__ownProperties=s}return n.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
|
|
1023
1023
|
* @fileoverview
|
|
1024
1024
|
* @suppress {checkPrototypalTypes}
|
|
1025
1025
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1029,7 +1029,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1029
1029
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1030
1030
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1031
1031
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1032
|
-
*/const
|
|
1032
|
+
*/const Zm="3.5.2",ua=window.ShadyCSS&&window.ShadyCSS.cssBuild,Jm=fe(i=>{const e=Km(On(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let h=l._properties;for(let d in h){let c=h[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,h,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(h)?console.warn(`Cannot redefine computed property '${h}'.`):l._createComputedProperty(h,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(h)?l._createReadOnlyProperty(h,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(h)&&console.warn(`Cannot make readOnly property '${h}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(h)?l._createReflectedProperty(h):d.reflectToAttribute===!1&&l._hasReflectEffect(h)&&console.warn(`Cannot make reflected property '${h}' non-reflected.`),d.notify&&!l._hasNotifyEffect(h)?l._createNotifyingProperty(h):d.notify===!1&&l._hasNotifyEffect(h)&&console.warn(`Cannot make notify property '${h}' non-notify.`),d.observer&&l._createPropertyObserver(h,d.observer,c[d.observer]),l._addPropertyToAttributeMap(h)}function n(l,h,d,c){if(!ua){const p=h.content.querySelectorAll("style"),u=Yl(h),b=qp(d),f=h.content.firstElementChild;for(let P=0;P<b.length;P++){let D=b[P];D.textContent=l._processStyleText(D.textContent,c),h.content.insertBefore(D,f)}let E=0;for(let P=0;P<u.length;P++){let D=u[P],z=p[E];z!==D?(D=D.cloneNode(!0),z.parentNode.insertBefore(D,z)):E++,D.textContent=l._processStyleText(D.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),Rp&&ua&&Np){const p=h.content.querySelectorAll("style");if(p){let u="";Array.from(p).forEach(b=>{u+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(u)}}}function s(l){let h=null;if(l&&(!Ir||Lp)&&(h=zi.import(l,"template"),Ir&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return Zm}static _finalizeClass(){e._finalizeClass.call(this);const h=r(this);h&&this.createObservers(h,this._properties),this._prepareTemplate()}static _prepareTemplate(){let h=this.template;h&&(typeof h=="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):Wl||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let d in h)o(this.prototype,d,h[d],h)}static createObservers(h,d){const c=this.prototype;for(let p=0;p<h.length;p++)c._createMethodObserver(h[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=kn(h.url);else{const d=zi.import(this.is);this._importPath=d&&d.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=Bp,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let d in h){let c=h[d];if(this._canApplyPropertyDefault(d)){let p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,d){return In(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,p=c?Ti(c):"";n(this,d,h,p),this.prototype._bindTemplate(d)}}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(h){const d=Ae(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),zp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)}resolveUrl(h,d){return!d&&this.importPath&&(d=Ti(this.importPath)),Ti(h,d)}static _parseTemplateContent(h,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,d,c)}static _addTemplatePropertyEffect(h,d,c){return jl&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,d,c)}}return a});/**
|
|
1033
1033
|
@license
|
|
1034
1034
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1035
1035
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1037,7 +1037,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1037
1037
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1038
1038
|
Code distributed by Google as part of the polymer project is also
|
|
1039
1039
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1040
|
-
*/const
|
|
1040
|
+
*/const pa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ch{constructor(e,t){ph(e,t);const r=t.reduce((o,n,s)=>o+uh(n)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function uh(i){if(i instanceof ch)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Qm(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ch)return uh(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const ie=function(i,...e){ph(i,e);const t=document.createElement("template");let r=e.reduce((o,n,s)=>o+Qm(n)+i[s+1],i[0]);return pa&&(r=pa.createHTML(r)),t.innerHTML=r,t},ph=(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")};/**
|
|
1041
1041
|
@license
|
|
1042
1042
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1043
1043
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1045,7 +1045,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1045
1045
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1046
1046
|
Code distributed by Google as part of the polymer project is also
|
|
1047
1047
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1048
|
-
*/const
|
|
1048
|
+
*/const re=Jm(HTMLElement),e_=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,vr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function t_(){function i(){return!0}return mh(i)}function i_(){try{return r_()?!0:o_()?vr?!n_():!t_():!1}catch(i){return!1}}function r_(){return localStorage.getItem("vaadin.developmentmode.force")}function o_(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function n_(){return!!(vr&&Object.keys(vr).map(i=>vr[i]).filter(i=>i.productionMode).length>0)}function mh(i,e){if(typeof i!="function")return;const t=e_.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const ma=function(i,e){if(window.Vaadin.developmentMode)return mh(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=i_());function s_(){/*! vaadin-dev-mode:start
|
|
1049
1049
|
(function () {
|
|
1050
1050
|
'use strict';
|
|
1051
1051
|
|
|
@@ -1523,7 +1523,7 @@ try {
|
|
|
1523
1523
|
|
|
1524
1524
|
}());
|
|
1525
1525
|
|
|
1526
|
-
vaadin-dev-mode:end **/}const
|
|
1526
|
+
vaadin-dev-mode:end **/}const a_=function(){if(typeof ma=="function")return ma(s_)};/**
|
|
1527
1527
|
* @license
|
|
1528
1528
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1529
1529
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1531,7 +1531,7 @@ try {
|
|
|
1531
1531
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1532
1532
|
* Code distributed by Google as part of the polymer project is also
|
|
1533
1533
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1534
|
-
*/let
|
|
1534
|
+
*/let _a=0,_h=0;const Xt=[];let Jo=!1;function l_(){Jo=!1;const i=Xt.length;for(let e=0;e<i;e++){const t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,i),_h+=i}const ft={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)}},Vi={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},fh={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Tr={run(i){Jo||(Jo=!0,queueMicrotask(()=>l_())),Xt.push(i);const e=_a;return _a+=1,e},cancel(i){const e=i-_h;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${i}`);Xt[e]=null}}};/**
|
|
1535
1535
|
@license
|
|
1536
1536
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1537
1537
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1539,35 +1539,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1539
1539
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1540
1540
|
Code distributed by Google as part of the polymer project is also
|
|
1541
1541
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1542
|
-
*/const
|
|
1542
|
+
*/const Ui=new Set;let Fe=class Qo{static debounce(e,t,r){return e instanceof Qo?e._cancelAsync():e=new Qo,e.setConfig(t,r),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,Ui.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ui.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 vh(i){Ui.add(i)}function h_(){const i=!!Ui.size;return Ui.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const Ai=()=>{let i;do i=h_();while(i)};/**
|
|
1543
1543
|
* @license
|
|
1544
1544
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1545
1545
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1546
|
-
*/const
|
|
1546
|
+
*/const Qe=[];function en(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function tn(){return document.documentElement.getAttribute("dir")}function d_(){const i=tn();Qe.forEach(e=>{en(e,i)})}const c_=new MutationObserver(d_);c_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const We=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),en(this,tn(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=tn(),n=r===o&&Qe.indexOf(this)===-1,s=!r&&t&&Qe.indexOf(this)===-1;n||s?(this.__subscribe(),en(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Qe.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){Qe.includes(this)||Qe.push(this)}__unsubscribe(){Qe.includes(this)&&Qe.splice(Qe.indexOf(this),1)}};/**
|
|
1547
1547
|
* @license
|
|
1548
1548
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1549
1549
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1550
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
1550
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){a_()};let go;const fa=new Set,Ze=i=>class extends We(i){static finalize(){super.finalize();const{is:e}=this;e&&!fa.has(e)&&(window.Vaadin.registrations.push(this),fa.add(e),window.Vaadin.developmentModeCallback&&(go=Fe.debounce(go,fh,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),vh(go)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
1551
1551
|
* @license
|
|
1552
1552
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1553
1553
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1554
|
-
*/function
|
|
1554
|
+
*/function u_(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 gh(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...gh(r))),e}function Mn(i){return i?new Set(i.split(" ")):new Set}function Vr(i){return i?[...i].join(" "):""}function bh(i,e,t){const r=Mn(i.getAttribute(e));r.add(t),i.setAttribute(e,Vr(r))}function p_(i,e,t){const r=Mn(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Vr(r))}function m_(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
|
|
1555
1555
|
* @license
|
|
1556
1556
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1557
1557
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1558
|
-
*/class
|
|
1558
|
+
*/class Nn{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 r=[],o=[];e.length&&(t=e.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=e.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:r}),this._storedNodes=e}}/**
|
|
1559
1559
|
* @license
|
|
1560
1560
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1561
1561
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1562
|
-
*/let
|
|
1562
|
+
*/let __=0;function Ur(){return __++}/**
|
|
1563
1563
|
* @license
|
|
1564
1564
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1565
1565
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1566
|
-
*/class
|
|
1566
|
+
*/class Ke extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Ur()}`}constructor(e,t,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,h||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:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}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}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Nn(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!m_(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...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)))})}}/**
|
|
1567
1567
|
* @license
|
|
1568
1568
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1569
1569
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1570
|
-
*/class bt extends
|
|
1570
|
+
*/class bt extends Ke{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
1571
1571
|
@license
|
|
1572
1572
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1573
1573
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1575,11 +1575,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1575
1575
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1576
1576
|
Code distributed by Google as part of the polymer project is also
|
|
1577
1577
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1578
|
-
*/const
|
|
1578
|
+
*/const f_=!1,v_=i=>i,Bn=typeof document.head.style.touchAction=="string",rn="__polymerGestures",bo="__polymerGesturesHandled",on="__polymerGesturesTouchAction",va=25,ga=5,g_=2,b_=["mousedown","mousemove","mouseup","click"],y_=[0,1,4,2],x_=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Ln(i){return b_.indexOf(i)>-1}let yh=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){yh=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function w_(i){if(!(Ln(i)||i==="touchend")&&Bn&&yh&&f_)return{passive:!0}}const C_=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),E_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Pt(i){const e=i.type;if(!Ln(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!x_&&(t=y_[i.which]||0),!!(t&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=vt(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,o=i.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const et={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function A_(i){let e="auto";const t=wh(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[on]){e=o[on];break}return e}function xh(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const wh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],zn={},At=[];function P_(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(i,e),o===r)break;r&&(t=r)}return t}function vt(i){const e=wh(i);return e.length>0?e[0]:i.target}function I_(i){const e=i.type,t=i.currentTarget[rn];if(!t)return;const r=t[e];if(!r)return;if(!i[bo]&&(i[bo]={},e.startsWith("touch"))){const n=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(et.touch.id=n.identifier),et.touch.id!==n.identifier)return;Bn||(e==="touchstart"||e==="touchmove")&&k_(i)}const o=i[bo];if(!o.skip){for(let n=0,s;n<At.length;n++)s=At[n],r[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(i.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<At.length;n++)s=At[n],r[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](i))}}function k_(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")et.touch.x=e.clientX,et.touch.y=e.clientY,et.touch.scrollDecided=!1;else if(t==="touchmove"){if(et.touch.scrollDecided)return;et.touch.scrollDecided=!0;const r=A_(i);let o=!1;const n=Math.abs(et.touch.x-e.clientX),s=Math.abs(et.touch.y-e.clientY);i.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?i.preventDefault():Dr("track")}}function Xe(i,e,t){return zn[e]?(T_(i,e,t),!0):!1}function T_(i,e,t){const r=zn[e],o=r.deps,n=r.name;let s=i[rn];s||(i[rn]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(C_&&Ln(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&i.addEventListener(l,I_,w_(l)),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);i.addEventListener(e,t),r.touchAction&&Ch(i,r.touchAction)}function Fn(i){At.push(i),i.emits.forEach(e=>{zn[e]=i})}function D_(i){for(let e=0,t;e<At.length;e++){t=At[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function Ch(i,e){Bn&&i instanceof HTMLElement&&Tr.run(()=>{i.style.touchAction=e}),i[on]=e}function Hn(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,v_(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Dr(i){const e=D_(i);e.info&&(e.info.prevent=!0)}Fn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(i){if(!Pt(i))return;const e=vt(i),t=this,r=n=>{Pt(n)||(wi("up",e,n),Kt(t.info))},o=n=>{Pt(n)&&wi("up",e,n),Kt(t.info)};xh(this.info,r,o),wi("down",e,i)},touchstart(i){wi("down",vt(i),i.changedTouches[0],i)},touchend(i){wi("up",vt(i),i.changedTouches[0],i)}});function wi(i,e,t,r){e&&Hn(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return Dr(o)}})}Fn({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>g_&&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,Kt(this.info)},mousedown(i){if(!Pt(i))return;const e=vt(i),t=this,r=n=>{const s=n.clientX,a=n.clientY;ba(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Dr("tap"),t.info.addMove({x:s,y:a}),Pt(n)||(t.info.state="end",Kt(t.info)),e&&yo(t.info,e,n),t.info.started=!0)},o=n=>{t.info.started&&r(n),Kt(t.info)};xh(this.info,r,o),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=vt(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;ba(this.info,r,o)&&(this.info.state==="start"&&Dr("tap"),this.info.addMove({x:r,y:o}),yo(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=vt(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),yo(this.info,e,t))}});function ba(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),o=Math.abs(i.y-t);return r>=ga||o>=ga}function yo(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],o=i.moves[i.moves.length-1],n=o.x-i.x,s=o.y-i.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),Hn(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return P_(t.clientX,t.clientY)}})}Fn({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){Pt(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Pt(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 r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),n=vt(t||e);!n||E_[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=va&&o<=va||S_(e))&&(i.prevent||Hn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
1579
1579
|
* @license
|
|
1580
1580
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1581
1581
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1582
|
-
*/const
|
|
1582
|
+
*/const di=fe(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
1583
1583
|
* @license
|
|
1584
1584
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1585
1585
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1587,43 +1587,43 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1587
1587
|
* @license
|
|
1588
1588
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1589
1589
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1590
|
-
*/const
|
|
1590
|
+
*/const Rn=i=>class extends di(Dt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Xe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Xe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
1591
1591
|
* @license
|
|
1592
1592
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1593
1593
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1594
|
-
*/let $
|
|
1594
|
+
*/let $n=!1;window.addEventListener("keydown",()=>{$n=!0},{capture:!0});window.addEventListener("mousedown",()=>{$n=!1},{capture:!0});function nn(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Wr(){return $n}function Eh(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 O_(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function M_(i,e){const t=[];for(;i.length>0&&e.length>0;)O_(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function sn(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=sn(i.slice(0,t)),o=sn(i.slice(t));return M_(r,o)}function an(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:Eh(i)}function Vn(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 Un(i){return i.getRootNode().activeElement===i}function N_(i){if(!Vn(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function Sh(i,e){if(i.nodeType!==Node.ELEMENT_NODE||Eh(i))return!1;const t=i,r=N_(t);let o=r>0;r>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=Sh(s,e)||o}),o}function B_(i){const e=[];return Sh(i,e)?sn(e):e}/**
|
|
1595
1595
|
* @license
|
|
1596
1596
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1597
1597
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1598
|
-
*/const Ot=fe(i=>class extends i{get _keyboardActive(){return
|
|
1598
|
+
*/const Ot=fe(i=>class extends i{get _keyboardActive(){return Wr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
1599
1599
|
* @license
|
|
1600
1600
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1601
1601
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1602
|
-
*/const
|
|
1602
|
+
*/const Ah=i=>class extends di(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
1603
1603
|
* @license
|
|
1604
1604
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1605
1605
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1606
|
-
*/const
|
|
1606
|
+
*/const jr=fe(i=>class extends Ot(Ah(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(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
1607
1607
|
* @license
|
|
1608
1608
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1609
1609
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1610
|
-
*/const
|
|
1610
|
+
*/const Wn=fe(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(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
|
|
1611
1611
|
* @license
|
|
1612
1612
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1613
1613
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1614
|
-
*/const
|
|
1614
|
+
*/const qi=fe(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(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
|
|
1615
1615
|
* @license
|
|
1616
1616
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1617
1617
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1618
|
-
*/const
|
|
1618
|
+
*/const L_=fe(i=>class extends Wn(di(qi(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
|
|
1619
1619
|
* @license
|
|
1620
1620
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1621
1621
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1622
|
-
*/const
|
|
1622
|
+
*/const xo=new Map;function jn(i){return xo.has(i)||xo.set(i,new WeakMap),xo.get(i)}function Ph(i,e){i&&i.removeAttribute(e)}function Ih(i,e){if(!i||!e)return;const t=jn(e);if(t.has(i))return;const r=Mn(i.getAttribute(e));t.set(i,new Set(r))}function z_(i,e){if(!i||!e)return;const t=jn(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):bh(i,e,Vr(r)),t.delete(i)}function gr(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:n}=t,s=jn(e),a=s.get(i);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(i):Ih(i,e),Ph(i,e)),p_(i,e,o);const l=r||Vr(a);l&&bh(i,e,l)}function F_(i,e){Ih(i,e),Ph(i,e)}/**
|
|
1623
1623
|
* @license
|
|
1624
1624
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1625
1625
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1626
|
-
*/class
|
|
1626
|
+
*/class H_{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 r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,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?(F_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(z_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){gr(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){gr(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){gr(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")))}}/**
|
|
1627
1627
|
* @license
|
|
1628
1628
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1629
1629
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1631,51 +1631,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1631
1631
|
* @license
|
|
1632
1632
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1633
1633
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1634
|
-
*/const je=document.createElement("div");je.style.position="fixed";je.style.clip="rect(0px, 0px, 0px, 0px)";je.setAttribute("aria-live","polite");document.body.appendChild(je);let
|
|
1634
|
+
*/const je=document.createElement("div");je.style.position="fixed";je.style.clip="rect(0px, 0px, 0px, 0px)";je.setAttribute("aria-live","polite");document.body.appendChild(je);let sr;function br(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(je.removeAttribute("aria-live"),je.removeAttribute("role"),sr=Fe.debounce(sr,Vi,()=>{je.setAttribute("role","alert")})):(sr&&sr.cancel(),je.removeAttribute("role"),je.setAttribute("aria-live",t)),je.textContent="",setTimeout(()=>{je.textContent=i},r)}/**
|
|
1635
1635
|
* @license
|
|
1636
1636
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1637
1637
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1638
|
-
*/class
|
|
1638
|
+
*/class Gn extends Ke{constructor(e,t,r,o={}){super(e,t,r,Il(wr({},o),{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(r=>{const o=r.target,n=o===this.node;r.type==="attributes"?n&&this.__updateNodeId(o):(n||o.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)}}/**
|
|
1639
1639
|
* @license
|
|
1640
1640
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1641
1641
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1642
|
-
*/class
|
|
1642
|
+
*/class R_ extends Gn{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:r}=this,o=!!(r&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&br(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
1643
1643
|
* @license
|
|
1644
1644
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1645
1645
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1646
|
-
*/class
|
|
1646
|
+
*/class $_ extends Gn{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)}}/**
|
|
1647
1647
|
* @license
|
|
1648
1648
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1649
1649
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1650
|
-
*/class
|
|
1650
|
+
*/class kh extends Gn{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)}}/**
|
|
1651
1651
|
* @license
|
|
1652
1652
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1653
1653
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1654
|
-
*/const
|
|
1654
|
+
*/const V_=fe(i=>class extends yt(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new kh(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
1655
1655
|
* @license
|
|
1656
1656
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1657
1657
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1658
|
-
*/const
|
|
1658
|
+
*/const qn=fe(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
1659
1659
|
* @license
|
|
1660
1660
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1661
1661
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1662
|
-
*/const
|
|
1662
|
+
*/const Gr=i=>class extends qn(V_(yt(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 H_(this),this._helperController=new $_(this),this._errorController=new R_(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,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(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
1663
1663
|
* @license
|
|
1664
1664
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1665
1665
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1666
|
-
*/class
|
|
1666
|
+
*/class Yi extends Ke{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
|
|
1667
1667
|
* @license
|
|
1668
1668
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1669
1669
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1670
|
-
*/class
|
|
1670
|
+
*/class Xi{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.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)}}/**
|
|
1671
1671
|
* @license
|
|
1672
1672
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1673
1673
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1674
|
-
*/const U_=i=>class extends
|
|
1674
|
+
*/const U_=i=>class extends Gr(L_(jr(Rn(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
|
|
1675
1675
|
* @license
|
|
1676
1676
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1677
1677
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1678
|
-
*/const
|
|
1678
|
+
*/const W_=I`
|
|
1679
1679
|
:host {
|
|
1680
1680
|
display: inline-block;
|
|
1681
1681
|
}
|
|
@@ -1767,7 +1767,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1767
1767
|
* @license
|
|
1768
1768
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1769
1769
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1770
|
-
*/B("vaadin-checkbox",
|
|
1770
|
+
*/B("vaadin-checkbox",W_,{moduleId:"vaadin-checkbox-styles"});class j_ extends U_(Ze(ae(re))){static get is(){return"vaadin-checkbox"}static get template(){return ie`
|
|
1771
1771
|
<div class="vaadin-checkbox-container">
|
|
1772
1772
|
<div part="checkbox" aria-hidden="true"></div>
|
|
1773
1773
|
<slot name="input"></slot>
|
|
@@ -1783,11 +1783,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1783
1783
|
</div>
|
|
1784
1784
|
</div>
|
|
1785
1785
|
<slot name="tooltip"></slot>
|
|
1786
|
-
`}ready(){super.ready(),this._tooltipController=new bt(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}X(
|
|
1786
|
+
`}ready(){super.ready(),this._tooltipController=new bt(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}X(j_);/**
|
|
1787
1787
|
* @license
|
|
1788
1788
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1789
1789
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1790
|
-
*/const
|
|
1790
|
+
*/const Th=I`
|
|
1791
1791
|
:host {
|
|
1792
1792
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1793
1793
|
}
|
|
@@ -1847,7 +1847,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1847
1847
|
* @license
|
|
1848
1848
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1849
1849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1850
|
-
*/const
|
|
1850
|
+
*/const Yn=I`
|
|
1851
1851
|
[part='label'] {
|
|
1852
1852
|
align-self: flex-start;
|
|
1853
1853
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1959,7 +1959,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1959
1959
|
margin-left: 0;
|
|
1960
1960
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1961
1961
|
}
|
|
1962
|
-
`;B("",
|
|
1962
|
+
`;B("",Yn,{moduleId:"lumo-required-field"});const G_=I`
|
|
1963
1963
|
:host {
|
|
1964
1964
|
color: var(--lumo-body-text-color);
|
|
1965
1965
|
font-size: var(--lumo-font-size-m);
|
|
@@ -2002,15 +2002,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2002
2002
|
color: var(--lumo-secondary-text-color);
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
|
-
`;B("vaadin-checkbox-group",[
|
|
2005
|
+
`;B("vaadin-checkbox-group",[Yn,Th,G_],{moduleId:"lumo-checkbox-group"});/**
|
|
2006
2006
|
* @license
|
|
2007
2007
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
2008
2008
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2009
|
-
*/const
|
|
2009
|
+
*/const q_=i=>class extends Gr(Ot(di(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new bt(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Nn(e,({addedNodes:t,removedNodes:r})=>{const o=this.__filterCheckboxes(t),n=this.__filterCheckboxes(r);o.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
|
|
2010
2010
|
* @license
|
|
2011
2011
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
2012
2012
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2013
|
-
*/const
|
|
2013
|
+
*/const Y_=I`
|
|
2014
2014
|
:host {
|
|
2015
2015
|
display: inline-flex;
|
|
2016
2016
|
}
|
|
@@ -2043,7 +2043,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2043
2043
|
* @license
|
|
2044
2044
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
2045
2045
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2046
|
-
*/B("vaadin-checkbox-group",
|
|
2046
|
+
*/B("vaadin-checkbox-group",Y_,{moduleId:"vaadin-checkbox-group-styles"});class X_ extends q_(Ze(ae(re))){static get is(){return"vaadin-checkbox-group"}static get template(){return ie`
|
|
2047
2047
|
<div class="vaadin-group-field-container">
|
|
2048
2048
|
<div part="label">
|
|
2049
2049
|
<slot name="label"></slot>
|
|
@@ -2064,11 +2064,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2064
2064
|
</div>
|
|
2065
2065
|
|
|
2066
2066
|
<slot name="tooltip"></slot>
|
|
2067
|
-
`}}X(
|
|
2067
|
+
`}}X(X_);/**
|
|
2068
2068
|
* @license
|
|
2069
2069
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2070
2070
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2071
|
-
*/const
|
|
2071
|
+
*/const qr=I`
|
|
2072
2072
|
:host {
|
|
2073
2073
|
top: var(--lumo-space-m);
|
|
2074
2074
|
right: var(--lumo-space-m);
|
|
@@ -2133,11 +2133,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2133
2133
|
opacity: 1;
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
|
-
`;B("",
|
|
2136
|
+
`;B("",qr,{moduleId:"lumo-overlay"});/**
|
|
2137
2137
|
* @license
|
|
2138
2138
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2139
2139
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2140
|
-
*/const
|
|
2140
|
+
*/const Yr=I`
|
|
2141
2141
|
:host([opening]),
|
|
2142
2142
|
:host([closing]) {
|
|
2143
2143
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -2167,7 +2167,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2167
2167
|
opacity: 0;
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
|
-
`;B("",
|
|
2170
|
+
`;B("",Yr,{moduleId:"lumo-menu-overlay-core"});const K_=I`
|
|
2171
2171
|
/* Small viewport (bottom sheet) styles */
|
|
2172
2172
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2173
2173
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -2229,7 +2229,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2229
2229
|
transform: translateY(150%);
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
`,
|
|
2232
|
+
`,Xn=[qr,Yr,K_];B("",Xn,{moduleId:"lumo-menu-overlay"});const Z_=I`
|
|
2233
2233
|
[part='overlay'] {
|
|
2234
2234
|
/*
|
|
2235
2235
|
Width:
|
|
@@ -2274,7 +2274,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2274
2274
|
max-height: 70vh;
|
|
2275
2275
|
}
|
|
2276
2276
|
}
|
|
2277
|
-
`;B("vaadin-date-picker-overlay",[
|
|
2277
|
+
`;B("vaadin-date-picker-overlay",[Xn,Z_],{moduleId:"lumo-date-picker-overlay"});const Dh=I`
|
|
2278
2278
|
:host {
|
|
2279
2279
|
/* Sizing */
|
|
2280
2280
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -2550,7 +2550,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2550
2550
|
margin-left: 0;
|
|
2551
2551
|
margin-right: 0;
|
|
2552
2552
|
}
|
|
2553
|
-
`;B("vaadin-button",
|
|
2553
|
+
`;B("vaadin-button",Dh,{moduleId:"lumo-button"});B("vaadin-date-picker-year",I`
|
|
2554
2554
|
:host([current]) [part='year-number'] {
|
|
2555
2555
|
color: var(--lumo-primary-text-color);
|
|
2556
2556
|
}
|
|
@@ -3053,7 +3053,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3053
3053
|
* @license
|
|
3054
3054
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3055
3055
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3056
|
-
*/const
|
|
3056
|
+
*/const Kn=I`
|
|
3057
3057
|
[part$='button'] {
|
|
3058
3058
|
flex: none;
|
|
3059
3059
|
width: 1em;
|
|
@@ -3080,11 +3080,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3080
3080
|
font-family: 'lumo-icons';
|
|
3081
3081
|
display: block;
|
|
3082
3082
|
}
|
|
3083
|
-
`;B("",
|
|
3083
|
+
`;B("",Kn,{moduleId:"lumo-field-button"});/**
|
|
3084
3084
|
* @license
|
|
3085
3085
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3086
3086
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3087
|
-
*/const
|
|
3087
|
+
*/const J_=I`
|
|
3088
3088
|
:host {
|
|
3089
3089
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3090
3090
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -3215,7 +3215,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3215
3215
|
[part='clear-button']::before {
|
|
3216
3216
|
content: var(--lumo-icons-cross);
|
|
3217
3217
|
}
|
|
3218
|
-
`,Mt=[
|
|
3218
|
+
`,Mt=[Yn,Kn,Th,J_];B("",Mt,{moduleId:"lumo-input-field-shared-styles"});const Q_=I`
|
|
3219
3219
|
[part='toggle-button']::before {
|
|
3220
3220
|
content: var(--lumo-icons-calendar);
|
|
3221
3221
|
}
|
|
@@ -3237,15 +3237,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3237
3237
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
3238
3238
|
--_lumo-text-field-overflow-mask-image: none;
|
|
3239
3239
|
}
|
|
3240
|
-
`;B("vaadin-date-picker",[Mt,
|
|
3240
|
+
`;B("vaadin-date-picker",[Mt,Q_],{moduleId:"lumo-date-picker"});/**
|
|
3241
3241
|
* @license
|
|
3242
3242
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3243
3243
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3244
|
-
*/const
|
|
3244
|
+
*/const ef=i=>class extends i{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())})}};/**
|
|
3245
3245
|
* @license
|
|
3246
3246
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3247
3247
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3248
|
-
*/const
|
|
3248
|
+
*/const tf=I`
|
|
3249
3249
|
:host {
|
|
3250
3250
|
display: flex;
|
|
3251
3251
|
align-items: center;
|
|
@@ -3314,15 +3314,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3314
3314
|
* @license
|
|
3315
3315
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3316
3316
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3317
|
-
*/B("vaadin-input-container",
|
|
3317
|
+
*/B("vaadin-input-container",tf,{moduleId:"vaadin-input-container-styles"});class Oh extends ef(ae(We(re))){static get is(){return"vaadin-input-container"}static get template(){return ie`
|
|
3318
3318
|
<slot name="prefix"></slot>
|
|
3319
3319
|
<slot></slot>
|
|
3320
3320
|
<slot name="suffix"></slot>
|
|
3321
|
-
`}}X(
|
|
3321
|
+
`}}X(Oh);/**
|
|
3322
3322
|
* @license
|
|
3323
3323
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3324
3324
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3325
|
-
*/const
|
|
3325
|
+
*/const Xr=I`
|
|
3326
3326
|
:host {
|
|
3327
3327
|
z-index: 200;
|
|
3328
3328
|
position: fixed;
|
|
@@ -3389,55 +3389,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3389
3389
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3390
3390
|
Code distributed by Google as part of the polymer project is also
|
|
3391
3391
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3392
|
-
*/let
|
|
3392
|
+
*/let ln=!1,rf=[],Mh=[];function of(){ln=!0,requestAnimationFrame(function(){ln=!1,nf(rf),setTimeout(function(){sf(Mh)})})}function nf(i){for(;i.length;)Nh(i.shift())}function sf(i){for(let e=0,t=i.length;e<t;e++)Nh(i.shift())}function Nh(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function Bh(i,e,t){ln||of(),Mh.push([i,e,t])}/**
|
|
3393
3393
|
* @license
|
|
3394
3394
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3395
3395
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3396
|
-
*/const
|
|
3396
|
+
*/const Kr=i=>i.test(navigator.userAgent),hn=i=>i.test(navigator.platform),af=i=>i.test(navigator.vendor);Kr(/Android/u);Kr(/Chrome/u)&&af(/Google Inc/u);Kr(/Firefox/u);const lf=hn(/^iPad/u)||hn(/^Mac/u)&&navigator.maxTouchPoints>1,hf=hn(/^iPhone/u),Zn=hf||lf,df=Kr(/^((?!chrome|android).)*safari/iu),dn=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
|
|
3397
3397
|
* @license
|
|
3398
3398
|
* Copyright (c) 2017 Anton Korzunov
|
|
3399
3399
|
* SPDX-License-Identifier: MIT
|
|
3400
|
-
*/let Vt=new WeakMap,
|
|
3400
|
+
*/let Vt=new WeakMap,ar=new WeakMap,lr={},wo=0;const xa=i=>i&&i.nodeType===Node.ELEMENT_NODE,Co=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},cf=(i,e)=>xa(i)?e.map(t=>{if(!xa(t))return Co(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Co(t,"is not contained inside",i),null}).filter(t=>!!t):(Co(i,"is not a valid element"),[]),uf=(i,e,t,r)=>{const o=cf(e,Array.isArray(i)?i:[i]);lr[t]||(lr[t]=new WeakMap);const n=lr[t],s=[],a=new Set,l=new Set(o),h=c=>{if(!c||a.has(c))return;a.add(c);const p=c.assignedSlot;p&&h(p),h(c.parentNode||c.host)};o.forEach(h);const d=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(a.has(u))d(u);else{const b=u.getAttribute(r),f=b!==null&&b!=="false",E=(Vt.get(u)||0)+1,P=(n.get(u)||0)+1;Vt.set(u,E),n.set(u,P),s.push(u),E===1&&f&&ar.set(u,!0),P===1&&u.setAttribute(t,"true"),f||u.setAttribute(r,"true")}})};return d(e),a.clear(),wo+=1,()=>{s.forEach(c=>{const p=Vt.get(c)-1,u=n.get(c)-1;Vt.set(c,p),n.set(c,u),p||(ar.has(c)?ar.delete(c):c.removeAttribute(r)),u||c.removeAttribute(t)}),wo-=1,wo||(Vt=new WeakMap,Vt=new WeakMap,ar=new WeakMap,lr={})}},Lh=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),uf(r,e,t,"aria-hidden")};/**
|
|
3401
3401
|
* @license
|
|
3402
3402
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3403
3403
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3404
|
-
*/class
|
|
3404
|
+
*/class pf{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Lh(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3405
3405
|
* @license
|
|
3406
3406
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3407
3407
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3408
|
-
*/class
|
|
3408
|
+
*/class mf{saveFocus(e){this.focusNode=e||nn()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;nn()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
|
|
3409
3409
|
* @license
|
|
3410
3410
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3411
3411
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3412
|
-
*/const
|
|
3412
|
+
*/const Eo=[];class _f{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return B_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Un).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.");Eo.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Eo.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Eo).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,n=(t.length+o+r)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
|
|
3413
3413
|
* @license
|
|
3414
3414
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3415
3415
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3416
|
-
*/const
|
|
3416
|
+
*/const ff=i=>class extends yt(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new pf(this),this.__focusTrapController=new _f(this),this.__focusRestorationController=new mf}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Wr();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=nn();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
|
|
3417
3417
|
* @license
|
|
3418
3418
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3419
3419
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3420
|
-
*/const
|
|
3420
|
+
*/const zh=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),cn=()=>zh().filter(i=>i.$.overlay),vf=i=>i===cn().pop(),Fh=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return vf(this)}bringToFront(){let e="";const t=zh().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),cn().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=cn();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
|
|
3421
3421
|
* @license
|
|
3422
3422
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3423
3423
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3424
|
-
*/const
|
|
3424
|
+
*/const Zr=i=>class extends ff(Fh(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),Zn&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,o){const n=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const s=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,s&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(s||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Bh(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,o=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
|
|
3425
3425
|
* @license
|
|
3426
3426
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
3427
3427
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3428
|
-
*/function
|
|
3428
|
+
*/function gf(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=i.getBoundingClientRect();if(s||e(),!d||!c)return;const p=Math.floor(h),u=Math.floor(r.clientWidth-(l+d)),b=Math.floor(r.clientHeight-(h+c)),f=Math.floor(l),E={rootMargin:`${-p}px ${-u}px ${-b}px ${-f}px`,threshold:Math.max(0,Math.min(1,a))||1};let P=!0;function D(z){let j=z[0].intersectionRatio;if(j!==a){if(!P)return n();j===0&&(j=1e-7),n(!1,j)}P=!1}t=new IntersectionObserver(D,E),t.observe(i)}return n(!0),o}/**
|
|
3429
3429
|
* @license
|
|
3430
3430
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3431
3431
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3432
|
-
*/const
|
|
3432
|
+
*/const So={start:"top",end:"bottom"},Ao={start:"left",end:"right"},wa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Jn=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=u_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=gf(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,wa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,wa.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),n=!r&&o||r&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,So,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,Ao,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,n,this.noHorizontalOverlap,Ao)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,So)}__shouldAlignStart(e,t,r,o,n,s,a){const l=r-e[s?a.end:a.start]-o[a.end],h=e[s?a.start:a.end]-o[a.start],d=n?l:h,c=d>(n?h:l)||d>t;return n===c}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===So.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=r-s}this.__oldViewportHeight=n}if(t.end===Ao.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=r-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,t,r,o,n,s){const a=s?o.start:o.end,l=s?o.end:o.start,h=parseFloat(n.style[a]||getComputedStyle(n)[a]),d=this.__adjustBottomProperty(a,o,h),c=t[s?o.start:o.end]-e[r===s?o.end:o.start],p=d?`${d}px`:`${h+c*(s?-1:1)}px`;return{[a]:p,[l]:""}}};/**
|
|
3433
3433
|
* @license
|
|
3434
3434
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
3435
3435
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3436
|
-
*/const
|
|
3436
|
+
*/const bf=i=>class extends Jn(Zr(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vn(e.composedPath()[0])&&e.preventDefault()}};/**
|
|
3437
3437
|
* @license
|
|
3438
3438
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3439
3439
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3440
|
-
*/const
|
|
3440
|
+
*/const yf=I`
|
|
3441
3441
|
[part='overlay'] {
|
|
3442
3442
|
display: flex;
|
|
3443
3443
|
flex: auto;
|
|
@@ -3456,18 +3456,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3456
3456
|
* @license
|
|
3457
3457
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3458
3458
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3459
|
-
*/B("vaadin-date-picker-overlay",[
|
|
3459
|
+
*/B("vaadin-date-picker-overlay",[Xr,yf],{moduleId:"vaadin-date-picker-overlay-styles"});class xf extends bf(We(ae(re))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ie`
|
|
3460
3460
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3461
3461
|
<div part="overlay" id="overlay">
|
|
3462
3462
|
<div part="content" id="content">
|
|
3463
3463
|
<slot></slot>
|
|
3464
3464
|
</div>
|
|
3465
3465
|
</div>
|
|
3466
|
-
`}}X(
|
|
3466
|
+
`}}X(xf);/**
|
|
3467
3467
|
* @license
|
|
3468
3468
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3469
3469
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3470
|
-
*/const
|
|
3470
|
+
*/const Hh=I`
|
|
3471
3471
|
:host {
|
|
3472
3472
|
display: inline-block;
|
|
3473
3473
|
position: relative;
|
|
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3527
3527
|
outline-color: GrayText;
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
|
-
`,
|
|
3530
|
+
`,wf=i=>i`
|
|
3531
3531
|
<div class="vaadin-button-container">
|
|
3532
3532
|
<span part="prefix" aria-hidden="true">
|
|
3533
3533
|
<slot name="prefix"></slot>
|
|
@@ -3544,15 +3544,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3544
3544
|
* @license
|
|
3545
3545
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3546
3546
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3547
|
-
*/const
|
|
3547
|
+
*/const Qn=i=>class extends Rn(Ah(Ot(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(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
3548
3548
|
* @license
|
|
3549
3549
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3550
3550
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3551
|
-
*/B("vaadin-button",
|
|
3551
|
+
*/B("vaadin-button",Hh,{moduleId:"vaadin-button-styles"});class Cf extends Qn(Ze(ae(yt(re)))){static get is(){return"vaadin-button"}static get template(){return wf(ie)}ready(){super.ready(),this._tooltipController=new bt(this),this.addController(this._tooltipController)}}X(Cf);/**
|
|
3552
3552
|
* @license
|
|
3553
3553
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3554
3554
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3555
|
-
*/function
|
|
3555
|
+
*/function Ef(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function un(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function rt(i,e,t=un){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function es(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function oi(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const n=es(i);o=r(n)}return(!e||i>=e)&&(!t||i<=t)&&!o}function Rh(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(i.getTime()-r.getTime()),n=Math.abs(t.getTime()-i.getTime());return o<n?r:t})}function $h(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Sf(i,e,t=0,r=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 o=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(o-50,t,r)?o-=100:i>new Date(o+50,t,r)&&(o+=100),o}function Ci(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}function Af(i){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let t="",r="0000",o=i.year;o<0?(o=-o,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const n=t+e(o,r),s=e(i.month+1),a=e(i.day);return[n,s,a].join("-")}function Pf(i){return i instanceof Date?Af({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
|
|
3556
3556
|
@license
|
|
3557
3557
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3558
3558
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3560,7 +3560,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3560
3560
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3561
3561
|
Code distributed by Google as part of the polymer project is also
|
|
3562
3562
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3563
|
-
*/class
|
|
3563
|
+
*/class Or{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,Wi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wi.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,r){return e instanceof Or?e._cancelAsync():e=new Or,e.setConfig(t,r),e}}let Wi=new Set;const If=function(i){Wi.add(i)},kf=function(){const i=!!Wi.size;return Wi.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
|
|
3564
3564
|
@license
|
|
3565
3565
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3566
3566
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3568,11 +3568,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3568
3568
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3569
3569
|
Code distributed by Google as part of the polymer project is also
|
|
3570
3570
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3571
|
-
*/const
|
|
3571
|
+
*/const ts=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=kf();while(i||e)};/**
|
|
3572
3572
|
* @license
|
|
3573
3573
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3574
3574
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3575
|
-
*/const
|
|
3575
|
+
*/const Vh=document.createElement("template");Vh.innerHTML=`
|
|
3576
3576
|
<style>
|
|
3577
3577
|
:host {
|
|
3578
3578
|
display: block;
|
|
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3622
3622
|
<div class="buffer"></div>
|
|
3623
3623
|
<div id="fullHeight"></div>
|
|
3624
3624
|
</div>
|
|
3625
|
-
`;class Uh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(
|
|
3625
|
+
`;class Uh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Vh.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 r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ts()}_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,r=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(r||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Fe.debounce(this._debouncerScrollFinish,ft.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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=Fe.debounce(this._debouncerUpdateClones,ft.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 r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${Ur()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),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(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
|
|
3626
3626
|
* @license
|
|
3627
3627
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3628
3628
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3629
|
-
*/const
|
|
3629
|
+
*/const Wh=document.createElement("template");Wh.innerHTML=`
|
|
3630
3630
|
<style>
|
|
3631
3631
|
:host {
|
|
3632
3632
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3638,11 +3638,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3638
3638
|
height: 100%;
|
|
3639
3639
|
}
|
|
3640
3640
|
</style>
|
|
3641
|
-
`;class
|
|
3641
|
+
`;class Tf extends Uh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Wh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=$h(t)}}X(Tf);/**
|
|
3642
3642
|
* @license
|
|
3643
3643
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3644
3644
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3645
|
-
*/const
|
|
3645
|
+
*/const jh=document.createElement("template");jh.innerHTML=`
|
|
3646
3646
|
<style>
|
|
3647
3647
|
:host {
|
|
3648
3648
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3676,15 +3676,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3676
3676
|
border-left-color: #000;
|
|
3677
3677
|
}
|
|
3678
3678
|
</style>
|
|
3679
|
-
`;class
|
|
3679
|
+
`;class Df extends Uh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(jh.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,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}X(Df);/**
|
|
3680
3680
|
* @license
|
|
3681
3681
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3682
3682
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3683
|
-
*/const
|
|
3683
|
+
*/const Of=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
|
|
3684
3684
|
* @license
|
|
3685
3685
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3686
3686
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3687
|
-
*/class
|
|
3687
|
+
*/class Mf extends ae(Of(re)){static get is(){return"vaadin-date-picker-year"}static get template(){return ie`
|
|
3688
3688
|
<style>
|
|
3689
3689
|
:host {
|
|
3690
3690
|
display: block;
|
|
@@ -3693,7 +3693,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3693
3693
|
</style>
|
|
3694
3694
|
<div part="year-number">[[year]]</div>
|
|
3695
3695
|
<div part="year-separator" aria-hidden="true"></div>
|
|
3696
|
-
`}}X(
|
|
3696
|
+
`}}X(Mf);/**
|
|
3697
3697
|
@license
|
|
3698
3698
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3699
3699
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3701
3701
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3702
3702
|
Code distributed by Google as part of the polymer project is also
|
|
3703
3703
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3704
|
-
*/function
|
|
3704
|
+
*/function is(i,e,t,r,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(r=i.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return n&&s&&(i.__dataTemp[e]=t),s}const rs=fe(i=>{class e extends i{_shouldPropertyChange(r,o,n){return is(this,r,o,n,!0)}}return e}),Nf=fe(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return is(this,r,o,n,this.mutableData)}}return e});rs._mutablePropertyChange=is;/**
|
|
3705
3705
|
@license
|
|
3706
3706
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3707
3707
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3709,7 +3709,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3709
3709
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3710
3710
|
Code distributed by Google as part of the polymer project is also
|
|
3711
3711
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3712
|
-
*/let
|
|
3712
|
+
*/let pn=null;function mn(){return pn}mn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:mn,writable:!0}});const Gh=On(mn),Bf=rs(Gh);function Lf(i,e){pn=i,Object.setPrototypeOf(i,e.prototype),new e,pn=null}const zf=On(class{});function Ff(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),Ae(Ae(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&Ae(Ae(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class xt extends zf{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){Ff(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}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}}xt.prototype.__dataHost;xt.prototype.__templatizeOptions;xt.prototype._methodHost;xt.prototype.__templatizeOwner;xt.prototype.__hostProps;const Hf=rs(xt);function Ca(i){let e=i.__dataHost;return e&&e._methodHost||e}function Rf(i,e,t){let r=t.mutableData?Hf:xt;_n.mixin&&(r=_n.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),Uf(o,i,e,t),o}function $f(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const n=i.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?Bf:Gh;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=i.constructor;class h extends l{}s=e.templatizeTemplateClass=h}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Vf(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);jl&&r&&Gf(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),n)Lf(i,s),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in i){const h=i[l];delete i[l],i.__data[l]=h}}}}function Vf(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function Uf(i,e,t,r){let o=t.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Wf(n,s)})}if(r.forwardHostProp&&e.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jf()})}function Wf(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function jf(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function _n(i,e,t){if(Ir&&!Ca(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:xt)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=Rf(i,r,t),r.templatizeInstanceClass=o);const n=Ca(i);$f(i,r,t,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=i,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=r.hostProps,s=s,s}function Gf(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:n}=e;for(let s in o)if(!r[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:h}=a[l].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function qf(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}/**
|
|
3713
3713
|
@license
|
|
3714
3714
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3715
3715
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3717,7 +3717,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3717
3717
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3718
3718
|
Code distributed by Google as part of the polymer project is also
|
|
3719
3719
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3720
|
-
*/let
|
|
3720
|
+
*/let Ea=!1;function Yf(){if(Wl&&!Ul){if(!Ea){Ea=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
|
|
3721
3721
|
@license
|
|
3722
3722
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3723
3723
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3725,15 +3725,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3725
3725
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3726
3726
|
Code distributed by Google as part of the polymer project is also
|
|
3727
3727
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3728
|
-
*/const
|
|
3728
|
+
*/const Xf=Nf(re);class Sa extends Xf{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:!Zs,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(),Yf()||(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 o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=_n(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(Yp(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Hi(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,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 r=0;r<t.length;r++)e.indexOf(t[r])===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=Or.debounce(this.__renderDebouncer,t>0?em.after(t):th,e.bind(this)),If(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ts()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Zs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,n)=>this.__filterFn(e[r],o,n))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+o,e)),this.__shouldMeasureChunk=o===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,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=r[n],l=e[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const r=Ae(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];r.appendChild(n)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let n=this.__instances[t+1],s=n?n.children[0]:this;return Ae(Ae(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let h=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(h,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 qf(this.template,e)}}customElements.define(Sa.is,Sa);/**
|
|
3729
3729
|
* @license
|
|
3730
3730
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3731
3731
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3732
|
-
*/const
|
|
3732
|
+
*/const Kf=i=>class extends Ot(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},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>rt(e.date,this.focusedDate))}ready(){super.ready(),Xe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!oi(o,t,r)&&!oi(n,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(r,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>rt(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return rt(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const o=[],n=r.getMonth(),s=e.getMonth();for(;r.getMonth()===s||r.getMonth()===n;)o.push(r.getMonth()===s?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((t,r,o)=>(o%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,o)=>!r&&o?o:r);return Ef(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
|
|
3733
3733
|
* @license
|
|
3734
3734
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3735
3735
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3736
|
-
*/const
|
|
3736
|
+
*/const Zf=I`
|
|
3737
3737
|
:host {
|
|
3738
3738
|
display: block;
|
|
3739
3739
|
}
|
|
@@ -3793,7 +3793,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3793
3793
|
* @license
|
|
3794
3794
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3795
3795
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3796
|
-
*/B("vaadin-month-calendar",
|
|
3796
|
+
*/B("vaadin-month-calendar",Zf,{moduleId:"vaadin-month-calendar-styles"});class Jf extends Kf(ae(re)){static get template(){return ie`
|
|
3797
3797
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3798
3798
|
<table
|
|
3799
3799
|
id="monthGrid"
|
|
@@ -3835,19 +3835,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3835
3835
|
</template>
|
|
3836
3836
|
</tbody>
|
|
3837
3837
|
</table>
|
|
3838
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,s
|
|
3838
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,n,s){const a=["date"],l=e>un(new Date),h=e<un(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return rt(e,t)}__isDaySelected(e,t){return rt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!oi(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}X(Jf);/**
|
|
3839
3839
|
* @license
|
|
3840
3840
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3841
3841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3842
|
-
*/class
|
|
3842
|
+
*/class os{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)}}/**
|
|
3843
3843
|
* @license
|
|
3844
3844
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3845
3845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3846
|
-
*/const ev=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},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Eh(this.$.scrollers,"pan-y"),Xe(this.$.scrollers,"track",this._track.bind(this)),Xe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Xe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Xe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new sn(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ze(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Xe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ze(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Xe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ze(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ze(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Xe(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,s))}__updateCalendars(e,t,r,o,s,n,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=n,c.selectedDate=s,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+a,t);return}const o=this._monthScroller.position>r,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+s-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Fe.debounce(this._debouncer,ft.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(en(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,h,d,c)=>(l/=c/2,l<1?d/2*l*l+h:(l-=1,-d/2*(l*(l-2)-1)+h));let s=0;const n=this._monthScroller.position,a=l=>{s||(s=l);const h=l-s;if(h<this.scrollDuration){const d=o(h,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Vh(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ot(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&ot(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Sr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Sr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Lh(this,()=>{tn(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate($h(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return ri(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3846
|
+
*/const Qf=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},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ch(this.$.scrollers,"pan-y"),Xe(this.$.scrollers,"track",this._track.bind(this)),Xe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Xe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Xe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new os(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Xe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Xe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ke(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Xe(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,n))}__updateCalendars(e,t,r,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,c.maxDate=o,c.isDateDisabled=d,c.focusedDate=s,c.selectedDate=n,c.showWeekNumbers=a,c.ignoreTaps=l,h?c.setAttribute("theme",h):c.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+a,t);return}const o=this._monthScroller.position>r,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<r;o?this._scrollToPosition(r,t):s&&this._scrollToPosition(r-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Fe.debounce(this._debouncer,ft.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(es(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,h,d,c)=>(l/=c/2,l<1?d/2*l*l+h:(l-=1,-d/2*(l*(l-2)-1)+h));let n=0;const s=this._monthScroller.position,a=l=>{n||(n=l);const h=l-n;if(h<this.scrollDuration){const d=o(h,s,this._targetPosition-s,this.scrollDuration);this._monthScroller.position=d,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return $h(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){rt(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&rt(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Cr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Cr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Bh(this,()=>{ts(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Rh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return oi(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3847
3847
|
* @license
|
|
3848
3848
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3849
3849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3850
|
-
*/const
|
|
3850
|
+
*/const ev=I`
|
|
3851
3851
|
:host {
|
|
3852
3852
|
display: flex;
|
|
3853
3853
|
flex-direction: column;
|
|
@@ -3911,7 +3911,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3911
3911
|
* @license
|
|
3912
3912
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3913
3913
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3914
|
-
*/B("vaadin-date-picker-overlay-content",
|
|
3914
|
+
*/B("vaadin-date-picker-overlay-content",ev,{moduleId:"vaadin-date-picker-overlay-content-styles"});class tv extends Qf(yt(ae(We(re)))){static get template(){return ie`
|
|
3915
3915
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3916
3916
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3917
3917
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3931,23 +3931,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3931
3931
|
<slot name="today-button"></slot>
|
|
3932
3932
|
<slot name="cancel-button"></slot>
|
|
3933
3933
|
</div>
|
|
3934
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}X(
|
|
3934
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}X(tv);/**
|
|
3935
3935
|
* @license
|
|
3936
3936
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3937
3937
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3938
|
-
*/const
|
|
3938
|
+
*/const Po=new WeakMap;function iv(i){return Po.has(i)||Po.set(i,new Set),Po.get(i)}function rv(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const qh=fe(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=iv(e);this.slotStyles.forEach(r=>{t.has(r)||(rv(r,e),t.add(r))})}});/**
|
|
3939
3939
|
* @license
|
|
3940
3940
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3941
3941
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3942
|
-
*/const
|
|
3942
|
+
*/const ov=i=>class extends qi(Dt(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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),dn||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3943
3943
|
* @license
|
|
3944
3944
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3945
3945
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3946
|
-
*/const
|
|
3946
|
+
*/const ns=fe(i=>class extends Wn(qn(qi(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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3947
3947
|
* @license
|
|
3948
3948
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3949
3949
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3950
|
-
*/const
|
|
3950
|
+
*/const Jr=i=>class extends qh(jr(ns(Gr(ov(Dt(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[`
|
|
3951
3951
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3952
3952
|
font: inherit;
|
|
3953
3953
|
color: inherit;
|
|
@@ -3973,7 +3973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3973
3973
|
* @license
|
|
3974
3974
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3975
3975
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3976
|
-
*/const
|
|
3976
|
+
*/const Yh=I`
|
|
3977
3977
|
:host {
|
|
3978
3978
|
display: inline-flex;
|
|
3979
3979
|
outline: none;
|
|
@@ -4011,7 +4011,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4011
4011
|
* @license
|
|
4012
4012
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
4013
4013
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4014
|
-
*/const
|
|
4014
|
+
*/const Xh=I`
|
|
4015
4015
|
[class$='container'] {
|
|
4016
4016
|
display: flex;
|
|
4017
4017
|
flex-direction: column;
|
|
@@ -4023,23 +4023,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4023
4023
|
* @license
|
|
4024
4024
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
4025
4025
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4026
|
-
*/const
|
|
4026
|
+
*/const Qr=[Yh,Xh,nv];/**
|
|
4027
4027
|
* @license
|
|
4028
4028
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4029
4029
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4030
|
-
*/const
|
|
4030
|
+
*/const eo=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(s=>!this.__initialClasses.has(s));n.length>0&&r.remove(...n)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&r.add(...o),this.__previousClasses=o}};/**
|
|
4031
4031
|
* @license
|
|
4032
4032
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4033
4033
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4034
|
-
*/class
|
|
4034
|
+
*/class Kh{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")}}/**
|
|
4035
4035
|
* @license
|
|
4036
4036
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4037
4037
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4038
|
-
*/const av=i=>class extends ro(yt(Yr(nn(Dt(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: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,s=r.getMonth(),n=r.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?wi(this.referenceDate):new Date;n=Af(a,n,s,o)}}else t.length===2?(s=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:s,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Zs},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!qr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new sn(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Zh(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=wi(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(en(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||ri(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&r&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,s,n){return!e||t&&(!n||s)||r&&s||!o.parseDate}_formatISO(e){return If(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=wi(e);if(e&&!r){this.value=t;return}e?ot(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,s,n,a,l,h){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=s,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=zh(s)}_getInitialPosition(){const e=wi(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ri(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?$h(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ot(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return wi(e)}};/**
|
|
4038
|
+
*/const sv=i=>class extends eo(yt(jr(ns(Dt(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: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,n=r.getMonth(),s=r.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,o=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const a=this.referenceDate?Ci(this.referenceDate):new Date;s=Sf(a,s,n,o)}}else t.length===2?(n=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Zn},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Wr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new os(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Kh(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Ci(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(es(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||oi(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&r&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,n,s){return!e||t&&(!s||n)||r&&n||!o.parseDate}_formatISO(e){return Pf(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=Ci(e);if(e&&!r){this.value=t;return}e?rt(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,n,s,a,l,h){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=Lh(n)}_getInitialPosition(){const e=Ci(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||oi(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Rh(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,rt(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ci(e)}};/**
|
|
4039
4039
|
* @license
|
|
4040
4040
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4041
4041
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4042
|
-
*/const
|
|
4042
|
+
*/const av=I`
|
|
4043
4043
|
:host([opened]) {
|
|
4044
4044
|
pointer-events: auto;
|
|
4045
4045
|
}
|
|
@@ -4056,7 +4056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4056
4056
|
* @license
|
|
4057
4057
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4058
4058
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4059
|
-
*/B("vaadin-date-picker",[
|
|
4059
|
+
*/B("vaadin-date-picker",[Qr,av],{moduleId:"vaadin-date-picker-styles"});class lv extends sv(Jr(ae(Ze(re)))){static get is(){return"vaadin-date-picker"}static get template(){return ie`
|
|
4060
4060
|
<div class="vaadin-date-picker-container">
|
|
4061
4061
|
<div part="label">
|
|
4062
4062
|
<slot name="label"></slot>
|
|
@@ -4098,7 +4098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4098
4098
|
></vaadin-date-picker-overlay>
|
|
4099
4099
|
|
|
4100
4100
|
<slot name="tooltip"></slot>
|
|
4101
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
4101
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new bt(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}X(lv);/**
|
|
4102
4102
|
* @license
|
|
4103
4103
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4104
4104
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4106,15 +4106,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4106
4106
|
* @license
|
|
4107
4107
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4108
4108
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4109
|
-
*/const
|
|
4109
|
+
*/const hv=i=>class extends Jr(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
|
|
4110
4110
|
* @license
|
|
4111
4111
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4112
4112
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4113
|
-
*/const
|
|
4113
|
+
*/const dv=i=>class extends hv(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController))}};/**
|
|
4114
4114
|
* @license
|
|
4115
4115
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4116
4116
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4117
|
-
*/B("vaadin-text-field",
|
|
4117
|
+
*/B("vaadin-text-field",Qr,{moduleId:"vaadin-text-field-styles"});class Zh extends dv(ae(Ze(re))){static get is(){return"vaadin-text-field"}static get template(){return ie`
|
|
4118
4118
|
<div class="vaadin-field-container">
|
|
4119
4119
|
<div part="label">
|
|
4120
4120
|
<slot name="label"></slot>
|
|
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4143
4143
|
</div>
|
|
4144
4144
|
</div>
|
|
4145
4145
|
<slot name="tooltip"></slot>
|
|
4146
|
-
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new bt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}X(
|
|
4146
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new bt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}X(Zh);/**
|
|
4147
4147
|
* @license
|
|
4148
4148
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4149
4149
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4150
|
-
*/const
|
|
4150
|
+
*/const cv=I`
|
|
4151
4151
|
:host {
|
|
4152
4152
|
position: absolute;
|
|
4153
4153
|
right: 0;
|
|
@@ -4160,11 +4160,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4160
4160
|
background: transparent;
|
|
4161
4161
|
outline: none;
|
|
4162
4162
|
}
|
|
4163
|
-
`;B("vaadin-password-field-button",[
|
|
4163
|
+
`;B("vaadin-password-field-button",[Dh,cv],{moduleId:"lumo-password-field-button"});/**
|
|
4164
4164
|
* @license
|
|
4165
4165
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4166
4166
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4167
|
-
*/const
|
|
4167
|
+
*/const uv=I`
|
|
4168
4168
|
[part='reveal-button']::before {
|
|
4169
4169
|
content: var(--lumo-icons-eye);
|
|
4170
4170
|
}
|
|
@@ -4182,27 +4182,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4182
4182
|
[part='reveal-button'][hidden] {
|
|
4183
4183
|
display: none !important;
|
|
4184
4184
|
}
|
|
4185
|
-
`;B("vaadin-password-field",[Mt,
|
|
4185
|
+
`;B("vaadin-password-field",[Mt,uv],{moduleId:"lumo-password-field"});/**
|
|
4186
4186
|
* @license
|
|
4187
4187
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4188
4188
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4189
|
-
*/B("vaadin-password-field-button",
|
|
4189
|
+
*/B("vaadin-password-field-button",Hh,{moduleId:"vaadin-password-field-button-styles"});class pv extends Qn(We(ae(re))){static get is(){return"vaadin-password-field-button"}static get template(){return ie``}}X(pv);/**
|
|
4190
4190
|
* @license
|
|
4191
4191
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4192
4192
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4193
|
-
*/const
|
|
4193
|
+
*/const mv=i=>class extends qh(di(Ot(qi(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
|
|
4194
4194
|
${e} [slot="input"]::-ms-reveal {
|
|
4195
4195
|
display: none;
|
|
4196
4196
|
}
|
|
4197
|
-
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new
|
|
4197
|
+
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Ke(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
|
|
4198
4198
|
* @license
|
|
4199
4199
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4200
4200
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4201
|
-
*/const
|
|
4201
|
+
*/const _v=ie`
|
|
4202
4202
|
<div part="reveal-button" slot="suffix">
|
|
4203
4203
|
<slot name="reveal"></slot>
|
|
4204
4204
|
</div>
|
|
4205
|
-
`;let
|
|
4205
|
+
`;let hr;class fv extends mv(Zh){static get is(){return"vaadin-password-field"}static get template(){if(!hr){hr=super.template.cloneNode(!0);const e=_v.content.querySelector('[part="reveal-button"]');hr.content.querySelector('[part="input-field"]').appendChild(e)}return hr}}X(fv);const to=I`
|
|
4206
4206
|
:host {
|
|
4207
4207
|
display: flex;
|
|
4208
4208
|
align-items: center;
|
|
@@ -4286,7 +4286,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4286
4286
|
width: var(--lumo-icon-size-m);
|
|
4287
4287
|
height: var(--lumo-icon-size-m);
|
|
4288
4288
|
}
|
|
4289
|
-
`;B("vaadin-item",
|
|
4289
|
+
`;B("vaadin-item",to,{moduleId:"lumo-item"});const Jh=I`
|
|
4290
4290
|
:host {
|
|
4291
4291
|
transition: background-color 100ms;
|
|
4292
4292
|
overflow: hidden;
|
|
@@ -4298,11 +4298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4298
4298
|
:host([focused]:not([disabled])) {
|
|
4299
4299
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
4300
4300
|
}
|
|
4301
|
-
`;B("vaadin-combo-box-item",[
|
|
4301
|
+
`;B("vaadin-combo-box-item",[to,Jh],{moduleId:"lumo-combo-box-item"});/**
|
|
4302
4302
|
* @license
|
|
4303
4303
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
4304
4304
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4305
|
-
*/const
|
|
4305
|
+
*/const Qh=I`
|
|
4306
4306
|
[part~='loader'] {
|
|
4307
4307
|
box-sizing: border-box;
|
|
4308
4308
|
width: var(--lumo-icon-size-s);
|
|
@@ -4344,7 +4344,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4344
4344
|
transform: rotate(360deg);
|
|
4345
4345
|
}
|
|
4346
4346
|
}
|
|
4347
|
-
`,
|
|
4347
|
+
`,ed=I`
|
|
4348
4348
|
[part='content'] {
|
|
4349
4349
|
padding: 0;
|
|
4350
4350
|
}
|
|
@@ -4365,7 +4365,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4365
4365
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
4366
4366
|
margin-bottom: var(--lumo-space-xs);
|
|
4367
4367
|
}
|
|
4368
|
-
`,
|
|
4368
|
+
`,td=I`
|
|
4369
4369
|
[part~='loader'] {
|
|
4370
4370
|
position: absolute;
|
|
4371
4371
|
z-index: 1;
|
|
@@ -4373,24 +4373,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4373
4373
|
top: var(--lumo-space-s);
|
|
4374
4374
|
margin-inline: auto 0;
|
|
4375
4375
|
}
|
|
4376
|
-
`;B("vaadin-combo-box-overlay",[
|
|
4376
|
+
`;B("vaadin-combo-box-overlay",[qr,Yr,ed,Qh,td,I`
|
|
4377
4377
|
:host {
|
|
4378
4378
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4379
4379
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
4380
4380
|
}
|
|
4381
|
-
`],{moduleId:"lumo-combo-box-overlay"});const
|
|
4381
|
+
`],{moduleId:"lumo-combo-box-overlay"});const vv=I`
|
|
4382
4382
|
[part='toggle-button']::before {
|
|
4383
4383
|
content: var(--lumo-icons-dropdown);
|
|
4384
4384
|
}
|
|
4385
|
-
`;B("vaadin-combo-box",[Mt,
|
|
4385
|
+
`;B("vaadin-combo-box",[Mt,vv],{moduleId:"lumo-combo-box"});/**
|
|
4386
4386
|
* @license
|
|
4387
4387
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4388
4388
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4389
|
-
*/const
|
|
4389
|
+
*/const id=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
|
|
4390
4390
|
* @license
|
|
4391
4391
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4392
4392
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4393
|
-
*/class
|
|
4393
|
+
*/class gv extends id(ae(We(re))){static get template(){return ie`
|
|
4394
4394
|
<style>
|
|
4395
4395
|
:host {
|
|
4396
4396
|
display: block;
|
|
@@ -4404,15 +4404,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4404
4404
|
<div part="content">
|
|
4405
4405
|
<slot></slot>
|
|
4406
4406
|
</div>
|
|
4407
|
-
`}static get is(){return"vaadin-combo-box-item"}}X(
|
|
4407
|
+
`}static get is(){return"vaadin-combo-box-item"}}X(gv);/**
|
|
4408
4408
|
* @license
|
|
4409
4409
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4410
4410
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4411
|
-
*/const
|
|
4411
|
+
*/const rd=i=>class extends Jn(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vn(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
4412
4412
|
* @license
|
|
4413
4413
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4414
4414
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4415
|
-
*/const
|
|
4415
|
+
*/const bv=I`
|
|
4416
4416
|
#overlay {
|
|
4417
4417
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
4418
4418
|
}
|
|
@@ -4422,17 +4422,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4422
4422
|
flex-direction: column;
|
|
4423
4423
|
height: 100%;
|
|
4424
4424
|
}
|
|
4425
|
-
`;B("vaadin-combo-box-overlay",[
|
|
4425
|
+
`;B("vaadin-combo-box-overlay",[Xr,bv],{moduleId:"vaadin-combo-box-overlay-styles"});class yv extends rd(Zr(We(ae(re)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return ie`
|
|
4426
4426
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4427
4427
|
<div part="overlay" id="overlay">
|
|
4428
4428
|
<div part="loader"></div>
|
|
4429
4429
|
<div part="content" id="content"><slot></slot></div>
|
|
4430
4430
|
</div>
|
|
4431
|
-
`}}X(
|
|
4431
|
+
`}}X(yv);/**
|
|
4432
4432
|
* @license
|
|
4433
4433
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4434
4434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4435
|
-
*/function
|
|
4435
|
+
*/function Mr(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
|
|
4436
4436
|
* @license
|
|
4437
4437
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
4438
4438
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -4440,11 +4440,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4440
4440
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
4441
4441
|
* Code distributed by Google as part of the polymer project is also
|
|
4442
4442
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
4443
|
-
*/const
|
|
4443
|
+
*/const Aa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),xv=Aa&&Aa[1]>=8,Pa=3,wv={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Tr)}},_getReusables(i){let e,t,r;const o=[],n=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=c-h):(e=this._physicalEnd,t=d-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=n);)if(i){if(a+o.length+1>=this._virtualCount||h+r>=c-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-r<=p)break;o.push(e),h-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,Pa,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),fh):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Tr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Pa))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Vi))},_iterateItems(i,e){let t,r,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!xv&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(Ai(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Vi)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=Fe.debounce(this._debouncers[i],t,e.bind(this)),vh(this._debouncers[i])}};/**
|
|
4444
4444
|
* @license
|
|
4445
4445
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4446
4446
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4447
|
-
*/const Ev=1e5,Do=1e3;class sd{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=s||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Do?(r=e,this._vidxOffset=0):(r=Do,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Si(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){Si();let t=0,r=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return r+o+s+n+a}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Fe.debounce(this.__placeholderClearDebouncer,Vi,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(o.reduce((s,n)=>s+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Si(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Si(),this._debounce("_update",this._update,Or)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Ev)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const s=this._physicalItems[r];s.hidden=o>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,ft.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,ft.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Fe.debounce(this.__debouncerWheelAnimationFrame,Vi,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Fe.debounce(this._debouncerIgnoreNewWheel,ft.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,s=t.indexOf(r)-o;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(cf){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Do,s=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(sd.prototype,Cv);class Sv{constructor(e){this.__adapter=new sd(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4447
|
+
*/const Cv=1e5,Io=1e3;class od{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=n||o,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Io?(r=e,this._vidxOffset=0):(r=Io,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ai(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){Ai();let t=0,r=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{r+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),t+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return r+o+n+s+a}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Fe.debounce(this.__placeholderClearDebouncer,Vi,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(o.reduce((n,s)=>n+s,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Ai(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ai(),this._debounce("_update",this._update,Tr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Cv)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const n=this._physicalItems[r];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Fe.debounce(this.__fixInvalidItemPositioningDebouncer,ft.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Fe.debounce(this.__scrollReorderDebouncer,ft.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const n=t,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Fe.debounce(this.__debouncerWheelAnimationFrame,Vi,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Fe.debounce(this._debouncerIgnoreNewWheel,ft.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,n=t.indexOf(r)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(t[s]);else if(n<0)for(let s=t.length+n;s<t.length;s++)this.elementsContainer.insertBefore(t[s],t[0]);if(df){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Io,n=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(od.prototype,wv);class Ev{constructor(e){this.__adapter=new od(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4448
4448
|
* @license
|
|
4449
4449
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4450
4450
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4452,11 +4452,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4452
4452
|
* @license
|
|
4453
4453
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4454
4454
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4455
|
-
*/const nd=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${
|
|
4455
|
+
*/const nd=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Ur()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),s=this.getBoundingClientRect(),a=n.bottom-s.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,r){return e instanceof gt?!1:r&&e!==void 0&&t!==void 0?Mr(r,e)===Mr(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Ev({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],o=this.focusedIndex,n=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:n,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof gt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
4456
4456
|
* @license
|
|
4457
4457
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4458
4458
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4459
|
-
*/class
|
|
4459
|
+
*/class Sv extends nd(re){static get is(){return"vaadin-combo-box-scroller"}static get template(){return ie`
|
|
4460
4460
|
<style>
|
|
4461
4461
|
:host {
|
|
4462
4462
|
display: block;
|
|
@@ -4483,39 +4483,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4483
4483
|
<div id="selector">
|
|
4484
4484
|
<slot></slot>
|
|
4485
4485
|
</div>
|
|
4486
|
-
`}}X(
|
|
4486
|
+
`}}X(Sv);/**
|
|
4487
4487
|
* @license
|
|
4488
4488
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4489
4489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4490
|
-
*/const
|
|
4490
|
+
*/const Av=i=>class extends ns(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
4491
4491
|
* @license
|
|
4492
4492
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4493
4493
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4494
|
-
*/function
|
|
4494
|
+
*/function Nr(i,e,t=0){let r=e;for(const o of i.subCaches){const n=o.parentCacheIndex;if(r<=n)break;if(r<=n+o.flatSize)return Nr(o,r-n-1,t+1);r-=o.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function sd({getItemId:i},e,t,r=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&i(s)===i(t))return{cache:e,level:r,item:s,index:n,page:Math.floor(n/e.pageSize),subCache:e.getSubCache(n),flatIndex:o+e.getFlatIndex(n)}}for(const n of e.subCaches){const s=o+e.getFlatIndex(n.parentCacheIndex),a=sd({getItemId:i},n,t,r+1,s+1);if(a)return a}}function ad(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const o=i.getFlatIndex(e),n=i.getSubCache(e);return n&&n.flatSize>0&&t.length?ad(n,t,r+o+1):r+o}/**
|
|
4495
4495
|
* @license
|
|
4496
4496
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4497
4497
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4498
|
-
*/class
|
|
4498
|
+
*/class ss{constructor(e,t,r,o,n){Ie(this,"context"),Ie(this,"pageSize"),Ie(this,"items",[]),Ie(this,"pendingRequests",{}),Ie(this,"__subCacheByIndex",{}),Ie(this,"__size",0),Ie(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=n,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,n)=>{const s=r+n;(this.size===void 0||s<this.size)&&(this.items[s]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new ss(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const n=o.parentCacheIndex;return t>n?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Nr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Nr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
|
|
4499
4499
|
* @license
|
|
4500
4500
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4501
4501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4502
|
-
*/class
|
|
4502
|
+
*/class Pv extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),Ie(this,"host"),Ie(this,"dataProvider"),Ie(this,"dataProviderParams"),Ie(this,"pageSize"),Ie(this,"isExpanded"),Ie(this,"getItemId"),Ie(this,"rootCache"),Ie(this,"placeholder"),Ie(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=n,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=h,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Nr(this.rootCache,e)}getItemContext(e){return sd({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return ad(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const n=t.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ss(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=wr(wr({},r),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[t]===o&&(s!==void 0?e.size=s:r.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
4503
4503
|
* @license
|
|
4504
4504
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4505
4505
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4506
|
-
*/const
|
|
4506
|
+
*/const ld=i=>class extends i{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new Pv(this,{placeholder:new gt,isPlaceholder:e=>e instanceof gt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
|
|
4507
4507
|
* @license
|
|
4508
4508
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4509
4509
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4510
|
-
*/function
|
|
4510
|
+
*/function io(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
4511
4511
|
* @license
|
|
4512
4512
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4513
4513
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4514
|
-
*/function ka(i){return i!=null}function Ta(i,e){return i.findIndex(t=>t instanceof gt?!1:e(t))}const dd=i=>class extends ro(yt(qs(Ot(Dt(Yi(hi(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),so(this),this.addController(new Zh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,s,n,a,l,h,d){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Ws(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ms&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Br(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Br(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ms&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ka(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const s=this.__getItemIndexByValue(e,this._getItemValue(r));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!ka(t)?-1:Ta(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Ta(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof gt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(qr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
4514
|
+
*/function Ia(i){return i!=null}function ka(i,e){return i.findIndex(t=>t instanceof gt?!1:e(t))}const hd=i=>class extends eo(yt(qn(Ot(Dt(qi(di(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),io(this),this.addController(new Kh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,n,s,a,l,h,d){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:n,itemIdPath:s,focusedIndex:a,renderer:l,theme:h,itemClassNameGenerator:d}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Un(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!dn&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Mr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Mr(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{dn&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Ia(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(r));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Ia(t)?-1:ka(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:ka(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof gt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Wr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
4515
4515
|
* @license
|
|
4516
4516
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4517
4517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4518
|
-
*/B("vaadin-combo-box",
|
|
4518
|
+
*/B("vaadin-combo-box",Qr,{moduleId:"vaadin-combo-box-styles"});class Iv extends ld(hd(Av(Jr(ae(Ze(re)))))){static get is(){return"vaadin-combo-box"}static get template(){return ie`
|
|
4519
4519
|
<style>
|
|
4520
4520
|
:host([opened]) {
|
|
4521
4521
|
pointer-events: auto;
|
|
@@ -4560,11 +4560,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4560
4560
|
></vaadin-combo-box-overlay>
|
|
4561
4561
|
|
|
4562
4562
|
<slot name="tooltip"></slot>
|
|
4563
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
4563
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new bt(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}X(Iv);/**
|
|
4564
4564
|
* @license
|
|
4565
4565
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4566
4566
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4567
|
-
*/const
|
|
4567
|
+
*/const kv=I`
|
|
4568
4568
|
:host {
|
|
4569
4569
|
font-size: var(--lumo-font-size-xxs);
|
|
4570
4570
|
line-height: 1;
|
|
@@ -4653,18 +4653,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4653
4653
|
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
4654
4654
|
pointer-events: none;
|
|
4655
4655
|
}
|
|
4656
|
-
`;B("vaadin-multi-select-combo-box-chip",[
|
|
4656
|
+
`;B("vaadin-multi-select-combo-box-chip",[Kn,kv],{moduleId:"lumo-multi-select-combo-box-chip"});/**
|
|
4657
4657
|
* @license
|
|
4658
4658
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4659
4659
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4660
|
-
*/const
|
|
4660
|
+
*/const Tv=I`
|
|
4661
4661
|
@media (any-hover: hover) {
|
|
4662
4662
|
:host(:hover[readonly]) {
|
|
4663
4663
|
background-color: transparent;
|
|
4664
4664
|
cursor: default;
|
|
4665
4665
|
}
|
|
4666
4666
|
}
|
|
4667
|
-
`;B("vaadin-multi-select-combo-box-item",[
|
|
4667
|
+
`;B("vaadin-multi-select-combo-box-item",[to,Jh,Tv],{moduleId:"lumo-multi-select-combo-box-item"});B("vaadin-multi-select-combo-box-overlay",[qr,Yr,ed,Qh,td,I`
|
|
4668
4668
|
:host {
|
|
4669
4669
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4670
4670
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
@@ -4673,7 +4673,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4673
4673
|
:host([auto-expand-vertically]) {
|
|
4674
4674
|
padding-block: var(--lumo-space-xs);
|
|
4675
4675
|
}
|
|
4676
|
-
`,{moduleId:"lumo-multi-select-combo-box-container"});const
|
|
4676
|
+
`,{moduleId:"lumo-multi-select-combo-box-container"});const Dv=I`
|
|
4677
4677
|
:host([has-value]) {
|
|
4678
4678
|
padding-inline-start: 0;
|
|
4679
4679
|
}
|
|
@@ -4726,11 +4726,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4726
4726
|
color: var(--lumo-contrast-60pct);
|
|
4727
4727
|
cursor: var(--lumo-clickable-cursor);
|
|
4728
4728
|
}
|
|
4729
|
-
`;B("vaadin-multi-select-combo-box",[Mt,
|
|
4729
|
+
`;B("vaadin-multi-select-combo-box",[Mt,Dv],{moduleId:"lumo-multi-select-combo-box"});/**
|
|
4730
4730
|
* @license
|
|
4731
4731
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4732
4732
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4733
|
-
*/class
|
|
4733
|
+
*/class Ov extends ae(re){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return ie`
|
|
4734
4734
|
<style>
|
|
4735
4735
|
:host {
|
|
4736
4736
|
display: inline-flex;
|
|
@@ -4759,7 +4759,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4759
4759
|
</style>
|
|
4760
4760
|
<div part="label">[[label]]</div>
|
|
4761
4761
|
<div part="remove-button" on-click="_onRemoveClick"></div>
|
|
4762
|
-
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}X(
|
|
4762
|
+
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}X(Ov);/**
|
|
4763
4763
|
* @license
|
|
4764
4764
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4765
4765
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4773,11 +4773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4773
4773
|
:host([auto-expand-vertically]) #wrapper {
|
|
4774
4774
|
flex-wrap: wrap;
|
|
4775
4775
|
}
|
|
4776
|
-
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let
|
|
4776
|
+
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let dr;class Mv extends Oh{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!dr){dr=super.template.cloneNode(!0);const e=dr.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return dr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}X(Mv);/**
|
|
4777
4777
|
* @license
|
|
4778
4778
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4779
4779
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4780
|
-
*/class
|
|
4780
|
+
*/class Nv extends id(ae(We(re))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return ie`
|
|
4781
4781
|
<style>
|
|
4782
4782
|
:host {
|
|
4783
4783
|
display: block;
|
|
@@ -4791,11 +4791,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4791
4791
|
<div part="content">
|
|
4792
4792
|
<slot></slot>
|
|
4793
4793
|
</div>
|
|
4794
|
-
`}}X(
|
|
4794
|
+
`}}X(Nv);/**
|
|
4795
4795
|
* @license
|
|
4796
4796
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4797
4797
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4798
|
-
*/const
|
|
4798
|
+
*/const Bv=I`
|
|
4799
4799
|
#overlay {
|
|
4800
4800
|
width: var(
|
|
4801
4801
|
--vaadin-multi-select-combo-box-overlay-width,
|
|
@@ -4808,17 +4808,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4808
4808
|
flex-direction: column;
|
|
4809
4809
|
height: 100%;
|
|
4810
4810
|
}
|
|
4811
|
-
`;B("vaadin-multi-select-combo-box-overlay",[
|
|
4811
|
+
`;B("vaadin-multi-select-combo-box-overlay",[Xr,Bv],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Lv extends rd(Zr(We(ae(re)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return ie`
|
|
4812
4812
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4813
4813
|
<div part="overlay" id="overlay">
|
|
4814
4814
|
<div part="loader"></div>
|
|
4815
4815
|
<div part="content" id="content"><slot></slot></div>
|
|
4816
4816
|
</div>
|
|
4817
|
-
`}}X(
|
|
4817
|
+
`}}X(Lv);/**
|
|
4818
4818
|
* @license
|
|
4819
4819
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4820
4820
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4821
|
-
*/class
|
|
4821
|
+
*/class zv extends nd(re){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return ie`
|
|
4822
4822
|
<style>
|
|
4823
4823
|
:host {
|
|
4824
4824
|
display: block;
|
|
@@ -4845,11 +4845,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4845
4845
|
<div id="selector">
|
|
4846
4846
|
<slot></slot>
|
|
4847
4847
|
</div>
|
|
4848
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof gt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}X(
|
|
4848
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof gt||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}X(zv);/**
|
|
4849
4849
|
* @license
|
|
4850
4850
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4851
4851
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4852
|
-
*/class
|
|
4852
|
+
*/class Fv extends ld(hd(ae(re))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return ie`
|
|
4853
4853
|
<style>
|
|
4854
4854
|
:host([opened]) {
|
|
4855
4855
|
pointer-events: auto;
|
|
@@ -4867,15 +4867,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4867
4867
|
no-vertical-overlap
|
|
4868
4868
|
restore-focus-node="[[inputElement]]"
|
|
4869
4869
|
></vaadin-multi-select-combo-box-overlay>
|
|
4870
|
-
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof gt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}X(
|
|
4870
|
+
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof gt||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}X(Fv);/**
|
|
4871
4871
|
* @license
|
|
4872
4872
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4873
4873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4874
|
-
*/const
|
|
4874
|
+
*/const cr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Hv=fe(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),cr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,cr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),cr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&cr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
|
|
4875
4875
|
* @license
|
|
4876
4876
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4877
4877
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4878
|
-
*/const
|
|
4878
|
+
*/const Rv=I`
|
|
4879
4879
|
:host {
|
|
4880
4880
|
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
4881
4881
|
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
@@ -4913,7 +4913,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4913
4913
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
4914
4914
|
width: auto;
|
|
4915
4915
|
}
|
|
4916
|
-
`;B("vaadin-multi-select-combo-box",[
|
|
4916
|
+
`;B("vaadin-multi-select-combo-box",[Qr,Rv],{moduleId:"vaadin-multi-select-combo-box-styles"});class $v extends Hv(Jr(ae(Ze(re)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return ie`
|
|
4917
4917
|
<div class="vaadin-multi-select-combo-box-container">
|
|
4918
4918
|
<div part="label">
|
|
4919
4919
|
<slot name="label"></slot>
|
|
@@ -4989,7 +4989,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4989
4989
|
color: transparent !important;
|
|
4990
4990
|
forced-color-adjust: none;
|
|
4991
4991
|
}
|
|
4992
|
-
`]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new
|
|
4992
|
+
`]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Yi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Xi(this.inputElement,this._labelController)),this._tooltipController=new bt(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Ke(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),io(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),br(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const o=t?"selected":"deselected",n=this.i18n.total.replace("{count}",r||0);br(`${e} ${this.i18n[o]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let n=!1;if(r!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),n=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,n,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(s=>{s.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const s=[];for(let h=e.length-1,d=null;h>=0;h--){const c=this.__createChip(e[h]);this.insertBefore(c,d),d=c,s.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;s.length>1;){s.pop().remove(),a.unshift(e.pop());const h=a.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=h)break}s.length===1&&(s[0].style.maxWidth=`${Math.max(n,o)}px`)}this._overflowItems=a;return}for(let s=e.length-1,a=null;s>=0;s--){const l=this.__createChip(e[s]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(n,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const n=t.length;e.label=`${n}`,e.setAttribute("count",`${n}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",n===0),e.disabled=r,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((o,n)=>{o.toggleAttribute("focused",n===e)}),e>-1){const o=r[e].item,n=this._getItemLabel(o);br(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}X($v);B("vaadin-notification-card",I`
|
|
4993
4993
|
:host {
|
|
4994
4994
|
position: relative;
|
|
4995
4995
|
margin: var(--lumo-space-s);
|
|
@@ -5207,11 +5207,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5207
5207
|
* @license
|
|
5208
5208
|
* Copyright 2020 Google LLC
|
|
5209
5209
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5210
|
-
*/const
|
|
5210
|
+
*/const Vv=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
|
|
5211
5211
|
* @license
|
|
5212
5212
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5213
5213
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5214
|
-
*/class Uv extends
|
|
5214
|
+
*/class Uv extends Fh(ae(Ze(re))){static get template(){return ie`
|
|
5215
5215
|
<style>
|
|
5216
5216
|
:host {
|
|
5217
5217
|
position: fixed;
|
|
@@ -5278,7 +5278,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5278
5278
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
5279
5279
|
</div>
|
|
5280
5280
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
5281
|
-
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),
|
|
5281
|
+
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Zn&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Wv extends ae(re){static get template(){return ie`
|
|
5282
5282
|
<style>
|
|
5283
5283
|
:host {
|
|
5284
5284
|
display: block;
|
|
@@ -5300,14 +5300,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5300
5300
|
<slot></slot>
|
|
5301
5301
|
</div>
|
|
5302
5302
|
</div>
|
|
5303
|
-
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class
|
|
5303
|
+
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class tt extends eo(Ll(Ze(re))){static get template(){return ie`
|
|
5304
5304
|
<style>
|
|
5305
5305
|
:host {
|
|
5306
5306
|
display: none !important;
|
|
5307
5307
|
}
|
|
5308
5308
|
</style>
|
|
5309
5309
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
5310
|
-
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return
|
|
5310
|
+
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Vv(e)?tt._createAndShowNotification(r=>{Bl(e,r)},t):tt._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(tt.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return tt._container||(tt._container=document.createElement("vaadin-notification-container"),document.body.appendChild(tt._container)),tt._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),io(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}X(Uv);X(Wv);X(tt);const dd=I`
|
|
5311
5311
|
:host {
|
|
5312
5312
|
-webkit-tap-highlight-color: transparent;
|
|
5313
5313
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -5321,11 +5321,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5321
5321
|
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
5322
5322
|
background-color: var(--lumo-contrast-10pct);
|
|
5323
5323
|
}
|
|
5324
|
-
`;B("vaadin-list-box",
|
|
5324
|
+
`;B("vaadin-list-box",dd,{moduleId:"lumo-list-box"});/**
|
|
5325
5325
|
* @license
|
|
5326
5326
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5327
5327
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5328
|
-
*/B("vaadin-select-item",
|
|
5328
|
+
*/B("vaadin-select-item",to,{moduleId:"lumo-select-item"});B("vaadin-select-list-box",dd,{moduleId:"lumo-select-list-box"});const jv=I`
|
|
5329
5329
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
5330
5330
|
text-align: start;
|
|
5331
5331
|
}
|
|
@@ -5368,7 +5368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5368
5368
|
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
5369
5369
|
--_lumo-selected-item-padding: 0;
|
|
5370
5370
|
}
|
|
5371
|
-
`;B("vaadin-select",[Mt,
|
|
5371
|
+
`;B("vaadin-select",[Mt,jv],{moduleId:"lumo-select"});B("vaadin-select-value-button",I`
|
|
5372
5372
|
:host {
|
|
5373
5373
|
font-family: var(--lumo-font-family);
|
|
5374
5374
|
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
@@ -5387,7 +5387,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5387
5387
|
::slotted(*:hover) {
|
|
5388
5388
|
background-color: transparent;
|
|
5389
5389
|
}
|
|
5390
|
-
`,{moduleId:"lumo-select-value-button"});const
|
|
5390
|
+
`,{moduleId:"lumo-select-value-button"});const Gv=I`
|
|
5391
5391
|
:host {
|
|
5392
5392
|
--_lumo-item-selected-icon-display: block;
|
|
5393
5393
|
}
|
|
@@ -5423,15 +5423,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5423
5423
|
:host([theme~='align-center']) {
|
|
5424
5424
|
text-align: center;
|
|
5425
5425
|
}
|
|
5426
|
-
`;B("vaadin-select-overlay",[
|
|
5426
|
+
`;B("vaadin-select-overlay",[Xn,Gv],{moduleId:"lumo-select-overlay"});/**
|
|
5427
5427
|
* @license
|
|
5428
5428
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5429
5429
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5430
|
-
*/const
|
|
5430
|
+
*/const qv=i=>class extends Rn(Ot(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
|
|
5431
5431
|
* @license
|
|
5432
5432
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5433
5433
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5434
|
-
*/class
|
|
5434
|
+
*/class Yv extends qv(ae(We(re))){static get is(){return"vaadin-select-item"}static get template(){return ie`
|
|
5435
5435
|
<style>
|
|
5436
5436
|
:host {
|
|
5437
5437
|
display: inline-block;
|
|
@@ -5445,23 +5445,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5445
5445
|
<div part="content">
|
|
5446
5446
|
<slot></slot>
|
|
5447
5447
|
</div>
|
|
5448
|
-
`}ready(){super.ready(),this.setAttribute("role","option")}}X(
|
|
5448
|
+
`}ready(){super.ready(),this.setAttribute("role","option")}}X(Yv);/**
|
|
5449
5449
|
* @license
|
|
5450
5450
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
5451
5451
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5452
|
-
*/function
|
|
5452
|
+
*/function Xv(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function Kv(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
|
|
5453
5453
|
* @license
|
|
5454
5454
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
5455
5455
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5456
|
-
*/const
|
|
5456
|
+
*/const Zv=i=>class extends Dt(i){get focused(){return(this._getItems()||[]).find(Un)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!an(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],o=r.indexOf(this.focused);let n,s;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(s=-a,n=o-a):this.__isNextKey(t)?(s=a,n=o+a):t==="Home"?(s=1,n=0):t==="End"&&(s=-1,n=r.length-1),n=this._getAvailableIndex(r,n,s,l=>!an(l)),n>=0&&(e.preventDefault(),this._focus(n,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,o){const n=e.length;let s=t;for(let a=0;typeof s=="number"&&a<n;a+=1,s+=r||1){s<0?s=n-1:s>=n&&(s=0);const l=e[s];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return s}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
|
|
5457
5457
|
* @license
|
|
5458
5458
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5459
5459
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5460
|
-
*/const
|
|
5460
|
+
*/const Jv=i=>class extends Zv(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!an(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Nn(e,()=>{this._setItems(this._filterItems(gh(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const n=e[r];e.forEach(s=>{s.selected=s===n}),n&&!n.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=Fe.debounce(this._searchReset,ft.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(r,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||t).getBoundingClientRect(),s=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&n[r[1]]>=o[r[1]]||this._isRTL&&n[r[1]]<=o[r[1]]?a=n[r[1]]-o[r[1]]:(!this._isRTL&&s[r[0]]<=o[r[0]]||this._isRTL&&s[r[0]]>=o[r[0]])&&(a=s[r[0]]-o[r[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Xv(this._scrollerElement,t)+e;Kv(this._scrollerElement,t,r)}}};/**
|
|
5461
5461
|
* @license
|
|
5462
5462
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5463
5463
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5464
|
-
*/class
|
|
5464
|
+
*/class Qv extends Jv(ae(We(yt(re)))){static get is(){return"vaadin-select-list-box"}static get template(){return ie`
|
|
5465
5465
|
<style>
|
|
5466
5466
|
:host {
|
|
5467
5467
|
display: flex;
|
|
@@ -5481,15 +5481,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5481
5481
|
<div part="items">
|
|
5482
5482
|
<slot></slot>
|
|
5483
5483
|
</div>
|
|
5484
|
-
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}X(
|
|
5484
|
+
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}X(Qv);/**
|
|
5485
5485
|
* @license
|
|
5486
5486
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5487
5487
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5488
|
-
*/const
|
|
5488
|
+
*/const eg=i=>class extends Jn(Zr(We(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(r);o===""?this.style.removeProperty(r):this.style.setProperty(r,o)}}};/**
|
|
5489
5489
|
* @license
|
|
5490
5490
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5491
5491
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5492
|
-
*/const
|
|
5492
|
+
*/const tg=I`
|
|
5493
5493
|
:host {
|
|
5494
5494
|
align-items: flex-start;
|
|
5495
5495
|
justify-content: flex-start;
|
|
@@ -5504,18 +5504,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5504
5504
|
outline: 3px solid;
|
|
5505
5505
|
}
|
|
5506
5506
|
}
|
|
5507
|
-
`;B("vaadin-select-overlay",[
|
|
5507
|
+
`;B("vaadin-select-overlay",[Xr,tg],{moduleId:"vaadin-select-overlay-styles"});class ig extends eg(ae(re)){static get is(){return"vaadin-select-overlay"}static get template(){return ie`
|
|
5508
5508
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5509
5509
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5510
5510
|
<div part="content" id="content">
|
|
5511
5511
|
<slot></slot>
|
|
5512
5512
|
</div>
|
|
5513
5513
|
</div>
|
|
5514
|
-
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}X(
|
|
5514
|
+
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}X(ig);/**
|
|
5515
5515
|
* @license
|
|
5516
5516
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5517
5517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5518
|
-
*/const
|
|
5518
|
+
*/const rg=I`
|
|
5519
5519
|
:host {
|
|
5520
5520
|
display: inline-block;
|
|
5521
5521
|
position: relative;
|
|
@@ -5561,13 +5561,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5561
5561
|
* @license
|
|
5562
5562
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5563
5563
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5564
|
-
*/B("vaadin-select-value-button",
|
|
5564
|
+
*/B("vaadin-select-value-button",rg,{moduleId:"vaadin-select-value-button-styles"});class og extends Qn(ae(re)){static get is(){return"vaadin-select-value-button"}static get template(){return ie`
|
|
5565
5565
|
<div class="vaadin-button-container">
|
|
5566
5566
|
<span part="label">
|
|
5567
5567
|
<slot></slot>
|
|
5568
5568
|
</span>
|
|
5569
5569
|
</div>
|
|
5570
|
-
`}}X(
|
|
5570
|
+
`}}X(og);/**
|
|
5571
5571
|
* @license
|
|
5572
5572
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
5573
5573
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -5589,15 +5589,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5589
5589
|
* @license
|
|
5590
5590
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
5591
5591
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5592
|
-
*/class
|
|
5592
|
+
*/class sg extends Ke{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
|
|
5593
5593
|
* @license
|
|
5594
5594
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5595
5595
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5596
|
-
*/const
|
|
5596
|
+
*/const ag=i=>class extends eo(jr(Wn(Dt(Gr(i))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Ur()}`,this._srLabelController=new kh(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new sg(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new os(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new bt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,o=this._menuElement._searchKey(r,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};gr(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,n,s)=>o===void 0&&n.value===r?s:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(o=>{r.appendChild(this.__createItemElement(o))})}__dispatchChange(){return Cr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
|
|
5597
5597
|
* @license
|
|
5598
5598
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5599
5599
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5600
|
-
*/B("vaadin-select",[Xh,
|
|
5600
|
+
*/B("vaadin-select",[Yh,Xh,ng],{moduleId:"vaadin-select-styles"});class lg extends ag(Ze(ae(re))){static get is(){return"vaadin-select"}static get template(){return ie`
|
|
5601
5601
|
<style>
|
|
5602
5602
|
:host {
|
|
5603
5603
|
position: relative;
|
|
@@ -5650,4 +5650,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5650
5650
|
<div class="sr-only">
|
|
5651
5651
|
<slot name="sr-label"></slot>
|
|
5652
5652
|
</div>
|
|
5653
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),so(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}X(hg);function dg(i){yd(i,"svelte-1hvu8ov",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;justify-content:center;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{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);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{min-width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #FFFFFF);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #FFFFFF);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22B04E);border-right:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function Da(i,e,t){const r=i.slice();return r[86]=e[t],r}function Oa(i,e,t){const r=i.slice();return r[89]=e[t],r[91]=t,r}function Ma(i,e,t){const r=i.slice();return r[92]=e[t],r}function Na(i,e,t){const r=i.slice();return r[95]=e[t],r}function Ba(i,e,t){const r=i.slice();return r[92]=e[t],r}function La(i,e,t){const r=i.slice();return r[92]=e[t],r}function za(i,e,t){const r=i.slice();return r[102]=e[t],r[91]=t,r}function cg(i,e,t){const r=i.slice();return r[77]=e[t],r}function ug(i,e,t){const r=i.slice();return r[77]=e[t],r}function pg(i,e,t){const r=i.slice();return r[77]=e[t],r}function mg(i,e,t){const r=i.slice();return r[77]=e[t],r}function _g(i){let e,t,r,o,s,n,a,l,h,d,c,p,u,b=i[17]("headerTitle")+"",f,E,P,D,z=i[17]("headerTitle")+"",j,W,G,Q,O,se,N,L,ae=i[17]("dateFrom")+"",ue,T,y,x,w,v,S=i[17]("dateTo")+"",k,V,U,J,re,pe=i[17]("dateFilter")+"",Te,xe,ve,F,oe,me,Pe,we,st,He,Re,De,nt,Nt,wt,di,Qe,ci,ui,Bt,pi,at,lt,Lt,zt,Zi,Ft,qe,ht,mi,_i,Ji,dt,fi,Qi,Ct,Ht,_,H,$=be(i[13]),R=[];for(let A=0;A<$.length;A+=1)R[A]=Fa(za(i,$,A));let Oe=be(i[18][i[7]]),he=[];for(let A=0;A<Oe.length;A+=1)he[A]=Ha(La(i,Oe,A));function Ye(A,ee){return A[12]?vg:gg}let ct=Ye(i),$e=ct(i),ut=be(i[20]),Ce=[];for(let A=0;A<ut.length;A+=1)Ce[A]=Ua(Da(i,ut,A));return{c(){e=C("div"),t=C("div"),r=C("div"),o=C("button"),s=Me("svg"),n=Me("defs"),a=Me("style"),l=Se(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=Me("g"),d=Me("g"),c=Me("path"),p=Z(),u=C("h2"),f=Se(b),E=Z(),P=C("div"),D=C("p"),j=Se(z),W=Z(),G=C("div");for(let A=0;A<R.length;A+=1)R[A].c();Q=Z(),O=C("div"),se=C("div"),N=C("div"),L=C("label"),ue=Se(ae),T=Z(),y=C("vaadin-date-picker"),x=Z(),w=C("div"),v=C("label"),k=Se(S),V=Z(),U=C("vaadin-date-picker"),J=Z(),re=C("button"),Te=Se(pe),ve=Z(),F=C("table"),oe=C("div"),me=C("thead");for(let A=0;A<he.length;A+=1)he[A].c();Pe=Z(),we=C("tbody"),$e.c(),st=Z(),He=C("div"),Re=C("div"),De=C("button"),nt=Me("svg"),Nt=Me("path"),di=Z(),Qe=C("div"),ci=C("p"),ui=Se(i[9]),pi=Z(),at=C("button"),lt=Me("svg"),Lt=Me("path"),Zi=Z(),Ft=C("div"),qe=C("button"),ht=C("div"),mi=C("p"),_i=Se(i[8]),Ji=Z(),dt=Me("svg"),fi=Me("path"),Qi=Z(),Ct=C("div");for(let A=0;A<Ce.length;A+=1)Ce[A].c();g(c,"class","aaa"),g(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),g(c,"transform","translate(15 15) rotate(180)"),g(d,"transform","translate(20 158)"),g(h,"transform","translate(-20 -158)"),g(s,"xmlns","http://www.w3.org/2000/svg"),g(s,"width","15"),g(s,"height","15"),g(s,"viewBox","0 0 15 15"),g(u,"class","historyReturnText"),g(o,"class","historyReturnButton"),g(P,"class","headerText"),g(G,"class","headerController"),g(r,"class","historyHeader"),g(L,"for","historyCalendarStartDate"),We(y,"max",i[4]),We(y,"value",i[5]),We(y,"placeholder","From"),We(y,"class","VaadinDatePicker"),g(N,"class","historyCalendarStartDate"),g(v,"for","historyCalendarEndDate"),We(U,"max",i[4]),We(U,"value",i[6]),We(U,"placeholder","To"),We(U,"class","VaadinDatePicker"),g(w,"class","historyCalendarEndDate"),g(se,"class","historyCalendarContainer"),g(re,"class",xe="historyCalendarFilter "+(i[16].filterButton?"":"disable")),g(O,"class","historyFilter"),g(me,"class","tableHead"),g(we,"class","tableContent"),g(oe,"class","tableWrapper"),g(F,"class","historyTable"),g(Nt,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),g(nt,"viewBox","1 4 17 17"),g(nt,"xmlns","http://www.w3.org/2000/svg"),g(De,"class",wt="arrowLeft "+(i[16].previousPage?"":"disable")),g(Qe,"class",Bt="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),g(Lt,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),g(lt,"viewBox","6 4 17 17"),g(lt,"xmlns","http://www.w3.org/2000/svg"),g(at,"class",zt="arrowRight "+(i[16].nextPage?"":"disable")),g(Re,"class","historyPageIndex"),g(fi,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),g(dt,"xmlns","http://www.w3.org/2000/svg"),g(dt,"viewBox","6 5 20 20"),g(dt,"class","icon"),g(ht,"class","currentPageSize"),g(Ct,"class","pageSizeDropDown"),g(qe,"class",Ht="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),g(Ft,"class","historyPageSize"),g(He,"class","historyPaginationContainer"),g(t,"class","historyWrapper"),g(e,"class","historyContainer")},m(A,ee){ce(A,e,ee),m(e,t),m(t,r),m(r,o),m(o,s),m(s,n),m(n,a),m(a,l),m(s,h),m(h,d),m(d,c),m(o,p),m(o,u),m(u,f),m(r,E),m(r,P),m(P,D),m(D,j),m(r,W),m(r,G);for(let M=0;M<R.length;M+=1)R[M]&&R[M].m(G,null);m(t,Q),m(t,O),m(O,se),m(se,N),m(N,L),m(L,ue),m(N,T),m(N,y),i[45](y),m(se,x),m(se,w),m(w,v),m(v,k),m(w,V),m(w,U),i[46](U),m(O,J),m(O,re),m(re,Te),m(t,ve),m(t,F),m(F,oe),m(oe,me);for(let M=0;M<he.length;M+=1)he[M]&&he[M].m(me,null);m(oe,Pe),m(oe,we),$e.m(we,null),m(t,st),m(t,He),m(He,Re),m(Re,De),m(De,nt),m(nt,Nt),m(Re,di),m(Re,Qe),m(Qe,ci),m(ci,ui),m(Re,pi),m(Re,at),m(at,lt),m(lt,Lt),m(He,Zi),m(He,Ft),m(Ft,qe),m(qe,ht),m(ht,mi),m(mi,_i),m(ht,Ji),m(ht,dt),m(dt,fi),m(qe,Qi),m(qe,Ct);for(let M=0;M<Ce.length;M+=1)Ce[M]&&Ce[M].m(Ct,null);_||(H=[pt(o,"click",i[43]),pt(re,"click",i[47]),pt(De,"click",i[49]),pt(at,"click",i[50]),pt(qe,"click",i[52])],_=!0)},p(A,ee){if(ee[0]&131072&&b!==(b=A[17]("headerTitle")+"")&&Be(f,b),ee[0]&131072&&z!==(z=A[17]("headerTitle")+"")&&Be(j,z),ee[0]&2236416){$=be(A[13]);let M;for(M=0;M<$.length;M+=1){const Le=za(A,$,M);R[M]?R[M].p(Le,ee):(R[M]=Fa(Le),R[M].c(),R[M].m(G,null))}for(;M<R.length;M+=1)R[M].d(1);R.length=$.length}if(ee[0]&131072&&ae!==(ae=A[17]("dateFrom")+"")&&Be(ue,ae),ee[0]&16&&We(y,"max",A[4]),ee[0]&32&&We(y,"value",A[5]),ee[0]&131072&&S!==(S=A[17]("dateTo")+"")&&Be(k,S),ee[0]&16&&We(U,"max",A[4]),ee[0]&64&&We(U,"value",A[6]),ee[0]&131072&&pe!==(pe=A[17]("dateFilter")+"")&&Be(Te,pe),ee[0]&65536&&xe!==(xe="historyCalendarFilter "+(A[16].filterButton?"":"disable"))&&g(re,"class",xe),ee[0]&393344){Oe=be(A[18][A[7]]);let M;for(M=0;M<Oe.length;M+=1){const Le=La(A,Oe,M);he[M]?he[M].p(Le,ee):(he[M]=Ha(Le),he[M].c(),he[M].m(me,null))}for(;M<he.length;M+=1)he[M].d(1);he.length=Oe.length}if(ct===(ct=Ye(A))&&$e?$e.p(A,ee):($e.d(1),$e=ct(A),$e&&($e.c(),$e.m(we,null))),ee[0]&65536&&wt!==(wt="arrowLeft "+(A[16].previousPage?"":"disable"))&&g(De,"class",wt),ee[0]&512&&Be(ui,A[9]),ee[0]&65536&&Bt!==(Bt="indexDisplay "+(!A[16].previousPage&&!A[16].nextPage?"disable":""))&&g(Qe,"class",Bt),ee[0]&65536&&zt!==(zt="arrowRight "+(A[16].nextPage?"":"disable"))&&g(at,"class",zt),ee[0]&256&&Be(_i,A[8]),ee[0]&17825792){ut=be(A[20]);let M;for(M=0;M<ut.length;M+=1){const Le=Da(A,ut,M);Ce[M]?Ce[M].p(Le,ee):(Ce[M]=Ua(Le),Ce[M].c(),Ce[M].m(Ct,null))}for(;M<Ce.length;M+=1)Ce[M].d(1);Ce.length=ut.length}ee[0]&67584&&Ht!==(Ht="pageSizeSelector "+(A[11]?"active":"")+" "+(A[16].pageSize?"":"disable"))&&g(qe,"class",Ht)},d(A){A&&le(e),Ge(R,A),i[45](null),i[46](null),Ge(he,A),$e.d(),Ge(Ce,A),_=!1,oi(H)}}}function fg(i){let e,t,r,o,s,n,a,l,h,d,c,p,u,b,f,E,P,D=be({length:3}),z=[];for(let O=0;O<D.length;O+=1)z[O]=Ag(mg(i,D,O));let j=be({length:6}),W=[];for(let O=0;O<j.length;O+=1)W[O]=Pg(pg(i,j,O));let G=be({length:5}),Q=[];for(let O=0;O<G.length;O+=1)Q[O]=kg(cg(i,G,O));return{c(){e=C("div"),t=C("div"),r=C("div"),o=C("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',s=Z(),n=C("div"),n.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=Z(),l=C("div");for(let O=0;O<z.length;O+=1)z[O].c();h=Z(),d=C("div"),d.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',c=Z(),p=C("table"),u=C("thead");for(let O=0;O<W.length;O+=1)W[O].c();b=Z(),f=C("tbody");for(let O=0;O<Q.length;O+=1)Q[O].c();E=Z(),P=C("div"),P.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',g(o,"class","historyReturnButton skeleton"),g(n,"class","headerText skeleton"),g(l,"class","headerController skeleton"),g(r,"class","historyHeader"),g(d,"class","historyFilter skeleton"),g(u,"class","tableHead"),g(f,"class","tableContent"),g(p,"class","historyTable skeleton"),g(P,"class","historyPaginationContainer skeleton"),g(t,"class","historyWrapper"),g(e,"class","historyContainer")},m(O,se){ce(O,e,se),m(e,t),m(t,r),m(r,o),m(r,s),m(r,n),m(r,a),m(r,l);for(let N=0;N<z.length;N+=1)z[N]&&z[N].m(l,null);m(t,h),m(t,d),m(t,c),m(t,p),m(p,u);for(let N=0;N<W.length;N+=1)W[N]&&W[N].m(u,null);m(p,b),m(p,f);for(let N=0;N<Q.length;N+=1)Q[N]&&Q[N].m(f,null);m(t,E),m(t,P)},p:ge,d(O){O&&le(e),Ge(z,O),Ge(W,O),Ge(Q,O)}}}function Fa(i){let e,t,r,o,s=i[17](i[102].type)+"",n,a,l,h,d;function c(){return i[44](i[91])}return{c(){e=C("button"),t=C("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=Z(),o=C("p"),n=Se(s),a=Z(),g(t,"class","toggleCheckbox"),g(o,"class","label"),g(e,"class",l="toggleContent "+(i[102].checked?"checked":""))},m(p,u){ce(p,e,u),m(e,t),m(e,r),m(e,o),m(o,n),m(e,a),h||(d=pt(e,"click",c),h=!0)},p(p,u){i=p,u[0]&139264&&s!==(s=i[17](i[102].type)+"")&&Be(n,s),u[0]&8192&&l!==(l="toggleContent "+(i[102].checked?"checked":""))&&g(e,"class",l)},d(p){p&&le(e),h=!1,d()}}}function Ha(i){let e,t=(i[17](i[92])||i[92])+"",r,o;return{c(){e=C("span"),r=Se(t),o=Z()},m(s,n){ce(s,e,n),m(e,r),m(e,o)},p(s,n){n[0]&131200&&t!==(t=(s[17](s[92])||s[92])+"")&&Be(r,t)},d(s){s&&le(e)}}}function vg(i){let e,t;return{c(){e=C("div"),t=Se(i[3]),g(e,"class","tableRow")},m(r,o){ce(r,e,o),m(e,t)},p(r,o){o[0]&8&&Be(t,r[3])},d(r){r&&le(e)}}}function gg(i){let e,t=be(i[14][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Wa(Oa(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=xs()},m(o,s){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(o,s);ce(o,e,s)},p(o,s){if(s[0]&67682432){t=be(o[14][o[7]]);let n;for(n=0;n<t.length;n+=1){const a=Oa(o,t,n);r[n]?r[n].p(a,s):(r[n]=Wa(a),r[n].c(),r[n].m(e.parentNode,e))}for(;n<r.length;n+=1)r[n].d(1);r.length=t.length}},d(o){o&&le(e),Ge(r,o)}}}function bg(i){let e,t=(i[89][i[92]]||"-")+"",r;return{c(){e=C("span"),r=Se(t)},m(o,s){ce(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[89][o[92]]||"-")+"")&&Be(r,t)},d(o){o&&le(e)}}}function yg(i){let e,t=(i[89][i[92]].submenu[0]||"-")+"",r;return{c(){e=C("span"),r=Se(t)},m(o,s){ce(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[89][o[92]].submenu[0]||"-")+"")&&Be(r,t)},d(o){o&&le(e)}}}function xg(i){let e,t,r,o,s,n,a=i[89][i[92]].label+"",l,h,d,c;function p(){return i[48](i[91])}return{c(){e=C("button"),t=Me("svg"),r=Me("path"),s=Z(),n=C("span"),l=Se(a),h=Z(),g(r,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),g(t,"xmlns","http://www.w3.org/2000/svg"),g(t,"viewBox","6 5 20 20"),g(t,"class",o="iconToggleSubMenu "+(i[15][i[91]]?"active":"")),g(e,"class","toggleSubMenu")},m(u,b){ce(u,e,b),m(e,t),m(t,r),m(e,s),m(e,n),m(n,l),m(e,h),d||(c=pt(e,"click",p),d=!0)},p(u,b){i=u,b[0]&32768&&o!==(o="iconToggleSubMenu "+(i[15][i[91]]?"active":""))&&g(t,"class",o),b[0]&16512&&a!==(a=i[89][i[92]].label+"")&&Be(l,a)},d(u){u&&le(e),d=!1,c()}}}function wg(i){let e;return{c(){e=C("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',g(e,"class","decline")},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function Cg(i){let e;return{c(){e=C("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',g(e,"class","approved")},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function Ra(i){let e;function t(s,n){var a,l,h;return s[89][s[92]]===!0?Cg:s[89][s[92]]===!1?wg:(a=s[89][s[92]])!=null&&a.label&&((l=s[89][s[92]])==null?void 0:l.submenu.length)>1?xg:(h=s[89][s[92]])!=null&&h.submenu?yg:bg}let r=t(i),o=r(i);return{c(){o.c(),e=xs()},m(s,n){o.m(s,n),ce(s,e,n)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&le(e),o.d(s)}}}function Eg(i){let e;return{c(){e=C("div"),e.innerHTML='<span class="label">-</span> ',g(e,"class","tableData")},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function Sg(i){let e,t,r=be(i[89][i[92]].submenu),o=[];for(let s=0;s<r.length;s+=1)o[s]=$a(Na(i,r,s));return{c(){e=C("div");for(let s=0;s<o.length;s+=1)o[s].c();t=Z(),g(e,"class","tableData")},m(s,n){ce(s,e,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,t)},p(s,n){if(n[0]&540800){r=be(s[89][s[92]].submenu);let a;for(a=0;a<r.length;a+=1){const l=Na(s,r,a);o[a]?o[a].p(l,n):(o[a]=$a(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(s){s&&le(e),Ge(o,s)}}}function $a(i){let e,t=(i[95]||"-")+"",r;return{c(){e=C("span"),r=Se(t),g(e,"class","label")},m(o,s){ce(o,e,s),m(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[95]||"-")+"")&&Be(r,t)},d(o){o&&le(e)}}}function Va(i){let e;function t(s,n){var a;return(a=s[89][s[92]])!=null&&a.submenu?Sg:Eg}let r=t(i),o=r(i);return{c(){o.c(),e=xs()},m(s,n){o.m(s,n),ce(s,e,n)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&le(e),o.d(s)}}}function Wa(i){let e,t,r,o,s,n,a=be(i[19][i[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Ra(Ba(i,a,c));let h=be(i[19][i[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=Va(Ma(i,h,c));return{c(){e=C("div"),t=C("div");for(let c=0;c<l.length;c+=1)l[c].c();r=Z(),o=C("div");for(let c=0;c<d.length;c+=1)d[c].c();n=Z(),g(t,"class","tableData"),g(o,"class",s="tableSubMenu "+(i[15][i[91]]?"active":"")),g(e,"class","tableRow")},m(c,p){ce(c,e,p),m(e,t);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);m(e,r),m(e,o);for(let u=0;u<d.length;u+=1)d[u]&&d[u].m(o,null);m(e,n)},p(c,p){if(p[0]&67682432){a=be(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const b=Ba(c,a,u);l[u]?l[u].p(b,p):(l[u]=Ra(b),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=be(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const b=Ma(c,h,u);d[u]?d[u].p(b,p):(d[u]=Va(b),d[u].c(),d[u].m(o,null))}for(;u<d.length;u+=1)d[u].d(1);d.length=h.length}p[0]&32768&&s!==(s="tableSubMenu "+(c[15][c[91]]?"active":""))&&g(o,"class",s)},d(c){c&&le(e),Ge(l,c),Ge(d,c)}}}function Ua(i){let e,t,r,o,s;function n(){return i[51](i[86])}return{c(){e=C("button"),t=C("p"),t.textContent=`${i[86]}`,r=Z(),g(e,"class","dropDownRow")},m(a,l){ce(a,e,l),m(e,t),m(e,r),o||(s=pt(e,"click",n),o=!0)},p(a,l){i=a},d(a){a&&le(e),o=!1,s()}}}function Ag(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',g(e,"class","toggleContent")},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function Pg(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function Ig(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){ce(t,e,r)},p:ge,d(t){t&&le(e)}}}function kg(i){let e,t,r,o=be({length:6}),s=[];for(let n=0;n<o.length;n+=1)s[n]=Ig(ug(i,o,n));return{c(){e=C("div"),t=C("div");for(let n=0;n<s.length;n+=1)s[n].c();r=Z(),g(t,"class","tableData"),g(e,"class","tableRow")},m(n,a){ce(n,e,a),m(e,t);for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(t,null);m(e,r)},p:ge,d(n){n&&le(e),Ge(s,n)}}}function Tg(i){let e;function t(s,n){return s[10]?fg:_g}let r=t(i),o=r(i);return{c(){e=C("div"),o.c()},m(s,n){ce(s,e,n),o.m(e,null),i[53](e)},p(s,n){r===(r=t(s))&&o?o.p(s,n):(o.d(1),o=r(s),o&&(o.c(),o.m(e,null)))},i:ge,o:ge,d(s){s&&le(e),o.d(),i[53](null)}}}function Dg(i,e,t){let r;bd(i,Wu,_=>t(17,r=_)),or.extend(Yu);let{endpoint:o=""}=e,{playerid:s=""}=e,{session:n=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:p="Casino, Sports, Payments"}=e,{pagesizeoptions:u="10, 20, 30, 50, 100"}=e,{playercurrency:b=""}=e,{defaultpagesize:f="5"}=e,{formatamount:E="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:P}=e,{dateformat:D="DD/MM/YYYY"}=e,z=D.toUpperCase(),j=window.navigator.userAgent,W="",G="",Q="",O="",se="",N="",L="",ae=Number(f),ue=1,T=Uu(j)!=="PC",y=!0,x=!1,w=!1,v,S,k;const V=[],U={EUR:"€",RON:" lei",USD:"$"},J={payments:[],casino:[],sports:[]},re={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},pe={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},Te=["stake","won","winnings","bet_Part.price","paymentAmount"],xe=["bet_Part.price"],ve={},F={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},oe=u.split(", ");let me={},Pe=new Date,we=new Date(Pe);we.setMonth(Pe.getMonth()-1),Q=Pe.toISOString().split("T")[0],N=Q,O=we.toISOString().split("T")[0],se=O;const st=()=>{fetch(d).then(H=>H.json()).then(H=>{Object.keys(H).forEach($=>{Dn($,H[$])})}).catch(H=>{console.log(H)})};Object.keys(On).forEach(_=>{Dn(_,On[_])});const He=()=>{p.split(", ").forEach((_,H)=>{const $={type:_,checked:H===0};$.checked&&t(7,L=$.type.toLocaleLowerCase()),V.push($)})},Re=_=>{V.forEach((H,$)=>{t(13,V[$].checked=_===$,V),V[$].checked&&t(7,L=H.type.toLocaleLowerCase())}),De()},De=()=>{if(!F.filterButton)return;t(10,y=!0),t(12,w=!1),t(16,F.filterButton=!1,F),t(16,F.nextPage=!1,F),t(16,F.previousPage=!1,F),t(16,F.pageSize=!1,F);let _=new URL(`${o}/v1/player/${s}/fsb/transactions/${L}`);_.searchParams.append("offset",(ue-1).toString()||"0"),_.searchParams.append("limit",ae.toString()||"5"),_.searchParams.append("startDate",se),_.searchParams.append("endDate",N);let H={method:"GET",headers:{"X-SessionId":n,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,H).then($=>zt($)).then($=>{if($.transactions.length===0)return t(3,G=r("checkPeriod")),Promise.reject(G);$.pagination.next&&t(16,F.nextPage=!0,F),$.pagination.previous&&t(16,F.previousPage=!0,F),t(16,F.pageSize=!0,F),t(14,J[L]=[],J),t(11,x=!1),at(),ci($)}).catch($=>{t(12,w=!0),t(16,F.nextPage=!1,F),t(16,F.previousPage=!1,F),t(16,F.pageSize=!1,F),window.postMessage({type:"WidgetNotification",data:{type:"error",message:$}},window.location.href)}).finally(()=>{t(10,y=!1),t(16,F.filterButton=!0,F)})},nt=_=>{t(5,se=_.target.value)},Nt=_=>{t(6,N=_.target.value)},wt=()=>{F.pageSize&&t(11,x=!x)},di=_=>{t(8,ae=_),t(9,ue=1),De()},Qe=(_,H)=>{if(H==="next"){if(!F.nextPage)return;t(9,ue=_+1),De()}else{if(!F.previousPage)return;t(9,ue=_-1),De()}},ci=_=>{_.transactions.forEach((H,$)=>{t(14,J[L][$]={},J),pe[L].forEach(R=>{if(E&&b&&Te.includes(R))if(R.includes(".")){let Oe=R.split(".");H[Oe[0]].forEach(he=>{he[Oe[1]]=pi(he,Oe[1])})}else H[R]=pi(H,R);if(new Date(H[R]).getTime()&&typeof H[R]!="number"&&Bt(H,R),R.includes(".")){let Oe=R.split(".")[0],he=R.split(".")[1];H[R]={label:"Multiple",submenu:[]},H[Oe].forEach(Ye=>{Ye[he]&&H[R].submenu.push(Ye[he])})}if(R in H)return t(14,J[L][$][R]=H[R],J)})})},ui=()=>{if(!P)return;let _={};P.split(",").forEach(H=>{let $=H.split(":");_[$[0].trim()]=$[1].trim()}),Object.entries(_).forEach(([H,$])=>U[H]=$)},Bt=(_,H)=>{_[H]=or(_[H]).format(z)},pi=(_,H)=>{let $=xe.some(Le=>Le.includes(H)),R=typeof _[H]=="string"?parseInt(_[H]):_[H],Oe=Object.keys(_).find(Le=>Le.includes("currency")||Le.includes("Currency")),he=_[Oe]||b,Ye=E;const ct=Ye.match(/\{(\d+)decimals\}/),$e=ct?parseInt(ct[1],10):2,ut=ct?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";R=R.toFixed($e);const[Ce,A]=E.includes(".")?[",","."]:[".",","];let[ee,M]=R.split(".");return ee=ee.replace(/\B(?=(\d{3})+(?!\d))/g,Ce),R=`${ee}${A}${M}`,Ye=Ye.replace("{currency}",$?"":U[he]||he).replace("{amount}",R.split(A)[0]).replace(ut,R.split(A)[1]),Ye},at=()=>{Object.keys(ve).forEach(_=>t(15,ve[_]=!1,ve))},lt=_=>t(15,ve[_]=!ve[_],ve),Lt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:T},window.location.href)},zt=_=>ao(this,null,function*(){return _.status>=300?(me=yield _.json(),W=me.thirdPartyResponse.errorCode,t(3,G=r(W)||r("generalError")),Promise.reject(G)):_.json()}),Zi=()=>{v.addEventListener("change",nt,!1),S.addEventListener("change",Nt,!1);const _=$=>or(new Date($.year,$.month,$.day)).format(z),H=$=>{const R=or($,z);return{year:R.year(),month:R.month(),day:R.date()}};t(0,v.i18n=tr(er({},v.i18n),{formatDate:_,parseDate:H}),v),t(1,S.i18n=tr(er({},v.i18n),{formatDate:_,parseDate:H}),S)};Ad(()=>()=>{v&&v.removeEventListener("change",nt),S&&S.removeEventListener("change",Nt)});const Ft=()=>Lt(),qe=_=>Re(_);function ht(_){Pi[_?"unshift":"push"](()=>{v=_,t(0,v)})}function mi(_){Pi[_?"unshift":"push"](()=>{S=_,t(1,S)})}const _i=()=>De(),Ji=_=>lt(_),dt=()=>Qe(ue,"previous"),fi=()=>Qe(ue,"next"),Qi=_=>di(_),Ct=()=>wt();function Ht(_){Pi[_?"unshift":"push"](()=>{k=_,t(2,k)})}return i.$$set=_=>{"endpoint"in _&&t(28,o=_.endpoint),"playerid"in _&&t(29,s=_.playerid),"session"in _&&t(30,n=_.session),"lang"in _&&t(31,a=_.lang),"clientstyling"in _&&t(32,l=_.clientstyling),"clientstylingurl"in _&&t(33,h=_.clientstylingurl),"translationurl"in _&&t(34,d=_.translationurl),"mbsource"in _&&t(35,c=_.mbsource),"historytypes"in _&&t(36,p=_.historytypes),"pagesizeoptions"in _&&t(37,u=_.pagesizeoptions),"playercurrency"in _&&t(38,b=_.playercurrency),"defaultpagesize"in _&&t(39,f=_.defaultpagesize),"formatamount"in _&&t(40,E=_.formatamount),"customcurrencysymbols"in _&&t(41,P=_.customcurrencysymbols),"dateformat"in _&&t(42,D=_.dateformat)},i.$$.update=()=>{i.$$.dirty[1]&1&&a&&ju(a),i.$$.dirty[1]&32&&p&&He(),i.$$.dirty[0]&1879048192&&o&&s&&n&&De(),i.$$.dirty[1]&1024&&P&&ui(),i.$$.dirty[0]&3&&v&&S&&Zi(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&l&&k&&Rd(k,l),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&k&&$d(k,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&c&&k&&Vd(k,`${c}.Style`),i.$$.dirty[1]&8&&d&&st()},[v,S,k,G,Q,se,N,L,ae,ue,y,x,w,V,J,ve,F,r,re,pe,oe,Re,De,wt,di,Qe,lt,Lt,o,s,n,a,l,h,d,c,p,u,b,f,E,P,D,Ft,qe,ht,mi,_i,Ji,dt,fi,Qi,Ct,Ht]}class ud extends Fd{constructor(e){super(),Ld(this,e,Dg,Tg,Ga,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41,dateformat:42},dg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),Ee()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),Ee()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),Ee()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),Ee()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),Ee()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),Ee()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),Ee()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),Ee()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),Ee()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),Ee()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),Ee()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),Ee()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),Ee()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),Ee()}get dateformat(){return this.$$.ctx[42]}set dateformat(e){this.$$set({dateformat:e}),Ee()}}zd(ud,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=ud;
|
|
5653
|
+
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),io(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}X(lg);function hg(i){bd(i,"svelte-1hvu8ov",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;justify-content:center;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{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);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{min-width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #FFFFFF);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #FFFFFF);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22B04E);border-right:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function Ta(i,e,t){const r=i.slice();return r[86]=e[t],r}function Da(i,e,t){const r=i.slice();return r[89]=e[t],r[91]=t,r}function Oa(i,e,t){const r=i.slice();return r[92]=e[t],r}function Ma(i,e,t){const r=i.slice();return r[95]=e[t],r}function Na(i,e,t){const r=i.slice();return r[92]=e[t],r}function Ba(i,e,t){const r=i.slice();return r[92]=e[t],r}function La(i,e,t){const r=i.slice();return r[102]=e[t],r[91]=t,r}function dg(i,e,t){const r=i.slice();return r[77]=e[t],r}function cg(i,e,t){const r=i.slice();return r[77]=e[t],r}function ug(i,e,t){const r=i.slice();return r[77]=e[t],r}function pg(i,e,t){const r=i.slice();return r[77]=e[t],r}function mg(i){let e,t,r,o,n,s,a,l,h,d,c,p,u,b=i[17]("headerTitle")+"",f,E,P,D,z=i[17]("headerTitle")+"",j,U,G,ee,O,se,N,L,le=i[17]("dateFrom")+"",pe,T,y,x,w,v,S=i[17]("dateTo")+"",k,V,W,Q,oe,me=i[17]("dateFilter")+"",Te,xe,ve,F,ne,_e,Pe,we,nt,He,Re,De,st,Nt,wt,ci,Je,ui,pi,Bt,mi,at,lt,Lt,zt,Ki,Ft,qe,ht,_i,fi,Zi,dt,vi,Ji,Ct,Ht,_,H,$=be(i[13]),R=[];for(let A=0;A<$.length;A+=1)R[A]=za(La(i,$,A));let Oe=be(i[18][i[7]]),de=[];for(let A=0;A<Oe.length;A+=1)de[A]=Fa(Ba(i,Oe,A));function Ye(A,te){return A[12]?fg:vg}let ct=Ye(i),$e=ct(i),ut=be(i[20]),Ce=[];for(let A=0;A<ut.length;A+=1)Ce[A]=Ua(Ta(i,ut,A));return{c(){e=C("div"),t=C("div"),r=C("div"),o=C("button"),n=Me("svg"),s=Me("defs"),a=Me("style"),l=Se(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=Me("g"),d=Me("g"),c=Me("path"),p=J(),u=C("h2"),f=Se(b),E=J(),P=C("div"),D=C("p"),j=Se(z),U=J(),G=C("div");for(let A=0;A<R.length;A+=1)R[A].c();ee=J(),O=C("div"),se=C("div"),N=C("div"),L=C("label"),pe=Se(le),T=J(),y=C("vaadin-date-picker"),x=J(),w=C("div"),v=C("label"),k=Se(S),V=J(),W=C("vaadin-date-picker"),Q=J(),oe=C("button"),Te=Se(me),ve=J(),F=C("table"),ne=C("div"),_e=C("thead");for(let A=0;A<de.length;A+=1)de[A].c();Pe=J(),we=C("tbody"),$e.c(),nt=J(),He=C("div"),Re=C("div"),De=C("button"),st=Me("svg"),Nt=Me("path"),ci=J(),Je=C("div"),ui=C("p"),pi=Se(i[9]),mi=J(),at=C("button"),lt=Me("svg"),Lt=Me("path"),Ki=J(),Ft=C("div"),qe=C("button"),ht=C("div"),_i=C("p"),fi=Se(i[8]),Zi=J(),dt=Me("svg"),vi=Me("path"),Ji=J(),Ct=C("div");for(let A=0;A<Ce.length;A+=1)Ce[A].c();g(c,"class","aaa"),g(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),g(c,"transform","translate(15 15) rotate(180)"),g(d,"transform","translate(20 158)"),g(h,"transform","translate(-20 -158)"),g(n,"xmlns","http://www.w3.org/2000/svg"),g(n,"width","15"),g(n,"height","15"),g(n,"viewBox","0 0 15 15"),g(u,"class","historyReturnText"),g(o,"class","historyReturnButton"),g(P,"class","headerText"),g(G,"class","headerController"),g(r,"class","historyHeader"),g(L,"for","historyCalendarStartDate"),Ue(y,"max",i[4]),Ue(y,"value",i[5]),Ue(y,"placeholder","From"),Ue(y,"class","VaadinDatePicker"),g(N,"class","historyCalendarStartDate"),g(v,"for","historyCalendarEndDate"),Ue(W,"max",i[4]),Ue(W,"value",i[6]),Ue(W,"placeholder","To"),Ue(W,"class","VaadinDatePicker"),g(w,"class","historyCalendarEndDate"),g(se,"class","historyCalendarContainer"),g(oe,"class",xe="historyCalendarFilter "+(i[16].filterButton?"":"disable")),g(O,"class","historyFilter"),g(_e,"class","tableHead"),g(we,"class","tableContent"),g(ne,"class","tableWrapper"),g(F,"class","historyTable"),g(Nt,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),g(st,"viewBox","1 4 17 17"),g(st,"xmlns","http://www.w3.org/2000/svg"),g(De,"class",wt="arrowLeft "+(i[16].previousPage?"":"disable")),g(Je,"class",Bt="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),g(Lt,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),g(lt,"viewBox","6 4 17 17"),g(lt,"xmlns","http://www.w3.org/2000/svg"),g(at,"class",zt="arrowRight "+(i[16].nextPage?"":"disable")),g(Re,"class","historyPageIndex"),g(vi,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),g(dt,"xmlns","http://www.w3.org/2000/svg"),g(dt,"viewBox","6 5 20 20"),g(dt,"class","icon"),g(ht,"class","currentPageSize"),g(Ct,"class","pageSizeDropDown"),g(qe,"class",Ht="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),g(Ft,"class","historyPageSize"),g(He,"class","historyPaginationContainer"),g(t,"class","historyWrapper"),g(e,"class","historyContainer")},m(A,te){ue(A,e,te),m(e,t),m(t,r),m(r,o),m(o,n),m(n,s),m(s,a),m(a,l),m(n,h),m(h,d),m(d,c),m(o,p),m(o,u),m(u,f),m(r,E),m(r,P),m(P,D),m(D,j),m(r,U),m(r,G);for(let M=0;M<R.length;M+=1)R[M]&&R[M].m(G,null);m(t,ee),m(t,O),m(O,se),m(se,N),m(N,L),m(L,pe),m(N,T),m(N,y),i[45](y),m(se,x),m(se,w),m(w,v),m(v,k),m(w,V),m(w,W),i[46](W),m(O,Q),m(O,oe),m(oe,Te),m(t,ve),m(t,F),m(F,ne),m(ne,_e);for(let M=0;M<de.length;M+=1)de[M]&&de[M].m(_e,null);m(ne,Pe),m(ne,we),$e.m(we,null),m(t,nt),m(t,He),m(He,Re),m(Re,De),m(De,st),m(st,Nt),m(Re,ci),m(Re,Je),m(Je,ui),m(ui,pi),m(Re,mi),m(Re,at),m(at,lt),m(lt,Lt),m(He,Ki),m(He,Ft),m(Ft,qe),m(qe,ht),m(ht,_i),m(_i,fi),m(ht,Zi),m(ht,dt),m(dt,vi),m(qe,Ji),m(qe,Ct);for(let M=0;M<Ce.length;M+=1)Ce[M]&&Ce[M].m(Ct,null);_||(H=[pt(o,"click",i[43]),pt(oe,"click",i[47]),pt(De,"click",i[49]),pt(at,"click",i[50]),pt(qe,"click",i[52])],_=!0)},p(A,te){if(te[0]&131072&&b!==(b=A[17]("headerTitle")+"")&&Be(f,b),te[0]&131072&&z!==(z=A[17]("headerTitle")+"")&&Be(j,z),te[0]&2236416){$=be(A[13]);let M;for(M=0;M<$.length;M+=1){const Le=La(A,$,M);R[M]?R[M].p(Le,te):(R[M]=za(Le),R[M].c(),R[M].m(G,null))}for(;M<R.length;M+=1)R[M].d(1);R.length=$.length}if(te[0]&131072&&le!==(le=A[17]("dateFrom")+"")&&Be(pe,le),te[0]&16&&Ue(y,"max",A[4]),te[0]&32&&Ue(y,"value",A[5]),te[0]&131072&&S!==(S=A[17]("dateTo")+"")&&Be(k,S),te[0]&16&&Ue(W,"max",A[4]),te[0]&64&&Ue(W,"value",A[6]),te[0]&131072&&me!==(me=A[17]("dateFilter")+"")&&Be(Te,me),te[0]&65536&&xe!==(xe="historyCalendarFilter "+(A[16].filterButton?"":"disable"))&&g(oe,"class",xe),te[0]&393344){Oe=be(A[18][A[7]]);let M;for(M=0;M<Oe.length;M+=1){const Le=Ba(A,Oe,M);de[M]?de[M].p(Le,te):(de[M]=Fa(Le),de[M].c(),de[M].m(_e,null))}for(;M<de.length;M+=1)de[M].d(1);de.length=Oe.length}if(ct===(ct=Ye(A))&&$e?$e.p(A,te):($e.d(1),$e=ct(A),$e&&($e.c(),$e.m(we,null))),te[0]&65536&&wt!==(wt="arrowLeft "+(A[16].previousPage?"":"disable"))&&g(De,"class",wt),te[0]&512&&Be(pi,A[9]),te[0]&65536&&Bt!==(Bt="indexDisplay "+(!A[16].previousPage&&!A[16].nextPage?"disable":""))&&g(Je,"class",Bt),te[0]&65536&&zt!==(zt="arrowRight "+(A[16].nextPage?"":"disable"))&&g(at,"class",zt),te[0]&256&&Be(fi,A[8]),te[0]&17825792){ut=be(A[20]);let M;for(M=0;M<ut.length;M+=1){const Le=Ta(A,ut,M);Ce[M]?Ce[M].p(Le,te):(Ce[M]=Ua(Le),Ce[M].c(),Ce[M].m(Ct,null))}for(;M<Ce.length;M+=1)Ce[M].d(1);Ce.length=ut.length}te[0]&67584&&Ht!==(Ht="pageSizeSelector "+(A[11]?"active":"")+" "+(A[16].pageSize?"":"disable"))&&g(qe,"class",Ht)},d(A){A&&he(e),Ge(R,A),i[45](null),i[46](null),Ge(de,A),$e.d(),Ge(Ce,A),_=!1,ni(H)}}}function _g(i){let e,t,r,o,n,s,a,l,h,d,c,p,u,b,f,E,P,D=be({length:3}),z=[];for(let O=0;O<D.length;O+=1)z[O]=Sg(pg(i,D,O));let j=be({length:6}),U=[];for(let O=0;O<j.length;O+=1)U[O]=Ag(ug(i,j,O));let G=be({length:5}),ee=[];for(let O=0;O<G.length;O+=1)ee[O]=Ig(dg(i,G,O));return{c(){e=C("div"),t=C("div"),r=C("div"),o=C("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',n=J(),s=C("div"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=J(),l=C("div");for(let O=0;O<z.length;O+=1)z[O].c();h=J(),d=C("div"),d.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',c=J(),p=C("table"),u=C("thead");for(let O=0;O<U.length;O+=1)U[O].c();b=J(),f=C("tbody");for(let O=0;O<ee.length;O+=1)ee[O].c();E=J(),P=C("div"),P.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',g(o,"class","historyReturnButton skeleton"),g(s,"class","headerText skeleton"),g(l,"class","headerController skeleton"),g(r,"class","historyHeader"),g(d,"class","historyFilter skeleton"),g(u,"class","tableHead"),g(f,"class","tableContent"),g(p,"class","historyTable skeleton"),g(P,"class","historyPaginationContainer skeleton"),g(t,"class","historyWrapper"),g(e,"class","historyContainer")},m(O,se){ue(O,e,se),m(e,t),m(t,r),m(r,o),m(r,n),m(r,s),m(r,a),m(r,l);for(let N=0;N<z.length;N+=1)z[N]&&z[N].m(l,null);m(t,h),m(t,d),m(t,c),m(t,p),m(p,u);for(let N=0;N<U.length;N+=1)U[N]&&U[N].m(u,null);m(p,b),m(p,f);for(let N=0;N<ee.length;N+=1)ee[N]&&ee[N].m(f,null);m(t,E),m(t,P)},p:ge,d(O){O&&he(e),Ge(z,O),Ge(U,O),Ge(ee,O)}}}function za(i){let e,t,r,o,n=i[17](i[102].type)+"",s,a,l,h,d;function c(){return i[44](i[91])}return{c(){e=C("button"),t=C("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=J(),o=C("p"),s=Se(n),a=J(),g(t,"class","toggleCheckbox"),g(o,"class","label"),g(e,"class",l="toggleContent "+(i[102].checked?"checked":""))},m(p,u){ue(p,e,u),m(e,t),m(e,r),m(e,o),m(o,s),m(e,a),h||(d=pt(e,"click",c),h=!0)},p(p,u){i=p,u[0]&139264&&n!==(n=i[17](i[102].type)+"")&&Be(s,n),u[0]&8192&&l!==(l="toggleContent "+(i[102].checked?"checked":""))&&g(e,"class",l)},d(p){p&&he(e),h=!1,d()}}}function Fa(i){let e,t=(i[17](i[92])||i[92])+"",r,o;return{c(){e=C("span"),r=Se(t),o=J()},m(n,s){ue(n,e,s),m(e,r),m(e,o)},p(n,s){s[0]&131200&&t!==(t=(n[17](n[92])||n[92])+"")&&Be(r,t)},d(n){n&&he(e)}}}function fg(i){let e,t;return{c(){e=C("div"),t=Se(i[3]),g(e,"class","tableRow")},m(r,o){ue(r,e,o),m(e,t)},p(r,o){o[0]&8&&Be(t,r[3])},d(r){r&&he(e)}}}function vg(i){let e,t=be(i[14][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Va(Da(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=vn()},m(o,n){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(o,n);ue(o,e,n)},p(o,n){if(n[0]&67682432){t=be(o[14][o[7]]);let s;for(s=0;s<t.length;s+=1){const a=Da(o,t,s);r[s]?r[s].p(a,n):(r[s]=Va(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(o){o&&he(e),Ge(r,o)}}}function gg(i){let e,t=(i[89][i[92]]||"-")+"",r;return{c(){e=C("span"),r=Se(t)},m(o,n){ue(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[89][o[92]]||"-")+"")&&Be(r,t)},d(o){o&&he(e)}}}function bg(i){let e,t=(i[89][i[92]].submenu[0]||"-")+"",r;return{c(){e=C("span"),r=Se(t)},m(o,n){ue(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[89][o[92]].submenu[0]||"-")+"")&&Be(r,t)},d(o){o&&he(e)}}}function yg(i){let e,t,r,o,n,s,a=i[89][i[92]].label+"",l,h,d,c;function p(){return i[48](i[91])}return{c(){e=C("button"),t=Me("svg"),r=Me("path"),n=J(),s=C("span"),l=Se(a),h=J(),g(r,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),g(t,"xmlns","http://www.w3.org/2000/svg"),g(t,"viewBox","6 5 20 20"),g(t,"class",o="iconToggleSubMenu "+(i[15][i[91]]?"active":"")),g(e,"class","toggleSubMenu")},m(u,b){ue(u,e,b),m(e,t),m(t,r),m(e,n),m(e,s),m(s,l),m(e,h),d||(c=pt(e,"click",p),d=!0)},p(u,b){i=u,b[0]&32768&&o!==(o="iconToggleSubMenu "+(i[15][i[91]]?"active":""))&&g(t,"class",o),b[0]&16512&&a!==(a=i[89][i[92]].label+"")&&Be(l,a)},d(u){u&&he(e),d=!1,c()}}}function xg(i){let e;return{c(){e=C("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',g(e,"class","decline")},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function wg(i){let e;return{c(){e=C("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',g(e,"class","approved")},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function Ha(i){let e;function t(n,s){var a,l,h;return n[89][n[92]]===!0?wg:n[89][n[92]]===!1?xg:(a=n[89][n[92]])!=null&&a.label&&((l=n[89][n[92]])==null?void 0:l.submenu.length)>1?yg:(h=n[89][n[92]])!=null&&h.submenu?bg:gg}let r=t(i),o=r(i);return{c(){o.c(),e=vn()},m(n,s){o.m(n,s),ue(n,e,s)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&he(e),o.d(n)}}}function Cg(i){let e;return{c(){e=C("div"),e.innerHTML='<span class="label">-</span> ',g(e,"class","tableData")},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function Eg(i){let e,t,r=be(i[89][i[92]].submenu),o=[];for(let n=0;n<r.length;n+=1)o[n]=Ra(Ma(i,r,n));return{c(){e=C("div");for(let n=0;n<o.length;n+=1)o[n].c();t=J(),g(e,"class","tableData")},m(n,s){ue(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,t)},p(n,s){if(s[0]&540800){r=be(n[89][n[92]].submenu);let a;for(a=0;a<r.length;a+=1){const l=Ma(n,r,a);o[a]?o[a].p(l,s):(o[a]=Ra(l),o[a].c(),o[a].m(e,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(n){n&&he(e),Ge(o,n)}}}function Ra(i){let e,t=(i[95]||"-")+"",r;return{c(){e=C("span"),r=Se(t),g(e,"class","label")},m(o,n){ue(o,e,n),m(e,r)},p(o,n){n[0]&16512&&t!==(t=(o[95]||"-")+"")&&Be(r,t)},d(o){o&&he(e)}}}function $a(i){let e;function t(n,s){var a;return(a=n[89][n[92]])!=null&&a.submenu?Eg:Cg}let r=t(i),o=r(i);return{c(){o.c(),e=vn()},m(n,s){o.m(n,s),ue(n,e,s)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&he(e),o.d(n)}}}function Va(i){let e,t,r,o,n,s,a=be(i[19][i[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Ha(Na(i,a,c));let h=be(i[19][i[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=$a(Oa(i,h,c));return{c(){e=C("div"),t=C("div");for(let c=0;c<l.length;c+=1)l[c].c();r=J(),o=C("div");for(let c=0;c<d.length;c+=1)d[c].c();s=J(),g(t,"class","tableData"),g(o,"class",n="tableSubMenu "+(i[15][i[91]]?"active":"")),g(e,"class","tableRow")},m(c,p){ue(c,e,p),m(e,t);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);m(e,r),m(e,o);for(let u=0;u<d.length;u+=1)d[u]&&d[u].m(o,null);m(e,s)},p(c,p){if(p[0]&67682432){a=be(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const b=Na(c,a,u);l[u]?l[u].p(b,p):(l[u]=Ha(b),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=be(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const b=Oa(c,h,u);d[u]?d[u].p(b,p):(d[u]=$a(b),d[u].c(),d[u].m(o,null))}for(;u<d.length;u+=1)d[u].d(1);d.length=h.length}p[0]&32768&&n!==(n="tableSubMenu "+(c[15][c[91]]?"active":""))&&g(o,"class",n)},d(c){c&&he(e),Ge(l,c),Ge(d,c)}}}function Ua(i){let e,t,r,o,n;function s(){return i[51](i[86])}return{c(){e=C("button"),t=C("p"),t.textContent=`${i[86]}`,r=J(),g(e,"class","dropDownRow")},m(a,l){ue(a,e,l),m(e,t),m(e,r),o||(n=pt(e,"click",s),o=!0)},p(a,l){i=a},d(a){a&&he(e),o=!1,n()}}}function Sg(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',g(e,"class","toggleContent")},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function Ag(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function Pg(i){let e;return{c(){e=C("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){ue(t,e,r)},p:ge,d(t){t&&he(e)}}}function Ig(i){let e,t,r,o=be({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=Pg(cg(i,o,s));return{c(){e=C("div"),t=C("div");for(let s=0;s<n.length;s+=1)n[s].c();r=J(),g(t,"class","tableData"),g(e,"class","tableRow")},m(s,a){ue(s,e,a),m(e,t);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null);m(e,r)},p:ge,d(s){s&&he(e),Ge(n,s)}}}function kg(i){let e;function t(n,s){return n[10]?_g:mg}let r=t(i),o=r(i);return{c(){e=C("div"),o.c()},m(n,s){ue(n,e,s),o.m(e,null),i[53](e)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(e,null)))},i:ge,o:ge,d(n){n&&he(e),o.d(),i[53](null)}}}function Tg(i,e,t){let r;gd(i,$u,_=>t(17,r=_)),rr.extend(Gu);let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{mbsource:c}=e,{historytypes:p="Casino, Sports, Payments"}=e,{pagesizeoptions:u="10, 20, 30, 50, 100"}=e,{playercurrency:b=""}=e,{defaultpagesize:f="5"}=e,{formatamount:E="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:P}=e,{dateformat:D="DD/MM/YYYY"}=e,z=D.toUpperCase(),j=window.navigator.userAgent,U="",G="",ee="",O="",se="",N="",L="",le=Number(f),pe=1,T=Vu(j)!=="PC",y=!0,x=!1,w=!1,v,S,k;const V=[],W={EUR:"€",RON:" lei",USD:"$"},Q={payments:[],casino:[],sports:[]},oe={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Winnings","Bet Adjustment","Bet ID"]},me={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","winnings","-","bet_id"]},Te=["stake","won","winnings","bet_Part.price","paymentAmount"],xe=["bet_Part.price"],ve={},F={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},ne=u.split(", ");let _e={},Pe=new Date,we=new Date(Pe);we.setMonth(Pe.getMonth()-1),ee=Pe.toISOString().split("T")[0],N=ee,O=we.toISOString().split("T")[0],se=O;const nt=()=>{fetch(d).then(H=>H.json()).then(H=>{Object.keys(H).forEach($=>{Ts($,H[$])})}).catch(H=>{console.log(H)})};Object.keys(Ds).forEach(_=>{Ts(_,Ds[_])});const He=()=>{p.split(", ").forEach((_,H)=>{const $={type:_,checked:H===0};$.checked&&t(7,L=$.type.toLocaleLowerCase()),V.push($)})},Re=_=>{V.forEach((H,$)=>{t(13,V[$].checked=_===$,V),V[$].checked&&t(7,L=H.type.toLocaleLowerCase())}),De()},De=()=>{if(!F.filterButton)return;t(10,y=!0),t(12,w=!1),t(16,F.filterButton=!1,F),t(16,F.nextPage=!1,F),t(16,F.previousPage=!1,F),t(16,F.pageSize=!1,F);let _=new URL(`${o}/v1/player/${n}/fsb/transactions/${L}`);_.searchParams.append("offset",(pe-1).toString()||"0"),_.searchParams.append("limit",le.toString()||"5"),_.searchParams.append("startDate",se),_.searchParams.append("endDate",N);let H={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,H).then($=>zt($)).then($=>{if($.transactions.length===0)return t(3,G=r("checkPeriod")),Promise.reject(G);$.pagination.next&&t(16,F.nextPage=!0,F),$.pagination.previous&&t(16,F.previousPage=!0,F),t(16,F.pageSize=!0,F),t(14,Q[L]=[],Q),t(11,x=!1),at(),ui($)}).catch($=>{t(12,w=!0),t(16,F.nextPage=!1,F),t(16,F.previousPage=!1,F),t(16,F.pageSize=!1,F),window.postMessage({type:"WidgetNotification",data:{type:"error",message:$}},window.location.href)}).finally(()=>{t(10,y=!1),t(16,F.filterButton=!0,F)})},st=_=>{t(5,se=_.target.value)},Nt=_=>{t(6,N=_.target.value)},wt=()=>{F.pageSize&&t(11,x=!x)},ci=_=>{t(8,le=_),t(9,pe=1),De()},Je=(_,H)=>{if(H==="next"){if(!F.nextPage)return;t(9,pe=_+1),De()}else{if(!F.previousPage)return;t(9,pe=_-1),De()}},ui=_=>{_.transactions.forEach((H,$)=>{t(14,Q[L][$]={},Q),me[L].forEach(R=>{if(E&&b&&Te.includes(R))if(R.includes(".")){let Oe=R.split(".");H[Oe[0]].forEach(de=>{de[Oe[1]]=mi(de,Oe[1])})}else H[R]=mi(H,R);if(new Date(H[R]).getTime()&&typeof H[R]!="number"&&Bt(H,R),R.includes(".")){let Oe=R.split(".")[0],de=R.split(".")[1];H[R]={label:"Multiple",submenu:[]},H[Oe].forEach(Ye=>{Ye[de]&&H[R].submenu.push(Ye[de])})}if(R in H)return t(14,Q[L][$][R]=H[R],Q)})})},pi=()=>{if(!P)return;let _={};P.split(",").forEach(H=>{let $=H.split(":");_[$[0].trim()]=$[1].trim()}),Object.entries(_).forEach(([H,$])=>W[H]=$)},Bt=(_,H)=>{_[H]=rr(_[H]).format(z)},mi=(_,H)=>{let $=xe.some(Le=>Le.includes(H)),R=typeof _[H]=="string"?parseInt(_[H]):_[H],Oe=Object.keys(_).find(Le=>Le.includes("currency")||Le.includes("Currency")),de=_[Oe]||b,Ye=E;const ct=Ye.match(/\{(\d+)decimals\}/),$e=ct?parseInt(ct[1],10):2,ut=ct?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";R=R.toFixed($e);const[Ce,A]=E.includes(".")?[",","."]:[".",","];let[te,M]=R.split(".");return te=te.replace(/\B(?=(\d{3})+(?!\d))/g,Ce),R=`${te}${A}${M}`,Ye=Ye.replace("{currency}",$?"":W[de]||de).replace("{amount}",R.split(A)[0]).replace(ut,R.split(A)[1]),Ye},at=()=>{Object.keys(ve).forEach(_=>t(15,ve[_]=!1,ve))},lt=_=>t(15,ve[_]=!ve[_],ve),Lt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:T},window.location.href)},zt=_=>oo(this,null,function*(){return _.status>=300?(_e=yield _.json(),U=_e.thirdPartyResponse.errorCode,t(3,G=r(U)||r("generalError")),Promise.reject(G)):_.json()}),Ki=()=>{v.addEventListener("change",st,!1),S.addEventListener("change",Nt,!1);const _=$=>rr(new Date($.year,$.month,$.day)).format(z),H=$=>{const R=rr($,z);return{year:R.year(),month:R.month(),day:R.date()}};t(0,v.i18n=er(Qi({},v.i18n),{formatDate:_,parseDate:H}),v),t(1,S.i18n=er(Qi({},v.i18n),{formatDate:_,parseDate:H}),S)};Sd(()=>()=>{v&&v.removeEventListener("change",st),S&&S.removeEventListener("change",Nt)});const Ft=()=>Lt(),qe=_=>Re(_);function ht(_){Ii[_?"unshift":"push"](()=>{v=_,t(0,v)})}function _i(_){Ii[_?"unshift":"push"](()=>{S=_,t(1,S)})}const fi=()=>De(),Zi=_=>lt(_),dt=()=>Je(pe,"previous"),vi=()=>Je(pe,"next"),Ji=_=>ci(_),Ct=()=>wt();function Ht(_){Ii[_?"unshift":"push"](()=>{k=_,t(2,k)})}return i.$$set=_=>{"endpoint"in _&&t(28,o=_.endpoint),"playerid"in _&&t(29,n=_.playerid),"session"in _&&t(30,s=_.session),"lang"in _&&t(31,a=_.lang),"clientstyling"in _&&t(32,l=_.clientstyling),"clientstylingurl"in _&&t(33,h=_.clientstylingurl),"translationurl"in _&&t(34,d=_.translationurl),"mbsource"in _&&t(35,c=_.mbsource),"historytypes"in _&&t(36,p=_.historytypes),"pagesizeoptions"in _&&t(37,u=_.pagesizeoptions),"playercurrency"in _&&t(38,b=_.playercurrency),"defaultpagesize"in _&&t(39,f=_.defaultpagesize),"formatamount"in _&&t(40,E=_.formatamount),"customcurrencysymbols"in _&&t(41,P=_.customcurrencysymbols),"dateformat"in _&&t(42,D=_.dateformat)},i.$$.update=()=>{i.$$.dirty[1]&1&&a&&Uu(a),i.$$.dirty[1]&32&&p&&He(),i.$$.dirty[0]&1879048192&&o&&n&&s&&De(),i.$$.dirty[1]&1024&&P&&pi(),i.$$.dirty[0]&3&&v&&S&&Ki(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&l&&k&&Hd(k,l),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&k&&Rd(k,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&c&&k&&$d(k,`${c}.Style`),i.$$.dirty[1]&8&&d&&nt()},[v,S,k,G,ee,se,N,L,le,pe,y,x,w,V,Q,ve,F,r,oe,me,ne,Re,De,wt,ci,Je,lt,Lt,o,n,s,a,l,h,d,c,p,u,b,f,E,P,D,Ft,qe,ht,_i,fi,Zi,dt,vi,Ji,Ct,Ht]}class cd extends zd{constructor(e){super(),Bd(this,e,Tg,kg,ja,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41,dateformat:42},hg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),Ee()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),Ee()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),Ee()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),Ee()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),Ee()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),Ee()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),Ee()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),Ee()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),Ee()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),Ee()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),Ee()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),Ee()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),Ee()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),Ee()}get dateformat(){return this.$$.ctx[42]}set dateformat(e){this.$$set({dateformat:e}),Ee()}}Ld(cd,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{},dateformat:{}},[],[],!0);exports.default=cd;
|