@everymatrix/player-account-transactions-history 0.1.4 → 0.1.6
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-C4atBB1_.cjs → PlayerAccountTransactionsHistory-2fdWMTrb.cjs} +186 -186
- package/components/{PlayerAccountTransactionsHistory-BYocpqtN.js → PlayerAccountTransactionsHistory-CjxIhurq.js} +2180 -2145
- package/components/{PlayerAccountTransactionsHistory-C62W12yp.js → PlayerAccountTransactionsHistory-DV2SwbVW.js} +2158 -2123
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var zh=Object.defineProperty,Fh=Object.defineProperties;var Lh=Object.getOwnPropertyDescriptors;var Fn=Object.getOwnPropertySymbols;var Hh=Object.prototype.hasOwnProperty,Rh=Object.prototype.propertyIsEnumerable;var Li=(t,e,r)=>e in t?zh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ln=(t,e)=>{for(var r in e||(e={}))Hh.call(e,r)&&Li(t,r,e[r]);if(Fn)for(var r of Fn(e))Rh.call(e,r)&&Li(t,r,e[r]);return t},Hn=(t,e)=>Fh(t,Lh(e));var xe=(t,e,r)=>(Li(t,typeof e!="symbol"?e+"":e,r),r);var Hi=(t,e,r)=>new Promise((i,o)=>{var n=l=>{try{a(r.next(l))}catch(h){o(h)}},s=l=>{try{a(r.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((r=r.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CCXvjIzA.cjs");function G(){}function wa(t){return t()}function Rn(){return Object.create(null)}function Jt(t){t.forEach(wa)}function Qo(t){return typeof t=="function"}function Ca(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Vh(t){return Object.keys(t).length===0}function Ea(t,...e){if(t==null){for(const i of e)i(void 0);return G}const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function $h(t,e,r){t.$$.on_destroy.push(Ea(e,r))}function m(t,e){t.appendChild(e)}function Uh(t,e,r){const i=Wh(t);if(!i.getElementById(e)){const o=v("style");o.id=e,o.textContent=r,jh(i,o)}}function Wh(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function jh(t,e){return m(t.head||t,e),e.sheet}function U(t,e,r){t.insertBefore(e,r||null)}function $(t){t.parentNode&&t.parentNode.removeChild(t)}function ke(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function v(t){return document.createElement(t)}function ce(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function oe(t){return document.createTextNode(t)}function N(){return oe(" ")}function en(){return oe("")}function rt(t,e,r,i){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r,i)}function f(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function we(t,e,r){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&r===""?!0:r:e in t?t[e]=typeof t[e]=="boolean"&&r===""?!0:r:f(t,e,r)}function Gh(t){return Array.from(t.childNodes)}function ve(t,e){e=""+e,t.data!==e&&(t.data=e)}function qh(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}let Sr;function wr(t){Sr=t}function Yh(){if(!Sr)throw new Error("Function called outside component initialization");return Sr}function Xh(t){Yh().$$.on_mount.push(t)}const Bt=[],Cr=[];let Ft=[];const Vn=[],Kh=Promise.resolve();let co=!1;function Jh(){co||(co=!0,Kh.then(re))}function uo(t){Ft.push(t)}const Ri=new Set;let Ot=0;function re(){if(Ot!==0)return;const t=Sr;do{try{for(;Ot<Bt.length;){const e=Bt[Ot];Ot++,wr(e),Zh(e.$$)}}catch(e){throw Bt.length=0,Ot=0,e}for(wr(null),Bt.length=0,Ot=0;Cr.length;)Cr.pop()();for(let e=0;e<Ft.length;e+=1){const r=Ft[e];Ri.has(r)||(Ri.add(r),r())}Ft.length=0}while(Bt.length);for(;Vn.length;)Vn.pop()();co=!1,Ri.clear(),wr(t)}function Zh(t){if(t.fragment!==null){t.update(),Jt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(uo)}}function Qh(t){const e=[],r=[];Ft.forEach(i=>t.indexOf(i)===-1?e.push(i):r.push(i)),r.forEach(i=>i()),Ft=e}const ed=new Set;function td(t,e){t&&t.i&&(ed.delete(t),t.i(e))}function K(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function rd(t,e,r){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,r),uo(()=>{const n=t.$$.on_mount.map(wa).filter(Qo);t.$$.on_destroy?t.$$.on_destroy.push(...n):Jt(n),t.$$.on_mount=[]}),o.forEach(uo)}function id(t,e){const r=t.$$;r.fragment!==null&&(Qh(r.after_update),Jt(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function od(t,e){t.$$.dirty[0]===-1&&(Bt.push(t),Jh(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function nd(t,e,r,i,o,n,s=null,a=[-1]){const l=Sr;wr(t);const h=t.$$={fragment:null,ctx:[],props:n,update:G,not_equal:o,bound:Rn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Rn(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let d=!1;if(h.ctx=r?r(t,e.props||{},(c,p,...u)=>{const g=u.length?u[0]:p;return h.ctx&&o(h.ctx[c],h.ctx[c]=g)&&(!h.skip_bound&&h.bound[c]&&h.bound[c](g),d&&od(t,c)),p}):[],h.update(),d=!0,Jt(h.before_update),h.fragment=i?i(h.ctx):!1,e.target){if(e.hydrate){const c=Gh(e.target);h.fragment&&h.fragment.l(c),c.forEach($)}else h.fragment&&h.fragment.c();e.intro&&td(t.$$.fragment),rd(t,e.target,e.anchor),re()}wr(l)}let Pa;typeof HTMLElement=="function"&&(Pa=class extends HTMLElement{constructor(e,r,i){super();xe(this,"$$ctor");xe(this,"$$s");xe(this,"$$c");xe(this,"$$cn",!1);xe(this,"$$d",{});xe(this,"$$r",!1);xe(this,"$$p_d",{});xe(this,"$$l",{});xe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(e,r,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,i)}removeEventListener(e,r,i){if(super.removeEventListener(e,r,i),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}connectedCallback(){return Hi(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let s;return{c:function(){s=v("slot"),n!=="default"&&f(s,"name",n)},m:function(h,d){U(h,s,d)},d:function(h){h&&$(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=qh(this);for(const n of this.$$s)n in i&&(r[n]=[e(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=oi(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:Hn(Ln({},this.$$d),{$$slots:r,$$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=oi(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,r,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=oi(e,i,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(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function oi(t,e,r,i){var n;const o=(n=r[t])==null?void 0:n.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!r[t])return e;if(i==="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 sd(t,e,r,i,o,n){let s=class extends Pa{constructor(){super(t,r,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=oi(a,l,e),this.$$d[a]=l,(h=this.$$c)==null||h.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class ad{constructor(){xe(this,"$$");xe(this,"$$set")}$destroy(){id(this,1),this.$destroy=G}$on(e,r){if(!Qo(r))return G;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(r),()=>{const o=i.indexOf(r);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Vh(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ld="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ld);function hd(t,e){if(t){const r=document.createElement("style");r.innerHTML=e,t.appendChild(r)}}function dd(t,e){const r=new URL(e);fetch(r.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,t&&t.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function cd(t,e,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,o=>{i.innerHTML=o,t&&t.appendChild(i)})}}/*! *****************************************************************************
|
|
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 po=function(t,e){return po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},po(t,e)};function Rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");po(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function mo(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _o(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],s;try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return n}function fo(t,e,r){if(arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||e)}function Ve(t){return typeof t=="function"}function Sa(t){var e=function(i){Error.call(i),i.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Vi=Sa(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
15
15
|
`+r.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function fo(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Ei=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,i,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=po(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(y){e={error:y}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(Le(d))try{d()}catch(y){n=y instanceof Ri?y.errors:[y]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=po(c),u=p.next();!u.done;u=p.next()){var g=u.value;try{$n(g)}catch(y){n=n!=null?n:[],y instanceof Ri?n=_o(_o([],mo(n)),mo(y.errors)):n.push(y)}}}catch(y){i={error:y}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(n)throw new Ri(n)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)$n(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&fo(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&fo(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Sa=Ei.EMPTY;function Aa(t){return t instanceof Ei||t&&"closed"in t&&Le(t.remove)&&Le(t.add)&&Le(t.unsubscribe)}function $n(t){Le(t)?t():t.unsubscribe()}var cd={Promise:void 0},ud={setTimeout:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,_o([t,e],mo(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function pd(t){ud.setTimeout(function(){throw t})}function Un(){}function oi(t){t()}var Ta=function(t){Lr(e,t);function e(r){var i=t.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Aa(r)&&r.add(i)):i.destination=fd,i}return e.create=function(r,i,o){return new go(r,i,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Ei),md=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(i){Xr(i)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(i){Xr(i)}else Xr(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Xr(r)}},t}(),go=function(t){Lr(e,t);function e(r,i,o){var n=t.call(this)||this,s;return Le(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=r,n.destination=new md(s),n}return e}(Ta);function Xr(t){pd(t)}function _d(t){throw t}var fd={closed:!0,next:Un,error:_d,complete:Un},gd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function vd(t){return t}function bd(t){return t.length===0?vd:t.length===1?t[0]:function(r){return t.reduce(function(i,o){return o(i)},r)}}var Wn=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,i){var o=this,n=xd(e)?e:new go(e,r,i);return oi(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var i=this;return r=jn(r),new r(function(o,n){var s=new go({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});i.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[gd]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bd(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=jn(e),new e(function(i,o){var n;r.subscribe(function(s){return n=s},function(s){return o(s)},function(){return i(n)})})},t.create=function(e){return new t(e)},t}();function jn(t){var e;return(e=t!=null?t:cd.Promise)!==null&&e!==void 0?e:Promise}function yd(t){return t&&Le(t.next)&&Le(t.error)&&Le(t.complete)}function xd(t){return t&&t instanceof Ta||yd(t)&&Aa(t)}var wd=Pa(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ka=function(t){Lr(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var i=new Gn(this,this);return i.operator=r,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new wd},e.prototype.next=function(r){var i=this;oi(function(){var o,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=po(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}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(r){var i=this;oi(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var o=i.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;oi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var i=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Sa:(this.currentObservers=null,a.push(r),new Ei(function(){i.currentObservers=null,fo(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var i=this,o=i.hasError,n=i.thrownError,s=i.isStopped;o?r.error(n):s&&r.complete()},e.prototype.asObservable=function(){var r=new Wn;return r.source=this,r},e.create=function(r,i){return new Gn(r,i)},e}(Wn),Gn=function(t){Lr(e,t);function e(r,i){var o=t.call(this)||this;return o.destination=r,o.source=i,o}return e.prototype.next=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,r)},e.prototype.error=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,r)},e.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},e.prototype._subscribe=function(r){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&o!==void 0?o:Sa},e}(ka),Ia={now:function(){return(Ia.delegate||Date).now()},delegate:void 0},Cd=function(t){Lr(e,t);function e(r,i,o){r===void 0&&(r=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ia);var n=t.call(this)||this;return n._bufferSize=r,n._windowTime=i,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,r),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(r){var i=this,o=i.isStopped,n=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(n.push(r),!s&&n.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=n?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},e.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,o=r._timestampProvider,n=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<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}(ka);const qn=[],Yn={},Ed=(t,e=0)=>{if(qn.indexOf(t)==-1){const r=new Cd(e);Yn[t]=r,qn.push(t)}return Yn[t]},Tt=[];function Pd(t,e){return{subscribe:Pi(t,e).subscribe}}function Pi(t,e=X){let r;const i=new Set;function o(a){if(wa(t,a)&&(t=a,r)){const l=!Tt.length;for(const h of i)h[1](),Tt.push(h,t);if(l){for(let h=0;h<Tt.length;h+=2)Tt[h][0](Tt[h+1]);Tt.length=0}}}function n(a){o(a(t))}function s(a,l=X){const h=[a,l];return i.add(h),i.size===1&&(r=e(o,n)||X),a(t),()=>{i.delete(h),i.size===0&&r&&(r(),r=null)}}return{set:o,update:n,subscribe:s}}function qt(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Pd(r,(s,a)=>{let l=!1;const h=[];let d=0,c=X;const p=()=>{if(d)return;c();const g=e(i?h[0]:h,s,a);n?s(g):c=Zo(g)?g:X},u=o.map((g,y)=>Ca(g,k=>{h[y]=k,d&=~(1<<y),l&&p()},()=>{d|=1<<y}));return l=!0,p(),function(){Gt(u),c(),l=!1}})}function Sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ad=function(e){return Td(e)&&!kd(e)};function Td(t){return!!t&&typeof t=="object"}function kd(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Od(t)}var Id=typeof Symbol=="function"&&Symbol.for,Dd=Id?Symbol.for("react.element"):60103;function Od(t){return t.$$typeof===Dd}function Nd(t){return Array.isArray(t)?[]:{}}function Pr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ft(Nd(t),t,e):t}function Md(t,e,r){return t.concat(e).map(function(i){return Pr(i,r)})}function Bd(t,e){if(!e.customMerge)return Ft;var r=e.customMerge(t);return typeof r=="function"?r:Ft}function zd(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Xn(t){return Object.keys(t).concat(zd(t))}function Da(t,e){try{return e in t}catch(r){return!1}}function Fd(t,e){return Da(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ld(t,e,r){var i={};return r.isMergeableObject(t)&&Xn(t).forEach(function(o){i[o]=Pr(t[o],r)}),Xn(e).forEach(function(o){Fd(t,o)||(Da(t,o)&&r.isMergeableObject(e[o])?i[o]=Bd(o,r)(t[o],e[o],r):i[o]=Pr(e[o],r))}),i}function Ft(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Md,r.isMergeableObject=r.isMergeableObject||Ad,r.cloneUnlessOtherwiseSpecified=Pr;var i=Array.isArray(e),o=Array.isArray(t),n=i===o;return n?i?r.arrayMerge(t,e,r):Ld(t,e,r):Pr(e,r)}Ft.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,o){return Ft(i,o,r)},{})};var Hd=Ft,Rd=Hd;const Vd=Sd(Rd);var vo=function(t,e){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},vo(t,e)};function Si(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vo(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ne=function(){return Ne=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ne.apply(this,arguments)};function $d(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(r[i[o]]=t[i[o]]);return r}function Vi(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function $i(t,e){var r=e&&e.cache?e.cache:Xd,i=e&&e.serializer?e.serializer:qd,o=e&&e.strategy?e.strategy:jd;return o(t,{cache:r,serializer:i})}function Ud(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Wd(t,e,r,i){var o=Ud(i)?i:r(i),n=e.get(o);return typeof n=="undefined"&&(n=t.call(this,i),e.set(o,n)),n}function Oa(t,e,r){var i=Array.prototype.slice.call(arguments,3),o=r(i),n=e.get(o);return typeof n=="undefined"&&(n=t.apply(this,i),e.set(o,n)),n}function Na(t,e,r,i,o){return r.bind(e,t,i,o)}function jd(t,e){var r=t.length===1?Wd:Oa;return Na(t,this,r,e.cache.create(),e.serializer)}function Gd(t,e){return Na(t,this,Oa,e.cache.create(),e.serializer)}var qd=function(){return JSON.stringify(arguments)},Yd=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,r){this.cache[e]=r},t}(),Xd={create:function(){return new Yd}},Ui={variadic:Gd},hi=function(){return hi=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hi.apply(this,arguments)};var T;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var R;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(R||(R={}));var Lt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Lt||(Lt={}));function Kn(t){return t.type===R.literal}function Kd(t){return t.type===R.argument}function Ma(t){return t.type===R.number}function Ba(t){return t.type===R.date}function za(t){return t.type===R.time}function Fa(t){return t.type===R.select}function La(t){return t.type===R.plural}function Jd(t){return t.type===R.pound}function Ha(t){return t.type===R.tag}function Ra(t){return!!(t&&typeof t=="object"&&t.type===Lt.number)}function bo(t){return!!(t&&typeof t=="object"&&t.type===Lt.dateTime)}var Va=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zd=/(?:[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 Qd(t){var e={};return t.replace(Zd,function(r){var i=r.length;switch(r[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===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"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-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=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-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"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-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"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<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 j=function(){return j=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)};var ec=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tc(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(ec).filter(function(p){return p.length>0}),r=[],i=0,o=e;i<o.length;i++){var n=o[i],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")}r.push({stem:a,options:l})}return r}function rc(t){return t.replace(/^(.*?)-/,"")}var Jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$a=/^(@+)?(\+|#+)?[rs]?$/g,ic=/(\*)(0+)|(#+)(0+)|(0+)/g,Ua=/^(0+)$/;function Zn(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace($a,function(r,i,o){return typeof o!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):o==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),e}function Wa(t){switch(t){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 oc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ua.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Qn(t){var e={},r=Wa(t);return r||e}function nc(t){for(var e={},r=0,i=t;r<i.length;r++){var o=i[r];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=rc(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=j(j(j({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return j(j({},l),Qn(h))},{}));continue;case"engineering":e=j(j(j({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return j(j({},l),Qn(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(ic,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(Ua.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(Jn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Jn,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=j(j({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=j(j({},e),Zn(n)));continue}if($a.test(o.stem)){e=j(j({},e),Zn(o.stem));continue}var s=Wa(o.stem);s&&(e=j(j({},e),s));var a=oc(o.stem);a&&(e=j(j({},e),a))}return e}var Kr={"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 sc(t,e){for(var r="",i=0;i<t.length;i++){var o=t.charAt(i);if(o==="j"){for(var n=0;i+1<t.length&&t.charAt(i+1)===o;)n++,i++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",h=ac(e);for((h=="H"||h=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=h+r}else o==="J"?r+="H":r+=o}return r}function ac(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.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 r=t.language,i;r!=="root"&&(i=t.maximize().region);var o=Kr[i||""]||Kr[r||""]||Kr["".concat(r,"-001")]||Kr["001"];return o[0]}var Wi,lc=new RegExp("^".concat(Va.source,"*")),hc=new RegExp("".concat(Va.source,"*$"));function I(t,e){return{start:t,end:e}}var dc=!!String.prototype.startsWith&&"_a".startsWith("a",1),cc=!!String.fromCodePoint,uc=!!Object.fromEntries,pc=!!String.prototype.codePointAt,mc=!!String.prototype.trimStart,_c=!!String.prototype.trimEnd,fc=!!Number.isSafeInteger,gc=fc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},yo=!0;try{var vc=Ga("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yo=((Wi=vc.exec("a"))===null||Wi===void 0?void 0:Wi[0])==="a"}catch(t){yo=!1}var es=dc?function(e,r,i){return e.startsWith(r,i)}:function(e,r,i){return e.slice(i,i+r.length)===r},xo=cc?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},ts=uc?Object.fromEntries:function(e){for(var r={},i=0,o=e;i<o.length;i++){var n=o[i],s=n[0],a=n[1];r[s]=a}return r},ja=pc?function(e,r){return e.codePointAt(r)}:function(e,r){var i=e.length;if(!(r<0||r>=i)){var o=e.charCodeAt(r),n;return o<55296||o>56319||r+1===i||(n=e.charCodeAt(r+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},bc=mc?function(e){return e.trimStart()}:function(e){return e.replace(lc,"")},yc=_c?function(e){return e.trimEnd()}:function(e){return e.replace(hc,"")};function Ga(t,e){return new RegExp(t,e)}var wo;if(yo){var rs=Ga("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wo=function(e,r){var i;rs.lastIndex=r;var o=rs.exec(e);return(i=o[1])!==null&&i!==void 0?i:""}}else wo=function(e,r){for(var i=[];;){var o=ja(e,r);if(o===void 0||qa(o)||Ec(o))break;i.push(o),r+=o>=65536?2:1}return xo.apply(void 0,i)};var xc=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,i){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:R.pound,location:I(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Co(this.peek()||0)){var s=this.parseTag(e,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},t.prototype.parseTag=function(e,r){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:R.literal,value:"<".concat(o,"/>"),location:I(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,r,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Co(this.char()))return this.error(T.INVALID_TAG,I(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(T.UNMATCHED_CLOSING_TAG,I(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:R.tag,value:o,children:s,location:I(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,I(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,I(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,I(i,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Cc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var i=this.clonePosition(),o="";;){var n=this.tryParseQuote(r);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=I(i,this.clonePosition());return{val:{type:R.literal,value:o,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wc(this.peek()||0))?(this.bump(),"<"):null},t.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 r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return xo.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&e>0?null:(this.bump(),xo(i))},t.prototype.parseArgument=function(e,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,I(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(T.MALFORMED_ARGUMENT,I(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:R.argument,value:o,location:I(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition())):this.parseArgumentOptions(e,r,o,i);default:return this.error(T.MALFORMED_ARGUMENT,I(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),i=wo(this.message,r),o=r+i.length;this.bumpTo(o);var n=this.clonePosition(),s=I(e,n);return{value:i,location:s}},t.prototype.parseArgumentOptions=function(e,r,i,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,I(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=yc(c.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var u=I(d,this.clonePosition());h={style:p,styleLocation:u}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var y=I(o,this.clonePosition());if(h&&es(h==null?void 0:h.style,"::",0)){var k=bc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(k,h.styleLocation);return c.err?c:{val:{type:R.number,value:i,location:y,style:c.val},err:null}}else{if(k.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,y);var E=k;this.locale&&(E=sc(k,this.locale));var p={type:Lt.dateTime,pattern:E,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Qd(E):{}},A=a==="date"?R.date:R.time;return{val:{type:A,value:i,location:y,style:p},err:null}}}return{val:{type:a==="number"?R.number:a==="date"?R.date:R.time,value:i,location:y,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,I(P,hi({},P)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),F=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),H=this.parseIdentifierIfPossible(),F=c.val}var J=this.tryParsePluralOrSelectOptions(e,a,r,H);if(J.err)return J;var g=this.tryParseArgumentClose(o);if(g.err)return g;var W=I(o,this.clonePosition());return a==="select"?{val:{type:R.select,value:i,options:ts(J.val),location:W},err:null}:{val:{type:R.plural,value:i,options:ts(J.val),offset:F,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,I(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,I(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var i=[];try{i=tc(e)}catch(o){return this.error(T.INVALID_NUMBER_SKELETON,r)}return{val:{type:Lt.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?nc(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,i,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(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=I(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,r,i);if(g.err)return g;var y=this.tryParseArgumentClose(u);if(y.err)return y;a.push([h,{value:g.val,location:I(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-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=I(o,this.clonePosition());return n?(s*=i,gc(s)?{val:s,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=ja(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.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)}},t.prototype.bumpIf=function(e){if(es(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),i=this.message.indexOf(e,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.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 r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&qa(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(e>=65536?2:1));return i!=null?i:null},t}();function Co(t){return t>=97&&t<=122||t>=65&&t<=90}function wc(t){return Co(t)||t===47}function Cc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function qa(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Ec(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Eo(t){t.forEach(function(e){if(delete e.location,Fa(e)||La(e))for(var r in e.options)delete e.options[r].location,Eo(e.options[r].value);else Ma(e)&&Ra(e.style)||(Ba(e)||za(e))&&bo(e.style)?delete e.style.location:Ha(e)&&Eo(e.children)})}function Pc(t,e){e===void 0&&(e={}),e=hi({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new xc(t,e).parse();if(r.err){var i=SyntaxError(T[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return e!=null&&e.captureLocation||Eo(r.val),r.val}var Ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Ht||(Ht={}));var Ai=function(t){Si(e,t);function e(r,i,o){var n=t.call(this,r)||this;return n.code=i,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),is=function(t){Si(e,t);function e(r,i,o,n){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Ht.INVALID_VALUE,n)||this}return e}(Ai),Sc=function(t){Si(e,t);function e(r,i,o){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Ht.INVALID_VALUE,o)||this}return e}(Ai),Ac=function(t){Si(e,t);function e(r,i){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Ht.MISSING_VALUE,i)||this}return e}(Ai),le;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(le||(le={}));function Tc(t){return t.length<2?t:t.reduce(function(e,r){var i=e[e.length-1];return!i||i.type!==le.literal||r.type!==le.literal?e.push(r):i.value+=r.value,e},[])}function kc(t){return typeof t=="function"}function ni(t,e,r,i,o,n,s){if(t.length===1&&Kn(t[0]))return[{type:le.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(Kn(d)){a.push({type:le.literal,value:d.value});continue}if(Jd(d)){typeof n=="number"&&a.push({type:le.literal,value:r.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Ac(c,s);var p=o[c];if(Kd(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?le.literal:le.object,value:p});continue}if(Ba(d)){var u=typeof d.style=="string"?i.date[d.style]:bo(d.style)?d.style.parsedOptions:void 0;a.push({type:le.literal,value:r.getDateTimeFormat(e,u).format(p)});continue}if(za(d)){var u=typeof d.style=="string"?i.time[d.style]:bo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:le.literal,value:r.getDateTimeFormat(e,u).format(p)});continue}if(Ma(d)){var u=typeof d.style=="string"?i.number[d.style]:Ra(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:le.literal,value:r.getNumberFormat(e,u).format(p)});continue}if(Ha(d)){var g=d.children,y=d.value,k=o[y];if(!kc(k))throw new Sc(y,"function",s);var E=ni(g,e,r,i,o,n),A=k(E.map(function(F){return F.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(F){return{type:typeof F=="string"?le.literal:le.object,value:F}}))}if(Fa(d)){var P=d.options[p]||d.options.other;if(!P)throw new is(d.value,p,Object.keys(d.options),s);a.push.apply(a,ni(P.value,e,r,i,o));continue}if(La(d)){var P=d.options["=".concat(p)];if(!P){if(!Intl.PluralRules)throw new Ai(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function go(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Pi=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,i,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=mo(s),l=a.next();!l.done;l=a.next()){var h=l.value;h.remove(this)}}catch(y){e={error:y}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(Ve(d))try{d()}catch(y){n=y instanceof Vi?y.errors:[y]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var p=mo(c),u=p.next();!u.done;u=p.next()){var g=u.value;try{$n(g)}catch(y){n=n!=null?n:[],y instanceof Vi?n=fo(fo([],_o(n)),_o(y.errors)):n.push(y)}}}catch(y){i={error:y}}finally{try{u&&!u.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(n)throw new Vi(n)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)$n(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&go(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&go(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Aa=Pi.EMPTY;function Ta(t){return t instanceof Pi||t&&"closed"in t&&Ve(t.remove)&&Ve(t.add)&&Ve(t.unsubscribe)}function $n(t){Ve(t)?t():t.unsubscribe()}var ud={Promise:void 0},pd={setTimeout:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,fo([t,e],_o(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function md(t){pd.setTimeout(function(){throw t})}function Un(){}function ni(t){t()}var ka=function(t){Rr(e,t);function e(r){var i=t.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Ta(r)&&r.add(i)):i.destination=gd,i}return e.create=function(r,i,o){return new vo(r,i,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Pi),_d=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(i){Kr(i)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(i){Kr(i)}else Kr(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Kr(r)}},t}(),vo=function(t){Rr(e,t);function e(r,i,o){var n=t.call(this)||this,s;return Ve(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=r,n.destination=new _d(s),n}return e}(ka);function Kr(t){md(t)}function fd(t){throw t}var gd={closed:!0,next:Un,error:fd,complete:Un},vd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bd(t){return t}function yd(t){return t.length===0?bd:t.length===1?t[0]:function(r){return t.reduce(function(i,o){return o(i)},r)}}var Wn=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,i){var o=this,n=wd(e)?e:new vo(e,r,i);return ni(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var i=this;return r=jn(r),new r(function(o,n){var s=new vo({next:function(a){try{e(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});i.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[vd]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return yd(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=jn(e),new e(function(i,o){var n;r.subscribe(function(s){return n=s},function(s){return o(s)},function(){return i(n)})})},t.create=function(e){return new t(e)},t}();function jn(t){var e;return(e=t!=null?t:ud.Promise)!==null&&e!==void 0?e:Promise}function xd(t){return t&&Ve(t.next)&&Ve(t.error)&&Ve(t.complete)}function wd(t){return t&&t instanceof ka||xd(t)&&Ta(t)}var Cd=Sa(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ia=function(t){Rr(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var i=new Gn(this,this);return i.operator=r,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new Cd},e.prototype.next=function(r){var i=this;ni(function(){var o,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=mo(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}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(r){var i=this;ni(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var o=i.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;ni(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var i=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Aa:(this.currentObservers=null,a.push(r),new Pi(function(){i.currentObservers=null,go(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var i=this,o=i.hasError,n=i.thrownError,s=i.isStopped;o?r.error(n):s&&r.complete()},e.prototype.asObservable=function(){var r=new Wn;return r.source=this,r},e.create=function(r,i){return new Gn(r,i)},e}(Wn),Gn=function(t){Rr(e,t);function e(r,i){var o=t.call(this)||this;return o.destination=r,o.source=i,o}return e.prototype.next=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,r)},e.prototype.error=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,r)},e.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},e.prototype._subscribe=function(r){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&o!==void 0?o:Aa},e}(Ia),Da={now:function(){return(Da.delegate||Date).now()},delegate:void 0},Ed=function(t){Rr(e,t);function e(r,i,o){r===void 0&&(r=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Da);var n=t.call(this)||this;return n._bufferSize=r,n._windowTime=i,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,r),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(r){var i=this,o=i.isStopped,n=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(n.push(r),!s&&n.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=n?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},e.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,o=r._timestampProvider,n=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<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}(Ia);const qn=[],Yn={},Pd=(t,e=0)=>{if(qn.indexOf(t)==-1){const r=new Ed(e);Yn[t]=r,qn.push(t)}return Yn[t]},Nt=[];function Sd(t,e){return{subscribe:Si(t,e).subscribe}}function Si(t,e=G){let r;const i=new Set;function o(a){if(Ca(t,a)&&(t=a,r)){const l=!Nt.length;for(const h of i)h[1](),Nt.push(h,t);if(l){for(let h=0;h<Nt.length;h+=2)Nt[h][0](Nt[h+1]);Nt.length=0}}}function n(a){o(a(t))}function s(a,l=G){const h=[a,l];return i.add(h),i.size===1&&(r=e(o,n)||G),a(t),()=>{i.delete(h),i.size===0&&r&&(r(),r=null)}}return{set:o,update:n,subscribe:s}}function Zt(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=e.length<2;return Sd(r,(s,a)=>{let l=!1;const h=[];let d=0,c=G;const p=()=>{if(d)return;c();const g=e(i?h[0]:h,s,a);n?s(g):c=Qo(g)?g:G},u=o.map((g,y)=>Ea(g,A=>{h[y]=A,d&=~(1<<y),l&&p()},()=>{d|=1<<y}));return l=!0,p(),function(){Jt(u),c(),l=!1}})}function Ad(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Td=function(e){return kd(e)&&!Id(e)};function kd(t){return!!t&&typeof t=="object"}function Id(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Nd(t)}var Dd=typeof Symbol=="function"&&Symbol.for,Od=Dd?Symbol.for("react.element"):60103;function Nd(t){return t.$$typeof===Od}function Md(t){return Array.isArray(t)?[]:{}}function Ar(t,e){return e.clone!==!1&&e.isMergeableObject(t)?$t(Md(t),t,e):t}function Bd(t,e,r){return t.concat(e).map(function(i){return Ar(i,r)})}function zd(t,e){if(!e.customMerge)return $t;var r=e.customMerge(t);return typeof r=="function"?r:$t}function Fd(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Xn(t){return Object.keys(t).concat(Fd(t))}function Oa(t,e){try{return e in t}catch(r){return!1}}function Ld(t,e){return Oa(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Hd(t,e,r){var i={};return r.isMergeableObject(t)&&Xn(t).forEach(function(o){i[o]=Ar(t[o],r)}),Xn(e).forEach(function(o){Ld(t,o)||(Oa(t,o)&&r.isMergeableObject(e[o])?i[o]=zd(o,r)(t[o],e[o],r):i[o]=Ar(e[o],r))}),i}function $t(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Bd,r.isMergeableObject=r.isMergeableObject||Td,r.cloneUnlessOtherwiseSpecified=Ar;var i=Array.isArray(e),o=Array.isArray(t),n=i===o;return n?i?r.arrayMerge(t,e,r):Hd(t,e,r):Ar(e,r)}$t.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,o){return $t(i,o,r)},{})};var Rd=$t,Vd=Rd;const $d=Ad(Vd);var bo=function(t,e){return bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},bo(t,e)};function Ai(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");bo(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Be=function(){return Be=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)};function Ud(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(r[i[o]]=t[i[o]]);return r}function $i(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i<o;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Ui(t,e){var r=e&&e.cache?e.cache:Kd,i=e&&e.serializer?e.serializer:Yd,o=e&&e.strategy?e.strategy:Gd;return o(t,{cache:r,serializer:i})}function Wd(t){return t==null||typeof t=="number"||typeof t=="boolean"}function jd(t,e,r,i){var o=Wd(i)?i:r(i),n=e.get(o);return typeof n=="undefined"&&(n=t.call(this,i),e.set(o,n)),n}function Na(t,e,r){var i=Array.prototype.slice.call(arguments,3),o=r(i),n=e.get(o);return typeof n=="undefined"&&(n=t.apply(this,i),e.set(o,n)),n}function Ma(t,e,r,i,o){return r.bind(e,t,i,o)}function Gd(t,e){var r=t.length===1?jd:Na;return Ma(t,this,r,e.cache.create(),e.serializer)}function qd(t,e){return Ma(t,this,Na,e.cache.create(),e.serializer)}var Yd=function(){return JSON.stringify(arguments)},Xd=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,r){this.cache[e]=r},t}(),Kd={create:function(){return new Xd}},Wi={variadic:qd},di=function(){return di=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},di.apply(this,arguments)};var I;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(I||(I={}));var V;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(V||(V={}));var Ut;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Ut||(Ut={}));function Kn(t){return t.type===V.literal}function Jd(t){return t.type===V.argument}function Ba(t){return t.type===V.number}function za(t){return t.type===V.date}function Fa(t){return t.type===V.time}function La(t){return t.type===V.select}function Ha(t){return t.type===V.plural}function Zd(t){return t.type===V.pound}function Ra(t){return t.type===V.tag}function Va(t){return!!(t&&typeof t=="object"&&t.type===Ut.number)}function yo(t){return!!(t&&typeof t=="object"&&t.type===Ut.dateTime)}var $a=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qd=/(?:[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 ec(t){var e={};return t.replace(Qd,function(r){var i=r.length;switch(r[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===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"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-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=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-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"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-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"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<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 W=function(){return W=Object.assign||function(e){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)};var tc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function rc(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(tc).filter(function(p){return p.length>0}),r=[],i=0,o=e;i<o.length;i++){var n=o[i],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")}r.push({stem:a,options:l})}return r}function ic(t){return t.replace(/^(.*?)-/,"")}var Jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ua=/^(@+)?(\+|#+)?[rs]?$/g,oc=/(\*)(0+)|(#+)(0+)|(0+)/g,Wa=/^(0+)$/;function Zn(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Ua,function(r,i,o){return typeof o!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):o==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),e}function ja(t){switch(t){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 nc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Wa.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Qn(t){var e={},r=ja(t);return r||e}function sc(t){for(var e={},r=0,i=t;r<i.length;r++){var o=i[r];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=ic(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=W(W(W({},e),{notation:"scientific"}),o.options.reduce(function(l,h){return W(W({},l),Qn(h))},{}));continue;case"engineering":e=W(W(W({},e),{notation:"engineering"}),o.options.reduce(function(l,h){return W(W({},l),Qn(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(Wa.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(Jn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Jn,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=W(W({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=W(W({},e),Zn(n)));continue}if(Ua.test(o.stem)){e=W(W({},e),Zn(o.stem));continue}var s=ja(o.stem);s&&(e=W(W({},e),s));var a=nc(o.stem);a&&(e=W(W({},e),a))}return e}var Jr={"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 ac(t,e){for(var r="",i=0;i<t.length;i++){var o=t.charAt(i);if(o==="j"){for(var n=0;i+1<t.length&&t.charAt(i+1)===o;)n++,i++;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;)r+=l;for(;s-- >0;)r=h+r}else o==="J"?r+="H":r+=o}return r}function lc(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.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 r=t.language,i;r!=="root"&&(i=t.maximize().region);var o=Jr[i||""]||Jr[r||""]||Jr["".concat(r,"-001")]||Jr["001"];return o[0]}var ji,hc=new RegExp("^".concat($a.source,"*")),dc=new RegExp("".concat($a.source,"*$"));function D(t,e){return{start:t,end:e}}var cc=!!String.prototype.startsWith&&"_a".startsWith("a",1),uc=!!String.fromCodePoint,pc=!!Object.fromEntries,mc=!!String.prototype.codePointAt,_c=!!String.prototype.trimStart,fc=!!String.prototype.trimEnd,gc=!!Number.isSafeInteger,vc=gc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},xo=!0;try{var bc=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xo=((ji=bc.exec("a"))===null||ji===void 0?void 0:ji[0])==="a"}catch(t){xo=!1}var es=cc?function(e,r,i){return e.startsWith(r,i)}:function(e,r,i){return e.slice(i,i+r.length)===r},wo=uc?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i="",o=e.length,n=0,s;o>n;){if(s=e[n++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},ts=pc?Object.fromEntries:function(e){for(var r={},i=0,o=e;i<o.length;i++){var n=o[i],s=n[0],a=n[1];r[s]=a}return r},Ga=mc?function(e,r){return e.codePointAt(r)}:function(e,r){var i=e.length;if(!(r<0||r>=i)){var o=e.charCodeAt(r),n;return o<55296||o>56319||r+1===i||(n=e.charCodeAt(r+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},yc=_c?function(e){return e.trimStart()}:function(e){return e.replace(hc,"")},xc=fc?function(e){return e.trimEnd()}:function(e){return e.replace(dc,"")};function qa(t,e){return new RegExp(t,e)}var Co;if(xo){var rs=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Co=function(e,r){var i;rs.lastIndex=r;var o=rs.exec(e);return(i=o[1])!==null&&i!==void 0?i:""}}else Co=function(e,r){for(var i=[];;){var o=Ga(e,r);if(o===void 0||Ya(o)||Pc(o))break;i.push(o),r+=o>=65536?2:1}return wo.apply(void 0,i)};var wc=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,i){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(e,i);if(s.err)return s;o.push(s.val)}else{if(n===125&&e>0)break;if(n===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:V.pound,location:D(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(I.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Eo(this.peek()||0)){var s=this.parseTag(e,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},t.prototype.parseTag=function(e,r){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(o,"/>"),location:D(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,r,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Eo(this.char()))return this.error(I.INVALID_TAG,D(a,this.clonePosition()));var l=this.clonePosition(),h=this.parseTagName();return o!==h?this.error(I.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:o,children:s,location:D(i,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,D(a,this.clonePosition())))}else return this.error(I.UNCLOSED_TAG,D(i,this.clonePosition()))}else return this.error(I.INVALID_TAG,D(i,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Ec(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var i=this.clonePosition(),o="";;){var n=this.tryParseQuote(r);if(n){o+=n;continue}var s=this.tryParseUnquoted(e,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=D(i,this.clonePosition());return{val:{type:V.literal,value:o,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cc(this.peek()||0))?(this.bump(),"<"):null},t.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 r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return wo.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&e>0?null:(this.bump(),wo(i))},t.prototype.parseArgument=function(e,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,D(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(I.EMPTY_ARGUMENT,D(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(I.MALFORMED_ARGUMENT,D(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,D(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:o,location:D(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,D(i,this.clonePosition())):this.parseArgumentOptions(e,r,o,i);default:return this.error(I.MALFORMED_ARGUMENT,D(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),i=Co(this.message,r),o=r+i.length;this.bumpTo(o);var n=this.clonePosition(),s=D(e,n);return{value:i,location:s}},t.prototype.parseArgumentOptions=function(e,r,i,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(I.EXPECT_ARGUMENT_TYPE,D(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(I.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var u=D(d,this.clonePosition());h={style:p,styleLocation:u}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var y=D(o,this.clonePosition());if(h&&es(h==null?void 0:h.style,"::",0)){var A=yc(h.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(A,h.styleLocation);return c.err?c:{val:{type:V.number,value:i,location:y,style:c.val},err:null}}else{if(A.length===0)return this.error(I.EXPECT_DATE_TIME_SKELETON,y);var P=A;this.locale&&(P=ac(A,this.locale));var p={type:Ut.dateTime,pattern:P,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ec(P):{}},M=a==="date"?V.date:V.time;return{val:{type:M,value:i,location:y,style:p},err:null}}}return{val:{type:a==="number"?V.number:a==="date"?V.date:V.time,value:i,location:y,style:(n=h==null?void 0:h.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,D(k,di({},k)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),H=0;if(a!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),z=this.parseIdentifierIfPossible(),H=c.val}var te=this.tryParsePluralOrSelectOptions(e,a,r,z);if(te.err)return te;var g=this.tryParseArgumentClose(o);if(g.err)return g;var Y=D(o,this.clonePosition());return a==="select"?{val:{type:V.select,value:i,options:ts(te.val),location:Y},err:null}:{val:{type:V.plural,value:i,options:ts(te.val),offset:H,pluralType:a==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,D(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var i=[];try{i=rc(e)}catch(o){return this.error(I.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ut.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?sc(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,i,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(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=D(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}else break}if(l.has(h))return this.error(r==="select"?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(e+1,r,i);if(g.err)return g;var y=this.tryParseArgumentClose(u);if(y.err)return y;a.push([h,{value:g.val,location:D(u,this.clonePosition())}]),l.add(h),this.bumpSpace(),n=this.parseIdentifierIfPossible(),h=n.value,d=n.location}return a.length===0?this.error(r==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(I.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-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=D(o,this.clonePosition());return n?(s*=i,vc(s)?{val:s,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=Ga(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.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)}},t.prototype.bumpIf=function(e){if(es(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),i=this.message.indexOf(e,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.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 r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ya(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(e>=65536?2:1));return i!=null?i:null},t}();function Eo(t){return t>=97&&t<=122||t>=65&&t<=90}function Cc(t){return Eo(t)||t===47}function Ec(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Ya(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Pc(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Po(t){t.forEach(function(e){if(delete e.location,La(e)||Ha(e))for(var r in e.options)delete e.options[r].location,Po(e.options[r].value);else Ba(e)&&Va(e.style)||(za(e)||Fa(e))&&yo(e.style)?delete e.style.location:Ra(e)&&Po(e.children)})}function Sc(t,e){e===void 0&&(e={}),e=di({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new wc(t,e).parse();if(r.err){var i=SyntaxError(I[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return e!=null&&e.captureLocation||Po(r.val),r.val}var Wt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Wt||(Wt={}));var Ti=function(t){Ai(e,t);function e(r,i,o){var n=t.call(this,r)||this;return n.code=i,n.originalMessage=o,n}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),is=function(t){Ai(e,t);function e(r,i,o,n){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Wt.INVALID_VALUE,n)||this}return e}(Ti),Ac=function(t){Ai(e,t);function e(r,i,o){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Wt.INVALID_VALUE,o)||this}return e}(Ti),Tc=function(t){Ai(e,t);function e(r,i){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Wt.MISSING_VALUE,i)||this}return e}(Ti),le;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(le||(le={}));function kc(t){return t.length<2?t:t.reduce(function(e,r){var i=e[e.length-1];return!i||i.type!==le.literal||r.type!==le.literal?e.push(r):i.value+=r.value,e},[])}function Ic(t){return typeof t=="function"}function si(t,e,r,i,o,n,s){if(t.length===1&&Kn(t[0]))return[{type:le.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(Kn(d)){a.push({type:le.literal,value:d.value});continue}if(Zd(d)){typeof n=="number"&&a.push({type:le.literal,value:r.getNumberFormat(e).format(n)});continue}var c=d.value;if(!(o&&c in o))throw new Tc(c,s);var p=o[c];if(Jd(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),a.push({type:typeof p=="string"?le.literal:le.object,value:p});continue}if(za(d)){var u=typeof d.style=="string"?i.date[d.style]:yo(d.style)?d.style.parsedOptions:void 0;a.push({type:le.literal,value:r.getDateTimeFormat(e,u).format(p)});continue}if(Fa(d)){var u=typeof d.style=="string"?i.time[d.style]:yo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:le.literal,value:r.getDateTimeFormat(e,u).format(p)});continue}if(Ba(d)){var u=typeof d.style=="string"?i.number[d.style]:Va(d.style)?d.style.parsedOptions:void 0;u&&u.scale&&(p=p*(u.scale||1)),a.push({type:le.literal,value:r.getNumberFormat(e,u).format(p)});continue}if(Ra(d)){var g=d.children,y=d.value,A=o[y];if(!Ic(A))throw new Ac(y,"function",s);var P=si(g,e,r,i,o,n),M=A(P.map(function(H){return H.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(H){return{type:typeof H=="string"?le.literal:le.object,value:H}}))}if(La(d)){var k=d.options[p]||d.options.other;if(!k)throw new is(d.value,p,Object.keys(d.options),s);a.push.apply(a,si(k.value,e,r,i,o));continue}if(Ha(d)){var k=d.options["=".concat(p)];if(!k){if(!Intl.PluralRules)throw new Ti(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,Ht.MISSING_INTL_API,s);var H=r.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));P=d.options[H]||d.options.other}if(!P)throw new is(d.value,p,Object.keys(d.options),s);a.push.apply(a,ni(P.value,e,r,i,o,p-(d.offset||0)));continue}}return Tc(a)}function Ic(t,e){return e?Ne(Ne(Ne({},t||{}),e||{}),Object.keys(t).reduce(function(r,i){return r[i]=Ne(Ne({},t[i]),e[i]||{}),r},{})):t}function Dc(t,e){return e?Object.keys(t).reduce(function(r,i){return r[i]=Ic(t[i],e[i]),r},Ne({},t)):t}function ji(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Oc(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$i(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Vi([void 0],r,!1)))},{cache:ji(t.number),strategy:Ui.variadic}),getDateTimeFormat:$i(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Vi([void 0],r,!1)))},{cache:ji(t.dateTime),strategy:Ui.variadic}),getPluralRules:$i(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Vi([void 0],r,!1)))},{cache:ji(t.pluralRules),strategy:Ui.variadic})}}var Nc=function(){function t(e,r,i,o){r===void 0&&(r=t.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!==le.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 ni(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=r,this.resolvedLocale=t.resolveLocale(r),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=$d(s,["formatters"]);this.ast=t.__parse(e,Ne(Ne({},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=Dc(t.formats,i),this.formatters=o&&o.formatters||Oc(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(e);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=Pc,t.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"}}},t}();function Mc(t,e){if(e==null)return;if(e in t)return t[e];const r=e.split(".");let i=t;for(let o=0;o<r.length;o++)if(typeof i=="object"){if(o>0){const n=r.slice(o,r.length).join(".");if(n in i){i=i[n];break}}i=i[r[o]]}else i=void 0;return i}const Ze={},Bc=(t,e,r)=>r&&(e in Ze||(Ze[e]={}),t in Ze[e]||(Ze[e][t]=r),r),Ya=(t,e)=>{if(e==null)return;if(e in Ze&&t in Ze[e])return Ze[e][t];const r=Ti(e);for(let i=0;i<r.length;i++){const o=r[i],n=Fc(o,t);if(n)return Bc(t,e,n)}};let en;const Hr=Pi({});function zc(t){return en[t]||null}function Xa(t){return t in en}function Fc(t,e){if(!Xa(t))return null;const r=zc(t);return Mc(r,e)}function Lc(t){if(t==null)return;const e=Ti(t);for(let r=0;r<e.length;r++){const i=e[r];if(Xa(i))return i}}function Ka(t,...e){delete Ze[t],Hr.update(r=>(r[t]=Vd.all([r[t]||{},...e]),r))}qt([Hr],([t])=>Object.keys(t));Hr.subscribe(t=>en=t);const si={};function Hc(t,e){si[t].delete(e),si[t].size===0&&delete si[t]}function Ja(t){return si[t]}function Rc(t){return Ti(t).map(e=>{const r=Ja(e);return[e,r?[...r]:[]]}).filter(([,e])=>e.length>0)}function Po(t){return t==null?!1:Ti(t).some(e=>{var r;return(r=Ja(e))==null?void 0:r.size})}function Vc(t,e){return Promise.all(e.map(i=>(Hc(t,i),i().then(o=>o.default||o)))).then(i=>Ka(t,...i))}const cr={};function Za(t){if(!Po(t))return t in cr?cr[t]:Promise.resolve();const e=Rc(t);return cr[t]=Promise.all(e.map(([r,i])=>Vc(r,i))).then(()=>{if(Po(t))return Za(t);delete cr[t]}),cr[t]}const $c={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"}}},Uc={fallbackLocale:null,loadingDelay:200,formats:$c,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Wc=Uc;function Rt(){return Wc}const Gi=Pi(!1);var jc=Object.defineProperty,Gc=Object.defineProperties,qc=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,Yc=Object.prototype.hasOwnProperty,Xc=Object.prototype.propertyIsEnumerable,ns=(t,e,r)=>e in t?jc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Kc=(t,e)=>{for(var r in e||(e={}))Yc.call(e,r)&&ns(t,r,e[r]);if(os)for(var r of os(e))Xc.call(e,r)&&ns(t,r,e[r]);return t},Jc=(t,e)=>Gc(t,qc(e));let So;const di=Pi(null);function ss(t){return t.split("-").map((e,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Ti(t,e=Rt().fallbackLocale){const r=ss(t);return e?[...new Set([...r,...ss(e)])]:r}function vt(){return So!=null?So:void 0}di.subscribe(t=>{So=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Zc=t=>{if(t&&Lc(t)&&Po(t)){const{loadingDelay:e}=Rt();let r;return typeof window!="undefined"&&vt()!=null&&e?r=window.setTimeout(()=>Gi.set(!0),e):Gi.set(!0),Za(t).then(()=>{di.set(t)}).finally(()=>{clearTimeout(r),Gi.set(!1)})}return di.set(t)},Yt=Jc(Kc({},di),{set:Zc}),ki=t=>{const e=Object.create(null);return i=>{const o=JSON.stringify(i);return o in e?e[o]:e[o]=t(i)}};var Qc=Object.defineProperty,ci=Object.getOwnPropertySymbols,Qa=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,as=(t,e,r)=>e in t?Qc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tn=(t,e)=>{for(var r in e||(e={}))Qa.call(e,r)&&as(t,r,e[r]);if(ci)for(var r of ci(e))el.call(e,r)&&as(t,r,e[r]);return t},Xt=(t,e)=>{var r={};for(var i in t)Qa.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&ci)for(var i of ci(t))e.indexOf(i)<0&&el.call(t,i)&&(r[i]=t[i]);return r};const Sr=(t,e)=>{const{formats:r}=Rt();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},eu=ki(t=>{var e=t,{locale:r,format:i}=e,o=Xt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Sr("number",i)),new Intl.NumberFormat(r,o)}),tu=ki(t=>{var e=t,{locale:r,format:i}=e,o=Xt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Sr("date",i):Object.keys(o).length===0&&(o=Sr("date","short")),new Intl.DateTimeFormat(r,o)}),ru=ki(t=>{var e=t,{locale:r,format:i}=e,o=Xt(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Sr("time",i):Object.keys(o).length===0&&(o=Sr("time","short")),new Intl.DateTimeFormat(r,o)}),iu=(t={})=>{var e=t,{locale:r=vt()}=e,i=Xt(e,["locale"]);return eu(tn({locale:r},i))},ou=(t={})=>{var e=t,{locale:r=vt()}=e,i=Xt(e,["locale"]);return tu(tn({locale:r},i))},nu=(t={})=>{var e=t,{locale:r=vt()}=e,i=Xt(e,["locale"]);return ru(tn({locale:r},i))},su=ki((t,e=vt())=>new Nc(t,e,Rt().formats,{ignoreTag:Rt().ignoreTag})),au=(t,e={})=>{var r,i,o,n;let s=e;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=vt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Ya(t,l);if(!d)d=(n=(o=(i=(r=Rt()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:t,defaultValue:h}))!=null?o:h)!=null?n:t;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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=su(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,p.message)}return c},lu=(t,e)=>nu(e).format(t),hu=(t,e)=>ou(e).format(t),du=(t,e)=>iu(e).format(t),cu=(t,e=vt())=>Ya(t,e),uu=qt([Yt,Hr],()=>au);qt([Yt],()=>lu);qt([Yt],()=>hu);qt([Yt],()=>du);qt([Yt,Hr],()=>cu);window.emWidgets={topic:Ed};const pu=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function mu(t,e){Ka(t,e)}function _u(t){Yt.set(t)}const ls={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 fu=Object.defineProperty,gu=Object.defineProperties,vu=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,bu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,Ao=(t,e,r)=>e in t?fu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ui=(t,e)=>{for(var r in e||(e={}))bu.call(e,r)&&Ao(t,r,e[r]);if(hs)for(var r of hs(e))yu.call(e,r)&&Ao(t,r,e[r]);return t},tl=(t,e)=>gu(t,vu(e)),re=(t,e,r)=>(Ao(t,typeof e!="symbol"?e+"":e,r),r),To=(t,e,r)=>new Promise((i,o)=>{var n=l=>{try{a(r.next(l))}catch(h){o(h)}},s=l=>{try{a(r.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((r=r.apply(t,e)).next())});/**
|
|
18
|
+
`,Wt.MISSING_INTL_API,s);var z=r.getPluralRules(e,{type:d.pluralType}).select(p-(d.offset||0));k=d.options[z]||d.options.other}if(!k)throw new is(d.value,p,Object.keys(d.options),s);a.push.apply(a,si(k.value,e,r,i,o,p-(d.offset||0)));continue}}return kc(a)}function Dc(t,e){return e?Be(Be(Be({},t||{}),e||{}),Object.keys(t).reduce(function(r,i){return r[i]=Be(Be({},t[i]),e[i]||{}),r},{})):t}function Oc(t,e){return e?Object.keys(t).reduce(function(r,i){return r[i]=Dc(t[i],e[i]),r},Be({},t)):t}function Gi(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Nc(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ui(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,$i([void 0],r,!1)))},{cache:Gi(t.number),strategy:Wi.variadic}),getDateTimeFormat:Ui(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,$i([void 0],r,!1)))},{cache:Gi(t.dateTime),strategy:Wi.variadic}),getPluralRules:Ui(function(){for(var e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,$i([void 0],r,!1)))},{cache:Gi(t.pluralRules),strategy:Wi.variadic})}}var Mc=function(){function t(e,r,i,o){r===void 0&&(r=t.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!==le.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 si(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=r,this.resolvedLocale=t.resolveLocale(r),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Ud(s,["formatters"]);this.ast=t.__parse(e,Be(Be({},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=Oc(t.formats,i),this.formatters=o&&o.formatters||Nc(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(e);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=Sc,t.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"}}},t}();function Bc(t,e){if(e==null)return;if(e in t)return t[e];const r=e.split(".");let i=t;for(let o=0;o<r.length;o++)if(typeof i=="object"){if(o>0){const n=r.slice(o,r.length).join(".");if(n in i){i=i[n];break}}i=i[r[o]]}else i=void 0;return i}const ot={},zc=(t,e,r)=>r&&(e in ot||(ot[e]={}),t in ot[e]||(ot[e][t]=r),r),Xa=(t,e)=>{if(e==null)return;if(e in ot&&t in ot[e])return ot[e][t];const r=ki(e);for(let i=0;i<r.length;i++){const o=r[i],n=Lc(o,t);if(n)return zc(t,e,n)}};let tn;const Vr=Si({});function Fc(t){return tn[t]||null}function Ka(t){return t in tn}function Lc(t,e){if(!Ka(t))return null;const r=Fc(t);return Bc(r,e)}function Hc(t){if(t==null)return;const e=ki(t);for(let r=0;r<e.length;r++){const i=e[r];if(Ka(i))return i}}function Ja(t,...e){delete ot[t],Vr.update(r=>(r[t]=$d.all([r[t]||{},...e]),r))}Zt([Vr],([t])=>Object.keys(t));Vr.subscribe(t=>tn=t);const ai={};function Rc(t,e){ai[t].delete(e),ai[t].size===0&&delete ai[t]}function Za(t){return ai[t]}function Vc(t){return ki(t).map(e=>{const r=Za(e);return[e,r?[...r]:[]]}).filter(([,e])=>e.length>0)}function So(t){return t==null?!1:ki(t).some(e=>{var r;return(r=Za(e))==null?void 0:r.size})}function $c(t,e){return Promise.all(e.map(i=>(Rc(t,i),i().then(o=>o.default||o)))).then(i=>Ja(t,...i))}const pr={};function Qa(t){if(!So(t))return t in pr?pr[t]:Promise.resolve();const e=Vc(t);return pr[t]=Promise.all(e.map(([r,i])=>$c(r,i))).then(()=>{if(So(t))return Qa(t);delete pr[t]}),pr[t]}const Uc={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"}}},Wc={fallbackLocale:null,loadingDelay:200,formats:Uc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},jc=Wc;function jt(){return jc}const qi=Si(!1);var Gc=Object.defineProperty,qc=Object.defineProperties,Yc=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,ns=(t,e,r)=>e in t?Gc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jc=(t,e)=>{for(var r in e||(e={}))Xc.call(e,r)&&ns(t,r,e[r]);if(os)for(var r of os(e))Kc.call(e,r)&&ns(t,r,e[r]);return t},Zc=(t,e)=>qc(t,Yc(e));let Ao;const ci=Si(null);function ss(t){return t.split("-").map((e,r,i)=>i.slice(0,r+1).join("-")).reverse()}function ki(t,e=jt().fallbackLocale){const r=ss(t);return e?[...new Set([...r,...ss(e)])]:r}function yt(){return Ao!=null?Ao:void 0}ci.subscribe(t=>{Ao=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Qc=t=>{if(t&&Hc(t)&&So(t)){const{loadingDelay:e}=jt();let r;return typeof window!="undefined"&&yt()!=null&&e?r=window.setTimeout(()=>qi.set(!0),e):qi.set(!0),Qa(t).then(()=>{ci.set(t)}).finally(()=>{clearTimeout(r),qi.set(!1)})}return ci.set(t)},Qt=Zc(Jc({},ci),{set:Qc}),Ii=t=>{const e=Object.create(null);return i=>{const o=JSON.stringify(i);return o in e?e[o]:e[o]=t(i)}};var eu=Object.defineProperty,ui=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable,as=(t,e,r)=>e in t?eu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,rn=(t,e)=>{for(var r in e||(e={}))el.call(e,r)&&as(t,r,e[r]);if(ui)for(var r of ui(e))tl.call(e,r)&&as(t,r,e[r]);return t},er=(t,e)=>{var r={};for(var i in t)el.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&ui)for(var i of ui(t))e.indexOf(i)<0&&tl.call(t,i)&&(r[i]=t[i]);return r};const Tr=(t,e)=>{const{formats:r}=jt();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},tu=Ii(t=>{var e=t,{locale:r,format:i}=e,o=er(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Tr("number",i)),new Intl.NumberFormat(r,o)}),ru=Ii(t=>{var e=t,{locale:r,format:i}=e,o=er(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Tr("date",i):Object.keys(o).length===0&&(o=Tr("date","short")),new Intl.DateTimeFormat(r,o)}),iu=Ii(t=>{var e=t,{locale:r,format:i}=e,o=er(e,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Tr("time",i):Object.keys(o).length===0&&(o=Tr("time","short")),new Intl.DateTimeFormat(r,o)}),ou=(t={})=>{var e=t,{locale:r=yt()}=e,i=er(e,["locale"]);return tu(rn({locale:r},i))},nu=(t={})=>{var e=t,{locale:r=yt()}=e,i=er(e,["locale"]);return ru(rn({locale:r},i))},su=(t={})=>{var e=t,{locale:r=yt()}=e,i=er(e,["locale"]);return iu(rn({locale:r},i))},au=Ii((t,e=yt())=>new Mc(t,e,jt().formats,{ignoreTag:jt().ignoreTag})),lu=(t,e={})=>{var r,i,o,n;let s=e;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=yt(),default:h}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Xa(t,l);if(!d)d=(n=(o=(i=(r=jt()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:t,defaultValue:h}))!=null?o:h)!=null?n:t;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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=au(d,l).format(a)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,p.message)}return c},hu=(t,e)=>su(e).format(t),du=(t,e)=>nu(e).format(t),cu=(t,e)=>ou(e).format(t),uu=(t,e=yt())=>Xa(t,e),pu=Zt([Qt,Vr],()=>lu);Zt([Qt],()=>hu);Zt([Qt],()=>du);Zt([Qt],()=>cu);Zt([Qt,Vr],()=>uu);window.emWidgets={topic:Pd};const mu=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function ls(t,e){Ja(t,e)}function _u(t){Qt.set(t)}const hs={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 fu=Object.defineProperty,gu=Object.defineProperties,vu=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,bu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,To=(t,e,r)=>e in t?fu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pi=(t,e)=>{for(var r in e||(e={}))bu.call(e,r)&&To(t,r,e[r]);if(ds)for(var r of ds(e))yu.call(e,r)&&To(t,r,e[r]);return t},rl=(t,e)=>gu(t,vu(e)),ie=(t,e,r)=>(To(t,typeof e!="symbol"?e+"":e,r),r),ko=(t,e,r)=>new Promise((i,o)=>{var n=l=>{try{a(r.next(l))}catch(h){o(h)}},s=l=>{try{a(r.throw(l))}catch(h){o(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,s);a((r=r.apply(t,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
|
|
22
|
+
*/function q(t,e="24.5.12"){Object.defineProperty(t,"version",{get(){return e}});const r=customElements.get(t.is);if(!r)customElements.define(t.is,t);else{const i=r.version;i&&t.version&&i===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${r.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 xu extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}
|
|
26
|
+
*/class xu extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}q(xu);/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2019 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const
|
|
30
|
+
*/const li=globalThis,on=li.ShadowRoot&&(li.ShadyCSS===void 0||li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nn=Symbol(),cs=new WeakMap;let sn=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(on&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=cs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&cs.set(e,t))}return t}toString(){return this.cssText}};const wu=t=>new sn(typeof t=="string"?t:t+"",void 0,nn),w=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((i,o,n)=>i+(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)+t[n+1],t[0]);return new sn(r,t,nn)},il=(t,e)=>{if(on)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const i=document.createElement("style"),o=li.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}},us=on?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return wu(r)})(t):t;/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:Cu,defineProperty:Eu,getOwnPropertyDescriptor:Pu,getOwnPropertyNames:Su,getOwnPropertySymbols:Au,getPrototypeOf:Tu}=Object,
|
|
34
|
+
*/const{is:Cu,defineProperty:Eu,getOwnPropertyDescriptor:Pu,getOwnPropertyNames:Su,getOwnPropertySymbols:Au,getPrototypeOf:Tu}=Object,Gt=globalThis,ps=Gt.trustedTypes,ku=ps?ps.emptyScript:"",ms=Gt.reactiveElementPolyfillSupport,Er=(t,e)=>t,Io={toAttribute(t,e){switch(e){case Boolean:t=t?ku:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(i){r=null}}return r}},ol=(t,e)=>!Cu(t,e),_s={attribute:!0,type:String,converter:Io,reflect:!1,hasChanged:ol};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Gt.litPropertyMetadata!=null||(Gt.litPropertyMetadata=new WeakMap);class zt extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=_s){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,r);o!==void 0&&Eu(this.prototype,e,o)}}static getPropertyDescriptor(e,r,i){var o;const{get:n,set:s}=(o=Pu(this.prototype,e))!=null?o:{get(){return this[r]},set(a){this[r]=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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:_s}static _$Ei(){if(this.hasOwnProperty(Er("elementProperties")))return;const e=Tu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Er("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Er("properties"))){const r=this.properties,i=[...Su(r),...Au(r)];for(const o of i)this.createProperty(o,r[o])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[i,o]of r)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const o=this._$Eu(r,i);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)r.unshift(us(o))}else e!==void 0&&r.push(us(e));return r}static _$Eu(e,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const r=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return il(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EC(e,r){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Io).toAttribute(r,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){var i;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}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:Io;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,i){var o;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((o=i.hasChanged)!=null?o:ol)(this[e],r))return;this.P(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,i){var o;this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}_$ET(){return ko(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}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 r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(i)):this._$EU()}catch(o){throw r=!1,this._$EU(),o}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}var fs;zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Er("elementProperties")]=new Map,zt[Er("finalized")]=new Map,ms==null||ms({ReactiveElement:zt}),((fs=Gt.reactiveElementVersions)!=null?fs:Gt.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 mi=globalThis,_i=mi.trustedTypes,gs=_i?_i.createPolicy("lit-html",{createHTML:t=>t}):void 0,nl="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,sl="?"+it,Iu=`<${sl}>`,bt=document,kr=()=>bt.createComment(""),Ir=t=>t===null||typeof t!="object"&&typeof t!="function",an=Array.isArray,Du=t=>an(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Yi=`[
|
|
39
|
+
\f\r]`,mr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vs=/-->/g,bs=/>/g,mt=RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ys=/'/g,xs=/"/g,al=/^(?:script|style|textarea|title)$/i,qt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),ws=new WeakMap,_t=bt.createTreeWalker(bt,129);function ll(t,e){if(!an(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return gs!==void 0?gs.createHTML(e):e}const Ou=(t,e)=>{const r=t.length-1,i=[];let o,n=e===2?"<svg>":e===3?"<math>":"",s=mr;for(let a=0;a<r;a++){const l=t[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===mr?d[1]==="!--"?s=vs:d[1]!==void 0?s=bs:d[2]!==void 0?(al.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=mt):d[3]!==void 0&&(s=mt):s===mt?d[0]===">"?(s=o!=null?o:mr,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,h=d[1],s=d[3]===void 0?mt:d[3]==='"'?xs:ys):s===xs||s===ys?s=mt:s===vs||s===bs?s=mr:(s=mt,o=void 0);const u=s===mt&&t[a+1].startsWith("/>")?" ":"";n+=s===mr?l+Iu:c>=0?(i.push(h),l.slice(0,c)+nl+l.slice(c)+it+u):l+it+(c===-2?a:u)}return[ll(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Dr{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[h,d]=Ou(e,r);if(this.el=Dr.createElement(h,i),_t.currentNode=this.el.content,r===2||r===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=_t.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(nl)){const p=d[s++],u=o.getAttribute(c).split(it),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:g[2],strings:u,ctor:g[1]==="."?Mu:g[1]==="?"?Bu:g[1]==="@"?zu:Di}),o.removeAttribute(c)}else c.startsWith(it)&&(l.push({type:6,index:n}),o.removeAttribute(c));if(al.test(o.tagName)){const c=o.textContent.split(it),p=c.length-1;if(p>0){o.textContent=_i?_i.emptyScript:"";for(let u=0;u<p;u++)o.append(c[u],kr()),_t.nextNode(),l.push({type:2,index:++n});o.append(c[p],kr())}}}else if(o.nodeType===8)if(o.data===sl)l.push({type:2,index:n});else{let c=-1;for(;(c=o.data.indexOf(it,c+1))!==-1;)l.push({type:7,index:n}),c+=it.length-1}n++}}static createElement(e,r){const i=bt.createElement("template");return i.innerHTML=e,i}}function Yt(t,e,r=t,i){var o,n,s;if(e===qt)return e;let a=i!==void 0?(o=r._$Co)==null?void 0:o[i]:r._$Cl;const l=Ir(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(t),a._$AT(t,r,i)),i!==void 0?((s=r._$Co)!=null?s:r._$Co=[])[i]=a:r._$Cl=a),a!==void 0&&(e=Yt(t,a._$AS(t,e.values),a,i)),e}class Nu{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;const{el:{content:i},parts:o}=this._$AD,n=((r=e==null?void 0:e.creationScope)!=null?r:bt).importNode(i,!0);_t.currentNode=n;let s=_t.nextNode(),a=0,l=0,h=o[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new $r(s,s.nextSibling,this,e):h.type===1?d=new h.ctor(s,h.name,h.strings,this,e):h.type===6&&(d=new Fu(s,this,e)),this._$AV.push(d),h=o[++l]}a!==(h==null?void 0:h.index)&&(s=_t.nextNode(),a++)}return _t.currentNode=bt,n}p(e){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}}class $r{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,i,o){var n;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Yt(this,e,r),Ir(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==qt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Du(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!==J&&Ir(this._$AH)?this._$AA.nextSibling.data=e:this.T(bt.createTextNode(e)),this._$AH=e}$(e){var r;const{values:i,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Dr.createElement(ll(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(i);else{const s=new Nu(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let r=ws.get(e.strings);return r===void 0&&ws.set(e.strings,r=new Dr(e)),r}k(e){an(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,o=0;for(const n of e)o===r.length?r.push(i=new $r(this.O(kr()),this.O(kr()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class Di{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}_$AI(e,r=this,i,o){const n=this.strings;let s=!1;if(n===void 0)e=Yt(this,e,r,0),s=!Ir(e)||e!==this._$AH&&e!==qt,s&&(this._$AH=e);else{const a=e;let l,h;for(e=n[0],l=0;l<n.length-1;l++)h=Yt(this,a[i+l],r,l),h===qt&&(h=this._$AH[l]),s||(s=!Ir(h)||h!==this._$AH[l]),h===J?e=J:e!==J&&(e+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}s&&!o&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Mu extends Di{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}}class Bu extends Di{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}}class zu extends Di{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){var i;if((e=(i=Yt(this,e,r,0))!=null?i:J)===qt)return;const o=this._$AH,n=e===J&&o!==J||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==J&&(o===J||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Fu{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Yt(this,e)}}const Cs=mi.litHtmlPolyfillSupport;var Es;Cs==null||Cs(Dr,$r),((Es=mi.litHtmlVersions)!=null?Es:mi.litHtmlVersions=[]).push("3.2.1");const Lu=(t,e,r)=>{var i,o;const n=(i=r==null?void 0:r.renderBefore)!=null?i:e;let s=n._$litPart$;if(s===void 0){const a=(o=r==null?void 0:r.renderBefore)!=null?o:null;n._$litPart$=s=new $r(e.insertBefore(kr(),a),a,void 0,r!=null?r:{})}return s._$AI(t),s};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/class
|
|
44
|
+
*/class Lt extends zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const r=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=r.firstChild),r}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lu(r,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 qt}}var Ps;Lt._$litElement$=!0,Lt.finalized=!0,(Ps=globalThis.litElementHydrateSupport)==null||Ps.call(globalThis,{LitElement:Lt});const Ss=globalThis.litElementPolyfillSupport;Ss==null||Ss({LitElement:Lt});var As;((As=globalThis.litElementVersions)!=null?As: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,13 +49,13 @@ 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
|
|
53
|
-
`)}const
|
|
52
|
+
*/const hl=[],Do=new Set,ln=new Set;function dl(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Ru(t){return dl(customElements.get(t))}function Vu(t=[]){return[t].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 cl(t,e){return(t||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(e))}function ul(t){return t.map(e=>e.cssText).join(`
|
|
53
|
+
`)}const fi="vaadin-themable-mixin-style";function $u(t,e){const r=document.createElement("style");r.id=fi,r.textContent=ul(t),e.content.appendChild(r)}function Uu(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof Lt)[...t.shadowRoot.querySelectorAll("style")].forEach(r=>r.remove()),il(t.shadowRoot,e.elementStyles);else{const r=t.shadowRoot.getElementById(fi),i=e.prototype._template;r.textContent=i.content.getElementById(fi).textContent}}function Wu(t){Do.forEach(e=>{const r=e.deref();r instanceof t?Uu(r):r||Do.delete(e)})}function pl(t){if(t.prototype instanceof Lt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(fi).textContent=ul(t.getStylesForThis())}ln.forEach(e=>{const r=customElements.get(e);r!==t&&r.prototype instanceof t&&pl(r)})}function ju(t,e){const r=t.__themes;return!r||!e?!1:r.some(i=>i.styles.some(o=>e.some(n=>n.cssText===o.cssText)))}function T(t,e,r={}){e=Vu(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,r):hl.push({themeFor:t,styles:e,include:r.include,moduleId:r.moduleId}),t&&ln.forEach(i=>{if(cl(t,i)&&Ru(i)){const o=customElements.get(i);ju(o,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),pl(o),Wu(o)}})}function Oo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():hl}function Gu(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function ml(t){const e=[];return t.include&&[].concat(t.include).forEach(r=>{const i=Oo().find(o=>o.moduleId===r);i?e.push(...ml(i),...i.styles):console.warn(`Included moduleId ${r} not found in style registry`)},t.styles),e}function qu(t){const e=`${t}-default-theme`,r=Oo().filter(i=>i.moduleId!==e&&cl(i.themeFor,t)).map(i=>rl(pi({},i),{styles:[...ml(i),...i.styles],includePriority:Gu(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return r.length>0?r:Oo().filter(i=>i.moduleId===e)}const pe=t=>class extends Hu(t){constructor(){super(),Do.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ln.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||dl(this)||$u(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...i,...qu(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
57
|
*/const Yu=(t,...e)=>{const r=document.createElement("style");r.id=t,r.textContent=e.map(i=>i.toString()).join(`
|
|
58
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},
|
|
58
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},tr=(t,...e)=>{Yu(`lumo-${t}`,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/
|
|
@@ -144,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
144
144
|
--lumo-disabled-text-color: GrayText;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;tr("color-props",Xu);const Ku=w`
|
|
148
148
|
[theme~='dark'] {
|
|
149
149
|
/* Base (background) */
|
|
150
150
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -262,7 +262,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
262
262
|
pre code {
|
|
263
263
|
background: transparent;
|
|
264
264
|
}
|
|
265
|
-
`;
|
|
265
|
+
`;T("",Ku,{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/
|
|
@@ -319,7 +319,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
319
319
|
--lumo-icons-upload: '\\ea29';
|
|
320
320
|
--lumo-icons-user: '\\ea2a';
|
|
321
321
|
}
|
|
322
|
-
`;
|
|
322
|
+
`;tr("font-icons",Ju);/**
|
|
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/
|
|
@@ -338,7 +338,7 @@ 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
|
+
`;tr("sizing-props",Zu);/**
|
|
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/
|
|
@@ -365,7 +365,7 @@ 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
|
+
`;tr("spacing-props",Qu);/**
|
|
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/
|
|
@@ -469,7 +469,7 @@ 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
|
+
`;tr("style-props",ep);/**
|
|
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/
|
|
@@ -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
|
-
`;
|
|
588
|
+
`;T("",rp,{moduleId:"lumo-typography"});tr("typography-props",tp);T("vaadin-checkbox",w`
|
|
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 ip=/(url\()([^)]*)(\))/g,op=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,
|
|
908
|
+
*/let ip=/(url\()([^)]*)(\))/g,op=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Zr,ge;function Pr(t,e){if(t&&op.test(t)||t==="//")return t;if(Zr===void 0){Zr=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",Zr=r.href==="http://a/c%20d"}catch(r){}}if(e||(e=document.baseURI||window.location.href),Zr)try{return new URL(t,e).href}catch(r){return t}return ge||(ge=document.implementation.createHTMLDocument("temp"),ge.base=ge.createElement("base"),ge.head.appendChild(ge.base),ge.anchor=ge.createElement("a"),ge.body.appendChild(ge.anchor)),ge.base.href=e,ge.anchor.href=t,ge.anchor.href||t}function hn(t,e){return t.replace(ip,function(r,i,o,n){return i+"'"+Pr(o.replace(/["']/g,""),e)+"'"+n})}function dn(t){return t.substring(0,t.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 _l=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const np=_l&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let sp=window.Polymer&&window.Polymer.rootPath||dn(document.baseURI||window.location.href),gi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let vi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ap=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,fl=window.Polymer&&window.Polymer.legacyOptimizations||!1,gl=window.Polymer&&window.Polymer.legacyWarnings||!1,lp=window.Polymer&&window.Polymer.syncInitialRender||!1,No=window.Polymer&&window.Polymer.legacyUndefined||!1,hp=window.Polymer&&window.Polymer.orderedComputed||!1,Ts=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dp=window.Polymer&&window.Polymer.fastDomIf||!1,ks=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let cp=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 up=0;const
|
|
924
|
+
*/let up=0;const j=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let r=up++;function i(o){let n=o.__mixinSet;if(n&&n[r])return o;let s=e,a=s.get(o);if(!a){a=t(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[r]=!0,a.__mixinSet=l}return a}return i};/**
|
|
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 cn={},vl={};function Is(t,e){cn[t]=vl[t.toLowerCase()]=e}function Ds(t){return cn[t]||vl[t.toLowerCase()]}function pp(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Or extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,r){if(e){let i=Ds(e);return i&&r?i.querySelector(r):i}return null}attributeChangedCallback(e,r,i,o){r!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=Pr(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=dn(r)}return this.__assetpath}register(e){if(e=e||this.id,e){if(vi&&Ds(e)!==void 0)throw Is(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Is(e,this),pp(this)}}}Or.prototype.modules=cn;customElements.define("dom-module",Or);/**
|
|
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 mp="link[rel=import][type~=css]",_p="include",
|
|
940
|
+
*/const mp="link[rel=import][type~=css]",_p="include",Os="shady-unscoped";function bl(t){return Or.import(t)}function Ns(t){let e=t.body?t.body:t;const r=hn(e.textContent,t.baseURI),i=document.createElement("style");return i.textContent=r,i}function fp(t){const e=t.trim().split(/\s+/),r=[];for(let i=0;i<e.length;i++)r.push(...gp(e[i]));return r}function gp(t){const e=bl(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(e._styles===void 0){const r=[];r.push(...xl(e));const i=e.querySelector("template");i&&r.push(...yl(i,e.assetpath)),e._styles=r}return e._styles}function yl(t,e){if(!t._styles){const r=[],i=t.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let n=i[o],s=n.getAttribute(_p);s&&r.push(...fp(s).filter(function(a,l,h){return h.indexOf(a)===l})),e&&(n.textContent=hn(n.textContent,e)),r.push(n)}t._styles=r}return t._styles}function vp(t){let e=bl(t);return e?xl(e):[]}function xl(t){const e=[],r=t.querySelectorAll(mp);for(let i=0;i<r.length;i++){let o=r[i];if(o.import){const n=o.import,s=o.hasAttribute(Os);if(s&&!n._unscopedStyle){const a=Ns(n);a.setAttribute(Os,""),n._unscopedStyle=a}else n._style||(n._style=Ns(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
|
|
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
945
945
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
946
946
|
Code distributed by Google as part of the polymer project is also
|
|
947
947
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
948
|
-
*/const
|
|
948
|
+
*/const ee=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;/**
|
|
949
949
|
@license
|
|
950
950
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
951
951
|
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 Mo(t){return t.indexOf(".")>=0}function xt(t){let e=t.indexOf(".");return e===-1?t:t.slice(0,e)}function wl(t,e){return t.indexOf(e+".")===0}function Nr(t,e){return e.indexOf(t+".")===0}function Mr(t,e,r){return e+r.slice(t.length)}function bp(t,e){return t===e||wl(t,e)||Nr(t,e)}function br(t){if(Array.isArray(t)){let e=[];for(let r=0;r<t.length;r++){let i=t[r].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return t}function Cl(t){return Array.isArray(t)?br(t).split("."):t.toString().split(".")}function ue(t,e,r){let i=t,o=Cl(e);for(let n=0;n<o.length;n++){if(!i)return;let s=o[n];i=i[s]}return r&&(r.path=o.join(".")),i}function Ms(t,e,r){let i=t,o=Cl(e),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(i=i[a],!i)return}i[n]=r}else i[e]=r;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 bi={},yp=/-[a-z]/g,xp=/([A-Z])/g;function El(t){return bi[t]||(bi[t]=t.indexOf("-")<0?t:t.replace(yp,e=>e[1].toUpperCase()))}function Oi(t){return bi[t]||(bi[t]=t.replace(xp,"-$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 wp=0,
|
|
972
|
+
*/let wp=0,Pl=0,Ht=[],Cp=0,Bo=!1,Sl=document.createTextNode("");new window.MutationObserver(Ep).observe(Sl,{characterData:!0});function Ep(){Bo=!1;const t=Ht.length;for(let e=0;e<t;e++){let r=Ht[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Ht.splice(0,t),Pl+=t}const Pp={after(t){return{run(e){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}},Al={run(t){return Bo||(Bo=!0,Sl.textContent=Cp++),Ht.push(t),wp++},cancel(t){const e=t-Pl;if(e>=0){if(!Ht[e])throw new Error("invalid async handle: "+t);Ht[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 Sp=
|
|
980
|
+
*/const Sp=Al,Tl=j(t=>{class e extends t{static createProperties(i){const o=this.prototype;for(let n in i)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(n){this._setPendingProperty(i,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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,n){let s=this.__data[i],a=this._shouldPropertyChange(i,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=s),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Sp.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(i,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,n)),this.__dataCounter--}_shouldPropertiesChange(i,o,n){return!!o}_propertiesChanged(i,o,n){}_shouldPropertyChange(i,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(i,o,n,s){o!==n&&this._attributeToProperty(i,n),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,n,s)}_attributeToProperty(i,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[i]||i;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,n){this.__serializing=!0,n=arguments.length<3?this[i]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(i=ee(i)),s===void 0?i.removeAttribute(n):i.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}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
|
|
988
|
+
*/const kl={};let Qr=HTMLElement.prototype;for(;Qr;){let t=Object.getOwnPropertyNames(Qr);for(let e=0;e<t.length;e++)kl[t[e]]=!0;Qr=Object.getPrototypeOf(Qr)}const Ap=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Tp(t,e){if(!kl[e]){let r=t[e];r!==void 0&&(t.__data?t._setPendingProperty(e,r):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=r))}}const kp=j(t=>{const e=Tl(t);class r extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(El(o[n]))}static attributeNameForProperty(o){return Oi(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(Ap(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){Tp(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return r});/**
|
|
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 Ip={"dom-if":!0,"dom-repeat":!0};let
|
|
996
|
+
*/const Ip={"dom-if":!0,"dom-repeat":!0};let Bs=!1,zs=!1;function Dp(){if(!Bs){Bs=!0;const t=document.createElement("textarea");t.placeholder="a",zs=t.placeholder===t.textContent}return zs}function Op(t){Dp()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Np=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,r,i)=>{const o=r.getAttribute(i);if(t&&i.startsWith("on-")){e.setAttribute(i,t.createScript(o,i));return}e.setAttribute(i,o)}})();function Mp(t){let e=t.getAttribute("is");if(e&&Ip[e]){let r=t;for(r.removeAttribute("is"),t=r.ownerDocument.createElement(e),r.parentNode.replaceChild(t,r),t.appendChild(r);r.attributes.length;){const{name:i}=r.attributes[0];Np(t,r,i),r.removeAttribute(i)}}return t}function Il(t,e){let r=e.parentInfo&&Il(t,e.parentInfo);if(r){for(let i=r.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return t}function Bp(t,e,r,i){i.id&&(e[i.id]=r)}function zp(t,e,r){if(r.events&&r.events.length)for(let i=0,o=r.events,n;i<o.length&&(n=o[i]);i++)t._addMethodEventListenerToNode(e,n.name,n.value,t)}function Fp(t,e,r,i){r.templateInfo&&(e._templateInfo=r.templateInfo,e._parentTemplateInfo=i)}function Lp(t,e,r){return t=t._methodHost||t,function(i){t[r]?t[r](i,i.detail):console.warn("listener method `"+r+"` not defined")}}const Hp=j(t=>{class e extends t{static _parseTemplate(i,o){if(!i._templateInfo){let n=i._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,n,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,n){return this._parseTemplateNode(i.content,o,n)}static _parseTemplateNode(i,o,n){let s=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),Op(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(i,o,n){if(!(i.localName==="script"||i.localName==="style"))for(let s=i.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Mp(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,i.removeChild(d),d=l;if(o.stripWhiteSpace&&!s.textContent.trim()){i.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(i,o,n){let s=i,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,n){let s=!1,a=Array.from(i.attributes);for(let l=a.length-1,h;h=a[l];l--)s=this._parseTemplateNodeAttribute(i,o,n,h.name,h.value)||s;return s}static _parseTemplateNodeAttribute(i,o,n,s,a){return s.slice(0,3)==="on-"?(i.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(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let n=o.nodeInfoList,s=o.content||i.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]=Il(a,c);Bp(this,a.$,p,c),Fp(this,p,c,o),zp(this,p,c)}return a=a,a}_addMethodEventListenerToNode(i,o,n,s){s=s||i;let a=Lp(s,o,n);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,n){i.addEventListener(o,n)}_removeEventListenerFromNode(i,o,n){i.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 Nr=0;const Mr=[],D={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Il="__computeInfo",Rp=/[A-Z]/;function Yi(t,e,r){let i=t[e];if(!i)i=t[e]={};else if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),r))for(let o in i){let n=i[o],s=i[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return i}function vr(t,e,r,i,o,n){if(e){let s=!1;const a=Nr++;for(let l in r){let h=o?bt(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||cn(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(t,l,r,i,u.info,o,n),s=!0)}return s}return!1}function Vp(t,e,r,i,o,n,s,a){let l=!1,h=s?bt(i):i,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==r)&&(!s||cn(i,u.trigger))&&(u.info&&(u.info.lastRun=r),u.fn(t,i,o,n,u.info,s,a),l=!0);return l}function cn(t,e){if(e){let r=e.name;return r==t||!!(e.structured&&xl(r,t))||!!(e.wildcard&&Dr(r,t))}else return!0}function zs(t,e,r,i,o){let n=typeof o.method=="string"?t[o.method]:o.method,s=o.property;n?n.call(t,t.__data[s],i[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function $p(t,e,r,i,o){let n=t[D.NOTIFY],s,a=Nr++;for(let h in e)e[h]&&(n&&Vp(t,n,a,h,r,i,o)||o&&Up(t,h,r))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Up(t,e,r){let i=bt(e);if(i!==e){let o=Di(i)+"-changed";return Dl(t,o,r[e],e),!0}return!1}function Dl(t,e,r,i){let o={value:r,queueProperty:!0};i&&(o.path=i),te(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Wp(t,e,r,i,o,n){let s=(n?bt(e):e)!=e?e:null,a=s?pe(t,s):t.__data[e];s&&a===void 0&&(a=r[e]),Dl(t,o.eventName,a,s)}function jp(t,e,r,i,o){let n,s=t.detail,a=s&&s.path;a?(i=Or(r,i,a),n=s&&s.value):n=t.currentTarget[r],n=o?!n:n,(!e[D.READ_ONLY]||!e[D.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Gp(t,e,r,i,o){let n=t.__data[e];fi&&(n=fi(n,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,n)}function qp(t,e,r,i){let o=t[D.COMPUTE];if(o)if(hp){Nr++;const n=Xp(t),s=[];for(let l in e)Fs(l,o,s,n,i);let a;for(;a=s.shift();)Ol(t,"",e,r,a)&&Fs(a.methodInfo,o,s,n,i);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let n=e;for(;vr(t,o,n,r,i);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),n=t.__dataPending,t.__dataPending=null}}const Yp=(t,e,r)=>{let i=0,o=e.length-1,n=-1;for(;i<=o;){const s=i+o>>1,a=r.get(e[s].methodInfo)-r.get(t.methodInfo);if(a<0)i=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,t)},Fs=(t,e,r,i,o)=>{const n=o?bt(t):t,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Nr&&(!o||cn(t,l.trigger))&&(l.info.lastRun=Nr,Yp(l.info,r,i))}};function Xp(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[D.COMPUTE];let{counts:i,ready:o,total:n}=Kp(t),s;for(;s=o.shift();){e.set(s,e.size);const a=r[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--i[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}function Kp(t){const e=t[Il],r={},i=t[D.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=r[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in i)e[s]||o.push(s);return{counts:r,ready:o,total:n}}function Ol(t,e,r,i,o){let n=Bo(t,e,r,i,o);if(n===Mr)return!1;let s=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,n,!0):(t[s]=n,!1)}function Jp(t,e,r){let i=t.__dataLinkedPaths;if(i){let o;for(let n in i){let s=i[n];Dr(n,e)?(o=Or(n,s,e),t._setPendingPropertyOrPath(o,r,!0,!0)):Dr(s,e)&&(o=Or(s,n,e),t._setPendingPropertyOrPath(o,r,!0,!0))}}}function Xi(t,e,r,i,o,n,s){r.bindings=r.bindings||[];let a={kind:i,target:o,parts:n,literal:s,isCompound:n.length!==1};if(r.bindings.push(a),rm(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Di(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,Zp(t,e,a,d,l)}}function Zp(t,e,r,i,o){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let n=i.dependencies,s={index:o,binding:r,part:i,evaluator:t};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=Ml(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Qp,info:s,trigger:l})}}}function Qp(t,e,r,i,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=r[e];e=Or(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&t._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(t,h,e,r,i,n);d!==Mr&&em(t,a,l,h,d)}}function em(t,e,r,i,o){if(o=tm(e,o,r,i),fi&&(o=fi(o,r.target,r.kind,e)),r.kind=="attribute")t._valueToNodeAttribute(e,o,r.target);else{let n=r.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[D.READ_ONLY]||!e[D.READ_ONLY][n])&&e._setPendingProperty(n,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,n,o)}}function tm(t,e,r,i){if(r.isCompound){let o=t.__dataCompoundStorage[r.target];o[i.compoundIndex]=e,e=o.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function rm(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function im(t,e){let{nodeList:r,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let n=i[o],s=r[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];om(s,h),nm(s,t,h)}s.__dataHost=t}}function om(t,e){if(e.isCompound){let r=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let s=0;s<i.length;s++)o[s]=i[s].literal;let n=e.target;r[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(t=te(t)),t[n]=e.literal)}}function nm(t,e,r){if(r.listenerEvent){let i=r.parts[0];t.addEventListener(r.listenerEvent,function(o){jp(o,e,r.target,i.source,i.negate)})}}function Ls(t,e,r,i,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||t._addPropertyEffect(l.rootProperty,r,{fn:i,info:s,trigger:l});return n&&t._addPropertyEffect(e.methodName,r,{fn:i,info:s}),s}function Bo(t,e,r,i,o){let n=t._methodHost||t,s=n[o.methodName];if(s){let a=t._marshalArgs(o.args,e,r);return a===Mr?Mr:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const sm=[],Nl="(?:[a-zA-Z_$][\\w.:$\\-*]*)",am="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",lm="(?:'(?:[^'\\\\]|\\\\.)*')",hm='(?:"(?:[^"\\\\]|\\\\.)*")',dm="(?:"+lm+"|"+hm+")",Hs="(?:("+Nl+"|"+am+"|"+dm+")\\s*)",cm="(?:"+Hs+"(?:,\\s*"+Hs+")*)",um="(?:\\(\\s*(?:"+cm+"?)\\)\\s*)",pm="("+Nl+"\\s*"+um+"?)",mm="(\\[\\[|{{)\\s*",_m="(?:]]|}})",fm="(?:(!)\\s*)?",gm=mm+fm+pm+_m,Rs=new RegExp(gm,"g");function Vs(t){let e="";for(let r=0;r<t.length;r++){let i=t[r].literal;e+=i||""}return e}function Ki(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:sm};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return vm(i,r)}else return r}return null}function vm(t,e){return e.args=t.map(function(r){let i=Ml(r);return i.literal||(e.static=!1),i},this),e}function Ml(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=e.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(e),r.literal=!0;break}return r.literal||(r.rootProperty=bt(e),r.structured=No(e),r.structured&&(r.wildcard=e.slice(-2)==".*",r.wildcard&&(r.name=e.slice(0,-2)))),r}function $s(t,e,r){let i=pe(t,r);return i===void 0&&(i=e[r]),i}function Bl(t,e,r,i){const o={indexSplices:i};Oo&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(r+".splices",o),t.notifyPath(r+".length",e.length),Oo&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function pr(t,e,r,i,o,n){Bl(t,e,r,[{index:i,addedCount:o,removed:n,object:e,type:"splice"}])}function bm(t){return t[0].toUpperCase()+t.substring(1)}const un=G(t=>{const e=Hp(kp(t));class r 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 D}_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(mr.length){let o=mr[mr.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[D.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==D.READ_ONLY);let a=Yi(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=Yi(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,D.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,D.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,D.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,D.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||bt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=pe(this,o);if(o=Ns(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return Jp(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=te(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&No(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[D.NOTIFY]&&this[D.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[D.READ_ONLY]||!this[D.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;qp(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),vr(this,this[D.REFLECT],n,s,a),vr(this,this[D.OBSERVE],n,s,a),l&&$p(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[D.PROPAGATE]&&vr(this,this[D.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{vr(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=gr(o),n=gr(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=gr(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=pe(this,o,s);Bl(this,a,s.path,n)}get(o,n){return pe(n||this,o)}set(o,n,s){s?Ns(s,o,n):(!this[D.READ_ONLY]||!this[D.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=pe(this,o,s),l=a.length,h=a.push(...n);return n.length&&pr(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=pe(this,o,n),a=!!s.length,l=s.pop();return a&&pr(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=pe(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)&&pr(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=pe(this,o,n),a=!!s.length,l=s.shift();return a&&pr(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=pe(this,o,s),l=a.unshift(...n);return n.length&&pr(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=pe(this,o,a),s=a.path}else Array.isArray(o)?s=gr(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,D.READ_ONLY),n&&(this["_set"+bm(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,D.OBSERVE,{fn:zs,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,D.OBSERVE,{fn:zs,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Ki(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");Ls(this,s,D.OBSERVE,Bo,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,D.NOTIFY,{fn:Wp,info:{eventName:Di(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,D.REFLECT,{fn:Gp,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Ki(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=Ls(this,a,D.COMPUTE,Ol,o,s);Yi(this,Il)[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:g,literal:y}=o[h];if(!y)if(u){const k=Dr(c,n),E=$s(a,s,k?n:c);g={path:k?n:c,value:E,base:k?pe(a,c):E}}else g=p?$s(a,s,c):a[c];if(Oo&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Mr;l[h]=g}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),mr.push(this);let s=super._stampTemplate(o,n);if(mr.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,im(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];te(te(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=Vs(l)||" ",Xi(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";Rp.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=Vs(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=Cl(a)),Xi(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";As&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let p=h.hostProps;if(dp&&d)p&&(n.hostProps=Object.assign(n.hostProps||{},p),As||(s.parentInfo.noted=!0));else{let u="{";for(let g in p){let y=[{mode:u,source:g,dependencies:[g],hostProp:!0}];Xi(this,n,s,"property","_host_"+g,y)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=Rs.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="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(u=c.substring(g+2),c=c.substring(0,g),p=!0);let y=Ki(c),k=[];if(y){let{args:E,methodName:A}=y;for(let H=0;H<E.length;H++){let F=E[H];F.literal||k.push(F)}let P=n.dynamicFns;(P&&P[A]||y.static)&&(k.push(A),y.dynamicFn=!0)}else k.push(c);s.push({source:c,mode:h,negate:d,customEvent:p,signature:y,dependencies:k,event:u}),a=Rs.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=Bo(o,s,a,l,n.signature):s!=n.source?d=pe(o,n.source):h&&No(s)?d=pe(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return r}),mr=[];/**
|
|
1006
|
+
*/let Br=0;const zr=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Dl="__computeInfo",Rp=/[A-Z]/;function Xi(t,e,r){let i=t[e];if(!i)i=t[e]={};else if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),r))for(let o in i){let n=i[o],s=i[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return i}function yr(t,e,r,i,o,n){if(e){let s=!1;const a=Br++;for(let l in r){let h=o?xt(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||un(l,u.trigger))&&(u.info&&(u.info.lastRun=a),u.fn(t,l,r,i,u.info,o,n),s=!0)}return s}return!1}function Vp(t,e,r,i,o,n,s,a){let l=!1,h=s?xt(i):i,d=e[h];if(d)for(let c=0,p=d.length,u;c<p&&(u=d[c]);c++)(!u.info||u.info.lastRun!==r)&&(!s||un(i,u.trigger))&&(u.info&&(u.info.lastRun=r),u.fn(t,i,o,n,u.info,s,a),l=!0);return l}function un(t,e){if(e){let r=e.name;return r==t||!!(e.structured&&wl(r,t))||!!(e.wildcard&&Nr(r,t))}else return!0}function Fs(t,e,r,i,o){let n=typeof o.method=="string"?t[o.method]:o.method,s=o.property;n?n.call(t,t.__data[s],i[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function $p(t,e,r,i,o){let n=t[O.NOTIFY],s,a=Br++;for(let h in e)e[h]&&(n&&Vp(t,n,a,h,r,i,o)||o&&Up(t,h,r))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Up(t,e,r){let i=xt(e);if(i!==e){let o=Oi(i)+"-changed";return Ol(t,o,r[e],e),!0}return!1}function Ol(t,e,r,i){let o={value:r,queueProperty:!0};i&&(o.path=i),ee(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Wp(t,e,r,i,o,n){let s=(n?xt(e):e)!=e?e:null,a=s?ue(t,s):t.__data[e];s&&a===void 0&&(a=r[e]),Ol(t,o.eventName,a,s)}function jp(t,e,r,i,o){let n,s=t.detail,a=s&&s.path;a?(i=Mr(r,i,a),n=s&&s.value):n=t.currentTarget[r],n=o?!n:n,(!e[O.READ_ONLY]||!e[O.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,n,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Gp(t,e,r,i,o){let n=t.__data[e];gi&&(n=gi(n,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,n)}function qp(t,e,r,i){let o=t[O.COMPUTE];if(o)if(hp){Br++;const n=Xp(t),s=[];for(let l in e)Ls(l,o,s,n,i);let a;for(;a=s.shift();)Nl(t,"",e,r,a)&&Ls(a.methodInfo,o,s,n,i);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let n=e;for(;yr(t,o,n,r,i);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),n=t.__dataPending,t.__dataPending=null}}const Yp=(t,e,r)=>{let i=0,o=e.length-1,n=-1;for(;i<=o;){const s=i+o>>1,a=r.get(e[s].methodInfo)-r.get(t.methodInfo);if(a<0)i=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),e.splice(n,0,t)},Ls=(t,e,r,i,o)=>{const n=o?xt(t):t,s=e[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Br&&(!o||un(t,l.trigger))&&(l.info.lastRun=Br,Yp(l.info,r,i))}};function Xp(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const r=t[O.COMPUTE];let{counts:i,ready:o,total:n}=Kp(t),s;for(;s=o.shift();){e.set(s,e.size);const a=r[s];a&&a.forEach(l=>{const h=l.info.methodInfo;--n,--i[h]===0&&o.push(h)})}n!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}function Kp(t){const e=t[Dl],r={},i=t[O.COMPUTE],o=[];let n=0;for(let s in e){const a=e[s];n+=r[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in i)e[s]||o.push(s);return{counts:r,ready:o,total:n}}function Nl(t,e,r,i,o){let n=zo(t,e,r,i,o);if(n===zr)return!1;let s=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,n,!0):(t[s]=n,!1)}function Jp(t,e,r){let i=t.__dataLinkedPaths;if(i){let o;for(let n in i){let s=i[n];Nr(n,e)?(o=Mr(n,s,e),t._setPendingPropertyOrPath(o,r,!0,!0)):Nr(s,e)&&(o=Mr(s,n,e),t._setPendingPropertyOrPath(o,r,!0,!0))}}}function Ki(t,e,r,i,o,n,s){r.bindings=r.bindings||[];let a={kind:i,target:o,parts:n,literal:s,isCompound:n.length!==1};if(r.bindings.push(a),rm(a)){let{event:h,negate:d}=a.parts[0];a.listenerEvent=h||Oi(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,Zp(t,e,a,d,l)}}function Zp(t,e,r,i,o){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let n=i.dependencies,s={index:o,binding:r,part:i,evaluator:t};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=Bl(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Qp,info:s,trigger:l})}}}function Qp(t,e,r,i,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=r[e];e=Mr(h.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&t._enqueueClient(a)}else{let d=o.evaluator._evaluateBinding(t,h,e,r,i,n);d!==zr&&em(t,a,l,h,d)}}function em(t,e,r,i,o){if(o=tm(e,o,r,i),gi&&(o=gi(o,r.target,r.kind,e)),r.kind=="attribute")t._valueToNodeAttribute(e,o,r.target);else{let n=r.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[O.READ_ONLY]||!e[O.READ_ONLY][n])&&e._setPendingProperty(n,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,n,o)}}function tm(t,e,r,i){if(r.isCompound){let o=t.__dataCompoundStorage[r.target];o[i.compoundIndex]=e,e=o.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function rm(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function im(t,e){let{nodeList:r,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let n=i[o],s=r[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let h=a[l];om(s,h),nm(s,t,h)}s.__dataHost=t}}function om(t,e){if(e.isCompound){let r=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let s=0;s<i.length;s++)o[s]=i[s].literal;let n=e.target;r[n]=o,e.literal&&e.kind=="property"&&(n==="className"&&(t=ee(t)),t[n]=e.literal)}}function nm(t,e,r){if(r.listenerEvent){let i=r.parts[0];t.addEventListener(r.listenerEvent,function(o){jp(o,e,r.target,i.source,i.negate)})}}function Hs(t,e,r,i,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||t._addPropertyEffect(l.rootProperty,r,{fn:i,info:s,trigger:l});return n&&t._addPropertyEffect(e.methodName,r,{fn:i,info:s}),s}function zo(t,e,r,i,o){let n=t._methodHost||t,s=n[o.methodName];if(s){let a=t._marshalArgs(o.args,e,r);return a===zr?zr:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const sm=[],Ml="(?:[a-zA-Z_$][\\w.:$\\-*]*)",am="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",lm="(?:'(?:[^'\\\\]|\\\\.)*')",hm='(?:"(?:[^"\\\\]|\\\\.)*")',dm="(?:"+lm+"|"+hm+")",Rs="(?:("+Ml+"|"+am+"|"+dm+")\\s*)",cm="(?:"+Rs+"(?:,\\s*"+Rs+")*)",um="(?:\\(\\s*(?:"+cm+"?)\\)\\s*)",pm="("+Ml+"\\s*"+um+"?)",mm="(\\[\\[|{{)\\s*",_m="(?:]]|}})",fm="(?:(!)\\s*)?",gm=mm+fm+pm+_m,Vs=new RegExp(gm,"g");function $s(t){let e="";for(let r=0;r<t.length;r++){let i=t[r].literal;e+=i||""}return e}function Ji(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:sm};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return vm(i,r)}else return r}return null}function vm(t,e){return e.args=t.map(function(r){let i=Bl(r);return i.literal||(e.static=!1),i},this),e}function Bl(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=e.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(e),r.literal=!0;break}return r.literal||(r.rootProperty=xt(e),r.structured=Mo(e),r.structured&&(r.wildcard=e.slice(-2)==".*",r.wildcard&&(r.name=e.slice(0,-2)))),r}function Us(t,e,r){let i=ue(t,r);return i===void 0&&(i=e[r]),i}function zl(t,e,r,i){const o={indexSplices:i};No&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(r+".splices",o),t.notifyPath(r+".length",e.length),No&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function _r(t,e,r,i,o,n){zl(t,e,r,[{index:i,addedCount:o,removed:n,object:e,type:"splice"}])}function bm(t){return t[0].toUpperCase()+t.substring(1)}const pn=j(t=>{const e=Hp(kp(t));class r 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 O}_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(fr.length){let o=fr[fr.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[O.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==O.READ_ONLY);let a=Xi(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=Xi(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,O.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,O.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,O.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,O.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||xt(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=ue(this,o);if(o=Ms(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return Jp(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=ee(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&Mo(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[O.NOTIFY]&&this[O.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[O.READ_ONLY]||!this[O.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;qp(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),yr(this,this[O.REFLECT],n,s,a),yr(this,this[O.OBSERVE],n,s,a),l&&$p(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[O.PROPAGATE]&&yr(this,this[O.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(h,d)=>{yr(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=br(o),n=br(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=br(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=ue(this,o,s);zl(this,a,s.path,n)}get(o,n){return ue(n||this,o)}set(o,n,s){s?Ms(s,o,n):(!this[O.READ_ONLY]||!this[O.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=ue(this,o,s),l=a.length,h=a.push(...n);return n.length&&_r(this,a,s.path,l,n.length,[]),h}pop(o){let n={path:""},s=ue(this,o,n),a=!!s.length,l=s.pop();return a&&_r(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},h=ue(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)&&_r(this,h,l.path,n,a.length,d),d}shift(o){let n={path:""},s=ue(this,o,n),a=!!s.length,l=s.shift();return a&&_r(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=ue(this,o,s),l=a.unshift(...n);return n.length&&_r(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=ue(this,o,a),s=a.path}else Array.isArray(o)?s=br(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,O.READ_ONLY),n&&(this["_set"+bm(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,O.OBSERVE,{fn:Fs,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,O.OBSERVE,{fn:Fs,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Ji(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");Hs(this,s,O.OBSERVE,zo,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,O.NOTIFY,{fn:Wp,info:{eventName:Oi(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,O.REFLECT,{fn:Gp,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Ji(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=Hs(this,a,O.COMPUTE,Nl,o,s);Xi(this,Dl)[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:g,literal:y}=o[h];if(!y)if(u){const A=Nr(c,n),P=Us(a,s,A?n:c);g={path:A?n:c,value:P,base:A?ue(a,c):P}}else g=p?Us(a,s,c):a[c];if(No&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return zr;l[h]=g}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),fr.push(this);let s=super._stampTemplate(o,n);if(fr.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,im(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];ee(ee(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=$s(l)||" ",Ki(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";Rp.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=$s(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=El(a)),Ki(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";Ts&&(d||c)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=h,s.noted=!0,a=!1);let p=h.hostProps;if(dp&&d)p&&(n.hostProps=Object.assign(n.hostProps||{},p),Ts||(s.parentInfo.noted=!0));else{let u="{";for(let g in p){let y=[{mode:u,source:g,dependencies:[g],hostProp:!0}];Ki(this,n,s,"property","_host_"+g,y)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=Vs.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="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(u=c.substring(g+2),c=c.substring(0,g),p=!0);let y=Ji(c),A=[];if(y){let{args:P,methodName:M}=y;for(let z=0;z<P.length;z++){let H=P[z];H.literal||A.push(H)}let k=n.dynamicFns;(k&&k[M]||y.static)&&(A.push(M),y.dynamicFn=!0)}else A.push(c);s.push({source:c,mode:h,negate:d,customEvent:p,signature:y,dependencies:A,event:u}),a=Vs.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=ue(o,n.source):h&&Mo(s)?d=ue(o,s):d=o.__data[s],n.negate&&(d=!d),d}}return r}),fr=[];/**
|
|
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 ym(t){const e={};for(let r in t){const i=t[r];e[r]=typeof i=="function"?{type:i}:i}return e}const xm=
|
|
1022
|
+
*/function ym(t){const e={};for(let r in t){const i=t[r];e[r]=typeof i=="function"?{type:i}:i}return e}const xm=j(t=>{const e=Tl(t);function r(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function i(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=ym(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=r(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=i(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=r(this);this.__properties=Object.assign({},s&&s._properties,i(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 wm="3.5.2",
|
|
1032
|
+
*/const wm="3.5.2",Ws=window.ShadyCSS&&window.ShadyCSS.cssBuild,Cm=j(t=>{const e=xm(pn(t));function r(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 i(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(!Ws){const p=h.content.querySelectorAll("style"),u=yl(h),g=vp(d),y=h.content.firstElementChild;for(let P=0;P<g.length;P++){let M=g[P];M.textContent=l._processStyleText(M.textContent,c),h.content.insertBefore(M,y)}let A=0;for(let P=0;P<u.length;P++){let M=u[P],k=p[A];k!==M?(M=M.cloneNode(!0),k.parentNode.insertBefore(M,k)):A++,M.textContent=l._processStyleText(M.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,d),cp&&Ws&&np){const p=h.content.querySelectorAll("style");if(p){let u="";Array.from(p).forEach(g=>{u+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(u)}}}function s(l){let h=null;if(l&&(!vi||ap)&&(h=Or.import(l,"template"),vi&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return h}class a extends e{static get polymerElementVersion(){return wm}static _finalizeClass(){e._finalizeClass.call(this);const h=i(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):fl||(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=dn(h.url);else{const d=Or.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=sp,this.importPath=this.constructor.importPath;let h=r(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 hn(h,d)}static _finalizeTemplate(h){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,p=c?Pr(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=ee(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])),lp&&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=Pr(this.importPath)),Pr(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 gl&&!(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 js=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Fl{constructor(e,r){Hl(e,r);const i=r.reduce((o,n,s)=>o+Ll(n)+e[s+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ll(t){if(t instanceof Fl)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function Em(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Fl)return Ll(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const ne=function(t,...e){Hl(t,e);const r=document.createElement("template");let i=e.reduce((o,n,s)=>o+Em(n)+t[s+1],t[0]);return js&&(i=js.createHTML(i)),r.innerHTML=i,r},Hl=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.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 se=Cm(HTMLElement),Pm=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Sm(){function t(){return!0}return Rl(t)}function Am(){try{return Tm()?!0:km()?hi?!Im():!Sm():!1}catch(t){return!1}}function Tm(){return localStorage.getItem("vaadin.developmentmode.force")}function km(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Im(){return!!(hi&&Object.keys(hi).map(t=>hi[t]).filter(t=>t.productionMode).length>0)}function Rl(t,e){if(typeof t!="function")return;const r=Pm.exec(t.toString());if(r)try{t=new Function(r[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return t(e)}window.Vaadin=window.Vaadin||{};const Gs=function(t,e){if(window.Vaadin.developmentMode)return Rl(t,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Am());function Dm(){/*! 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 Om=function(){if(typeof
|
|
1526
|
+
vaadin-dev-mode:end **/}const Om=function(){if(typeof Gs=="function")return Gs(Dm)};/**
|
|
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 qs=0,Vl=0;const Rt=[];let Fo=!1;function Nm(){Fo=!1;const t=Rt.length;for(let e=0;e<t;e++){const r=Rt[e];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Rt.splice(0,t),Vl+=t}const gt={after(t){return{run(e){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}},Fr={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},$l={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},yi={run(t){Fo||(Fo=!0,queueMicrotask(()=>Nm())),Rt.push(t);const e=qs;return qs+=1,e},cancel(t){const e=t-Vl;if(e>=0){if(!Rt[e])throw new Error(`invalid async handle: ${t}`);Rt[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 Lr=new Set;let Ce=class Lo{static debounce(e,r,i){return e instanceof Lo?e._cancelAsync():e=new Lo,e.setConfig(r,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,r){this._asyncModule=e,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,Lr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Lr.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 Ul(t){Lr.add(t)}function Mm(){const t=!!Lr.size;return Lr.forEach(e=>{try{e.flush()}catch(r){setTimeout(()=>{throw r})}}),t}const xr=()=>{let t;do t=Mm();while(t)};/**
|
|
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 He=[];function Ho(t,e,r=t.getAttribute("dir")){e?t.setAttribute("dir",e):r!=null&&t.removeAttribute("dir")}function Ro(){return document.documentElement.getAttribute("dir")}function Bm(){const t=Ro();He.forEach(e=>{Ho(e,t)})}const zm=new MutationObserver(Bm);zm.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const wt=t=>class extends t{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(),Ho(this,Ro(),null))}attributeChangedCallback(e,r,i){if(super.attributeChangedCallback(e,r,i),e!=="dir")return;const o=Ro(),n=i===o&&He.indexOf(this)===-1,s=!i&&r&&He.indexOf(this)===-1;n||s?(this.__subscribe(),Ho(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=He.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,i){i==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,i)}_attributeToProperty(e,r,i){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,i)}__subscribe(){He.includes(this)||He.push(this)}__unsubscribe(){He.includes(this)&&He.splice(He.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(){Om()};let
|
|
1550
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Om()};let Zi;const Ys=new Set,rr=t=>class extends wt(t){static finalize(){super.finalize();const{is:e}=this;e&&!Ys.has(e)&&(window.Vaadin.registrations.push(this),Ys.add(e),window.Vaadin.developmentModeCallback&&(Zi=Ce.debounce(Zi,$l,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ul(Zi)))}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 Fm(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function
|
|
1554
|
+
*/function Fm(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function mn(t){return t?new Set(t.split(" ")):new Set}function Ni(t){return t?[...t].join(" "):""}function Wl(t,e,r){const i=mn(t.getAttribute(e));i.add(r),t.setAttribute(e,Ni(i))}function Lm(t,e,r){const i=mn(t.getAttribute(e));if(i.delete(r),i.size===0){t.removeAttribute(e);return}t.setAttribute(e,Ni(i))}function Hm(t){return t.nodeType===Node.TEXT_NODE&&t.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 jl{constructor(e,r){this.slot=e,this.callback=r,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 r=[];const i=[],o=[];e.length&&(r=e.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=e.indexOf(n);a===-1?i.push(n):a!==s&&o.push(n)}),(r.length||i.length||o.length)&&this.callback({addedNodes:r,currentNodes:e,movedNodes:o,removedNodes:i}),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 Rm=0;function
|
|
1562
|
+
*/let Rm=0;function _n(){return Rm++}/**
|
|
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 nt extends EventTarget{static generateId(e,r="default"){return`${r}-${e.localName}-${_n()}`}constructor(e,r,i,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:h}=o;this.host=e,this.slotName=r,this.tagName=i,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||r))}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 r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=e,e.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:e,slotName:r,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(r!==""&&o.setAttribute("slot",r),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===e||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:r}=this;r&&r(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,r=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(r);this.__slotObserver=new jl(i,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Hm(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
|
|
1570
|
+
*/class ir extends nt{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 r=this.node;r&&(r.ariaTarget=e)}setContext(e){this.context=e;const r=this.node;r&&(r.context=e)}setManual(e){this.manual=e;const r=this.node;r&&(r.manual=e)}setOpened(e){this.opened=e;const r=this.node;r&&(r.opened=e)}setPosition(e){this.position=e;const r=this.node;r&&(r._position=e)}setShouldShow(e){this.shouldShow=e;const r=this.node;r&&(r.shouldShow=e)}setTarget(e){this.target=e;const r=this.node;r&&(r.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,103 +1575,103 @@ 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 Vm=t=>t,
|
|
1578
|
+
*/const Vm=t=>t,Gl=typeof document.head.style.touchAction=="string",Vo="__polymerGestures",Qi="__polymerGesturesHandled",$o="__polymerGesturesTouchAction",Xs=25,Ks=5,$m=2,Um=["mousedown","mousemove","mouseup","click"],Wm=[0,1,4,2],jm=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function ql(t){return Um.indexOf(t)>-1}let Gm=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Gm=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();const qm=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ym={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function vt(t){const e=t.type;if(!ql(e))return!1;if(e==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!jm&&(r=Wm[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function Xm(t){if(t.type==="click"){if(t.detail===0)return!0;const e=st(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const r=e.getBoundingClientRect(),i=t.pageX,o=t.pageY;return!(i>=r.left&&i<=r.right&&o>=r.top&&o<=r.bottom)}return!1}const Re={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Km(t){let e="auto";const r=Xl(t);for(let i=0,o;i<r.length;i++)if(o=r[i],o[$o]){e=o[$o];break}return e}function Yl(t,e,r){t.movefn=e,t.upfn=r,document.addEventListener("mousemove",e),document.addEventListener("mouseup",r)}function Vt(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Xl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],fn={},ft=[];function Jm(t,e){let r=document.elementFromPoint(t,e),i=r;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(t,e),o===i)break;i&&(r=i)}return r}function st(t){const e=Xl(t);return e.length>0?e[0]:t.target}function Zm(t){const e=t.type,r=t.currentTarget[Vo];if(!r)return;const i=r[e];if(!i)return;if(!t[Qi]&&(t[Qi]={},e.startsWith("touch"))){const n=t.changedTouches[0];if(e==="touchstart"&&t.touches.length===1&&(Re.touch.id=n.identifier),Re.touch.id!==n.identifier)return;Gl||(e==="touchstart"||e==="touchmove")&&Qm(t)}const o=t[Qi];if(!o.skip){for(let n=0,s;n<ft.length;n++)s=ft[n],i[s.name]&&!o[s.name]&&s.flow&&s.flow.start.indexOf(t.type)>-1&&s.reset&&s.reset();for(let n=0,s;n<ft.length;n++)s=ft[n],i[s.name]&&!o[s.name]&&(o[s.name]=!0,s[e](t))}}function Qm(t){const e=t.changedTouches[0],r=t.type;if(r==="touchstart")Re.touch.x=e.clientX,Re.touch.y=e.clientY,Re.touch.scrollDecided=!1;else if(r==="touchmove"){if(Re.touch.scrollDecided)return;Re.touch.scrollDecided=!0;const i=Km(t);let o=!1;const n=Math.abs(Re.touch.x-e.clientX),s=Math.abs(Re.touch.y-e.clientY);t.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=s>n:i==="pan-y"&&(o=n>s)),o?t.preventDefault():xi("track")}}function Me(t,e,r){return fn[e]?(e_(t,e,r),!0):!1}function e_(t,e,r){const i=fn[e],o=i.deps,n=i.name;let s=t[Vo];s||(t[Vo]=s={});for(let a=0,l,h;a<o.length;a++)l=o[a],!(qm&&ql(l)&&l!=="click")&&(h=s[l],h||(s[l]=h={_count:0}),h._count===0&&t.addEventListener(l,Zm,void 0),h[n]=(h[n]||0)+1,h._count=(h._count||0)+1);t.addEventListener(e,r),i.touchAction&&Kl(t,i.touchAction)}function gn(t){ft.push(t),t.emits.forEach(e=>{fn[e]=t})}function t_(t){for(let e=0,r;e<ft.length;e++){r=ft[e];for(let i=0,o;i<r.emits.length;i++)if(o=r.emits[i],o===t)return r}return null}function Kl(t,e){Gl&&t instanceof HTMLElement&&yi.run(()=>{t.style.touchAction=e}),t[$o]=e}function vn(t,e,r){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=r,Vm(t).dispatchEvent(i),i.defaultPrevented){const o=r.preventer||r.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function xi(t){const e=t_(t);e.info&&(e.info.prevent=!0)}gn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Vt(this.info)},mousedown(t){if(!vt(t))return;const e=st(t),r=this,i=n=>{vt(n)||(gr("up",e,n),Vt(r.info))},o=n=>{vt(n)&&gr("up",e,n),Vt(r.info)};Yl(this.info,i,o),gr("down",e,t)},touchstart(t){gr("down",st(t),t.changedTouches[0],t)},touchend(t){gr("up",st(t),t.changedTouches[0],t)}});function gr(t,e,r,i){e&&vn(e,t,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:i,prevent(o){return xi(o)}})}gn({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(t){this.moves.length>$m&&this.moves.shift(),this.moves.push(t)},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,Vt(this.info)},mousedown(t){if(!vt(t))return;const e=st(t),r=this,i=n=>{const s=n.clientX,a=n.clientY;Js(r.info,s,a)&&(r.info.state=r.info.started?n.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&xi("tap"),r.info.addMove({x:s,y:a}),vt(n)||(r.info.state="end",Vt(r.info)),e&&eo(r.info,e,n),r.info.started=!0)},o=n=>{r.info.started&&i(n),Vt(r.info)};Yl(this.info,i,o),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=st(t),r=t.changedTouches[0],i=r.clientX,o=r.clientY;Js(this.info,i,o)&&(this.info.state==="start"&&xi("tap"),this.info.addMove({x:i,y:o}),eo(this.info,e,r),this.info.state="track",this.info.started=!0)},touchend(t){const e=st(t),r=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),eo(this.info,e,r))}});function Js(t,e,r){if(t.prevent)return!1;if(t.started)return!0;const i=Math.abs(t.x-e),o=Math.abs(t.y-r);return i>=Ks||o>=Ks}function eo(t,e,r){if(!e)return;const i=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1],n=o.x-t.x,s=o.y-t.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),vn(e,"track",{state:t.state,x:r.clientX,y:r.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:r,hover(){return Jm(r.clientX,r.clientY)}})}gn({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(t){vt(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){vt(t)&&Zs(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Zs(this.info,t.changedTouches[0],t)}});function Zs(t,e,r){const i=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),n=st(r||e);!n||Ym[n.localName]&&n.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=Xs&&o<=Xs||Xm(e))&&(t.prevent||vn(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r}))}/**
|
|
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 or=j(t=>class extends t{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/
|
|
1586
|
-
*/const
|
|
1586
|
+
*/const Ur=j(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
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 Jl=t=>class extends or(Ur(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Me(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Me(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",r=>{this._activeKeys.includes(r.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 bn=!1;window.addEventListener("keydown",()=>{bn=!0},{capture:!0});window.addEventListener("mousedown",()=>{bn=!1},{capture:!0});function Uo(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Mi(){return bn}function r_(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none")return!0;const r=window.getComputedStyle(t);return r.visibility==="hidden"||r.display==="none"}function i_(t,e){const r=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return r===0||i===0?i>r:r>i}function o_(t,e){const r=[];for(;t.length>0&&e.length>0;)i_(t[0],e[0])?r.push(e.shift()):r.push(t.shift());return r.concat(t,e)}function Wo(t){const e=t.length;if(e<2)return t;const r=Math.ceil(e/2),i=Wo(t.slice(0,r)),o=Wo(t.slice(r));return o_(i,o)}function yn(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Zl(t){return t.getRootNode().activeElement===t}function n_(t){if(!yn(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}function Ql(t,e){if(t.nodeType!==Node.ELEMENT_NODE||r_(t))return!1;const r=t,i=n_(r);let o=i>0;i>=0&&e.push(r);let n=[];return r.localName==="slot"?n=r.assignedNodes({flatten:!0}):n=(r.shadowRoot||r).children,[...n].forEach(s=>{o=Ql(s,e)||o}),o}function s_(t){const e=[];return Ql(t,e)?Wo(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
|
|
1598
|
+
*/const nr=j(t=>class extends t{get _keyboardActive(){return Mi()}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 eh=t=>class extends or(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(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 xn=j(t=>class extends nr(eh(t)){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,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_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,r){super._disabledChanged(e,r),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 th=j(t=>class extends t{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((r,i)=>{this._delegateAttribute(r,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,e[i])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
|
|
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 Wr=j(t=>class extends t{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,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.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 a_=
|
|
1618
|
+
*/const a_=j(t=>class extends th(or(Wr(t))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const r=e.target;this._toggleChecked(r.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 to=new Map;function wn(t){return to.has(t)||to.set(t,new WeakMap),to.get(t)}function rh(t,e){t&&t.removeAttribute(e)}function ih(t,e){if(!t||!e)return;const r=wn(e);if(r.has(t))return;const i=mn(t.getAttribute(e));r.set(t,new Set(i))}function l_(t,e){if(!t)return;const r=wn(e),i=r.get(t);!i||i.size===0?t.removeAttribute(e):Wl(t,e,Ni(i)),r.delete(t)}function ro(t,e,r={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:i,oldId:o,fromUser:n}=r,s=wn(e),a=s.get(t);if(!n&&a){o&&a.delete(o),i&&a.add(i);return}n&&(a?i||s.delete(t):ih(t,e),rh(t,e)),Lm(t,e,o);const l=i||Ni(a);l&&Wl(t,e,l)}function h_(t,e){ih(t,e),rh(t,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 d_{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,r=!1){const i=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,r),r?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?(h_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(l_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,r,i){
|
|
1626
|
+
*/class d_{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,r=!1){const i=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,r),r?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?(h_(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(l_(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,r,i){ro(this.__target,"aria-labelledby",{newId:e,oldId:r,fromUser:i})}__setErrorIdToAriaAttribute(e,r){ro(this.__target,"aria-describedby",{newId:e,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(e,r){ro(this.__target,"aria-describedby",{newId:e,oldId:r,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/
|
|
1630
|
-
*/const
|
|
1630
|
+
*/const Ct=j(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
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
|
|
1634
|
+
*/const Te=document.createElement("div");Te.style.position="fixed";Te.style.clip="rect(0px, 0px, 0px, 0px)";Te.setAttribute("aria-live","polite");document.body.appendChild(Te);let ei;function c_(t,e={}){const r=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;r==="alert"?(Te.removeAttribute("aria-live"),Te.removeAttribute("role"),ei=Ce.debounce(ei,Fr,()=>{Te.setAttribute("role","alert")})):(ei&&ei.cancel(),Te.removeAttribute("role"),Te.setAttribute("aria-live",r)),Te.textContent="",setTimeout(()=>{Te.textContent=t},i)}/**
|
|
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 Cn extends nt{constructor(e,r,i,o={}){super(e,r,i,rl(pi({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(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(r=>{r.forEach(i=>{const o=i.target,n=o===this.node;i.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 r=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!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 u_ extends
|
|
1642
|
+
*/class u_ extends Cn{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:r,invalid:i}=this,o=!!(i&&r&&r.trim()!=="");e&&(e.textContent=o?r:"",e.hidden=!o,o&&c_(r,{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 p_ extends
|
|
1646
|
+
*/class p_ extends Cn{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 r=this.attachDefaultNode();this.observeNode(r)}}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 m_ extends
|
|
1650
|
+
*/class m_ extends Cn{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 r=this.attachDefaultNode();this.observeNode(r)}}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 __=j(t=>class extends Ct(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new m_(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 En=j(t=>class extends t{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 Pn=t=>class extends En(__(Ct(t))){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 d_(this),this._helperController=new p_(this),this._errorController=new u_(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:r,node:i}=e.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:i}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.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 r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.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 Bi extends nt{constructor(e,r,i={}){const{uniqueIdPrefix:o}=i;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 r=="function"&&r(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 zi{constructor(e,r){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),r.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(r.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=r=>{r.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 f_=t=>class extends
|
|
1674
|
+
*/const f_=t=>class extends Pn(a_(xn(Jl(t)))){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 Bi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zi(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,r){r&&(e?r.setAttribute("aria-readonly","true"):r.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/
|
|
@@ -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
|
-
*/
|
|
1770
|
+
*/T("vaadin-checkbox",g_,{moduleId:"vaadin-checkbox-styles"});class v_ extends f_(rr(pe(se))){static get is(){return"vaadin-checkbox"}static get template(){return ne`
|
|
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
|
|
1786
|
+
`}ready(){super.ready(),this._tooltipController=new ir(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}q(v_);/**
|
|
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 oh=w`
|
|
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 Sn=w`
|
|
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
|
-
`;
|
|
1962
|
+
`;T("",Sn,{moduleId:"lumo-required-field"});const b_=w`
|
|
1963
1963
|
:host {
|
|
1964
1964
|
color: var(--lumo-body-text-color);
|
|
1965
1965
|
font-size: var(--lumo-font-size-m);
|
|
@@ -2002,11 +2002,11 @@ 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
|
-
`;
|
|
2005
|
+
`;T("vaadin-checkbox-group",[Sn,oh,b_],{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 y_=t=>class extends
|
|
2009
|
+
*/const y_=t=>class extends Pn(nr(or(t))){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 ir(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const r=e.detail.node;if(r&&r.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new jl(e,({addedNodes:r,removedNodes:i})=>{const o=this.__filterCheckboxes(r),n=this.__filterCheckboxes(i);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(r=>r.nodeType===Node.ELEMENT_NODE&&r.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(r=>{const{value:i}=r;return!r.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,r){super._disabledChanged(e,r),!(!e&&r===void 0)&&r!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(r=>r!==e))}__onCheckboxCheckedChanged(e){const r=e.target;r.checked?this.__addCheckboxToValue(r.value):this.__removeCheckboxFromValue(r.value)}__valueChanged(e,r){e&&e.length===0&&r===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),r!==void 0&&this.validate())}__readonlyChanged(e,r){(e||r)&&this.__checkboxes.forEach(i=>{i.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/
|
|
@@ -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
|
-
*/
|
|
2046
|
+
*/T("vaadin-checkbox-group",x_,{moduleId:"vaadin-checkbox-group-styles"});class w_ extends y_(rr(pe(se))){static get is(){return"vaadin-checkbox-group"}static get template(){return ne`
|
|
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
|
-
`}}
|
|
2067
|
+
`}}q(w_);/**
|
|
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 An=w`
|
|
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
|
-
`;
|
|
2136
|
+
`;T("",An,{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 Tn=w`
|
|
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
|
-
`;
|
|
2170
|
+
`;T("",Tn,{moduleId:"lumo-menu-overlay-core"});const C_=w`
|
|
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
|
+
`,nh=[An,Tn,C_];T("",nh,{moduleId:"lumo-menu-overlay"});const E_=w`
|
|
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
|
-
`;
|
|
2277
|
+
`;T("vaadin-date-picker-overlay",[nh,E_],{moduleId:"lumo-date-picker-overlay"});const sh=w`
|
|
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
|
-
`;
|
|
2553
|
+
`;T("vaadin-button",sh,{moduleId:"lumo-button"});T("vaadin-date-picker-year",w`
|
|
2554
2554
|
:host([current]) [part='year-number'] {
|
|
2555
2555
|
color: var(--lumo-primary-text-color);
|
|
2556
2556
|
}
|
|
@@ -2574,7 +2574,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2574
2574
|
color: var(--lumo-disabled-text-color);
|
|
2575
2575
|
content: '\\2022';
|
|
2576
2576
|
}
|
|
2577
|
-
`,{moduleId:"lumo-date-picker-year"});
|
|
2577
|
+
`,{moduleId:"lumo-date-picker-year"});T("vaadin-date-picker-overlay-content",w`
|
|
2578
2578
|
:host {
|
|
2579
2579
|
position: relative;
|
|
2580
2580
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2724,7 +2724,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2724
2724
|
padding-left: 50px;
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});
|
|
2727
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});T("vaadin-month-calendar",w`
|
|
2728
2728
|
:host {
|
|
2729
2729
|
-moz-user-select: none;
|
|
2730
2730
|
-webkit-user-select: none;
|
|
@@ -2871,7 +2871,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2871
2871
|
:host([disabled]) * {
|
|
2872
2872
|
color: var(--lumo-disabled-text-color) !important;
|
|
2873
2873
|
}
|
|
2874
|
-
`,{moduleId:"lumo-month-calendar"});
|
|
2874
|
+
`,{moduleId:"lumo-month-calendar"});T("vaadin-input-container",w`
|
|
2875
2875
|
:host {
|
|
2876
2876
|
background: var(--_background);
|
|
2877
2877
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -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 ah=w`
|
|
3057
3057
|
[part$='button'] {
|
|
3058
3058
|
flex: none;
|
|
3059
3059
|
width: 1em;
|
|
@@ -3080,7 +3080,7 @@ 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
|
-
`;
|
|
3083
|
+
`;T("",ah,{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/
|
|
@@ -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
|
-
`,
|
|
3218
|
+
`,jr=[Sn,ah,oh,P_];T("",jr,{moduleId:"lumo-input-field-shared-styles"});const S_=w`
|
|
3219
3219
|
[part='toggle-button']::before {
|
|
3220
3220
|
content: var(--lumo-icons-calendar);
|
|
3221
3221
|
}
|
|
@@ -3237,7 +3237,7 @@ 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
|
-
`;
|
|
3240
|
+
`;T("vaadin-date-picker",[jr,S_],{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/
|
|
@@ -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
|
-
*/
|
|
3317
|
+
*/T("vaadin-input-container",T_,{moduleId:"vaadin-input-container-styles"});class k_ extends A_(pe(wt(se))){static get is(){return"vaadin-input-container"}static get template(){return ne`
|
|
3318
3318
|
<slot name="prefix"></slot>
|
|
3319
3319
|
<slot></slot>
|
|
3320
3320
|
<slot name="suffix"></slot>
|
|
3321
|
-
`}}
|
|
3321
|
+
`}}q(k_);/**
|
|
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 lh=w`
|
|
3326
3326
|
:host {
|
|
3327
3327
|
z-index: 200;
|
|
3328
3328
|
position: fixed;
|
|
@@ -3389,51 +3389,51 @@ 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 jo=!1,I_=[],hh=[];function D_(){jo=!0,requestAnimationFrame(function(){jo=!1,O_(I_),setTimeout(function(){N_(hh)})})}function O_(t){for(;t.length;)dh(t.shift())}function N_(t){for(let e=0,r=t.length;e<r;e++)dh(t.shift())}function dh(t){const e=t[0],r=t[1],i=t[2];try{r.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function ch(t,e,r){jo||D_(),hh.push([t,e,r])}/**
|
|
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 Fi=t=>t.test(navigator.userAgent),Go=t=>t.test(navigator.platform),M_=t=>t.test(navigator.vendor);Fi(/Android/u);Fi(/Chrome/u)&&M_(/Google Inc/u);Fi(/Firefox/u);const B_=Go(/^iPad/u)||Go(/^Mac/u)&&navigator.maxTouchPoints>1,z_=Go(/^iPhone/u),uh=z_||B_,F_=Fi(/^((?!chrome|android).)*safari/iu),qo=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
|
|
3397
3397
|
* @license
|
|
3398
3398
|
* Copyright (c) 2017 Anton Korzunov
|
|
3399
3399
|
* SPDX-License-Identifier: MIT
|
|
3400
|
-
*/let
|
|
3400
|
+
*/let Mt=new WeakMap,ti=new WeakMap,ri={},io=0;const Qs=t=>t&&t.nodeType===Node.ELEMENT_NODE,oo=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},L_=(t,e)=>Qs(t)?e.map(r=>{if(!Qs(r))return oo(r,"is not a valid element"),null;let i=r;for(;i&&i!==t;){if(t.contains(i))return r;i=i.getRootNode().host}return oo(r,"is not contained inside",t),null}).filter(r=>!!r):(oo(t,"is not a valid element"),[]),H_=(t,e,r,i)=>{const o=L_(e,Array.isArray(t)?t:[t]);ri[r]||(ri[r]=new WeakMap);const n=ri[r],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 g=u.getAttribute(i),y=g!==null&&g!=="false",A=(Mt.get(u)||0)+1,P=(n.get(u)||0)+1;Mt.set(u,A),n.set(u,P),s.push(u),A===1&&y&&ti.set(u,!0),P===1&&u.setAttribute(r,"true"),y||u.setAttribute(i,"true")}})};return d(e),a.clear(),io+=1,()=>{s.forEach(c=>{const p=Mt.get(c)-1,u=n.get(c)-1;Mt.set(c,p),n.set(c,u),p||(ti.has(c)?ti.delete(c):c.removeAttribute(i)),u||c.removeAttribute(r)}),io-=1,io||(Mt=new WeakMap,Mt=new WeakMap,ti=new WeakMap,ri={})}},ph=(t,e=document.body,r="data-aria-hidden")=>{const i=Array.from(Array.isArray(t)?t:[t]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),H_(i,e,r,"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 R_{constructor(e,r){this.host=e,this.callback=typeof r=="function"?r:()=>e}showModal(){const e=this.callback();this.__showOthers=
|
|
3404
|
+
*/class R_{constructor(e,r){this.host=e,this.callback=typeof r=="function"?r:()=>e}showModal(){const e=this.callback();this.__showOthers=ph(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 V_{saveFocus(e){this.focusNode=e
|
|
3408
|
+
*/class V_{saveFocus(e){this.focusNode=e||Uo()}restoreFocus(e){const r=this.focusNode;if(!r)return;const i=e?e.preventScroll:!1;Uo()===document.body?setTimeout(()=>r.focus({preventScroll:i})):r.focus({preventScroll:i}),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 no=[];class $_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return s_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Zl).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.");no.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,no.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(no).pop()&&e.key==="Tab"){e.preventDefault();const r=e.shiftKey;this.__focusNextElement(r)}}__focusNextElement(e=!1){const r=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,n=(r.length+o+i)%r.length,s=r[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 U_=t=>class extends
|
|
3416
|
+
*/const U_=t=>class extends Ct(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new R_(this),this.__focusTrapController=new $_(this),this.__focusRestorationController=new V_}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=!Mi();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=Uo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const i=e.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===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 mh=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,e)=>t.__zIndex-e.__zIndex||0),Yo=()=>mh().filter(t=>t.$.overlay),W_=t=>t===Yo().pop(),j_=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return W_(this)}bringToFront(){let e="";const r=mh().filter(i=>i!==this).pop();r&&(e=r.__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"),Yo().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=Yo();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.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 _h=t=>class extends U_(j_(t)){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),uh&&(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 r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,r=window.innerWidth>e,i=document.documentElement.clientHeight;r&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,r,i,o){const n=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;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,r){e?(this._saveFocus(),this._animatedOpening(),ch(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(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),r=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&r&&r!=="none"}_enqueueAnimation(e,r){const i=`__${e}Handler`,o=n=>{n&&n.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const r=`__${e}Handler`;typeof this[r]=="function"&&this[r]()}_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 r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.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 G_(t,e){let r=null;const i=document.documentElement;function o(){r&&r.disconnect(),r=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(s||e(),!d||!c)return;const p=Math.floor(h),u=Math.floor(i.clientWidth-(l+d)),g=Math.floor(i.clientHeight-(h+c)),y=Math.floor(l),
|
|
3428
|
+
*/function G_(t,e){let r=null;const i=document.documentElement;function o(){r&&r.disconnect(),r=null}function n(s=!1,a=1){o();const{left:l,top:h,width:d,height:c}=t.getBoundingClientRect();if(s||e(),!d||!c)return;const p=Math.floor(h),u=Math.floor(i.clientWidth-(l+d)),g=Math.floor(i.clientHeight-(h+c)),y=Math.floor(l),A={rootMargin:`${-p}px ${-u}px ${-g}px ${-y}px`,threshold:Math.max(0,Math.min(1,a))||1};let P=!0;function M(k){let z=k[0].intersectionRatio;if(z!==a){if(!P)return n();z===0&&(z=1e-7),n(!1,z)}P=!1}r=new IntersectionObserver(M,A),r.observe(t)}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"},ea=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),fh=t=>class extends t{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=Fm(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=G_(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,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,ea.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,ea.observe(r))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[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 r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),n=!i&&o||i&&!o;this.style.alignItems=n?"flex-start":"flex-end";const s=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,so,this,r),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,ao,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,r){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,n,this.noHorizontalOverlap,ao)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,i,this.__margins,o,this.noVerticalOverlap,so)}__shouldAlignStart(e,r,i,o,n,s,a){const l=i-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>r;return n===c}__adjustBottomProperty(e,r,i){let o;if(e===r.end){if(r.end===so.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const s=this.__oldViewportHeight-n;o=i-s}this.__oldViewportHeight=n}if(r.end===ao.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const s=this.__oldViewportWidth-n;o=i-s}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,r,i,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=r[s?o.start:o.end]-e[i===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 q_=t=>class extends _h(
|
|
3436
|
+
*/const q_=t=>class extends fh(_h(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!yn(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/
|
|
@@ -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
|
-
*/
|
|
3459
|
+
*/T("vaadin-date-picker-overlay",[lh,Y_],{moduleId:"vaadin-date-picker-overlay-styles"});class X_ extends q_(wt(pe(se))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ne`
|
|
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
|
-
`}}
|
|
3466
|
+
`}}q(X_);/**
|
|
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 gh=w`
|
|
3471
3471
|
:host {
|
|
3472
3472
|
display: inline-block;
|
|
3473
3473
|
position: relative;
|
|
@@ -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 vh=t=>class extends Jl(eh(nr(t))){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
|
-
*/
|
|
3551
|
+
*/T("vaadin-button",gh,{moduleId:"vaadin-button-styles"});class J_ extends vh(rr(pe(Ct(se)))){static get is(){return"vaadin-button"}static get template(){return K_(ne)}ready(){super.ready(),this._tooltipController=new ir(this),this.addController(this._tooltipController)}}q(J_);/**
|
|
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 Z_(t){let e=t.getDay();e===0&&(e=7);const r=4-e,i=new Date(t.getTime()+r*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const n=i.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function
|
|
3555
|
+
*/function Z_(t){let e=t.getDay();e===0&&(e=7);const r=4-e,i=new Date(t.getTime()+r*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const n=i.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function Xo(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function $e(t,e,r=Xo){return t instanceof Date&&e instanceof Date&&r(t).getTime()===r(e).getTime()}function kn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function Xt(t,e,r,i){let o=!1;if(typeof i=="function"&&t){const n=kn(t);o=i(n)}return(!e||t>=e)&&(!r||t<=r)&&!o}function bh(t,e){return e.filter(r=>r!==void 0).reduce((r,i)=>{if(!i)return r;if(!r)return i;const o=Math.abs(t.getTime()-i.getTime()),n=Math.abs(r.getTime()-t.getTime());return o<n?i:r})}function yh(t){const e=new Date,r=new Date(e);return r.setDate(1),r.setMonth(parseInt(t)+e.getMonth()),r}function Q_(t,e,r=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(t.getFullYear()/100)*100;return t<new Date(o-50,r,i)?o-=100:t>new Date(o+50,r,i)&&(o+=100),o}function vr(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const r=new Date(0,0);return r.setFullYear(parseInt(e[1],10)),r.setMonth(parseInt(e[2],10)-1),r.setDate(parseInt(e[3],10)),r}function ef(t){const e=(l,h="00")=>(h+l).substr((h+l).length-h.length);let r="",i="0000",o=t.year;o<0?(o=-o,r="-",i="000000"):t.year>=1e4&&(r="+",i="000000");const n=r+e(o,i),s=e(t.month+1),a=e(t.day);return[n,s,a].join("-")}function tf(t){return t instanceof Date?ef({year:t.getFullYear(),month:t.getMonth(),day:t.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 wi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,r){this._asyncModule=e,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,Hr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Hr.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,r,i){return e instanceof wi?e._cancelAsync():e=new wi,e.setConfig(r,i),e}}let Hr=new Set;const rf=function(t){Hr.add(t)},of=function(){const t=!!Hr.size;return Hr.forEach(e=>{try{e.flush()}catch(r){setTimeout(()=>{throw r})}}),t};/**
|
|
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 In=function(){let t,e;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=of();while(t||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 xh=document.createElement("template");xh.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
|
|
3625
|
+
`;class wh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(xh.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"),r="background-position";this.$.fullHeight.style.setProperty(r,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(r);this.$.fullHeight.style.removeProperty(r),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),In()}_createElement(){}_updateElement(e,r){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(r=>{this._ensureStampedInstance(r._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const r=e?1:0;this._buffers[r].translateY=this._buffers[r?0:1].translateY+this._bufferHeight*(r?-1:1),this._buffers[r].style.transform=`translate3d(0, ${this._buffers[r].translateY}px, 0)`,this._buffers[r].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 r=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+r,o=e<this._buffers[0].translateY+r;(i||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=Ce.debounce(this._debouncerScrollFinish,gt.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=Ce.debounce(this._debouncerUpdateClones,gt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(r=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${_n()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,r.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 r=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(r).forEach(i=>{e.instance[i]=r[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const r=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*o;[...i.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,r))&&this._updateElement(l.instance,n+a)}),i.updated=!0}})}_isVisible(e,r){const i=e.getBoundingClientRect();return i.bottom>r.top&&i.top<r.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 Ch=document.createElement("template");Ch.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 nf extends
|
|
3641
|
+
`;class nf extends wh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ch.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,r){e.month=yh(r)}}q(nf);/**
|
|
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 Eh=document.createElement("template");Eh.innerHTML=`
|
|
3646
3646
|
<style>
|
|
3647
3647
|
:host {
|
|
3648
3648
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3676,7 +3676,7 @@ 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 sf extends
|
|
3679
|
+
`;class sf extends wh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Eh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,r){e.year=this._yearAfterXYears(r)}_yearAfterXYears(e){const r=new Date,i=new Date(r);return i.setFullYear(parseInt(e)+r.getFullYear()),i.getFullYear()}}q(sf);/**
|
|
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/
|
|
@@ -3684,7 +3684,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 lf extends
|
|
3687
|
+
*/class lf extends pe(af(se)){static get is(){return"vaadin-date-picker-year"}static get template(){return ne`
|
|
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
|
-
`}}
|
|
3696
|
+
`}}q(lf);/**
|
|
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 Dn(t,e,r,i,o){let n;o&&(n=typeof r=="object"&&r!==null,n&&(i=t.__dataTemp[e]));let s=i!==r&&(i===i||r===r);return n&&s&&(t.__dataTemp[e]=r),s}const On=j(t=>{class e extends t{_shouldPropertyChange(i,o,n){return Dn(this,i,o,n,!0)}}return e}),hf=j(t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,n){return Dn(this,i,o,n,this.mutableData)}}return e});On._mutablePropertyChange=Dn;/**
|
|
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 Ko=null;function Jo(){return Ko}Jo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Jo,writable:!0}});const Ph=pn(Jo),df=On(Ph);function cf(t,e){Ko=t,Object.setPrototypeOf(t,e.prototype),new e,Ko=null}const uf=pn(class{});function pf(t,e){for(let r=0;r<e.length;r++){let i=e[r];if(!!t!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),ee(ee(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&ee(ee(o).parentNode).replaceChild(i,o)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}class at extends uf{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let r=[];this.children=r;for(let o=this.root.firstChild;o;o=o.nextSibling)r.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,r){this._setPendingPropertyOrPath(e,r,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,r,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,r,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,r,i)}}_showHideChildren(e){pf(e,this.children)}_setUnmanagedPropertyToNode(e,r,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&r=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,r,i)}get parentModel(){let e=this.__parentModel;if(!e){let r;e=this;do e=e.__dataHost.__dataHost;while((r=e.__templatizeOptions)&&!r.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}at.prototype.__dataHost;at.prototype.__templatizeOptions;at.prototype._methodHost;at.prototype.__templatizeOwner;at.prototype.__hostProps;const mf=On(at);function ta(t){let e=t.__dataHost;return e&&e._methodHost||e}function _f(t,e,r){let i=r.mutableData?mf:at;Zo.mixin&&(i=Zo.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=r,o.prototype._bindTemplate(t),vf(o,t,e,r),o}function ff(t,e,r,i){let o=r.forwardHostProp;if(o&&e.hasHostProps){const n=t.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(n){let l=r.mutableData?df:Ph;class h extends l{}s=e.templatizeTemplateClass=h}else{const l=t.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:gf(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);gl&&i&&xf(e,r,i)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),n)cf(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in t){const h=t[l];delete t[l],t.__data[l]=h}}}}function gf(t,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function vf(t,e,r,i){let o=r.hostProps||{};for(let n in i.instanceProps){delete o[n];let s=i.notifyInstanceProp;s&&t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bf(n,s)})}if(i.forwardHostProp&&e.__dataHost)for(let n in o)r.hasHostProps||(r.hasHostProps=!0),t.prototype._addPropertyEffect(n,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:yf()})}function bf(t,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function yf(){return function(t,e,r){t.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function Zo(t,e,r){if(vi&&!ta(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let i=(e?e.constructor:at)._parseTemplate(t),o=i.templatizeInstanceClass;o||(o=_f(t,i,r),i.templatizeInstanceClass=o);const n=ta(t);ff(t,i,r,n);let s=class extends o{};return s.prototype._methodHost=n,s.prototype.__dataHost=t,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=i.hostProps,s=s,s}function xf(t,e,r){const i=r.constructor._properties,{propertyEffects:o}=t,{instanceProps:n}=e;for(let s in o)if(!i[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 wf(t,e){let r;for(;e;)if(r=e.__dataHost?e:e.__templatizeInstance)if(r.__dataHost!=t)e=r.__dataHost;else return r;else e=ee(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 ra=!1;function Cf(){if(fl&&!_l){if(!ra){ra=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}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,11 +3725,11 @@ 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 Ef=hf(
|
|
3728
|
+
*/const Ef=hf(se);class ia extends Ef{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:!ks,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(),Cf()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ee(ee(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let r=this.template=e._templateInfo?e:this.querySelector("template");if(!r){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 i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Zo(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,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(bp(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Mr(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 r=e,i=this.__getMethodHost();return function(){return i[r].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let i=0;i<r.length;i++)e.indexOf(r[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,r=0){this.__renderDebouncer=wi.debounce(this.__renderDebouncer,r>0?Pp.after(r):Al,e.bind(this)),rf(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),In()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const r=this.__sortAndFilterItems(e),i=this.__calculateLimit(r.length);this.__updateInstances(e,i,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ks||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=i;return this.__filterFn&&(r=r.filter((i,o,n)=>this.__filterFn(e[i],o,n))),this.__sortFn&&r.sort((i,o)=>this.__sortFn(e[i],e[o])),r}__calculateLimit(e){let r=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(e,this.initialCount),o=Math.max(r-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),r=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=r<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,r=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*r)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,r,i){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<r;n++){let s=this.__instances[n],a=i[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 r=this.__instances[e];const i=ee(r.root);for(let o=0;o<r.children.length;o++){let n=r.children[o];i.appendChild(n)}return r}__attachInstance(e,r){let i=this.__instances[e];r.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,r,i){let o={};return o[this.as]=e,o[this.indexAs]=r,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,r,i){const o=this.__stampInstance(e,r,i);let n=this.__instances[r+1],s=n?n.children[0]:this;return ee(ee(this).parentNode).insertBefore(o.root,s),this.__instances[r]=o,o}_showHideChildren(e){for(let r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(e)}__handleItemPath(e,r){let i=e.slice(6),o=i.indexOf("."),n=o<0?i:i.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":i.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,r,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let r=this.modelForElement(e);return r&&r[this.as]}indexForElement(e){let r=this.modelForElement(e);return r&&r[this.indexAs]}modelForElement(e){return wf(this.template,e)}}customElements.define(ia.is,ia);/**
|
|
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 Pf=t=>class extends
|
|
3732
|
+
*/const Pf=t=>class extends nr(t){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=>$e(e.date,this.focusedDate))}ready(){super.ready(),Me(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,r,i){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),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===e.getMonth()&&i.getDate()-r.getDate()>=0?!1:!Xt(o,r,i)&&!Xt(n,r,i)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:n}=e,s=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(i,n).map((a,l)=>({weekDay:a,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(i=>$e(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return $e(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],n=i.getMonth(),s=e.getMonth();for(;i.getMonth()===s||i.getMonth()===n;)o.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_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 r=e.reduce((i,o)=>!i&&o?o:i);return Z_(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
|
|
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/
|
|
@@ -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
|
-
*/
|
|
3796
|
+
*/T("vaadin-month-calendar",Sf,{moduleId:"vaadin-month-calendar-styles"});class Af extends Pf(pe(se)){static get template(){return ne`
|
|
3797
3797
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3798
3798
|
<table
|
|
3799
3799
|
id="monthGrid"
|
|
@@ -3835,15 +3835,15 @@ 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,r){e&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,r,i,o,n,s){const a=["date"],l=e>
|
|
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,r){e&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,r,i,o,n,s){const a=["date"],l=e>Xo(new Date),h=e<Xo(new Date);return this.__isDayDisabled(e,o,n,s)&&a.push("disabled"),this.__isDayFocused(e,r)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),h&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,r){return $e(e,r)}__isDaySelected(e,r){return $e(e,r)}__getDayAriaSelected(e,r){if(this.__isDaySelected(e,r))return"true"}__isDayDisabled(e,r,i,o){return!Xt(e,r,i,o)}__getDayAriaDisabled(e,r,i,o){if(!(e===void 0||r===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,r,i,o))return"true"}__getDayTabindex(e,r){return this.__isDayFocused(e,r)?"0":"-1"}}q(Af);/**
|
|
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 Sh{constructor(e,r){this.query=e,this.callback=r,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 Tf=t=>class extends t{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(){Xl(this.$.scrollers,"pan-y"),Oe(this.$.scrollers,"track",this._track.bind(this)),Oe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Oe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Oe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ph(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Qe(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Oe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Qe(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Oe(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,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Qe(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",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Qe(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Oe(e,"tap",r=>{this._onYearTap(r)}),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,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,i,o,n){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(i,o,n))}__updateCalendars(e,r,i,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=r,c.minDate=i,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,r,i){e&&e.length&&e.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):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,r=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,r);return}const o=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<i;o?this._scrollToPosition(i,r):s&&this._scrollToPosition(i-n+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ee.debounce(this._debouncer,_t.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,i){return e&&r&&typeof r.formatDate=="function"?r.formatDate(Tn(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const r=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+r*12,!0)}}_scrollToPosition(e,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const 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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,r){return Math.min(r.max,Math.max(r.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 r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{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 bh(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.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){He(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){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&&He(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,r){return To(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return To(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{dh(this,()=>{kn(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(vh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const i=new Date(0,0);i.setFullYear(e.getFullYear()),r==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return Wt(e,r,i,o)}_isTodayAllowed(e,r,i){return this._dateAllowed(this._getTodayMidnight(),e,r,i)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
|
|
3846
|
+
*/const Tf=t=>class extends t{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(){Kl(this.$.scrollers,"pan-y"),Me(this.$.scrollers,"track",this._track.bind(this)),Me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Sh(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new nt(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Me(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new nt(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Me(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,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new nt(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",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new nt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Me(e,"tap",r=>{this._onYearTap(r)}),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,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,i,o,n){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(i,o,n))}__updateCalendars(e,r,i,o,n,s,a,l,h,d){e&&e.length&&e.forEach(c=>{c.i18n=r,c.minDate=i,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,r,i){e&&e.length&&e.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):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,r=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,r);return}const o=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+n-1<i;o?this._scrollToPosition(i,r):s&&this._scrollToPosition(i-n+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ce.debounce(this._debouncer,gt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,i){return e&&r&&typeof r.formatDate=="function"?r.formatDate(kn(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const r=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+r*12,!0)}}_scrollToPosition(e,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const 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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,r){return Math.min(r.max,Math.max(r.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 r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{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 yh(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.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){$e(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){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&&$e(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,r){return ko(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return ko(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{ch(this,()=>{In(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(bh(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const i=new Date(0,0);i.setFullYear(e.getFullYear()),r==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return Xt(e,r,i,o)}_isTodayAllowed(e,r,i){return this._dateAllowed(this._getTodayMidnight(),e,r,i)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
|
|
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/
|
|
@@ -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
|
-
*/
|
|
3914
|
+
*/T("vaadin-date-picker-overlay-content",kf,{moduleId:"vaadin-date-picker-overlay-content-styles"});class If extends Tf(Ct(pe(wt(se)))){static get template(){return ne`
|
|
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,28 +3931,28 @@ 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()}}
|
|
3934
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}q(If);/**
|
|
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 lo=new WeakMap;function Df(t){return lo.has(t)||lo.set(t,new Set),lo.get(t)}function Of(t,e){const r=document.createElement("style");r.textContent=t,e===document?document.head.appendChild(r):e.insertBefore(r,e.firstChild)}const Ah=j(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=Df(e);this.slotStyles.forEach(i=>{r.has(i)||(Of(i,e),r.add(i))})}});/**
|
|
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 Nf=t=>class extends
|
|
3942
|
+
*/const Nf=t=>class extends Wr(Ur(t)){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(),qo||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 Nn=j(t=>class extends th(En(Wr(t))){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(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
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 Mn=t=>class extends Ah(xn(Nn(Pn(Nf(Ur(t)))))){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;
|
|
3954
3954
|
}
|
|
3955
|
-
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=
|
|
3955
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ce.debounce(this._preventInputDebouncer,gt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
|
|
3956
3956
|
* @license
|
|
3957
3957
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3958
3958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4023,19 +4023,19 @@ 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 Bn=[Bf,zf,Mf];/**
|
|
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 Th=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(s=>!this.__initialClasses.has(s));n.length>0&&i.remove(...n)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.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 Ff=t=>class extends Ah(xt(yn(On(Vr(t))))){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 r=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,r].join("/")},parseDate(e){const r=e.split("/"),i=new Date;let o,n=i.getMonth(),s=i.getFullYear();if(r.length===3){if(n=parseInt(r[0])-1,o=parseInt(r[1]),s=parseInt(r[2]),r[2].length<3&&s>=0){const a=this.referenceDate?fr(this.referenceDate):new Date;s=Q_(a,s,n,o)}}else r.length===2?(n=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,r)=>`${e} ${r}`})},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:ch},_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&&!Ni()&&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 Ph(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Th(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 r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=fr(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Tn(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Wt(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())),r&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!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,r,i,o,n,s){return!e||r&&(!s||n)||i&&n||!o.parseDate}_formatISO(e){return tf(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,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const i=fr(e);if(e&&!i){this.value=r;return}e?He(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,i,o,n,s,a,l,h){e&&(e.i18n=r,e.label=i,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const i=e.focusedDate||r;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=uh(n)}_getInitialPosition(){const e=fr(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Wt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?vh(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);r?this.__commitDate(r):(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,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_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,He(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return fr(e)}};/**
|
|
4038
|
+
*/const Ff=t=>class extends Th(Ct(xn(Nn(Ur(t))))){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 r=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,r].join("/")},parseDate(e){const r=e.split("/"),i=new Date;let o,n=i.getMonth(),s=i.getFullYear();if(r.length===3){if(n=parseInt(r[0])-1,o=parseInt(r[1]),s=parseInt(r[2]),r[2].length<3&&s>=0){const a=this.referenceDate?vr(this.referenceDate):new Date;s=Q_(a,s,n,o)}}else r.length===2?(n=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:n,year:s}},formatTitle:(e,r)=>`${e} ${r}`})},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:uh},_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&&!Mi()&&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 Sh(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),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 r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=vr(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(kn(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Xt(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())),r&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!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,r,i,o,n,s){return!e||r&&(!s||n)||i&&n||!o.parseDate}_formatISO(e){return tf(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,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const i=vr(e);if(e&&!i){this.value=r;return}e?$e(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,i,o,n,s,a,l,h){e&&(e.i18n=r,e.label=i,e.minDate=o,e.maxDate=n,e.focusedDate=s,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=h)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const i=e.focusedDate||r;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[o,e];this.__showOthers=ph(n)}_getInitialPosition(){const e=vr(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Xt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?bh(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);r?this.__commitDate(r):(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,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_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,$e(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return vr(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/
|
|
@@ -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
|
-
*/
|
|
4059
|
+
*/T("vaadin-date-picker",[Bn,Lf],{moduleId:"vaadin-date-picker-styles"});class Hf extends Ff(Mn(pe(rr(se)))){static get is(){return"vaadin-date-picker"}static get template(){return ne`
|
|
4060
4060
|
<div class="vaadin-date-picker-container">
|
|
4061
4061
|
<div part="label">
|
|
4062
4062
|
<slot name="label"></slot>
|
|
@@ -4098,23 +4098,23 @@ 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 Bi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new zi(this.inputElement,this._labelController)),this._tooltipController=new ir(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}}q(Hf);/**
|
|
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/
|
|
4105
|
-
*/
|
|
4105
|
+
*/T("vaadin-text-field",jr,{moduleId:"lumo-text-field-styles"});/**
|
|
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 Rf=t=>class extends
|
|
4109
|
+
*/const Rf=t=>class extends Mn(t){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,r){super._valueChanged(e,r),r!==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 Vf=t=>class extends Rf(t){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
|
|
4113
|
+
*/const Vf=t=>class extends Rf(t){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 Bi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zi(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
|
-
*/
|
|
4117
|
+
*/T("vaadin-text-field",Bn,{moduleId:"vaadin-text-field-styles"});class Ih extends Vf(pe(rr(se))){static get is(){return"vaadin-text-field"}static get template(){return ne`
|
|
4118
4118
|
<div class="vaadin-field-container">
|
|
4119
4119
|
<div part="label">
|
|
4120
4120
|
<slot name="label"></slot>
|
|
@@ -4143,7 +4143,7 @@ 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
|
|
4146
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ir(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}q(Ih);/**
|
|
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/
|
|
@@ -4160,7 +4160,7 @@ 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
|
-
`;
|
|
4163
|
+
`;T("vaadin-password-field-button",[sh,$f],{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/
|
|
@@ -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
|
-
`;
|
|
4185
|
+
`;T("vaadin-password-field",[jr,Uf],{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
|
-
*/
|
|
4189
|
+
*/T("vaadin-password-field-button",gh,{moduleId:"vaadin-password-field-button-styles"});class Wf extends vh(wt(pe(se))){static get is(){return"vaadin-password-field-button"}static get template(){return ne``}}q(Wf);/**
|
|
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 jf=t=>class extends
|
|
4193
|
+
*/const jf=t=>class extends Ah(or(nr(Wr(t)))){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 nt(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 r=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!r)}}__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,r){super._disabledChanged(e,r),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 Gf=
|
|
4201
|
+
*/const Gf=ne`
|
|
4202
4202
|
<div part="reveal-button" slot="suffix">
|
|
4203
4203
|
<slot name="reveal"></slot>
|
|
4204
4204
|
</div>
|
|
4205
|
-
`;let
|
|
4205
|
+
`;let ii;class qf extends jf(Ih){static get is(){return"vaadin-password-field"}static get template(){if(!ii){ii=super.template.cloneNode(!0);const e=Gf.content.querySelector('[part="reveal-button"]');ii.content.querySelector('[part="input-field"]').appendChild(e)}return ii}}q(qf);const Dh=w`
|
|
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
|
-
`;
|
|
4289
|
+
`;T("vaadin-item",Dh,{moduleId:"lumo-item"});const Yf=w`
|
|
4290
4290
|
:host {
|
|
4291
4291
|
transition: background-color 100ms;
|
|
4292
4292
|
overflow: hidden;
|
|
@@ -4298,7 +4298,7 @@ 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
|
-
`;
|
|
4301
|
+
`;T("vaadin-combo-box-item",[Dh,Yf],{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/
|
|
@@ -4373,7 +4373,7 @@ 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
|
-
`;
|
|
4376
|
+
`;T("vaadin-combo-box-overlay",[An,Tn,Kf,Xf,Jf,w`
|
|
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;
|
|
@@ -4382,7 +4382,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4382
4382
|
[part='toggle-button']::before {
|
|
4383
4383
|
content: var(--lumo-icons-dropdown);
|
|
4384
4384
|
}
|
|
4385
|
-
`;
|
|
4385
|
+
`;T("vaadin-combo-box",[jr,Zf],{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/
|
|
@@ -4390,7 +4390,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 eg extends Qf(
|
|
4393
|
+
*/class eg extends Qf(pe(wt(se))){static get template(){return ne`
|
|
4394
4394
|
<style>
|
|
4395
4395
|
:host {
|
|
4396
4396
|
display: block;
|
|
@@ -4404,11 +4404,11 @@ 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"}}
|
|
4407
|
+
`}static get is(){return"vaadin-combo-box-item"}}q(eg);/**
|
|
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 tg=t=>class extends
|
|
4411
|
+
*/const tg=t=>class extends fh(t){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,r=e&&e.getAttribute("dir");r&&this.setAttribute("dir",r)}_shouldCloseOnOutsideClick(e){const r=e.composedPath();return!r.includes(this.positionTarget)&&!r.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!yn(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const r=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);r===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,r)}_setOverlayWidth(e,r){e&&r&&(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/
|
|
@@ -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
|
-
`;
|
|
4425
|
+
`;T("vaadin-combo-box-overlay",[lh,rg],{moduleId:"vaadin-combo-box-overlay-styles"});class ig extends tg(_h(wt(pe(se)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return ne`
|
|
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
|
-
`}}
|
|
4431
|
+
`}}q(ig);/**
|
|
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 Ci(t,e){return t.split(".").reduce((r,i)=>r?r[i]: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,23 +4440,23 @@ 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 oa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),og=oa&&oa[1]>=8,na=3,ng={_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 t=this._virtualCount;return Math.max(0,t-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){t%=this._physicalCount,t<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(t==null){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems((r,i)=>{if(e+=this._getPhysicalSizeIncrement(r),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(t==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((r,i)=>{e<this._scrollBottom&&(t=i),e+=this._getPhysicalSizeIncrement(r)}),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const r=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(r);r?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,r?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),yi)}},_getReusables(t){let e,r,i;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(t?(e=this._physicalStart,r=c-h):(e=this._physicalEnd,r=d-p);i=this._getPhysicalSizeIncrement(e),r-=i,!(o.length>=l||r<=n);)if(t){if(a+o.length+1>=this._virtualCount||h+i>=c-this._scrollOffset)break;o.push(e),h+=i,e=(e+1)%l}else{if(s-o.length<=0||h+this._physicalSize-i<=p)break;o.push(e),h-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&t.length===0||this._physicalCount===0)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const r=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(r)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,na,this._virtualCount-this._virtualStart)-this._physicalCount;let r=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let 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()-i)/e,r=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||r===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,r)),$l):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,r),yi))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(na))},_itemsChanged(t){t.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,Fr))},_iterateItems(t,e){let r,i,o,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(r=e[n],i=this._computeVidx(r),(o=t.call(this,r,i))!=null)return o}else{for(r=this._physicalStart,i=this._virtualStart;r<this._physicalCount;r++,i++)if((o=t.call(this,r,i))!=null)return o;for(r=0;r<this._physicalStart;r++,i++)if((o=t.call(this,r,i))!=null)return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(t!==0){this._physicalTop-=t;const e=this._scrollPosition;!og&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||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(t){if(typeof t!="number"||t<0||t>this.items.length-1||(xr(),this._physicalCount===0))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,r=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;r<t&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,r+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Fr)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp(t,e,r){return Math.min(r,Math.max(e,t))},_debounce(t,e,r){this._debouncers||(this._debouncers={}),this._debouncers[t]=Ce.debounce(this._debouncers[t],r,e.bind(this)),Ul(this._debouncers[t])}};/**
|
|
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 sg=1e5,lo=1e3;class Dh{constructor({createElements:e,updateElement:r,scrollTarget:i,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=r,this.scrollTarget=i,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 r=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<r?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<r?e<lo?(i=e,this._vidxOffset=0):(i=lo,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),br(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,r=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=r&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){br();let r=0,i=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),r+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+r-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+r)/this._physicalAverageCount))}__getBorderBoxHeight(e){const r=getComputedStyle(e),i=parseFloat(r.height)||0;if(r.boxSizing==="border-box")return i;const o=parseFloat(r.paddingBottom)||0,n=parseFloat(r.paddingTop)||0,s=parseFloat(r.borderBottomWidth)||0,a=parseFloat(r.borderTopWidth)||0;return i+o+n+s+a}__updateElement(e,r,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==r||i)&&(this.updateElement(e,r),e.__lastUpdatedIndex=r)}__afterElementsUpdated(e){e.forEach(r=>{const i=r.offsetHeight;if(i===0)r.style.paddingTop=`${this.__placeholderHeight}px`,r.style.opacity="0",r.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Ee.debounce(this.__placeholderClearDebouncer,Br,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),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 r=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return r?this.scrollTarget.getBoundingClientRect().top-r.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 r,i;if(e>0&&(r=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(r)),this.__size=e,this._itemsChanged({path:"items"}),br(),e>0){r=Math.min(r,e-1),this.scrollToIndex(r);const o=this.__getIndexScrollOffset(r);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),br(),this._debounce("_update",this._update,bi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,sg)}}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 r=this.createElements(e),i=document.createDocumentFragment();return r.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),r}_assignModels(e){const r=[];this._iterateItems((i,o)=>{const n=this._physicalItems[i];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),r.push(n))},e),this.__afterElementsUpdated(r)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,r,i,o){o.style.transform=`translateY(${r})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,r){return r.indexOf(e)===r.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,r){return r.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const r=e.detail.element;if(!r)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(r,i)||this.__nextFocusableSiblingMissing(r,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(r,o)?(this._scrollTop+=Math.ceil(r.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(r,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(r.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 r=e>=0,i=this._getReusables(!r);i.indexes.length&&(this._physicalTop=i.physicalTop,r?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Ee.debounce(this.__fixInvalidItemPositioningDebouncer,_t.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Ee.debounce(this.__scrollReorderDebouncer,_t.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,r=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||r&&!o){const n=r,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 r=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?r*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=r,e.preventDefault();return}r+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Ee.debounce(this.__debouncerWheelAnimationFrame,Br,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(r);this._canScroll(this.scrollTarget,e.deltaX,r)?(e.preventDefault(),this.scrollTarget.scrollTop+=r,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Ee.debounce(this._debouncerIgnoreNewWheel,_t.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,r,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,r,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,r,i)}_canScroll(e,r,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||r>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||r<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const r=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,r)))}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),r=Math.max(...this._physicalSizes);return r>Math.min(...this._physicalSizes)?Math.max(0,r-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const r=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),r?window.parseInt(r):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),r=this.__getVisibleElements(),i=this.__getFocusedElement(r)||r[0];if(!i)return;const o=i.__virtualIndex-e,n=r.indexOf(i)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(r[s]);else if(n<0)for(let s=r.length+n;s<r.length;s++)this.elementsContainer.insertBefore(r[s],r[0]);if(F_){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const r=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*r)}else{const i=this._vidxOffset,o=lo,n=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=r,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<r&&(this._vidxOffset+=Math.min(r-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Dh.prototype,ng);class ag{constructor(e){this.__adapter=new Dh(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,r=this.size-1){this.__adapter.update(e,r)}flush(){this.__adapter.flush()}}/**
|
|
4447
|
+
*/const sg=1e5,ho=1e3;class Oh{constructor({createElements:e,updateElement:r,scrollTarget:i,scrollContainer:o,elementsContainer:n,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=r,this.scrollTarget=i,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 r=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<r?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<r?e<ho?(i=e,this._vidxOffset=0):(i=ho,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),xr(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,r=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=r&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){xr();let r=0,i=0;const o=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((s,a)=>{i+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),r+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+r-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((n*o+r)/this._physicalAverageCount))}__getBorderBoxHeight(e){const r=getComputedStyle(e),i=parseFloat(r.height)||0;if(r.boxSizing==="border-box")return i;const o=parseFloat(r.paddingBottom)||0,n=parseFloat(r.paddingTop)||0,s=parseFloat(r.borderBottomWidth)||0,a=parseFloat(r.borderTopWidth)||0;return i+o+n+s+a}__updateElement(e,r,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==r||i)&&(this.updateElement(e,r),e.__lastUpdatedIndex=r)}__afterElementsUpdated(e){e.forEach(r=>{const i=r.offsetHeight;if(i===0)r.style.paddingTop=`${this.__placeholderHeight}px`,r.style.opacity="0",r.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Ce.debounce(this.__placeholderClearDebouncer,Fr,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),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 r=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return r?this.scrollTarget.getBoundingClientRect().top-r.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 r,i;if(e>0&&(r=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(r)),this.__size=e,this._itemsChanged({path:"items"}),xr(),e>0){r=Math.min(r,e-1),this.scrollToIndex(r);const o=this.__getIndexScrollOffset(r);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),xr(),this._debounce("_update",this._update,yi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,sg)}}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 r=this.createElements(e),i=document.createDocumentFragment();return r.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),r}_assignModels(e){const r=[];this._iterateItems((i,o)=>{const n=this._physicalItems[i];n.hidden=o>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),r.push(n))},e),this.__afterElementsUpdated(r)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,r,i,o){o.style.transform=`translateY(${r})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,r){return r.indexOf(e)===r.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,r){return r.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const r=e.detail.element;if(!r)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(r,i)||this.__nextFocusableSiblingMissing(r,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(r,o)?(this._scrollTop+=Math.ceil(r.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(r,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(r.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 r=e>=0,i=this._getReusables(!r);i.indexes.length&&(this._physicalTop=i.physicalTop,r?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=Ce.debounce(this.__fixInvalidItemPositioningDebouncer,gt.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Ce.debounce(this.__scrollReorderDebouncer,gt.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,r=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||r&&!o){const n=r,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 r=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?r*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=r,e.preventDefault();return}r+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Ce.debounce(this.__debouncerWheelAnimationFrame,Fr,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(r);this._canScroll(this.scrollTarget,e.deltaX,r)?(e.preventDefault(),this.scrollTarget.scrollTop+=r,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Ce.debounce(this._debouncerIgnoreNewWheel,gt.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,r,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,r,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,r,i)}_canScroll(e,r,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||r>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||r<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const r=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,r)))}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),r=Math.max(...this._physicalSizes);return r>Math.min(...this._physicalSizes)?Math.max(0,r-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const r=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),r?window.parseInt(r):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),r=this.__getVisibleElements(),i=this.__getFocusedElement(r)||r[0];if(!i)return;const o=i.__virtualIndex-e,n=r.indexOf(i)-o;if(n>0)for(let s=0;s<n;s++)this.elementsContainer.appendChild(r[s]);else if(n<0)for(let s=r.length+n;s<r.length;s++)this.elementsContainer.insertBefore(r[s],r[0]);if(F_){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const r=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*r)}else{const i=this._vidxOffset,o=ho,n=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=r,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<r&&(this._vidxOffset+=Math.min(r-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Oh.prototype,ng);class ag{constructor(e){this.__adapter=new Oh(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,r=this.size-1){this.__adapter.update(e,r)}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/
|
|
4451
|
-
*/const
|
|
4451
|
+
*/const Kt=class{toString(){return""}};/**
|
|
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 lg=t=>class extends t{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(r=>parseInt(r,10)).reduce((r,i)=>r+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${
|
|
4455
|
+
*/const lg=t=>class extends t{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(r=>parseInt(r,10)).reduce((r,i)=>r+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${_n()}`,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 r=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-r+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));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,r,i){return e instanceof Kt?!1:i&&e!==void 0&&r!==void 0?Ci(i,e)===Ci(i,r):e===r}__initVirtualizer(){this.__virtualizer=new ag({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,r){(e||r)&&this.requestContentUpdate()}__focusedIndexChanged(e,r){e!==r&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,r){(e||r)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const r=document.createElement(`${this.__hostTagName}-item`);return r.addEventListener("click",this.__boundOnItemClick),r.tabIndex="-1",r.style.width="100%",r})}_updateElement(e,r){const i=this.items[r],o=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:r,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&o===r}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${r}`,e.setAttribute("role",r!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",r+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Kt&&this.__requestItemByIndex(r)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const r=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(r&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
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 hg extends lg(
|
|
4459
|
+
*/class hg extends lg(se){static get is(){return"vaadin-combo-box-scroller"}static get template(){return ne`
|
|
4460
4460
|
<style>
|
|
4461
4461
|
:host {
|
|
4462
4462
|
display: block;
|
|
@@ -4483,27 +4483,27 @@ 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
|
-
`}}
|
|
4486
|
+
`}}q(hg);/**
|
|
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 dg=t=>class extends
|
|
4490
|
+
*/const dg=t=>class extends Nn(t){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 Ei(t,e,r=0){let i=e;for(const o of t.subCaches){const n=o.parentCacheIndex;if(i<=n)break;if(i<=n+o.flatSize)return Ei(o,i-n-1,r+1);i-=o.flatSize}return{cache:t,item:t.items[i],index:i,page:Math.floor(i/t.pageSize),level:r}}function Nh({getItemId:t},e,r,i=0,o=0){for(let n=0;n<e.items.length;n++){const s=e.items[n];if(s&&t(s)===t(r))return{cache:e,level:i,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=Nh({getItemId:t},n,r,i+1,s+1);if(a)return a}}function Mh(t,[e,...r],i=0){e===1/0&&(e=t.size-1);const o=t.getFlatIndex(e),n=t.getSubCache(e);return n&&n.flatSize>0&&r.length?Mh(n,r,i+o+1):i+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 zn{constructor(e,r,i,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=r,this.size=i,this.parentCache=o,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var r;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(r=this.items)[i]||(r[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,r)=>(r.recalculateFlatSize(),e+r.flatSize),0):0}setPage(e,r){const i=e*this.pageSize;r.forEach((o,n)=>{const s=i+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 r=new zn(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=r,r}getFlatIndex(e){const r=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,o)=>{const n=o.parentCacheIndex;return r>n?i+o.flatSize:i},r)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:r}=Ei(this,e);return r}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:r,index:i}=Ei(this,e);return{cache:r,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const r=this.createSubCache(e);this.context.__controller.__loadCachePage(r,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 cg extends EventTarget{constructor(e,{size:r,pageSize:i,isExpanded:o,getItemId:n,isPlaceholder:s,placeholder:a,dataProvider:l,dataProviderParams:h}){super(),
|
|
4502
|
+
*/class cg extends EventTarget{constructor(e,{size:r,pageSize:i,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=i,this.getItemId=n,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=h,this.rootCache=this.__createRootCache(r)}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 Ei(this.rootCache,e)}getItemContext(e){return Nh({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Mh(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:r,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(r,i)}ensureFlatIndexHierarchy(e){const{cache:r,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!r.getSubCache(o)){const n=r.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new zn(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,r){if(!this.dataProvider||e.pendingRequests[r])return;let i={page:r,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=pi(pi({},i),this.dataProviderParams()));const o=(n,s)=>{e.pendingRequests[r]===o&&(s!==void 0?e.size=s:i.parentItem&&(e.size=n.length),e.setPage(r,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[r],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[r]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,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 ug=t=>class extends t{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 cg(this,{placeholder:new
|
|
4506
|
+
*/const ug=t=>class extends t{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 cg(this,{placeholder:new Kt,isPlaceholder:e=>e instanceof Kt,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 r=e.detail.index;r!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(r)}),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:r}=this.__dataProviderController;r.size!==e&&(r.size=e,r.items=[...r.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:r}=this.__dataProviderController;r.items!==e&&(r.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,r){if(Math.floor(e)!==e||e<1)throw this.pageSize=r,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,r){this._ensureItemsOrDataProvider(()=>{this.dataProvider=r}),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,r){if(e&&r!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,r);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
|
|
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/
|
|
@@ -4511,11 +4511,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 na(t){return t!=null}function sa(t,e){return t.findIndex(r=>r instanceof jt?!1:e(r))}const mg=t=>class extends Ah(xt(Cn(er(Vr($r(Qt(t))))))){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 r=this._nativeInput;r&&(r.autocomplete="off",r.autocapitalize="off",r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded",!!this.opened),r.setAttribute("spellcheck","false"),r.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),pg(this),this.addController(new Th(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,r,i){super._propertiesChanged(e,r,i),r.filter!==void 0&&this._filterChanged(r.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",r=>r.preventDefault()),e.addEventListener("opened-changed",r=>{this._overlayOpened=r.detail.value}),this._overlayElement=e}_initScroller(e){const r=document.createElement(`${this._tagNamePrefix}-scroller`);r.owner=e||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(r)},i.requestContentUpdate(),this._scroller=r}_updateScroller(e,r,i,o,n,s,a,l,h,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?r:[],opened:i,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,r,i,o){this._overlayOpened=e&&(o||i||!!(r&&r.length))}_overlayOpenedChanged(e,r){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):r&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,r){r!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Jl(this.inputElement)}_updateActiveDescendant(e){const r=this._nativeInput;if(!r)return;const i=this._getItemElements().find(o=>o.index===e);i?r.setAttribute("aria-activedescendant",i.id):r.removeAttribute("aria-activedescendant")}_openedChanged(e,r){if(r===void 0)return;e?!this._isInputFocused()&&!Go&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let r=e&&this.itemLabelPath?wi(this.itemLabelPath,e):void 0;return r==null&&(r=e?e.toString():""),r}_getItemValue(e){let r=e&&this.itemValuePath?wi(this.itemValuePath,e):void 0;return r===void 0&&(r=e?e.toString():""),r}_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,r){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,r)}_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",r=>r.preventDefault()),e.addEventListener("click",()=>{Go&&!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||[]],r=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!r){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&r?this.value=this._getItemValue(r):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const r=this._inputElementValue,i={};this.filter===r?this._filterChanged(this.filter):i.filter=r,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const r=this._getItemValue(e);if(this.value!==r&&(this.value=r,this.value!==r))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,r){e===""&&r===void 0||(na(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,r){this._ensureItemsOrDataProvider(()=>{this.items=r}),e?this.filteredItems=e.slice(0):r&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,r){return e&&e.filter(i=>(r=r?r.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(r)>-1))}_selectItemForValue(e){const r=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;r>=0?this.selectedItem=this.filteredItems[r]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const r=this._dropdownItems;this._dropdownItems=e;const i=r?r[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(i));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,r){return!e||!na(r)?-1:sa(e,i=>this._getItemValue(i)===r)}__getItemIndexByLabel(e,r){return!e||!r?-1:sa(e,i=>this._getItemLabel(i).toString().toLowerCase()===r.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof jt)&&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(Ni()){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 sa(t){return t!=null}function aa(t,e){return t.findIndex(r=>r instanceof Kt?!1:e(r))}const mg=t=>class extends Th(Ct(En(nr(Ur(Wr(or(t))))))){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 r=this._nativeInput;r&&(r.autocomplete="off",r.autocapitalize="off",r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded",!!this.opened),r.setAttribute("spellcheck","false"),r.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),pg(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,r,i){super._propertiesChanged(e,r,i),r.filter!==void 0&&this._filterChanged(r.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",r=>r.preventDefault()),e.addEventListener("opened-changed",r=>{this._overlayOpened=r.detail.value}),this._overlayElement=e}_initScroller(e){const r=document.createElement(`${this._tagNamePrefix}-scroller`);r.owner=e||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(r)},i.requestContentUpdate(),this._scroller=r}_updateScroller(e,r,i,o,n,s,a,l,h,d){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?r:[],opened:i,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,r,i,o){this._overlayOpened=e&&(o||i||!!(r&&r.length))}_overlayOpenedChanged(e,r){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):r&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,r){r!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Zl(this.inputElement)}_updateActiveDescendant(e){const r=this._nativeInput;if(!r)return;const i=this._getItemElements().find(o=>o.index===e);i?r.setAttribute("aria-activedescendant",i.id):r.removeAttribute("aria-activedescendant")}_openedChanged(e,r){if(r===void 0)return;e?!this._isInputFocused()&&!qo&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let r=e&&this.itemLabelPath?Ci(this.itemLabelPath,e):void 0;return r==null&&(r=e?e.toString():""),r}_getItemValue(e){let r=e&&this.itemValuePath?Ci(this.itemValuePath,e):void 0;return r===void 0&&(r=e?e.toString():""),r}_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,r){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,r)}_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",r=>r.preventDefault()),e.addEventListener("click",()=>{qo&&!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||[]],r=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!r){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&r?this.value=this._getItemValue(r):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const r=this._inputElementValue,i={};this.filter===r?this._filterChanged(this.filter):i.filter=r,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const r=this._getItemValue(e);if(this.value!==r&&(this.value=r,this.value!==r))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,r){e===""&&r===void 0||(sa(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,r){this._ensureItemsOrDataProvider(()=>{this.items=r}),e?this.filteredItems=e.slice(0):r&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,r){return e&&e.filter(i=>(r=r?r.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(r)>-1))}_selectItemForValue(e){const r=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;r>=0?this.selectedItem=this.filteredItems[r]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const r=this._dropdownItems;this._dropdownItems=e;const i=r?r[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(i));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,r){return!e||!sa(r)?-1:aa(e,i=>this._getItemValue(i)===r)}__getItemIndexByLabel(e,r){return!e||!r?-1:aa(e,i=>this._getItemLabel(i).toString().toLowerCase()===r.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Kt)&&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(Mi()){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
|
-
*/
|
|
4518
|
+
*/T("vaadin-combo-box",Bn,{moduleId:"vaadin-combo-box-styles"});class _g extends ug(mg(dg(Mn(pe(rr(se)))))){static get is(){return"vaadin-combo-box"}static get template(){return ne`
|
|
4519
4519
|
<style>
|
|
4520
4520
|
:host([opened]) {
|
|
4521
4521
|
pointer-events: auto;
|
|
@@ -4560,4 +4560,4 @@ 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 Mi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Bi(this.inputElement,this._labelController)),this._tooltipController=new Zt(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 r=e.composedPath();(r.includes(this._labelNode)||r.includes(this._positionTarget))&&super._onHostClick(e)}}K(_g);function fg(t){$h(t,"svelte-11bz6pl",'*,*::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: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:100px;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-large, 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{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:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.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 aa(t,e,r){const i=t.slice();return i[78]=e[r],i}function la(t,e,r){const i=t.slice();return i[81]=e[r],i[83]=r,i}function ha(t,e,r){const i=t.slice();return i[84]=e[r],i}function da(t,e,r){const i=t.slice();return i[87]=e[r],i}function ca(t,e,r){const i=t.slice();return i[84]=e[r],i}function ua(t,e,r){const i=t.slice();return i[84]=e[r],i}function pa(t,e,r){const i=t.slice();return i[94]=e[r],i[83]=r,i}function gg(t,e,r){const i=t.slice();return i[69]=e[r],i}function vg(t,e,r){const i=t.slice();return i[69]=e[r],i}function bg(t,e,r){const i=t.slice();return i[69]=e[r],i}function yg(t,e,r){const i=t.slice();return i[69]=e[r],i}function xg(t){let e,r,i,o,n,s,a,l,h,d,c,p,u,g=t[17]("headerTitle")+"",y,k,E,A,P=t[17]("headerTitle")+"",H,F,J,W,C,se,$,Re,Me=t[17]("dateFrom")+"",rt,Ae,ee,ve,_e,it,be=t[17]("dateTo")+"",tr,rr,he,B,Ve,ot=t[17]("dateFilter")+"",nt,st,Wr,at,de,$e,ir,lt,or,Be,ye,Ue,ht,nr,wt,sr,We,ar,lr,Ct,jr,je,dt,hr,Et,Gr,Pt,Te,Ge,_,N,M,z,qe,ke,xe,ct,dr,qr,Ie=Z(t[13]),q=[];for(let b=0;b<Ie.length;b+=1)q[b]=ma(pa(t,Ie,b));let Ye=Z(t[18][t[7]]),Y=[];for(let b=0;b<Ye.length;b+=1)Y[b]=_a(ua(t,Ye,b));function zn(b,L){return b[12]?Cg:Eg}let Yr=zn(t),De=Yr(t),St=Z(t[20]),ae=[];for(let b=0;b<St.length;b+=1)ae[b]=ya(aa(t,St,b));return{c(){e=v("div"),r=v("div"),i=v("div"),o=v("button"),n=ce("svg"),s=ce("defs"),a=ce("style"),l=ie(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=ce("g"),d=ce("g"),c=ce("path"),p=O(),u=v("h2"),y=ie(g),k=O(),E=v("div"),A=v("p"),H=ie(P),F=O(),J=v("div");for(let b=0;b<q.length;b+=1)q[b].c();W=O(),C=v("div"),se=v("div"),$=v("div"),Re=v("label"),rt=ie(Me),Ae=O(),ee=v("vaadin-date-picker"),ve=O(),_e=v("div"),it=v("label"),tr=ie(be),rr=O(),he=v("vaadin-date-picker"),B=O(),Ve=v("button"),nt=ie(ot),Wr=O(),at=v("table"),de=v("div"),$e=v("thead");for(let b=0;b<Y.length;b+=1)Y[b].c();ir=O(),lt=v("tbody"),De.c(),or=O(),Be=v("div"),ye=v("div"),Ue=v("button"),ht=ce("svg"),nr=ce("path"),sr=O(),We=v("div"),ar=v("p"),lr=ie(t[9]),jr=O(),je=v("button"),dt=ce("svg"),hr=ce("path"),Gr=O(),Pt=v("div"),Te=v("button"),Ge=v("div"),_=v("p"),N=ie(t[8]),M=O(),z=ce("svg"),qe=ce("path"),ke=O(),xe=v("div");for(let b=0;b<ae.length;b+=1)ae[b].c();f(c,"class","aaa"),f(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),f(c,"transform","translate(15 15) rotate(180)"),f(d,"transform","translate(20 158)"),f(h,"transform","translate(-20 -158)"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","15"),f(n,"height","15"),f(n,"viewBox","0 0 15 15"),f(u,"class","historyReturnText"),f(o,"class","historyReturnButton"),f(E,"class","headerText"),f(J,"class","headerController"),f(i,"class","historyHeader"),f(Re,"for","historyCalendarStartDate"),Ce(ee,"max",t[4]),Ce(ee,"value",t[5]),Ce(ee,"placeholder","From"),Ce(ee,"class","VaadinDatePicker"),f($,"class","historyCalendarStartDate"),f(it,"for","historyCalendarEndDate"),Ce(he,"max",t[4]),Ce(he,"value",t[6]),Ce(he,"placeholder","To"),Ce(he,"class","VaadinDatePicker"),f(_e,"class","historyCalendarEndDate"),f(se,"class","historyCalendarContainer"),f(Ve,"class",st="historyCalendarFilter "+(t[16].filterButton?"":"disable")),f(C,"class","historyFilter"),f($e,"class","tableHead"),f(lt,"class","tableContent"),f(de,"class","tableWrapper"),f(at,"class","historyTable"),f(nr,"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"),f(ht,"viewBox","1 4 17 17"),f(ht,"xmlns","http://www.w3.org/2000/svg"),f(Ue,"class",wt="arrowLeft "+(t[16].previousPage?"":"disable")),f(We,"class",Ct="indexDisplay "+(!t[16].previousPage&&!t[16].nextPage?"disable":"")),f(hr,"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"),f(dt,"viewBox","6 4 17 17"),f(dt,"xmlns","http://www.w3.org/2000/svg"),f(je,"class",Et="arrowRight "+(t[16].nextPage?"":"disable")),f(ye,"class","historyPageIndex"),f(qe,"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"),f(z,"xmlns","http://www.w3.org/2000/svg"),f(z,"viewBox","6 5 20 20"),f(z,"class","icon"),f(Ge,"class","currentPageSize"),f(xe,"class","pageSizeDropDown"),f(Te,"class",ct="pageSizeSelector "+(t[11]?"active":"")+" "+(t[16].pageSize?"":"disable")),f(Pt,"class","historyPageSize"),f(Be,"class","historyPaginationContainer"),f(r,"class","historyWrapper"),f(e,"class","historyContainer")},m(b,L){U(b,e,L),m(e,r),m(r,i),m(i,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,y),m(i,k),m(i,E),m(E,A),m(A,H),m(i,F),m(i,J);for(let x=0;x<q.length;x+=1)q[x]&&q[x].m(J,null);m(r,W),m(r,C),m(C,se),m(se,$),m($,Re),m(Re,rt),m($,Ae),m($,ee),t[42](ee),m(se,ve),m(se,_e),m(_e,it),m(it,tr),m(_e,rr),m(_e,he),t[43](he),m(C,B),m(C,Ve),m(Ve,nt),m(r,Wr),m(r,at),m(at,de),m(de,$e);for(let x=0;x<Y.length;x+=1)Y[x]&&Y[x].m($e,null);m(de,ir),m(de,lt),De.m(lt,null),m(r,or),m(r,Be),m(Be,ye),m(ye,Ue),m(Ue,ht),m(ht,nr),m(ye,sr),m(ye,We),m(We,ar),m(ar,lr),m(ye,jr),m(ye,je),m(je,dt),m(dt,hr),m(Be,Gr),m(Be,Pt),m(Pt,Te),m(Te,Ge),m(Ge,_),m(_,N),m(Ge,M),m(Ge,z),m(z,qe),m(Te,ke),m(Te,xe);for(let x=0;x<ae.length;x+=1)ae[x]&&ae[x].m(xe,null);dr||(qr=[Ke(o,"click",t[40]),Ke(Ve,"click",t[44]),Ke(Ue,"click",t[46]),Ke(je,"click",t[47]),Ke(Te,"click",t[49])],dr=!0)},p(b,L){if(L[0]&131072&&g!==(g=b[17]("headerTitle")+"")&&ge(y,g),L[0]&131072&&P!==(P=b[17]("headerTitle")+"")&&ge(H,P),L[0]&2236416){Ie=Z(b[13]);let x;for(x=0;x<Ie.length;x+=1){const Xe=pa(b,Ie,x);q[x]?q[x].p(Xe,L):(q[x]=ma(Xe),q[x].c(),q[x].m(J,null))}for(;x<q.length;x+=1)q[x].d(1);q.length=Ie.length}if(L[0]&131072&&Me!==(Me=b[17]("dateFrom")+"")&&ge(rt,Me),L[0]&16&&Ce(ee,"max",b[4]),L[0]&32&&Ce(ee,"value",b[5]),L[0]&131072&&be!==(be=b[17]("dateTo")+"")&&ge(tr,be),L[0]&16&&Ce(he,"max",b[4]),L[0]&64&&Ce(he,"value",b[6]),L[0]&131072&&ot!==(ot=b[17]("dateFilter")+"")&&ge(nt,ot),L[0]&65536&&st!==(st="historyCalendarFilter "+(b[16].filterButton?"":"disable"))&&f(Ve,"class",st),L[0]&393344){Ye=Z(b[18][b[7]]);let x;for(x=0;x<Ye.length;x+=1){const Xe=ua(b,Ye,x);Y[x]?Y[x].p(Xe,L):(Y[x]=_a(Xe),Y[x].c(),Y[x].m($e,null))}for(;x<Y.length;x+=1)Y[x].d(1);Y.length=Ye.length}if(Yr===(Yr=zn(b))&&De?De.p(b,L):(De.d(1),De=Yr(b),De&&(De.c(),De.m(lt,null))),L[0]&65536&&wt!==(wt="arrowLeft "+(b[16].previousPage?"":"disable"))&&f(Ue,"class",wt),L[0]&512&&ge(lr,b[9]),L[0]&65536&&Ct!==(Ct="indexDisplay "+(!b[16].previousPage&&!b[16].nextPage?"disable":""))&&f(We,"class",Ct),L[0]&65536&&Et!==(Et="arrowRight "+(b[16].nextPage?"":"disable"))&&f(je,"class",Et),L[0]&256&&ge(N,b[8]),L[0]&17825792){St=Z(b[20]);let x;for(x=0;x<St.length;x+=1){const Xe=aa(b,St,x);ae[x]?ae[x].p(Xe,L):(ae[x]=ya(Xe),ae[x].c(),ae[x].m(xe,null))}for(;x<ae.length;x+=1)ae[x].d(1);ae.length=St.length}L[0]&67584&&ct!==(ct="pageSizeSelector "+(b[11]?"active":"")+" "+(b[16].pageSize?"":"disable"))&&f(Te,"class",ct)},d(b){b&&V(e),Se(q,b),t[42](null),t[43](null),Se(Y,b),De.d(),Se(ae,b),dr=!1,Gt(qr)}}}function wg(t){let e,r,i,o,n,s,a,l,h,d,c,p,u,g,y,k,E,A=Z({length:3}),P=[];for(let C=0;C<A.length;C+=1)P[C]=Dg(yg(t,A,C));let H=Z({length:6}),F=[];for(let C=0;C<H.length;C+=1)F[C]=Og(bg(t,H,C));let J=Z({length:5}),W=[];for(let C=0;C<J.length;C+=1)W[C]=Mg(gg(t,J,C));return{c(){e=v("div"),r=v("div"),i=v("div"),o=v("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',n=O(),s=v("div"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=O(),l=v("div");for(let C=0;C<P.length;C+=1)P[C].c();h=O(),d=v("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=O(),p=v("table"),u=v("thead");for(let C=0;C<F.length;C+=1)F[C].c();g=O(),y=v("tbody");for(let C=0;C<W.length;C+=1)W[C].c();k=O(),E=v("div"),E.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>',f(o,"class","historyReturnButton skeleton"),f(s,"class","headerText skeleton"),f(l,"class","headerController skeleton"),f(i,"class","historyHeader"),f(d,"class","historyFilter skeleton"),f(u,"class","tableHead"),f(y,"class","tableContent"),f(p,"class","historyTable skeleton"),f(E,"class","historyPaginationContainer skeleton"),f(r,"class","historyWrapper"),f(e,"class","historyContainer")},m(C,se){U(C,e,se),m(e,r),m(r,i),m(i,o),m(i,n),m(i,s),m(i,a),m(i,l);for(let $=0;$<P.length;$+=1)P[$]&&P[$].m(l,null);m(r,h),m(r,d),m(r,c),m(r,p),m(p,u);for(let $=0;$<F.length;$+=1)F[$]&&F[$].m(u,null);m(p,g),m(p,y);for(let $=0;$<W.length;$+=1)W[$]&&W[$].m(y,null);m(r,k),m(r,E)},p:X,d(C){C&&V(e),Se(P,C),Se(F,C),Se(W,C)}}}function ma(t){let e,r,i,o,n=t[17](t[94].type)+"",s,a,l,h,d;function c(){return t[41](t[83])}return{c(){e=v("button"),r=v("div"),r.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=O(),o=v("p"),s=ie(n),a=O(),f(r,"class","toggleCheckbox"),f(o,"class","label"),f(e,"class",l="toggleContent "+(t[94].checked?"checked":""))},m(p,u){U(p,e,u),m(e,r),m(e,i),m(e,o),m(o,s),m(e,a),h||(d=Ke(e,"click",c),h=!0)},p(p,u){t=p,u[0]&139264&&n!==(n=t[17](t[94].type)+"")&&ge(s,n),u[0]&8192&&l!==(l="toggleContent "+(t[94].checked?"checked":""))&&f(e,"class",l)},d(p){p&&V(e),h=!1,d()}}}function _a(t){let e,r=(t[17](t[84])||t[84])+"",i,o;return{c(){e=v("span"),i=ie(r),o=O()},m(n,s){U(n,e,s),m(e,i),m(e,o)},p(n,s){s[0]&131200&&r!==(r=(n[17](n[84])||n[84])+"")&&ge(i,r)},d(n){n&&V(e)}}}function Cg(t){let e,r;return{c(){e=v("div"),r=ie(t[3]),f(e,"class","tableRow")},m(i,o){U(i,e,o),m(e,r)},p(i,o){o[0]&8&&ge(r,i[3])},d(i){i&&V(e)}}}function Eg(t){let e,r=Z(t[14][t[7]]),i=[];for(let o=0;o<r.length;o+=1)i[o]=ba(la(t,r,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Qo()},m(o,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,n);U(o,e,n)},p(o,n){if(n[0]&67682432){r=Z(o[14][o[7]]);let s;for(s=0;s<r.length;s+=1){const a=la(o,r,s);i[s]?i[s].p(a,n):(i[s]=ba(a),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=r.length}},d(o){o&&V(e),Se(i,o)}}}function Pg(t){let e,r=(t[81][t[84]]||"-")+"",i;return{c(){e=v("span"),i=ie(r)},m(o,n){U(o,e,n),m(e,i)},p(o,n){n[0]&16512&&r!==(r=(o[81][o[84]]||"-")+"")&&ge(i,r)},d(o){o&&V(e)}}}function Sg(t){let e,r,i,o,n,s,a=t[81][t[84]].label+"",l,h,d,c;function p(){return t[45](t[83])}return{c(){e=v("button"),r=ce("svg"),i=ce("path"),n=O(),s=v("span"),l=ie(a),h=O(),f(i,"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"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(r,"viewBox","6 5 20 20"),f(r,"class",o="iconToggleSubMenu "+(t[15][t[83]]?"active":"")),f(e,"class","toggleSubMenu")},m(u,g){U(u,e,g),m(e,r),m(r,i),m(e,n),m(e,s),m(s,l),m(e,h),d||(c=Ke(e,"click",p),d=!0)},p(u,g){t=u,g[0]&32768&&o!==(o="iconToggleSubMenu "+(t[15][t[83]]?"active":""))&&f(r,"class",o),g[0]&16512&&a!==(a=t[81][t[84]].label+"")&&ge(l,a)},d(u){u&&V(e),d=!1,c()}}}function Ag(t){let e;return{c(){e=v("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> ',f(e,"class","decline")},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function Tg(t){let e;return{c(){e=v("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> ',f(e,"class","approved")},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function fa(t){let e;function r(n,s){var a;return n[81][n[84]]===!0?Tg:n[81][n[84]]===!1?Ag:(a=n[81][n[84]])!=null&&a.label?Sg:Pg}let i=r(t),o=i(t);return{c(){o.c(),e=Qo()},m(n,s){o.m(n,s),U(n,e,s)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&V(e),o.d(n)}}}function kg(t){let e;return{c(){e=v("div"),e.innerHTML='<span class="label">-</span> ',f(e,"class","tableData")},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function Ig(t){let e,r,i=Z(t[81][t[84]].submenu),o=[];for(let n=0;n<i.length;n+=1)o[n]=ga(da(t,i,n));return{c(){e=v("div");for(let n=0;n<o.length;n+=1)o[n].c();r=O(),f(e,"class","tableData")},m(n,s){U(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,r)},p(n,s){if(s[0]&540800){i=Z(n[81][n[84]].submenu);let a;for(a=0;a<i.length;a+=1){const l=da(n,i,a);o[a]?o[a].p(l,s):(o[a]=ga(l),o[a].c(),o[a].m(e,r))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},d(n){n&&V(e),Se(o,n)}}}function ga(t){let e,r=(t[87]||"-")+"",i;return{c(){e=v("span"),i=ie(r),f(e,"class","label")},m(o,n){U(o,e,n),m(e,i)},p(o,n){n[0]&16512&&r!==(r=(o[87]||"-")+"")&&ge(i,r)},d(o){o&&V(e)}}}function va(t){let e;function r(n,s){var a;return(a=n[81][n[84]])!=null&&a.submenu?Ig:kg}let i=r(t),o=i(t);return{c(){o.c(),e=Qo()},m(n,s){o.m(n,s),U(n,e,s)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&V(e),o.d(n)}}}function ba(t){let e,r,i,o,n,s,a=Z(t[19][t[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=fa(ca(t,a,c));let h=Z(t[19][t[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=va(ha(t,h,c));return{c(){e=v("div"),r=v("div");for(let c=0;c<l.length;c+=1)l[c].c();i=O(),o=v("div");for(let c=0;c<d.length;c+=1)d[c].c();s=O(),f(r,"class","tableData"),f(o,"class",n="tableSubMenu "+(t[15][t[83]]?"active":"")),f(e,"class","tableRow")},m(c,p){U(c,e,p),m(e,r);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(r,null);m(e,i),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=Z(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const g=ca(c,a,u);l[u]?l[u].p(g,p):(l[u]=fa(g),l[u].c(),l[u].m(r,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=Z(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const g=ha(c,h,u);d[u]?d[u].p(g,p):(d[u]=va(g),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[83]]?"active":""))&&f(o,"class",n)},d(c){c&&V(e),Se(l,c),Se(d,c)}}}function ya(t){let e,r,i,o,n;function s(){return t[48](t[78])}return{c(){e=v("button"),r=v("p"),r.textContent=`${t[78]}`,i=O(),f(e,"class","dropDownRow")},m(a,l){U(a,e,l),m(e,r),m(e,i),o||(n=Ke(e,"click",s),o=!0)},p(a,l){t=a},d(a){a&&V(e),o=!1,n()}}}function Dg(t){let e;return{c(){e=v("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> ',f(e,"class","toggleContent")},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function Og(t){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function Ng(t){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(r,i){U(r,e,i)},p:X,d(r){r&&V(e)}}}function Mg(t){let e,r,i,o=Z({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=Ng(vg(t,o,s));return{c(){e=v("div"),r=v("div");for(let s=0;s<n.length;s+=1)n[s].c();i=O(),f(r,"class","tableData"),f(e,"class","tableRow")},m(s,a){U(s,e,a),m(e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(r,null);m(e,i)},p:X,d(s){s&&V(e),Se(n,s)}}}function Bg(t){let e;function r(n,s){return n[10]?wg:xg}let i=r(t),o=i(t);return{c(){e=v("div"),o.c()},m(n,s){U(n,e,s),o.m(e,null),t[50](e)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e,null)))},i:X,o:X,d(n){n&&V(e),o.d(),t[50](null)}}}function zg(t,e,r){let i;Vh(t,uu,_=>r(17,i=_));let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{mbsource:d}=e,{historytypes:c="Casino, Sports, Payments"}=e,{pagesizeoptions:p="10, 20, 30, 50, 100"}=e,{defaultpagesize:u="5"}=e,{formatamount:g="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:y}=e,k=window.navigator.userAgent,E="",A="",P,H,F="",J="",W="",C=Number(u),se=0,$=pu(k)!=="PC",Re=!0,Me=!1,rt=!1,Ae,ee,ve,_e=[],it={EUR:"€",RON:" lei",USD:"$"},be={payments:[],casino:[],sports:[]},tr={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","Bet Adjustment","Bet ID"]},rr={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","-","bet_id"]},he={},B={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},Ve=p.split(", "),ot={},nt=new Date,st=new Date(nt);st.setMonth(nt.getMonth()-1),P=nt.toISOString().split("T")[0],J=P,H=st.toISOString().split("T")[0],F=H,Object.keys(ls).forEach(_=>{mu(_,ls[_])});const Wr=()=>{r(13,_e=c.split(", ").map((_,N)=>{const M={type:_,checked:N===0};return M.checked&&r(7,W=M.type.toLocaleLowerCase()),M}))},at=_=>{_e.forEach((N,M)=>{r(13,_e[M].checked=_===M,_e),_e[M].checked&&r(7,W=N.type.toLocaleLowerCase())}),de()},de=()=>{if(!B.filterButton)return;r(10,Re=!0),r(12,rt=!1),r(16,B.filterButton=!1,B),r(16,B.nextPage=!1,B),r(16,B.previousPage=!1,B),r(16,B.pageSize=!1,B);let _=new URL(`${o}/v1/player/${n}/fsb/transactions/${W}`);_.searchParams.append("offset",se.toString()||"0"),_.searchParams.append("limit",C.toString()||"5"),_.searchParams.append("startDate",F),_.searchParams.append("endDate",J);let N={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,N).then(M=>ar(M)).then(M=>{if(M.transactions.length===0)return r(3,A=i("checkPeriod")),Promise.reject(A);M.transactions.length>=C&&(r(16,B.nextPage=!0,B),r(16,B.previousPage=!0,B),r(16,B.pageSize=!0,B)),r(14,be[W]=[],be),r(11,Me=!1),Ue(M)}).catch(M=>{r(12,rt=!0),r(16,B.nextPage=!1,B),r(16,B.previousPage=!1,B),r(16,B.pageSize=!1,B),window.postMessage({type:"WidgetNotification",data:{type:"error",message:M}},window.location.href)}).finally(()=>{r(10,Re=!1),r(16,B.filterButton=!0,B)})},$e=_=>{r(5,F=_.target.value)},ir=_=>{r(6,J=_.target.value)},lt=()=>{Ae.addEventListener("change",$e,!1),ee.addEventListener("change",ir,!1)},or=()=>{B.pageSize&&r(11,Me=!Me)},Be=_=>{r(8,C=_),de()},ye=(_,N)=>{if(N==="next"){if(!B.nextPage)return;r(9,se=_+1),de()}else{if(!B.previousPage)return;r(9,se=_-1),de()}},Ue=_=>{_.transactions.forEach((N,M)=>{r(14,be[W][M]={},be),rr[W].forEach(z=>{if(g&&z.includes("Amount")&&wt(N),new Date(N[z]).getTime()&&typeof N[z]!="number"&&nr(N,z),z.includes(".")){let qe=z.split(".")[0],ke=z.split(".")[1];N[z]={label:"Multiple",submenu:[]},N[qe].forEach((xe,ct)=>{xe[ke]&&N[z].submenu.push(xe[ke])})}if(z in N)return r(14,be[W][M][z]=N[z],be)})})},ht=()=>{if(!y)return;let _={};y.split(",").forEach(N=>{let M=N.split(":");_[M[0].trim()]=M[1].trim()}),Object.entries(_).forEach(([N,M])=>it[N]=M)},nr=(_,N)=>{let M=new Date(_[N]).toISOString().split("T"),z=`${M[0]} ${M[1].split(".")[0]}`;_[N]=z},wt=_=>{let N=Object.keys(_).find(Y=>Y.includes("Amount")),M=Object.keys(_).find(Y=>Y.includes("currency")),z=_[N],qe=_[M],ke=g;const xe=ke.match(/\{(\d+)decimals\}/),ct=xe?parseInt(xe[1],10):2,dr=xe?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";z=parseInt(z).toFixed(ct);const[qr,Ie]=g.includes(".")?[",","."]:[".",","];let[q,Ye]=z.split(".");q=q.replace(/\B(?=(\d{3})+(?!\d))/g,qr),z=`${q}${Ie}${Ye}`,ke=ke.replace("{currency}",it[qe]||qe).replace("{amount}",z.split(Ie)[0]).replace(dr,z.split(Ie)[1]),_[N]=ke},sr=_=>r(15,he[_]=!he[_],he),We=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:$},window.location.href)},ar=_=>Li(this,null,function*(){return _.status>=300?(ot=yield _.json(),E=ot.thirdPartyResponse.errorCode,r(3,A=i(E)||i("generalError")),Promise.reject(A)):_.json()});Yh(()=>()=>{Ae&&Ae.removeEventListener("change",$e),ee&&ee.removeEventListener("change",ir)});const lr=()=>We(),Ct=_=>at(_);function jr(_){xr[_?"unshift":"push"](()=>{Ae=_,r(0,Ae)})}function je(_){xr[_?"unshift":"push"](()=>{ee=_,r(1,ee)})}const dt=()=>de(),hr=_=>sr(_),Et=()=>ye(se,"previous"),Gr=()=>ye(se,"next"),Pt=_=>Be(_),Te=()=>or();function Ge(_){xr[_?"unshift":"push"](()=>{ve=_,r(2,ve)})}return t.$$set=_=>{"endpoint"in _&&r(28,o=_.endpoint),"playerid"in _&&r(29,n=_.playerid),"session"in _&&r(30,s=_.session),"lang"in _&&r(31,a=_.lang),"clientstyling"in _&&r(32,l=_.clientstyling),"clientstylingurl"in _&&r(33,h=_.clientstylingurl),"mbsource"in _&&r(34,d=_.mbsource),"historytypes"in _&&r(35,c=_.historytypes),"pagesizeoptions"in _&&r(36,p=_.pagesizeoptions),"defaultpagesize"in _&&r(37,u=_.defaultpagesize),"formatamount"in _&&r(38,g=_.formatamount),"customcurrencysymbols"in _&&r(39,y=_.customcurrencysymbols)},t.$$.update=()=>{t.$$.dirty[1]&1&&a&&_u(a),t.$$.dirty[1]&16&&c&&Wr(),t.$$.dirty[0]&1879048192&&o&&n&&s&&de(),t.$$.dirty[1]&256&&y&&ht(),t.$$.dirty[0]&3&&Ae&&ee&<(),t.$$.dirty[0]&4|t.$$.dirty[1]&2&&l&&ve&&ld(ve,l),t.$$.dirty[0]&4|t.$$.dirty[1]&4&&h&&ve&&hd(ve,h),t.$$.dirty[0]&4|t.$$.dirty[1]&8&&d&&ve&&dd(ve,`${d}.Style`)},[Ae,ee,ve,A,P,F,J,W,C,se,Re,Me,rt,_e,be,he,B,i,tr,rr,Ve,at,de,or,Be,ye,sr,We,o,n,s,a,l,h,d,c,p,u,g,y,lr,Ct,jr,je,dt,hr,Et,Gr,Pt,Te,Ge]}class Mh extends sd{constructor(e){super(),od(this,e,zg,Bg,wa,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,mbsource:34,historytypes:35,pagesizeoptions:36,defaultpagesize:37,formatamount:38,customcurrencysymbols:39},fg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),ue()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),ue()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),ue()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),ue()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get mbsource(){return this.$$.ctx[34]}set mbsource(e){this.$$set({mbsource:e}),ue()}get historytypes(){return this.$$.ctx[35]}set historytypes(e){this.$$set({historytypes:e}),ue()}get pagesizeoptions(){return this.$$.ctx[36]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),ue()}get defaultpagesize(){return this.$$.ctx[37]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),ue()}get formatamount(){return this.$$.ctx[38]}set formatamount(e){this.$$set({formatamount:e}),ue()}get customcurrencysymbols(){return this.$$.ctx[39]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),ue()}}nd(Mh,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=Mh;
|
|
4563
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Bi(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zi(this.inputElement,this._labelController)),this._tooltipController=new ir(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 r=e.composedPath();(r.includes(this._labelNode)||r.includes(this._positionTarget))&&super._onHostClick(e)}}q(_g);function fg(t){Uh(t,"svelte-kqqea6",'*,*::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{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:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.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 la(t,e,r){const i=t.slice();return i[82]=e[r],i}function ha(t,e,r){const i=t.slice();return i[85]=e[r],i[87]=r,i}function da(t,e,r){const i=t.slice();return i[88]=e[r],i}function ca(t,e,r){const i=t.slice();return i[91]=e[r],i}function ua(t,e,r){const i=t.slice();return i[88]=e[r],i}function pa(t,e,r){const i=t.slice();return i[88]=e[r],i}function ma(t,e,r){const i=t.slice();return i[98]=e[r],i[87]=r,i}function gg(t,e,r){const i=t.slice();return i[73]=e[r],i}function vg(t,e,r){const i=t.slice();return i[73]=e[r],i}function bg(t,e,r){const i=t.slice();return i[73]=e[r],i}function yg(t,e,r){const i=t.slice();return i[73]=e[r],i}function xg(t){let e,r,i,o,n,s,a,l,h,d,c,p,u,g=t[17]("headerTitle")+"",y,A,P,M,k=t[17]("headerTitle")+"",z,H,te,Y,C,Z,F,Ee,Et=t[17]("dateFrom")+"",lt,ht,me,Ie,he,de,Pe=t[17]("dateTo")+"",Pt,De,Se,sr,Ue,ze=t[17]("dateFilter")+"",B,St,ar,We,Fe,dt,Gr,je,Oe,Le,Ae,Ge,qe,At,Ye,qr,ct,lr,Tt,ut,hr,Xe,pt,dr,kt,Yr,It,Ne,Ke,cr,ur,Xr,Je,_,S,E,R,be,_e,fe=K(t[13]),X=[];for(let b=0;b<fe.length;b+=1)X[b]=_a(ma(t,fe,b));let Ze=K(t[18][t[7]]),Q=[];for(let b=0;b<Ze.length;b+=1)Q[b]=fa(pa(t,Ze,b));function Dt(b,L){return b[12]?Cg:Eg}let Qe=Dt(t),ye=Qe(t),et=K(t[20]),ae=[];for(let b=0;b<et.length;b+=1)ae[b]=xa(la(t,et,b));return{c(){e=v("div"),r=v("div"),i=v("div"),o=v("button"),n=ce("svg"),s=ce("defs"),a=ce("style"),l=oe(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=ce("g"),d=ce("g"),c=ce("path"),p=N(),u=v("h2"),y=oe(g),A=N(),P=v("div"),M=v("p"),z=oe(k),H=N(),te=v("div");for(let b=0;b<X.length;b+=1)X[b].c();Y=N(),C=v("div"),Z=v("div"),F=v("div"),Ee=v("label"),lt=oe(Et),ht=N(),me=v("vaadin-date-picker"),Ie=N(),he=v("div"),de=v("label"),Pt=oe(Pe),De=N(),Se=v("vaadin-date-picker"),sr=N(),Ue=v("button"),B=oe(ze),ar=N(),We=v("table"),Fe=v("div"),dt=v("thead");for(let b=0;b<Q.length;b+=1)Q[b].c();Gr=N(),je=v("tbody"),ye.c(),Oe=N(),Le=v("div"),Ae=v("div"),Ge=v("button"),qe=ce("svg"),At=ce("path"),qr=N(),ct=v("div"),lr=v("p"),Tt=oe(t[9]),hr=N(),Xe=v("button"),pt=ce("svg"),dr=ce("path"),Yr=N(),It=v("div"),Ne=v("button"),Ke=v("div"),cr=v("p"),ur=oe(t[8]),Xr=N(),Je=ce("svg"),_=ce("path"),S=N(),E=v("div");for(let b=0;b<ae.length;b+=1)ae[b].c();f(c,"class","aaa"),f(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),f(c,"transform","translate(15 15) rotate(180)"),f(d,"transform","translate(20 158)"),f(h,"transform","translate(-20 -158)"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","15"),f(n,"height","15"),f(n,"viewBox","0 0 15 15"),f(u,"class","historyReturnText"),f(o,"class","historyReturnButton"),f(P,"class","headerText"),f(te,"class","headerController"),f(i,"class","historyHeader"),f(Ee,"for","historyCalendarStartDate"),we(me,"max",t[4]),we(me,"value",t[5]),we(me,"placeholder","From"),we(me,"class","VaadinDatePicker"),f(F,"class","historyCalendarStartDate"),f(de,"for","historyCalendarEndDate"),we(Se,"max",t[4]),we(Se,"value",t[6]),we(Se,"placeholder","To"),we(Se,"class","VaadinDatePicker"),f(he,"class","historyCalendarEndDate"),f(Z,"class","historyCalendarContainer"),f(Ue,"class",St="historyCalendarFilter "+(t[16].filterButton?"":"disable")),f(C,"class","historyFilter"),f(dt,"class","tableHead"),f(je,"class","tableContent"),f(Fe,"class","tableWrapper"),f(We,"class","historyTable"),f(At,"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"),f(qe,"viewBox","1 4 17 17"),f(qe,"xmlns","http://www.w3.org/2000/svg"),f(Ge,"class",Ye="arrowLeft "+(t[16].previousPage?"":"disable")),f(ct,"class",ut="indexDisplay "+(!t[16].previousPage&&!t[16].nextPage?"disable":"")),f(dr,"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"),f(pt,"viewBox","6 4 17 17"),f(pt,"xmlns","http://www.w3.org/2000/svg"),f(Xe,"class",kt="arrowRight "+(t[16].nextPage?"":"disable")),f(Ae,"class","historyPageIndex"),f(_,"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"),f(Je,"xmlns","http://www.w3.org/2000/svg"),f(Je,"viewBox","6 5 20 20"),f(Je,"class","icon"),f(Ke,"class","currentPageSize"),f(E,"class","pageSizeDropDown"),f(Ne,"class",R="pageSizeSelector "+(t[11]?"active":"")+" "+(t[16].pageSize?"":"disable")),f(It,"class","historyPageSize"),f(Le,"class","historyPaginationContainer"),f(r,"class","historyWrapper"),f(e,"class","historyContainer")},m(b,L){U(b,e,L),m(e,r),m(r,i),m(i,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,y),m(i,A),m(i,P),m(P,M),m(M,z),m(i,H),m(i,te);for(let x=0;x<X.length;x+=1)X[x]&&X[x].m(te,null);m(r,Y),m(r,C),m(C,Z),m(Z,F),m(F,Ee),m(Ee,lt),m(F,ht),m(F,me),t[44](me),m(Z,Ie),m(Z,he),m(he,de),m(de,Pt),m(he,De),m(he,Se),t[45](Se),m(C,sr),m(C,Ue),m(Ue,B),m(r,ar),m(r,We),m(We,Fe),m(Fe,dt);for(let x=0;x<Q.length;x+=1)Q[x]&&Q[x].m(dt,null);m(Fe,Gr),m(Fe,je),ye.m(je,null),m(r,Oe),m(r,Le),m(Le,Ae),m(Ae,Ge),m(Ge,qe),m(qe,At),m(Ae,qr),m(Ae,ct),m(ct,lr),m(lr,Tt),m(Ae,hr),m(Ae,Xe),m(Xe,pt),m(pt,dr),m(Le,Yr),m(Le,It),m(It,Ne),m(Ne,Ke),m(Ke,cr),m(cr,ur),m(Ke,Xr),m(Ke,Je),m(Je,_),m(Ne,S),m(Ne,E);for(let x=0;x<ae.length;x+=1)ae[x]&&ae[x].m(E,null);be||(_e=[rt(o,"click",t[42]),rt(Ue,"click",t[46]),rt(Ge,"click",t[48]),rt(Xe,"click",t[49]),rt(Ne,"click",t[51])],be=!0)},p(b,L){if(L[0]&131072&&g!==(g=b[17]("headerTitle")+"")&&ve(y,g),L[0]&131072&&k!==(k=b[17]("headerTitle")+"")&&ve(z,k),L[0]&2236416){fe=K(b[13]);let x;for(x=0;x<fe.length;x+=1){const tt=ma(b,fe,x);X[x]?X[x].p(tt,L):(X[x]=_a(tt),X[x].c(),X[x].m(te,null))}for(;x<X.length;x+=1)X[x].d(1);X.length=fe.length}if(L[0]&131072&&Et!==(Et=b[17]("dateFrom")+"")&&ve(lt,Et),L[0]&16&&we(me,"max",b[4]),L[0]&32&&we(me,"value",b[5]),L[0]&131072&&Pe!==(Pe=b[17]("dateTo")+"")&&ve(Pt,Pe),L[0]&16&&we(Se,"max",b[4]),L[0]&64&&we(Se,"value",b[6]),L[0]&131072&&ze!==(ze=b[17]("dateFilter")+"")&&ve(B,ze),L[0]&65536&&St!==(St="historyCalendarFilter "+(b[16].filterButton?"":"disable"))&&f(Ue,"class",St),L[0]&393344){Ze=K(b[18][b[7]]);let x;for(x=0;x<Ze.length;x+=1){const tt=pa(b,Ze,x);Q[x]?Q[x].p(tt,L):(Q[x]=fa(tt),Q[x].c(),Q[x].m(dt,null))}for(;x<Q.length;x+=1)Q[x].d(1);Q.length=Ze.length}if(Qe===(Qe=Dt(b))&&ye?ye.p(b,L):(ye.d(1),ye=Qe(b),ye&&(ye.c(),ye.m(je,null))),L[0]&65536&&Ye!==(Ye="arrowLeft "+(b[16].previousPage?"":"disable"))&&f(Ge,"class",Ye),L[0]&512&&ve(Tt,b[9]),L[0]&65536&&ut!==(ut="indexDisplay "+(!b[16].previousPage&&!b[16].nextPage?"disable":""))&&f(ct,"class",ut),L[0]&65536&&kt!==(kt="arrowRight "+(b[16].nextPage?"":"disable"))&&f(Xe,"class",kt),L[0]&256&&ve(ur,b[8]),L[0]&17825792){et=K(b[20]);let x;for(x=0;x<et.length;x+=1){const tt=la(b,et,x);ae[x]?ae[x].p(tt,L):(ae[x]=xa(tt),ae[x].c(),ae[x].m(E,null))}for(;x<ae.length;x+=1)ae[x].d(1);ae.length=et.length}L[0]&67584&&R!==(R="pageSizeSelector "+(b[11]?"active":"")+" "+(b[16].pageSize?"":"disable"))&&f(Ne,"class",R)},d(b){b&&$(e),ke(X,b),t[44](null),t[45](null),ke(Q,b),ye.d(),ke(ae,b),be=!1,Jt(_e)}}}function wg(t){let e,r,i,o,n,s,a,l,h,d,c,p,u,g,y,A,P,M=K({length:3}),k=[];for(let C=0;C<M.length;C+=1)k[C]=Dg(yg(t,M,C));let z=K({length:6}),H=[];for(let C=0;C<z.length;C+=1)H[C]=Og(bg(t,z,C));let te=K({length:5}),Y=[];for(let C=0;C<te.length;C+=1)Y[C]=Mg(gg(t,te,C));return{c(){e=v("div"),r=v("div"),i=v("div"),o=v("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',n=N(),s=v("div"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',a=N(),l=v("div");for(let C=0;C<k.length;C+=1)k[C].c();h=N(),d=v("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=N(),p=v("table"),u=v("thead");for(let C=0;C<H.length;C+=1)H[C].c();g=N(),y=v("tbody");for(let C=0;C<Y.length;C+=1)Y[C].c();A=N(),P=v("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>',f(o,"class","historyReturnButton skeleton"),f(s,"class","headerText skeleton"),f(l,"class","headerController skeleton"),f(i,"class","historyHeader"),f(d,"class","historyFilter skeleton"),f(u,"class","tableHead"),f(y,"class","tableContent"),f(p,"class","historyTable skeleton"),f(P,"class","historyPaginationContainer skeleton"),f(r,"class","historyWrapper"),f(e,"class","historyContainer")},m(C,Z){U(C,e,Z),m(e,r),m(r,i),m(i,o),m(i,n),m(i,s),m(i,a),m(i,l);for(let F=0;F<k.length;F+=1)k[F]&&k[F].m(l,null);m(r,h),m(r,d),m(r,c),m(r,p),m(p,u);for(let F=0;F<H.length;F+=1)H[F]&&H[F].m(u,null);m(p,g),m(p,y);for(let F=0;F<Y.length;F+=1)Y[F]&&Y[F].m(y,null);m(r,A),m(r,P)},p:G,d(C){C&&$(e),ke(k,C),ke(H,C),ke(Y,C)}}}function _a(t){let e,r,i,o,n=t[17](t[98].type)+"",s,a,l,h,d;function c(){return t[43](t[87])}return{c(){e=v("button"),r=v("div"),r.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=N(),o=v("p"),s=oe(n),a=N(),f(r,"class","toggleCheckbox"),f(o,"class","label"),f(e,"class",l="toggleContent "+(t[98].checked?"checked":""))},m(p,u){U(p,e,u),m(e,r),m(e,i),m(e,o),m(o,s),m(e,a),h||(d=rt(e,"click",c),h=!0)},p(p,u){t=p,u[0]&139264&&n!==(n=t[17](t[98].type)+"")&&ve(s,n),u[0]&8192&&l!==(l="toggleContent "+(t[98].checked?"checked":""))&&f(e,"class",l)},d(p){p&&$(e),h=!1,d()}}}function fa(t){let e,r=(t[17](t[88])||t[88])+"",i,o;return{c(){e=v("span"),i=oe(r),o=N()},m(n,s){U(n,e,s),m(e,i),m(e,o)},p(n,s){s[0]&131200&&r!==(r=(n[17](n[88])||n[88])+"")&&ve(i,r)},d(n){n&&$(e)}}}function Cg(t){let e,r;return{c(){e=v("div"),r=oe(t[3]),f(e,"class","tableRow")},m(i,o){U(i,e,o),m(e,r)},p(i,o){o[0]&8&&ve(r,i[3])},d(i){i&&$(e)}}}function Eg(t){let e,r=K(t[14][t[7]]),i=[];for(let o=0;o<r.length;o+=1)i[o]=ya(ha(t,r,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=en()},m(o,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,n);U(o,e,n)},p(o,n){if(n[0]&67682432){r=K(o[14][o[7]]);let s;for(s=0;s<r.length;s+=1){const a=ha(o,r,s);i[s]?i[s].p(a,n):(i[s]=ya(a),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=r.length}},d(o){o&&$(e),ke(i,o)}}}function Pg(t){let e,r=(t[85][t[88]]||"-")+"",i;return{c(){e=v("span"),i=oe(r)},m(o,n){U(o,e,n),m(e,i)},p(o,n){n[0]&16512&&r!==(r=(o[85][o[88]]||"-")+"")&&ve(i,r)},d(o){o&&$(e)}}}function Sg(t){let e,r,i,o,n,s,a=t[85][t[88]].label+"",l,h,d,c;function p(){return t[47](t[87])}return{c(){e=v("button"),r=ce("svg"),i=ce("path"),n=N(),s=v("span"),l=oe(a),h=N(),f(i,"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"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(r,"viewBox","6 5 20 20"),f(r,"class",o="iconToggleSubMenu "+(t[15][t[87]]?"active":"")),f(e,"class","toggleSubMenu")},m(u,g){U(u,e,g),m(e,r),m(r,i),m(e,n),m(e,s),m(s,l),m(e,h),d||(c=rt(e,"click",p),d=!0)},p(u,g){t=u,g[0]&32768&&o!==(o="iconToggleSubMenu "+(t[15][t[87]]?"active":""))&&f(r,"class",o),g[0]&16512&&a!==(a=t[85][t[88]].label+"")&&ve(l,a)},d(u){u&&$(e),d=!1,c()}}}function Ag(t){let e;return{c(){e=v("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> ',f(e,"class","decline")},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function Tg(t){let e;return{c(){e=v("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> ',f(e,"class","approved")},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function ga(t){let e;function r(n,s){var a;return n[85][n[88]]===!0?Tg:n[85][n[88]]===!1?Ag:(a=n[85][n[88]])!=null&&a.label?Sg:Pg}let i=r(t),o=i(t);return{c(){o.c(),e=en()},m(n,s){o.m(n,s),U(n,e,s)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&$(e),o.d(n)}}}function kg(t){let e;return{c(){e=v("div"),e.innerHTML='<span class="label">-</span> ',f(e,"class","tableData")},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function Ig(t){let e,r,i=K(t[85][t[88]].submenu),o=[];for(let n=0;n<i.length;n+=1)o[n]=va(ca(t,i,n));return{c(){e=v("div");for(let n=0;n<o.length;n+=1)o[n].c();r=N(),f(e,"class","tableData")},m(n,s){U(n,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);m(e,r)},p(n,s){if(s[0]&540800){i=K(n[85][n[88]].submenu);let a;for(a=0;a<i.length;a+=1){const l=ca(n,i,a);o[a]?o[a].p(l,s):(o[a]=va(l),o[a].c(),o[a].m(e,r))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},d(n){n&&$(e),ke(o,n)}}}function va(t){let e,r=(t[91]||"-")+"",i;return{c(){e=v("span"),i=oe(r),f(e,"class","label")},m(o,n){U(o,e,n),m(e,i)},p(o,n){n[0]&16512&&r!==(r=(o[91]||"-")+"")&&ve(i,r)},d(o){o&&$(e)}}}function ba(t){let e;function r(n,s){var a;return(a=n[85][n[88]])!=null&&a.submenu?Ig:kg}let i=r(t),o=i(t);return{c(){o.c(),e=en()},m(n,s){o.m(n,s),U(n,e,s)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e.parentNode,e)))},d(n){n&&$(e),o.d(n)}}}function ya(t){let e,r,i,o,n,s,a=K(t[19][t[7]]),l=[];for(let c=0;c<a.length;c+=1)l[c]=ga(ua(t,a,c));let h=K(t[19][t[7]]),d=[];for(let c=0;c<h.length;c+=1)d[c]=ba(da(t,h,c));return{c(){e=v("div"),r=v("div");for(let c=0;c<l.length;c+=1)l[c].c();i=N(),o=v("div");for(let c=0;c<d.length;c+=1)d[c].c();s=N(),f(r,"class","tableData"),f(o,"class",n="tableSubMenu "+(t[15][t[87]]?"active":"")),f(e,"class","tableRow")},m(c,p){U(c,e,p),m(e,r);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(r,null);m(e,i),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=K(c[19][c[7]]);let u;for(u=0;u<a.length;u+=1){const g=ua(c,a,u);l[u]?l[u].p(g,p):(l[u]=ga(g),l[u].c(),l[u].m(r,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}if(p[0]&540800){h=K(c[19][c[7]]);let u;for(u=0;u<h.length;u+=1){const g=da(c,h,u);d[u]?d[u].p(g,p):(d[u]=ba(g),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[87]]?"active":""))&&f(o,"class",n)},d(c){c&&$(e),ke(l,c),ke(d,c)}}}function xa(t){let e,r,i,o,n;function s(){return t[50](t[82])}return{c(){e=v("button"),r=v("p"),r.textContent=`${t[82]}`,i=N(),f(e,"class","dropDownRow")},m(a,l){U(a,e,l),m(e,r),m(e,i),o||(n=rt(e,"click",s),o=!0)},p(a,l){t=a},d(a){a&&$(e),o=!1,n()}}}function Dg(t){let e;return{c(){e=v("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> ',f(e,"class","toggleContent")},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function Og(t){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function Ng(t){let e;return{c(){e=v("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(r,i){U(r,e,i)},p:G,d(r){r&&$(e)}}}function Mg(t){let e,r,i,o=K({length:6}),n=[];for(let s=0;s<o.length;s+=1)n[s]=Ng(vg(t,o,s));return{c(){e=v("div"),r=v("div");for(let s=0;s<n.length;s+=1)n[s].c();i=N(),f(r,"class","tableData"),f(e,"class","tableRow")},m(s,a){U(s,e,a),m(e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(r,null);m(e,i)},p:G,d(s){s&&$(e),ke(n,s)}}}function Bg(t){let e;function r(n,s){return n[10]?wg:xg}let i=r(t),o=i(t);return{c(){e=v("div"),o.c()},m(n,s){U(n,e,s),o.m(e,null),t[52](e)},p(n,s){i===(i=r(n))&&o?o.p(n,s):(o.d(1),o=i(n),o&&(o.c(),o.m(e,null)))},i:G,o:G,d(n){n&&$(e),o.d(),t[52](null)}}}function zg(t,e,r){let i;$h(t,pu,_=>r(17,i=_));let{endpoint:o=""}=e,{playerid:n=""}=e,{session:s=""}=e,{lang:a=""}=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:g=""}=e,{defaultpagesize:y="5"}=e,{formatamount:A="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:P}=e,M=window.navigator.userAgent,k="",z="",H,te,Y="",C="",Z="",F=Number(y),Ee=0,Et=mu(M)!=="PC",lt=!0,ht=!1,me=!1,Ie,he,de,Pe=[],Pt={EUR:"€",RON:" lei",USD:"$"},De={payments:[],casino:[],sports:[]},Se={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","Bet Adjustment","Bet ID"]},sr={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","-","bet_id"]},Ue=["stake","won","bet_Part.price","paymentAmount"],ze={},B={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},St=u.split(", "),ar={},We=new Date,Fe=new Date(We);Fe.setMonth(We.getMonth()-1),H=We.toISOString().split("T")[0],C=H,te=Fe.toISOString().split("T")[0],Y=te;const dt=()=>{fetch(d).then(S=>S.json()).then(S=>{Object.keys(S).forEach(E=>{ls(E,S[E])})}).catch(S=>{console.log(S)})};Object.keys(hs).forEach(_=>{ls(_,hs[_])});const Gr=()=>{r(13,Pe=p.split(", ").map((_,S)=>{const E={type:_,checked:S===0};return E.checked&&r(7,Z=E.type.toLocaleLowerCase()),E}))},je=_=>{Pe.forEach((S,E)=>{r(13,Pe[E].checked=_===E,Pe),Pe[E].checked&&r(7,Z=S.type.toLocaleLowerCase())}),Oe()},Oe=()=>{if(!B.filterButton)return;r(10,lt=!0),r(12,me=!1),r(16,B.filterButton=!1,B),r(16,B.nextPage=!1,B),r(16,B.previousPage=!1,B),r(16,B.pageSize=!1,B);let _=new URL(`${o}/v1/player/${n}/fsb/transactions/${Z}`);_.searchParams.append("offset",Ee.toString()||"0"),_.searchParams.append("limit",F.toString()||"5"),_.searchParams.append("startDate",Y),_.searchParams.append("endDate",C);let S={method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,S).then(E=>Xe(E)).then(E=>{if(E.transactions.length===0)return r(3,z=i("checkPeriod")),Promise.reject(z);E.transactions.length>=F&&(r(16,B.nextPage=!0,B),r(16,B.previousPage=!0,B),r(16,B.pageSize=!0,B)),r(14,De[Z]=[],De),r(11,ht=!1),qr(E)}).catch(E=>{r(12,me=!0),r(16,B.nextPage=!1,B),r(16,B.previousPage=!1,B),r(16,B.pageSize=!1,B),window.postMessage({type:"WidgetNotification",data:{type:"error",message:E}},window.location.href)}).finally(()=>{r(10,lt=!1),r(16,B.filterButton=!0,B)})},Le=_=>{r(5,Y=_.target.value)},Ae=_=>{r(6,C=_.target.value)},Ge=()=>{Ie.addEventListener("change",Le,!1),he.addEventListener("change",Ae,!1)},qe=()=>{B.pageSize&&r(11,ht=!ht)},At=_=>{r(8,F=_),Oe()},Ye=(_,S)=>{if(S==="next"){if(!B.nextPage)return;r(9,Ee=_+1),Oe()}else{if(!B.previousPage)return;r(9,Ee=_-1),Oe()}},qr=_=>{_.transactions.forEach((S,E)=>{r(14,De[Z][E]={},De),sr[Z].forEach(R=>{if(A&&g&&Ue.includes(R))if(R.includes(".")){let be=R.split(".");S[be[0]].forEach(_e=>{_e[be[1]]=Tt(_e,be[1])})}else S[R]=Tt(S,R);if(new Date(S[R]).getTime()&&typeof S[R]!="number"&&lr(S,R),R.includes(".")){let be=R.split(".")[0],_e=R.split(".")[1];S[R]={label:"Multiple",submenu:[]},S[be].forEach((fe,X)=>{fe[_e]&&S[R].submenu.push(fe[_e])})}if(R in S)return r(14,De[Z][E][R]=S[R],De)})})},ct=()=>{if(!P)return;let _={};P.split(",").forEach(S=>{let E=S.split(":");_[E[0].trim()]=E[1].trim()}),Object.entries(_).forEach(([S,E])=>Pt[S]=E)},lr=(_,S)=>{let E=new Date(_[S]).toISOString().split("T"),R=`${E[0]} ${E[1].split(".")[0]}`;_[S]=R},Tt=(_,S)=>{let E=typeof _[S]=="string"?parseInt(_[S]):_[S],R=Object.keys(_).find(et=>et.includes("currency")),be=_[R]||g,_e=A;const fe=_e.match(/\{(\d+)decimals\}/),X=fe?parseInt(fe[1],10):2,Ze=fe?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";E=E.toFixed(X);const[Q,Dt]=A.includes(".")?[",","."]:[".",","];let[Qe,ye]=E.split(".");return Qe=Qe.replace(/\B(?=(\d{3})+(?!\d))/g,Q),E=`${Qe}${Dt}${ye}`,_e=_e.replace("{currency}",Pt[be]||be).replace("{amount}",E.split(Dt)[0]).replace(Ze,E.split(Dt)[1]),_e},ut=_=>r(15,ze[_]=!ze[_],ze),hr=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:Et},window.location.href)},Xe=_=>Hi(this,null,function*(){return _.status>=300?(ar=yield _.json(),k=ar.thirdPartyResponse.errorCode,r(3,z=i(k)||i("generalError")),Promise.reject(z)):_.json()});Xh(()=>()=>{Ie&&Ie.removeEventListener("change",Le),he&&he.removeEventListener("change",Ae)});const pt=()=>hr(),dr=_=>je(_);function kt(_){Cr[_?"unshift":"push"](()=>{Ie=_,r(0,Ie)})}function Yr(_){Cr[_?"unshift":"push"](()=>{he=_,r(1,he)})}const It=()=>Oe(),Ne=_=>ut(_),Ke=()=>Ye(Ee,"previous"),cr=()=>Ye(Ee,"next"),ur=_=>At(_),Xr=()=>qe();function Je(_){Cr[_?"unshift":"push"](()=>{de=_,r(2,de)})}return t.$$set=_=>{"endpoint"in _&&r(28,o=_.endpoint),"playerid"in _&&r(29,n=_.playerid),"session"in _&&r(30,s=_.session),"lang"in _&&r(31,a=_.lang),"clientstyling"in _&&r(32,l=_.clientstyling),"clientstylingurl"in _&&r(33,h=_.clientstylingurl),"translationurl"in _&&r(34,d=_.translationurl),"mbsource"in _&&r(35,c=_.mbsource),"historytypes"in _&&r(36,p=_.historytypes),"pagesizeoptions"in _&&r(37,u=_.pagesizeoptions),"playercurrency"in _&&r(38,g=_.playercurrency),"defaultpagesize"in _&&r(39,y=_.defaultpagesize),"formatamount"in _&&r(40,A=_.formatamount),"customcurrencysymbols"in _&&r(41,P=_.customcurrencysymbols)},t.$$.update=()=>{t.$$.dirty[1]&1&&a&&_u(a),t.$$.dirty[1]&32&&p&&Gr(),t.$$.dirty[0]&1879048192&&o&&n&&s&&Oe(),t.$$.dirty[1]&1024&&P&&ct(),t.$$.dirty[0]&3&&Ie&&he&&Ge(),t.$$.dirty[0]&4|t.$$.dirty[1]&2&&l&&de&&hd(de,l),t.$$.dirty[0]&4|t.$$.dirty[1]&4&&h&&de&&dd(de,h),t.$$.dirty[0]&4|t.$$.dirty[1]&16&&c&&de&&cd(de,`${c}.Style`),t.$$.dirty[1]&8&&d&&dt()},[Ie,he,de,z,H,Y,C,Z,F,Ee,lt,ht,me,Pe,De,ze,B,i,Se,sr,St,je,Oe,qe,At,Ye,ut,hr,o,n,s,a,l,h,d,c,p,u,g,y,A,P,pt,dr,kt,Yr,It,Ne,Ke,cr,ur,Xr,Je]}class Bh extends ad{constructor(e){super(),nd(this,e,zg,Bg,Ca,{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},fg,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),re()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),re()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),re()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),re()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),re()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),re()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),re()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),re()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),re()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),re()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),re()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),re()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),re()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),re()}}sd(Bh,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=Bh;
|