@everymatrix/player-bonus-history 1.13.14 → 1.13.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function U(){}function A(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(A)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function I(e,t,n){e.$$.on_destroy.push(M(t,n))}function $(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function V(e){e.parentNode&&e.parentNode.removeChild(e)}function N(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function G(){return j(" ")}function B(){return j("")}function z(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function q(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:q(e,t,n)}function X(e,t){e.data!==(t=""+t)&&(e.data=t)}function R(e){var t={};for(const n of e)t[n.name]=n.value;return t}let L;function Y(e){L=e}const Z=[],J=[];let K=[];const Q=[],ee=Promise.resolve();let te=!1;function ne(e){K.push(e)}const re=new Set;let ie=0;function c(){if(0===ie){const r=L;do{try{for(;ie<Z.length;){const r=Z[ie];ie++,Y(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ne))}}catch(r){throw Z.length=0,ie=0,r}for(Y(null),Z.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<K.length;e+=1){var n=K[e];re.has(n)||(re.add(n),n())}}while(K.length=0,Z.length);for(;Q.length;)Q.pop()();te=!1,re.clear(),Y(r)}}const se=new Set;function oe(r,e,t,n,i,s,o,a=[-1]){var l=L;Y(r);const h=r.$$={fragment:null,ctx:[],props:s,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(h.root);let u=!1;if(h.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(Z.push(e),te||(te=!0,ee.then(c)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){s=e.target;const U=Array.from(s.childNodes);h.fragment&&h.fragment.l(U),U.forEach(V)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));var d=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=d.$$;s&&s.m(o,t),n||ne(()=>{var e=d.$$.on_mount.map(A).filter(k);d.$$.on_destroy?d.$$.on_destroy.push(...e):D(e),d.$$.on_mount=[]}),a.forEach(ne),c()}Y(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(A).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];K.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),K=r}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,ce="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ve(t);return t.readAsArrayBuffer(e),n}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(ce)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ge(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=ve(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},de&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ce(e,t){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ee(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function Te(e,t){if(!(this instanceof Te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ce.prototype.clone=function(){return new Ce(this,{body:this._bodyInit})},Se.call(Ce.prototype),Se.call(Te.prototype),Te.prototype.clone=function(){return new Te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Te.error=function(){var e=new Te(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ae=[301,302,303,307,308],Pe=(Te.redirect=function(e,t){if(-1===Ae.indexOf(t))throw new RangeError("Invalid status code");return new Te(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(o,a){return new Promise(function(i,e){var t=new Ce(o,a);if(t.signal&&t.signal.aborted)return e(new Pe("Aborted","AbortError"));var n,s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var e,r,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new Te(n,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(ce?s.responseType="blob":me&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(fe(e)),s.setRequestHeader(e,_e(a.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&s.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",r)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ce,l.Response=Te),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Me(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Be(e){return"function"==typeof e}function Re(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Le=Re(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function He(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ye.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Me(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(Be(s))try{s()}catch(e){i=e instanceof Le?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Me(s),h=l.next();!h.done;h=l.next()){var u=h.value;try{$e(u)}catch(e){i=null!=i?i:[],e instanceof Le?i=Ne(Ne([],Ie(i)),Ie(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Le(i)}},Ye.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof Ye){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ye.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ye.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ye.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&He(t,e)},Ye.prototype.remove=function(e){var t=this._finalizers;t&&He(t,e),e instanceof Ye&&e._removeParent(this)},Ye.EMPTY=((e=new Ye).closed=!0,e);var Fe=Ye,ze=Fe.EMPTY;function Ye(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Fe||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function $e(e){Be(e)?e():e.unsubscribe()}var We=void 0,Ve=!1,je=!1,Ge={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Ie(n))):setTimeout.apply(void 0,Ne([e,t],Ie(n)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qe(){}var Xe=null;function Ze(e){if(Ve){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var t=Xe,n=t.errorThrown,t=t.error;if(Xe=null,n)throw t}}else e()}Oe(et,Je=Fe),et.create=function(e,t,n){return new it(e,t,n)},et.prototype.next=function(e){this.isStopped||this._next(e)},et.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},et.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Je.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(e){this.destination.next(e)},et.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Je,Ke=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){at(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){at(e)}else at(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){at(e)}};var nt,rt=ot,it=(Oe(st,nt=Ke),st);function st(e,t,n){var r=nt.call(this)||this,n=Be(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&je?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return r.destination=new rt(n),r}function ot(e){this.partialObserver=e}function at(e){var t=e;Ge.setTimeout(function(){throw t})}var lt={closed:!0,next:qe,error:function(e){throw e},complete:qe},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Ke||r&&Be(r.next)&&Be(r.error)&&Be(r.complete)&&Ue(r)?e:new it(e,t,n);return Ze(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new it({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)};var ht=n;function n(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:We)?e:Promise}var dt,ct,pt,mt=Re(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(r,pt=ht),r.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new mt},r.prototype.next=function(i){var s=this;Ze(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Me(s.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},r.prototype.error=function(t){var n=this;Ze(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},r.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,He(i,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},r.prototype.asObservable=function(){var e=new ht;return e.source=this,e},r.create=function(e,t){return new ft(e,t)},r),ft=(Oe(vt,ct=e),vt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},vt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},vt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},vt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},vt),_t={now:function(){return(_t.delegate||Date).now()},delegate:void 0},yt=(Oe(gt,dt=e),gt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(s.now()+t),this._trimBuffer(),dt.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},gt);function gt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=_t);var r=dt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function vt(e,t){var n=ct.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],wt={};const St=[];function xt(r,i=U){let s;const o=new Set;function a(e){if(O(r,e)&&(r=e,s)){const e=!St.length;for(const e of o)e[1](),St.push(e,r);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=U){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||U),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function Ct(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:xt(t,t=>{let n=!1;const r=[];let i=0,s=U;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),u?t(e):s=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){D(e),s(),n=!1}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Tt);var t}var Tt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mt(Array.isArray(e)?[]:{},e,t):e}function Pt(e,t,n){return e.concat(t).map(function(e){return At(e,n)})}function Dt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function kt(e,t){try{return t in e}catch(e){return!1}}function Ot(r,i,s){var o={};return s.isMergeableObject(r)&&Dt(r).forEach(function(e){o[e]=At(r[e],s)}),Dt(i).forEach(function(e){var t,n;(!kt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(kt(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Mt)(r[e],i[e],s):o[e]=At(i[e],s))}),o}function Mt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Pt,n.isMergeableObject=n.isMergeableObject||Et,n.cloneUnlessOtherwiseSpecified=At;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Ot(e,t,n):At(t,n)}Mt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Mt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Mt,Nt=function(e,t){return(Nt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Rt,_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Lt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ht(e){return e.type===y.literal}function Ft(e){return e.type===y.number}function zt(e){return e.type===y.date}function Yt(e){return e.type===y.time}function Ut(e){return e.type===y.select}function $t(e){return e.type===y.plural}function Wt(e){return e.type===y.tag}function Vt(e){return e&&"object"==typeof e&&e.type===Rt.number}function jt(e){return e&&"object"==typeof e&&e.type===Rt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Rt=Rt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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;var qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Jt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function en(e){switch(e){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 tn(e){return en(e)||{}}function nn(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Jt,function(e,t,n,r,i,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xt,function(e,t,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Qt(s)))}else Zt.test(i.stem)?o=_(_({},o),Qt(i.stem)):((s=en(i.stem))&&(o=_(_({},o),s)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),r)))}return o}var rn={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var sn=new RegExp("^".concat(e.source,"*")),on=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,an=!!String.fromCodePoint,i=!!Object.fromEntries,ln=!!String.prototype.codePointAt,hn=!!String.prototype.trimStart,s=!!String.prototype.trimEnd,un=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},o=!0;try{o="a"===(null==(Mn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Mn[0])}catch(U){o=!1}var dn,cn,pn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},mn=an?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},fn=i?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],s=i[0],i=i[1];t[s]=i}return t},_n=ln?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},yn=hn?function(e){return e.trimStart()}:function(e){return e.replace(sn,"")},gn=s?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function vn(e,t){return new RegExp(e,t)}cn=o?(dn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return dn.lastIndex=t,null!=(t=dn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=_n(e,t);if(void 0===i||Sn(i)||33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(i),t+=65536<=i?2:1}return mn.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&wn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(s,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!wn(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(r,this.clonePosition()))):this.error(f.INVALID_TAG,g(r,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=g(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return mn.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),mn(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=cn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:g(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(c=gn(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:c,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(r)).err?h:(p=g(r,this.clonePosition()),l&&pn(null==l?void 0:l.style,"::",0)?(m=yn(l.style.slice(2)),"number"===o?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:n,location:p,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(rn[t||""]||rn[n||""]||rn["".concat(n,"-001")]||rn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),c={type:Rt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}},{val:{type:"date"===o?y.date:y.time,value:n,location:p,style:c},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:n,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var d,c=this.parseIdentifierIfPossible(),p=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,c);return l.err?l:(h=this.tryParseArgumentClose(r)).err?h:(m=g(r,this.clonePosition()),"select"===o?{val:{type:y.select,value:n,options:fn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:fn(l.val),offset:p,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(s,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(qt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Rt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?nn(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=new Set,a=r.value,l=r.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=g(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,n);if(h.err)return h;var d=this.tryParseArgumentClose(u);if(d.err)return d;s.push([a,{value:h.val,location:g(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:s,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=g(r,this.clonePosition());return i?un(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_n(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sn(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var bn=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Sn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new bn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ut(e)||$t(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ft(e)&&Vt(e.style)||(zt(e)||Yt(e))&&jt(e.style)?delete e.style.location:Wt(e)&&n(e.children)})}(e.val),e.val}function Cn(e,t){var n=t&&t.cache?t.cache:In,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return An(e,this,1===e.length?En:Tn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function En(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function Tn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function An(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]},Dn.prototype.set=function(e,t){this.cache[e]=t};var kn,Mn,In={create:function(){return new Dn}},Nn={variadic:function(e,t){return An(e,this,Tn,t.cache.create(),t.serializer)},monadic:function(e,t){return An(e,this,En,t.cache.create(),t.serializer)}};(Mn=kn=kn||{}).MISSING_VALUE="MISSING_VALUE",Mn.INVALID_VALUE="INVALID_VALUE",Mn.MISSING_INTL_API="MISSING_INTL_API";Bt(jn,Hn=Error),jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Bn,Rn,Ln,Hn,Fn=jn,zn=(Bt(Vn,Ln=Fn),Vn),Yn=(Bt(Wn,Rn=Fn),Wn),Un=(Bt($n,Bn=Fn),$n);function $n(e,t){return Bn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kn.MISSING_VALUE,t)||this}function Wn(e,t,n){return Rn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kn.INVALID_VALUE,n)||this}function Vn(e,t,n,r){return Ln.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),kn.INVALID_VALUE,r)||this}function jn(e,t,n){e=Hn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Gn(e,t,n,r,i,s,o){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:v.literal,value:n.getNumberFormat(t).format(s)});else{var d=u.value;if(!(i&&d in i))throw new Un(d,o);d=i[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?v.literal:v.object,value:d});else if(zt(u)){var c="string"==typeof u.style?r.date[u.style]:jt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,c).format(d)})}else if(Yt(u))c="string"==typeof u.style?r.time[u.style]:jt(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,c).format(d)});else if(Ft(u))(c="string"==typeof u.style?r.number[u.style]:Vt(u.style)?u.style.parsedOptions:void 0)&&c.scale&&(d*=c.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,c).format(d)});else{if(Wt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Yn(m,"function",o);m=f(Gn(p,t,n,r,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if(Ut(u)){if(!(_=u.options[d]||u.options.other))throw new zn(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gn(_.value,t,n,r,i))}else if($t(u)){if(!(_=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,o);var f=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new zn(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gn(_.value,t,n,r,i,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=xn,u.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"}}};var Xn=u;function u(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Gn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(i=u.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?_(_(_({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_(_({},n[t]),r[t]||{}),e},{})):n),e},_({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:qn(t.dateTime),strategy:Nn.variadic}),getPluralRules:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Lt([void 0],t,!1)))},{cache:qn(t.pluralRules),strategy:Nn.variadic})}}const Zn={},Jn=(e,t,n)=>n&&(t in Zn||(Zn[t]={}),e in Zn[t]||(Zn[t][e]=n),n),Kn=(t,n)=>{if(null!=n){if(n in Zn&&t in Zn[n])return Zn[n][t];var r=pr(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!tr(e))return null;e=function(e){return Qn[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Jn(t,n,i)}}};let Qn;const er=xt({});function tr(e){return e in Qn}function nr(t,...n){delete Zn[t],er.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}Ct([er],([e])=>Object.keys(e)),er.subscribe(e=>Qn=e);const rr={};function ir(e){return rr[e]}function sr(e){return null!=e&&pr(e).some(e=>{return null==(e=ir(e))?void 0:e.size})}const or={};function ar(e){var t;return sr(e)?(t=pr(e).map(e=>{var t=ir(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),or[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,rr[t].delete(n),0===rr[t].size&&delete rr[t],e().then(e=>e.default||e);var t,n})).then(e=>nr(r,...e));var r})).then(()=>{if(sr(e))return ar(e);delete or[e]}),or[e]):e in or?or[e]:Promise.resolve()}const lr={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const hr=xt(!1);let ur;const dr=xt(null);function cr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function pr(e,t=lr.fallbackLocale){e=cr(e);return t?[...new Set([...e,...cr(t)])]:e}function mr(){return null!=ur?ur:void 0}dr.subscribe(e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const fr={...dr,set:t=>{if(t&&function(e){if(null!=e){var t=pr(e);for(let e=0;e<t.length;e++){var n=t[e];if(tr(n))return n}}}(t)&&sr(t)){var n=lr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=mr()&&n?e=window.setTimeout(()=>hr.set(!0),n):hr.set(!0),ar(t).then(()=>{dr.set(t)}).finally(()=>{clearTimeout(e),hr.set(!1)})}return dr.set(t)}},_r=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},yr=(e,t)=>{var n=lr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},gr=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=yr("number",t)),new Intl.NumberFormat(e,n)}),vr=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=yr("date",t):0===Object.keys(n).length&&(n=yr("date","short")),new Intl.DateTimeFormat(e,n)}),br=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=yr("time",t):0===Object.keys(n).length&&(n=yr("time","short")),new Intl.DateTimeFormat(e,n)}),wr=_r((e,t=mr())=>new Xn(e,t,lr.formats,{ignoreTag:lr.ignoreTag})),Sr=Ct([fr,er],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=mr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kn(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=lr).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let h=l;try{h=wr(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),xr=(Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],br({locale:t,...n}).format(e);var n}),Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],vr({locale:t,...n}).format(e);var n}),Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],gr({locale:t,...n}).format(e);var n}),Ct([fr,er],()=>(e,t=mr())=>Kn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new yt(t),wt[e]=t,bt.push(e)),wt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Er=Cr={path:void 0,exports:{},require:function(e,t){return On(null==t&&Cr.path)}},Cr.exports,Er.exports=function(){var R;function m(){return R.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function L(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=_(e),n=V.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var V=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},j=m.momentProperties=[],G=!1;function q(e,t){var n,r,i,s=j.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(i=t[r=j[n]])||(e[r]=i);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}Z(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)f(t,n)&&(L(e[n])&&L(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&L(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function s(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<s;n++)t+=u(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,n,r={};for(n in e)f(e,n)&&(t=d(n))&&(r[t]=e[n]);return r}var ue={};function n(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function c(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?c(e):t}function ce(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(n=p(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,g=/\d\d?/,ge=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,Se=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,n,r){Pe[e]=u(n)?n:function(e,t){return e&&r?r:n}}function Ae(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function S(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),F(n)&&(i=function(e,t){t[n]=p(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function ke(e,i){S(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var x,C=0,E=1,T=2,A=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?de(e)?29:28:31-n%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),b("M",g),b("MM",g,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),S(["M","MM"],function(e,t){t[E]=p(e)-1}),S(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:_(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=v,Fe=v;function ze(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ye(e){return null!=e?(ze(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=h([2e3,s]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),s=0;s<12;s++)n[s]=w(n[s]),r[s]=w(r[s]);for(s=0;s<24;s++)i[s]=w(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function $e(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),b("Y",Ce),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Se,ye),b("YYYYYY",Se,ye),S(["YYYYY","YYYYYY"],C),S("YYYY",function(e,t){t[C]=2===e.length?m.parseTwoDigitYear(e):p(e)}),S("YY",function(e,t){t[C]=m.parseTwoDigitYear(e)}),S("Y",function(e,t){t[C]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var We=ce("FullYear",!0);function Ve(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function je(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,n){n=7+t-n;return-(7+je(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,r,i){var s,t=1+7*(t-1)+(7+n-r)%7+Ge(e,r,i),n=t<=0?$e(s=e-1)+t:t>$e(e)?(s=e+1,t-$e(e)):(s=e,t);return{year:s,dayOfYear:n}}function Xe(e,t,n){var r,i,s=Ge(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+k(i=e.year()-1,t,n):s>k(e.year(),t,n)?(r=s-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function k(e,t,n){var r=Ge(e,t,n),t=Ge(e+1,t,n);return($e(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=p(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),b("d",g),b("e",g),b("E",g),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,r){t[r]=p(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=h([2e3,1]).day(l),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),i.push(t),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),b("a",ot),b("A",ot),b("H",g),b("h",g),b("k",g),b("HH",g,y),b("hh",g,y),b("kk",g,y),b("hmm",ge),b("hmmss",ve),b("Hmm",ge),b("Hmmss",ve),S(["H","HH"],A),S(["k","kk"],function(e,t,n){e=p(e);t[A]=24===e?0:e}),S(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),S(["h","hh"],function(e,t,n){t[A]=p(e),_(n).bigHour=!0}),S("hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),S("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),S("Hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),S("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i))});v=ce("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Be,monthsShort:Re,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=ut(e[s]).split("-")).length,n=(n=ut(e[s+1]))?n.split("-"):null;0<t;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}s++}return at}function ct(t){var e;if(void 0===O[t]&&Er&&Er.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var n,r=lt;if(t.abbr=e,null!=O[e])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=ct(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[E]<0||11<t[E]?E:t[T]<1||t[T]>Ne(t[C],t[E])?T:t[A]<0||24<t[A]||24===t[A]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?A:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<C||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ie),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,i,s,o,a=e._i,l=_t.exec(a)||yt.exec(a),a=vt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=h;t<n;t++)if(bt[t][1].exec(l[3])){s=(l[2]||" ")+bt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function Et(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function Tt(e){var t,n,r,i,s=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Et(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&Ke.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=s[8],r=s[9],i=s[10],n?xt[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,a,l,h,u,d,c=[];if(!e._d){for(u=e,d=new Date(m.now()),n=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[E]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(o=1,a=4,r=At(d.GG,u._a[C],Xe(I(),1,4).year),i=At(d.W,1),((s=At(d.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,h=Xe(I(),o,a),r=At(d.gg,u._a[C],h.year),i=At(d.w,h.week),null!=d.d?((s=d.d)<0||6<s)&&(l=!0):null!=d.e?(s=d.e+o,(d.e<0||6<d.e)&&(l=!0)):s=o),i<1||i>k(r,o,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(r,i,s,o,a),u._a[C]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(d=At(e._a[C],n[C]),(e._dayOfYear>$e(d)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=je(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[A]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?je:Ve).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,n,r,i=""+e._i,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Ae(r,e))||[])[0])&&(0<(d=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(d),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[r]?(t?_(e).empty=!1:_(e).unusedTokens.push(r),d=r,p=e,null!=(c=t)&&f(De,d)&&De[d](c,p._a,p,d)):e._strict&&!t&&_(e).unusedTokens.push(r);_(e).charsLeftOver=s-o,0<i.length&&_(e).unusedInput.push(i),e._a[A]<=12&&!0===_(e).bigHour&&0<e._a[A]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[A]=(s=e._locale,h=e._a[A],null==(u=e._meridiem)?h:null!=s.meridiemHour?s.meridiemHour(h,u):null!=s.isPM?((s=s.isPM(u))&&h<12&&(h+=12),h=s||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[C]=e._locale.erasConvertYear(u,e._a[C])),Pt(e),ft(e)}else Tt(e);else Ct(e);var h,u,d,c,p}function kt(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)?W({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),$(t)&&(o=!0),s=(s+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(a=!0);U(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):z(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(s=wt.exec(i._i))?(Ct(i),!1===i._isValid&&(delete i._isValid,Tt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):L(r)?(i=n)._d||(t=void 0===(s=he(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),$(e)||(e._d=null),e))}}function Ot(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(L(e)&&H(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new X(ft(kt(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function I(e,t,n,r){return Ot(e,t,n,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ge=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Mt(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return I();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=he(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=It.length;for(t in e)if(f(e,t)&&(-1===x.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==p(e[It[n]])&&(r=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Bt(e){return e instanceof Nt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),b("Z",Te),b("ZZ",Te),S(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Te,e)});var Ht=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ht)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||z(e)?e:I(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):I(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var n,r,i=e;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=$t.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:p(t[T])*n,h:p(t[A])*n,m:p(t[P])*n,s:p(t[D])*n,ms:p(Rt(1e3*t[Oe]))*n}):(t=Wt.exec(e))?(n="-"===t[1]?-1:1,i={y:Vt(t[2],n),M:Vt(t[3],n),w:Vt(t[4],n),d:Vt(t[5],n),h:Vt(t[6],n),m:Vt(t[7],n),s:Vt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),n=I(i.to),t=t.isValid()&&n.isValid()?(n=zt(n,t),t.isBefore(n)?r=jt(t,n):((r=jt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Nt(i),Bt(e)&&f(e,"_locale")&&(r._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function jt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(K(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,N(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,s=Rt(t._days),t=Rt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),s&&me(e,"Date",pe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Be=Gt(1,"add"),Je=Gt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||F(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!F(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=L(e)&&!H(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){var n,r;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),n.push(w(i[s].narrow)),r.push(w(i[s].name)),r.push(w(i[s].abbr)),r.push(w(i[s].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var s;return null==e?Xe(this,r,i).year:(t>(s=k(e,r,i))&&(t=s),function(e,t,n,r,i){e=qe(e,t,n,r,i),t=je(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",sn),b("NN",sn),b("NNN",sn),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?_(n).era=r:_(n).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),S(["y","yy","yyy","yyyy"],C),S(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[C]=n._locale.eraYearOrdinalParse(e,i):t[C]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),b("G",Ce),b("g",Ce),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Se,ye),b("ggggg",Se,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),b("Q",i),S("Q",function(e,t){t[E]=3*(p(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),S(["D","DD"],T),S("Do",function(e,t){t[T]=p(e.match(g)[0])});we=ce("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),b("DDD",be),b("DDDD",fe),S(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),b("m",g),b("mm",g,y),S(["m","mm"],P);_e=ce("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),b("s",g),b("ss",g,y),S(["s","ss"],D);var hn,Se=ce("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),hn="SSSS";hn.length<=9;hn+="S")b(hn,xe);function un(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")S(hn,un);ye=ce("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=X.prototype;function dn(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=L(e)&&!H(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||I(),n=zt(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(u(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,I(e)))},i.clone=function(){return new X(this)},i.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":s=Jt(this,r)/12;break;case"month":s=Jt(this,r);break;case"quarter":s=Jt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:c(s)},i.endOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(I(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(I(),e)},i.get=function(e){return u(this[e=d(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:I(e),t=l(t)?t:I(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:I(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return $(this)},i.lang=Qe,i.locale=Kt,i.localeData=Qt,i.max=ve,i.min=ge,i.parsingFlags=function(){return U({},_(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=he(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Je,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},i.year=We,i.isLeapYear=function(){return de(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ye,i.daysInMonth=function(){return Ne(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return k(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=_e,i.second=i.seconds=Se,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,N(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Yt(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?I(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",Ye),i.years=e("years accessor is deprecated. Use year instead",We),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h:I)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&p(e[o])!==p(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function cn(e,t,n,r){var i=M(),r=h().set(r,t);return i[n](r,e)}function pn(e,t,n){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=cn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),F(t)&&(n=t,t=void 0),t||"");var i,s=M(),o=e?s._week.dow:0,a=[];if(null!=n)return cn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=cn(t,(i+o)%7,r,"day");return a}y.calendar=function(e,t,n){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=dn,y.postformat=dn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return u(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)f(e,n)&&(u(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var n,r=this._eras||M("en")._eras,i=0,s=r.length;i<s;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Le.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=He),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var fn=Math.abs;function _n(e,t,n,r){t=N(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function gn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}be=bn("ms"),fe=bn("s"),Be=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),Se=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),y=wn("hours"),Sn=wn("days"),xn=wn("months"),Cn=wn("years");var En=Math.round,Tn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function An(e,t,n,r){var i=N(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),h=En(i.as("M")),u=En(i.as("w")),i=En(i.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(o<=1?["m"]:o<n.m&&["mm",o])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(s=(s=null!=n.w?s||(u<=1?["w"]:u<n.w&&["ww",u]):s)||(h<=1?["M"]:h<n.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,r,i,s,o,a,l,h,u;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),(u=this.asSeconds())?(e=c(a/60),t=c(e/60),a%=60,e%=60,n=c(h/12),h%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(u)?"-":"",s=Dn(this._days)!==Dn(u)?"-":"",o=Dn(this._milliseconds)!==Dn(u)?"-":"",(u<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Nt.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},B.add=function(e,t){return _n(this,e,t,1)},B.subtract=function(e,t){return _n(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+gn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=be,B.asSeconds=fe,B.asMinutes=Be,B.asHours=ve,B.asDays=ge,B.asWeeks=Je,B.asMonths=v,B.asQuarters=_e,B.asYears=Se,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=c(e/1e3),r.seconds=e%60,e=c(e/60),r.minutes=e%60,e=c(e/60),r.hours=e%24,t+=c(e/24),n+=e=c(gn(t)),t-=yn(vn(e)),e=c(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},B.clone=function(){return N(this)},B.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=we,B.minutes=We,B.hours=y,B.days=Sn,B.weeks=function(){return c(this.days()/7)},B.months=xn,B.years=Cn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=Tn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Tn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=An(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=kn,B.toString=kn,B.toJSON=kn,B.locale=Kt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ce),b("X",/[+-]?\d+(\.\d{1,3})?/),S("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),S("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.4",R=I,m.fn=i,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return I(1e3*e)},m.months=function(e,t){return pn(e,t,"months")},m.isDate=z,m.locale=pt,m.invalid=W,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return I.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Bt,m.monthsShort=function(e,t){return pn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=ct(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Tn[e]&&(void 0===t?Tn[e]:(Tn[e]=t,"s"===e&&(Tn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Cr,Er,Tr=Cr.exports;function Ar(e,t){nr(e,t)}const Pr={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Amount",remainingBonus:"Remaining Bonus Amount",forfeitBonus:"Forfeit Bonus"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注金額",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Montant de la mise",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Sumă de pariat",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul"},es:{date:"Fecha de envío:",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Monto apostado",remainingBonus:"Monto restante de Bono",forfeitBonus:"Perder Bono"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Valor da aposta",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda"}};function Dr(e){let n,r,i,s,o,a,l,h,u=e[9]("bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=j(u),s=G(),o=t("p"),a=j(e[3]),l=G(),h=j(e[6]),q(r,"class","BonusCardRowTitle"),q(r,"part","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(o,"part","BonusCardRowText"),q(n,"class","BonusCardRow"),q(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&X(i,u),8&t&&X(a,e[3]),64&t&&X(h,e[6])},d(e){e&&V(n)}}}function kr(e){let n,r,i,s,o,a,l,h,u=e[9]("wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=j(u),s=G(),o=t("p"),a=j(e[4]),l=G(),h=j(e[6]),q(r,"class","BonusCardRowTitle"),q(r,"part","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(o,"part","BonusCardRowText"),q(n,"class","BonusCardRow"),q(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&X(i,u),16&t&&X(a,e[4]),64&t&&X(h,e[6])},d(e){e&&V(n)}}}function Or(e){let n,r,i,s,o,a,l,h,u=e[9]("remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=j(u),s=G(),o=t("p"),a=j(e[5]),l=G(),h=j(e[6]),q(r,"class","BonusCardRowTitle"),q(r,"part","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(o,"part","BonusCardRowText"),q(n,"class","BonusCardRow"),q(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&X(i,u),32&t&&X(a,e[5]),64&t&&X(h,e[6])},d(e){e&&V(n)}}}function Mr(n){let r,i,s,o,a=n[9]("forfeitBonus")+"";return{c(){r=t("button"),i=j(a),q(r,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":"")),q(r,"part","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){W(e,r,t),$(r,i),s||(o=z(r,"click",n[11]),s=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&X(i,a)},d(e){e&&V(r),s=!1,o()}}}function Ir(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,S,H,x,C,E,F,T,A,z,P,D,Y,k=n[9]("date")+"",O=Tr(n[0]).format("DD/MM/YYYY h:mm A")+"",M=n[9]("bonusName")+"",I=n[9]("bonusType")+"",N=n[3]&&Dr(n),B=n[4]&&kr(n),R=n[5]&&Or(n),L="active"===n[1]&&Mr(n);return{c(){r=t("div"),i=t("div"),s=t("div"),o=t("p"),a=j(k),l=G(),h=t("span"),u=j(O),d=G(),c=t("p"),p=j(n[1]),_=G(),y=t("div"),g=t("p"),v=j(M),b=G(),w=t("p"),S=j(n[2]),H=G(),x=t("div"),C=t("p"),E=j(I),F=G(),T=t("p"),A=j(n[8]),z=G(),N&&N.c(),P=G(),B&&B.c(),D=G(),R&&R.c(),Y=G(),L&&L.c(),this.c=U,q(o,"class","BonusCardRowTitle"),q(o,"part","BonusCardRowTitle"),q(c,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),q(c,"part",f="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),q(s,"class","BonusCardRow"),q(s,"part","BonusCardRow"),q(g,"class","BonusCardRowTitle"),q(g,"part","BonusCardRowTitle"),q(w,"class","BonusCardRowText"),q(w,"part","BonusCardRowText"),q(y,"class","BonusCardRow"),q(y,"part","BonusCardRow"),q(C,"class","BonusCardRowTitle"),q(C,"part","BonusCardRowTitle"),q(T,"class","BonusCardRowText TextCapitalize"),q(T,"part","BonusCardRowText TextCapitalize"),q(x,"class","BonusCardRow"),q(x,"part","BonusCardRow"),q(i,"class","BonusCardInfo"),q(i,"part","BonusCardInfo"),q(r,"class","BonusCard"),q(r,"part","BonusCard")},m(e,t){W(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(o,l),$(o,h),$(h,u),$(s,d),$(s,c),$(c,p),$(i,_),$(i,y),$(y,g),$(g,v),$(y,b),$(y,w),$(w,S),$(i,H),$(i,x),$(x,C),$(C,E),$(x,F),$(x,T),$(T,A),$(i,z),N&&N.m(i,null),$(i,P),B&&B.m(i,null),$(i,D),R&&R.m(i,null),$(r,Y),L&&L.m(r,null),n[18](r)},p(e,[t]){512&t&&k!==(k=e[9]("date")+"")&&X(a,k),1&t&&O!==(O=Tr(e[0]).format("DD/MM/YYYY h:mm A")+"")&&X(u,O),2&t&&X(p,e[1]),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(c,"class",m),2&t&&f!==(f="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(c,"part",f),512&t&&M!==(M=e[9]("bonusName")+"")&&X(v,M),4&t&&X(S,e[2]),512&t&&I!==(I=e[9]("bonusType")+"")&&X(E,I),256&t&&X(A,e[8]),e[3]?N?N.p(e,t):((N=Dr(e)).c(),N.m(i,P)):N&&(N.d(1),N=null),e[4]?B?B.p(e,t):((B=kr(e)).c(),B.m(i,D)):B&&(B.d(1),B=null),e[5]?R?R.p(e,t):((R=Or(e)).c(),R.m(i,null)):R&&(R.d(1),R=null),"active"===e[1]?L?L.p(e,t):((L=Mr(e)).c(),L.m(r,null)):L&&(L.d(1),L=null)},i:U,o:U,d(e){e&&V(r),N&&N.d(),B&&B.d(),R&&R.d(),L&&L.d(),n[18](null)}}}function Nr(t,e,n){let r;I(t,Sr,e=>n(9,r=e));let i,{bonuswalletid:s=""}=e,{bonusdate:o=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:c=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==xr(g),b="";Object.keys(Pr).forEach(e=>{Ar(e,Pr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,s=e.bonuswalletid),"bonusdate"in e&&n(0,o=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,h=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,c=e.bonusremainingamount),"bonuscurrency"in e&&n(6,p=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,_=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,fr.set(e)),8192&t.$$.dirty&&h&&(n(8,b=h),"freeRound"===b?n(8,b="Free Spins"):"freeBet"===b&&n(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,l,u,d,c,p,i,b,r,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:s},window.location.href)},s,h,m,f,_,y,function(e){J[e?"unshift":"push"](()=>{i=e,n(7,i)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-color-black, #000000);font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-color-black, #000000)}.BonusCardRow .BonusCardRowText.StatusActive{color:#0AA543}.BonusCardRow .BonusCardRowText.StatusExpired{color:#FD2839}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-color-primary-600, #99034F)}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},Nr,Ir,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),c()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),c()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),c()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),c()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),c()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),c()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),c()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),c()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),c()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),c()}});class Br extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Br);let Rr,Lr=null,Hr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Fr(e){requestAnimationFrame(function(){Hr?Hr(e):(Lr||(Lr=new Promise(e=>{Rr=e}),"complete"===document.readyState?Rr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Rr()})),Lr.then(function(){e&&e()}))})}const zr="__seenByShadyCSS",Yr="__shadyCSSCachedStyle";let Ur=null,$r=null;class Wr{constructor(){this.customStyles=[],this.enqueued=!1,Fr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&$r&&(this.enqueued=!0,Fr($r))}addCustomStyle(e){e[zr]||(e[zr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Yr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[Yr]){var r=this.getStyleForCustomStyle(n);if(r){const t=r.__appliedElement||r;Ur&&Ur(t),n[Yr]=t}}}return t}}Object.defineProperties(Wr.prototype,{transformCallback:{get:()=>Ur,set(e){Ur=e}},validateCallback:{get:()=>$r,set(e){let t=!1;$r||(t=!0),$r=e,t&&this.enqueueDocumentValidation()}}});const Vr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,jr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Gr=/@media\s(.*)/;function qr(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Xr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Zr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Jr,Kr;function Qr(e){Jr=(!e||!e.shimcssproperties)&&(Zr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Kr=window.ShadyCSS.cssBuild);an=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Jr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Qr(window.ShadyCSS),window.ShadyCSS=void 0):Qr(window.WebComponents&&window.WebComponents.flags);const ei=Jr,ti=new Wr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){ti.processStyles(),qr(e,t)},styleElement(e){ti.processStyles()},styleDocument(e){ti.processStyles(),qr(document.body,e)},getComputedStyleValue:(e,t)=>Xr(e,t),flushCustomStyles(){},nativeCss:ei,nativeShadow:Zr,cssBuild:Kr,disableRuntime:an}),window.ShadyCSS.CustomStyleInterface=ti,window.JSCompiler_renameProperty=function(e,t){return e};let ni,d,ri=/(url\()([^)]*)(\))/g,ii=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function si(e,t){if(e&&ii.test(e))return e;if("//"===e)return e;if(void 0===ni){ni=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ni="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,ni)try{return new URL(e,t).href}catch(t){return e}return d||((d=document.implementation.createHTMLDocument("temp")).base=d.createElement("base"),d.head.appendChild(d.base),d.anchor=d.createElement("a"),d.body.appendChild(d.anchor)),d.base.href=t,d.anchor.href=e,d.anchor.href||e}function oi(e,i){return e.replace(ri,function(e,t,n,r){return t+"'"+si(n.replace(/["']/g,""),i)+"'"+r})}function ai(e){return e.substring(0,e.lastIndexOf("/")+1)}const li=!window.ShadyDOM||!window.ShadyDOM.inUse,hi=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),li&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let ui=window.Polymer&&window.Polymer.rootPath||ai(document.baseURI||window.location.href),di=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ci=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,pi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mi=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,fi=window.Polymer&&window.Polymer.legacyOptimizations||!1,_i=window.Polymer&&window.Polymer.legacyWarnings||!1,yi=window.Polymer&&window.Polymer.syncInitialRender||!1,gi=window.Polymer&&window.Polymer.legacyUndefined||!1,vi=window.Polymer&&window.Polymer.orderedComputed||!1,bi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wi=window.Polymer&&window.Polymer.fastDomIf||!1,Si=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,xi=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ci=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Ei={},Ti={};function Ai(e,t){Ei[e]=Ti[e.toLowerCase()]=t}function Pi(e){return Ei[e]||Ti[e.toLowerCase()]}class Di extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=Pi(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,n,r){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=si(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=ai(e)),this.__assetpath}register(e){if(e=e||this.id){if(pi&&void 0!==Pi(e))throw Ai(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);Ai(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Di.prototype.modules=Ei,customElements.define("dom-module",Di);const ki="link[rel=import][type~=css]",Oi="include",Mi="shady-unscoped";function Ii(e){return Di.import(e)}function Ni(e){var e=oi((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Bi(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=Ii(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Li(t));var n=t.querySelector("template");n&&e.push(...Ri(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Ri(e,t){if(!e._styles){var n=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var i=r[e],s=i.getAttribute(Oi);s&&n.push(...Bi(s).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(i.textContent=oi(i.textContent,t)),n.push(i)}e._styles=n}return e._styles}function Li(t){const n=[],r=t.querySelectorAll(ki);for(let e=0;e<r.length;e++){var i=r[e];if(i.import){const t=i.import,r=i.hasAttribute(Mi);if(r&&!t._unscopedStyle){const n=Ni(t);n.setAttribute(Mi,""),t._unscopedStyle=n}else t._style||(t._style=Ni(t));n.push(r?t._unscopedStyle:t._style)}}return n}const Hi="include",Fi=window.ShadyCSS.CustomStyleInterface;class zi extends HTMLElement{constructor(){super(),this._style=null,Fi.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(Hi);r&&(e.removeAttribute(Hi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var s=Ii(e);if(s&&void 0===s._cssText){let e=function(){let t="",n=Li(s);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),i=s.querySelector("template");i&&(e+=function(){let t="";var n=Ri(i,s.assetpath);for(let e=0;e<n.length;e++){var r=n[e];r.parentNode&&r.parentNode.removeChild(r),t+=r.textContent}return t}()),s._cssText=e||null}return s||console.warn("Could not find style data in module named",e),s&&s._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",zi);i=document.createElement("template"),i.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(i.content),ln=document.createElement("template"),ln.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(ln.content),hn=document.createElement("template"),hn.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(hn.content),s=document.createElement("template"),s.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(s.content),o=document.createElement("template"),o.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(o.content),e=document.createElement("template"),e.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content),i=document.createElement("template");i.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(i.content);const Yi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ui(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function p(r,...e){$i(r,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ui(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return Yi&&(n=Yi.createHTML(n)),t.innerHTML=n,t}const $i=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Wi=p`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function U(){}function T(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(T)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function I(e,t,n){e.$$.on_destroy.push(M(t,n))}function $(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function N(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function V(e){return document.createTextNode(e)}function G(){return V(" ")}function B(){return V("")}function z(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function q(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:q(e,t,n)}function X(e,t){e.data!==(t=""+t)&&(e.data=t)}function L(e){var t={};for(const n of e)t[n.name]=n.value;return t}let R;function Y(e){R=e}const Z=[],J=[];let K=[];const Q=[],ee=Promise.resolve();let te=!1;function ne(e){K.push(e)}const re=new Set;let ie=0;function c(){if(0===ie){const r=R;do{try{for(;ie<Z.length;){const r=Z[ie];ie++,Y(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ne))}}catch(r){throw Z.length=0,ie=0,r}for(Y(null),Z.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<K.length;e+=1){var n=K[e];re.has(n)||(re.add(n),n())}}while(K.length=0,Z.length);for(;Q.length;)Q.pop()();te=!1,re.clear(),Y(r)}}const se=new Set;function oe(r,e,t,n,i,s,o,a=[-1]){var l=R;Y(r);const h=r.$$={fragment:null,ctx:[],props:s,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(h.root);let u=!1;if(h.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(Z.push(e),te||(te=!0,ee.then(c)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){s=e.target;const U=Array.from(s.childNodes);h.fragment&&h.fragment.l(U),U.forEach(j)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));var d=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=d.$$;s&&s.m(o,t),n||ne(()=>{var e=d.$$.on_mount.map(T).filter(k);d.$$.on_destroy?d.$$.on_destroy.push(...e):D(e),d.$$.on_mount=[]}),a.forEach(ne),c()}Y(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(T).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];K.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),K=r}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,ce="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ve(t);return t.readAsArrayBuffer(e),n}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(ce)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ge(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=ve(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},de&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ce(e,t){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ee(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ce.prototype.clone=function(){return new Ce(this,{body:this._bodyInit})},Se.call(Ce.prototype),Se.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Ae.error=function(){var e=new Ae(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Te=[301,302,303,307,308],Pe=(Ae.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ae(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(o,a){return new Promise(function(i,e){var t=new Ce(o,a);if(t.signal&&t.signal.aborted)return e(new Pe("Aborted","AbortError"));var n,s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var e,r,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new Ae(n,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(ce?s.responseType="blob":me&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(fe(e)),s.setRequestHeader(e,_e(a.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&s.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",r)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ce,l.Response=Ae),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Me(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Be(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Re=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function He(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ye.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Me(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(Be(s))try{s()}catch(e){i=e instanceof Re?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Me(s),h=l.next();!h.done;h=l.next()){var u=h.value;try{$e(u)}catch(e){i=null!=i?i:[],e instanceof Re?i=Ne(Ne([],Ie(i)),Ie(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Re(i)}},Ye.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof Ye){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ye.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ye.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ye.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&He(t,e)},Ye.prototype.remove=function(e){var t=this._finalizers;t&&He(t,e),e instanceof Ye&&e._removeParent(this)},Ye.EMPTY=((e=new Ye).closed=!0,e);var Fe=Ye,ze=Fe.EMPTY;function Ye(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Fe||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function $e(e){Be(e)?e():e.unsubscribe()}var We=void 0,je=!1,Ve=!1,Ge={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Ie(n))):setTimeout.apply(void 0,Ne([e,t],Ie(n)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qe(){}var Xe=null;function Ze(e){if(je){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var t=Xe,n=t.errorThrown,t=t.error;if(Xe=null,n)throw t}}else e()}Oe(et,Je=Fe),et.create=function(e,t,n){return new it(e,t,n)},et.prototype.next=function(e){this.isStopped||this._next(e)},et.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},et.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Je.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(e){this.destination.next(e)},et.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Je,Ke=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){at(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){at(e)}else at(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){at(e)}};var nt,rt=ot,it=(Oe(st,nt=Ke),st);function st(e,t,n){var r=nt.call(this)||this,n=Be(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ve?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return r.destination=new rt(n),r}function ot(e){this.partialObserver=e}function at(e){var t=e;Ge.setTimeout(function(){throw t})}var lt={closed:!0,next:qe,error:function(e){throw e},complete:qe},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Ke||r&&Be(r.next)&&Be(r.error)&&Be(r.complete)&&Ue(r)?e:new it(e,t,n);return Ze(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new it({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)};var ht=n;function n(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:We)?e:Promise}var dt,ct,pt,mt=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(r,pt=ht),r.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new mt},r.prototype.next=function(i){var s=this;Ze(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Me(s.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},r.prototype.error=function(t){var n=this;Ze(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},r.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,He(i,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},r.prototype.asObservable=function(){var e=new ht;return e.source=this,e},r.create=function(e,t){return new ft(e,t)},r),ft=(Oe(vt,ct=e),vt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},vt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},vt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},vt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},vt),_t={now:function(){return(_t.delegate||Date).now()},delegate:void 0},yt=(Oe(gt,dt=e),gt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(s.now()+t),this._trimBuffer(),dt.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},gt);function gt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=_t);var r=dt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function vt(e,t){var n=ct.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],wt={};const St=[];function xt(r,i=U){let s;const o=new Set;function a(e){if(O(r,e)&&(r=e,s)){const e=!St.length;for(const e of o)e[1](),St.push(e,r);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=U){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||U),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function Ct(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:xt(t,t=>{let n=!1;const r=[];let i=0,s=U;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),u?t(e):s=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){D(e),s(),n=!1}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===At);var t}var At="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mt(Array.isArray(e)?[]:{},e,t):e}function Pt(e,t,n){return e.concat(t).map(function(e){return Tt(e,n)})}function Dt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function kt(e,t){try{return t in e}catch(e){return!1}}function Ot(r,i,s){var o={};return s.isMergeableObject(r)&&Dt(r).forEach(function(e){o[e]=Tt(r[e],s)}),Dt(i).forEach(function(e){var t,n;(!kt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(kt(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Mt)(r[e],i[e],s):o[e]=Tt(i[e],s))}),o}function Mt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Pt,n.isMergeableObject=n.isMergeableObject||Et,n.cloneUnlessOtherwiseSpecified=Tt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Ot(e,t,n):Tt(t,n)}Mt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Mt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Mt,Nt=function(e,t){return(Nt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Lt,_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Rt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ht(e){return e.type===y.literal}function Ft(e){return e.type===y.number}function zt(e){return e.type===y.date}function Yt(e){return e.type===y.time}function Ut(e){return e.type===y.select}function $t(e){return e.type===y.plural}function Wt(e){return e.type===y.tag}function jt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Vt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Lt=Lt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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;var qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Jt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function en(e){switch(e){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 tn(e){return en(e)||{}}function nn(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Jt,function(e,t,n,r,i,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xt,function(e,t,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Qt(s)))}else Zt.test(i.stem)?o=_(_({},o),Qt(i.stem)):((s=en(i.stem))&&(o=_(_({},o),s)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),r)))}return o}var rn={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var sn=new RegExp("^".concat(e.source,"*")),on=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,an=!!String.fromCodePoint,i=!!Object.fromEntries,ln=!!String.prototype.codePointAt,hn=!!String.prototype.trimStart,s=!!String.prototype.trimEnd,un=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},o=!0;try{o="a"===(null==(Mn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Mn[0])}catch(U){o=!1}var dn,cn,pn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},mn=an?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},fn=i?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],s=i[0],i=i[1];t[s]=i}return t},_n=ln?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},yn=hn?function(e){return e.trimStart()}:function(e){return e.replace(sn,"")},gn=s?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function vn(e,t){return new RegExp(e,t)}cn=o?(dn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return dn.lastIndex=t,null!=(t=dn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=_n(e,t);if(void 0===i||Sn(i)||33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(i),t+=65536<=i?2:1}return mn.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&wn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(s,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!wn(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(r,this.clonePosition()))):this.error(f.INVALID_TAG,g(r,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=g(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return mn.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),mn(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=cn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:g(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(c=gn(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:c,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(r)).err?h:(p=g(r,this.clonePosition()),l&&pn(null==l?void 0:l.style,"::",0)?(m=yn(l.style.slice(2)),"number"===o?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:n,location:p,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(rn[t||""]||rn[n||""]||rn["".concat(n,"-001")]||rn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),c={type:Lt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}},{val:{type:"date"===o?y.date:y.time,value:n,location:p,style:c},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:n,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var d,c=this.parseIdentifierIfPossible(),p=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,c);return l.err?l:(h=this.tryParseArgumentClose(r)).err?h:(m=g(r,this.clonePosition()),"select"===o?{val:{type:y.select,value:n,options:fn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:fn(l.val),offset:p,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(s,a))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(qt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?nn(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=new Set,a=r.value,l=r.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=g(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(o.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,n);if(h.err)return h;var d=this.tryParseArgumentClose(u);if(d.err)return d;s.push([a,{value:h.val,location:g(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:s,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=g(r,this.clonePosition());return i?un(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_n(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sn(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var bn=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function wn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Sn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new bn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ut(e)||$t(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ft(e)&&jt(e.style)||(zt(e)||Yt(e))&&Vt(e.style)?delete e.style.location:Wt(e)&&n(e.children)})}(e.val),e.val}function Cn(e,t){var n=t&&t.cache?t.cache:In,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return Tn(e,this,1===e.length?En:An,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function En(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function An(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function Tn(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]},Dn.prototype.set=function(e,t){this.cache[e]=t};var kn,Mn,In={create:function(){return new Dn}},Nn={variadic:function(e,t){return Tn(e,this,An,t.cache.create(),t.serializer)},monadic:function(e,t){return Tn(e,this,En,t.cache.create(),t.serializer)}};(Mn=kn=kn||{}).MISSING_VALUE="MISSING_VALUE",Mn.INVALID_VALUE="INVALID_VALUE",Mn.MISSING_INTL_API="MISSING_INTL_API";Bt(Vn,Hn=Error),Vn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Bn,Ln,Rn,Hn,Fn=Vn,zn=(Bt(jn,Rn=Fn),jn),Yn=(Bt(Wn,Ln=Fn),Wn),Un=(Bt($n,Bn=Fn),$n);function $n(e,t){return Bn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kn.MISSING_VALUE,t)||this}function Wn(e,t,n){return Ln.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kn.INVALID_VALUE,n)||this}function jn(e,t,n,r){return Rn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),kn.INVALID_VALUE,r)||this}function Vn(e,t,n){e=Hn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Gn(e,t,n,r,i,s,o){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:v.literal,value:n.getNumberFormat(t).format(s)});else{var d=u.value;if(!(i&&d in i))throw new Un(d,o);d=i[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?v.literal:v.object,value:d});else if(zt(u)){var c="string"==typeof u.style?r.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,c).format(d)})}else if(Yt(u))c="string"==typeof u.style?r.time[u.style]:Vt(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,c).format(d)});else if(Ft(u))(c="string"==typeof u.style?r.number[u.style]:jt(u.style)?u.style.parsedOptions:void 0)&&c.scale&&(d*=c.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,c).format(d)});else{if(Wt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Yn(m,"function",o);m=f(Gn(p,t,n,r,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if(Ut(u)){if(!(_=u.options[d]||u.options.other))throw new zn(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gn(_.value,t,n,r,i))}else if($t(u)){if(!(_=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,o);var f=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new zn(u.value,d,Object.keys(u.options),o);a.push.apply(a,Gn(_.value,t,n,r,i,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=xn,u.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"}}};var Xn=u;function u(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Gn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(i=u.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?_(_(_({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_(_({},n[t]),r[t]||{}),e},{})):n),e},_({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:qn(t.dateTime),strategy:Nn.variadic}),getPluralRules:Cn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Rt([void 0],t,!1)))},{cache:qn(t.pluralRules),strategy:Nn.variadic})}}const Zn={},Jn=(e,t,n)=>n&&(t in Zn||(Zn[t]={}),e in Zn[t]||(Zn[t][e]=n),n),Kn=(t,n)=>{if(null!=n){if(n in Zn&&t in Zn[n])return Zn[n][t];var r=pr(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!tr(e))return null;e=function(e){return Qn[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Jn(t,n,i)}}};let Qn;const er=xt({});function tr(e){return e in Qn}function nr(t,...n){delete Zn[t],er.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}Ct([er],([e])=>Object.keys(e)),er.subscribe(e=>Qn=e);const rr={};function ir(e){return rr[e]}function sr(e){return null!=e&&pr(e).some(e=>{return null==(e=ir(e))?void 0:e.size})}const or={};function ar(e){var t;return sr(e)?(t=pr(e).map(e=>{var t=ir(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),or[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,rr[t].delete(n),0===rr[t].size&&delete rr[t],e().then(e=>e.default||e);var t,n})).then(e=>nr(r,...e));var r})).then(()=>{if(sr(e))return ar(e);delete or[e]}),or[e]):e in or?or[e]:Promise.resolve()}const lr={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const hr=xt(!1);let ur;const dr=xt(null);function cr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function pr(e,t=lr.fallbackLocale){e=cr(e);return t?[...new Set([...e,...cr(t)])]:e}function mr(){return null!=ur?ur:void 0}dr.subscribe(e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const fr={...dr,set:t=>{if(t&&function(e){if(null!=e){var t=pr(e);for(let e=0;e<t.length;e++){var n=t[e];if(tr(n))return n}}}(t)&&sr(t)){var n=lr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=mr()&&n?e=window.setTimeout(()=>hr.set(!0),n):hr.set(!0),ar(t).then(()=>{dr.set(t)}).finally(()=>{clearTimeout(e),hr.set(!1)})}return dr.set(t)}},_r=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},yr=(e,t)=>{var n=lr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},gr=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=yr("number",t)),new Intl.NumberFormat(e,n)}),vr=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=yr("date",t):0===Object.keys(n).length&&(n=yr("date","short")),new Intl.DateTimeFormat(e,n)}),br=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=yr("time",t):0===Object.keys(n).length&&(n=yr("time","short")),new Intl.DateTimeFormat(e,n)}),wr=_r((e,t=mr())=>new Xn(e,t,lr.formats,{ignoreTag:lr.ignoreTag})),Sr=Ct([fr,er],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=mr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kn(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=lr).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let h=l;try{h=wr(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),xr=(Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],br({locale:t,...n}).format(e);var n}),Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],vr({locale:t,...n}).format(e);var n}),Ct([fr],()=>(e,t)=>{return[{locale:t=mr(),...n}={}]=[t],gr({locale:t,...n}).format(e);var n}),Ct([fr,er],()=>(e,t=mr())=>Kn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new yt(t),wt[e]=t,bt.push(e)),wt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Er=Cr={path:void 0,exports:{},require:function(e,t){return On(null==t&&Cr.path)}},Cr.exports,Er.exports=function(){var L;function m(){return L.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=_(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=m.momentProperties=[],G=!1;function q(e,t){var n,r,i,s=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(i=t[r=V[n]])||(e[r]=i);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}Z(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)f(t,n)&&(R(e[n])&&R(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&R(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function s(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<s;n++)t+=u(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,n,r={};for(n in e)f(e,n)&&(t=d(n))&&(r[t]=e[n]);return r}var ue={};function n(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function c(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?c(e):t}function ce(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(n=p(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,g=/\d\d?/,ge=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,Se=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,n,r){Pe[e]=u(n)?n:function(e,t){return e&&r?r:n}}function Te(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function S(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),F(n)&&(i=function(e,t){t[n]=p(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function ke(e,i){S(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var x,C=0,E=1,A=2,T=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?de(e)?29:28:31-n%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),b("M",g),b("MM",g,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),S(["M","MM"],function(e,t){t[E]=p(e)-1}),S(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:_(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=v,Fe=v;function ze(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ye(e){return null!=e?(ze(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=h([2e3,s]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),s=0;s<12;s++)n[s]=w(n[s]),r[s]=w(r[s]);for(s=0;s<24;s++)i[s]=w(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function $e(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),b("Y",Ce),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Se,ye),b("YYYYYY",Se,ye),S(["YYYYY","YYYYYY"],C),S("YYYY",function(e,t){t[C]=2===e.length?m.parseTwoDigitYear(e):p(e)}),S("YY",function(e,t){t[C]=m.parseTwoDigitYear(e)}),S("Y",function(e,t){t[C]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var We=ce("FullYear",!0);function je(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,r,i){var s,t=1+7*(t-1)+(7+n-r)%7+Ge(e,r,i),n=t<=0?$e(s=e-1)+t:t>$e(e)?(s=e+1,t-$e(e)):(s=e,t);return{year:s,dayOfYear:n}}function Xe(e,t,n){var r,i,s=Ge(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+k(i=e.year()-1,t,n):s>k(e.year(),t,n)?(r=s-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function k(e,t,n){var r=Ge(e,t,n),t=Ge(e+1,t,n);return($e(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=p(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),b("d",g),b("e",g),b("E",g),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,r){t[r]=p(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=h([2e3,1]).day(l),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),i.push(t),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),b("a",ot),b("A",ot),b("H",g),b("h",g),b("k",g),b("HH",g,y),b("hh",g,y),b("kk",g,y),b("hmm",ge),b("hmmss",ve),b("Hmm",ge),b("Hmmss",ve),S(["H","HH"],T),S(["k","kk"],function(e,t,n){e=p(e);t[T]=24===e?0:e}),S(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),S(["h","hh"],function(e,t,n){t[T]=p(e),_(n).bigHour=!0}),S("hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),S("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),S("Hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),S("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i))});v=ce("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Be,monthsShort:Le,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=ut(e[s]).split("-")).length,n=(n=ut(e[s+1]))?n.split("-"):null;0<t;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}s++}return at}function ct(t){var e;if(void 0===O[t]&&Er&&Er.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var n,r=lt;if(t.abbr=e,null!=O[e])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=ct(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[E]<0||11<t[E]?E:t[A]<1||t[A]>Ne(t[C],t[E])?A:t[T]<0||24<t[T]||24===t[T]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?T:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<C||A<t)&&(t=A),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ie),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,i,s,o,a=e._i,l=_t.exec(a)||yt.exec(a),a=vt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=h;t<n;t++)if(bt[t][1].exec(l[3])){s=(l[2]||" ")+bt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function Et(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function At(e){var t,n,r,i,s=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Et(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&Ke.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=s[8],r=s[9],i=s[10],n?xt[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,a,l,h,u,d,c=[];if(!e._d){for(u=e,d=new Date(m.now()),n=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[A]&&null==e._a[E]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(o=1,a=4,r=Tt(d.GG,u._a[C],Xe(I(),1,4).year),i=Tt(d.W,1),((s=Tt(d.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,h=Xe(I(),o,a),r=Tt(d.gg,u._a[C],h.year),i=Tt(d.w,h.week),null!=d.d?((s=d.d)<0||6<s)&&(l=!0):null!=d.e?(s=d.e+o,(d.e<0||6<d.e)&&(l=!0)):s=o),i<1||i>k(r,o,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(r,i,s,o,a),u._a[C]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(d=Tt(e._a[C],n[C]),(e._dayOfYear>$e(d)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[A]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ve:je).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,n,r,i=""+e._i,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Te(r,e))||[])[0])&&(0<(d=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(d),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[r]?(t?_(e).empty=!1:_(e).unusedTokens.push(r),d=r,p=e,null!=(c=t)&&f(De,d)&&De[d](c,p._a,p,d)):e._strict&&!t&&_(e).unusedTokens.push(r);_(e).charsLeftOver=s-o,0<i.length&&_(e).unusedInput.push(i),e._a[T]<=12&&!0===_(e).bigHour&&0<e._a[T]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[T]=(s=e._locale,h=e._a[T],null==(u=e._meridiem)?h:null!=s.meridiemHour?s.meridiemHour(h,u):null!=s.isPM?((s=s.isPM(u))&&h<12&&(h+=12),h=s||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[C]=e._locale.erasConvertYear(u,e._a[C])),Pt(e),ft(e)}else At(e);else Ct(e);var h,u,d,c,p}function kt(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)?W({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),$(t)&&(o=!0),s=(s+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(a=!0);U(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):z(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(s=wt.exec(i._i))?(Ct(i),!1===i._isValid&&(delete i._isValid,At(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):R(r)?(i=n)._d||(t=void 0===(s=he(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),$(e)||(e._d=null),e))}}function Ot(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(R(e)&&H(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new X(ft(kt(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function I(e,t,n,r){return Ot(e,t,n,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ge=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Mt(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return I();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=he(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=It.length;for(t in e)if(f(e,t)&&(-1===x.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==p(e[It[n]])&&(r=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Bt(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ae),b("ZZ",Ae),S(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Ae,e)});var Ht=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ht)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||z(e)?e:I(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):I(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var n,r,i=e;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=$t.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:p(t[A])*n,h:p(t[T])*n,m:p(t[P])*n,s:p(t[D])*n,ms:p(Lt(1e3*t[Oe]))*n}):(t=Wt.exec(e))?(n="-"===t[1]?-1:1,i={y:jt(t[2],n),M:jt(t[3],n),w:jt(t[4],n),d:jt(t[5],n),h:jt(t[6],n),m:jt(t[7],n),s:jt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),n=I(i.to),t=t.isValid()&&n.isValid()?(n=zt(n,t),t.isBefore(n)?r=Vt(t,n):((r=Vt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Nt(i),Bt(e)&&f(e,"_locale")&&(r._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(K(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,N(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,s=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),s&&me(e,"Date",pe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Be=Gt(1,"add"),Je=Gt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||F(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!F(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=R(e)&&!H(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){var n,r;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),n.push(w(i[s].narrow)),r.push(w(i[s].name)),r.push(w(i[s].abbr)),r.push(w(i[s].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var s;return null==e?Xe(this,r,i).year:(t>(s=k(e,r,i))&&(t=s),function(e,t,n,r,i){e=qe(e,t,n,r,i),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",sn),b("NN",sn),b("NNN",sn),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?_(n).era=r:_(n).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),S(["y","yy","yyy","yyyy"],C),S(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[C]=n._locale.eraYearOrdinalParse(e,i):t[C]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),b("G",Ce),b("g",Ce),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Se,ye),b("ggggg",Se,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),b("Q",i),S("Q",function(e,t){t[E]=3*(p(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),S(["D","DD"],A),S("Do",function(e,t){t[A]=p(e.match(g)[0])});we=ce("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),b("DDD",be),b("DDDD",fe),S(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),b("m",g),b("mm",g,y),S(["m","mm"],P);_e=ce("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),b("s",g),b("ss",g,y),S(["s","ss"],D);var hn,Se=ce("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),hn="SSSS";hn.length<=9;hn+="S")b(hn,xe);function un(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")S(hn,un);ye=ce("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=X.prototype;function dn(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!H(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||I(),n=zt(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(u(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,I(e)))},i.clone=function(){return new X(this)},i.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":s=Jt(this,r)/12;break;case"month":s=Jt(this,r);break;case"quarter":s=Jt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:c(s)},i.endOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(I(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(I(),e)},i.get=function(e){return u(this[e=d(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:I(e),t=l(t)?t:I(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:I(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return $(this)},i.lang=Qe,i.locale=Kt,i.localeData=Qt,i.max=ve,i.min=ge,i.parsingFlags=function(){return U({},_(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=he(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Je,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},i.year=We,i.isLeapYear=function(){return de(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ye,i.daysInMonth=function(){return Ne(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return k(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=_e,i.second=i.seconds=Se,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=Ft(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,N(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Yt(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?I(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",Ye),i.years=e("years accessor is deprecated. Use year instead",We),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h:I)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&p(e[o])!==p(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function cn(e,t,n,r){var i=M(),r=h().set(r,t);return i[n](r,e)}function pn(e,t,n){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=cn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),F(t)&&(n=t,t=void 0),t||"");var i,s=M(),o=e?s._week.dow:0,a=[];if(null!=n)return cn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=cn(t,(i+o)%7,r,"day");return a}y.calendar=function(e,t,n){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=dn,y.postformat=dn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return u(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)f(e,n)&&(u(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var n,r=this._eras||M("en")._eras,i=0,s=r.length;i<s;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=He),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var fn=Math.abs;function _n(e,t,n,r){t=N(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function gn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}be=bn("ms"),fe=bn("s"),Be=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),Se=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),y=wn("hours"),Sn=wn("days"),xn=wn("months"),Cn=wn("years");var En=Math.round,An={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,r){var i=N(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),h=En(i.as("M")),u=En(i.as("w")),i=En(i.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(o<=1?["m"]:o<n.m&&["mm",o])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(s=(s=null!=n.w?s||(u<=1?["w"]:u<n.w&&["ww",u]):s)||(h<=1?["M"]:h<n.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,r,i,s,o,a,l,h,u;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),(u=this.asSeconds())?(e=c(a/60),t=c(e/60),a%=60,e%=60,n=c(h/12),h%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(u)?"-":"",s=Dn(this._days)!==Dn(u)?"-":"",o=Dn(this._milliseconds)!==Dn(u)?"-":"",(u<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Nt.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},B.add=function(e,t){return _n(this,e,t,1)},B.subtract=function(e,t){return _n(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+gn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=be,B.asSeconds=fe,B.asMinutes=Be,B.asHours=ve,B.asDays=ge,B.asWeeks=Je,B.asMonths=v,B.asQuarters=_e,B.asYears=Se,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=c(e/1e3),r.seconds=e%60,e=c(e/60),r.minutes=e%60,e=c(e/60),r.hours=e%24,t+=c(e/24),n+=e=c(gn(t)),t-=yn(vn(e)),e=c(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},B.clone=function(){return N(this)},B.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=we,B.minutes=We,B.hours=y,B.days=Sn,B.weeks=function(){return c(this.days()/7)},B.months=xn,B.years=Cn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=An,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},An,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Tn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=kn,B.toString=kn,B.toJSON=kn,B.locale=Kt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ce),b("X",/[+-]?\d+(\.\d{1,3})?/),S("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),S("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.4",L=I,m.fn=i,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return I(1e3*e)},m.months=function(e,t){return pn(e,t,"months")},m.isDate=z,m.locale=pt,m.invalid=W,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return I.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Bt,m.monthsShort=function(e,t){return pn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=ct(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==An[e]&&(void 0===t?An[e]:(An[e]=t,"s"===e&&(An.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Cr,Er,Ar=Cr.exports;function Tr(e,t){nr(e,t)}const Pr={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function Dr(e){let n,r,i,s,o,a,l,h,u=e[9]("bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[3]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&X(i,u),8&t&&X(a,e[3]),64&t&&X(h,e[6])},d(e){e&&j(n)}}}function kr(e){let n,r,i,s,o,a,l,h,u=e[9]("wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[4]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&X(i,u),16&t&&X(a,e[4]),64&t&&X(h,e[6])},d(e){e&&j(n)}}}function Or(e){let n,r,i,s,o,a,l,h,u=e[9]("remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[5]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&X(i,u),32&t&&X(a,e[5]),64&t&&X(h,e[6])},d(e){e&&j(n)}}}function Mr(n){let r,i,s,o,a=n[9]("forfeitBonus")+"";return{c(){r=t("button"),i=V(a),q(r,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){W(e,r,t),$(r,i),s||(o=z(r,"click",n[11]),s=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&X(i,a)},d(e){e&&j(r),s=!1,o()}}}function Ir(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,H,S,x,C,F,E,A,z,T,P,Y,D=n[9]("date")+"",k=Ar(n[0]).format("DD/MM/YYYY h:mm A")+"",O=n[9](""+n[1])+"",M=n[9]("bonusName")+"",I=n[9]("bonusType")+"",N=n[3]&&Dr(n),B=n[4]&&kr(n),L=n[5]&&Or(n),R="active"===n[1]&&Mr(n);return{c(){r=t("div"),i=t("div"),s=t("div"),o=t("p"),a=V(D),l=G(),h=t("span"),u=V(k),d=G(),c=t("p"),p=V(O),f=G(),_=t("div"),y=t("p"),g=V(M),v=G(),b=t("p"),w=V(n[2]),H=G(),S=t("div"),x=t("p"),C=V(I),F=G(),E=t("p"),A=V(n[8]),z=G(),N&&N.c(),T=G(),B&&B.c(),P=G(),L&&L.c(),Y=G(),R&&R.c(),this.c=U,q(o,"class","BonusCardRowTitle"),q(c,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),q(s,"class","BonusCardRow"),q(y,"class","BonusCardRowTitle"),q(b,"class","BonusCardRowText"),q(_,"class","BonusCardRow"),q(x,"class","BonusCardRowTitle"),q(E,"class","BonusCardRowText TextCapitalize"),q(S,"class","BonusCardRow"),q(i,"class","BonusCardInfo"),q(r,"class","BonusCard")},m(e,t){W(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(o,l),$(o,h),$(h,u),$(s,d),$(s,c),$(c,p),$(i,f),$(i,_),$(_,y),$(y,g),$(_,v),$(_,b),$(b,w),$(i,H),$(i,S),$(S,x),$(x,C),$(S,F),$(S,E),$(E,A),$(i,z),N&&N.m(i,null),$(i,T),B&&B.m(i,null),$(i,P),L&&L.m(i,null),$(r,Y),R&&R.m(r,null),n[18](r)},p(e,[t]){512&t&&D!==(D=e[9]("date")+"")&&X(a,D),1&t&&k!==(k=Ar(e[0]).format("DD/MM/YYYY h:mm A")+"")&&X(u,k),514&t&&O!==(O=e[9](""+e[1])+"")&&X(p,O),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(c,"class",m),512&t&&M!==(M=e[9]("bonusName")+"")&&X(g,M),4&t&&X(w,e[2]),512&t&&I!==(I=e[9]("bonusType")+"")&&X(C,I),256&t&&X(A,e[8]),e[3]?N?N.p(e,t):((N=Dr(e)).c(),N.m(i,T)):N&&(N.d(1),N=null),e[4]?B?B.p(e,t):((B=kr(e)).c(),B.m(i,P)):B&&(B.d(1),B=null),e[5]?L?L.p(e,t):((L=Or(e)).c(),L.m(i,null)):L&&(L.d(1),L=null),"active"===e[1]?R?R.p(e,t):((R=Mr(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},i:U,o:U,d(e){e&&j(r),N&&N.d(),B&&B.d(),L&&L.d(),R&&R.d(),n[18](null)}}}function Nr(t,e,n){let r;I(t,Sr,e=>n(9,r=e));let i,{bonuswalletid:s=""}=e,{bonusdate:o=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:c=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==xr(g),b="";Object.keys(Pr).forEach(e=>{Tr(e,Pr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,s=e.bonuswalletid),"bonusdate"in e&&n(0,o=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,h=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,c=e.bonusremainingamount),"bonuscurrency"in e&&n(6,p=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,_=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,fr.set(e)),8192&t.$$.dirty&&h&&(n(8,b=h),"freeRound"===b?n(8,b="Free Spins"):"freeBet"===b&&n(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tr(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,l,u,d,c,p,i,b,r,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:s},window.location.href)},s,h,m,f,_,y,function(e){J[e?"unshift":"push"](()=>{i=e,n(7,i)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Nr,Ir,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),c()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),c()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),c()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),c()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),c()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),c()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),c()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),c()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),c()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),c()}});class Br extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Br);let Lr,Rr=null,Hr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Fr(e){requestAnimationFrame(function(){Hr?Hr(e):(Rr||(Rr=new Promise(e=>{Lr=e}),"complete"===document.readyState?Lr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Lr()})),Rr.then(function(){e&&e()}))})}const zr="__seenByShadyCSS",Yr="__shadyCSSCachedStyle";let Ur=null,$r=null;class Wr{constructor(){this.customStyles=[],this.enqueued=!1,Fr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&$r&&(this.enqueued=!0,Fr($r))}addCustomStyle(e){e[zr]||(e[zr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Yr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[Yr]){var r=this.getStyleForCustomStyle(n);if(r){const t=r.__appliedElement||r;Ur&&Ur(t),n[Yr]=t}}}return t}}Object.defineProperties(Wr.prototype,{transformCallback:{get:()=>Ur,set(e){Ur=e}},validateCallback:{get:()=>$r,set(e){let t=!1;$r||(t=!0),$r=e,t&&this.enqueueDocumentValidation()}}});const jr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Vr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Gr=/@media\s(.*)/;function qr(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Xr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Zr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Jr,Kr;function Qr(e){Jr=(!e||!e.shimcssproperties)&&(Zr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Kr=window.ShadyCSS.cssBuild);an=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Jr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Qr(window.ShadyCSS),window.ShadyCSS=void 0):Qr(window.WebComponents&&window.WebComponents.flags);const ei=Jr,ti=new Wr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){ti.processStyles(),qr(e,t)},styleElement(e){ti.processStyles()},styleDocument(e){ti.processStyles(),qr(document.body,e)},getComputedStyleValue:(e,t)=>Xr(e,t),flushCustomStyles(){},nativeCss:ei,nativeShadow:Zr,cssBuild:Kr,disableRuntime:an}),window.ShadyCSS.CustomStyleInterface=ti,window.JSCompiler_renameProperty=function(e,t){return e};let ni,d,ri=/(url\()([^)]*)(\))/g,ii=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function si(e,t){if(e&&ii.test(e))return e;if("//"===e)return e;if(void 0===ni){ni=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ni="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,ni)try{return new URL(e,t).href}catch(t){return e}return d||((d=document.implementation.createHTMLDocument("temp")).base=d.createElement("base"),d.head.appendChild(d.base),d.anchor=d.createElement("a"),d.body.appendChild(d.anchor)),d.base.href=t,d.anchor.href=e,d.anchor.href||e}function oi(e,i){return e.replace(ri,function(e,t,n,r){return t+"'"+si(n.replace(/["']/g,""),i)+"'"+r})}function ai(e){return e.substring(0,e.lastIndexOf("/")+1)}const li=!window.ShadyDOM||!window.ShadyDOM.inUse,hi=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),li&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let ui=window.Polymer&&window.Polymer.rootPath||ai(document.baseURI||window.location.href),di=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ci=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,pi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mi=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,fi=window.Polymer&&window.Polymer.legacyOptimizations||!1,_i=window.Polymer&&window.Polymer.legacyWarnings||!1,yi=window.Polymer&&window.Polymer.syncInitialRender||!1,gi=window.Polymer&&window.Polymer.legacyUndefined||!1,vi=window.Polymer&&window.Polymer.orderedComputed||!1,bi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wi=window.Polymer&&window.Polymer.fastDomIf||!1,Si=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,xi=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ci=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Ei={},Ai={};function Ti(e,t){Ei[e]=Ai[e.toLowerCase()]=t}function Pi(e){return Ei[e]||Ai[e.toLowerCase()]}class Di extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=Pi(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,n,r){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=si(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=ai(e)),this.__assetpath}register(e){if(e=e||this.id){if(pi&&void 0!==Pi(e))throw Ti(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);Ti(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Di.prototype.modules=Ei,customElements.define("dom-module",Di);const ki="link[rel=import][type~=css]",Oi="include",Mi="shady-unscoped";function Ii(e){return Di.import(e)}function Ni(e){var e=oi((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Bi(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=Ii(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Ri(t));var n=t.querySelector("template");n&&e.push(...Li(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Li(e,t){if(!e._styles){var n=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var i=r[e],s=i.getAttribute(Oi);s&&n.push(...Bi(s).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(i.textContent=oi(i.textContent,t)),n.push(i)}e._styles=n}return e._styles}function Ri(t){const n=[],r=t.querySelectorAll(ki);for(let e=0;e<r.length;e++){var i=r[e];if(i.import){const t=i.import,r=i.hasAttribute(Mi);if(r&&!t._unscopedStyle){const n=Ni(t);n.setAttribute(Mi,""),t._unscopedStyle=n}else t._style||(t._style=Ni(t));n.push(r?t._unscopedStyle:t._style)}}return n}const Hi="include",Fi=window.ShadyCSS.CustomStyleInterface;class zi extends HTMLElement{constructor(){super(),this._style=null,Fi.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(Hi);r&&(e.removeAttribute(Hi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var s=Ii(e);if(s&&void 0===s._cssText){let e=function(){let t="",n=Ri(s);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),i=s.querySelector("template");i&&(e+=function(){let t="";var n=Li(i,s.assetpath);for(let e=0;e<n.length;e++){var r=n[e];r.parentNode&&r.parentNode.removeChild(r),t+=r.textContent}return t}()),s._cssText=e||null}return s||console.warn("Could not find style data in module named",e),s&&s._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",zi);i=document.createElement("template"),i.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(i.content),ln=document.createElement("template"),ln.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(ln.content),hn=document.createElement("template"),hn.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(hn.content),s=document.createElement("template"),s.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(s.content),o=document.createElement("template"),o.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(o.content),e=document.createElement("template"),e.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content),i=document.createElement("template");i.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(i.content);const Yi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ui(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function p(r,...e){$i(r,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ui(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return Yi&&(n=Yi.createHTML(n)),t.innerHTML=n,t}const $i=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Wi=p`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
2
2
|
<template>
|
3
3
|
<style include="lumo-menu-overlay">
|
4
4
|
[part="overlay"] {
|
@@ -320,7 +320,7 @@
|
|
320
320
|
}
|
321
321
|
</style>
|
322
322
|
</template>
|
323
|
-
</dom-module>`;document.head.appendChild(ln.content);let Vi=0;function m(i){let s=i.__mixinApplications,o=(s||(s=new WeakMap,i.__mixinApplications=s),Vi++);return function(e){var t=e.__mixinSet;if(t&&t[o])return e;let n=s,r=n.get(e);return r||(r=i(e),n.set(e,r),(e=Object.create(r.__mixinSet||t||null))[o]=!0,r.__mixinSet=e),r}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function ji(e){return 0<=e.indexOf(".")}function Gi(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function qi(e,t){return 0===e.indexOf(t+".")}function Xi(e,t){return 0===t.indexOf(e+".")}function Zi(e,t,n){return t+n.slice(e.length)}function Ji(t){if(Array.isArray(t)){var n=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)n.push(r[e])}return n.join(".")}return t}function Ki(e){return(Array.isArray(e)?Ji(e):e.toString()).split(".")}function w(e,t,n){let r=e,i=Ki(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function Qi(e,t,n){let r=e,i=Ki(t),s=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(r=r[i[e]]))return;r[s]=n}else r[t]=n;return i.join(".")}const es={},ts=/-[a-z]/g,ns=/([A-Z])/g;function rs(e){return es[e]||(es[e]=e.indexOf("-")<0?e:e.replace(ts,e=>e[1].toUpperCase()))}function is(e){return es[e]||(es[e]=e.replace(ns,"-$1").toLowerCase())}let ss=0,os=0,as=[],ls=0,hs=!1,us=document.createTextNode("");new window.MutationObserver(function(){hs=!1;var t=as.length;for(let e=0;e<t;e++){var n=as[e];if(n)try{n()}catch(t){setTimeout(()=>{throw t})}}as.splice(0,t),os+=t}).observe(us,{characterData:!0});const ds={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},cs={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},ps={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ms={run:e=>(hs||(hs=!0,us.textContent=ls++),as.push(e),ss++),cancel(e){var t=e-os;if(0<=t){if(!as[t])throw new Error("invalid async handle: "+e);as[t]=null}}},fs=ms,_s=m(e=>class extends e{static createProperties(e){var t,n=this.prototype;for(t in e)t in n||n._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,n){var r=this.__data[e],i=this._shouldPropertyChange(e,t,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),i}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,fs.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++;var e=this.__data,t=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,r){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,r)}_attributeToProperty(e,t,n){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=b(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),ys={};let gs=HTMLElement.prototype;for(;gs;){var vs=Object.getOwnPropertyNames(gs);for(let e=0;e<vs.length;e++)ys[vs[e]]=!0;gs=Object.getPrototypeOf(gs)}const bs=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ws=m(e=>{return class extends _s(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(rs(t[e]))}static attributeNameForProperty(e){return is(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(bs(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,r,i;n=this,r=e,ys[r]||void 0!==(i=n[r])&&(n.__data?n._setPendingProperty(r,i):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[r]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),Ss={"dom-if":!0,"dom-repeat":!0};let xs=!1,Cs=!1;const Es=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);r&&n.startsWith("on-")?e.setAttribute(n,r.createScript(t,n)):e.setAttribute(n,t)}})();const Ts=m(e=>class extends e{static _parseTemplate(e,t){var n;return e._templateInfo||((n=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let r=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,e=i,xs||(xs=!0,(s=document.createElement("textarea")).placeholder="a",Cs=s.placeholder===s.textContent),Cs&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),(r=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,n)||r:r)||n.noted;var s}static _parseTemplateChildNodes(r,i,s){if("script"!==r.localName&&"style"!==r.localName)for(let t,n=r.firstChild,e=0;n;n=t){if("template"==n.localName&&(n=function(e){let t=e.getAttribute("is");if(t&&Ss[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const t=n.attributes[0]["name"];Es(e,n,t),n.removeAttribute(t)}}return e}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(i.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}var o={parentIndex:e,parentInfo:s};this._parseTemplateNode(n,i,o)&&(o.infoIndex=i.nodeInfoList.push(o)-1),n.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,n){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=t,!0}static _parseTemplateNodeAttributes(n,r,i){let s=!1,o=Array.from(n.attributes);for(let e,t=o.length-1;e=o[t];t--)s=this._parseTemplateNodeAttribute(n,r,i,e.name,e.value)||s;return s}static _parseTemplateNodeAttribute(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var i,s,o=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!r.hasInsertionPoint,a.nodeList=new Array(o.length));a.$={};for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++){var h=l[t]=function e(t,n){var r=n.parentInfo&&e(t,n.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(a,e),u=(i=a.$,s=h,(c=e).id&&(i[c.id]=s),i=h,c=e,s=r,c.templateInfo&&(i._templateInfo=c.templateInfo,i._parentTemplateInfo=s),c=d=u=void 0,this),d=h,c=e;if(c.events&&c.events.length)for(let e,t=0,n=c.events;t<n.length&&(e=n[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,n,r){function i(e){s[o]?s[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}var s,o;s=r=r||e,o=n,s=s._methodHost||s;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let As=0;const Ps=[],x={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ds="__computeInfo",ks=/[A-Z]/;function Os(e,t,n){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(var i in r){var s=r[i],o=r[i]=Array(s.length);for(let e=0;e<s.length;e++)o[e]=s[e]}}else r=e[t]={};return r}function Ms(i,e,s,o,a,l){if(e){let r=!1;var h,u=As++;for(h in s){var d=e[a?Gi(h):h];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===u||a&&!Is(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,s,o,e.info,a,l),r=!0)}return r}}function Is(e,t){var n;return!t||(n=t.name)==e||t.structured&&qi(n,e)||t.wildcard&&Xi(n,e)}function Ns(e,t,n,r,i){var s="string"==typeof i.method?e[i.method]:i.method,o=i.property;s?s.call(e,e.__data[o],r[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Bs(e,t,n,r){n={value:n,queueProperty:!0};r&&(n.path=r),b(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function Rs(e,t,n,r,i,s){let o=(s?Gi(t):t)!=t?t:null,a=o?w(e,o):e.__data[t];o&&void 0===a&&(a=n[t]),Bs(e,i.eventName,a,o)}function Ls(e,t,n,r,i){let s=e.__data[t];di&&(s=di(s,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,s)}const Hs=(e,t,n)=>{let r=0,i=t.length-1,s=-1;for(;r<=i;){var o=r+i>>1,a=n.get(t[o].methodInfo)-n.get(e.methodInfo);if(a<0)r=1+o;else{if(!(0<a)){s=o;break}i=o-1}}s<0&&(s=i+1),t.splice(s,0,e)},Fs=(t,e,n,r,i)=>{var s=e[i?Gi(t):t];if(s)for(let e=0;e<s.length;e++){var o=s[e];o.info.lastRun===As||i&&!Is(t,o.trigger)||(o.info.lastRun=As,Hs(o.info,n,r))}};function zs(e,t,n,r,i){t=Vs(e,t,n,0,i);return t!==Ps&&(n=i.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1))}function Ys(t,n,e,r,i,s,o){e.bindings=e.bindings||[];var a={kind:r,target:i,parts:s,literal:o,isCompound:1!==s.length},l=(e.bindings.push(a),r=a,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:o,negate:s}=a.parts[0],a.listenerEvent=o||is(i)+"-changed",a.listenerNegate=s),n.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=c=d=u=void 0,t),d=n,c=a,p=h,m=l;if(!p.literal)if("attribute"===c.kind&&"-"===c.target[0])console.warn("Cannot set attribute "+c.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:c,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Ks(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Us,info:_,trigger:e})}}}}function Us(e,t,n,r,i,s,o){var a,o=o[i.index],l=i.binding,h=i.part;s&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[l.target]?(a=n[t],t=Zi(h.source,l.target,t),o._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(o)):(a=i.evaluator._evaluateBinding(e,h,t,n,r,s))!==Ps&&(i=e,t=h,r=n=o,e=s=a,(o=h=l).isCompound&&((l=r.__dataCompoundStorage[o.target])[t.compoundIndex]=e,e=l.join("")),s=e="attribute"!==o.kind&&("textContent"===o.target||"value"===o.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,di&&(s=di(s,h.target,h.kind,n)),"attribute"==h.kind?i._valueToNodeAttribute(n,s,h.target):(t=h.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[t]?n[x.READ_ONLY]&&n[x.READ_ONLY][t]||n._setPendingProperty(t,s)&&i._enqueueClient(n):i._setUnmanagedPropertyToNode(n,t,s)))}function $s(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var i=h,s=u.target,o=l.source,a=l.negate;let e,t=r.detail,n=t&&t.path;e=n?(o=Zi(s,o,n),t&&t.value):r.currentTarget[s],e=a?!e:e,i[x.READ_ONLY]&&i[x.READ_ONLY][o]||!i._setPendingPropertyOrPath(o,e,!0,Boolean(n))||t&&t.queueProperty||i._invalidateProperties()}})}}function Ws(n,r,i,s,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var o={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,i,{fn:s,info:o,trigger:e});return t&&n._addPropertyEffect(r.methodName,i,{fn:s,info:o}),o}function Vs(e,t,n,r,i){var s=e._methodHost||e,o=s[i.methodName];if(o)return(e=e._marshalArgs(i.args,t,n))===Ps?Ps:o.apply(s,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const js=[],Gs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",qs="(?:("+Gs+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Xs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Gs+"\\s*(?:\\(\\s*(?:(?:"+qs+"(?:,\\s*"+qs+")*)?)\\)\\s*)?)(?:]]|}})","g");function Zs(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Js(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:js},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ks(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function Ks(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Gi(t),n.structured=ji(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard)&&(n.name=t.slice(0,-2))),n}function Qs(e,t,n){let r=w(e,n);return r=void 0===r?t[n]:r}function eo(e,t,n,r){r={indexSplices:r};gi&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(n+".splices",r),e.notifyPath(n+".length",t.length),gi&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function to(e,t,n,r,i,s){eo(e,t,n,[{index:r,addedCount:i,removed:s,object:t,type:"splice"}])}const no=m(e=>{const h=Ts(ws(e));return class extends h{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 x}_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(){var e;ro.length&&((e=ro[ro.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,n=this[x.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==x.READ_ONLY);let r=Os(this,t,!0)[e];(r=r||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){t=Os(this,t,!0)[e],e=t.indexOf(n);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,x.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,x.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,x.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,x.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||Gi(Array.isArray(e)?e[0]:e)!==e){if(!r){r=w(this,e);if(!(e=Qi(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{var i=this;var s=e;var o=t;var a=i.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];Xi(l,s)?(e=Zi(l,h,s),i._setPendingPropertyOrPath(e,o,!0,!0)):Xi(h,s)&&(e=Zi(h,l,s),i._setPendingPropertyOrPath(e,o,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?b(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&ji(e),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[x.NOTIFY]&&this[x.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var n=t[e];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[x.READ_ONLY]&&this[x.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,s){var o,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),n=i,r=s,d=u,c=t[x.COMPUTE];if(c)if(vi){As++;var p,m,f=function(i){let s=i.constructor.__orderedComputedDeps;if(!s){s=new Map;var o=i[x.COMPUTE];let e,{counts:t,ready:n,total:r}=function(e){const t=e[Ds],n={},r=e[x.COMPUTE],i=[];let s=0;for(var o in t){const r=t[o];s+=n[o]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var a in r)t[a]||i.push(a);return{counts:n,ready:i,total:s}}(i);for(;e=n.shift();){s.set(e,s.size);const i=o[e];i&&i.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const s=i;console.warn(`Computed graph for ${s.localName} incomplete; circular?`)}i.constructor.__orderedComputedDeps=s}return s}(t),_=[];for(p in n)Fs(p,c,_,f,d);for(;m=_.shift();)zs(t,"",n,0,m)&&Fs(m.methodInfo,c,_,f,d);Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;Ms(t,c,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,s,u),this._flushClients(),Ms(this,this[x.REFLECT],i,s,u),Ms(this,this[x.OBSERVE],i,s,u),o){var y=this,g=o,v=i,b=s,w=u,S;let e,t,n=y[x.NOTIFY],r=As++;for(S in g)g[S]&&(n&&function(r,e,i,s,o,a,l,h){let u=!1,d=e[l?Gi(s):s];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===i||l&&!Is(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,s,o,a,e.info,l,h),u=!0);return u}(y,n,r,S,v,b,w)||w&&(a=y,S=S,l=v,h=void 0,h=Gi(S),h!==S)&&(Bs(a,is(h)+"-changed",l[S],S),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[x.PROPAGATE]&&Ms(this,this[x.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{Ms(this,r.propertyEffects,t,i,n,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,n)};r.runEffects?r.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=Ji(e),t=Ji(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Ji(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};eo(this,w(this,e,n),n.path,t)}get(e,t){return w(t||this,e)}set(e,t,n){n?Qi(n,e,t):this[x.READ_ONLY]&&this[x.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var n={path:""},e=w(this,e,n),r=e.length,i=e.push(...t);return t.length&&to(this,e,n.path,r,t.length,[]),i}pop(e){var t={path:""},e=w(this,e,t),n=Boolean(e.length),r=e.pop();return n&&to(this,e,t.path,e.length,0,[r]),r}splice(e,t,n,...r){var i={path:""},e=w(this,e,i);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),n=2===arguments.length?e.splice(t):e.splice(t,n,...r),(r.length||n.length)&&to(this,e,i.path,t,r.length,n),n}shift(e){var t={path:""},e=w(this,e,t),n=Boolean(e.length),r=e.shift();return n&&to(this,e,t.path,0,0,[r]),r}unshift(e,...t){var n={path:""},e=w(this,e,n),r=e.unshift(...t);return t.length&&to(this,e,n.path,0,t.length,[]),r}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=w(this,e,r={path:""}),r.path):Array.isArray(e)?Ji(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,x.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,x.OBSERVE,{fn:Ns,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,x.OBSERVE,{fn:Ns,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=Js(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Ws(this,n,x.OBSERVE,Vs,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,x.NOTIFY,{fn:Rs,info:{eventName:is(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,x.REFLECT,{fn:Ls,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=Js(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Ws(this,r,x.COMPUTE,zs,e,n);Os(this,Ds)[e]=t}_marshalArgs(o,a,l){const h=this.__data,u=[];for(let s=0,e=o.length;s<e;s++){let{name:e,structured:t,wildcard:n,value:r,literal:i}=o[s];if(!i)if(n){const o=Xi(e,a),u=Qs(h,l,o?a:e);r={path:o?a:e,value:u,base:o?w(h,e):u}}else r=t?Qs(h,l,e):h[e];if(gi&&!this._overrideLegacyUndefined&&void 0===r&&1<o.length)return Ps;u[s]=r}return u}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t)if((n=Object.create(n)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=r)?r.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(n)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),ro.push(this);t=super._stampTemplate(t,e);if(ro.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var n=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)n.push(e)}t.templateInfo=e;var r=this,{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){var o=s[e],a=i[e],l=o.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=c=d=u=void 0,a),d=h;if(d.isCompound){var c=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=d.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=d.target;c[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?b(u):u)[f]=d.literal)}$s(a,r,h)}a.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:n,parent:r}=e,i=(t?t.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<i.length;e++){var s=i[e];b(b(s).parentNode).removeChild(s)}}static _parseTemplateNode(e,t,n){let r=h._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Zs(i)||" ",Ys(this,t,n,"text","textContent",i),r=!0),r}static _parseTemplateNodeAttribute(r,i,s,o,e){var a=this._parseBindings(e,i);if(a){let e=o,t="property",n=(ks.test(o)?t="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),t="attribute"),Zs(a));return n&&"attribute"==t&&("class"==o&&r.hasAttribute("class")&&(n+=" "+r.getAttribute(o)),r.setAttribute(o,n)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(o,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(o=rs(o)),Ys(this,i,s,t,o,a,n),!0}return h._parseTemplateNodeAttribute.call(this,r,i,s,o,e)}static _parseTemplateNestedTemplate(e,t,n){let r=h._parseTemplateNestedTemplate.call(this,e,t,n);var i=e.parentNode,s=n.templateInfo,o="dom-if"===i.localName,a="dom-repeat"===i.localName,a=(bi&&(o||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=s,n.noted=!0,r=!1),s.hostProps);if(wi&&o)a&&(t.hostProps=Object.assign(t.hostProps||{},a),bi||(n.parentInfo.noted=!0));else for(var l in a)Ys(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(o,a){let l,h=[],u=0;for(;null!==(l=Xs.exec(o));){l.index>u&&h.push({literal:o.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),n=l[3].trim(),r=!1,i="",s=-1;"{"==e&&0<(s=n.indexOf("::"))&&(i=n.substring(s+2),n=n.substring(0,s),r=!0);var d=Js(n),c=[];if(d){var{args:p,methodName:m}=d;for(let e=0;e<p.length;e++){var f=p[e];f.literal||c.push(f)}var _=a.dynamicFns;(_&&_[m]||d.static)&&(c.push(m),d.dynamicFn=!0)}else c.push(n);h.push({source:n,mode:e,negate:t,customEvent:r,signature:d,dependencies:c,event:i}),u=Xs.lastIndex}var e;return u&&u<o.length&&(e=o.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,n,r,i,s){let o;return o=t.signature?Vs(e,n,r,0,t.signature):n!=t.source?w(e,t.source):s&&ji(n)?w(e,n):e.__data[n],o=t.negate?!o:o}}}),ro=[],io=m(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(n=t.properties)&&(e=function(e){var t,n={};for(t in e){var r=e[t];n[t]="function"==typeof r?{type:r}:r}return n}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends _s(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=n(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,n(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),so=window.ShadyCSS&&window.ShadyCSS.cssBuild,oo=m(e=>{const r=io(no(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):fi||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,t.computed,i)),t.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===t.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===t.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&n._createPropertyObserver(r,t.observer,i[t.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||pi&&!mi||(t=Di.import(e,"template"),!pi)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=ai(e.url):(e=Di.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=ui,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var r=n[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var n=e[t];this._canApplyPropertyDefault(t)&&(n="function"==typeof n.value?n.value.call(this):n.value,this._hasAccessor(t)?this._setPendingProperty(t,n,!0):this[t]=n)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return oi(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,i=this,s=t,o=e,a=n?si(n):"";if(!so){var l=s.content.querySelectorAll("style"),h=Ri(s),u=(e=Ii(o))?Li(e):[],d=s.content.firstElementChild;for(let e=0;e<u.length;e++){var c=u[e];c.textContent=i._processStyleText(c.textContent,a),s.content.insertBefore(c,d)}let r=0;for(let n=0;n<h.length;n++){let e=h[n],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(s,o),Ci&&so&&hi){const o=s.content.querySelectorAll("style");if(o){let t="";Array.from(o).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=b(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yi&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=si(this.importPath)),si(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!_i||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,n)}}}),ao=oo(HTMLElement);class S{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,lo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),lo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,n){return e instanceof S?e._cancelAsync():e=new S,e.setConfig(t,n),e}}let lo=new Set;function ho(e){lo.add(e)}let uo="string"==typeof document.head.style.touchAction,co="__polymerGestures",po="__polymerGesturesHandled",mo="__polymerGesturesTouchAction",fo=["mousedown","mousemove","mouseup","click"],_o=[0,1,4,2],yo=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function go(e){return-1<fo.indexOf(e)}let vo=!1;function bo(e){return!go(e)&&"touchend"!==e&&uo&&vo&&ci?{passive:!0}:void 0}try{var wo=Object.defineProperty({},"passive",{get(){vo=!0}});window.addEventListener("test",null,wo),window.removeEventListener("test",null,wo)}catch(e){}let So=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const xo=[],Co={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Eo={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function To(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[po]={skip:!0},"click"===e.type)){let t=!1,n=Oo(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)xo.push(n[e]);else if(r=n[e],Co[r.localName]){var i=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var n=e.getRootNode();if(e.id){var r=n.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<r.length;e++)t.push(r[e])}}catch(e){}}return t}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<xo.indexOf(i[e])}if(n[e]===C.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function Ao(n){var r=So?["click"]:fo;for(let e,t=0;t<r.length;t++)e=r[t],n?(xo.length=0,document.addEventListener(e,To,!0)):document.removeEventListener(e,To,!0)}function Po(t){var e=t.type;if(go(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!yo&&(e=_o[t.which]||0),Boolean(1&e)}}}let C={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Do(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function ko(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){C.mouse.mouseIgnoreJob||Ao(!0),C.mouse.target=Oo(e)[0],C.mouse.mouseIgnoreJob=S.debounce(C.mouse.mouseIgnoreJob,ds.after(2500),function(){Ao(),C.mouse.target=null,C.mouse.mouseIgnoreJob=null})},!!vo&&{passive:!0});const Oo=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Mo={},Io=[];function No(e){var t=Oo(e);return 0<t.length?t[0]:e.target}function Bo(n){var r,i=n.type,s=n.currentTarget[co];if(s){var o=s[i];if(o){if(!n[po]&&(n[po]={},"touch"===i.slice(0,5))){s=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(C.touch.id=s.identifier),C.touch.id!==s.identifier)return;if(!(uo||"touchstart"!==i&&"touchmove"!==i)){s=n;var a=s.changedTouches[0],e=s.type;if("touchstart"===e)C.touch.x=a.clientX,C.touch.y=a.clientY,C.touch.scrollDecided=!1;else if("touchmove"===e&&!C.touch.scrollDecided){C.touch.scrollDecided=!0;let e=function(e){let n="auto",r=Oo(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[mo]){n=e[mo];break}return n}(s),t=!1,n=Math.abs(C.touch.x-a.clientX),r=Math.abs(C.touch.y-a.clientY);s.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?s.preventDefault():zo("track")}}}if(!(r=n[po]).skip){for(let e,t=0;t<Io.length;t++)o[(e=Io[t]).name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<Io.length;t++)o[(e=Io[t]).name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function Ro(e,t,n){return Mo[t]&&(function(r,e,t){let n=Mo[e],i=n.deps,s=n.name,o=r[co];o||(r[co]=o={});for(let e,t,n=0;n<i.length;n++)e=i[n],So&&go(e)&&"click"!==e||((t=o[e])||(o[e]=t={_count:0}),0===t._count&&r.addEventListener(e,Bo,bo(e)),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&Ho(r,n.touchAction)}(e,t,n),1)}function Lo(t){Io.push(t);for(let e=0;e<t.emits.length;e++)Mo[t.emits[e]]=t}function Ho(e,t){uo&&e instanceof HTMLElement&&ms.run(()=>{e.style.touchAction=t}),e[mo]=t}function Fo(e,t,n){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=n,b(e).dispatchEvent(t),t.defaultPrevented&&(e=n.preventer||n.sourceEvent)&&e.preventDefault&&e.preventDefault()}function zo(e){e=function(n){for(let t,e=0;e<Io.length;e++){t=Io[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Yo(e,t,n,r){t&&Fo(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:zo})}function Uo(e,t,n){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-n),5<=t)||5<=e)}function $o(o,a,l){if(a){let e,t=o.moves[o.moves.length-2],n=o.moves[o.moves.length-1],r=n.x-o.x,i=n.y-o.y,s=0;t&&(e=n.x-t.x,s=n.y-t.y),Fo(a,"track",{state:o.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:s,sourceEvent:l,hover:function(){{var n=l.clientX,r=l.clientY;let e=document.elementFromPoint(n,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,r)))break;t&&(e=t)}return e}}})}}function Wo(e,t,n){var r,i=Math.abs(t.clientX-e.x),s=Math.abs(t.clientY-e.y),o=No(n||t);!o||Eo[o.localName]&&o.hasAttribute("disabled")||!(isNaN(i)||isNaN(s)||i<=25&&s<=25)&&("click"!==(i=t).type||0!==i.detail&&(s=No(i)).nodeType&&s.nodeType===Node.ELEMENT_NODE&&(s=s.getBoundingClientRect(),r=i.pageX,i=i.pageY,r>=s.left)&&r<=s.right&&i>=s.top&&i<=s.bottom)||e.prevent||Fo(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Lo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ko(this.info)},mousedown:function(e){if(Po(e)){let t=No(e),n=this;Do(this.info,function(e){Po(e)||(Yo("up",t,e),ko(n.info))},function(e){Po(e)&&Yo("up",t,e),ko(n.info)}),Yo("down",t,e)}},touchstart:function(e){Yo("down",No(e),e.changedTouches[0],e)},touchend:function(e){Yo("up",No(e),e.changedTouches[0],e)}}),Lo({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ko(this.info)},mousedown:function(e){if(Po(e)){let r=No(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;Uo(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&zo("tap"),i.info.addMove({x:t,y:n}),Po(e)||(i.info.state="end",ko(i.info)),r&&$o(i.info,r,e),i.info.started=!0)};Do(this.info,t,function(e){i.info.started&&t(e),ko(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=No(e),e=e.changedTouches[0],n=e.clientX,r=e.clientY;Uo(this.info,n,r)&&("start"===this.info.state&&zo("tap"),this.info.addMove({x:n,y:r}),$o(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=No(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),$o(this.info,t,e))}}),Lo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Po(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Po(e)&&Wo(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Wo(this.info,e.changedTouches[0],e)}});const Vo=m(e=>class extends e{_addEventListenerToNode(e,t,n){Ro(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,h=t,i=n,Mo[h]){var r=l;l=h,h=i;var i,s=(i=Mo[l]).deps,o=i.name,a=r[co];if(a)for(let e,t,n=0;n<s.length;n++)e=s[n],(t=a[e])&&t[o]&&(t[o]=(t[o]||1)-1,t._count=(t._count||1)-1,0===t._count)&&r.removeEventListener(e,Bo,bo(e));r.removeEventListener(l,h)}else super._removeEventListenerFromNode(e,t,n);var l,h,i}}),jo=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Go=e=>class extends jo(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=Di.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{var e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],s=0<i.filter(e=>0===t.indexOf(e)).length,i=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:s!=i?s?-1:1:0}).forEach(t=>{if(t!==i){const i=e[t].getAttribute("theme-for");i&&i.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(r=!0,this._includeStyle(t,n))})}}),!r&&e[i]&&this._includeStyle(i,n)}static _includeStyle(e,t){var n;t&&!t.content.querySelector(`style[include="${e}"]`)&&((n=document.createElement("style")).setAttribute("include",e),t.content.appendChild(n))}};let qo=!1;window.addEventListener("keydown",()=>{qo=!0},{capture:!0}),window.addEventListener("mousedown",()=>{qo=!1},{capture:!0});function Xo(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(lo.size),lo.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Zo=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return qo}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&qo?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Jo{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var r=n["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return n.scrollWidth-n.clientWidth+r;case"reverse":return n.scrollWidth-n.clientWidth-r}return r}static setNormalizedScrollLeft(e,t,n,r){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+r;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-r;break;default:n.scrollLeft=r}else n.scrollLeft=r}}const Ko=[];let Qo;new MutationObserver(function(){const t=ta();Ko.forEach(e=>{ea(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ea=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},ta=function(){return document.documentElement.getAttribute("dir")},na=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Qo=Qo||Jo.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),ea(this,ta()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===ta()&&-1===Ko.indexOf(this),r=!n&&t&&-1===Ko.indexOf(this),n=n!==ta()&&t===ta(),e||r?(this.__subscribe(),ea(this,ta())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Ko.indexOf(this)&&Ko.push(this):-1<Ko.indexOf(this)&&Ko.splice(Ko.indexOf(this),1)}__getNormalizedScrollLeft(e){return Jo.getNormalizedScrollLeft(Qo,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Jo.setNormalizedScrollLeft(Qo,this.getAttribute("dir")||"ltr",e,t)}},ra=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ia=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function sa(e,t){if("function"==typeof e){var n=ra.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function oa(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(ia?!(ia&&0<Object.keys(ia).map(e=>ia[e]).filter(e=>e.productionMode).length):!sa(function(){return!0}))}catch(e){return!1}}());function aa(){var e=oa,t=void 0;if(window.Vaadin.developmentMode)return sa(e,t)}let la;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){aa,aa()};const ha=new Set,ua=e=>class extends na(e){static finalize(){super.finalize();var e=this["is"];e&&!ha.has(e)&&(window.Vaadin.registrations.push(this),ha.add(e),window.Vaadin.developmentModeCallback)&&(la=S.debounce(la,ps,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ho(la))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class da extends ua(Zo(Go(Vo(ao)))){static get template(){return p`
|
323
|
+
</dom-module>`;document.head.appendChild(ln.content);let ji=0;function m(i){let s=i.__mixinApplications,o=(s||(s=new WeakMap,i.__mixinApplications=s),ji++);return function(e){var t=e.__mixinSet;if(t&&t[o])return e;let n=s,r=n.get(e);return r||(r=i(e),n.set(e,r),(e=Object.create(r.__mixinSet||t||null))[o]=!0,r.__mixinSet=e),r}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Vi(e){return 0<=e.indexOf(".")}function Gi(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function qi(e,t){return 0===e.indexOf(t+".")}function Xi(e,t){return 0===t.indexOf(e+".")}function Zi(e,t,n){return t+n.slice(e.length)}function Ji(t){if(Array.isArray(t)){var n=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)n.push(r[e])}return n.join(".")}return t}function Ki(e){return(Array.isArray(e)?Ji(e):e.toString()).split(".")}function w(e,t,n){let r=e,i=Ki(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function Qi(e,t,n){let r=e,i=Ki(t),s=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(r=r[i[e]]))return;r[s]=n}else r[t]=n;return i.join(".")}const es={},ts=/-[a-z]/g,ns=/([A-Z])/g;function rs(e){return es[e]||(es[e]=e.indexOf("-")<0?e:e.replace(ts,e=>e[1].toUpperCase()))}function is(e){return es[e]||(es[e]=e.replace(ns,"-$1").toLowerCase())}let ss=0,os=0,as=[],ls=0,hs=!1,us=document.createTextNode("");new window.MutationObserver(function(){hs=!1;var t=as.length;for(let e=0;e<t;e++){var n=as[e];if(n)try{n()}catch(t){setTimeout(()=>{throw t})}}as.splice(0,t),os+=t}).observe(us,{characterData:!0});const ds={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},cs={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},ps={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ms={run:e=>(hs||(hs=!0,us.textContent=ls++),as.push(e),ss++),cancel(e){var t=e-os;if(0<=t){if(!as[t])throw new Error("invalid async handle: "+e);as[t]=null}}},fs=ms,_s=m(e=>class extends e{static createProperties(e){var t,n=this.prototype;for(t in e)t in n||n._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,n){var r=this.__data[e],i=this._shouldPropertyChange(e,t,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),i}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,fs.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++;var e=this.__data,t=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,r){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,r)}_attributeToProperty(e,t,n){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=b(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),ys={};let gs=HTMLElement.prototype;for(;gs;){var vs=Object.getOwnPropertyNames(gs);for(let e=0;e<vs.length;e++)ys[vs[e]]=!0;gs=Object.getPrototypeOf(gs)}const bs=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ws=m(e=>{return class extends _s(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(rs(t[e]))}static attributeNameForProperty(e){return is(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(bs(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,r,i;n=this,r=e,ys[r]||void 0!==(i=n[r])&&(n.__data?n._setPendingProperty(r,i):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[r]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),Ss={"dom-if":!0,"dom-repeat":!0};let xs=!1,Cs=!1;const Es=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);r&&n.startsWith("on-")?e.setAttribute(n,r.createScript(t,n)):e.setAttribute(n,t)}})();const As=m(e=>class extends e{static _parseTemplate(e,t){var n;return e._templateInfo||((n=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let r=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,e=i,xs||(xs=!0,(s=document.createElement("textarea")).placeholder="a",Cs=s.placeholder===s.textContent),Cs&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),(r=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,n)||r:r)||n.noted;var s}static _parseTemplateChildNodes(r,i,s){if("script"!==r.localName&&"style"!==r.localName)for(let t,n=r.firstChild,e=0;n;n=t){if("template"==n.localName&&(n=function(e){let t=e.getAttribute("is");if(t&&Ss[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const t=n.attributes[0]["name"];Es(e,n,t),n.removeAttribute(t)}}return e}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(i.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}var o={parentIndex:e,parentInfo:s};this._parseTemplateNode(n,i,o)&&(o.infoIndex=i.nodeInfoList.push(o)-1),n.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,n){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=t,!0}static _parseTemplateNodeAttributes(n,r,i){let s=!1,o=Array.from(n.attributes);for(let e,t=o.length-1;e=o[t];t--)s=this._parseTemplateNodeAttribute(n,r,i,e.name,e.value)||s;return s}static _parseTemplateNodeAttribute(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var i,s,o=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!r.hasInsertionPoint,a.nodeList=new Array(o.length));a.$={};for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++){var h=l[t]=function e(t,n){var r=n.parentInfo&&e(t,n.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(a,e),u=(i=a.$,s=h,(c=e).id&&(i[c.id]=s),i=h,c=e,s=r,c.templateInfo&&(i._templateInfo=c.templateInfo,i._parentTemplateInfo=s),c=d=u=void 0,this),d=h,c=e;if(c.events&&c.events.length)for(let e,t=0,n=c.events;t<n.length&&(e=n[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,n,r){function i(e){s[o]?s[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}var s,o;s=r=r||e,o=n,s=s._methodHost||s;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let Ts=0;const Ps=[],x={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ds="__computeInfo",ks=/[A-Z]/;function Os(e,t,n){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(var i in r){var s=r[i],o=r[i]=Array(s.length);for(let e=0;e<s.length;e++)o[e]=s[e]}}else r=e[t]={};return r}function Ms(i,e,s,o,a,l){if(e){let r=!1;var h,u=Ts++;for(h in s){var d=e[a?Gi(h):h];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===u||a&&!Is(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,s,o,e.info,a,l),r=!0)}return r}}function Is(e,t){var n;return!t||(n=t.name)==e||t.structured&&qi(n,e)||t.wildcard&&Xi(n,e)}function Ns(e,t,n,r,i){var s="string"==typeof i.method?e[i.method]:i.method,o=i.property;s?s.call(e,e.__data[o],r[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Bs(e,t,n,r){n={value:n,queueProperty:!0};r&&(n.path=r),b(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function Ls(e,t,n,r,i,s){let o=(s?Gi(t):t)!=t?t:null,a=o?w(e,o):e.__data[t];o&&void 0===a&&(a=n[t]),Bs(e,i.eventName,a,o)}function Rs(e,t,n,r,i){let s=e.__data[t];di&&(s=di(s,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,s)}const Hs=(e,t,n)=>{let r=0,i=t.length-1,s=-1;for(;r<=i;){var o=r+i>>1,a=n.get(t[o].methodInfo)-n.get(e.methodInfo);if(a<0)r=1+o;else{if(!(0<a)){s=o;break}i=o-1}}s<0&&(s=i+1),t.splice(s,0,e)},Fs=(t,e,n,r,i)=>{var s=e[i?Gi(t):t];if(s)for(let e=0;e<s.length;e++){var o=s[e];o.info.lastRun===Ts||i&&!Is(t,o.trigger)||(o.info.lastRun=Ts,Hs(o.info,n,r))}};function zs(e,t,n,r,i){t=js(e,t,n,0,i);return t!==Ps&&(n=i.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1))}function Ys(t,n,e,r,i,s,o){e.bindings=e.bindings||[];var a={kind:r,target:i,parts:s,literal:o,isCompound:1!==s.length},l=(e.bindings.push(a),r=a,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:o,negate:s}=a.parts[0],a.listenerEvent=o||is(i)+"-changed",a.listenerNegate=s),n.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=c=d=u=void 0,t),d=n,c=a,p=h,m=l;if(!p.literal)if("attribute"===c.kind&&"-"===c.target[0])console.warn("Cannot set attribute "+c.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:c,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Ks(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Us,info:_,trigger:e})}}}}function Us(e,t,n,r,i,s,o){var a,o=o[i.index],l=i.binding,h=i.part;s&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[l.target]?(a=n[t],t=Zi(h.source,l.target,t),o._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(o)):(a=i.evaluator._evaluateBinding(e,h,t,n,r,s))!==Ps&&(i=e,t=h,r=n=o,e=s=a,(o=h=l).isCompound&&((l=r.__dataCompoundStorage[o.target])[t.compoundIndex]=e,e=l.join("")),s=e="attribute"!==o.kind&&("textContent"===o.target||"value"===o.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,di&&(s=di(s,h.target,h.kind,n)),"attribute"==h.kind?i._valueToNodeAttribute(n,s,h.target):(t=h.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[t]?n[x.READ_ONLY]&&n[x.READ_ONLY][t]||n._setPendingProperty(t,s)&&i._enqueueClient(n):i._setUnmanagedPropertyToNode(n,t,s)))}function $s(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var i=h,s=u.target,o=l.source,a=l.negate;let e,t=r.detail,n=t&&t.path;e=n?(o=Zi(s,o,n),t&&t.value):r.currentTarget[s],e=a?!e:e,i[x.READ_ONLY]&&i[x.READ_ONLY][o]||!i._setPendingPropertyOrPath(o,e,!0,Boolean(n))||t&&t.queueProperty||i._invalidateProperties()}})}}function Ws(n,r,i,s,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var o={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,i,{fn:s,info:o,trigger:e});return t&&n._addPropertyEffect(r.methodName,i,{fn:s,info:o}),o}function js(e,t,n,r,i){var s=e._methodHost||e,o=s[i.methodName];if(o)return(e=e._marshalArgs(i.args,t,n))===Ps?Ps:o.apply(s,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Vs=[],Gs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",qs="(?:("+Gs+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Xs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Gs+"\\s*(?:\\(\\s*(?:(?:"+qs+"(?:,\\s*"+qs+")*)?)\\)\\s*)?)(?:]]|}})","g");function Zs(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Js(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Vs},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ks(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function Ks(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Gi(t),n.structured=Vi(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard)&&(n.name=t.slice(0,-2))),n}function Qs(e,t,n){let r=w(e,n);return r=void 0===r?t[n]:r}function eo(e,t,n,r){r={indexSplices:r};gi&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(n+".splices",r),e.notifyPath(n+".length",t.length),gi&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function to(e,t,n,r,i,s){eo(e,t,n,[{index:r,addedCount:i,removed:s,object:t,type:"splice"}])}const no=m(e=>{const h=As(ws(e));return class extends h{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 x}_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(){var e;ro.length&&((e=ro[ro.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,n=this[x.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==x.READ_ONLY);let r=Os(this,t,!0)[e];(r=r||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){t=Os(this,t,!0)[e],e=t.indexOf(n);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,x.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,x.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,x.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,x.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||Gi(Array.isArray(e)?e[0]:e)!==e){if(!r){r=w(this,e);if(!(e=Qi(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{var i=this;var s=e;var o=t;var a=i.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];Xi(l,s)?(e=Zi(l,h,s),i._setPendingPropertyOrPath(e,o,!0,!0)):Xi(h,s)&&(e=Zi(h,l,s),i._setPendingPropertyOrPath(e,o,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?b(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&Vi(e),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[x.NOTIFY]&&this[x.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var n=t[e];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[x.READ_ONLY]&&this[x.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,s){var o,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),n=i,r=s,d=u,c=t[x.COMPUTE];if(c)if(vi){Ts++;var p,m,f=function(i){let s=i.constructor.__orderedComputedDeps;if(!s){s=new Map;var o=i[x.COMPUTE];let e,{counts:t,ready:n,total:r}=function(e){const t=e[Ds],n={},r=e[x.COMPUTE],i=[];let s=0;for(var o in t){const r=t[o];s+=n[o]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var a in r)t[a]||i.push(a);return{counts:n,ready:i,total:s}}(i);for(;e=n.shift();){s.set(e,s.size);const i=o[e];i&&i.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const s=i;console.warn(`Computed graph for ${s.localName} incomplete; circular?`)}i.constructor.__orderedComputedDeps=s}return s}(t),_=[];for(p in n)Fs(p,c,_,f,d);for(;m=_.shift();)zs(t,"",n,0,m)&&Fs(m.methodInfo,c,_,f,d);Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;Ms(t,c,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,s,u),this._flushClients(),Ms(this,this[x.REFLECT],i,s,u),Ms(this,this[x.OBSERVE],i,s,u),o){var y=this,g=o,v=i,b=s,w=u,S;let e,t,n=y[x.NOTIFY],r=Ts++;for(S in g)g[S]&&(n&&function(r,e,i,s,o,a,l,h){let u=!1,d=e[l?Gi(s):s];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===i||l&&!Is(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,s,o,a,e.info,l,h),u=!0);return u}(y,n,r,S,v,b,w)||w&&(a=y,S=S,l=v,h=void 0,h=Gi(S),h!==S)&&(Bs(a,is(h)+"-changed",l[S],S),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[x.PROPAGATE]&&Ms(this,this[x.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{Ms(this,r.propertyEffects,t,i,n,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,n)};r.runEffects?r.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=Ji(e),t=Ji(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Ji(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};eo(this,w(this,e,n),n.path,t)}get(e,t){return w(t||this,e)}set(e,t,n){n?Qi(n,e,t):this[x.READ_ONLY]&&this[x.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var n={path:""},e=w(this,e,n),r=e.length,i=e.push(...t);return t.length&&to(this,e,n.path,r,t.length,[]),i}pop(e){var t={path:""},e=w(this,e,t),n=Boolean(e.length),r=e.pop();return n&&to(this,e,t.path,e.length,0,[r]),r}splice(e,t,n,...r){var i={path:""},e=w(this,e,i);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),n=2===arguments.length?e.splice(t):e.splice(t,n,...r),(r.length||n.length)&&to(this,e,i.path,t,r.length,n),n}shift(e){var t={path:""},e=w(this,e,t),n=Boolean(e.length),r=e.shift();return n&&to(this,e,t.path,0,0,[r]),r}unshift(e,...t){var n={path:""},e=w(this,e,n),r=e.unshift(...t);return t.length&&to(this,e,n.path,0,t.length,[]),r}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=w(this,e,r={path:""}),r.path):Array.isArray(e)?Ji(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,x.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,x.OBSERVE,{fn:Ns,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,x.OBSERVE,{fn:Ns,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=Js(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Ws(this,n,x.OBSERVE,js,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,x.NOTIFY,{fn:Ls,info:{eventName:is(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,x.REFLECT,{fn:Rs,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=Js(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Ws(this,r,x.COMPUTE,zs,e,n);Os(this,Ds)[e]=t}_marshalArgs(o,a,l){const h=this.__data,u=[];for(let s=0,e=o.length;s<e;s++){let{name:e,structured:t,wildcard:n,value:r,literal:i}=o[s];if(!i)if(n){const o=Xi(e,a),u=Qs(h,l,o?a:e);r={path:o?a:e,value:u,base:o?w(h,e):u}}else r=t?Qs(h,l,e):h[e];if(gi&&!this._overrideLegacyUndefined&&void 0===r&&1<o.length)return Ps;u[s]=r}return u}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t)if((n=Object.create(n)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=r)?r.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(n)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),ro.push(this);t=super._stampTemplate(t,e);if(ro.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var n=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)n.push(e)}t.templateInfo=e;var r=this,{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){var o=s[e],a=i[e],l=o.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=c=d=u=void 0,a),d=h;if(d.isCompound){var c=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=d.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=d.target;c[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?b(u):u)[f]=d.literal)}$s(a,r,h)}a.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:n,parent:r}=e,i=(t?t.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<i.length;e++){var s=i[e];b(b(s).parentNode).removeChild(s)}}static _parseTemplateNode(e,t,n){let r=h._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Zs(i)||" ",Ys(this,t,n,"text","textContent",i),r=!0),r}static _parseTemplateNodeAttribute(r,i,s,o,e){var a=this._parseBindings(e,i);if(a){let e=o,t="property",n=(ks.test(o)?t="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),t="attribute"),Zs(a));return n&&"attribute"==t&&("class"==o&&r.hasAttribute("class")&&(n+=" "+r.getAttribute(o)),r.setAttribute(o,n)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(o,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(o=rs(o)),Ys(this,i,s,t,o,a,n),!0}return h._parseTemplateNodeAttribute.call(this,r,i,s,o,e)}static _parseTemplateNestedTemplate(e,t,n){let r=h._parseTemplateNestedTemplate.call(this,e,t,n);var i=e.parentNode,s=n.templateInfo,o="dom-if"===i.localName,a="dom-repeat"===i.localName,a=(bi&&(o||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=s,n.noted=!0,r=!1),s.hostProps);if(wi&&o)a&&(t.hostProps=Object.assign(t.hostProps||{},a),bi||(n.parentInfo.noted=!0));else for(var l in a)Ys(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(o,a){let l,h=[],u=0;for(;null!==(l=Xs.exec(o));){l.index>u&&h.push({literal:o.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),n=l[3].trim(),r=!1,i="",s=-1;"{"==e&&0<(s=n.indexOf("::"))&&(i=n.substring(s+2),n=n.substring(0,s),r=!0);var d=Js(n),c=[];if(d){var{args:p,methodName:m}=d;for(let e=0;e<p.length;e++){var f=p[e];f.literal||c.push(f)}var _=a.dynamicFns;(_&&_[m]||d.static)&&(c.push(m),d.dynamicFn=!0)}else c.push(n);h.push({source:n,mode:e,negate:t,customEvent:r,signature:d,dependencies:c,event:i}),u=Xs.lastIndex}var e;return u&&u<o.length&&(e=o.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,n,r,i,s){let o;return o=t.signature?js(e,n,r,0,t.signature):n!=t.source?w(e,t.source):s&&Vi(n)?w(e,n):e.__data[n],o=t.negate?!o:o}}}),ro=[],io=m(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(n=t.properties)&&(e=function(e){var t,n={};for(t in e){var r=e[t];n[t]="function"==typeof r?{type:r}:r}return n}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends _s(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=n(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,n(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),so=window.ShadyCSS&&window.ShadyCSS.cssBuild,oo=m(e=>{const r=io(no(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):fi||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,t.computed,i)),t.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===t.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===t.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&n._createPropertyObserver(r,t.observer,i[t.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||pi&&!mi||(t=Di.import(e,"template"),!pi)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=ai(e.url):(e=Di.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=ui,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var r=n[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var n=e[t];this._canApplyPropertyDefault(t)&&(n="function"==typeof n.value?n.value.call(this):n.value,this._hasAccessor(t)?this._setPendingProperty(t,n,!0):this[t]=n)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return oi(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,i=this,s=t,o=e,a=n?si(n):"";if(!so){var l=s.content.querySelectorAll("style"),h=Li(s),u=(e=Ii(o))?Ri(e):[],d=s.content.firstElementChild;for(let e=0;e<u.length;e++){var c=u[e];c.textContent=i._processStyleText(c.textContent,a),s.content.insertBefore(c,d)}let r=0;for(let n=0;n<h.length;n++){let e=h[n],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(s,o),Ci&&so&&hi){const o=s.content.querySelectorAll("style");if(o){let t="";Array.from(o).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=b(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yi&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=si(this.importPath)),si(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!_i||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,n)}}}),ao=oo(HTMLElement);class S{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,lo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),lo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,n){return e instanceof S?e._cancelAsync():e=new S,e.setConfig(t,n),e}}let lo=new Set;function ho(e){lo.add(e)}let uo="string"==typeof document.head.style.touchAction,co="__polymerGestures",po="__polymerGesturesHandled",mo="__polymerGesturesTouchAction",fo=["mousedown","mousemove","mouseup","click"],_o=[0,1,4,2],yo=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function go(e){return-1<fo.indexOf(e)}let vo=!1;function bo(e){return!go(e)&&"touchend"!==e&&uo&&vo&&ci?{passive:!0}:void 0}try{var wo=Object.defineProperty({},"passive",{get(){vo=!0}});window.addEventListener("test",null,wo),window.removeEventListener("test",null,wo)}catch(e){}let So=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const xo=[],Co={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Eo={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ao(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[po]={skip:!0},"click"===e.type)){let t=!1,n=Oo(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)xo.push(n[e]);else if(r=n[e],Co[r.localName]){var i=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var n=e.getRootNode();if(e.id){var r=n.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<r.length;e++)t.push(r[e])}}catch(e){}}return t}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<xo.indexOf(i[e])}if(n[e]===C.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function To(n){var r=So?["click"]:fo;for(let e,t=0;t<r.length;t++)e=r[t],n?(xo.length=0,document.addEventListener(e,Ao,!0)):document.removeEventListener(e,Ao,!0)}function Po(t){var e=t.type;if(go(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!yo&&(e=_o[t.which]||0),Boolean(1&e)}}}let C={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Do(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function ko(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){C.mouse.mouseIgnoreJob||To(!0),C.mouse.target=Oo(e)[0],C.mouse.mouseIgnoreJob=S.debounce(C.mouse.mouseIgnoreJob,ds.after(2500),function(){To(),C.mouse.target=null,C.mouse.mouseIgnoreJob=null})},!!vo&&{passive:!0});const Oo=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Mo={},Io=[];function No(e){var t=Oo(e);return 0<t.length?t[0]:e.target}function Bo(n){var r,i=n.type,s=n.currentTarget[co];if(s){var o=s[i];if(o){if(!n[po]&&(n[po]={},"touch"===i.slice(0,5))){s=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(C.touch.id=s.identifier),C.touch.id!==s.identifier)return;if(!(uo||"touchstart"!==i&&"touchmove"!==i)){s=n;var a=s.changedTouches[0],e=s.type;if("touchstart"===e)C.touch.x=a.clientX,C.touch.y=a.clientY,C.touch.scrollDecided=!1;else if("touchmove"===e&&!C.touch.scrollDecided){C.touch.scrollDecided=!0;let e=function(e){let n="auto",r=Oo(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[mo]){n=e[mo];break}return n}(s),t=!1,n=Math.abs(C.touch.x-a.clientX),r=Math.abs(C.touch.y-a.clientY);s.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?s.preventDefault():zo("track")}}}if(!(r=n[po]).skip){for(let e,t=0;t<Io.length;t++)o[(e=Io[t]).name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<Io.length;t++)o[(e=Io[t]).name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function Lo(e,t,n){return Mo[t]&&(function(r,e,t){let n=Mo[e],i=n.deps,s=n.name,o=r[co];o||(r[co]=o={});for(let e,t,n=0;n<i.length;n++)e=i[n],So&&go(e)&&"click"!==e||((t=o[e])||(o[e]=t={_count:0}),0===t._count&&r.addEventListener(e,Bo,bo(e)),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&Ho(r,n.touchAction)}(e,t,n),1)}function Ro(t){Io.push(t);for(let e=0;e<t.emits.length;e++)Mo[t.emits[e]]=t}function Ho(e,t){uo&&e instanceof HTMLElement&&ms.run(()=>{e.style.touchAction=t}),e[mo]=t}function Fo(e,t,n){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=n,b(e).dispatchEvent(t),t.defaultPrevented&&(e=n.preventer||n.sourceEvent)&&e.preventDefault&&e.preventDefault()}function zo(e){e=function(n){for(let t,e=0;e<Io.length;e++){t=Io[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Yo(e,t,n,r){t&&Fo(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:zo})}function Uo(e,t,n){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-n),5<=t)||5<=e)}function $o(o,a,l){if(a){let e,t=o.moves[o.moves.length-2],n=o.moves[o.moves.length-1],r=n.x-o.x,i=n.y-o.y,s=0;t&&(e=n.x-t.x,s=n.y-t.y),Fo(a,"track",{state:o.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:s,sourceEvent:l,hover:function(){{var n=l.clientX,r=l.clientY;let e=document.elementFromPoint(n,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,r)))break;t&&(e=t)}return e}}})}}function Wo(e,t,n){var r,i=Math.abs(t.clientX-e.x),s=Math.abs(t.clientY-e.y),o=No(n||t);!o||Eo[o.localName]&&o.hasAttribute("disabled")||!(isNaN(i)||isNaN(s)||i<=25&&s<=25)&&("click"!==(i=t).type||0!==i.detail&&(s=No(i)).nodeType&&s.nodeType===Node.ELEMENT_NODE&&(s=s.getBoundingClientRect(),r=i.pageX,i=i.pageY,r>=s.left)&&r<=s.right&&i>=s.top&&i<=s.bottom)||e.prevent||Fo(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Ro({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ko(this.info)},mousedown:function(e){if(Po(e)){let t=No(e),n=this;Do(this.info,function(e){Po(e)||(Yo("up",t,e),ko(n.info))},function(e){Po(e)&&Yo("up",t,e),ko(n.info)}),Yo("down",t,e)}},touchstart:function(e){Yo("down",No(e),e.changedTouches[0],e)},touchend:function(e){Yo("up",No(e),e.changedTouches[0],e)}}),Ro({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ko(this.info)},mousedown:function(e){if(Po(e)){let r=No(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;Uo(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&zo("tap"),i.info.addMove({x:t,y:n}),Po(e)||(i.info.state="end",ko(i.info)),r&&$o(i.info,r,e),i.info.started=!0)};Do(this.info,t,function(e){i.info.started&&t(e),ko(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=No(e),e=e.changedTouches[0],n=e.clientX,r=e.clientY;Uo(this.info,n,r)&&("start"===this.info.state&&zo("tap"),this.info.addMove({x:n,y:r}),$o(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=No(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),$o(this.info,t,e))}}),Ro({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Po(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Po(e)&&Wo(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Wo(this.info,e.changedTouches[0],e)}});const jo=m(e=>class extends e{_addEventListenerToNode(e,t,n){Lo(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,h=t,i=n,Mo[h]){var r=l;l=h,h=i;var i,s=(i=Mo[l]).deps,o=i.name,a=r[co];if(a)for(let e,t,n=0;n<s.length;n++)e=s[n],(t=a[e])&&t[o]&&(t[o]=(t[o]||1)-1,t._count=(t._count||1)-1,0===t._count)&&r.removeEventListener(e,Bo,bo(e));r.removeEventListener(l,h)}else super._removeEventListenerFromNode(e,t,n);var l,h,i}}),Vo=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Go=e=>class extends Vo(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=Di.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{var e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],s=0<i.filter(e=>0===t.indexOf(e)).length,i=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:s!=i?s?-1:1:0}).forEach(t=>{if(t!==i){const i=e[t].getAttribute("theme-for");i&&i.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(r=!0,this._includeStyle(t,n))})}}),!r&&e[i]&&this._includeStyle(i,n)}static _includeStyle(e,t){var n;t&&!t.content.querySelector(`style[include="${e}"]`)&&((n=document.createElement("style")).setAttribute("include",e),t.content.appendChild(n))}};let qo=!1;window.addEventListener("keydown",()=>{qo=!0},{capture:!0}),window.addEventListener("mousedown",()=>{qo=!1},{capture:!0});function Xo(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(lo.size),lo.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Zo=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return qo}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&qo?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Jo{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var r=n["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return n.scrollWidth-n.clientWidth+r;case"reverse":return n.scrollWidth-n.clientWidth-r}return r}static setNormalizedScrollLeft(e,t,n,r){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+r;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-r;break;default:n.scrollLeft=r}else n.scrollLeft=r}}const Ko=[];let Qo;new MutationObserver(function(){const t=ta();Ko.forEach(e=>{ea(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ea=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},ta=function(){return document.documentElement.getAttribute("dir")},na=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Qo=Qo||Jo.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),ea(this,ta()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===ta()&&-1===Ko.indexOf(this),r=!n&&t&&-1===Ko.indexOf(this),n=n!==ta()&&t===ta(),e||r?(this.__subscribe(),ea(this,ta())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Ko.indexOf(this)&&Ko.push(this):-1<Ko.indexOf(this)&&Ko.splice(Ko.indexOf(this),1)}__getNormalizedScrollLeft(e){return Jo.getNormalizedScrollLeft(Qo,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Jo.setNormalizedScrollLeft(Qo,this.getAttribute("dir")||"ltr",e,t)}},ra=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ia=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function sa(e,t){if("function"==typeof e){var n=ra.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function oa(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(ia?!(ia&&0<Object.keys(ia).map(e=>ia[e]).filter(e=>e.productionMode).length):!sa(function(){return!0}))}catch(e){return!1}}());function aa(){var e=oa,t=void 0;if(window.Vaadin.developmentMode)return sa(e,t)}let la;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){aa,aa()};const ha=new Set,ua=e=>class extends na(e){static finalize(){super.finalize();var e=this["is"];e&&!ha.has(e)&&(window.Vaadin.registrations.push(this),ha.add(e),window.Vaadin.developmentModeCallback)&&(la=S.debounce(la,ps,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ho(la))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class da extends ua(Zo(Go(jo(ao)))){static get template(){return p`
|
324
324
|
<style>
|
325
325
|
:host {
|
326
326
|
display: inline-block;
|
@@ -388,7 +388,7 @@
|
|
388
388
|
</div>
|
389
389
|
</div>
|
390
390
|
<button id="button" type="button"></button>
|
391
|
-
`}static get is(){return"vaadin-button"}static get version(){return"2.4.0"}ready(){super.ready(),this.setAttribute("role","button"),this.$.button.setAttribute("role","presentation"),this._addActiveListeners(),window.ShadyDOM&&window.ShadyDOM.flush()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this.removeAttribute("active")}_addActiveListeners(){
|
391
|
+
`}static get is(){return"vaadin-button"}static get version(){return"2.4.0"}ready(){super.ready(),this.setAttribute("role","button"),this.$.button.setAttribute("role","presentation"),this._addActiveListeners(),window.ShadyDOM&&window.ShadyDOM.flush()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this.removeAttribute("active")}_addActiveListeners(){Lo(this,"down",()=>!this.disabled&&this.setAttribute("active","")),Lo(this,"up",()=>this.removeAttribute("active")),this.addEventListener("keydown",e=>!this.disabled&&0<=[13,32].indexOf(e.keyCode)&&this.setAttribute("active","")),this.addEventListener("keyup",()=>this.removeAttribute("active")),this.addEventListener("blur",()=>this.removeAttribute("active"))}get focusElement(){return this.$.button}}customElements.define(da.is,da);hn=p`<dom-module id="lumo-date-picker-overlay-content" theme-for="vaadin-date-picker-overlay-content">
|
392
392
|
<template>
|
393
393
|
<style>
|
394
394
|
:host {
|
@@ -1273,7 +1273,7 @@
|
|
1273
1273
|
}
|
1274
1274
|
</style>
|
1275
1275
|
</template>
|
1276
|
-
</dom-module>`;document.head.appendChild(hn.content);class _a{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function ya(e){return function r(n,i){let s=i.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=s.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(s=(s=(s=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(s=i.substring(e,n.start-1))).replace(wa.multipleSpaces," ")).substring(s.lastIndexOf(";")+1),n.parsedSelector=n.selector=s.trim());n.atRule=0===t.indexOf(Ca),n.atRule?0===t.indexOf(xa)?n.type=ga.MEDIA_RULE:t.match(wa.keyframesRule)&&(n.type=ga.KEYFRAMES_RULE,n.keyframesName=n.selector.split(wa.multipleSpaces).pop()):0===t.indexOf(Sa)?n.type=ga.MIXIN_RULE:n.type=ga.STYLE_RULE}let o=n.rules;if(o)for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)r(e,i);return n}(function(n){var r,i,s=new _a;s.start=0,s.end=n.length;let o=s;for(let e=0,t=n.length;e<t;e++)n[e]===va?(o.rules||(o.rules=[]),i=(r=o).rules[r.rules.length-1]||null,(o=new _a).start=e+1,o.parent=r,o.previous=i,r.rules.push(o)):n[e]===ba&&(o.end=e+1,o=o.parent||s);return s}(e=e.replace(wa.comments,"").replace(wa.port,"")),e)}const ga={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},va="{",ba="}",wa={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Sa="--",xa="@media",Ca="@",Ea=new Set;function Ta(e,t){return e?("string"==typeof e&&(e=ya(e)),t&&Pa(e,t),function r(e,i,t=""){let s="";if(e.cssText||e.rules){var o=e.rules;if(!o||(n=o[0],Boolean(n)&&Boolean(n.selector)&&0===n.selector.indexOf(Sa)))s=(s=(s=i?e.cssText:e.cssText.replace(wa.customProp,"").replace(wa.mixinProp,"").replace(wa.mixinApply,"").replace(wa.varApply,"")).trim())&&" "+s+"\n";else for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)s=r(e,i,s)}var n;return s&&(e.selector&&(t+=e.selector+" "+va+"\n"),t+=s,e.selector)&&(t+=ba+"\n\n"),t}(e,ei)):""}function Aa(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=ya(e.textContent)),e.__cssRules||null}function Pa(n,r,i,s){if(n){let e=!1,t=n.type;s&&t===ga.MEDIA_RULE&&(o=n.selector.match(Gr))&&!window.matchMedia(o[1]).matches&&(e=!0),t===ga.STYLE_RULE?r(n):i&&t===ga.KEYFRAMES_RULE?i(n):t===ga.MIXIN_RULE&&(e=!0);var o,a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)Pa(e,r,i,s)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Da="css-build";function ka(e){return""!==(e=e,void 0!==Kr?Kr:(void 0===e.__cssBuild&&((t=e.getAttribute(Da))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Da)return e[1]}return""}(e))&&(n=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(n),e.__cssBuild=t)),e.__cssBuild||""));var t,n}const Oa=/;\s*/m,Ma=/^\s*(initial)|(inherit)\s*$/,Ia=/\s*!important/;class Na{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ba=null;class Ra{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Na}detectMixin(e){return e=jr.test(e)||Vr.test(e),jr.lastIndex=0,Vr.lastIndex=0,e}gatherStyles(e){var t,n=function(){var t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var r=n[e];if(r.hasAttribute("shady-unscoped")){if(!Zr){{i=void 0;s=void 0;var i=r;var s=i.textContent;if(!Ea.has(s)){Ea.add(s);const i=document.createElement("style");i.setAttribute("shady-unscoped",""),i.textContent=s,document.head.appendChild(i)}}r.parentNode.removeChild(r)}}else t.push(r.textContent),r.parentNode.removeChild(r)}return t.join("").trim()}();return n?((t=document.createElement("style")).textContent=n,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=Aa(e);return this.transformRules(n,t),e.textContent=Ta(n),n}transformCustomStyle(e){var t=Aa(e);return Pa(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Ta(t),t}transformRules(e,t){this._currentElement=t,Pa(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,i){return e=e.replace(Vr,(e,t,n,r)=>this._produceCssProperties(e,t,n,r,i)),this._consumeCssProperties(e,i)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let r=!1;return Pa(e,e=>{(r=r||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(e,t){for(;i=jr.exec(e);){var n=i[0],r=i[1],i=i.index,s=i+n.indexOf("@apply"),n=i+n.length,s=e.slice(0,s),n=e.slice(n),o=t?this._fallbacksFromPreviousRules(t):{},r=(Object.assign(o,this._cssTextToMap(s)),this._atApplyToCssProperties(r,o));e=""+s+r+n,jr.lastIndex=i+r.length}return e}_atApplyToCssProperties(r,i){r=r.replace(Oa,"");let s=[],o=this._map.get(r);if(o||(this._map.set(r,{}),o=this._map.get(r)),o){let e,t,n;this._currentElement&&(o.dependants[this._currentElement]=!0);var a=o.properties;for(e in a)n=i&&i[e],t=[e,": var(",r,"_-_",e],n&&t.push(",",n.replace(Ia,"")),t.push(")"),Ia.test(a[e])&&t.push(" !important"),s.push(t.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){var n=Ma.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,r=!1){let i,s,o=e.split(";"),a={};for(let e,t,n=0;n<o.length;n++)(e=o[n])&&1<(t=e.split(":")).length&&(i=t[0].trim(),s=t.slice(1).join(":"),r&&(s=this._replaceInitialOrInherit(i,s)),a[i]=s);return a}_invalidateMixinEntry(e){if(Ba)for(var t in e.dependants)t!==this._currentElement&&Ba(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var r,i,s,o=t.indexOf("var(");return-1===o?n(t,"","",""):(s=function(n){let r=0;for(let e=o+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),r=t.substring(o+4,s),i=t.substring(0,o),t=e(t.substring(s+1),n),-1===(s=r.indexOf(","))?n(i,r.trim(),"",t):n(i,r.substring(0,s).trim(),r.substring(s+1).trim(),t))}(n,(e,t)=>{t&&this._map.get(t)&&(r=`@apply ${t};`)}),!r)return e;let s=this._consumeCssProperties(""+r,i),o=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(s,!0),l=a,h=this._map.get(t),u=h&&h.properties;u?l=Object.assign(Object.create(u),a):this._map.set(t,l);let d,c,p=[],m=!1;for(d in l)c=a[d],void 0===c&&(c="initial"),!u||d in u||(m=!0),p.push(`${t}_-_${d}: `+c);return m&&this._invalidateMixinEntry(h),h&&(h.properties=l),""+(o=n?e+";"+o:o)+p.join("; ")+";"}}Ra.prototype._separator="_-_",Object.defineProperty(Ra.prototype,"invalidCallback",{get:()=>Ba,set(e){Ba=e}});const La={},Ha="_applyShimCurrentVersion",Fa="_applyShimNextVersion",za="_applyShimValidatingVersion",Ya=Promise.resolve();function Ua(e){var e=La[e];e&&((e=e)[Ha]=e[Ha]||0,e[za]=e[za]||0,e[Fa]=(e[Fa]||0)+1)}function $a(e){return e[Ha]===e[Fa]}const Wa=new Ra;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const U=new class{constructor(){this.customStyleInterface=null,Wa.invalidCallback=Ua}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Wa.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),ka(e)||(La[t]=e,t=Wa.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Wa.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&qr(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var r=e.children||e.childNodes;for(let e=0;e<r.length;e++)this.styleSubtree(r[e])}}styleElement(e){this.ensure();var t,n,r=function(e){let t=e.localName,n="",r="";return t?n=-1<t.indexOf("-")?t:(r=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e)["is"],i=La[r];i&&ka(i)||!i||$a(i)||(!$a(n=i)&&n[za]===n[Fa]||(this.prepareTemplate(i,r),(t=i)[za]=t[Fa],t._validating)||(t._validating=!0,Ya.then(function(){t[Ha]=t[Fa],t._validating=!1})),(n=e.shadowRoot)&&(r=n.querySelector("style"))&&(r.__cssRules=i._styleAst,r.textContent=Ta(i._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};s=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){U.flushCustomStyles(),U.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){U.flushCustomStyles(),U.styleSubtree(e,t)},styleElement(e){U.flushCustomStyles(),U.styleElement(e)},styleDocument(e){U.flushCustomStyles(),U.styleDocument(e)},getComputedStyleValue:(e,t)=>Xr(e,t),flushCustomStyles(){U.flushCustomStyles()},nativeCss:ei,nativeShadow:Zr,cssBuild:Kr,disableRuntime:an},s&&(window.ShadyCSS.CustomStyleInterface=s)}window.ShadyCSS.ApplyShim=Wa;const Va=/:host\(:dir\((ltr|rtl)\)\)/g,ja=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ga=/:dir\((?:ltr|rtl)\)/,qa=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Xa=[];let Za=null,Ja="";function Ka(){Ja=document.documentElement.getAttribute("dir")}function Qa(e){e.__autoDirOptOut||e.setAttribute("dir",Ja)}function el(){Ka(),Ja=document.documentElement.getAttribute("dir");for(let e=0;e<Xa.length;e++)Qa(Xa[e])}const tl=m(e=>{qa||Za||(Ka(),(Za=new MutationObserver(el)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=ws(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!qa&&Ga.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(Va,':host([dir="$1"])')).replace(ja,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Za&&Za.takeRecords().length&&el(),Xa.push(this),Qa(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=Xa.indexOf(this))&&Xa.splice(e,1)}}return t.__activateDir=!1,t});let nl=!1,rl=[],il=[];function sl(){nl=!0,requestAnimationFrame(function(){nl=!1;for(var e=rl;e.length;)ol(e.shift());setTimeout(function(){var n=il;for(let e=0,t=n.length;e<t;e++)ol(n.shift())})})}function ol(e){var t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function al(e,t,n){nl||sl(),il.push([e,t,n])}function ll(){document.body.removeAttribute("unresolved")}function hl(e,t,n){return{index:e,removed:t,addedCount:n}}"interactive"===document.readyState||"complete"===document.readyState?ll():window.addEventListener("DOMContentLoaded",ll);const ul=0,dl=1,cl=2,pl=3;function ml(a,l){{var h=a,u=0,d=a.length,c=l,p=0,m=l.length;let t,e=0,n=0,r=Math.min(d-u,m-p);if(0==u&&0==p&&(e=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(h,c,r)),d==h.length&&m==c.length&&(n=function(e,t,n){let r=e.length,i=t.length,s=0;for(;s<n&&e[--r]===t[--i];)s++;return s}(h,c,r-e)),p+=e,m-=n,(d-=n)-(u+=e)==0&&m-p==0)return[];if(u==d){for(t=hl(u,[],0);p<m;)t.removed.push(c[p++]);return[t]}if(p==m)return[hl(u,[],d-u)];var f=function(e){let t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];for(;0<t||0<n;){var s,o,a,l;0==t?(i.push(cl),n--):0==n?(i.push(pl),t--):(s=e[t-1][n-1],(l=(o=e[t-1][n])<(a=e[t][n-1])?o<s?o:s:a<s?a:s)==s?(s==r?i.push(ul):(i.push(dl),r=s),t--,n--):r=l==o?(i.push(pl),t--,o):(i.push(cl),n--,a))}return i.reverse(),i}(function(n,r,i,s){var o,a,l=m-s+1,h=d-r+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(h),u[e][0]=e;for(let e=0;e<h;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<h;e++)n[r+e-1]===i[s+t-1]?u[t][e]=u[t-1][e-1]:(o=u[t-1][e]+1,a=u[t][e-1]+1,u[t][e]=o<a?o:a);return u}(h,u,c,p));t=void 0;let i=[],s=u,o=p;for(let e=0;e<f.length;e++)switch(f[e]){case ul:t&&(i.push(t),t=void 0),s++,o++;break;case dl:(t=t||hl(s,[],0)).addedCount++,s++,t.removed.push(c[o]),o++;break;case cl:(t=t||hl(s,[],0)).addedCount++,s++;break;case pl:(t=t||hl(s,[],0)).removed.push(c[o]),o++}return t&&i.push(t),i}}function fl(e){return"slot"===e.localName}let _l=class{static getFlattenedNodes(e){var t=b(e);return fl(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>fl(e)?b(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){fl(this._target)?this._listenSlots([this._target]):b(this._target).children&&(this._listenSlots(b(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){fl(this._target)?this._unlistenSlots([this._target]):b(this._target).children&&(this._unlistenSlots(b(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,ms.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=ml(n,this._effectiveNodes);for(let n,e=0;e<i.length&&(n=i[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<i.length&&(t=i[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];fl(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];fl(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};function yl(e,t){return vl.call(e,t)}const gl=Element.prototype,vl=gl.matches||gl.matchesSelector||gl.mozMatchesSelector||gl.msMatchesSelector||gl.oMatchesSelector||gl.webkitMatchesSelector;class E{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new _l(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return b(n).importNode(e,t)}getEffectiveChildNodes(){return _l.getFlattenedNodes(this.node)}queryDistributedElements(r){var i=this.getEffectiveChildNodes(),s=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&yl(e,r)&&s.push(e);return s}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function bl(n,r){for(let t=0;t<r.length;t++){let e=r[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class wl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E;let Sl=E;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class U extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(E.prototype).forEach(e=>{"activeElement"!=e&&(U.prototype[e]=E.prototype[e])}),bl(U.prototype,["classList"]),Sl=U,Object.defineProperties(wl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&Al(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(Al(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var xl=E.prototype;var Cl=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<Cl.length;t++){let e=Cl[t];xl[e]=function(){return this.node[e].apply(this.node,arguments)}}}bl(E.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var El=E.prototype;var Tl=["textContent","innerHTML","className"];for(let e=0;e<Tl.length;e++){let t=Tl[e];Object.defineProperty(El,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const Al=function(e){if((e=e||document)instanceof Sl)return e;if(e instanceof wl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?wl:Sl)(e),e.__domApi=t),t},Pl=window.ShadyDOM,Dl=window.ShadyCSS;function kl(e,t){return b(e).getRootNode()===t}const Ol="disable-upgrade",Ml=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Il=m(e=>{e=oo(e);let t=Ml(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Ol)}_initializeProperties(){this.hasAttribute(Ol)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,r){e==Ol?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Nl="disable-upgrade";let Bl=window.ShadyCSS;const Rl=m(e=>{const t=Vo(oo(e)),n=so?t:tl(t),r=Ml(n),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Nl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;xi&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;xi&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return xi&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(Nl)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,r){t!==n&&(e==Nl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){var e;fi&&this.hasAttribute(Nl)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),xi&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var r=n[e];this.__attributeReaction(r.name,null,r.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,r){if(!n||!r)return n||r;var i=Object.getOwnPropertyNames(r);for(let e,t=0;t<i.length&&(e=i[t]);t++){var s=Object.getOwnPropertyDescriptor(r,e);s&&Object.defineProperty(n,e,s)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed}),e.detail=t,t=n.node||this;return b(t).dispatchEvent(e),e}listen(e,t,n){e=e||this;let r=this.__boundListeners||(this.__boundListeners=new WeakMap),i=r.get(e);i||(i={},r.set(e,i));var s=t+n;i[s]||(i[s]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;var r=this.__boundListeners&&this.__boundListeners.get(e),n=t+n,i=r&&r[n];i&&(this._removeEventListenerFromNode(e,t,i),r[n]=null)}setScrollDirection(e,t){Ho(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=Al(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return Al(this).getEffectiveChildNodes()}queryDistributedElements(e){return Al(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var n=this.getEffectiveChildNodes(),r=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&r.push(e.textContent);return r.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?Al(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,n=!1]=[e,t];if(Pl&&Dl&&Pl.handlesDynamicScoping){const i=Dl.ScopingShim;if(i){const s=i.scopeForNode(e),o=b(e).getRootNode(),a=e=>{if(kl(e,o)){var t=Array.from(Pl.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var n,r=t[e];kl(r,o)&&(n=i.currentScopeForNode(r))!==s&&(""!==n&&i.unscopeNode(r,n),i.scopeNode(r,s))}}};if(a(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var r=n.addedNodes[e];r.nodeType===Node.ELEMENT_NODE&&a(r)}}});return n.observe(e,{childList:!0,subtree:!0}),n}}}return null}getComputedStyleValue(e){return Bl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=S.debounce(this._debouncers[e],0<n?ds.after(n):ms,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?ds.run(e.bind(this),t):~ms.run(e.bind(this))}cancelAsync(e){e<0?ms.cancel(~e):ds.cancel(e)}create(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}elementMatches(e,t){return yl(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(b(n).setAttribute(e,""),!0):(b(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,r){this.transform("translate3d("+e+","+t+","+n+")",r=r||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=w(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return s.prototype.is="",s}),Ll={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Hl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Fl=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Hl);function zl(e,t,n,r){var i,s=t,o=e,a=r,l=s._noAccessors,h=Object.getOwnPropertyNames(s);for(let e=0;e<h.length;e++){var u,d=h[e];d in a||(l?o[d]=s[d]:(u=Object.getOwnPropertyDescriptor(s,d))&&(u.configurable=!0,Object.defineProperty(o,d,u)))}for(i in Ll)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Yl(e,t){for(const i in t){var n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const Ul=Rl(HTMLElement);function $l(i,e,t){let s;const o={};class r extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(s)for(let e,t=0;t<s.length;t++)(e=s[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);i.properties&&this.createProperties(i.properties),i.observers&&this.createObservers(i.observers,i.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(s)for(let e=0;e<s.length;e++)Yl(t,s[e].properties);return Yl(t,i.properties),t}static get observers(){let n=[];if(s)for(let e,t=0;t<s.length;t++)(e=s[t]).observers&&(n=n.concat(e.observers));return n=i.observers?n.concat(i.observers):n}created(){super.created();var t=o.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),fi&&a(e);var n=Object.getPrototypeOf(this);let t=o.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=o.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=o.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var r in n)this._addMethodEventListenerToNode(this,r,n[r])}}_ensureAttributes(){var t=o.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,r=t[e];for(n in r)this._ensureAttribute(n,r[n])}super._ensureAttributes()}ready(){super.ready();var t=o.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=o.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=o.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();var i=o.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}var n;t&&(Array.isArray(t)||(t=[t]),n=e.prototype.behaviors,s=function t(n,r,i){r=r||[];for(let e=n.length-1;0<=e;e--){var s=n[e];s?Array.isArray(s)?t(s,r):r.indexOf(s)<0&&(!i||i.indexOf(s)<0)&&r.unshift(s):console.warn("behavior is null, check for missing or 404 import")}return r}(t,null,n),r.prototype.behaviors=n?n.concat(t):s);const a=e=>{if(s){var t=e,n=s,r=o;for(let e=0;e<n.length;e++)zl(t,n[e],r,Fl)}zl(e,i,o,Hl)};return fi||a(r.prototype),r.generatedFrom=i,r}function Wl(e){var t="function"==typeof e?e:Wl.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function Vl(e,t,n,r,i){let s;i=(r=i&&(s="object"==typeof n&&null!==n)?e.__dataTemp[t]:r)!==n&&(r==r||n==n);return s&&i&&(e.__dataTemp[t]=n),i}Wl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Ul):Ul;return(t=$l(e,t,e.behaviors)).is=t.prototype.is=e.is,t};o=m(e=>class extends e{_shouldPropertyChange(e,t,n){return Vl(this,e,t,n,!0)}}),e=m(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Vl(this,e,t,n,this.mutableData)}});o._mutablePropertyChange=Vl;let jl=null;function Gl(){return jl}Gl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Gl,writable:!0}});const ql=no(Gl),Xl=o(ql);function Zl(t,n){for(let e=0;e<n.length;e++){var r=n[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),b(b(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class Jl extends no(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,n){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,n(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,n)}_showHideChildren(e){Zl(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Jl.prototype.__dataHost,Jl.prototype.__templatizeOptions,Jl.prototype._methodHost,Jl.prototype.__templatizeOwner,Jl.prototype.__hostProps;const Kl=o(Jl);function Ql(e){e=e.__dataHost;return e&&e._methodHost||e}function eh(e,t,n){let r=n.mutableData?Kl:Jl;var i,s=class extends(r=nh.mixin?nh.mixin(r):r){},o=(s.prototype.__templatizeOptions=n,s.prototype._bindTemplate(e),s),a=t,l=n,h=a.hostProps||{};for(i in l.instanceProps){delete h[i];var u=l.notifyInstanceProp;u&&o.prototype._addPropertyEffect(i,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((i,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in h)a.hasHostProps||(a.hasHostProps=!0),o.prototype._addPropertyEffect(d,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}});return s}function th(t,n,r,i){var s=r.forwardHostProp;if(s&&n.hasHostProps){var o,a="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(a){class i extends(r.mutableData?Xl:ql){}e=n.templatizeTemplateClass=i}else{const r=t.constructor;class i extends r{}e=n.templatizeTemplateClass=i}for(o in n.hostProps)e.prototype._addPropertyEffect("_host_"+o,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring(6),n[t])}}((o,s))}),e.prototype._createNotifyingProperty("_host_"+o);if(_i&&i){var l=r;const d=i.constructor._properties,c=n["propertyEffects"],p=l["instanceProps"];for(var h in c)if(!(d[h]||p&&p[h])){const l=c[h];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)r=e,jl=t,Object.setPrototypeOf(t,r.prototype),new r,jl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=n.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function nh(e,t,n){if(pi&&!Ql(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:Jl)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=eh(e,r,n),r.templatizeInstanceClass=i);var s=Ql(e),n=(th(e,r,n,s),class extends i{});return n.prototype._methodHost=s,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let rh=!1;function ih(){var e;return fi&&!li&&(rh||(rh=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}i=Vo(e(no(HTMLElement))),customElements.define("dom-bind",class extends i{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),pi)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,r){this.mutableData=!0}connectedCallback(){ih()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),ln=e(ao);class sh extends ln{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:!Si,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(),ih()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=b(b(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=nh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(n,r){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(n,r)},notifyInstanceProp:function(e,t,n){var r,i;((r=this.as)===(i=t)||qi(r,i)||Xi(r,i))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=n),i=Zi(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(i,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=S.debounce(this.__renderDebouncer,0<t?ds.after(t):ms,e.bind(this)),ho(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Xo()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),Si&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(r[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let n=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,n){var r=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){var s=this.__instances[i],o=n[i],a=e[o];r[o]=i,s?(s._setPendingProperty(this.as,a),s._setPendingProperty(this.indexAs,i),s._setPendingProperty(this.itemsIndexAs,o),s._flushProperties()):this.__insertInstance(a,i,o)}for(let e=this.__instances.length-1;e>=i;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],n=b(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];n.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,n){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return b(b(this).parentNode).insertBefore(e.root,n),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),n=e.indexOf("."),r=n<0?e:e.substring(0,n);if(r==parseInt(r,10))return e=n<0?"":e.substring(n+1),this.__handleObservedPaths(e),n=this.__itemsIdxToInstIdx[r],(r=this.__instances[n])&&(n=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(n,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,n=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==n)return t;r=t.__dataHost}else r=b(r).parentNode;return null}}customElements.define(sh.is,sh);class oh extends ao{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=S.debounce(this.__renderDebouncer,ms,()=>this.__render()),ho(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),ih()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=b(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&b(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)b(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){Xo()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),Si&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}hn=wi?class extends oh{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(pi&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r=r||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=Gi(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Zl(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends oh{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=nh(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Gi(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var n=this.__instance.children;if(n&&n.length){var r=b(n[0]).parentNode;if(r){r=b(r);for(let e,t=0;t<n.length&&(e=n[t]);t++)r.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(hn.is,hn);class ah extends m(e=>{return class extends oo(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var n,r,i=t.path;i==JSCompiler_renameProperty("items",this)?(r=t.base||[],n=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),n&&(n=ml(r,n),this.__applySplices(n)),this.__lastItems=r,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(n=i.slice((JSCompiler_renameProperty("items",this)+".").length),r=parseInt(n,10),n.indexOf(".")<0&&n==r&&this.__deselectChangedIdx(r))}__applySplices(t){let r=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];r.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?r.set(t,e+n.addedCount-n.removed.length):r.set(t,-1))});for(let e=0;e<n.addedCount;e++){var i=n.index+e;r.has(this.items[i])&&r.set(this.items[i],i)}}this.__updateLinks();let n=0;r.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,r.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let r=this.__selectedIndexForItemIndex(e);if(0<=r){let n=0;this.__selectedMap.forEach((e,t)=>{r==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(ao){static get is(){return"array-selector"}static get template(){return null}}customElements.define(ah.is,ah),Rl(HTMLElement).prototype,Wl({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const lh=Element.prototype,hh=lh.matches||lh.matchesSelector||lh.mozMatchesSelector||lh.msMatchesSelector||lh.oMatchesSelector||lh.webkitMatchesSelector;class uh{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return hh.call(e,"input, select, textarea, button, object")?hh.call(e,":not([disabled])"):hh.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&hh.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var n=this._normalizedTabIndex(e);let r,i=0<n;if(0<=n&&t.push(e),r="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<r.length;e++)i=this._collectTabbableNodes(r[e],t)||i;return i}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,n=e.length;return n<2?e:(n=Math.ceil(n/2),t=this._sortByTabIndex(e.slice(0,n)),e=this._sortByTabIndex(e.slice(n)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var n=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let dh=0;const ch={};class ph extends Go(na(ao)){static get template(){return p`
|
1276
|
+
</dom-module>`;document.head.appendChild(hn.content);class _a{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function ya(e){return function r(n,i){let s=i.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=s.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(s=(s=(s=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(s=i.substring(e,n.start-1))).replace(wa.multipleSpaces," ")).substring(s.lastIndexOf(";")+1),n.parsedSelector=n.selector=s.trim());n.atRule=0===t.indexOf(Ca),n.atRule?0===t.indexOf(xa)?n.type=ga.MEDIA_RULE:t.match(wa.keyframesRule)&&(n.type=ga.KEYFRAMES_RULE,n.keyframesName=n.selector.split(wa.multipleSpaces).pop()):0===t.indexOf(Sa)?n.type=ga.MIXIN_RULE:n.type=ga.STYLE_RULE}let o=n.rules;if(o)for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)r(e,i);return n}(function(n){var r,i,s=new _a;s.start=0,s.end=n.length;let o=s;for(let e=0,t=n.length;e<t;e++)n[e]===va?(o.rules||(o.rules=[]),i=(r=o).rules[r.rules.length-1]||null,(o=new _a).start=e+1,o.parent=r,o.previous=i,r.rules.push(o)):n[e]===ba&&(o.end=e+1,o=o.parent||s);return s}(e=e.replace(wa.comments,"").replace(wa.port,"")),e)}const ga={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},va="{",ba="}",wa={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Sa="--",xa="@media",Ca="@",Ea=new Set;function Aa(e,t){return e?("string"==typeof e&&(e=ya(e)),t&&Pa(e,t),function r(e,i,t=""){let s="";if(e.cssText||e.rules){var o=e.rules;if(!o||(n=o[0],Boolean(n)&&Boolean(n.selector)&&0===n.selector.indexOf(Sa)))s=(s=(s=i?e.cssText:e.cssText.replace(wa.customProp,"").replace(wa.mixinProp,"").replace(wa.mixinApply,"").replace(wa.varApply,"")).trim())&&" "+s+"\n";else for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)s=r(e,i,s)}var n;return s&&(e.selector&&(t+=e.selector+" "+va+"\n"),t+=s,e.selector)&&(t+=ba+"\n\n"),t}(e,ei)):""}function Ta(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=ya(e.textContent)),e.__cssRules||null}function Pa(n,r,i,s){if(n){let e=!1,t=n.type;s&&t===ga.MEDIA_RULE&&(o=n.selector.match(Gr))&&!window.matchMedia(o[1]).matches&&(e=!0),t===ga.STYLE_RULE?r(n):i&&t===ga.KEYFRAMES_RULE?i(n):t===ga.MIXIN_RULE&&(e=!0);var o,a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)Pa(e,r,i,s)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Da="css-build";function ka(e){return""!==(e=e,void 0!==Kr?Kr:(void 0===e.__cssBuild&&((t=e.getAttribute(Da))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Da)return e[1]}return""}(e))&&(n=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(n),e.__cssBuild=t)),e.__cssBuild||""));var t,n}const Oa=/;\s*/m,Ma=/^\s*(initial)|(inherit)\s*$/,Ia=/\s*!important/;class Na{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ba=null;class La{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Na}detectMixin(e){return e=Vr.test(e)||jr.test(e),Vr.lastIndex=0,jr.lastIndex=0,e}gatherStyles(e){var t,n=function(){var t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var r=n[e];if(r.hasAttribute("shady-unscoped")){if(!Zr){{i=void 0;s=void 0;var i=r;var s=i.textContent;if(!Ea.has(s)){Ea.add(s);const i=document.createElement("style");i.setAttribute("shady-unscoped",""),i.textContent=s,document.head.appendChild(i)}}r.parentNode.removeChild(r)}}else t.push(r.textContent),r.parentNode.removeChild(r)}return t.join("").trim()}();return n?((t=document.createElement("style")).textContent=n,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=Ta(e);return this.transformRules(n,t),e.textContent=Aa(n),n}transformCustomStyle(e){var t=Ta(e);return Pa(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Aa(t),t}transformRules(e,t){this._currentElement=t,Pa(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,i){return e=e.replace(jr,(e,t,n,r)=>this._produceCssProperties(e,t,n,r,i)),this._consumeCssProperties(e,i)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let r=!1;return Pa(e,e=>{(r=r||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(e,t){for(;i=Vr.exec(e);){var n=i[0],r=i[1],i=i.index,s=i+n.indexOf("@apply"),n=i+n.length,s=e.slice(0,s),n=e.slice(n),o=t?this._fallbacksFromPreviousRules(t):{},r=(Object.assign(o,this._cssTextToMap(s)),this._atApplyToCssProperties(r,o));e=""+s+r+n,Vr.lastIndex=i+r.length}return e}_atApplyToCssProperties(r,i){r=r.replace(Oa,"");let s=[],o=this._map.get(r);if(o||(this._map.set(r,{}),o=this._map.get(r)),o){let e,t,n;this._currentElement&&(o.dependants[this._currentElement]=!0);var a=o.properties;for(e in a)n=i&&i[e],t=[e,": var(",r,"_-_",e],n&&t.push(",",n.replace(Ia,"")),t.push(")"),Ia.test(a[e])&&t.push(" !important"),s.push(t.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){var n=Ma.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,r=!1){let i,s,o=e.split(";"),a={};for(let e,t,n=0;n<o.length;n++)(e=o[n])&&1<(t=e.split(":")).length&&(i=t[0].trim(),s=t.slice(1).join(":"),r&&(s=this._replaceInitialOrInherit(i,s)),a[i]=s);return a}_invalidateMixinEntry(e){if(Ba)for(var t in e.dependants)t!==this._currentElement&&Ba(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var r,i,s,o=t.indexOf("var(");return-1===o?n(t,"","",""):(s=function(n){let r=0;for(let e=o+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),r=t.substring(o+4,s),i=t.substring(0,o),t=e(t.substring(s+1),n),-1===(s=r.indexOf(","))?n(i,r.trim(),"",t):n(i,r.substring(0,s).trim(),r.substring(s+1).trim(),t))}(n,(e,t)=>{t&&this._map.get(t)&&(r=`@apply ${t};`)}),!r)return e;let s=this._consumeCssProperties(""+r,i),o=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(s,!0),l=a,h=this._map.get(t),u=h&&h.properties;u?l=Object.assign(Object.create(u),a):this._map.set(t,l);let d,c,p=[],m=!1;for(d in l)c=a[d],void 0===c&&(c="initial"),!u||d in u||(m=!0),p.push(`${t}_-_${d}: `+c);return m&&this._invalidateMixinEntry(h),h&&(h.properties=l),""+(o=n?e+";"+o:o)+p.join("; ")+";"}}La.prototype._separator="_-_",Object.defineProperty(La.prototype,"invalidCallback",{get:()=>Ba,set(e){Ba=e}});const Ra={},Ha="_applyShimCurrentVersion",Fa="_applyShimNextVersion",za="_applyShimValidatingVersion",Ya=Promise.resolve();function Ua(e){var e=Ra[e];e&&((e=e)[Ha]=e[Ha]||0,e[za]=e[za]||0,e[Fa]=(e[Fa]||0)+1)}function $a(e){return e[Ha]===e[Fa]}const Wa=new La;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const U=new class{constructor(){this.customStyleInterface=null,Wa.invalidCallback=Ua}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Wa.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),ka(e)||(Ra[t]=e,t=Wa.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Wa.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&qr(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var r=e.children||e.childNodes;for(let e=0;e<r.length;e++)this.styleSubtree(r[e])}}styleElement(e){this.ensure();var t,n,r=function(e){let t=e.localName,n="",r="";return t?n=-1<t.indexOf("-")?t:(r=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e)["is"],i=Ra[r];i&&ka(i)||!i||$a(i)||(!$a(n=i)&&n[za]===n[Fa]||(this.prepareTemplate(i,r),(t=i)[za]=t[Fa],t._validating)||(t._validating=!0,Ya.then(function(){t[Ha]=t[Fa],t._validating=!1})),(n=e.shadowRoot)&&(r=n.querySelector("style"))&&(r.__cssRules=i._styleAst,r.textContent=Aa(i._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};s=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){U.flushCustomStyles(),U.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){U.flushCustomStyles(),U.styleSubtree(e,t)},styleElement(e){U.flushCustomStyles(),U.styleElement(e)},styleDocument(e){U.flushCustomStyles(),U.styleDocument(e)},getComputedStyleValue:(e,t)=>Xr(e,t),flushCustomStyles(){U.flushCustomStyles()},nativeCss:ei,nativeShadow:Zr,cssBuild:Kr,disableRuntime:an},s&&(window.ShadyCSS.CustomStyleInterface=s)}window.ShadyCSS.ApplyShim=Wa;const ja=/:host\(:dir\((ltr|rtl)\)\)/g,Va=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ga=/:dir\((?:ltr|rtl)\)/,qa=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Xa=[];let Za=null,Ja="";function Ka(){Ja=document.documentElement.getAttribute("dir")}function Qa(e){e.__autoDirOptOut||e.setAttribute("dir",Ja)}function el(){Ka(),Ja=document.documentElement.getAttribute("dir");for(let e=0;e<Xa.length;e++)Qa(Xa[e])}const tl=m(e=>{qa||Za||(Ka(),(Za=new MutationObserver(el)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=ws(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!qa&&Ga.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(ja,':host([dir="$1"])')).replace(Va,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Za&&Za.takeRecords().length&&el(),Xa.push(this),Qa(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=Xa.indexOf(this))&&Xa.splice(e,1)}}return t.__activateDir=!1,t});let nl=!1,rl=[],il=[];function sl(){nl=!0,requestAnimationFrame(function(){nl=!1;for(var e=rl;e.length;)ol(e.shift());setTimeout(function(){var n=il;for(let e=0,t=n.length;e<t;e++)ol(n.shift())})})}function ol(e){var t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function al(e,t,n){nl||sl(),il.push([e,t,n])}function ll(){document.body.removeAttribute("unresolved")}function hl(e,t,n){return{index:e,removed:t,addedCount:n}}"interactive"===document.readyState||"complete"===document.readyState?ll():window.addEventListener("DOMContentLoaded",ll);const ul=0,dl=1,cl=2,pl=3;function ml(a,l){{var h=a,u=0,d=a.length,c=l,p=0,m=l.length;let t,e=0,n=0,r=Math.min(d-u,m-p);if(0==u&&0==p&&(e=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(h,c,r)),d==h.length&&m==c.length&&(n=function(e,t,n){let r=e.length,i=t.length,s=0;for(;s<n&&e[--r]===t[--i];)s++;return s}(h,c,r-e)),p+=e,m-=n,(d-=n)-(u+=e)==0&&m-p==0)return[];if(u==d){for(t=hl(u,[],0);p<m;)t.removed.push(c[p++]);return[t]}if(p==m)return[hl(u,[],d-u)];var f=function(e){let t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];for(;0<t||0<n;){var s,o,a,l;0==t?(i.push(cl),n--):0==n?(i.push(pl),t--):(s=e[t-1][n-1],(l=(o=e[t-1][n])<(a=e[t][n-1])?o<s?o:s:a<s?a:s)==s?(s==r?i.push(ul):(i.push(dl),r=s),t--,n--):r=l==o?(i.push(pl),t--,o):(i.push(cl),n--,a))}return i.reverse(),i}(function(n,r,i,s){var o,a,l=m-s+1,h=d-r+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(h),u[e][0]=e;for(let e=0;e<h;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<h;e++)n[r+e-1]===i[s+t-1]?u[t][e]=u[t-1][e-1]:(o=u[t-1][e]+1,a=u[t][e-1]+1,u[t][e]=o<a?o:a);return u}(h,u,c,p));t=void 0;let i=[],s=u,o=p;for(let e=0;e<f.length;e++)switch(f[e]){case ul:t&&(i.push(t),t=void 0),s++,o++;break;case dl:(t=t||hl(s,[],0)).addedCount++,s++,t.removed.push(c[o]),o++;break;case cl:(t=t||hl(s,[],0)).addedCount++,s++;break;case pl:(t=t||hl(s,[],0)).removed.push(c[o]),o++}return t&&i.push(t),i}}function fl(e){return"slot"===e.localName}let _l=class{static getFlattenedNodes(e){var t=b(e);return fl(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>fl(e)?b(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){fl(this._target)?this._listenSlots([this._target]):b(this._target).children&&(this._listenSlots(b(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){fl(this._target)?this._unlistenSlots([this._target]):b(this._target).children&&(this._unlistenSlots(b(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,ms.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=ml(n,this._effectiveNodes);for(let n,e=0;e<i.length&&(n=i[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<i.length&&(t=i[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];fl(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];fl(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};function yl(e,t){return vl.call(e,t)}const gl=Element.prototype,vl=gl.matches||gl.matchesSelector||gl.mozMatchesSelector||gl.msMatchesSelector||gl.oMatchesSelector||gl.webkitMatchesSelector;class E{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new _l(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return b(n).importNode(e,t)}getEffectiveChildNodes(){return _l.getFlattenedNodes(this.node)}queryDistributedElements(r){var i=this.getEffectiveChildNodes(),s=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&yl(e,r)&&s.push(e);return s}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function bl(n,r){for(let t=0;t<r.length;t++){let e=r[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class wl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E;let Sl=E;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class U extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(E.prototype).forEach(e=>{"activeElement"!=e&&(U.prototype[e]=E.prototype[e])}),bl(U.prototype,["classList"]),Sl=U,Object.defineProperties(wl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&Tl(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(Tl(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var xl=E.prototype;var Cl=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<Cl.length;t++){let e=Cl[t];xl[e]=function(){return this.node[e].apply(this.node,arguments)}}}bl(E.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var El=E.prototype;var Al=["textContent","innerHTML","className"];for(let e=0;e<Al.length;e++){let t=Al[e];Object.defineProperty(El,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const Tl=function(e){if((e=e||document)instanceof Sl)return e;if(e instanceof wl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?wl:Sl)(e),e.__domApi=t),t},Pl=window.ShadyDOM,Dl=window.ShadyCSS;function kl(e,t){return b(e).getRootNode()===t}const Ol="disable-upgrade",Ml=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Il=m(e=>{e=oo(e);let t=Ml(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Ol)}_initializeProperties(){this.hasAttribute(Ol)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,r){e==Ol?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Nl="disable-upgrade";let Bl=window.ShadyCSS;const Ll=m(e=>{const t=jo(oo(e)),n=so?t:tl(t),r=Ml(n),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Nl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;xi&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;xi&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return xi&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(Nl)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,r){t!==n&&(e==Nl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){var e;fi&&this.hasAttribute(Nl)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),xi&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var r=n[e];this.__attributeReaction(r.name,null,r.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,r){if(!n||!r)return n||r;var i=Object.getOwnPropertyNames(r);for(let e,t=0;t<i.length&&(e=i[t]);t++){var s=Object.getOwnPropertyDescriptor(r,e);s&&Object.defineProperty(n,e,s)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed}),e.detail=t,t=n.node||this;return b(t).dispatchEvent(e),e}listen(e,t,n){e=e||this;let r=this.__boundListeners||(this.__boundListeners=new WeakMap),i=r.get(e);i||(i={},r.set(e,i));var s=t+n;i[s]||(i[s]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;var r=this.__boundListeners&&this.__boundListeners.get(e),n=t+n,i=r&&r[n];i&&(this._removeEventListenerFromNode(e,t,i),r[n]=null)}setScrollDirection(e,t){Ho(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=Tl(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return Tl(this).getEffectiveChildNodes()}queryDistributedElements(e){return Tl(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var n=this.getEffectiveChildNodes(),r=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&r.push(e.textContent);return r.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?Tl(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,n=!1]=[e,t];if(Pl&&Dl&&Pl.handlesDynamicScoping){const i=Dl.ScopingShim;if(i){const s=i.scopeForNode(e),o=b(e).getRootNode(),a=e=>{if(kl(e,o)){var t=Array.from(Pl.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var n,r=t[e];kl(r,o)&&(n=i.currentScopeForNode(r))!==s&&(""!==n&&i.unscopeNode(r,n),i.scopeNode(r,s))}}};if(a(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var r=n.addedNodes[e];r.nodeType===Node.ELEMENT_NODE&&a(r)}}});return n.observe(e,{childList:!0,subtree:!0}),n}}}return null}getComputedStyleValue(e){return Bl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=S.debounce(this._debouncers[e],0<n?ds.after(n):ms,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?ds.run(e.bind(this),t):~ms.run(e.bind(this))}cancelAsync(e){e<0?ms.cancel(~e):ds.cancel(e)}create(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}elementMatches(e,t){return yl(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(b(n).setAttribute(e,""),!0):(b(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,r){this.transform("translate3d("+e+","+t+","+n+")",r=r||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=w(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return s.prototype.is="",s}),Rl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Hl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Fl=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Hl);function zl(e,t,n,r){var i,s=t,o=e,a=r,l=s._noAccessors,h=Object.getOwnPropertyNames(s);for(let e=0;e<h.length;e++){var u,d=h[e];d in a||(l?o[d]=s[d]:(u=Object.getOwnPropertyDescriptor(s,d))&&(u.configurable=!0,Object.defineProperty(o,d,u)))}for(i in Rl)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Yl(e,t){for(const i in t){var n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const Ul=Ll(HTMLElement);function $l(i,e,t){let s;const o={};class r extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(s)for(let e,t=0;t<s.length;t++)(e=s[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);i.properties&&this.createProperties(i.properties),i.observers&&this.createObservers(i.observers,i.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(s)for(let e=0;e<s.length;e++)Yl(t,s[e].properties);return Yl(t,i.properties),t}static get observers(){let n=[];if(s)for(let e,t=0;t<s.length;t++)(e=s[t]).observers&&(n=n.concat(e.observers));return n=i.observers?n.concat(i.observers):n}created(){super.created();var t=o.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),fi&&a(e);var n=Object.getPrototypeOf(this);let t=o.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=o.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=o.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var r in n)this._addMethodEventListenerToNode(this,r,n[r])}}_ensureAttributes(){var t=o.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,r=t[e];for(n in r)this._ensureAttribute(n,r[n])}super._ensureAttributes()}ready(){super.ready();var t=o.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=o.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=o.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();var i=o.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}var n;t&&(Array.isArray(t)||(t=[t]),n=e.prototype.behaviors,s=function t(n,r,i){r=r||[];for(let e=n.length-1;0<=e;e--){var s=n[e];s?Array.isArray(s)?t(s,r):r.indexOf(s)<0&&(!i||i.indexOf(s)<0)&&r.unshift(s):console.warn("behavior is null, check for missing or 404 import")}return r}(t,null,n),r.prototype.behaviors=n?n.concat(t):s);const a=e=>{if(s){var t=e,n=s,r=o;for(let e=0;e<n.length;e++)zl(t,n[e],r,Fl)}zl(e,i,o,Hl)};return fi||a(r.prototype),r.generatedFrom=i,r}function Wl(e){var t="function"==typeof e?e:Wl.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function jl(e,t,n,r,i){let s;i=(r=i&&(s="object"==typeof n&&null!==n)?e.__dataTemp[t]:r)!==n&&(r==r||n==n);return s&&i&&(e.__dataTemp[t]=n),i}Wl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Ul):Ul;return(t=$l(e,t,e.behaviors)).is=t.prototype.is=e.is,t};o=m(e=>class extends e{_shouldPropertyChange(e,t,n){return jl(this,e,t,n,!0)}}),e=m(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return jl(this,e,t,n,this.mutableData)}});o._mutablePropertyChange=jl;let Vl=null;function Gl(){return Vl}Gl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Gl,writable:!0}});const ql=no(Gl),Xl=o(ql);function Zl(t,n){for(let e=0;e<n.length;e++){var r=n[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),b(b(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class Jl extends no(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,n){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,n(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,n)}_showHideChildren(e){Zl(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Jl.prototype.__dataHost,Jl.prototype.__templatizeOptions,Jl.prototype._methodHost,Jl.prototype.__templatizeOwner,Jl.prototype.__hostProps;const Kl=o(Jl);function Ql(e){e=e.__dataHost;return e&&e._methodHost||e}function eh(e,t,n){let r=n.mutableData?Kl:Jl;var i,s=class extends(r=nh.mixin?nh.mixin(r):r){},o=(s.prototype.__templatizeOptions=n,s.prototype._bindTemplate(e),s),a=t,l=n,h=a.hostProps||{};for(i in l.instanceProps){delete h[i];var u=l.notifyInstanceProp;u&&o.prototype._addPropertyEffect(i,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((i,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in h)a.hasHostProps||(a.hasHostProps=!0),o.prototype._addPropertyEffect(d,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}});return s}function th(t,n,r,i){var s=r.forwardHostProp;if(s&&n.hasHostProps){var o,a="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(a){class i extends(r.mutableData?Xl:ql){}e=n.templatizeTemplateClass=i}else{const r=t.constructor;class i extends r{}e=n.templatizeTemplateClass=i}for(o in n.hostProps)e.prototype._addPropertyEffect("_host_"+o,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring(6),n[t])}}((o,s))}),e.prototype._createNotifyingProperty("_host_"+o);if(_i&&i){var l=r;const d=i.constructor._properties,c=n["propertyEffects"],p=l["instanceProps"];for(var h in c)if(!(d[h]||p&&p[h])){const l=c[h];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)r=e,Vl=t,Object.setPrototypeOf(t,r.prototype),new r,Vl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=n.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function nh(e,t,n){if(pi&&!Ql(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:Jl)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=eh(e,r,n),r.templatizeInstanceClass=i);var s=Ql(e),n=(th(e,r,n,s),class extends i{});return n.prototype._methodHost=s,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let rh=!1;function ih(){var e;return fi&&!li&&(rh||(rh=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}i=jo(e(no(HTMLElement))),customElements.define("dom-bind",class extends i{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),pi)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,r){this.mutableData=!0}connectedCallback(){ih()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),ln=e(ao);class sh extends ln{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:!Si,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(),ih()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=b(b(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=nh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(n,r){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(n,r)},notifyInstanceProp:function(e,t,n){var r,i;((r=this.as)===(i=t)||qi(r,i)||Xi(r,i))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=n),i=Zi(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(i,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=S.debounce(this.__renderDebouncer,0<t?ds.after(t):ms,e.bind(this)),ho(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Xo()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),Si&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(r[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let n=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,n){var r=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){var s=this.__instances[i],o=n[i],a=e[o];r[o]=i,s?(s._setPendingProperty(this.as,a),s._setPendingProperty(this.indexAs,i),s._setPendingProperty(this.itemsIndexAs,o),s._flushProperties()):this.__insertInstance(a,i,o)}for(let e=this.__instances.length-1;e>=i;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],n=b(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];n.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,n){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return b(b(this).parentNode).insertBefore(e.root,n),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),n=e.indexOf("."),r=n<0?e:e.substring(0,n);if(r==parseInt(r,10))return e=n<0?"":e.substring(n+1),this.__handleObservedPaths(e),n=this.__itemsIdxToInstIdx[r],(r=this.__instances[n])&&(n=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(n,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,n=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==n)return t;r=t.__dataHost}else r=b(r).parentNode;return null}}customElements.define(sh.is,sh);class oh extends ao{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=S.debounce(this.__renderDebouncer,ms,()=>this.__render()),ho(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),ih()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=b(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&b(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)b(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){Xo()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),Si&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}hn=wi?class extends oh{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(pi&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r=r||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=Gi(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Zl(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends oh{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=nh(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Gi(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var n=this.__instance.children;if(n&&n.length){var r=b(n[0]).parentNode;if(r){r=b(r);for(let e,t=0;t<n.length&&(e=n[t]);t++)r.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(hn.is,hn);class ah extends m(e=>{return class extends oo(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var n,r,i=t.path;i==JSCompiler_renameProperty("items",this)?(r=t.base||[],n=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),n&&(n=ml(r,n),this.__applySplices(n)),this.__lastItems=r,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(n=i.slice((JSCompiler_renameProperty("items",this)+".").length),r=parseInt(n,10),n.indexOf(".")<0&&n==r&&this.__deselectChangedIdx(r))}__applySplices(t){let r=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];r.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?r.set(t,e+n.addedCount-n.removed.length):r.set(t,-1))});for(let e=0;e<n.addedCount;e++){var i=n.index+e;r.has(this.items[i])&&r.set(this.items[i],i)}}this.__updateLinks();let n=0;r.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,r.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let r=this.__selectedIndexForItemIndex(e);if(0<=r){let n=0;this.__selectedMap.forEach((e,t)=>{r==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(ao){static get is(){return"array-selector"}static get template(){return null}}customElements.define(ah.is,ah),Ll(HTMLElement).prototype,Wl({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const lh=Element.prototype,hh=lh.matches||lh.matchesSelector||lh.mozMatchesSelector||lh.msMatchesSelector||lh.oMatchesSelector||lh.webkitMatchesSelector;class uh{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return hh.call(e,"input, select, textarea, button, object")?hh.call(e,":not([disabled])"):hh.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&hh.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var n=this._normalizedTabIndex(e);let r,i=0<n;if(0<=n&&t.push(e),r="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<r.length;e++)i=this._collectTabbableNodes(r[e],t)||i;return i}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,n=e.length;return n<2?e:(n=Math.ceil(n/2),t=this._sortByTabIndex(e.slice(0,n)),e=this._sortByTabIndex(e.slice(n)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var n=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let dh=0;const ch={};class ph extends Go(na(ao)){static get template(){return p`
|
1277
1277
|
<style>
|
1278
1278
|
:host {
|
1279
1279
|
z-index: 200;
|
@@ -1349,7 +1349,7 @@
|
|
1349
1349
|
<slot></slot>
|
1350
1350
|
</div>
|
1351
1351
|
</div>
|
1352
|
-
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},instanceProps:{type:Object},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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),this._observer=new _l(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_detectIosNavbar(){var e,t,n;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight,t&&e<n?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){var t;-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._last&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;this._last&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),al(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}_enqueueAnimation(e,t){const n=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[n])};this[n]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof ph&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===ph.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ph.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=ph.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t,n){this._removeOldContent(),t._Templatizer||(t._Templatizer=nh(t,this,{instanceProps:n,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);n=t._templateRoot||(t._templateRoot=t.getRootNode());if(n!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(n.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(n.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=ch[e]||(e=>{const t="vaadin-overlay-content-"+ ++dh,n=document.createElement("template"),r=document.createElement("style");r.textContent=":host { display: block; }"+e,n.content.appendChild(r),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,t);var i=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(n.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(i.is,i),ch[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,n,r){e!==t?this.template=void 0:n!==r&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,n,r,i,s){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var o=this._oldOwner!==n||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=n,this._oldInstanceProps!==i||this._oldTemplate!==e),n=(this._oldInstanceProps=i,this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==s);if(this._oldOpened=s,e&&r)this._stampOverlayTemplate(e,i);else if(t&&(n||a||o)){if(this.content=this,n)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);s&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){var n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}_getFocusableElements(){return uh.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=ph.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(ph.is,ph);class mh extends Il(ph){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(mh.is,mh);var fh={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},_h={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},yh={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},gh=/[a-z0-9*]/,vh=/U\+/,bh=/^arrow/,wh=/^space(bar)?/,Sh=/^escape$/;function xh(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||wh.test(e)?n="space":Sh.test(e)?n="esc":1==e.length?t&&!gh.test(e)||(n=e):n=bh.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function Ch(e,t){return n=t,r=e.hasModifiers,(n.key?xh(n.key,r):n.detail&&n.detail.key?xh(n.detail.key,r):(r="",(r=(i=n.keyIdentifier)?i in fh?fh[i]:(vh.test(i)?(i=parseInt(i.replace("U+","0x"),16),String.fromCharCode(i)):i).toLowerCase():r)||(i=n.keyCode,r="",r=Number(i)?65<=i&&i<=90?String.fromCharCode(32+i):112<=i&&i<=123?"f"+(i-112+1):48<=i&&i<=57?String(i-48):96<=i&&i<=105?String(i-96):_h[i]:r)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}Boolean;function Eh(e,t){for(var n=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),n=t[0],t=t[1];return n in yh?(e[yh[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),r=0;r<n.length;++r)if(Ch(n[r],e))return 1}const Th=Wl({_template:p`
|
1352
|
+
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},instanceProps:{type:Object},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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),this._observer=new _l(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_detectIosNavbar(){var e,t,n;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight,t&&e<n?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){var t;-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._last&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;this._last&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),al(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}_enqueueAnimation(e,t){const n=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[n])};this[n]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof ph&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===ph.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ph.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=ph.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t,n){this._removeOldContent(),t._Templatizer||(t._Templatizer=nh(t,this,{instanceProps:n,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);n=t._templateRoot||(t._templateRoot=t.getRootNode());if(n!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(n.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(n.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=ch[e]||(e=>{const t="vaadin-overlay-content-"+ ++dh,n=document.createElement("template"),r=document.createElement("style");r.textContent=":host { display: block; }"+e,n.content.appendChild(r),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,t);var i=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(n.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(i.is,i),ch[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,n,r){e!==t?this.template=void 0:n!==r&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,n,r,i,s){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var o=this._oldOwner!==n||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=n,this._oldInstanceProps!==i||this._oldTemplate!==e),n=(this._oldInstanceProps=i,this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==s);if(this._oldOpened=s,e&&r)this._stampOverlayTemplate(e,i);else if(t&&(n||a||o)){if(this.content=this,n)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);s&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){var n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}_getFocusableElements(){return uh.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=ph.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(ph.is,ph);class mh extends Il(ph){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(mh.is,mh);var fh={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},_h={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},yh={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},gh=/[a-z0-9*]/,vh=/U\+/,bh=/^arrow/,wh=/^space(bar)?/,Sh=/^escape$/;function xh(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||wh.test(e)?n="space":Sh.test(e)?n="esc":1==e.length?t&&!gh.test(e)||(n=e):n=bh.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function Ch(e,t){return n=t,r=e.hasModifiers,(n.key?xh(n.key,r):n.detail&&n.detail.key?xh(n.detail.key,r):(r="",(r=(i=n.keyIdentifier)?i in fh?fh[i]:(vh.test(i)?(i=parseInt(i.replace("U+","0x"),16),String.fromCharCode(i)):i).toLowerCase():r)||(i=n.keyCode,r="",r=Number(i)?65<=i&&i<=90?String.fromCharCode(32+i):112<=i&&i<=123?"f"+(i-112+1):48<=i&&i<=57?String(i-48):96<=i&&i<=105?String(i-96):_h[i]:r)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}Boolean;function Eh(e,t){for(var n=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),n=t[0],t=t[1];return n in yh?(e[yh[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),r=0;r<n.length;++r)if(Ch(n[r],e))return 1}const Ah=Wl({_template:p`
|
1353
1353
|
<style>
|
1354
1354
|
:host {
|
1355
1355
|
display: inline-block;
|
@@ -1358,7 +1358,7 @@
|
|
1358
1358
|
}
|
1359
1359
|
</style>
|
1360
1360
|
<div aria-live$="[[mode]]">[[_text]]</div>
|
1361
|
-
`,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){
|
1361
|
+
`,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){Ah.instance||(Ah.instance=this),document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async(function(){this._text=e},this.timeout)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}}),A=(Ah.instance=null,Ah.requestAvailability=function(){Ah.instance||(Ah.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(Ah.instance):document.addEventListener("load",function(){document.body.appendChild(Ah.instance)})},class{static _getISOWeekNumber(e){var t=e.getDay(),t=4-(t=0===t?7:t),e=new Date(e.getTime()+24*t*3600*1e3),t=new Date(0,0),e=(t.setFullYear(e.getFullYear()),e.getTime()-t.getTime()),t=Math.round(e/864e5);return Math.floor(t/7+1)}static _dateEquals(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}static _dateAllowed(e,t,n){return(!t||t<=e)&&(!n||e<=n)}static _getClosestDate(n,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(n.getTime()-t.getTime())<Math.abs(e.getTime()-n.getTime()))?t:e)}static _extractDateParts(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}});class Th extends Go(jo(ao)){static get template(){return p`
|
1362
1362
|
<style>
|
1363
1363
|
:host {
|
1364
1364
|
display: block;
|
@@ -1424,7 +1424,7 @@
|
|
1424
1424
|
</div>
|
1425
1425
|
</div>
|
1426
1426
|
</div>
|
1427
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:!0},focusedDate:Date,showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)"]}_dateEquals(e,t){return
|
1427
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:!0},focusedDate:Date,showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)"]}_dateEquals(e,t){return A._dateEquals(e,t)}_dateAllowed(e,t,n){return A._dateAllowed(e,t,n)}_isDisabled(e,t,n){var r=new Date(0,0),i=(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1),new Date(0,0));return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()+1),i.setDate(0),!(t&&n&&t.getMonth()===n.getMonth()&&t.getMonth()===e.getMonth()&&0<=n.getDate()-t.getDate()||this._dateAllowed(r,t,n)||this._dateAllowed(i,t,n))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return this.i18n.formatTitle(t[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>this._notTapping=!0,300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,n,t,r){if(void 0!==e&&void 0!==n&&void 0!==t&&void 0!==r)return e=this._applyFirstDayOfWeek(e,r),n=this._applyFirstDayOfWeek(n,r),e.map((e,t)=>({weekDay:e,weekDayShort:n[t]}))}_getDate(e){return e?e.getDate():""}_showWeekNumbersChanged(e,t){e&&1===t?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}_showWeekSeparator(e,t){return e&&1===t}_isToday(e){return this._dateEquals(new Date,e)}_getDays(e,t){if(void 0!==e&&void 0!==t){var n=new Date(0,0);for(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);n.getDay()!==t;)this._dateAdd(n,-1);for(var r=[],i=n.getMonth(),s=e.getMonth();n.getMonth()===s||n.getMonth()===i;)r.push(n.getMonth()===s?new Date(n.getTime()):null),this._dateAdd(n,1);return r}}_getWeekNumber(e,t){if(void 0!==e&&void 0!==t)return e=e||t.reduce((e,t)=>!e&&t?t:e),A._getISOWeekNumber(e)}_getWeekNumbers(t){return t.map(e=>this._getWeekNumber(e,t)).filter((e,t,n)=>n.indexOf(e)===t)}_handleTap(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}_getRole(e){return e?"button":"presentation"}_getAriaLabel(e){var t;return e?(t=this._getDate(e)+" "+this.i18n.monthNames[e.getMonth()]+" "+e.getFullYear()+", "+this.i18n.weekdays[e.getDay()],this._isToday(e)&&(t+=", "+this.i18n.today),t):""}_getAriaDisabled(e,t,n){if(void 0!==e&&void 0!==t&&void 0!==n)return this._dateAllowed(e,t,n)?"false":"true"}}customElements.define(Th.is,Th);class Ph extends ao{static get template(){return p`
|
1428
1428
|
<style>
|
1429
1429
|
:host {
|
1430
1430
|
display: block;
|
@@ -1471,7 +1471,7 @@
|
|
1471
1471
|
<div class="buffer"></div>
|
1472
1472
|
<div id="fullHeight"></div>
|
1473
1473
|
</div>
|
1474
|
-
`}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=Array.prototype.slice.call(this.root.querySelectorAll(".buffer")),this.$.fullHeight.style.height=2*this._initialScroll+"px";var e=this.querySelector("template");this._TemplateClass=nh(e,this,{forwardHostProp:function(t,n){"index"!==t&&this._buffers.forEach(e=>{[].forEach.call(e.children,e=>{e._itemWrapper.instance[t]=n})})}}),-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&(this.$.scroller.tabIndex=-1)}_activated(e){e&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[].forEach.call(e.children,e=>this._ensureStampedInstance(e._itemWrapper))},this),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform="translate3d(0, "+this._buffers[e].translateY+"px, 0)",this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,n;this._scrollDisabled||(((n=this.$.scroller.scrollTop)<this._bufferHeight||n>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.root.querySelector(".buffer").offsetTop,t=n>this._buffers[1].translateY+this.itemHeight+e,n=n<this._buffers[0].translateY+this.itemHeight+e,(t||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=S.debounce(this._debouncerScrollFinish,ds.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(this.position=this.position)}))}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?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))}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}get itemHeight(){var e,t;return this._itemHeightVal||(window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),t=window.ShadyCSS?window.ShadyCSS.getComputedStyleValue(this,"--vaadin-infinite-scroller-item-height"):getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=S.debounce(this._debouncerUpdateClones,ds.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){var i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(var t=0;t<this.bufferSize;t++){const t=document.createElement("div");t.style.height=this.itemHeight+"px",t.instance={};var n="vaadin-infinite-scroller-item-content-"+(Ph._contentIndex=Ph._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",n),r._itemWrapper=t,e.appendChild(r),t.setAttribute("slot",n),this.appendChild(t),Xo(),setTimeout(()=>{this._isVisible(t,i)&&this._ensureStampedInstance(t)},1)}},this),setTimeout(()=>{al(this,this._finishInit.bind(this))},1)}_ensureStampedInstance(t){var n;t.firstElementChild||(n=t.instance,t.instance=new this._TemplateClass({}),t.appendChild(t.instance.root),Object.keys(n).forEach(e=>{t.instance.set(e,n[e])}))}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;var i=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{var n;e.updated||(n=this._firstIndex+this.bufferSize*t,[].forEach.call(e.children,(e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,i)||(e.instance.index=n+t)}),e.updated=!0)},this)}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}customElements.define(Ph.is,Ph);an=document.createElement("template");an.innerHTML='<dom-module id="vaadin-date-picker-overlay-styles" theme-for="vaadin-date-picker-overlay">\n <template>\n <style>\n :host {\n align-items: flex-start;\n justify-content: flex-start;\n }\n\n :host([bottom-aligned]) {\n justify-content: flex-end;\n }\n\n :host([right-aligned]) {\n align-items: flex-end;\n }\n\n :host([right-aligned][dir="rtl"]) {\n align-items: flex-start;\n }\n\n [part="overlay"] {\n display: flex;\n flex: auto;\n }\n\n [part~="content"] {\n flex: auto;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(an.content);class Dh extends Go(jo(
|
1474
|
+
`}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=Array.prototype.slice.call(this.root.querySelectorAll(".buffer")),this.$.fullHeight.style.height=2*this._initialScroll+"px";var e=this.querySelector("template");this._TemplateClass=nh(e,this,{forwardHostProp:function(t,n){"index"!==t&&this._buffers.forEach(e=>{[].forEach.call(e.children,e=>{e._itemWrapper.instance[t]=n})})}}),-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&(this.$.scroller.tabIndex=-1)}_activated(e){e&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[].forEach.call(e.children,e=>this._ensureStampedInstance(e._itemWrapper))},this),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform="translate3d(0, "+this._buffers[e].translateY+"px, 0)",this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,n;this._scrollDisabled||(((n=this.$.scroller.scrollTop)<this._bufferHeight||n>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.root.querySelector(".buffer").offsetTop,t=n>this._buffers[1].translateY+this.itemHeight+e,n=n<this._buffers[0].translateY+this.itemHeight+e,(t||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=S.debounce(this._debouncerScrollFinish,ds.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(this.position=this.position)}))}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?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))}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}get itemHeight(){var e,t;return this._itemHeightVal||(window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),t=window.ShadyCSS?window.ShadyCSS.getComputedStyleValue(this,"--vaadin-infinite-scroller-item-height"):getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=S.debounce(this._debouncerUpdateClones,ds.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){var i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(var t=0;t<this.bufferSize;t++){const t=document.createElement("div");t.style.height=this.itemHeight+"px",t.instance={};var n="vaadin-infinite-scroller-item-content-"+(Ph._contentIndex=Ph._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",n),r._itemWrapper=t,e.appendChild(r),t.setAttribute("slot",n),this.appendChild(t),Xo(),setTimeout(()=>{this._isVisible(t,i)&&this._ensureStampedInstance(t)},1)}},this),setTimeout(()=>{al(this,this._finishInit.bind(this))},1)}_ensureStampedInstance(t){var n;t.firstElementChild||(n=t.instance,t.instance=new this._TemplateClass({}),t.appendChild(t.instance.root),Object.keys(n).forEach(e=>{t.instance.set(e,n[e])}))}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;var i=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{var n;e.updated||(n=this._firstIndex+this.bufferSize*t,[].forEach.call(e.children,(e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,i)||(e.instance.index=n+t)}),e.updated=!0)},this)}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}customElements.define(Ph.is,Ph);an=document.createElement("template");an.innerHTML='<dom-module id="vaadin-date-picker-overlay-styles" theme-for="vaadin-date-picker-overlay">\n <template>\n <style>\n :host {\n align-items: flex-start;\n justify-content: flex-start;\n }\n\n :host([bottom-aligned]) {\n justify-content: flex-end;\n }\n\n :host([right-aligned]) {\n align-items: flex-end;\n }\n\n :host([right-aligned][dir="rtl"]) {\n align-items: flex-start;\n }\n\n [part="overlay"] {\n display: flex;\n flex: auto;\n }\n\n [part~="content"] {\n flex: auto;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(an.content);class Dh extends Go(Vo(jo(ao))){static get template(){return p`
|
1475
1475
|
<style>
|
1476
1476
|
:host {
|
1477
1477
|
display: flex;
|
@@ -1650,7 +1650,7 @@
|
|
1650
1650
|
</div>
|
1651
1651
|
|
1652
1652
|
<iron-media-query query="(min-width: 375px)" query-matches="{{_desktopMode}}"></iron-media-query>
|
1653
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Ro(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Ho(this.$.scrollers,"pan-y"),Th.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];T._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(T._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,n,r;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,n=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,r=this.$.monthScroller.position+n-1<e,t?this._scrollToPosition(e,!0):r&&this._scrollToPosition(e-n+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=S.debounce(this._debouncer,ds.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(T._extractDateParts(e)):n}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=e,this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight,this._scrollToPosition(this.$.monthScroller.position+12*e,!0))}_scrollToPosition(e,t){var n,r,i,s;void 0===this._targetPosition?t?(this._targetPosition=e,n=t?300:0,r=0,i=this.$.monthScroller.position,s=e=>{var t,e=e-(r=r||e);e<n?(e=e,t=this._targetPosition-i,t=(e/=n/2)<1?t/2*e*e+i:-t/2*(--e*(e-2)-1)+i,this.$.monthScroller.position=t,window.requestAnimationFrame(s)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:i}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(s)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{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()}}_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)")}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],n=0;n<t.length;n++){var r=t[n];if(Eh(e,r))return r}}_onKeydown(e){var t,n=this._currentlyFocusedDate(),r=0<=e.composedPath().indexOf(this.$.todayButton),i=0<=e.composedPath().indexOf(this.$.cancelButton),s=!r&&!i,o=this._eventKey(e);if("tab"===o){e.stopPropagation();const n=this.hasAttribute("fullscreen"),o=e.shiftKey;n?e.preventDefault():o&&s||!o&&i?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):o&&r?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(o)switch(e.preventDefault(),e.stopPropagation(),o){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":s&&this._moveFocusByDays(1);break;case"left":s&&this._moveFocusByDays(-1);break;case"enter":s||i?this._close():r&&this._onTodayTap();break;case"space":i?this._close():r?this._onTodayTap():(t=this.focusedDate,T._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(n,"minDate");break;case"end":this._moveFocusInsideMonth(n,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(T._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate()+e),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this._currentlyFocusedDate(),n=new Date(0,0),r=(n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e),n.getMonth());n.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),n.getMonth()!==r&&n.setDate(0),this._dateAllowed(n,this.minDate,this.maxDate)?this.focusedDate=n:this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var n=new Date(0,0);n.setFullYear(e.getFullYear()),"minDate"===t?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(e,this.minDate,this.maxDate)?this._focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,n){return(!t||t<=e)&&(!n||e<=n)}_isTodayAllowed(e,t){var n=new Date,r=new Date(0,0);return r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(n.getDate()),this._dateAllowed(r,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Dh.is,Dh);var kh=new Set;const Oh={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(kh.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():li||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=Al(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(kh.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?kh.delete(this):kh.add(this)}};class Mh extends ua(Zo(Go(jo((s=Vo(ao),class extends(o=[Oh],s=s,$l({},Rl(s),o)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",clear:"Clear",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let n,r=t.getMonth(),i=t.getFullYear();if(3===e.length?(i=parseInt(e[2]),e[2].length<3&&0<=i&&(i+=i<50?2e3:1900),r=parseInt(e[0])-1,n=parseInt(e[1])):2===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:r,year:i}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Ro(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,n){return!this._inputElement||e||t||!n.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let n="",r="0000",i=e.getFullYear();return i<0?(i=-i,n="-",r="000000"):1e4<=e.getFullYear()&&(n="+",r="000000"),[n+t(i,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var n;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(T._extractDateParts(e)),(n=this._formatISO(e))!==this.value&&(this.validate(t),this.value=n),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(T._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,n){t?(t=this._parseDate(t))?T._dateEquals(this[e],t)||(this[e]=t):this.value=n:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,n;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(n=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=n-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(n=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=n-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||T._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=T._getClosestDate(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_preventWebkitOverflowScrollingTouch(e){for(var t,n=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",n.push({element:e,oldInlineValue:t})),e=e.parentElement;return n}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(T._extractDateParts(this._selectedDate)),n=!this._selectedDate||T._dateAllowed(this._selectedDate,this._minDate,this._maxDate),r=!0;return this._inputElement&&(this._inputElement.checkValidity?r=this._inputElement.checkValidity(e):this._inputElement.validate&&(r=this._inputElement.validate(e))),t&&n&&r}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],n=0;n<t.length;n++){var r=t[n];if(Eh(e,r))return r}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,n){e&&(t||n)&&(this.invalid=!T._dateAllowed(e,t,n))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,T._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,n){t&&!n&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return p`
|
1653
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Lo(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Ho(this.$.scrollers,"pan-y"),Ah.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];A._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(A._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,n,r;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,n=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,r=this.$.monthScroller.position+n-1<e,t?this._scrollToPosition(e,!0):r&&this._scrollToPosition(e-n+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=S.debounce(this._debouncer,ds.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(A._extractDateParts(e)):n}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=e,this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight,this._scrollToPosition(this.$.monthScroller.position+12*e,!0))}_scrollToPosition(e,t){var n,r,i,s;void 0===this._targetPosition?t?(this._targetPosition=e,n=t?300:0,r=0,i=this.$.monthScroller.position,s=e=>{var t,e=e-(r=r||e);e<n?(e=e,t=this._targetPosition-i,t=(e/=n/2)<1?t/2*e*e+i:-t/2*(--e*(e-2)-1)+i,this.$.monthScroller.position=t,window.requestAnimationFrame(s)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:i}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(s)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{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()}}_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)")}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],n=0;n<t.length;n++){var r=t[n];if(Eh(e,r))return r}}_onKeydown(e){var t,n=this._currentlyFocusedDate(),r=0<=e.composedPath().indexOf(this.$.todayButton),i=0<=e.composedPath().indexOf(this.$.cancelButton),s=!r&&!i,o=this._eventKey(e);if("tab"===o){e.stopPropagation();const n=this.hasAttribute("fullscreen"),o=e.shiftKey;n?e.preventDefault():o&&s||!o&&i?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):o&&r?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(o)switch(e.preventDefault(),e.stopPropagation(),o){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":s&&this._moveFocusByDays(1);break;case"left":s&&this._moveFocusByDays(-1);break;case"enter":s||i?this._close():r&&this._onTodayTap();break;case"space":i?this._close():r?this._onTodayTap():(t=this.focusedDate,A._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(n,"minDate");break;case"end":this._moveFocusInsideMonth(n,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(A._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate()+e),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this._currentlyFocusedDate(),n=new Date(0,0),r=(n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e),n.getMonth());n.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),n.getMonth()!==r&&n.setDate(0),this._dateAllowed(n,this.minDate,this.maxDate)?this.focusedDate=n:this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var n=new Date(0,0);n.setFullYear(e.getFullYear()),"minDate"===t?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(e,this.minDate,this.maxDate)?this._focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,n){return(!t||t<=e)&&(!n||e<=n)}_isTodayAllowed(e,t){var n=new Date,r=new Date(0,0);return r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(n.getDate()),this._dateAllowed(r,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Dh.is,Dh);var kh=new Set;const Oh={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(kh.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():li||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=Tl(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(kh.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?kh.delete(this):kh.add(this)}};class Mh extends ua(Zo(Go(Vo((s=jo(ao),class extends(o=[Oh],s=s,$l({},Ll(s),o)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",clear:"Clear",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let n,r=t.getMonth(),i=t.getFullYear();if(3===e.length?(i=parseInt(e[2]),e[2].length<3&&0<=i&&(i+=i<50?2e3:1900),r=parseInt(e[0])-1,n=parseInt(e[1])):2===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:r,year:i}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Lo(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,n){return!this._inputElement||e||t||!n.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let n="",r="0000",i=e.getFullYear();return i<0?(i=-i,n="-",r="000000"):1e4<=e.getFullYear()&&(n="+",r="000000"),[n+t(i,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var n;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(A._extractDateParts(e)),(n=this._formatISO(e))!==this.value&&(this.validate(t),this.value=n),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(A._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,n){t?(t=this._parseDate(t))?A._dateEquals(this[e],t)||(this[e]=t):this.value=n:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,n;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(n=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=n-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(n=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=n-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||A._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=A._getClosestDate(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_preventWebkitOverflowScrollingTouch(e){for(var t,n=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",n.push({element:e,oldInlineValue:t})),e=e.parentElement;return n}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(A._extractDateParts(this._selectedDate)),n=!this._selectedDate||A._dateAllowed(this._selectedDate,this._minDate,this._maxDate),r=!0;return this._inputElement&&(this._inputElement.checkValidity?r=this._inputElement.checkValidity(e):this._inputElement.validate&&(r=this._inputElement.validate(e))),t&&n&&r}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],n=0;n<t.length;n++){var r=t[n];if(Eh(e,r))return r}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,n){e&&(t||n)&&(this.invalid=!A._dateAllowed(e,t,n))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,A._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,n){t&&!n&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return p`
|
1654
1654
|
<style>
|
1655
1655
|
:host {
|
1656
1656
|
display: inline-block;
|
@@ -1685,5 +1685,5 @@
|
|
1685
1685
|
|
1686
1686
|
<iron-media-query query="[[_fullscreenMediaQuery]]" query-matches="{{_fullscreen}}">
|
1687
1687
|
</iron-media-query>
|
1688
|
-
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),al(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Ih(e,t){nr(e,t)}customElements.define(Mh.is,Mh);const Nh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function Bh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Rh(e,t,n){e=e.slice();return e[45]=t[n],e}function Lh(t){let i,s=t[13],o=[];for(let e=0;e<s.length;e+=1)o[e]=Yh(Rh(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);W(t,i,n)},p(t,n){if(8199&n[0]){let e;for(s=t[13],e=0;e<s.length;e+=1){var r=Rh(t,s,e);o[e]?o[e].p(r,n):(o[e]=Yh(r),o[e].c(),o[e].m(i.parentNode,i))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){N(o,e),e&&V(i)}}}function Hh(e){let n,r,i=e[14]("noBonusHistory")+"";return{c(){n=t("p"),r=j(i)},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&X(r,i)},d(e){e&&V(n)}}}function Fh(e){let n,r,i,s,o,a,l,h,u,d;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonusamount",l=e[45].grantedAmount),H(n,"bonuswageringamount",h=e[45].totalWR),H(n,"bonusremainingamount",u=e[45].currentAmount),H(n,"bonuscurrency",d=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].grantedAmount)&&H(n,"bonusamount",l),8192&t[0]&&h!==(h=e[45].totalWR)&&H(n,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&H(n,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&H(n,"bonuscurrency",d),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&V(n)}}}function zh(e){let n,r,i,s,o,a,l;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonuscurrency",l=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&H(n,"bonuscurrency",l),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&V(n)}}}function Yh(e){let n;function r(e){return"freeRound"===e[45].type?zh:Fh}let i=r(e),s=i(e);return{c(){s.c(),n=B()},m(e,t){s.m(e,t),W(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&V(n)}}}function Uh(n){let i,s,r,e,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,S,x,C,E=Array(n[11]),T=[];for(let e=0;e<E.length;e+=1)T[e]=$h(Bh(n,E,e));return{c(){i=t("div"),s=t("span"),r=j("|<"),a=G(),l=t("span"),h=j("<"),c=G();for(let e=0;e<T.length;e+=1)T[e].c();p=G(),m=t("span"),f=j(">"),g=G(),v=t("span"),b=j(">|"),q(s,"class",e="BonusesFirst "+(0===n[12]?"Inactive":"")),q(s,"part",o="BonusesFirst "+(0===n[12]?"Inactive":"")),q(l,"class",u="BonusesPrev "+(0===n[12]?"Inactive":"")),q(l,"part",d="BonusesPrev "+(0===n[12]?"Inactive":"")),q(m,"class",_="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),q(m,"part",y="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),q(v,"class",w="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),q(v,"part",S="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":"")),q(i,"part","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){W(e,i,t),$(i,s),$(s,r),$(i,a),$(i,l),$(l,h),$(i,c);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(i,null);$(i,p),$(i,m),$(m,f),$(i,g),$(i,v),$(v,b),x||(C=[z(s,"click",n[26]),z(l,"click",n[27]),z(m,"click",n[29]),z(v,"click",n[30])],x=!0)},p(t,n){if(4096&n[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(s,"class",e),4096&n[0]&&o!==(o="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(s,"part",o),4096&n[0]&&u!==(u="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(l,"class",u),4096&n[0]&&d!==(d="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(l,"part",d),137216&n[0]){let e;for(E=Array(t[11]),e=0;e<E.length;e+=1){var r=Bh(t,E,e);T[e]?T[e].p(r,n):(T[e]=$h(r),T[e].c(),T[e].m(i,p))}for(;e<T.length;e+=1)T[e].d(1);T.length=E.length}6144&n[0]&&_!==(_="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(m,"class",_),6144&n[0]&&y!==(y="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(m,"part",y),6144&n[0]&&w!==(w="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(v,"class",w),6144&n[0]&&S!==(S="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(v,"part",S)},d(e){e&&V(i),N(T,e),x=!1,D(C)}}}function $h(n){let r,i,s,o,a,l,e=n[44]+1+"";function h(){return n[28](n[44])}return{c(){r=t("span"),i=j(e),q(r,"class",s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":"")),q(r,"part",o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){W(e,r,t),$(r,i),a||(l=z(r,"click",h),a=!0)},p(e,t){n=e,4096&t[0]&&s!==(s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&q(r,"class",s),4096&t[0]&&o!==(o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&q(r,"part",o)},d(e){e&&V(r),a=!1,l()}}}function Wh(n){let r,i=function(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,S,x,C,E,T,A,P,D=n[14]("title")+"",k=n[14]("dateFrom")+"",O=n[14]("dateTo")+"",M=n[14]("dateFilter")+"",I=n[15]&&function(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_=n[14]("title")+"";return{c(){r=t("div"),i=F("svg"),s=F("defs"),o=F("style"),a=j(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=F("g"),h=F("g"),u=F("path"),d=G(),c=t("h2"),p=j(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(c,"class","BonusesTitleMobile"),q(c,"part","BonusesTitleMobile"),q(r,"class","MenuReturnButton"),q(r,"part","MenuReturnButton")},m(e,t){W(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(i,l),$(l,h),$(h,u),$(r,d),$(r,c),$(c,p),m||(f=z(r,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&X(p,_)},d(e){e&&V(r),m=!1,f()}}}(n);function N(e){return 0===e[13].length?Hh:Lh}let B=N(n),R=B(n),L=0!==n[13].length&&Uh(n);return{c(){r=t("div"),I&&I.c(),i=G(),s=t("h2"),o=j(D),a=G(),l=t("div"),h=t("div"),u=t("div"),d=t("label"),c=j(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=j(O),v=G(),b=t("vaadin-date-picker"),w=G(),S=t("button"),x=j(M),C=G(),E=t("div"),R.c(),T=G(),L&&L.c(),q(s,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(s,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(d,"for","BonusCalendarStartDate"),H(m,"max",n[6]),H(m,"value",n[7]),H(m,"placeholder","From"),H(m,"class","VaadinDatePicker"),H(m,"part","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),q(u,"part","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),H(b,"max",n[6]),H(b,"value",n[6]),H(b,"placeholder","To"),H(b,"class","VaadinDatePicker"),H(b,"part","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),q(_,"part","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),q(h,"part","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),q(S,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),q(S,"part","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),q(l,"part","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),q(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),q(E,"part","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),q(r,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":"")),q(r,"part","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){W(e,r,t),I&&I.m(r,null),$(r,i),$(r,s),$(s,o),$(r,a),$(r,l),$(l,h),$(h,u),$(u,d),$(d,c),$(u,p),$(u,m),n[23](m),$(h,f),$(h,_),$(_,y),$(y,g),$(_,v),$(_,b),n[24](b),$(l,w),$(l,S),$(S,x),$(r,C),$(r,E),R.m(E,null),$(r,T),L&&L.m(r,null),A||(P=z(S,"click",n[25]),A=!0)},p(e,t){e[15]&&I.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&X(o,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&X(c,k),64&t[0]&&H(m,"max",e[6]),128&t[0]&&H(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&X(g,O),64&t[0]&&H(b,"max",e[6]),64&t[0]&&H(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&X(x,M),B===(B=N(e))&&R?R.p(e,t):(R.d(1),(R=B(e))&&(R.c(),R.m(E,null))),0!==e[13].length?L?L.p(e,t):((L=Uh(e)).c(),L.m(r,null)):L&&(L.d(1),L=null)},d(e){e&&V(r),I&&I.d(),n[23](null),n[24](null),R.d(),L&&L.d(),A=!1,P()}}}(n);return{c(){r=t("div"),i.c(),this.c=U},m(e,t){W(e,r,t),i.m(r,null),n[31](r)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&V(r),i.d(),n[31](null)}}}function Vh(t,e,r){let n;I(t,Sr,e=>r(14,n=e));let i,s,o,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:c="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==xr(_),g=(a=Tr(new Date).format("YYYY-MM-DD"),l=Tr(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,S=0,x=0,C=0,E=[];Object.keys(Nh).forEach(e=>{Ih(e,Nh[e])});const T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},A=t=>{var e=new URL(`${h}/player/${d}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{r(11,x=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,w=t+6),r(10,S=6*(x-1)),r(12,C=t/6),r(13,E=e.items)},e=>{console.error(e)})},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{s.removeEventListener("change",P),o.removeEventListener("change",D)},function(){if(L)return L;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&r(18,h=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,c=e.lang),"clientstyling"in e&&r(1,p=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&c&&(e=c,fr.set(e)),48&t.$$.dirty[0]&&s&&o&&(s.addEventListener("change",P,!1),o.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&d&&h&&A(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ih(e,t[e])})}).catch(e=>{console.log(e)})},[c,p,m,i,s,o,a,l,b,w,S,x,C,E,n,y,T,A,h,u,d,f,()=>T(),function(e){J[e?"unshift":"push"](()=>{s=e,r(4,s)})},function(e){J[e?"unshift":"push"](()=>{o=e,r(5,o)})},()=>A(0),()=>A(0),()=>A(b),e=>A(6*e),()=>A(w),()=>A(S),function(e){J[e?"unshift":"push"](()=>{i=e,r(3,i)})}]}class jh extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.BonusesTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-color-primary-600, #99034F)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-color-primary, #D0046C);font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:R(this.attributes),customElement:!0},Vh,Wh,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),c()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),c()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),c()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),c()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",jh),jh});
|
1688
|
+
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),al(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Ih(e,t){nr(e,t)}customElements.define(Mh.is,Mh);const Nh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function Bh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Lh(e,t,n){e=e.slice();return e[45]=t[n],e}function Rh(t){let i,s=t[13],o=[];for(let e=0;e<s.length;e+=1)o[e]=Yh(Lh(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);W(t,i,n)},p(t,n){if(8199&n[0]){let e;for(s=t[13],e=0;e<s.length;e+=1){var r=Lh(t,s,e);o[e]?o[e].p(r,n):(o[e]=Yh(r),o[e].c(),o[e].m(i.parentNode,i))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){N(o,e),e&&j(i)}}}function Hh(e){let n,r,i=e[14]("noBonusHistory")+"";return{c(){n=t("p"),r=V(i)},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&X(r,i)},d(e){e&&j(n)}}}function Fh(e){let n,r,i,s,o,a,l,h,u,d;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonusamount",l=e[45].grantedAmount),H(n,"bonuswageringamount",h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),H(n,"bonusremainingamount",u=e[45].currentAmount),H(n,"bonuscurrency",d=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].grantedAmount)&&H(n,"bonusamount",l),8192&t[0]&&h!==(h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&H(n,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&H(n,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&H(n,"bonuscurrency",d),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function zh(e){let n,r,i,s,o,a,l;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonuscurrency",l=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&H(n,"bonuscurrency",l),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Yh(e){let n;function r(e){return"freeRound"===e[45].type?zh:Fh}let i=r(e),s=i(e);return{c(){s.c(),n=B()},m(e,t){s.m(e,t),W(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&j(n)}}}function Uh(n){let i,s,r,e,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w=Array(n[11]),S=[];for(let e=0;e<w.length;e+=1)S[e]=$h(Bh(n,w,e));return{c(){i=t("div"),s=t("span"),r=V("|<"),o=G(),a=t("span"),l=V("<"),u=G();for(let e=0;e<S.length;e+=1)S[e].c();d=G(),c=t("span"),p=V(">"),f=G(),_=t("span"),y=V(">|"),q(s,"class",e="BonusesFirst "+(0===n[12]?"Inactive":"")),q(a,"class",h="BonusesPrev "+(0===n[12]?"Inactive":"")),q(c,"class",m="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),q(_,"class",g="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){W(e,i,t),$(i,s),$(s,r),$(i,o),$(i,a),$(a,l),$(i,u);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(i,null);$(i,d),$(i,c),$(c,p),$(i,f),$(i,_),$(_,y),v||(b=[z(s,"click",n[26]),z(a,"click",n[27]),z(c,"click",n[29]),z(_,"click",n[30])],v=!0)},p(t,n){if(4096&n[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(s,"class",e),4096&n[0]&&h!==(h="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(a,"class",h),137216&n[0]){let e;for(w=Array(t[11]),e=0;e<w.length;e+=1){var r=Bh(t,w,e);S[e]?S[e].p(r,n):(S[e]=$h(r),S[e].c(),S[e].m(i,d))}for(;e<S.length;e+=1)S[e].d(1);S.length=w.length}6144&n[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(c,"class",m),6144&n[0]&&g!==(g="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(_,"class",g)},d(e){e&&j(i),N(S,e),v=!1,D(b)}}}function $h(n){let r,i,s,o,a,e=n[44]+1+"";function l(){return n[28](n[44])}return{c(){r=t("span"),i=V(e),q(r,"class",s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){W(e,r,t),$(r,i),o||(a=z(r,"click",l),o=!0)},p(e,t){n=e,4096&t[0]&&s!==(s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&q(r,"class",s)},d(e){e&&j(r),o=!1,a()}}}function Wh(n){let r,i=function(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,S,x,C,E,A,T,P,D=n[14]("title")+"",k=n[14]("dateFrom")+"",O=n[14]("dateTo")+"",M=n[14]("dateFilter")+"",I=n[15]&&function(n){let r,i,s,o,a,l,h,u,d,c,p,m,f,_=n[14]("title")+"";return{c(){r=t("div"),i=F("svg"),s=F("defs"),o=F("style"),a=V(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=F("g"),h=F("g"),u=F("path"),d=G(),c=t("h2"),p=V(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(c,"class","BonusesTitleMobile"),q(r,"class","MenuReturnButton")},m(e,t){W(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(i,l),$(l,h),$(h,u),$(r,d),$(r,c),$(c,p),m||(f=z(r,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&X(p,_)},d(e){e&&j(r),m=!1,f()}}}(n);function N(e){return 0===e[13].length?Hh:Rh}let B=N(n),L=B(n),R=0!==n[13].length&&Uh(n);return{c(){r=t("div"),I&&I.c(),i=G(),s=t("h2"),o=V(D),a=G(),l=t("div"),h=t("div"),u=t("div"),d=t("label"),c=V(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=V(O),v=G(),b=t("vaadin-date-picker"),w=G(),S=t("button"),x=V(M),C=G(),E=t("div"),L.c(),A=G(),R&&R.c(),q(s,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(s,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(d,"for","BonusCalendarStartDate"),H(m,"max",n[6]),H(m,"value",n[7]),H(m,"placeholder","From"),H(m,"class","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),H(b,"max",n[6]),H(b,"value",n[6]),H(b,"placeholder","To"),H(b,"class","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),q(S,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),q(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),q(r,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){W(e,r,t),I&&I.m(r,null),$(r,i),$(r,s),$(s,o),$(r,a),$(r,l),$(l,h),$(h,u),$(u,d),$(d,c),$(u,p),$(u,m),n[23](m),$(h,f),$(h,_),$(_,y),$(y,g),$(_,v),$(_,b),n[24](b),$(l,w),$(l,S),$(S,x),$(r,C),$(r,E),L.m(E,null),$(r,A),R&&R.m(r,null),T||(P=z(S,"click",n[25]),T=!0)},p(e,t){e[15]&&I.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&X(o,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&X(c,k),64&t[0]&&H(m,"max",e[6]),128&t[0]&&H(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&X(g,O),64&t[0]&&H(b,"max",e[6]),64&t[0]&&H(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&X(x,M),B===(B=N(e))&&L?L.p(e,t):(L.d(1),(L=B(e))&&(L.c(),L.m(E,null))),0!==e[13].length?R?R.p(e,t):((R=Uh(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},d(e){e&&j(r),I&&I.d(),n[23](null),n[24](null),L.d(),R&&R.d(),T=!1,P()}}}(n);return{c(){r=t("div"),i.c(),this.c=U},m(e,t){W(e,r,t),i.m(r,null),n[31](r)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&j(r),i.d(),n[31](null)}}}function jh(t,e,r){let n;I(t,Sr,e=>r(14,n=e));let i,s,o,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:c="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==xr(_),g=(a=Ar(new Date).format("YYYY-MM-DD"),l=Ar(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,S=0,x=0,C=0,E=[];Object.keys(Nh).forEach(e=>{Ih(e,Nh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},T=t=>{var e=new URL(`${h}/player/${d}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{r(11,x=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,w=t+6),r(10,S=6*(x-1)),r(12,C=t/6),r(13,E=e.items)},e=>{console.error(e)})},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{s.removeEventListener("change",P),o.removeEventListener("change",D)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&r(18,h=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,c=e.lang),"clientstyling"in e&&r(1,p=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&c&&(e=c,fr.set(e)),48&t.$$.dirty[0]&&s&&o&&(s.addEventListener("change",P,!1),o.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&d&&h&&T(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ih(e,t[e])})}).catch(e=>{console.log(e)})},[c,p,m,i,s,o,a,l,b,w,S,x,C,E,n,y,A,T,h,u,d,f,()=>A(),function(e){J[e?"unshift":"push"](()=>{s=e,r(4,s)})},function(e){J[e?"unshift":"push"](()=>{o=e,r(5,o)})},()=>T(0),()=>T(0),()=>T(b),e=>T(6*e),()=>T(w),()=>T(S),function(e){J[e?"unshift":"push"](()=>{i=e,r(3,i)})}]}class Vh extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},jh,Wh,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),c()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),c()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),c()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),c()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",Vh),Vh});
|
1689
1689
|
//# sourceMappingURL=player-bonus-history.js.map
|