@everymatrix/player-bonus-history 0.0.246 → 0.0.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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 Y(){}function d(e){return e()}function h(){return Object.create(null)}function x(e){e.forEach(d)}function p(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return Y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function A(e,t,n){e.$$.on_destroy.push(m(t,n))}function U(e,t){e.appendChild(t)}function H(e,t,n){e.insertBefore(t,n||null)}function $(e){e.parentNode.removeChild(e)}function C(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 z(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function W(){return j(" ")}function a(){return j("")}function B(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function V(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function G(e,t,n){t in e?e[t]=n:V(e,t,n)}function q(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function r(e){const t={};for(const n of e)t[n.name]=n.value;return t}let T;function f(e){T=e}const _=[],P=[],i=[],e=[],y=Promise.resolve();let g=!1;function v(e){i.push(e)}let s=!1;const o=new Set;function b(){if(!s){s=!0;do{for(let e=0;e<_.length;e+=1){var t=_[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),x(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(v))}}(t.$$)}for(f(null),_.length=0;P.length;)P.pop()();for(let e=0;e<i.length;e+=1){const n=i[e];o.has(n)||(o.add(n),n())}}while(i.length=0,_.length);for(;e.length;)e.pop()();g=!1,s=!1,o.clear()}}const w=new Set;function l(r,e,t,n,i,s,o=[-1]){var a,l=T;f(r);const u=r.$$={fragment:null,ctx:null,props:s,update:Y,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:o,skip_bound:!1};let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(_.push(e),g||(g=!0,y.then(b)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),c=!0,x(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){const Y=(n=e.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(Y),Y.forEach($)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(w.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,n),r||v(()=>{var e=s.map(d).filter(p);o?o.push(...e):x(e),t.$$.on_mount=[]}),a.forEach(v)}(r,e.target,e.anchor,e.customElement),b()}f(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(d).filter(p);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){x(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(x(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=Y}$on(e,t){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 c,S,E="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==E&&E,D="URLSearchParams"in E,k="Symbol"in E&&"iterator"in Symbol,O="FileReader"in E&&"Blob"in E&&function(){try{return new Blob,!0}catch(e){return!1}}(),M="FormData"in E,I="ArrayBuffer"in E;function N(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 L(e){return e="string"!=typeof e?String(e):e}function R(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return k&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Z(e){var t=new FileReader,n=J(t);return t.readAsArrayBuffer(e),n}function K(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:O&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:M&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:D&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():I&&O&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=K(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):I&&(ArrayBuffer.prototype.isPrototypeOf(e)||S(e))?this._bodyArrayBuffer=K(e):this._bodyText=e=Object.prototype.toString.call(e):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):D&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},O&&(this.blob=function(){var e=X(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(){return this._bodyArrayBuffer?X(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Z)}),this.text=function(){var e,t,n=X(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=J(t),t.readAsText(e),n;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)},M&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}I&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=N(e),t=L(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},F.prototype.delete=function(e){delete this.map[N(e)]},F.prototype.get=function(e){return e=N(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(N(e))},F.prototype.set=function(e,t){this.map[N(e)]=L(t)},F.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},F.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),R(n)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),R(t)},F.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),R(n)},k&&(F.prototype[Symbol.iterator]=F.prototype.entries);var ee=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var n,r=(t=t||{}).body;if(e instanceof te){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(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 F(t.headers)),this.method=(e=(n=t.method||this.method||"GET").toUpperCase(),-1<ee.indexOf(e)?e:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.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||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ne(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),n.append(decodeURIComponent(e),decodeURIComponent(t)))}),n}function re(e,t){if(!(this instanceof re))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})},Q.call(te.prototype),Q.call(re.prototype),re.prototype.clone=function(){return new re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},re.error=function(){var e=new re(null,{status:0,statusText:""});return e.type="error",e};var ie=[301,302,303,307,308];re.redirect=function(e,t){if(-1===ie.indexOf(t))throw new RangeError("Invalid status code");return new re(null,{status:t,headers:{location:e}})};var se=E.DOMException;try{new se}catch(Y){(se=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),se.prototype.constructor=se}function oe(r,o){return new Promise(function(i,e){var t=new te(r,o);if(t.signal&&t.signal.aborted)return e(new se("Aborted","AbortError"));var s=new XMLHttpRequest;function n(){s.abort()}s.onload=function(){var e,n,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new F,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(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),n.append(e,t))}),n)};t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout(function(){i(new re(r,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 se("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&E.location.href?E.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&&(O?s.responseType="blob":I&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof F?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){s.setRequestHeader(e,L(o.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",n)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}oe.polyfill=!0,E.fetch||(E.fetch=oe,E.Headers=F,E.Request=te,E.Response=re),self.fetch.bind(self);var ae=function(e,t){return(ae=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 le(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}ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ue(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 ce(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 de(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function he(e){return"function"==typeof e}function pe(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 me=pe(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var _e=(ge.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=ue(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(he(s))try{s()}catch(e){i=e instanceof me?e.errors:[e]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=ue(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{be(c)}catch(e){i=null!=i?i:[],e instanceof me?i=de(de([],ce(i)),ce(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new me(i)}},ge.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)be(e);else{if(e instanceof ge){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},ge.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},ge.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},ge.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},ge.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof ge&&e._removeParent(this)},ge.EMPTY=((Ht=new ge).closed=!0,Ht),ge),ye=_e.EMPTY;function ge(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ve(e){return e instanceof _e||e&&"closed"in e&&he(e.remove)&&he(e.add)&&he(e.unsubscribe)}function be(e){he(e)?e():e.unsubscribe()}var we=void 0,Se=!1,xe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,de([],ce(e)))};function Ce(){}function Ee(e){e()}var Ae,Te,Pe=(le(Oe,Te=_e),Oe.create=function(e,t,n){return new De(e,t,n)},Oe.prototype.next=function(e){this.isStopped||this._next(e)},Oe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Oe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Oe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Te.prototype.unsubscribe.call(this),this.destination=null)},Oe.prototype._next=function(e){this.destination.next(e)},Oe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Oe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Oe),De=(le(ke,Ae=Pe),ke);function ke(e,t,n){var r,i,s=Ae.call(this)||this;return he(e)?i=e:e&&(i=e.next,t=e.error,n=e.complete,s&&Se?(r=Object.create(e)).unsubscribe=function(){return s.unsubscribe()}:r=e,i=null==i?void 0:i.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)),s.destination={next:i?Me(i):Ce,error:Me(null!=t?t:Ie),complete:n?Me(n):Ce},s}function Oe(e){var t=Te.call(this)||this;return t.isStopped=!1,e?ve(t.destination=e)&&e.add(t):t.destination=Ne,t}function Me(r){return function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{r.apply(void 0,de([],ce(e)))}catch(e){t=e,xe(function(){throw t})}}}function Ie(e){throw e}var Ne={closed:!0,next:Ce,error:Ie,complete:Ce},Le="function"==typeof Symbol&&Symbol.observable||"@@observable";function Re(e){return e}var Fe=(ze.prototype.lift=function(e){var t=new ze;return t.source=this,t.operator=e,t},ze.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Pe||r&&he(r.next)&&he(r.error)&&he(r.complete)&&ve(r)?e:new De(e,t,n);return Ee(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},ze.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ze.prototype.forEach=function(r,e){var i=this;return new(e=Be(e))(function(e,t){var n=i.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},ze.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},ze.prototype[Le]=function(){return this},ze.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?Re:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ze.prototype.toPromise=function(e){var r=this;return new(e=Be(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},ze.create=function(e){return new ze(e)},ze);function ze(e){e&&(this._subscribe=e)}function Be(e){return null!==(e=null!=e?e:we)&&void 0!==e?e:Promise}var Ye,Ue,He,$e=pe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),je=(le(Je,He=Fe),Je.prototype.lift=function(e){var t=new We(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new $e},Je.prototype.next=function(s){var o=this;Ee(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){var n=o.observers.slice();try{for(var r=ue(n),i=r.next();!i.done;i=r.next())i.value.next(s)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var n=this;Ee(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)}})},Je.prototype.complete=function(){var t=this;Ee(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),He.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,n=this.isStopped,r=this.observers;return t||n?ye:(r.push(e),new _e(function(){return fe(r,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},Je.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},Je.create=function(e,t){return new We(e,t)},Je),We=(le(Xe,Ue=je),Xe.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},Xe.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},Xe.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ye},Xe),Ve={now:function(){return(Ve.delegate||Date).now()},delegate:void 0},Ge=(le(qe,Ye=je),qe.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(),Ye.prototype.next.call(this,e)},qe.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},qe.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)}},qe);function qe(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Ve);var r=Ye.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 Xe(e,t){var n=Ue.call(this)||this;return n.destination=e,n.source=t,n}function Je(){var e=He.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ze=[],Ke={};const Qe=[];function et(r,i=Y){let s;const o=[];function a(e){if(n(r,e)&&(r=e,s)){const e=!Qe.length;for(let e=0;e<o.length;e+=1){const t=o[e];t[1](),Qe.push(t,r)}if(e){for(let e=0;e<Qe.length;e+=2)Qe[e][0](Qe[e+1]);Qe.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=Y){const n=[e,t];return o.push(n),1===o.length&&(s=i(a)||Y),e(r),()=>{var e=o.indexOf(n);-1!==e&&o.splice(e,1),0===o.length&&(s(),s=null)}}}}function tt(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:et(t,t=>{let n=!1;const r=[];let i=0,s=Y;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),c?t(e):s=p(e)?e:Y)},e=u.map((e,t)=>m(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){x(e),s()}}).subscribe}}var nt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===rt));var t},rt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function it(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ut(Array.isArray(e)?[]:{},e,t):e}function st(e,t,n){return e.concat(t).map(function(e){return it(e,n)})}function ot(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function at(e,t){try{return t in e}catch(e){return!1}}function lt(r,i,s){var o={};return s.isMergeableObject(r)&&ot(r).forEach(function(e){o[e]=it(r[e],s)}),ot(i).forEach(function(t){var e,n;(!at(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(at(r,t)&&s.isMergeableObject(i[t])?o[t]=function(){if(!s.customMerge)return ut;var e=s.customMerge(t);return"function"==typeof e?e:ut}()(r[t],i[t],s):o[t]=it(i[t],s))}),o}function ut(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||st,n.isMergeableObject=n.isMergeableObject||nt,n.cloneUnlessOtherwiseSpecified=it;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):lt(e,t,n):it(t,n)}ut.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return ut(e,t,n)},{})};var ct=ut,dt=function(e,t){return(dt=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 ht(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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pt,mt,ft,_t=function(){return(_t=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 yt(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function gt(e){return e.type===mt.literal}function vt(e){return e.type===mt.number}function bt(e){return e.type===mt.date}function wt(e){return e.type===mt.time}function St(e){return e.type===mt.select}function xt(e){return e.type===mt.plural}function Ct(e){return e.type===mt.tag}function Et(e){return e&&"object"==typeof e&&e.type===ft.number}function At(e){return e&&"object"==typeof e&&e.type===ft.dateTime}($t=pt=pt||{})[$t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",$t[$t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",$t[$t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",$t[$t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",$t[$t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",$t[$t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",$t[$t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",$t[$t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",$t[$t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",$t[$t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",$t[$t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",$t[$t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",$t[$t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",$t[$t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",$t[$t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",$t[$t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",$t[$t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",$t[$t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",$t[$t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",$t[$t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",$t[$t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",$t[$t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",$t[$t.INVALID_TAG=23]="INVALID_TAG",$t[$t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",$t[$t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",$t[$t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(jt=mt=mt||{})[jt.literal=0]="literal",jt[jt.argument=1]="argument",jt[jt.number=2]="number",jt[jt.date=3]="date",jt[jt.time=4]="time",jt[jt.select=5]="select",jt[jt.plural=6]="plural",jt[jt.pound=7]="pound",jt[jt.tag=8]="tag",(Wt=ft=ft||{})[Wt.number=0]="number",Wt[Wt.dateTime=1]="dateTime";var Tt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pt=/(?:[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 Dt,kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?$/g,It=/(\*)(0+)|(#+)(0+)|(0+)/g,Nt=/^(0+)$/;function Lt(e){var r={};return e.replace(Mt,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 Rt(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 Ft(e){return Rt(e)||{}}function zt(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=_t(_t(_t({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _t(_t({},e),Ft(t))},{}));continue;case"engineering":o=_t(_t(_t({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _t(_t({},e),Ft(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(It,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(Nt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Ot.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ot,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),""}),i.options.length&&(o=_t(_t({},o),Lt(i.options[0])))}else Mt.test(i.stem)?o=_t(_t({},o),Lt(i.stem)):((r=Rt(i.stem))&&(o=_t(_t({},o),r)),(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)),!Nt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_t(_t({},o),r)))}return o}var Bt=new RegExp("^"+Tt.source+"*"),Yt=new RegExp(Tt.source+"*$");function Ut(e,t){return{start:e,end:t}}var Ht=!!String.prototype.startsWith,Le=!!String.fromCodePoint,je=!!Object.fromEntries,$t=!!String.prototype.codePointAt,jt=!!String.prototype.trimStart,Wt=!!String.prototype.trimEnd,Vt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tt=!0;try{Tt="a"===(null===(Dt=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Dt?void 0:Dt[0])}catch(Y){Tt=!1}var Gt,qt,Xt=Ht?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Jt=Le?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},Zt=je?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},Kt=$t?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},Qt=jt?function(e){return e.trimStart()}:function(e){return e.replace(Bt,"")},en=Wt?function(e){return e.trimEnd()}:function(e){return e.replace(Yt,"")};function tn(e,t){return new RegExp(e,t)}qt=Tt?(Gt=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Gt.lastIndex=t,null!==(e=Gt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=Kt(e,t);if(void 0===i||on(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 Jt.apply(void 0,r)};var nn=(rn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},rn.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(pt.UNMATCHED_CLOSING_TAG,Ut(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&sn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{s=this.clonePosition();this.bump(),r.push({type:mt.pound,location:Ut(s,this.clonePosition())})}}}return{val:r,err:null}},rn.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:mt.literal,value:"<"+r+"/>",location:Ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sn(this.char()))return this.error(pt.INVALID_TAG,Ut(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(pt.UNMATCHED_CLOSING_TAG,Ut(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:mt.tag,value:r,children:e,location:Ut(n,this.clonePosition())},err:null}:this.error(pt.INVALID_TAG,Ut(t,this.clonePosition())))}return this.error(pt.UNCLOSED_TAG,Ut(n,this.clonePosition()))}return this.error(pt.INVALID_TAG,Ut(n,this.clonePosition()))},rn.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())},rn.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=Ut(n,this.clonePosition());return{val:{type:mt.literal,value:r,location:n},err:null}},rn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},rn.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 Jt.apply(void 0,t)},rn.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Jt(n))},rn.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(pt.EMPTY_ARGUMENT,Ut(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(pt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:mt.argument,value:r,location:Ut(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(pt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()))}},rn.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=qt(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Ut(e,this.clonePosition())}},rn.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(pt.EXPECT_ARGUMENT_TYPE,Ut(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=en(h.val)).length)return this.error(pt.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Ut(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Ut(r,this.clonePosition());if(l&&Xt(null==l?void 0:l.style,"::",0)){u=Qt(l.style.slice(2));if("number"===o)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:mt.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(pt.EXPECT_DATE_TIME_SKELETON,c);var d={type:ft.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Pt,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):{}};return{val:{type:"date"===o?mt.date:mt.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===o?mt.number:"date"===o?mt.date:mt.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(pt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ut(l,_t({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(e,o,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Ut(r,this.clonePosition());return"select"===o?{val:{type:mt.select,value:n,options:Zt(c.val),location:p},err:null}:{val:{type:mt.plural,value:n,options:Zt(c.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:p},err:null};default:return this.error(pt.INVALID_ARGUMENT_TYPE,Ut(s,a))}},rn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},rn.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(pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(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}},rn.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(kt).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(pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:ft.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?zt(n):{}},err:null}},rn.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ut(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ut(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;s.push([a,{value:c.val,location:Ut(d,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===s.length?this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(pt.MISSING_OTHER_CLAUSE,Ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},rn.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=Ut(r,this.clonePosition());return i?Vt(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},rn.prototype.offset=function(){return this.position.offset},rn.prototype.isEOF=function(){return this.offset()===this.message.length},rn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},rn.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Kt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},rn.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},rn.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))},rn.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},rn.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},rn.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},rn.prototype.bumpSpace=function(){for(;!this.isEOF()&&on(this.char());)this.bump()},rn.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},rn);function rn(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function sn(e){return 97<=e&&e<=122||65<=e&&e<=90}function on(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function an(e,t){t=_t({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new nn(e,t).parse();if(n.err){e=SyntaxError(pt[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,St(e)||xt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else vt(e)&&Et(e.style)||(bt(e)||wt(e))&&At(e.style)?delete e.style.location:Ct(e)&&n(e.children)})}(n.val),n.val}function ln(e,t){var n=t&&t.cache?t.cache:fn,r=t&&t.serializer?t.serializer:hn;return(t&&t.strategy?t.strategy:function(e,t){return dn(e,this,1===e.length?un:cn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function un(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function cn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function dn(e,t,n,r,i){return n.bind(t,e,r,i)}var hn=function(){return JSON.stringify(arguments)};function pn(){this.cache=Object.create(null)}pn.prototype.has=function(e){return e in this.cache},pn.prototype.get=function(e){return this.cache[e]},pn.prototype.set=function(e,t){this.cache[e]=t};var mn,fn={create:function(){return new pn}},_n={variadic:function(e,t){return dn(e,this,cn,t.cache.create(),t.serializer)},monadic:function(e,t){return dn(e,this,un,t.cache.create(),t.serializer)}};(Wt=mn=mn||{}).MISSING_VALUE="MISSING_VALUE",Wt.INVALID_VALUE="INVALID_VALUE",Wt.MISSING_INTL_API="MISSING_INTL_API";var yn,gn,vn,bn,wn,Sn=(ht(Dn,wn=Error),Dn.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Dn),xn=(ht(Pn,bn=Sn),Pn),Cn=(ht(Tn,vn=Sn),Tn),En=(ht(An,gn=Sn),An);function An(e,t){return gn.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',mn.MISSING_VALUE,t)||this}function Tn(e,t,n){return vn.call(this,'Value for "'+e+'" must be of type '+t,mn.INVALID_VALUE,n)||this}function Pn(e,t,n,r){return bn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',mn.INVALID_VALUE,r)||this}function Dn(e,t,n){e=wn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function kn(e,t,n,r,i,s,o){if(1===e.length&>(e[0]))return[{type:yn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(gt(c))a.push({type:yn.literal,value:c.value});else if(c.type===mt.pound)"number"==typeof s&&a.push({type:yn.literal,value:n.getNumberFormat(t).format(s)});else{var d=c.value;if(!(i&&d in i))throw new En(d,o);var h=i[d];if(c.type===mt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yn.literal:yn.object,value:h});else if(bt(c)){var p="string"==typeof c.style?r.date[c.style]:At(c.style)?c.style.parsedOptions:void 0;a.push({type:yn.literal,value:n.getDateTimeFormat(t,p).format(h)})}else if(wt(c))p="string"==typeof c.style?r.time[c.style]:At(c.style)?c.style.parsedOptions:void 0,a.push({type:yn.literal,value:n.getDateTimeFormat(t,p).format(h)});else if(vt(c))(p="string"==typeof c.style?r.number[c.style]:Et(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:yn.literal,value:n.getNumberFormat(t,p).format(h)});else{if(Ct(c)){var m=c.children,f=c.value,d=i[f];if("function"!=typeof d)throw new Cn(f,"function",o);m=d(kn(m,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?yn.literal:yn.object,value:e}}))}if(St(c)){if(!(_=c.options[h]||c.options.other))throw new xn(c.value,h,Object.keys(c.options),o);a.push.apply(a,kn(_.value,t,n,r,i))}else if(xt(c)){if(!(_=c.options["="+h])){if(!Intl.PluralRules)throw new Sn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',mn.MISSING_INTL_API,o);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),_=c.options[m]||c.options.other}if(!_)throw new xn(c.value,h,Object.keys(c.options),o);a.push.apply(a,kn(_.value,t,n,r,i,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===yn.literal&&t.type===yn.literal?n.value+=t.value:e.push(t),e},[])}function Mn(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(Tt=yn=yn||{})[Tt.literal=0]="literal",Tt[Tt.object=1]="object";var In=(Object.defineProperty(Nn,"defaultLocale",{get:function(){return Nn.memoizedDefaultLocale||(Nn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nn.memoizedDefaultLocale=null,Nn.__parse=an,Nn.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"}}},Nn);function Nn(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=Nn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===yn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return kn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!Nn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nn.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}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=Nn.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?_t(_t(_t({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_t(_t({},n[t]),r[t]||{}),e},{})):n),e},_t({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yt([void 0],t)))},{cache:Mn((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:_n.variadic}),getDateTimeFormat:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yt([void 0],t)))},{cache:Mn(r.dateTime),strategy:_n.variadic}),getPluralRules:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yt([void 0],t)))},{cache:Mn(r.pluralRules),strategy:_n.variadic})}}const Ln={},Rn=(t,n)=>{if(null!=n){if(n in Ln&&t in Ln[n])return Ln[n][t];var r,i,s=Kn(n);for(let e=0;e<s.length;e++){var o=(r=s[e],i=t,Bn(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return Fn[e]||null}(r),i):null);if(o)return r=t,i=n,(o=o)&&(i in Ln||(Ln[i]={}),r in Ln[i]||(Ln[i][r]=o),o)}}};let Fn;const zn=et({});function Bn(e){return e in Fn}function Yn(t,...n){delete Ln[t],zn.update(e=>(e[t]=ct.all([e[t]||{},...n]),e))}tt([zn],([e])=>Object.keys(e)),zn.subscribe(e=>Fn=e);const Un={};function Hn(e){return Un[e]}function $n(e){return Kn(e).some(e=>{return null===(e=Hn(e))||void 0===e?void 0:e.size})}const jn={};function Wn(e){if(!$n(e))return e in jn?jn[e]:void 0;const t=Kn(e).map(e=>{var t=Hn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return jn[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Un[e].delete(t),0===Un[e].size&&delete Un[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Yn(t,...e))}(e))).then(()=>$n(e)?Wn(e):void delete jn[e]),jn[e]}function Vn(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const Gn={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const qn=et(!1);let Xn;const Jn=et(null);function Zn(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Kn(e,t=Gn.fallbackLocale){e=Zn(e);return t?[...new Set([...e,...Zn(t)])]:e}Jn.subscribe(e=>{Xn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qn=Jn.set;Jn.set=t=>{if(function(e){if(null!=e){var t=Kn(e);for(let e=0;e<t.length;e++){var n=t[e];if(Bn(n))return n}}}(t)&&$n(t)){var{loadingDelay:n}=Gn;let e;return"undefined"!=typeof window&&null!=Xn&&n?e=window.setTimeout(()=>qn.set(!0),n):qn.set(!0),Wn(t).then(()=>{Qn(t)}).finally(()=>{clearTimeout(e),qn.set(!1)})}return Qn(t)},Jn.update=e=>Qn(e(Xn));const er=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},tr=(e,t)=>{var{formats:n}=Gn;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},nr=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=tr("number",n)),new Intl.NumberFormat(t,e)}),rr=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=tr("date",n):0===Object.keys(e).length&&(e=tr("date","short")),new Intl.DateTimeFormat(t,e)}),ir=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=tr("time",n):0===Object.keys(e).length&&(e=tr("time","short")),new Intl.DateTimeFormat(t,e)}),sr=er((e,t=Xn)=>new In(e,t,Gn.formats,{ignoreTag:Gn.ignoreTag})),or=tt([Jn,zn],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Xn,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=Rn(e,r);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Gn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kn(r).join('", "')}".${$n(Xn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=i||e;if(!n)return s;let o=s;try{o=sr(s,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o});tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return ir(Object.assign({locale:t},e))})(t).format(e)),tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return rr(Object.assign({locale:t},e))})(t).format(e)),tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return nr(Object.assign({locale:t},e))})(t).format(e)),tt([Jn,zn],()=>(e,t=Xn)=>Rn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ze.indexOf(e)&&(t=new Ge(t),Ke[e]=t,Ze.push(e)),Ke[e]}};const ar=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var lr,ur,cr=(ur=lr={path:void 0,exports:{},require:function(e,t){return On(null==t&&lr.path)}},lr.exports,ur.exports=function(){var e;function m(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){for(var n=[],r=0;r<e.length;++r)n.push(t(e[r],r));return n}function c(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function f(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 h(e){if(null==e._isValid){var t=f(e),n=y.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 _(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}var y=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},g=m.momentProperties=[],t=!1;function v(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=f(t)),s(t._locale)||(e._locale=t._locale),0<g.length)for(n=0;n<g.length;n++)s(i=t[r=g[n]])||(e[r]=i);return e}function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function S(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,s){var o=!0;return c(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),o){for(var e,t,n=[],r=0;r<arguments.length;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}S(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return s.apply(this,arguments)},s)}var x={};function C(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),x[e]||(S(t),x[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,r=c({},e);for(n in t)p(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&a(e[n])&&(r[n]=c({},r[n]));return r}function T(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var P=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function D(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 k=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},I={};function N(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(I[e]=i),t&&(I[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(t=R(t,e.localeData()),M[t]=M[t]||function(r){for(var e,i=r.match(k),t=0,s=i.length;t<s;t++)I[i[t]]?i[t]=I[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+=E(i[n])?i[n].call(e,r):i[n];return t}}(t),M[t](e)):e.localeData().invalidDate()}function R(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;0<=n&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,--n;return e}var F={};function z(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)p(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function $(e){return e%4==0&&e%100!=0||e%400==0}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?j(t):e}function V(t,n){return function(e){return null!=e?(q(this,t,e),m.updateOffset(this,n),this):G(this,t)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&$(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X=/\d/,J=/\d\d/,Z=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ie=/\d{1,4}/,se=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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 de(e,n,r){me[e]=E(n)?n:function(e,t){return e&&r?r:n}}function he(e,t){return p(me,e)?me[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={},fe={};function _e(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),u(n)&&(r=function(e,t){t[n]=W(e)}),t=0;t<e.length;t++)fe[e[t]]=r}function ye(e,i){_e(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var ge,ve=0,be=1,we=2,Se=3,xe=4,Ce=5,Ee=6,Ae=7,Te=8;function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?$(e)?29:28:31-n%7%2}ge=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),z("month","M"),H("month",8),de("M",ee),de("MM",ee,J),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),_e(["M","MM"],function(e,t){t[be]=W(e)-1}),_e(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[be]=r:f(n).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me=ce,Ie=ce;function Ne(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(Ne(this,e),m.updateOffset(this,!0),this):G(this,"Month")}function Re(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=d([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]=pe(n[s]),r[s]=pe(r[s]);for(s=0;s<24;s++)i[s]=pe(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 Fe(e){return $(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),z("year","y"),H("year",1),de("Y",ae),de("YY",ee,J),de("YYYY",ie,K),de("YYYYY",se,Q),de("YYYYYY",se,Q),_e(["YYYYY","YYYYYY"],ve),_e("YYYY",function(e,t){t[ve]=2===e.length?m.parseTwoDigitYear(e):W(e)}),_e("YY",function(e,t){t[ve]=m.parseTwoDigitYear(e)}),_e("Y",function(e,t){t[ve]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return W(e)+(68<W(e)?1900:2e3)};var ze=V("FullYear",!0);function Be(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 Ye(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 Ue(e,t,n){n=7+t-n;return-(7+Ye(e,0,n).getUTCDay()-t)%7+n-1}function He(e,t,n,r,i){var s,i=1+7*(t-1)+(7+n-r)%7+Ue(e,r,i),i=i<=0?Fe(s=e-1)+i:i>Fe(e)?(s=e+1,i-Fe(e)):(s=e,i);return{year:s,dayOfYear:i}}function $e(e,t,n){var r,i,s=Ue(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+je(i=e.year()-1,t,n):s>je(e.year(),t,n)?(r=s-je(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function je(e,t,n){var r=Ue(e,t,n),n=Ue(e+1,t,n);return(Fe(e)-r+n)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),H("week",5),H("isoWeek",5),de("w",ee),de("ww",ee,J),de("W",ee),de("WW",ee,J),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=W(e)});function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=W(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ce,Je=ce,Ze=ce;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=d([2e3,1]).day(l),t=pe(this.weekdaysMin(r,"")),n=pe(this.weekdaysShort(r,"")),r=pe(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 Qe(){return this.hours()%12||12}function et(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Qe),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),et("a",!0),et("A",!1),z("hour","h"),H("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,J),de("hh",ee,J),de("kk",ee,J),de("hmm",te),de("hmmss",ne),de("Hmm",te),de("Hmmss",ne),_e(["H","HH"],Se),_e(["k","kk"],function(e,t,n){e=W(e);t[Se]=24===e?0:e}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[Se]=W(e),f(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r)),f(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r,2)),t[Ce]=W(e.substr(i)),f(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r,2)),t[Ce]=W(e.substr(i))});var nt=V("Hours",!0);var rt,it={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:De,monthsShort:ke,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},st={},ot={};function at(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=at(e[s]).split("-")).length,n=(n=at(e[s+1]))?n.split("-"):null;0<t;){if(r=ut(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 rt}function ut(t){var e;if(void 0===st[t]&&ur&&ur.exports)try{e=rt._abbr,On(),ct(e)}catch(e){st[t]=null}return st[t]}function ct(e,t){return e&&((t=s(t)?ht(e):dt(e,t))?rt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null===t)return delete st[e],null;var n,r=it;if(t.abbr=e,null!=st[e])C("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=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new T(A(r,t)),ot[e]&&ot[e].forEach(function(e){dt(e.name,e.config)}),ct(e),st[e]}function ht(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return rt;if(!o(e)){if(t=ut(e))return t;e=[e]}return lt(e)}function pt(e){var t=e._a;return t&&-2===f(e).overflow&&(t=t[be]<0||11<t[be]?be:t[we]<1||t[we]>Pe(t[ve],t[be])?we:t[Se]<0||24<t[Se]||24===t[Se]&&(0!==t[xe]||0!==t[Ce]||0!==t[Ee])?Se:t[xe]<0||59<t[xe]?xe:t[Ce]<0||59<t[Ce]?Ce:t[Ee]<0||999<t[Ee]?Ee:-1,f(e)._overflowDayOfYear&&(t<ve||we<t)&&(t=we),f(e)._overflowWeeks&&-1===t&&(t=Ae),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var mt=/^\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)?)?$/,ft=/^\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)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],gt=[["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/]],vt=/^\/?Date\((-?\d+)/i,bt=/^(?:(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}))$/,wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,r,i,s,o,a=e._i,l=mt.exec(a)||ft.exec(a);if(l){for(f(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[1])){i=yt[t][0],r=!1!==yt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(l[3])){s=(l[2]||" ")+gt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!_t.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Tt(e)}else e._isValid=!1}function xt(e,t,n,r,i,s){i=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),ke.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&i.push(parseInt(s,10)),i}function Ct(e){var t,n,r,i,s=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&Ge.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(f(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(i=s[8],t=s[9],s=s[10],i?wt[i]:t?0:((t=parseInt(s,10))-(s=t%100))/100*60+s),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0)):e._isValid=!1}function Et(e,t,n){return null!=e?e:null!=t?t:n}function At(e){var t,n,r,i,s,o,a,l,u,c,d,h,p=[];if(!e._d){for(d=e,h=new Date(m.now()),n=d._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[we]&&null==e._a[be]&&(null!=(d=(i=e)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,s=Et(d.GG,i._a[ve],$e(kt(),1,4).year),o=Et(d.W,1),((a=Et(d.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=$e(kt(),l,u),s=Et(d.gg,i._a[ve],h.year),o=Et(d.w,h.week),null!=d.d?((a=d.d)<0||6<a)&&(c=!0):null!=d.e?(a=d.e+l,(d.e<0||6<d.e)&&(c=!0)):a=l),o<1||o>je(s,l,u)?f(i)._overflowWeeks=!0:null!=c?f(i)._overflowWeekday=!0:(u=He(s,o,a,l,u),i._a[ve]=u.year,i._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(r=Et(e._a[ve],n[ve]),(e._dayOfYear>Fe(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),r=Ye(r,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[we]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=n[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[xe]&&0===e._a[Ce]&&0===e._a[Ee]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ye:Be).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,r=""+e._i,i=r.length,s=0,o=R(e._f,e._locale).match(k)||[],a=0;a<o.length;a++)n=o[a],(t=(r.match(he(n,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&f(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),s+=t.length),I[n]?(t?f(e).empty=!1:f(e).unusedTokens.push(n),c=n,h=e,null!=(d=t)&&p(fe,c)&&fe[c](d,h._a,h,c)):e._strict&&!t&&f(e).unusedTokens.push(n);f(e).charsLeftOver=i-s,0<r.length&&f(e).unusedInput.push(r),e._a[Se]<=12&&!0===f(e).bigHour&&0<e._a[Se]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Se]=(l=e._locale,u=e._a[Se],null==(i=e._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,i):null!=l.isPM?((i=l.isPM(i))&&u<12&&(u+=12),u=i||12!==u?u:0):u),null!==(u=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(u,e._a[ve])),At(e),pt(e)}else Ct(e);else St(e);var l,u,c,d,h}function Pt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(pt(t)):(i(t)?e._d=t:o(n)?function(e){var t,n,r,i,s,o,a=!1;if(0===e._f.length)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)s=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Tt(t),h(t)&&(o=!0),s+=f(t).charsLeftOver,s+=10*f(t).unusedTokens.length,f(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o&&(a=!0));c(e,n||t)}(e):n?Tt(e):s(n=(t=e)._i)?t._d=new Date(m.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=vt.exec(e._i);null===t?(St(e),!1===e._isValid&&(delete e._isValid,Ct(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):o(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),At(t)):a(n)?function(e){var t,n;e._d||(n=void 0===(t=Y(e._i)).day?t.date:t.day,e._a=r([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),At(e))}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),h(e)||(e._d=null),e))}function Dt(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),(a(e)&&l(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,(s=new b(pt(Pt(s=s))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function kt(e,t,n,r){return Dt(e,t,n,r,!1)}m.createFromInputFallback=n("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(){};var Ot=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Mt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:_()});function It(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return kt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(p(e,t)&&(-1===ge.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Nt.length;++n)if(e[Nt[n]]){if(r)return!1;parseFloat(e[Nt[n]])!==W(e[Nt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*a*60*60,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function Rt(e){return e instanceof Lt}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function zt(e,n){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}zt("Z",":"),zt("ZZ",""),de("Z",ue),de("ZZ",ue),_e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(ue,e)});var Bt=/([\+\-]|\d\d)/gi;function Yt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Bt)||["-",0,0])[1]+W(e[2]))?0:"+"===e[0]?t:-t}function Ut(e,t){var n;return t._isUTC?(n=t.clone(),t=(w(e)||i(e)?e:kt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):kt(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function $t(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\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 Vt(e,t){var n,r,i=e,s=null;return Rt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=jt.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:W(s[we])*n,h:W(s[Se])*n,m:W(s[xe])*n,s:W(s[Ce])*n,ms:W(Ft(1e3*s[Ee]))*n}):(s=Wt.exec(e))?(n="-"===s[1]?-1:1,i={y:Gt(s[2],n),M:Gt(s[3],n),w:Gt(s[4],n),d:Gt(s[5],n),h:Gt(s[6],n),m:Gt(s[7],n),s:Gt(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=kt(i.from),n=kt(i.to),r=s.isValid()&&n.isValid()?(n=Ut(n,s),s.isBefore(n)?r=qt(s,n):((r=qt(n,s)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new Lt(i),Rt(e)&&p(e,"_locale")&&(i._locale=e._locale),Rt(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function qt(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 Xt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(C(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),Jt(this,Vt(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,s=Ft(t._days),t=Ft(t._months);e.isValid()&&(r=null==r||r,t&&Ne(e,G(e,"Month")+t*n),s&&q(e,"Date",G(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,s||t))}Vt.fn=Lt.prototype,Vt.invalid=function(){return Vt(NaN)};var Zt=Xt(1,"add"),ce=Xt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return w(e)||i(e)||Kt(e)||u(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!u(e)&&Kt(t)}).length),n&&r)||function(e){var t,n,r=a(e)&&!l(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"];for(t=0;t<s.length;t+=1)n=s[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function tn(e){return void 0===e?this._locale._abbr:(null!=(e=ht(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=n("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 nn(){return this._locale}var rn=126227808e5;function sn(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rn:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function un(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(pe(i[s].name)),e.push(pe(i[s].abbr)),n.push(pe(i[s].narrow)),r.push(pe(i[s].name)),r.push(pe(i[s].abbr)),r.push(pe(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 cn(e,t){N(0,[e,e.length],0,t)}function dn(e,t,n,r,i){var s;return null==e?$e(this,r,i).year:(t>(s=je(e,r,i))&&(t=s),function(e,t,n,r,i){i=He(e,t,n,r,i),i=Ye(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,i))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),de("N",ln),de("NN",ln),de("NNN",ln),de("NNNN",function(e,t){return t.erasNameRegex(e)}),de("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),_e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?f(n).era=r:f(n).invalidEra=e}),de("y",oe),de("yy",oe),de("yyy",oe),de("yyyy",oe),de("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),_e(["y","yy","yyy","yyyy"],ve),_e(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",ee,J),de("gg",ee,J),de("GGGG",ie,K),de("gggg",ie,K),de("GGGGG",se,Q),de("ggggg",se,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=W(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),z("quarter","Q"),H("quarter",7),de("Q",X),_e("Q",function(e,t){t[be]=3*(W(e)-1)}),N("D",["DD",2],"Do","date"),z("date","D"),H("date",9),de("D",ee),de("DD",ee,J),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],we),_e("Do",function(e,t){t[we]=W(e.match(ee)[0])});ne=V("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),H("dayOfYear",4),de("DDD",re),de("DDDD",Z),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=W(e)}),N("m",["mm",2],0,"minute"),z("minute","m"),H("minute",14),de("m",ee),de("mm",ee,J),_e(["m","mm"],xe);De=V("Minutes",!1);N("s",["ss",2],0,"second"),z("second","s"),H("second",15),de("s",ee),de("ss",ee,J),_e(["s","ss"],Ce);var hn,Ve=V("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),H("millisecond",16),de("S",re,X),de("SS",re,J),de("SSS",re,Z),hn="SSSS";hn.length<=9;hn+="S")de(hn,oe);function pn(e,t){t[Ee]=W(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")_e(hn,pn);qe=V("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");ie=b.prototype;function mn(e){return e}ie.add=Zt,ie.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=a(e)&&!l(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||kt(),e=Ut(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(E(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,kt(n)))},ie.clone=function(){return new b(this)},ie.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":s=en(this,r)/12;break;case"month":s=en(this,r);break;case"quarter":s=en(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:j(s)},ie.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:on,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-sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-sn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-sn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=L(this,e),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(kt(),e)},ie.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(kt(),e)},ie.get=function(e){return E(this[e=B(e)])?this[e]():this},ie.invalidAt=function(){return f(this).overflow},ie.isAfter=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ie.isBefore=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ie.isBetween=function(e,t,n,r){return e=w(e)?e:kt(e),t=w(t)?t:kt(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))},ie.isSame=function(e,t){var e=w(e)?e:kt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ie.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ie.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ie.isValid=function(){return h(this)},ie.lang=te,ie.locale=tn,ie.localeData=nn,ie.max=Mt,ie.min=Ot,ie.parsingFlags=function(){return c({},f(this))},ie.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:U[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(E(this[e=B(e)]))return this[e](t);return this},ie.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:on,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-=sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=sn(t,6e4);break;case"second":t=this._d.valueOf(),t-=sn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.subtract=ce,ie.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ie.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()}},ie.toDate=function(){return new Date(this.valueOf())},ie.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?L(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(e,"Z")):L(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ie.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ie.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""},ie.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""},ie.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""},ie.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()},ie.year=ze,ie.isLeapYear=function(){return $(this.year())},ie.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ie.quarter=ie.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ie.month=Le,ie.daysInMonth=function(){return Pe(this.year(),this.month())},ie.week=ie.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ie.isoWeek=ie.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return je(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},ie.date=ne,ie.day=ie.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},ie.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ie.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},ie.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")},ie.hour=ie.hours=nt,ie.minute=ie.minutes=De,ie.second=ie.seconds=Ve,ie.millisecond=ie.milliseconds=qe,ie.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:Ht(this);if("string"==typeof e){if(null===(e=Yt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},ie.utc=function(e){return this.utcOffset(0,e)},ie.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ie.isUtc=$t,ie.isUTC=$t,ie.zoneAbbr=function(){return this._isUTC?"UTC":""},ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ie.dates=n("dates accessor is deprecated. Use date instead.",ne),ie.months=n("months accessor is deprecated. Use month instead",Le),ie.years=n("years accessor is deprecated. Use year instead",ze),ie.zone=n("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()}),ie.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Pt(t))._a?(e=(t._isUTC?d:kt)(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&&W(e[o])!==W(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=T.prototype;function fn(e,t,n,r){var i=ht(),t=d().set(r,t);return i[n](t,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function yn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),u(t)&&(n=t,t=void 0),t||"");var i,s=ht(),o=e?s._week.dow:0,a=[];if(null!=n)return fn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=fn(t,(i+o)%7,r,"day");return a}K.calendar=function(e,t,n){return E(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(k).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=mn,K.postformat=mn,K.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return E(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)p(e,n)&&(E(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)},K.eras=function(e,t){for(var n,r=this._eras||ht("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},K.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]},K.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},K.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return p(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Oe.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.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=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,e))?i:null:-1!==(i=ge.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,e))||-1!==(i=ge.call(this._longMonthsParse,e))?i:null:-1!==(i=ge.call(this._longMonthsParse,e))||-1!==(i=ge.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=d([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}},K.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return $e(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.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?We(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.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=d([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=ge.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.call(this._shortWeekdaysParse,e))||-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,e))||-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,e))||-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.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=d([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}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("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===W(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",ct),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var gn=Math.abs;function vn(e,t,n,r){n=Vt(t,n);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}se=xn("ms"),Q=xn("s"),X=xn("m"),J=xn("h"),re=xn("d"),Z=xn("w"),Zt=xn("M"),Mt=xn("Q"),Ot=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}ce=Cn("milliseconds"),nt=Cn("seconds"),De=Cn("minutes"),Ve=Cn("hours"),qe=Cn("days"),ne=Cn("months"),ze=Cn("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=Vt(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),u=En(i.as("M")),c=En(i.as("w")),i=En(i.as("y")),l=(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(l=(l=null!=n.w?l||c<=1&&["w"]||c<n.w&&["ww",c]:l)||u<=1&&["M"]||u<n.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,l[3]=0<+e,l[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,s,o,a=Pn(this._milliseconds)/1e3,l=Pn(this._days),u=Pn(this._months),c=this.asSeconds();return c?(e=j(a/60),t=j(e/60),a%=60,e%=60,n=j(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(c)?"-":"",s=Dn(this._days)!==Dn(c)?"-":"",o=Dn(this._milliseconds)!==Dn(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"}K=Lt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},K.add=function(e,t){return vn(this,e,t,1)},K.subtract=function(e,t){return vn(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(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)}},K.asMilliseconds=se,K.asSeconds=Q,K.asMinutes=X,K.asHours=J,K.asDays=re,K.asWeeks=Z,K.asMonths=Zt,K.asQuarters=Mt,K.asYears=Ot,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},K._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*bn(Sn(n)+t),n=t=0),r.milliseconds=e%1e3,e=j(e/1e3),r.seconds=e%60,e=j(e/60),r.minutes=e%60,e=j(e/60),r.hours=e%24,t+=j(e/24),n+=e=j(wn(t)),t-=bn(Sn(e)),e=j(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},K.clone=function(){return Vt(this)},K.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=ce,K.seconds=nt,K.minutes=De,K.hours=Ve,K.days=qe,K.weeks=function(){return j(this.days()/7)},K.months=ne,K.years=ze,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=An;return"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)),r=Tn(this,!n,r,t=this.localeData()),n&&(r=t.pastFuture(+this,r)),t.postformat(r)},K.toISOString=kn,K.toString=kn,K.toJSON=kn,K.locale=tn,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),K.lang=te,N("X",0,0,"unix"),N("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),_e("x",function(e,t,n){n._d=new Date(W(e))}),m.version="2.29.1",e=kt,m.fn=ie,m.min=function(){return It("isBefore",[].slice.call(arguments,0))},m.max=function(){return It("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=d,m.unix=function(e){return kt(1e3*e)},m.months=function(e,t){return _n(e,t,"months")},m.isDate=i,m.locale=ct,m.invalid=_,m.duration=Vt,m.isMoment=w,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return kt.apply(null,arguments).parseZone()},m.localeData=ht,m.isDuration=Rt,m.monthsShort=function(e,t){return _n(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=dt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=it,null!=st[e]&&null!=st[e].parentLocale?st[e].set(A(st[e]._config,t)):(t=A(r=null!=(n=ut(e))?n._config:r,t),null==n&&(t.abbr=e),(t=new T(t)).parentLocale=st[e],st[e]=t),ct(e)):null!=st[e]&&(null!=st[e].parentLocale?(st[e]=st[e].parentLocale,e===ct()&&ct(e)):null!=st[e]&&delete st[e]),st[e]},m.locales=function(){return P(st)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=B,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(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=ie,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}(),lr.exports);const dr={en:{bonusCard:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Amount",remainingBonus:"Remaining Bonus Amount",forfeitBonus:"Forfeit Bonus"}},ro:{bonusCard:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Sumă de pariat",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul"}}};function hr(e){let n,r,i,s,o,a,l,u,c=e[8]("bonusCard.bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=j(c),s=W(),o=t("p"),a=j(e[3]),l=W(),u=j(e[6]),V(r,"class","BonusCardRowTitle"),V(o,"class","BonusCardRowText"),V(n,"class","BonusCardRow")},m(e,t){H(e,n,t),U(n,r),U(r,i),U(n,s),U(n,o),U(o,a),U(o,l),U(o,u)},p(e,t){256&t&&c!==(c=e[8]("bonusCard.bonusAmount")+"")&&q(i,c),8&t&&q(a,e[3]),64&t&&q(u,e[6])},d(e){e&&$(n)}}}function pr(e){let n,r,i,s,o,a,l,u,c=e[8]("bonusCard.wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=j(c),s=W(),o=t("p"),a=j(e[4]),l=W(),u=j(e[6]),V(r,"class","BonusCardRowTitle"),V(o,"class","BonusCardRowText"),V(n,"class","BonusCardRow")},m(e,t){H(e,n,t),U(n,r),U(r,i),U(n,s),U(n,o),U(o,a),U(o,l),U(o,u)},p(e,t){256&t&&c!==(c=e[8]("bonusCard.wageringAmount")+"")&&q(i,c),16&t&&q(a,e[4]),64&t&&q(u,e[6])},d(e){e&&$(n)}}}function mr(e){let n,r,i,s,o,a,l,u,c=e[8]("bonusCard.remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=j(c),s=W(),o=t("p"),a=j(e[5]),l=W(),u=j(e[6]),V(r,"class","BonusCardRowTitle"),V(o,"class","BonusCardRowText"),V(n,"class","BonusCardRow")},m(e,t){H(e,n,t),U(n,r),U(r,i),U(n,s),U(n,o),U(o,a),U(o,l),U(o,u)},p(e,t){256&t&&c!==(c=e[8]("bonusCard.remainingBonus")+"")&&q(i,c),32&t&&q(a,e[5]),64&t&&q(u,e[6])},d(e){e&&$(n)}}}function fr(n){let r,i,s,o,a,l=n[8]("bonusCard.forfeitBonus")+"";return{c(){r=t("button"),i=j(l),s=j("s"),V(r,"class","DeleteBonus "+(n[9]?"DeleteBonusMobile":""))},m(e,t){H(e,r,t),U(r,i),U(r,s),o||(a=B(r,"click",n[10]),o=!0)},p(e,t){256&t&&l!==(l=e[8]("bonusCard.forfeitBonus")+"")&&q(i,l)},d(e){e&&$(r),o=!1,a()}}}function _r(e){let n,r,i,s,o,a,l,u,c,d,h,p,m,f,_,y,g,v,b,w,S,x,C,E,A,T,P,D,k,O,M=e[8]("bonusCard.date")+"",I=cr(e[0]).format("DD/MM/YYYY h:mm A")+"",N=e[8]("bonusCard.bonusName")+"",L=e[8]("bonusCard.bonusType")+"",R=0<=e[3]&&hr(e),F=0<=e[4]&&pr(e),z=0<=e[5]&&mr(e),B="active"===e[1]&&fr(e);return{c(){n=t("div"),r=t("div"),i=t("div"),s=t("p"),o=j(M),a=W(),l=t("span"),u=j(I),c=W(),d=t("p"),h=j(e[1]),m=W(),f=t("div"),_=t("p"),y=j(N),g=W(),v=t("p"),b=j(e[2]),w=W(),S=t("div"),x=t("p"),C=j(L),E=W(),A=t("p"),T=j(e[7]),P=W(),R&&R.c(),D=W(),F&&F.c(),k=W(),z&&z.c(),O=W(),B&&B.c(),this.c=Y,V(s,"class","BonusCardRowTitle"),V(d,"class",p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":"")),V(i,"class","BonusCardRow"),V(_,"class","BonusCardRowTitle"),V(v,"class","BonusCardRowText"),V(f,"class","BonusCardRow"),V(x,"class","BonusCardRowTitle"),V(A,"class","BonusCardRowText TextCapitalize"),V(S,"class","BonusCardRow"),V(r,"class","BonusCardInfo"),V(n,"class","BonusCard")},m(e,t){H(e,n,t),U(n,r),U(r,i),U(i,s),U(s,o),U(s,a),U(s,l),U(l,u),U(i,c),U(i,d),U(d,h),U(r,m),U(r,f),U(f,_),U(_,y),U(f,g),U(f,v),U(v,b),U(r,w),U(r,S),U(S,x),U(x,C),U(S,E),U(S,A),U(A,T),U(r,P),R&&R.m(r,null),U(r,D),F&&F.m(r,null),U(r,k),z&&z.m(r,null),U(n,O),B&&B.m(n,null)},p(e,[t]){256&t&&M!==(M=e[8]("bonusCard.date")+"")&&q(o,M),1&t&&I!==(I=cr(e[0]).format("DD/MM/YYYY h:mm A")+"")&&q(u,I),2&t&&q(h,e[1]),2&t&&p!==(p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&V(d,"class",p),256&t&&N!==(N=e[8]("bonusCard.bonusName")+"")&&q(y,N),4&t&&q(b,e[2]),256&t&&L!==(L=e[8]("bonusCard.bonusType")+"")&&q(C,L),128&t&&q(T,e[7]),0<=e[3]?R?R.p(e,t):(R=hr(e),R.c(),R.m(r,D)):R&&(R.d(1),R=null),0<=e[4]?F?F.p(e,t):(F=pr(e),F.c(),F.m(r,k)):F&&(F.d(1),F=null),0<=e[5]?z?z.p(e,t):(z=mr(e),z.c(),z.m(r,null)):z&&(z.d(1),z=null),"active"===e[1]?B?B.p(e,t):(B=fr(e),B.c(),B.m(n,null)):B&&(B.d(1),B=null)},i:Y,o:Y,d(e){e&&$(n),R&&R.d(),F&&F.d(),z&&z.d(),B&&B.d()}}}function yr(t,e,n){let r;A(t,or,e=>n(8,r=e));let{bonuswalletid:i=""}=e,{bonusdate:s=""}=e,{bonusstatus:o=""}=e,{bonusname:a=""}=e,{bonustype:l=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:c=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:h=""}=e,{lang:p="en"}=e,m=window.navigator.userAgent,f="PC"!==ar(m),_="";Object.keys(dr).forEach(e=>{Yn(e,dr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(11,i=e.bonuswalletid),"bonusdate"in e&&n(0,s=e.bonusdate),"bonusstatus"in e&&n(1,o=e.bonusstatus),"bonusname"in e&&n(2,a=e.bonusname),"bonustype"in e&&n(12,l=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,c=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,h=e.bonuscurrency),"lang"in e&&n(13,p=e.lang)},t.$$.update=()=>{var e;8192&t.$$.dirty&&p&&(e=p,Jn.set(e)),4096&t.$$.dirty&&l&&(n(7,_=l),"freeRound"===_?n(7,_="Free Spins"):"freeBet"===_&&n(7,_="Free Bet"))},[s,o,a,u,c,d,h,_,r,f,()=>{window.postMessage({type:"DeleteActiveBonus",bonuswalletid:i},window.location.href)},i,l,p]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0 3px 12px var(--emfe-w-color-black, #000000)}.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)}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},yr,_r,n,{bonuswalletid:11,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:12,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:13}),e&&(e.target&&H(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang"]}get bonuswalletid(){return this.$$.ctx[11]}set bonuswalletid(e){this.$set({bonuswalletid:e}),b()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$set({bonusdate:e}),b()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$set({bonusstatus:e}),b()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$set({bonusname:e}),b()}get bonustype(){return this.$$.ctx[12]}set bonustype(e){this.$set({bonustype:e}),b()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$set({bonusamount:e}),b()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$set({bonuswageringamount:e}),b()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$set({bonusremainingamount:e}),b()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$set({bonuscurrency:e}),b()}get lang(){return this.$$.ctx[13]}set lang(e){this.$set({lang:e}),b()}});class gr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",gr);let vr,br=null,wr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Sr(e){requestAnimationFrame(function(){wr?wr(e):(br||(br=new Promise(e=>{vr=e}),"complete"===document.readyState?vr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&vr()})),br.then(function(){e&&e()}))})}const xr="__seenByShadyCSS",Cr="__shadyCSSCachedStyle";let Er=null,Ar=null;class Tr{constructor(){this.customStyles=[],this.enqueued=!1,Sr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Ar&&(this.enqueued=!0,Sr(Ar))}addCustomStyle(e){e[xr]||(e[xr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Cr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){const r=t[e];if(!r[Cr]){var n=this.getStyleForCustomStyle(r);if(n){const t=n.__appliedElement||n;Er&&Er(t),r[Cr]=t}}}return t}}Object.defineProperties(Tr.prototype,{transformCallback:{get:()=>Er,set(e){Er=e}},validateCallback:{get:()=>Ar,set(e){let t=!1;Ar||(t=!0),Ar=e,t&&this.enqueueDocumentValidation()}}});const Pr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Dr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kr=/@media\s(.*)/;function Or(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Mr(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}const Ir=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Nr,Lr;function Rr(e){Nr=(!e||!e.shimcssproperties)&&(Ir||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&&(Lr=window.ShadyCSS.cssBuild);Wt=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Nr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Rr(window.ShadyCSS),window.ShadyCSS=void 0):Rr(window.WebComponents&&window.WebComponents.flags);const Fr=Nr,zr=new Tr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){zr.processStyles(),Or(e,t)},styleElement(e){zr.processStyles()},styleDocument(e){zr.processStyles(),Or(document.body,e)},getComputedStyleValue:(e,t)=>Mr(e,t),flushCustomStyles(){},nativeCss:Fr,nativeShadow:Ir,cssBuild:Lr,disableRuntime:Wt}),window.ShadyCSS.CustomStyleInterface=zr,window.JSCompiler_renameProperty=function(e,t){return e};let Br,Yr,Ur=/(url\()([^)]*)(\))/g,Hr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function $r(e,t){if(e&&Hr.test(e))return e;if("//"===e)return e;if(void 0===Br){Br=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Br="http://a/c%20d"===e.href}catch(e){}}if(t=t||(document.baseURI||window.location.href),Br)try{return new URL(e,t).href}catch(t){return e}return Yr||(Yr=document.implementation.createHTMLDocument("temp"),Yr.base=Yr.createElement("base"),Yr.head.appendChild(Yr.base),Yr.anchor=Yr.createElement("a"),Yr.body.appendChild(Yr.anchor)),Yr.base.href=t,Yr.anchor.href=e,Yr.anchor.href||e}function jr(e,i){return e.replace(Ur,function(e,t,n,r){return t+"'"+$r(n.replace(/["']/g,""),i)+"'"+r})}function Wr(e){return e.substring(0,e.lastIndexOf("/")+1)}const Vr=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Gr=Vr&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let qr=window.Polymer&&window.Polymer.rootPath||Wr(document.baseURI||window.location.href),Xr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Jr=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Zr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Qr=window.Polymer&&window.Polymer.legacyOptimizations||!1,ei=window.Polymer&&window.Polymer.legacyWarnings||!1,ti=window.Polymer&&window.Polymer.syncInitialRender||!1,ni=window.Polymer&&window.Polymer.legacyUndefined||!1,ri=window.Polymer&&window.Polymer.orderedComputed||!1,ii=window.Polymer&&window.Polymer.removeNestedTemplates||!1,si=window.Polymer&&window.Polymer.fastDomIf||!1,oi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ai=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,li=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ui={},ci={};function di(e,t){ui[e]=ci[e.toLowerCase()]=t}function hi(e){return ui[e]||ci[e.toLowerCase()]}class pi extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let e=hi(t);return e&&n?e.querySelector(n):e}return 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=$r(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Wr(e)),this.__assetpath}register(e){if(e=e||this.id){if(Zr&&void 0!==hi(e))throw di(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);di(this.id=e,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}}}pi.prototype.modules=ui,customElements.define("dom-module",pi);const mi="shady-unscoped";function fi(e){return pi.import(e)}function _i(e){const t=jr((e.body||e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function yi(e){const t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){const t=fi(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const n=[];n.push(...vi(t));e=t.querySelector("template");e&&n.push(...gi(e,t.assetpath)),t._styles=n}return t._styles}(t[e]));return n}function gi(e,r){if(!e._styles){const i=[],s=e.content.querySelectorAll("style");for(let n=0;n<s.length;n++){let e=s[n],t=e.getAttribute("include");t&&i.push(...yi(t).filter(function(e,t,n){return n.indexOf(e)===t})),r&&(e.textContent=jr(e.textContent,r)),i.push(e)}e._styles=i}return e._styles}function vi(n){const r=[],i=n.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<i.length;t++){let e=i[t];if(e.import){const n=e.import,i=e.hasAttribute(mi);if(i&&!n._unscopedStyle){const r=_i(n);r.setAttribute(mi,""),n._unscopedStyle=r}else n._style||(n._style=_i(n));r.push(i?n._unscopedStyle:n._style)}}return r}const bi="include",wi=window.ShadyCSS.CustomStyleInterface;class Si extends HTMLElement{constructor(){super(),this._style=null,wi.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;var r=e.getAttribute(bi);return r&&(e.removeAttribute(bi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){let i=fi(e);if(i&&void 0===i._cssText){let e=function(){let t="",n=vi(i);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),t=i.querySelector("template");t&&(e+=function(){let n="";var r=gi(t,i.assetpath);for(let t=0;t<r.length;t++){let e=r[t];e.parentNode&&e.parentNode.removeChild(e),n+=e.textContent}return n}()),i._cssText=e||null}return i||console.warn("Could not find style data in module named",e),i&&i._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",Si);const xi=document.createElement("template");xi.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(xi.content);const Ci=document.createElement("template");Ci.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(Ci.content);const Ei=document.createElement("template");Ei.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(Ei.content);const Ai=document.createElement("template");Ai.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(Ai.content);const Ti=document.createElement("template");Ti.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(Ti.content);const Pi=document.createElement("template");Pi.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(Pi.content);const Di=document.createElement("template");Di.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(Di.content);class ki{constructor(e){this.value=e.toString()}toString(){return this.value}}const Oi=function(r,...e){const t=document.createElement("template");return t.innerHTML=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof ki)return function(e){if(e instanceof ki)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}(t)+r[n+1],r[0]),t},Mi=Oi`<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 c(e){return e()}function h(){return Object.create(null)}function A(e){e.forEach(c)}function p(e){return"function"==typeof e}function n(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 T(e,t,n){e.$$.on_destroy.push(m(t,n))}function H(e,t){e.appendChild(t)}function $(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode.removeChild(e)}function P(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 B(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function W(e){return document.createTextNode(e)}function V(){return W(" ")}function a(){return W("")}function z(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function G(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Y(e,t,n){t in e?e[t]=n:G(e,t,n)}function q(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function r(e){const t={};for(const n of e)t[n.name]=n.value;return t}let D;function f(e){D=e}const _=[],k=[],i=[],e=[],y=Promise.resolve();let g=!1;function v(e){i.push(e)}let s=!1;const o=new Set;function b(){if(!s){s=!0;do{for(let e=0;e<_.length;e+=1){var t=_[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),A(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(v))}}(t.$$)}for(f(null),_.length=0;k.length;)k.pop()();for(let e=0;e<i.length;e+=1){const n=i[e];o.has(n)||(o.add(n),n())}}while(i.length=0,_.length);for(;e.length;)e.pop()();g=!1,s=!1,o.clear()}}const w=new Set;function l(r,e,t,n,i,s,o=[-1]){var a,l=D;f(r);const u=r.$$={fragment:null,ctx:null,props:s,update:U,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:o,skip_bound:!1};let d=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),d&&(n=e,-1===(e=r).$$.dirty[0]&&(_.push(e),g||(g=!0,y.then(b)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),d=!0,A(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){const U=(n=e.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(U),U.forEach(j)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(w.delete(a),a.i(void 0)),function(t,e,n,r){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,n),r||v(()=>{var e=s.map(c).filter(p);o?o.push(...e):A(e),t.$$.on_mount=[]}),a.forEach(v)}(r,e.target,e.anchor,e.customElement),b()}f(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(p);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){A(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(A(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=U}$on(e,t){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 d,S,x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,C="URLSearchParams"in x,E="Symbol"in x&&"iterator"in Symbol,O="FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(e){return!1}}(),M="FormData"in x,I="ArrayBuffer"in x;function N(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 R(e){return e="string"!=typeof e?String(e):e}function L(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return E&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Z(e){var t=new FileReader,n=J(t);return t.readAsArrayBuffer(e),n}function K(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:O&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:M&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:C&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():I&&O&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=K(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):I&&(ArrayBuffer.prototype.isPrototypeOf(e)||S(e))?this._bodyArrayBuffer=K(e):this._bodyText=e=Object.prototype.toString.call(e):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):C&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},O&&(this.blob=function(){var e=X(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(){return this._bodyArrayBuffer?X(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Z)}),this.text=function(){var e,t,n=X(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=J(t),t.readAsText(e),n;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)},M&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}I&&(d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(e){return e&&-1<d.indexOf(Object.prototype.toString.call(e))}),F.prototype.append=function(e,t){e=N(e),t=R(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},F.prototype.delete=function(e){delete this.map[N(e)]},F.prototype.get=function(e){return e=N(e),this.has(e)?this.map[e]:null},F.prototype.has=function(e){return this.map.hasOwnProperty(N(e))},F.prototype.set=function(e,t){this.map[N(e)]=R(t)},F.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},F.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),L(n)},F.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),L(t)},F.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),L(n)},E&&(F.prototype[Symbol.iterator]=F.prototype.entries);var ee=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var n,r=(t=t||{}).body;if(e instanceof te){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new F(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 F(t.headers)),this.method=(e=(n=t.method||this.method||"GET").toUpperCase(),-1<ee.indexOf(e)?e:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.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||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ne(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),n.append(decodeURIComponent(e),decodeURIComponent(t)))}),n}function re(e,t){if(!(this instanceof re))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new F(t.headers),this.url=t.url||"",this._initBody(e)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})},Q.call(te.prototype),Q.call(re.prototype),re.prototype.clone=function(){return new re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},re.error=function(){var e=new re(null,{status:0,statusText:""});return e.type="error",e};var ie=[301,302,303,307,308];re.redirect=function(e,t){if(-1===ie.indexOf(t))throw new RangeError("Invalid status code");return new re(null,{status:t,headers:{location:e}})};var se=x.DOMException;try{new se}catch(U){(se=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),se.prototype.constructor=se}function oe(r,o){return new Promise(function(i,e){var t=new te(r,o);if(t.signal&&t.signal.aborted)return e(new se("Aborted","AbortError"));var s=new XMLHttpRequest;function n(){s.abort()}s.onload=function(){var e,n,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new F,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(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),n.append(e,t))}),n)};t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout(function(){i(new re(r,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 se("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&x.location.href?x.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&&(O?s.responseType="blob":I&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof F?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){s.setRequestHeader(e,R(o.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",n)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}oe.polyfill=!0,x.fetch||(x.fetch=oe,x.Headers=F,x.Request=te,x.Response=re),self.fetch.bind(self);var ae=function(e,t){return(ae=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 le(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}ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ue(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 de(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 ce(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function he(e){return"function"==typeof e}function pe(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 me=pe(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var _e=(ge.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=ue(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(he(s))try{s()}catch(e){i=e instanceof me?e.errors:[e]}s=this._teardowns;if(s){this._teardowns=null;try{for(var l=ue(s),u=l.next();!u.done;u=l.next()){var d=u.value;try{be(d)}catch(e){i=null!=i?i:[],e instanceof me?i=ce(ce([],de(i)),de(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new me(i)}},ge.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)be(e);else{if(e instanceof ge){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},ge.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},ge.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},ge.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},ge.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof ge&&e._removeParent(this)},ge.EMPTY=((Ht=new ge).closed=!0,Ht),ge),ye=_e.EMPTY;function ge(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ve(e){return e instanceof _e||e&&"closed"in e&&he(e.remove)&&he(e.add)&&he(e.unsubscribe)}function be(e){he(e)?e():e.unsubscribe()}var we=void 0,Se=!1,xe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,ce([],de(e)))};function Ce(){}function Ee(e){e()}var Te,Ae,Pe=(le(Oe,Ae=_e),Oe.create=function(e,t,n){return new De(e,t,n)},Oe.prototype.next=function(e){this.isStopped||this._next(e)},Oe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Oe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Oe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ae.prototype.unsubscribe.call(this),this.destination=null)},Oe.prototype._next=function(e){this.destination.next(e)},Oe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Oe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Oe),De=(le(ke,Te=Pe),ke);function ke(e,t,n){var r,i,s=Te.call(this)||this;return he(e)?i=e:e&&(i=e.next,t=e.error,n=e.complete,s&&Se?(r=Object.create(e)).unsubscribe=function(){return s.unsubscribe()}:r=e,i=null==i?void 0:i.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)),s.destination={next:i?Me(i):Ce,error:Me(null!=t?t:Ie),complete:n?Me(n):Ce},s}function Oe(e){var t=Ae.call(this)||this;return t.isStopped=!1,e?ve(t.destination=e)&&e.add(t):t.destination=Ne,t}function Me(r){return function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{r.apply(void 0,ce([],de(e)))}catch(e){t=e,xe(function(){throw t})}}}function Ie(e){throw e}var Ne={closed:!0,next:Ce,error:Ie,complete:Ce},Re="function"==typeof Symbol&&Symbol.observable||"@@observable";function Le(e){return e}var Fe=(Be.prototype.lift=function(e){var t=new Be;return t.source=this,t.operator=e,t},Be.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Pe||r&&he(r.next)&&he(r.error)&&he(r.complete)&&ve(r)?e:new De(e,t,n);return Ee(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},Be.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Be.prototype.forEach=function(r,e){var i=this;return new(e=ze(e))(function(e,t){var n=i.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},Be.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Be.prototype[Re]=function(){return this},Be.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?Le:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Be.prototype.toPromise=function(e){var r=this;return new(e=ze(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},Be.create=function(e){return new Be(e)},Be);function Be(e){e&&(this._subscribe=e)}function ze(e){return null!==(e=null!=e?e:we)&&void 0!==e?e:Promise}var Ye,Ue,He,$e=pe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),je=(le(Je,He=Fe),Je.prototype.lift=function(e){var t=new We(this,this);return t.operator=e,t},Je.prototype._throwIfClosed=function(){if(this.closed)throw new $e},Je.prototype.next=function(s){var o=this;Ee(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){var n=o.observers.slice();try{for(var r=ue(n),i=r.next();!i.done;i=r.next())i.value.next(s)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},Je.prototype.error=function(t){var n=this;Ee(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)}})},Je.prototype.complete=function(){var t=this;Ee(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Je.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Je.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Je.prototype._trySubscribe=function(e){return this._throwIfClosed(),He.prototype._trySubscribe.call(this,e)},Je.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Je.prototype._innerSubscribe=function(e){var t=this.hasError,n=this.isStopped,r=this.observers;return t||n?ye:(r.push(e),new _e(function(){return fe(r,e)}))},Je.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},Je.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},Je.create=function(e,t){return new We(e,t)},Je),We=(le(Xe,Ue=je),Xe.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},Xe.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},Xe.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ye},Xe),Ve={now:function(){return(Ve.delegate||Date).now()},delegate:void 0},Ge=(le(qe,Ye=je),qe.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(),Ye.prototype.next.call(this,e)},qe.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},qe.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)}},qe);function qe(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Ve);var r=Ye.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 Xe(e,t){var n=Ue.call(this)||this;return n.destination=e,n.source=t,n}function Je(){var e=He.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ze=[],Ke={};const Qe=[];function et(r,i=U){let s;const o=[];function a(e){if(n(r,e)&&(r=e,s)){const e=!Qe.length;for(let e=0;e<o.length;e+=1){const t=o[e];t[1](),Qe.push(t,r)}if(e){for(let e=0;e<Qe.length;e+=2)Qe[e][0](Qe[e+1]);Qe.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=U){const n=[e,t];return o.push(n),1===o.length&&(s=i(a)||U),e(r),()=>{var e=o.indexOf(n);-1!==e&&o.splice(e,1),0===o.length&&(s(),s=null)}}}}function tt(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,d=a.length<2;return{subscribe:et(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),d?t(e):s=p(e)?e:U)},e=u.map((e,t)=>m(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){A(e),s()}}).subscribe}}var nt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===rt));var t},rt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function it(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ut(Array.isArray(e)?[]:{},e,t):e}function st(e,t,n){return e.concat(t).map(function(e){return it(e,n)})}function ot(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function at(e,t){try{return t in e}catch(e){return!1}}function lt(r,i,s){var o={};return s.isMergeableObject(r)&&ot(r).forEach(function(e){o[e]=it(r[e],s)}),ot(i).forEach(function(t){var e,n;(!at(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(at(r,t)&&s.isMergeableObject(i[t])?o[t]=function(){if(!s.customMerge)return ut;var e=s.customMerge(t);return"function"==typeof e?e:ut}()(r[t],i[t],s):o[t]=it(i[t],s))}),o}function ut(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||st,n.isMergeableObject=n.isMergeableObject||nt,n.cloneUnlessOtherwiseSpecified=it;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):lt(e,t,n):it(t,n)}ut.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return ut(e,t,n)},{})};var dt=ut,ct=function(e,t){return(ct=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 ht(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}ct(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pt,mt,ft,_t=function(){return(_t=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 yt(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function gt(e){return e.type===mt.literal}function vt(e){return e.type===mt.number}function bt(e){return e.type===mt.date}function wt(e){return e.type===mt.time}function St(e){return e.type===mt.select}function xt(e){return e.type===mt.plural}function Ct(e){return e.type===mt.tag}function Et(e){return e&&"object"==typeof e&&e.type===ft.number}function Tt(e){return e&&"object"==typeof e&&e.type===ft.dateTime}($t=pt=pt||{})[$t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",$t[$t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",$t[$t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",$t[$t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",$t[$t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",$t[$t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",$t[$t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",$t[$t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",$t[$t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",$t[$t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",$t[$t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",$t[$t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",$t[$t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",$t[$t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",$t[$t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",$t[$t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",$t[$t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",$t[$t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",$t[$t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",$t[$t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",$t[$t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",$t[$t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",$t[$t.INVALID_TAG=23]="INVALID_TAG",$t[$t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",$t[$t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",$t[$t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(jt=mt=mt||{})[jt.literal=0]="literal",jt[jt.argument=1]="argument",jt[jt.number=2]="number",jt[jt.date=3]="date",jt[jt.time=4]="time",jt[jt.select=5]="select",jt[jt.plural=6]="plural",jt[jt.pound=7]="pound",jt[jt.tag=8]="tag",(Wt=ft=ft||{})[Wt.number=0]="number",Wt[Wt.dateTime=1]="dateTime";var At=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pt=/(?:[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 Dt,kt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?$/g,It=/(\*)(0+)|(#+)(0+)|(0+)/g,Nt=/^(0+)$/;function Rt(e){var r={};return e.replace(Mt,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 Lt(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 Ft(e){return Lt(e)||{}}function Bt(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=_t(_t(_t({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _t(_t({},e),Ft(t))},{}));continue;case"engineering":o=_t(_t(_t({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _t(_t({},e),Ft(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(It,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(Nt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Ot.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ot,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),""}),i.options.length&&(o=_t(_t({},o),Rt(i.options[0])))}else Mt.test(i.stem)?o=_t(_t({},o),Rt(i.stem)):((r=Lt(i.stem))&&(o=_t(_t({},o),r)),(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)),!Nt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_t(_t({},o),r)))}return o}var zt=new RegExp("^"+At.source+"*"),Yt=new RegExp(At.source+"*$");function Ut(e,t){return{start:e,end:t}}var Ht=!!String.prototype.startsWith,Re=!!String.fromCodePoint,je=!!Object.fromEntries,$t=!!String.prototype.codePointAt,jt=!!String.prototype.trimStart,Wt=!!String.prototype.trimEnd,Vt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},At=!0;try{At="a"===(null===(Dt=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Dt?void 0:Dt[0])}catch(U){At=!1}var Gt,qt,Xt=Ht?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Jt=Re?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},Zt=je?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},Kt=$t?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,i=e.charCodeAt(t);return i<55296||56319<i||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536}},Qt=jt?function(e){return e.trimStart()}:function(e){return e.replace(zt,"")},en=Wt?function(e){return e.trimEnd()}:function(e){return e.replace(Yt,"")};function tn(e,t){return new RegExp(e,t)}qt=At?(Gt=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Gt.lastIndex=t,null!==(e=Gt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var i=Kt(e,t);if(void 0===i||on(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 Jt.apply(void 0,r)};var nn=(rn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},rn.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(pt.UNMATCHED_CLOSING_TAG,Ut(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&sn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{s=this.clonePosition();this.bump(),r.push({type:mt.pound,location:Ut(s,this.clonePosition())})}}}return{val:r,err:null}},rn.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:mt.literal,value:"<"+r+"/>",location:Ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sn(this.char()))return this.error(pt.INVALID_TAG,Ut(t,this.clonePosition()));i=this.clonePosition();return r!==this.parseTagName()?this.error(pt.UNMATCHED_CLOSING_TAG,Ut(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:mt.tag,value:r,children:e,location:Ut(n,this.clonePosition())},err:null}:this.error(pt.INVALID_TAG,Ut(t,this.clonePosition())))}return this.error(pt.UNCLOSED_TAG,Ut(n,this.clonePosition()))}return this.error(pt.INVALID_TAG,Ut(n,this.clonePosition()))},rn.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())},rn.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=Ut(n,this.clonePosition());return{val:{type:mt.literal,value:r,location:n},err:null}},rn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},rn.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 Jt.apply(void 0,t)},rn.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Jt(n))},rn.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(pt.EMPTY_ARGUMENT,Ut(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(pt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:mt.argument,value:r,location:Ut(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(pt.MALFORMED_ARGUMENT,Ut(n,this.clonePosition()))}},rn.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=qt(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:Ut(e,this.clonePosition())}},rn.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(pt.EXPECT_ARGUMENT_TYPE,Ut(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(c=en(h.val)).length)return this.error(pt.EXPECT_ARGUMENT_STYLE,Ut(this.clonePosition(),this.clonePosition()));l={style:c,styleLocation:Ut(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var d=Ut(r,this.clonePosition());if(l&&Xt(null==l?void 0:l.style,"::",0)){u=Qt(l.style.slice(2));if("number"===o)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:mt.number,value:n,location:d,style:h.val},err:null};if(0===u.length)return this.error(pt.EXPECT_DATE_TIME_SKELETON,d);var c={type:ft.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Pt,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):{}};return{val:{type:"date"===o?mt.date:mt.time,value:n,location:d,style:c},err:null}}return{val:{type:"number"===o?mt.number:"date"===o?mt.date:mt.time,value:n,location:d,style:null!==(d=null==l?void 0:l.style)&&void 0!==d?d:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(pt.EXPECT_SELECT_ARGUMENT_OPTIONS,Ut(l,_t({},l)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),l=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ut(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),l=h.val}d=this.tryParsePluralOrSelectOptions(e,o,t,d);if(d.err)return d;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Ut(r,this.clonePosition());return"select"===o?{val:{type:mt.select,value:n,options:Zt(d.val),location:p},err:null}:{val:{type:mt.plural,value:n,options:Zt(d.val),offset:l,pluralType:"plural"===o?"cardinal":"ordinal",location:p},err:null};default:return this.error(pt.INVALID_ARGUMENT_TYPE,Ut(s,a))}},rn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(pt.EXPECT_ARGUMENT_CLOSING_BRACE,Ut(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},rn.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(pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ut(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}},rn.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(kt).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(pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:ft.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Bt(n):{}},err:null}},rn.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=Ut(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ut(this.clonePosition(),this.clonePosition()));d=this.parseMessage(e+1,t,n);if(d.err)return d;u=this.tryParseArgumentClose(c);if(u.err)return u;s.push([a,{value:d.val,location:Ut(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===s.length?this.error("select"===t?pt.EXPECT_SELECT_ARGUMENT_SELECTOR:pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(pt.MISSING_OTHER_CLAUSE,Ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},rn.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=Ut(r,this.clonePosition());return i?Vt(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},rn.prototype.offset=function(){return this.position.offset},rn.prototype.isEOF=function(){return this.offset()===this.message.length},rn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},rn.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Kt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},rn.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},rn.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))},rn.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},rn.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},rn.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},rn.prototype.bumpSpace=function(){for(;!this.isEOF()&&on(this.char());)this.bump()},rn.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},rn);function rn(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function sn(e){return 97<=e&&e<=122||65<=e&&e<=90}function on(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function an(e,t){t=_t({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new nn(e,t).parse();if(n.err){e=SyntaxError(pt[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,St(e)||xt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else vt(e)&&Et(e.style)||(bt(e)||wt(e))&&Tt(e.style)?delete e.style.location:Ct(e)&&n(e.children)})}(n.val),n.val}function ln(e,t){var n=t&&t.cache?t.cache:fn,r=t&&t.serializer?t.serializer:hn;return(t&&t.strategy?t.strategy:function(e,t){return cn(e,this,1===e.length?un:dn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function un(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function dn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function cn(e,t,n,r,i){return n.bind(t,e,r,i)}var hn=function(){return JSON.stringify(arguments)};function pn(){this.cache=Object.create(null)}pn.prototype.has=function(e){return e in this.cache},pn.prototype.get=function(e){return this.cache[e]},pn.prototype.set=function(e,t){this.cache[e]=t};var mn,fn={create:function(){return new pn}},_n={variadic:function(e,t){return cn(e,this,dn,t.cache.create(),t.serializer)},monadic:function(e,t){return cn(e,this,un,t.cache.create(),t.serializer)}};(Wt=mn=mn||{}).MISSING_VALUE="MISSING_VALUE",Wt.INVALID_VALUE="INVALID_VALUE",Wt.MISSING_INTL_API="MISSING_INTL_API";var yn,gn,vn,bn,wn,Sn=(ht(Dn,wn=Error),Dn.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Dn),xn=(ht(Pn,bn=Sn),Pn),Cn=(ht(An,vn=Sn),An),En=(ht(Tn,gn=Sn),Tn);function Tn(e,t){return gn.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',mn.MISSING_VALUE,t)||this}function An(e,t,n){return vn.call(this,'Value for "'+e+'" must be of type '+t,mn.INVALID_VALUE,n)||this}function Pn(e,t,n,r){return bn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',mn.INVALID_VALUE,r)||this}function Dn(e,t,n){e=wn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function kn(e,t,n,r,i,s,o){if(1===e.length&>(e[0]))return[{type:yn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(gt(d))a.push({type:yn.literal,value:d.value});else if(d.type===mt.pound)"number"==typeof s&&a.push({type:yn.literal,value:n.getNumberFormat(t).format(s)});else{var c=d.value;if(!(i&&c in i))throw new En(c,o);var h=i[c];if(d.type===mt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yn.literal:yn.object,value:h});else if(bt(d)){var p="string"==typeof d.style?r.date[d.style]:Tt(d.style)?d.style.parsedOptions:void 0;a.push({type:yn.literal,value:n.getDateTimeFormat(t,p).format(h)})}else if(wt(d))p="string"==typeof d.style?r.time[d.style]:Tt(d.style)?d.style.parsedOptions:void 0,a.push({type:yn.literal,value:n.getDateTimeFormat(t,p).format(h)});else if(vt(d))(p="string"==typeof d.style?r.number[d.style]:Et(d.style)?d.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:yn.literal,value:n.getNumberFormat(t,p).format(h)});else{if(Ct(d)){var m=d.children,f=d.value,c=i[f];if("function"!=typeof c)throw new Cn(f,"function",o);m=c(kn(m,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?yn.literal:yn.object,value:e}}))}if(St(d)){if(!(_=d.options[h]||d.options.other))throw new xn(d.value,h,Object.keys(d.options),o);a.push.apply(a,kn(_.value,t,n,r,i))}else if(xt(d)){if(!(_=d.options["="+h])){if(!Intl.PluralRules)throw new Sn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',mn.MISSING_INTL_API,o);var m=n.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0)),_=d.options[m]||d.options.other}if(!_)throw new xn(d.value,h,Object.keys(d.options),o);a.push.apply(a,kn(_.value,t,n,r,i,h-(d.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===yn.literal&&t.type===yn.literal?n.value+=t.value:e.push(t),e},[])}function Mn(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(At=yn=yn||{})[At.literal=0]="literal",At[At.object=1]="object";var In=(Object.defineProperty(Nn,"defaultLocale",{get:function(){return Nn.memoizedDefaultLocale||(Nn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Nn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Nn.memoizedDefaultLocale=null,Nn.__parse=an,Nn.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"}}},Nn);function Nn(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=Nn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===yn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return kn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!Nn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Nn.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}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=Nn.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?_t(_t(_t({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_t(_t({},n[t]),r[t]||{}),e},{})):n),e},_t({},i)):i),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yt([void 0],t)))},{cache:Mn((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:_n.variadic}),getDateTimeFormat:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yt([void 0],t)))},{cache:Mn(r.dateTime),strategy:_n.variadic}),getPluralRules:ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yt([void 0],t)))},{cache:Mn(r.pluralRules),strategy:_n.variadic})}}const Rn={},Ln=(t,n)=>{if(null!=n){if(n in Rn&&t in Rn[n])return Rn[n][t];var r,i,s=Kn(n);for(let e=0;e<s.length;e++){var o=(r=s[e],i=t,zn(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return Fn[e]||null}(r),i):null);if(o)return r=t,i=n,(o=o)&&(i in Rn||(Rn[i]={}),r in Rn[i]||(Rn[i][r]=o),o)}}};let Fn;const Bn=et({});function zn(e){return e in Fn}function Yn(t,...n){delete Rn[t],Bn.update(e=>(e[t]=dt.all([e[t]||{},...n]),e))}tt([Bn],([e])=>Object.keys(e)),Bn.subscribe(e=>Fn=e);const Un={};function Hn(e){return Un[e]}function $n(e){return Kn(e).some(e=>{return null===(e=Hn(e))||void 0===e?void 0:e.size})}const jn={};function Wn(e){if(!$n(e))return e in jn?jn[e]:void 0;const t=Kn(e).map(e=>{var t=Hn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return jn[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){Un[e].delete(t),0===Un[e].size&&delete Un[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Yn(t,...e))}(e))).then(()=>$n(e)?Wn(e):void delete jn[e]),jn[e]}function Vn(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const Gn={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const qn=et(!1);let Xn;const Jn=et(null);function Zn(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Kn(e,t=Gn.fallbackLocale){e=Zn(e);return t?[...new Set([...e,...Zn(t)])]:e}Jn.subscribe(e=>{Xn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qn=Jn.set;Jn.set=t=>{if(function(e){if(null!=e){var t=Kn(e);for(let e=0;e<t.length;e++){var n=t[e];if(zn(n))return n}}}(t)&&$n(t)){var{loadingDelay:n}=Gn;let e;return"undefined"!=typeof window&&null!=Xn&&n?e=window.setTimeout(()=>qn.set(!0),n):qn.set(!0),Wn(t).then(()=>{Qn(t)}).finally(()=>{clearTimeout(e),qn.set(!1)})}return Qn(t)},Jn.update=e=>Qn(e(Xn));const er=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},tr=(e,t)=>{var{formats:n}=Gn;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},nr=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=tr("number",n)),new Intl.NumberFormat(t,e)}),rr=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=tr("date",n):0===Object.keys(e).length&&(e=tr("date","short")),new Intl.DateTimeFormat(t,e)}),ir=er(e=>{var{locale:t,format:n}=e,e=Vn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=tr("time",n):0===Object.keys(e).length&&(e=tr("time","short")),new Intl.DateTimeFormat(t,e)}),sr=er((e,t=Xn)=>new In(e,t,Gn.formats,{ignoreTag:Gn.ignoreTag})),or=tt([Jn,Bn],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Xn,default:i}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=Ln(e,r);if(s){if("string"!=typeof s)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s}else Gn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kn(r).join('", "')}".${$n(Xn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),s=i||e;if(!n)return s;let o=s;try{o=sr(s,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o});tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return ir(Object.assign({locale:t},e))})(t).format(e)),tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return rr(Object.assign({locale:t},e))})(t).format(e)),tt([Jn],()=>(e,t)=>((e={})=>{var{locale:t=Xn}=e,e=Vn(e,["locale"]);return nr(Object.assign({locale:t},e))})(t).format(e)),tt([Jn,Bn],()=>(e,t=Xn)=>Ln(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ze.indexOf(e)&&(t=new Ge(t),Ke[e]=t,Ze.push(e)),Ke[e]}};const ar=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var lr,ur,dr=(ur=lr={path:void 0,exports:{},require:function(e,t){return On(null==t&&lr.path)}},lr.exports,ur.exports=function(){var e;function m(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){for(var n=[],r=0;r<e.length;++r)n.push(t(e[r],r));return n}function d(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function f(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 h(e){if(null==e._isValid){var t=f(e),n=y.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 _(e){var t=c(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}var y=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},g=m.momentProperties=[],t=!1;function v(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=f(t)),s(t._locale)||(e._locale=t._locale),0<g.length)for(n=0;n<g.length;n++)s(i=t[r=g[n]])||(e[r]=i);return e}function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function S(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,s){var o=!0;return d(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),o){for(var e,t,n=[],r=0;r<arguments.length;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}S(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return s.apply(this,arguments)},s)}var x={};function C(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),x[e]||(S(t),x[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=d({},e);for(n in t)p(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function A(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var P=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function D(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 k=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},I={};function N(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(I[e]=i),t&&(I[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=L(t,e.localeData()),M[t]=M[t]||function(r){for(var e,i=r.match(k),t=0,s=i.length;t<s;t++)I[i[t]]?i[t]=I[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+=E(i[n])?i[n].call(e,r):i[n];return t}}(t),M[t](e)):e.localeData().invalidDate()}function L(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;0<=n&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,--n;return e}var F={};function B(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function z(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)p(e,n)&&(t=z(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function $(e){return e%4==0&&e%100!=0||e%400==0}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?j(t):e}function V(t,n){return function(e){return null!=e?(q(this,t,e),m.updateOffset(this,n),this):G(this,t)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&$(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X=/\d/,J=/\d\d/,Z=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ie=/\d{1,4}/,se=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[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 ce(e,n,r){me[e]=E(n)?n:function(e,t){return e&&r?r:n}}function he(e,t){return p(me,e)?me[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={},fe={};function _e(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),u(n)&&(r=function(e,t){t[n]=W(e)}),t=0;t<e.length;t++)fe[e[t]]=r}function ye(e,i){_e(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var ge,ve=0,be=1,we=2,Se=3,xe=4,Ce=5,Ee=6,Te=7,Ae=8;function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?$(e)?29:28:31-n%7%2}ge=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),B("month","M"),H("month",8),ce("M",ee),ce("MM",ee,J),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),_e(["M","MM"],function(e,t){t[be]=W(e)-1}),_e(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[be]=r:f(n).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me=de,Ie=de;function Ne(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Re(e){return null!=e?(Ne(this,e),m.updateOffset(this,!0),this):G(this,"Month")}function Le(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],s=0;s<12;s++)t=c([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]=pe(n[s]),r[s]=pe(r[s]);for(s=0;s<24;s++)i[s]=pe(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 Fe(e){return $(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),B("year","y"),H("year",1),ce("Y",ae),ce("YY",ee,J),ce("YYYY",ie,K),ce("YYYYY",se,Q),ce("YYYYYY",se,Q),_e(["YYYYY","YYYYYY"],ve),_e("YYYY",function(e,t){t[ve]=2===e.length?m.parseTwoDigitYear(e):W(e)}),_e("YY",function(e,t){t[ve]=m.parseTwoDigitYear(e)}),_e("Y",function(e,t){t[ve]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return W(e)+(68<W(e)?1900:2e3)};var Be=V("FullYear",!0);function ze(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 Ye(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 Ue(e,t,n){n=7+t-n;return-(7+Ye(e,0,n).getUTCDay()-t)%7+n-1}function He(e,t,n,r,i){var s,i=1+7*(t-1)+(7+n-r)%7+Ue(e,r,i),i=i<=0?Fe(s=e-1)+i:i>Fe(e)?(s=e+1,i-Fe(e)):(s=e,i);return{year:s,dayOfYear:i}}function $e(e,t,n){var r,i,s=Ue(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+je(i=e.year()-1,t,n):s>je(e.year(),t,n)?(r=s-je(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function je(e,t,n){var r=Ue(e,t,n),n=Ue(e+1,t,n);return(Fe(e)-r+n)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),ce("w",ee),ce("ww",ee,J),ce("W",ee),ce("WW",ee,J),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=W(e)});function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),ce("d",ee),ce("e",ee),ce("E",ee),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=W(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=de,Je=de,Ze=de;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=c([2e3,1]).day(l),t=pe(this.weekdaysMin(r,"")),n=pe(this.weekdaysShort(r,"")),r=pe(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 Qe(){return this.hours()%12||12}function et(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Qe),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),et("a",!0),et("A",!1),B("hour","h"),H("hour",13),ce("a",tt),ce("A",tt),ce("H",ee),ce("h",ee),ce("k",ee),ce("HH",ee,J),ce("hh",ee,J),ce("kk",ee,J),ce("hmm",te),ce("hmmss",ne),ce("Hmm",te),ce("Hmmss",ne),_e(["H","HH"],Se),_e(["k","kk"],function(e,t,n){e=W(e);t[Se]=24===e?0:e}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[Se]=W(e),f(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r)),f(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r,2)),t[Ce]=W(e.substr(i)),f(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Se]=W(e.substr(0,r)),t[xe]=W(e.substr(r,2)),t[Ce]=W(e.substr(i))});var nt=V("Hours",!0);var rt,it={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:De,monthsShort:ke,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},st={},ot={};function at(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=at(e[s]).split("-")).length,n=(n=at(e[s+1]))?n.split("-"):null;0<t;){if(r=ut(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 rt}function ut(t){var e;if(void 0===st[t]&&ur&&ur.exports)try{e=rt._abbr,On(),dt(e)}catch(e){st[t]=null}return st[t]}function dt(e,t){return e&&((t=s(t)?ht(e):ct(e,t))?rt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ct(e,t){if(null===t)return delete st[e],null;var n,r=it;if(t.abbr=e,null!=st[e])C("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=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new A(T(r,t)),ot[e]&&ot[e].forEach(function(e){ct(e.name,e.config)}),dt(e),st[e]}function ht(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return rt;if(!o(e)){if(t=ut(e))return t;e=[e]}return lt(e)}function pt(e){var t=e._a;return t&&-2===f(e).overflow&&(t=t[be]<0||11<t[be]?be:t[we]<1||t[we]>Pe(t[ve],t[be])?we:t[Se]<0||24<t[Se]||24===t[Se]&&(0!==t[xe]||0!==t[Ce]||0!==t[Ee])?Se:t[xe]<0||59<t[xe]?xe:t[Ce]<0||59<t[Ce]?Ce:t[Ee]<0||999<t[Ee]?Ee:-1,f(e)._overflowDayOfYear&&(t<ve||we<t)&&(t=we),f(e)._overflowWeeks&&-1===t&&(t=Te),f(e)._overflowWeekday&&-1===t&&(t=Ae),f(e).overflow=t),e}var mt=/^\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)?)?$/,ft=/^\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)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],gt=[["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/]],vt=/^\/?Date\((-?\d+)/i,bt=/^(?:(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}))$/,wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,r,i,s,o,a=e._i,l=mt.exec(a)||ft.exec(a);if(l){for(f(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[1])){i=yt[t][0],r=!1!==yt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(l[3])){s=(l[2]||" ")+gt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!_t.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),At(e)}else e._isValid=!1}function xt(e,t,n,r,i,s){i=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),ke.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&i.push(parseInt(s,10)),i}function Ct(e){var t,n,r,i,s=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&Ge.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(f(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(i=s[8],t=s[9],s=s[10],i?wt[i]:t?0:((t=parseInt(s,10))-(s=t%100))/100*60+s),e._d=Ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0)):e._isValid=!1}function Et(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,i,s,o,a,l,u,d,c,h,p=[];if(!e._d){for(c=e,h=new Date(m.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[we]&&null==e._a[be]&&(null!=(c=(i=e)._w).GG||null!=c.W||null!=c.E?(l=1,u=4,s=Et(c.GG,i._a[ve],$e(kt(),1,4).year),o=Et(c.W,1),((a=Et(c.E,1))<1||7<a)&&(d=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=$e(kt(),l,u),s=Et(c.gg,i._a[ve],h.year),o=Et(c.w,h.week),null!=c.d?((a=c.d)<0||6<a)&&(d=!0):null!=c.e?(a=c.e+l,(c.e<0||6<c.e)&&(d=!0)):a=l),o<1||o>je(s,l,u)?f(i)._overflowWeeks=!0:null!=d?f(i)._overflowWeekday=!0:(u=He(s,o,a,l,u),i._a[ve]=u.year,i._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(r=Et(e._a[ve],n[ve]),(e._dayOfYear>Fe(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),r=Ye(r,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[we]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=n[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[xe]&&0===e._a[Ce]&&0===e._a[Ee]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ye:ze).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function At(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,r=""+e._i,i=r.length,s=0,o=L(e._f,e._locale).match(k)||[],a=0;a<o.length;a++)n=o[a],(t=(r.match(he(n,e))||[])[0])&&(0<(c=r.substr(0,r.indexOf(t))).length&&f(e).unusedInput.push(c),r=r.slice(r.indexOf(t)+t.length),s+=t.length),I[n]?(t?f(e).empty=!1:f(e).unusedTokens.push(n),d=n,h=e,null!=(c=t)&&p(fe,d)&&fe[d](c,h._a,h,d)):e._strict&&!t&&f(e).unusedTokens.push(n);f(e).charsLeftOver=i-s,0<r.length&&f(e).unusedInput.push(r),e._a[Se]<=12&&!0===f(e).bigHour&&0<e._a[Se]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Se]=(l=e._locale,u=e._a[Se],null==(i=e._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,i):null!=l.isPM?((i=l.isPM(i))&&u<12&&(u+=12),u=i||12!==u?u:0):u),null!==(u=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(u,e._a[ve])),Tt(e),pt(e)}else Ct(e);else St(e);var l,u,d,c,h}function Pt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(pt(t)):(i(t)?e._d=t:o(n)?function(e){var t,n,r,i,s,o,a=!1;if(0===e._f.length)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)s=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],At(t),h(t)&&(o=!0),s+=f(t).charsLeftOver,s+=10*f(t).unusedTokens.length,f(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o&&(a=!0));d(e,n||t)}(e):n?At(e):s(n=(t=e)._i)?t._d=new Date(m.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=vt.exec(e._i);null===t?(St(e),!1===e._isValid&&(delete e._isValid,Ct(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):o(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),Tt(t)):a(n)?function(e){var t,n;e._d||(n=void 0===(t=Y(e._i)).day?t.date:t.day,e._a=r([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Tt(e))}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),h(e)||(e._d=null),e))}function Dt(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),(a(e)&&l(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,(s=new b(pt(Pt(s=s))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function kt(e,t,n,r){return Dt(e,t,n,r,!1)}m.createFromInputFallback=n("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(){};var Ot=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Mt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:_()});function It(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return kt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(p(e,t)&&(-1===ge.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Nt.length;++n)if(e[Nt[n]]){if(r)return!1;parseFloat(e[Nt[n]])!==W(e[Nt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*a*60*60,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=ht(),this._bubble()}function Lt(e){return e instanceof Rt}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(e,n){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}Bt("Z",":"),Bt("ZZ",""),ce("Z",ue),ce("ZZ",ue),_e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(ue,e)});var zt=/([\+\-]|\d\d)/gi;function Yt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(zt)||["-",0,0])[1]+W(e[2]))?0:"+"===e[0]?t:-t}function Ut(e,t){var n;return t._isUTC?(n=t.clone(),t=(w(e)||i(e)?e:kt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):kt(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function $t(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\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 Vt(e,t){var n,r,i=e,s=null;return Lt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=jt.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:W(s[we])*n,h:W(s[Se])*n,m:W(s[xe])*n,s:W(s[Ce])*n,ms:W(Ft(1e3*s[Ee]))*n}):(s=Wt.exec(e))?(n="-"===s[1]?-1:1,i={y:Gt(s[2],n),M:Gt(s[3],n),w:Gt(s[4],n),d:Gt(s[5],n),h:Gt(s[6],n),m:Gt(s[7],n),s:Gt(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=kt(i.from),n=kt(i.to),r=s.isValid()&&n.isValid()?(n=Ut(n,s),s.isBefore(n)?r=qt(s,n):((r=qt(n,s)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),i=new Rt(i),Lt(e)&&p(e,"_locale")&&(i._locale=e._locale),Lt(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function qt(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 Xt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(C(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),Jt(this,Vt(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,s=Ft(t._days),t=Ft(t._months);e.isValid()&&(r=null==r||r,t&&Ne(e,G(e,"Month")+t*n),s&&q(e,"Date",G(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,s||t))}Vt.fn=Rt.prototype,Vt.invalid=function(){return Vt(NaN)};var Zt=Xt(1,"add"),de=Xt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return w(e)||i(e)||Kt(e)||u(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!u(e)&&Kt(t)}).length),n&&r)||function(e){var t,n,r=a(e)&&!l(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"];for(t=0;t<s.length;t+=1)n=s[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function tn(e){return void 0===e?this._locale._abbr:(null!=(e=ht(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=n("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 nn(){return this._locale}var rn=126227808e5;function sn(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rn:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function un(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(pe(i[s].name)),e.push(pe(i[s].abbr)),n.push(pe(i[s].narrow)),r.push(pe(i[s].name)),r.push(pe(i[s].abbr)),r.push(pe(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 dn(e,t){N(0,[e,e.length],0,t)}function cn(e,t,n,r,i){var s;return null==e?$e(this,r,i).year:(t>(s=je(e,r,i))&&(t=s),function(e,t,n,r,i){i=He(e,t,n,r,i),i=Ye(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,i))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ce("N",ln),ce("NN",ln),ce("NNN",ln),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),_e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?f(n).era=r:f(n).invalidEra=e}),ce("y",oe),ce("yy",oe),ce("yyy",oe),ce("yyyy",oe),ce("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),_e(["y","yy","yyy","yyyy"],ve),_e(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",ee,J),ce("gg",ee,J),ce("GGGG",ie,K),ce("gggg",ie,K),ce("GGGGG",se,Q),ce("ggggg",se,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=W(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),ce("Q",X),_e("Q",function(e,t){t[be]=3*(W(e)-1)}),N("D",["DD",2],"Do","date"),B("date","D"),H("date",9),ce("D",ee),ce("DD",ee,J),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],we),_e("Do",function(e,t){t[we]=W(e.match(ee)[0])});ne=V("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),ce("DDD",re),ce("DDDD",Z),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=W(e)}),N("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),ce("m",ee),ce("mm",ee,J),_e(["m","mm"],xe);De=V("Minutes",!1);N("s",["ss",2],0,"second"),B("second","s"),H("second",15),ce("s",ee),ce("ss",ee,J),_e(["s","ss"],Ce);var hn,Ve=V("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),H("millisecond",16),ce("S",re,X),ce("SS",re,J),ce("SSS",re,Z),hn="SSSS";hn.length<=9;hn+="S")ce(hn,oe);function pn(e,t){t[Ee]=W(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")_e(hn,pn);qe=V("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");ie=b.prototype;function mn(e){return e}ie.add=Zt,ie.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=a(e)&&!l(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||kt(),e=Ut(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(E(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,kt(n)))},ie.clone=function(){return new b(this)},ie.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=z(t)){case"year":s=en(this,r)/12;break;case"month":s=en(this,r);break;case"quarter":s=en(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:j(s)},ie.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:on,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-sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-sn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-sn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=R(this,e),this.localeData().postformat(e)},ie.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.fromNow=function(e){return this.from(kt(),e)},ie.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ie.toNow=function(e){return this.to(kt(),e)},ie.get=function(e){return E(this[e=z(e)])?this[e]():this},ie.invalidAt=function(){return f(this).overflow},ie.isAfter=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ie.isBefore=function(e,t){return e=w(e)?e:kt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ie.isBetween=function(e,t,n,r){return e=w(e)?e:kt(e),t=w(t)?t:kt(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))},ie.isSame=function(e,t){var e=w(e)?e:kt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ie.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ie.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ie.isValid=function(){return h(this)},ie.lang=te,ie.locale=tn,ie.localeData=nn,ie.max=Mt,ie.min=Ot,ie.parsingFlags=function(){return d({},f(this))},ie.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:U[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(E(this[e=z(e)]))return this[e](t);return this},ie.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:on,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-=sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=sn(t,6e4);break;case"second":t=this._d.valueOf(),t-=sn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},ie.subtract=de,ie.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ie.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()}},ie.toDate=function(){return new Date(this.valueOf())},ie.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?R(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(e,"Z")):R(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ie.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ie.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""},ie.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""},ie.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""},ie.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()},ie.year=Be,ie.isLeapYear=function(){return $(this.year())},ie.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ie.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ie.quarter=ie.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ie.month=Re,ie.daysInMonth=function(){return Pe(this.year(),this.month())},ie.week=ie.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ie.isoWeek=ie.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ie.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},ie.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},ie.isoWeeksInYear=function(){return je(this.year(),1,4)},ie.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},ie.date=ne,ie.day=ie.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},ie.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ie.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},ie.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")},ie.hour=ie.hours=nt,ie.minute=ie.minutes=De,ie.second=ie.seconds=Ve,ie.millisecond=ie.milliseconds=qe,ie.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:Ht(this);if("string"==typeof e){if(null===(e=Yt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},ie.utc=function(e){return this.utcOffset(0,e)},ie.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},ie.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ie.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ie.isUtc=$t,ie.isUTC=$t,ie.zoneAbbr=function(){return this._isUTC?"UTC":""},ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ie.dates=n("dates accessor is deprecated. Use date instead.",ne),ie.months=n("months accessor is deprecated. Use month instead",Re),ie.years=n("years accessor is deprecated. Use year instead",Be),ie.zone=n("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()}),ie.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Pt(t))._a?(e=(t._isUTC?c:kt)(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&&W(e[o])!==W(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=A.prototype;function fn(e,t,n,r){var i=ht(),t=c().set(r,t);return i[n](t,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function yn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),u(t)&&(n=t,t=void 0),t||"");var i,s=ht(),o=e?s._week.dow:0,a=[];if(null!=n)return fn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=fn(t,(i+o)%7,r,"day");return a}K.calendar=function(e,t,n){return E(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(k).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=mn,K.postformat=mn,K.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return E(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)p(e,n)&&(E(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)},K.eras=function(e,t){for(var n,r=this._eras||ht("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},K.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]},K.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},K.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return p(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Oe.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.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=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,e))?i:null:-1!==(i=ge.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,e))||-1!==(i=ge.call(this._longMonthsParse,e))?i:null:-1!==(i=ge.call(this._longMonthsParse,e))||-1!==(i=ge.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=c([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}},K.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Me),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return $e(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.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?We(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.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=c([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=ge.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.call(this._shortWeekdaysParse,e))||-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,e))||-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.call(this._minWeekdaysParse,e))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,e))||-1!==(i=ge.call(this._weekdaysParse,e))||-1!==(i=ge.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=c([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}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},dt("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===W(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",dt),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var gn=Math.abs;function vn(e,t,n,r){n=Vt(t,n);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}se=xn("ms"),Q=xn("s"),X=xn("m"),J=xn("h"),re=xn("d"),Z=xn("w"),Zt=xn("M"),Mt=xn("Q"),Ot=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}de=Cn("milliseconds"),nt=Cn("seconds"),De=Cn("minutes"),Ve=Cn("hours"),qe=Cn("days"),ne=Cn("months"),Be=Cn("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=Vt(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),u=En(i.as("M")),d=En(i.as("w")),i=En(i.as("y")),l=(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(l=(l=null!=n.w?l||d<=1&&["w"]||d<n.w&&["ww",d]:l)||u<=1&&["M"]||u<n.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,l[3]=0<+e,l[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,s,o,a=Pn(this._milliseconds)/1e3,l=Pn(this._days),u=Pn(this._months),d=this.asSeconds();return d?(e=j(a/60),t=j(e/60),a%=60,e%=60,n=j(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(d)?"-":"",s=Dn(this._days)!==Dn(d)?"-":"",o=Dn(this._milliseconds)!==Dn(d)?"-":"",(d<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"}K=Rt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},K.add=function(e,t){return vn(this,e,t,1)},K.subtract=function(e,t){return vn(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(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)}},K.asMilliseconds=se,K.asSeconds=Q,K.asMinutes=X,K.asHours=J,K.asDays=re,K.asWeeks=Z,K.asMonths=Zt,K.asQuarters=Mt,K.asYears=Ot,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},K._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*bn(Sn(n)+t),n=t=0),r.milliseconds=e%1e3,e=j(e/1e3),r.seconds=e%60,e=j(e/60),r.minutes=e%60,e=j(e/60),r.hours=e%24,t+=j(e/24),n+=e=j(wn(t)),t-=bn(Sn(e)),e=j(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},K.clone=function(){return Vt(this)},K.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=de,K.seconds=nt,K.minutes=De,K.hours=Ve,K.days=qe,K.weeks=function(){return j(this.days()/7)},K.months=ne,K.years=Be,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Tn;return"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)),r=An(this,!n,r,t=this.localeData()),n&&(r=t.pastFuture(+this,r)),t.postformat(r)},K.toISOString=kn,K.toString=kn,K.toJSON=kn,K.locale=tn,K.localeData=nn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),K.lang=te,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ce("x",ae),ce("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),_e("x",function(e,t,n){n._d=new Date(W(e))}),m.version="2.29.1",e=kt,m.fn=ie,m.min=function(){return It("isBefore",[].slice.call(arguments,0))},m.max=function(){return It("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return kt(1e3*e)},m.months=function(e,t){return _n(e,t,"months")},m.isDate=i,m.locale=dt,m.invalid=_,m.duration=Vt,m.isMoment=w,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return kt.apply(null,arguments).parseZone()},m.localeData=ht,m.isDuration=Lt,m.monthsShort=function(e,t){return _n(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=ct,m.updateLocale=function(e,t){var n,r;return null!=t?(r=it,null!=st[e]&&null!=st[e].parentLocale?st[e].set(T(st[e]._config,t)):(t=T(r=null!=(n=ut(e))?n._config:r,t),null==n&&(t.abbr=e),(t=new A(t)).parentLocale=st[e],st[e]=t),dt(e)):null!=st[e]&&(null!=st[e].parentLocale?(st[e]=st[e].parentLocale,e===dt()&&dt(e)):null!=st[e]&&delete st[e]),st[e]},m.locales=function(){return P(st)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=z,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(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=ie,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}(),lr.exports);const cr={en:{bonusCard:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Amount",remainingBonus:"Remaining Bonus Amount",forfeitBonus:"Forfeit Bonus"}},ro:{bonusCard:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Sumă de pariat",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul"}}};function hr(e){let n,r,i,s,o,a,l,u,d=e[8]("bonusCard.bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=W(d),s=V(),o=t("p"),a=W(e[3]),l=V(),u=W(e[6]),G(r,"class","BonusCardRowTitle"),G(r,"part","BonusCardRowTitle"),G(o,"class","BonusCardRowText"),G(o,"part","BonusCardRowText"),G(n,"class","BonusCardRow"),G(n,"part","BonusCardRow")},m(e,t){$(e,n,t),H(n,r),H(r,i),H(n,s),H(n,o),H(o,a),H(o,l),H(o,u)},p(e,t){256&t&&d!==(d=e[8]("bonusCard.bonusAmount")+"")&&q(i,d),8&t&&q(a,e[3]),64&t&&q(u,e[6])},d(e){e&&j(n)}}}function pr(e){let n,r,i,s,o,a,l,u,d=e[8]("bonusCard.wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=W(d),s=V(),o=t("p"),a=W(e[4]),l=V(),u=W(e[6]),G(r,"class","BonusCardRowTitle"),G(r,"part","BonusCardRowTitle"),G(o,"class","BonusCardRowText"),G(o,"part","BonusCardRowText"),G(n,"class","BonusCardRow"),G(n,"part","BonusCardRow")},m(e,t){$(e,n,t),H(n,r),H(r,i),H(n,s),H(n,o),H(o,a),H(o,l),H(o,u)},p(e,t){256&t&&d!==(d=e[8]("bonusCard.wageringAmount")+"")&&q(i,d),16&t&&q(a,e[4]),64&t&&q(u,e[6])},d(e){e&&j(n)}}}function mr(e){let n,r,i,s,o,a,l,u,d=e[8]("bonusCard.remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=W(d),s=V(),o=t("p"),a=W(e[5]),l=V(),u=W(e[6]),G(r,"class","BonusCardRowTitle"),G(r,"part","BonusCardRowTitle"),G(o,"class","BonusCardRowText"),G(o,"part","BonusCardRowText"),G(n,"class","BonusCardRow"),G(n,"part","BonusCardRow")},m(e,t){$(e,n,t),H(n,r),H(r,i),H(n,s),H(n,o),H(o,a),H(o,l),H(o,u)},p(e,t){256&t&&d!==(d=e[8]("bonusCard.remainingBonus")+"")&&q(i,d),32&t&&q(a,e[5]),64&t&&q(u,e[6])},d(e){e&&j(n)}}}function fr(n){let r,i,s,o,a,l=n[8]("bonusCard.forfeitBonus")+"";return{c(){r=t("button"),i=W(l),s=W("s"),G(r,"class","DeleteBonus "+(n[9]?"DeleteBonusMobile":"")),G(r,"part","DeleteBonus "+(n[9]?"DeleteBonusMobile":""))},m(e,t){$(e,r,t),H(r,i),H(r,s),o||(a=z(r,"click",n[10]),o=!0)},p(e,t){256&t&&l!==(l=e[8]("bonusCard.forfeitBonus")+"")&&q(i,l)},d(e){e&&j(r),o=!1,a()}}}function _r(e){let n,r,i,s,o,a,l,u,d,c,h,p,m,f,_,y,g,v,b,w,S,x,C,E,T,A,P,D,k,O,M,I=e[8]("bonusCard.date")+"",N=dr(e[0]).format("DD/MM/YYYY h:mm A")+"",R=e[8]("bonusCard.bonusName")+"",L=e[8]("bonusCard.bonusType")+"",F=0<=e[3]&&hr(e),B=0<=e[4]&&pr(e),z=0<=e[5]&&mr(e),Y="active"===e[1]&&fr(e);return{c(){n=t("div"),r=t("div"),i=t("div"),s=t("p"),o=W(I),a=V(),l=t("span"),u=W(N),d=V(),c=t("p"),h=W(e[1]),f=V(),_=t("div"),y=t("p"),g=W(R),v=V(),b=t("p"),w=W(e[2]),S=V(),x=t("div"),C=t("p"),E=W(L),T=V(),A=t("p"),P=W(e[7]),D=V(),F&&F.c(),k=V(),B&&B.c(),O=V(),z&&z.c(),M=V(),Y&&Y.c(),this.c=U,G(s,"class","BonusCardRowTitle"),G(s,"part","BonusCardRowTitle"),G(c,"class",p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":"")),G(c,"part",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":"")),G(i,"class","BonusCardRow"),G(i,"part","BonusCardRow"),G(y,"class","BonusCardRowTitle"),G(y,"part","BonusCardRowTitle"),G(b,"class","BonusCardRowText"),G(b,"part","BonusCardRowText"),G(_,"class","BonusCardRow"),G(_,"part","BonusCardRow"),G(C,"class","BonusCardRowTitle"),G(C,"part","BonusCardRowTitle"),G(A,"class","BonusCardRowText TextCapitalize"),G(A,"part","BonusCardRowText TextCapitalize"),G(x,"class","BonusCardRow"),G(x,"part","BonusCardRow"),G(r,"class","BonusCardInfo"),G(r,"part","BonusCardInfo"),G(n,"class","BonusCard"),G(n,"part","BonusCard")},m(e,t){$(e,n,t),H(n,r),H(r,i),H(i,s),H(s,o),H(s,a),H(s,l),H(l,u),H(i,d),H(i,c),H(c,h),H(r,f),H(r,_),H(_,y),H(y,g),H(_,v),H(_,b),H(b,w),H(r,S),H(r,x),H(x,C),H(C,E),H(x,T),H(x,A),H(A,P),H(r,D),F&&F.m(r,null),H(r,k),B&&B.m(r,null),H(r,O),z&&z.m(r,null),H(n,M),Y&&Y.m(n,null)},p(e,[t]){256&t&&I!==(I=e[8]("bonusCard.date")+"")&&q(o,I),1&t&&N!==(N=dr(e[0]).format("DD/MM/YYYY h:mm A")+"")&&q(u,N),2&t&&q(h,e[1]),2&t&&p!==(p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&G(c,"class",p),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&G(c,"part",m),256&t&&R!==(R=e[8]("bonusCard.bonusName")+"")&&q(g,R),4&t&&q(w,e[2]),256&t&&L!==(L=e[8]("bonusCard.bonusType")+"")&&q(E,L),128&t&&q(P,e[7]),0<=e[3]?F?F.p(e,t):(F=hr(e),F.c(),F.m(r,k)):F&&(F.d(1),F=null),0<=e[4]?B?B.p(e,t):(B=pr(e),B.c(),B.m(r,O)):B&&(B.d(1),B=null),0<=e[5]?z?z.p(e,t):(z=mr(e),z.c(),z.m(r,null)):z&&(z.d(1),z=null),"active"===e[1]?Y?Y.p(e,t):(Y=fr(e),Y.c(),Y.m(n,null)):Y&&(Y.d(1),Y=null)},i:U,o:U,d(e){e&&j(n),F&&F.d(),B&&B.d(),z&&z.d(),Y&&Y.d()}}}function yr(t,e,n){let r;T(t,or,e=>n(8,r=e));let{bonuswalletid:i=""}=e,{bonusdate:s=""}=e,{bonusstatus:o=""}=e,{bonusname:a=""}=e,{bonustype:l=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:c=""}=e,{bonuscurrency:h=""}=e,{lang:p="en"}=e,m=window.navigator.userAgent,f="PC"!==ar(m),_="";Object.keys(cr).forEach(e=>{Yn(e,cr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(11,i=e.bonuswalletid),"bonusdate"in e&&n(0,s=e.bonusdate),"bonusstatus"in e&&n(1,o=e.bonusstatus),"bonusname"in e&&n(2,a=e.bonusname),"bonustype"in e&&n(12,l=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,h=e.bonuscurrency),"lang"in e&&n(13,p=e.lang)},t.$$.update=()=>{var e;8192&t.$$.dirty&&p&&(e=p,Jn.set(e)),4096&t.$$.dirty&&l&&(n(7,_=l),"freeRound"===_?n(7,_="Free Spins"):"freeBet"===_&&n(7,_="Free Bet"))},[s,o,a,u,d,c,h,_,r,f,()=>{window.postMessage({type:"DeleteActiveBonus",bonuswalletid:i},window.location.href)},i,l,p]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0 3px 12px var(--emfe-w-color-black, #000000)}.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)}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},yr,_r,n,{bonuswalletid:11,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:12,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:13}),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang"]}get bonuswalletid(){return this.$$.ctx[11]}set bonuswalletid(e){this.$set({bonuswalletid:e}),b()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$set({bonusdate:e}),b()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$set({bonusstatus:e}),b()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$set({bonusname:e}),b()}get bonustype(){return this.$$.ctx[12]}set bonustype(e){this.$set({bonustype:e}),b()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$set({bonusamount:e}),b()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$set({bonuswageringamount:e}),b()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$set({bonusremainingamount:e}),b()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$set({bonuscurrency:e}),b()}get lang(){return this.$$.ctx[13]}set lang(e){this.$set({lang:e}),b()}});class gr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",gr);let vr,br=null,wr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Sr(e){requestAnimationFrame(function(){wr?wr(e):(br||(br=new Promise(e=>{vr=e}),"complete"===document.readyState?vr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&vr()})),br.then(function(){e&&e()}))})}const xr="__seenByShadyCSS",Cr="__shadyCSSCachedStyle";let Er=null,Tr=null;class Ar{constructor(){this.customStyles=[],this.enqueued=!1,Sr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Tr&&(this.enqueued=!0,Sr(Tr))}addCustomStyle(e){e[xr]||(e[xr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Cr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){const r=t[e];if(!r[Cr]){var n=this.getStyleForCustomStyle(r);if(n){const t=n.__appliedElement||n;Er&&Er(t),r[Cr]=t}}}return t}}Object.defineProperties(Ar.prototype,{transformCallback:{get:()=>Er,set(e){Er=e}},validateCallback:{get:()=>Tr,set(e){let t=!1;Tr||(t=!0),Tr=e,t&&this.enqueueDocumentValidation()}}});const Pr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Dr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kr=/@media\s(.*)/;function Or(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Mr(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}const Ir=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Nr,Rr;function Lr(e){Nr=(!e||!e.shimcssproperties)&&(Ir||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&&(Rr=window.ShadyCSS.cssBuild);Wt=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Nr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Lr(window.ShadyCSS),window.ShadyCSS=void 0):Lr(window.WebComponents&&window.WebComponents.flags);const Fr=Nr,Br=new Ar;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){Br.processStyles(),Or(e,t)},styleElement(e){Br.processStyles()},styleDocument(e){Br.processStyles(),Or(document.body,e)},getComputedStyleValue:(e,t)=>Mr(e,t),flushCustomStyles(){},nativeCss:Fr,nativeShadow:Ir,cssBuild:Rr,disableRuntime:Wt}),window.ShadyCSS.CustomStyleInterface=Br,window.JSCompiler_renameProperty=function(e,t){return e};let zr,Yr,Ur=/(url\()([^)]*)(\))/g,Hr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function $r(e,t){if(e&&Hr.test(e))return e;if("//"===e)return e;if(void 0===zr){zr=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",zr="http://a/c%20d"===e.href}catch(e){}}if(t=t||(document.baseURI||window.location.href),zr)try{return new URL(e,t).href}catch(t){return e}return Yr||(Yr=document.implementation.createHTMLDocument("temp"),Yr.base=Yr.createElement("base"),Yr.head.appendChild(Yr.base),Yr.anchor=Yr.createElement("a"),Yr.body.appendChild(Yr.anchor)),Yr.base.href=t,Yr.anchor.href=e,Yr.anchor.href||e}function jr(e,i){return e.replace(Ur,function(e,t,n,r){return t+"'"+$r(n.replace(/["']/g,""),i)+"'"+r})}function Wr(e){return e.substring(0,e.lastIndexOf("/")+1)}const Vr=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Gr=Vr&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let qr=window.Polymer&&window.Polymer.rootPath||Wr(document.baseURI||window.location.href),Xr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Jr=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Zr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Qr=window.Polymer&&window.Polymer.legacyOptimizations||!1,ei=window.Polymer&&window.Polymer.legacyWarnings||!1,ti=window.Polymer&&window.Polymer.syncInitialRender||!1,ni=window.Polymer&&window.Polymer.legacyUndefined||!1,ri=window.Polymer&&window.Polymer.orderedComputed||!1,ii=window.Polymer&&window.Polymer.removeNestedTemplates||!1,si=window.Polymer&&window.Polymer.fastDomIf||!1,oi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ai=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,li=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ui={},di={};function ci(e,t){ui[e]=di[e.toLowerCase()]=t}function hi(e){return ui[e]||di[e.toLowerCase()]}class pi extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let e=hi(t);return e&&n?e.querySelector(n):e}return 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=$r(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Wr(e)),this.__assetpath}register(e){if(e=e||this.id){if(Zr&&void 0!==hi(e))throw ci(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ci(this.id=e,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}}}pi.prototype.modules=ui,customElements.define("dom-module",pi);const mi="shady-unscoped";function fi(e){return pi.import(e)}function _i(e){const t=jr((e.body||e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function yi(e){const t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){const t=fi(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const n=[];n.push(...vi(t));e=t.querySelector("template");e&&n.push(...gi(e,t.assetpath)),t._styles=n}return t._styles}(t[e]));return n}function gi(e,r){if(!e._styles){const i=[],s=e.content.querySelectorAll("style");for(let n=0;n<s.length;n++){let e=s[n],t=e.getAttribute("include");t&&i.push(...yi(t).filter(function(e,t,n){return n.indexOf(e)===t})),r&&(e.textContent=jr(e.textContent,r)),i.push(e)}e._styles=i}return e._styles}function vi(n){const r=[],i=n.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<i.length;t++){let e=i[t];if(e.import){const n=e.import,i=e.hasAttribute(mi);if(i&&!n._unscopedStyle){const r=_i(n);r.setAttribute(mi,""),n._unscopedStyle=r}else n._style||(n._style=_i(n));r.push(i?n._unscopedStyle:n._style)}}return r}const bi="include",wi=window.ShadyCSS.CustomStyleInterface;class Si extends HTMLElement{constructor(){super(),this._style=null,wi.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;var r=e.getAttribute(bi);return r&&(e.removeAttribute(bi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){let i=fi(e);if(i&&void 0===i._cssText){let e=function(){let t="",n=vi(i);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),t=i.querySelector("template");t&&(e+=function(){let n="";var r=gi(t,i.assetpath);for(let t=0;t<r.length;t++){let e=r[t];e.parentNode&&e.parentNode.removeChild(e),n+=e.textContent}return n}()),i._cssText=e||null}return i||console.warn("Could not find style data in module named",e),i&&i._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",Si);const xi=document.createElement("template");xi.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(xi.content);const Ci=document.createElement("template");Ci.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(Ci.content);const Ei=document.createElement("template");Ei.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(Ei.content);const Ti=document.createElement("template");Ti.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(Ti.content);const Ai=document.createElement("template");Ai.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(Ai.content);const Pi=document.createElement("template");Pi.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(Pi.content);const Di=document.createElement("template");Di.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(Di.content);class ki{constructor(e){this.value=e.toString()}toString(){return this.value}}const Oi=function(r,...e){const t=document.createElement("template");return t.innerHTML=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof ki)return function(e){if(e instanceof ki)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}(t)+r[n+1],r[0]),t},Mi=Oi`<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"] {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
</style>
|
|
39
39
|
</template>
|
|
40
|
-
</dom-module>`;document.head.appendChild(Mi.content);
|
|
40
|
+
</dom-module>`;document.head.appendChild(Mi.content);At=Oi`<dom-module id="lumo-button" theme-for="vaadin-button">
|
|
41
41
|
<template>
|
|
42
42
|
<style>
|
|
43
43
|
:host {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
</style>
|
|
322
322
|
</template>
|
|
323
|
-
</dom-module>`;document.head.appendChild(Tt.content);let Ii=0;const Ni=function(s){let e=s.__mixinApplications;e||(e=new WeakMap,s.__mixinApplications=e);let o=Ii++;return function(t){var n=t.__mixinSet;if(n&&n[o])return t;let r=e,i=r.get(t);if(!i){i=s(t),r.set(t,i);let e=Object.create(i.__mixinSet||n||null);e[o]=!0,i.__mixinSet=e}return i}},Li=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Ri(e){return 0<=e.indexOf(".")}function Fi(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function zi(e,t){return 0===e.indexOf(t+".")}function Bi(e,t){return 0===t.indexOf(e+".")}function Yi(e,t,n){return t+n.slice(e.length)}function Ui(n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){var r=n[e].toString().split(".");for(let e=0;e<r.length;e++)t.push(r[e])}return t.join(".")}return n}function Hi(e){return(Array.isArray(e)?Ui(e):e.toString()).split(".")}function $i(e,t,n){let r=e,i=Hi(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function ji(e,t,n){let r=e,i=Hi(t),s=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(r=r[i[e]],!r)return;r[s]=n}else r[t]=n;return i.join(".")}const Wi={},Vi=/-[a-z]/g,Gi=/([A-Z])/g;function qi(e){return Wi[e]||(Wi[e]=e.indexOf("-")<0?e:e.replace(Vi,e=>e[1].toUpperCase()))}function Xi(e){return Wi[e]||(Wi[e]=e.replace(Gi,"-$1").toLowerCase())}let Ji=0,Zi=0,Ki=[],Qi=0,es=!1,ts=document.createTextNode("");new window.MutationObserver(function(){es=!1;var n=Ki.length;for(let t=0;t<n;t++){let e=Ki[t];if(e)try{e()}catch(n){setTimeout(()=>{throw n})}}Ki.splice(0,n),Zi+=n}).observe(ts,{characterData:!0});const ns={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)}},rs={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},is={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ss={run:e=>(es||(es=!0,ts.textContent=Qi++),Ki.push(e),Ji++),cancel(e){var t=e-Zi;if(0<=t){if(!Ki[t])throw new Error("invalid async handle: "+e);Ki[t]=null}}},os=ss,as=Ni(e=>class extends e{static createProperties(e){const t=this.prototype;for(var n in e)n in t||t._createPropertyAccessor(n)}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,os.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[e=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(e)))}_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=Li(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,t)}_serializeValue(e){return"boolean"!=typeof e?null!=e?e.toString():void 0:e?"":void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),ls={};let us=HTMLElement.prototype;for(;us;){var cs=Object.getOwnPropertyNames(us);for(let e=0;e<cs.length;e++)ls[cs[e]]=!0;us=Object.getPrototypeOf(us)}const ds=Ni(e=>{return class extends as(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(qi(t[e]))}static attributeNameForProperty(e){return Xi(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)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,ls[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)}}}),hs={"dom-if":!0,"dom-repeat":!0};let ps=!1,ms=!1;const fs=Ni(e=>class extends e{static _parseTemplate(t,n){if(!t._templateInfo){let e=t._templateInfo={};e.nodeInfoList=[],e.nestedTemplate=Boolean(n),e.stripWhiteSpace=n&&n.stripWhiteSpace||t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,e,{parent:null})}return t._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,function(){if(!ps){ps=!0;const e=document.createElement("textarea");e.placeholder="a",ms=e.placeholder===e.textContent}return ms}()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,t,n)||r),r||n.noted}static _parseTemplateChildNodes(i,s,o){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,r=0;n;n=t){if("template"==n.localName&&(n=function(t){var n=t.getAttribute("is");if(n&&hs[n]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(n),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;)t.setAttribute(e.attributes[0].name,e.attributes[0].value),e.removeAttribute(e.attributes[0].name)}return t}(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,i.removeChild(e),e=t;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let e={parentIndex:r,parentInfo:o};this._parseTemplateNode(n,s,e)&&(e.infoIndex=s.nodeInfoList.push(e)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,n){let r=e,i=this._parseTemplate(r,t);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!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);let i=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,t=r.content||e.content,s=document.importNode(t,!0);s.__noInsertionPoint=!r.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++){var a=o[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}(s,e);l=s.$,u=a,(c=e).id&&(l[c.id]=u),l=a,c=e,u=r,c.templateInfo&&(l._templateInfo=c.templateInfo,l._parentTemplateInfo=u),function(r,i,s){if(s.events&&s.events.length)for(let e,t=0,n=s.events;t<n.length&&(e=n[t]);t++)r._addMethodEventListenerToNode(i,e.name,e.value,r)}(this,a,e)}var l,u,c;return s,s}_addMethodEventListenerToNode(e,t,n,r){var i,s,n=(i=r=r||e,s=n,i=i._methodHost||i,function(e){i[s]?i[s](e,e.detail):console.warn("listener method `"+s+"` not defined")});return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let _s=0;const ys=[],gs={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},vs=/[A-Z]/;function bs(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){let t=r[i],n=r[i]=Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e]}}else r=e[t]={};return r}function ws(i,e,s,o,a,l){if(e){let r=!1;var u,c=_s++;for(u in s){var d=e[a?Fi(u):u];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===c||a&&!Ss(u,e.trigger)||(e.info&&(e.info.lastRun=c),e.fn(i,u,s,o,e.info,a,l),r=!0)}return r}}function Ss(e,t){if(t){var n=t.name;return n==e||t.structured&&zi(n,e)||t.wildcard&&Bi(n,e)}return 1}function xs(e,t,n,r,i){let 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 Cs(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Li(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Es(e,t,n,r,i,s){let o=(s?Fi(t):t)!=t?t:null,a=o?$i(e,o):e.__data[t];o&&void 0===a&&(a=n[t]),Cs(e,i.eventName,a,o)}function As(e,t,n,r,i){let s=e.__data[t];Xr&&(s=Xr(s,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,s)}const Ts=(t,e,n,r,i)=>{var s=e[i?Fi(t):t];if(s)for(let e=0;e<s.length;e++){const o=s[e];o.info.lastRun===_s||i&&!Ss(t,o.trigger)||(o.info.lastRun=_s,((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)})(o.info,n,r))}};function Ps(e,t,n,r,i){r=Is(e,t,n,0,i);if(r===ys)return!1;i=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,r,!0):(e[i]=r,!1)}function Ds(n,r,e,t,i,s,o){e.bindings=e.bindings||[];let a={kind:t,target:i,parts:s,literal:o,isCompound:1!==s.length};e.bindings.push(a),s=a,Boolean(s.target)&&"attribute"!=s.kind&&"text"!=s.kind&&!s.isCompound&&"{"===s.parts[0].mode&&({event:e,negate:s}=a.parts[0],a.listenerEvent=e||Xi(i)+"-changed",a.listenerNegate=s);var l=r.nodeInfoList.length;for(let t=0;t<a.parts.length;t++){let e=a.parts[t];e.compoundIndex=t,function(n,r,e,t,i){if(!t.literal)if("attribute"===e.kind&&"-"===e.target[0])console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{var s=t.dependencies,o={index:i,binding:e,part:t,evaluator:n};for(let t=0;t<s.length;t++){let e=s[t];"string"==typeof e&&(e=zs(e),e.wildcard=!0),n._addTemplatePropertyEffect(r,e.rootProperty,{fn:ks,info:o,trigger:e})}}}(n,r,a,e,l)}}function ks(e,t,n,r,i,s,o){let a=o[i.index],l=i.binding,u=i.part;var c;s&&u.source&&t.length>u.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(o=n[t],t=Yi(u.source,l.target,t),a._setPendingPropertyOrPath(t,o,!1,!0)&&e._enqueueClient(a)):(n=i.evaluator._evaluateBinding(e,u,t,n,r,s))!==ys&&(r=e,s=a,c=u,e=function(t,n,r){if(r.isCompound){let e=t.__dataCompoundStorage[r.target];e[c.compoundIndex]=n,n=e.join("")}return"attribute"!==r.kind&&("textContent"!==r.target&&("value"!==r.target||"input"!==t.localName&&"textarea"!==t.localName)||(n=null==n?"":n)),n}(s,e=n,n=l),Xr&&(e=Xr(e,n.target,n.kind,s)),"attribute"==n.kind?r._valueToNodeAttribute(s,e,n.target):(n=n.target,s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[n]?s[gs.READ_ONLY]&&s[gs.READ_ONLY][n]||s._setPendingProperty(n,e)&&r._enqueueClient(s):r._setUnmanagedPropertyToNode(s,n,e)))}function Os(e,n,r){if(r.listenerEvent){let t=r.parts[0];e.addEventListener(r.listenerEvent,function(e){!function(e,t,n,r,i){let s,o=e.detail,a=o&&o.path;s=a?(r=Yi(n,r,a),o&&o.value):e.currentTarget[n],s=i?!s:s,t[gs.READ_ONLY]&&t[gs.READ_ONLY][r]||!t._setPendingPropertyOrPath(r,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}(e,n,r.target,t.source,t.negate)})}}function Ms(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 Is(e,t,n,r,i){let s=e._methodHost||e,o=s[i.methodName];if(o){n=e._marshalArgs(i.args,t,n);return n===ys?ys:o.apply(s,n)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ns=[],Ls=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function Rs(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Fs(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){e={methodName:t[1],static:!0,args:Ns};return t[2].trim()?function(e,t){return t.args=e.map(function(e){e=zs(e);return e.literal||(t.static=!1),e},this),t}(t[2].replace(/\\,/g,",").split(","),e):e}return null}function zs(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch("-"===r&&(r=t[1]),"0"<=r&&r<="9"&&(r="#"),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=Fi(t),n.structured=Ri(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function Bs(e,t,n){let r=$i(e,n);return void 0===r&&(r=t[n]),r}function Ys(e,t,n,r){const i={indexSplices:r};ni&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),ni&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Us(e,t,n,r,i,s){Ys(e,t,n,[{index:r,addedCount:i,removed:s,object:t,type:"splice"}])}const Hs=Ni(e=>{const u=fs(ds(e));return class extends u{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 gs}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if($s.length){let e=$s[$s.length-1];e._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[gs.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==gs.READ_ONLY);let r=bs(this,t,!0)[e];r=r||(this[t][e]=[]),r.push(n)}_removePropertyEffect(e,t,n){let r=bs(this,t,!0)[e],i=r.indexOf(n);0<=i&&r.splice(i,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,gs.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,gs.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,gs.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,gs.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||Fi(Array.isArray(e)?e[0]:e)!==e){if(!r){r=$i(this,e);if(!(e=ji(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n))return function(t,n,r){var i=t.__dataLinkedPaths;if(i){let e;for(var s in i){var o=i[s];Bi(s,n)?(e=Yi(s,o,n),t._setPendingPropertyOrPath(e,r,!0,!0)):Bi(o,n)&&(e=Yi(o,s,n),t._setPendingPropertyOrPath(e,r,!0,!0))}}}(this,e,t),!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?Li(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&Ri(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[gs.NOTIFY]&&this[gs.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 n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let t=0;t<n.length;t++){let e=n[t];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[gs.READ_ONLY]&&this[gs.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,n){var r,i=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,n,r,i){var e,s=t[gs.COMPUTE];if(s)if(ri){_s++;const a=function(a){let i=a.constructor.__orderedComputedDeps;if(!i){i=new Map;var s=a[gs.COMPUTE];let e,{counts:t,ready:n,total:r}=function(){const e=a.__computeInfo,t={},n=a[gs.COMPUTE],r=[];let i=0;for(var s in e){const n=e[s];i+=t[s]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var o in n)e[o]||r.push(o);return{counts:t,ready:r,total:i}}();for(;e=n.shift();){i.set(e,i.size);const a=s[e];a&&a.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const i=a;console.warn(`Computed graph for ${i.localName} incomplete; circular?`)}a.constructor.__orderedComputedDeps=i}return i}(t),l=[];for(var o in n)Ts(o,s,l,a,i);for(;e=l.shift();)Ps(t,"",n,r,e)&&Ts(e.methodInfo,s,l,a,i);Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;ws(t,s,e,r,i);)Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}}(this,t,n,i),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,n,i),this._flushClients(),ws(this,this[gs.REFLECT],t,n,i),ws(this,this[gs.OBSERVE],t,n,i),r&&function(e,t,n,r,i){let s,o,a=e[gs.NOTIFY],l=_s++;for(var u in t)t[u]&&(a&&function(r,e,i,s,o,a,l,u){let c=!1,d=e[l?Fi(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&&!Ss(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,s,o,a,e.info,l,u),c=!0);return c}(e,a,l,u,n,r,i)||i&&(c=e,d=u,h=n,u=void 0,u=Fi(d),u!==d&&(Cs(c,Xi(u)+"-changed",h[d],d),1)))&&(s=!0);var c,d,h;s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,r,t,n,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[gs.PROPAGATE]&&ws(this,this[gs.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{ws(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=Ui(e),t=Ui(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Ui(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};Ys(this,$i(this,e,n),n.path,t)}get(e,t){return $i(t||this,e)}set(e,t,n){n?ji(n,e,t):this[gs.READ_ONLY]&&this[gs.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let n={path:""},r=$i(this,e,n),i=r.length,s=r.push(...t);return t.length&&Us(this,r,n.path,i,t.length,[]),s}pop(e){let t={path:""},n=$i(this,e,t),r=Boolean(n.length),i=n.pop();return r&&Us(this,n,t.path,n.length,0,[i]),i}splice(e,t,n,...r){let i,s={path:""},o=$i(this,e,s);return t=t<0?o.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?o.splice(t):o.splice(t,n,...r),(r.length||i.length)&&Us(this,o,s.path,t,r.length,i),i}shift(e){let t={path:""},n=$i(this,e,t),r=Boolean(n.length),i=n.shift();return r&&Us(this,n,t.path,0,0,[i]),i}unshift(e,...t){let n={path:""},r=$i(this,e,n),i=r.unshift(...t);return t.length&&Us(this,r,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=$i(this,e,r={path:""}),r.path):Array.isArray(e)?Ui(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,gs.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,gs.OBSERVE,{fn:xs,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,gs.OBSERVE,{fn:xs,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=Fs(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Ms(this,n,gs.OBSERVE,Is,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,gs.NOTIFY,{fn:Es,info:{eventName:Xi(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,gs.REFLECT,{fn:As,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=Fs(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");n=Ms(this,r,gs.COMPUTE,Ps,e,n);bs(this,"__computeInfo")[e]=n}_marshalArgs(o,a,l){const u=this.__data,c=[];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=Bi(e,a),c=Bs(u,l,o?a:e);r={path:o?a:e,value:c,base:o?$i(u,e):c}}else r=t?Bs(u,l,e):u[e];if(ni&&!this._overrideLegacyUndefined&&void 0===r&&1<o.length)return ys;c[s]=r}return c}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),n.wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;n.parent=t,t.lastChild=n,n.previousSibling=r,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;let r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}_stampTemplate(e,n){n=n||this._bindTemplate(e,!0),$s.push(this);let r=super._stampTemplate(e,n);if($s.pop(),n.nodeList=r.nodeList,!n.wasPreBound){let t=n.childNodes=[];for(let e=r.firstChild;e;e=e.nextSibling)t.push(e)}return r.templateInfo=n,function(i){var{nodeList:s,nodeInfoList:o}=n;if(o.length)for(let r=0;r<o.length;r++){let e=o[r],t=s[r],n=e.bindings;if(n)for(let e=0;e<n.length;e++){var a=n[e];(function(r,i){if(i.isCompound){let e=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),t=i.parts,n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e].literal;var s=i.target;e[s]=n,i.literal&&"property"==i.kind&&((r="className"===s?Li(r):r)[s]=i.literal)}})(t,a),Os(t,i,a)}t.__dataHost=i}}(this),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:n,nextSibling:r,parent:i}=t;n?n.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=n:i&&(i.lastChild=n),t.nextSibling=t.previousSibling=null;var s=t.childNodes;for(let e=0;e<s.length;e++){var o=s[e];Li(Li(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,n){let r=u._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType!==Node.TEXT_NODE||(i=this._parseBindings(e.textContent,t))&&(e.textContent=Rs(i)||" ",Ds(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";vs.test(o)?t="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),t="attribute");let n=Rs(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=qi(o)),Ds(this,i,s,t,o,a,n),!0}return u._parseTemplateNodeAttribute.call(this,r,i,s,o,e)}static _parseTemplateNestedTemplate(e,t,n){let r=u._parseTemplateNestedTemplate.call(this,e,t,n);const i=e.parentNode,s=n.templateInfo,o="dom-if"===i.localName,a="dom-repeat"===i.localName;ii&&(o||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=s,n.noted=!0,r=!1);e=s.hostProps;if(si&&o)e&&(t.hostProps=Object.assign(t.hostProps||{},e),ii||(n.parentInfo.noted=!0));else for(var l in e)Ds(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(l,u){let c,d=[],h=0;for(;null!==(c=Ls.exec(l));){c.index>h&&d.push({literal:l.slice(h,c.index)});let e=c[1][0],t=Boolean(c[2]),n=c[3].trim(),r=!1,i="",s=-1;"{"==e&&0<(s=n.indexOf("::"))&&(i=n.substring(s+2),n=n.substring(0,s),r=!0);let o=Fs(n),a=[];if(o){var{args:p,methodName:m}=o;for(let e=0;e<p.length;e++){var f=p[e];f.literal||a.push(f)}var _=u.dynamicFns;(_&&_[m]||o.static)&&(a.push(m),o.dynamicFn=!0)}else a.push(n);d.push({source:n,mode:e,negate:t,customEvent:r,signature:o,dependencies:a,event:i}),h=Ls.lastIndex}var e;return h&&h<l.length&&((e=l.substring(h))&&d.push({literal:e})),d.length?d:null}static _evaluateBinding(e,t,n,r,i,s){let o;return o=t.signature?Is(e,n,r,0,t.signature):n!=t.source?$i(e,t.source):s&&Ri(n)?$i(e,n):e.__data[n],t.negate&&(o=!o),o}}}),$s=[],js=Ni(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){const t={};for(var n in e){var r=e[n];t[n]="function"==typeof r?{type:r}:r}return t}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends as(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(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=t(this);e&&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}),Ws=window.ShadyCSS&&window.ShadyCSS.cssBuild,Vs=Ni(e=>{const r=js(Hs(e));return class extends r{static get polymerElementVersion(){return"3.4.1"}static _finalizeClass(){r._finalizeClass.call(this);var e,e=((e=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__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):Qr||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,i=e[t],t=e,i.computed&&(i.readOnly=!0),i.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,i.computed,t)),i.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!i.computed):!1===i.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),i.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===i.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),i.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===i.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),i.observer&&n._createPropertyObserver(r,i.observer,t[i.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){const r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}static get template(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_template",this))||(e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0,this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(e&&(!Zr||Kr)&&(t=pi.import(e,"template"),Zr&&!t))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${e}`);return t}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template),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=Wr(e.url):(e=pi.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=qr,this.importPath=this.constructor.importPath;var t,n=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(n)for(var r in n){let e=n[r];this._canApplyPropertyDefault(r)&&(t="function"==typeof e.value?e.value.call(this):e.value,this._hasAccessor(r)?this._setPendingProperty(r,t,!0):this[r]=t)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return jr(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;var n;t&&!t.__polymerFinalized&&(t.__polymerFinalized=!0,n=this.importPath,function(i,n,e,s){if(!Ws){var o=n.content.querySelectorAll("style"),a=gi(n),l=(t=fi(e))?vi(t):[],u=n.content.firstElementChild;for(let t=0;t<l.length;t++){let e=l[t];e.textContent=i._processStyleText(e.textContent,s),n.content.insertBefore(e,u)}let r=0;for(let n=0;n<a.length;n++){let e=a[n],t=o[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,s)}}var t;if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,e),li&&Ws&&Gr){const e=n.content.querySelectorAll("style");if(e){let t="";Array.from(e).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}}(this,t,e,n?$r(n):""),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){const t=Li(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])),ti&&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=$r(this.importPath)),$r(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!ei||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)}}}),Gs=Vs(HTMLElement);class qs{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,Xs.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Xs.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 qs?e._cancelAsync():e=new qs,e.setConfig(t,n),e}}let Xs=new Set;const Js=function(e){Xs.add(e)};let Zs="string"==typeof document.head.style.touchAction,Ks="__polymerGestures",Qs="__polymerGesturesHandled",eo="__polymerGesturesTouchAction",to=["mousedown","mousemove","mouseup","click"],no=[0,1,4,2],ro=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function io(e){return-1<to.indexOf(e)}let so=!1;function oo(e){if(!io(e)&&"touchend"!==e)return Zs&&so&&Jr?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get(){so=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let ao=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const lo=[],uo={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},co={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};let ho=function(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[Qs]={skip:!0},"click"===e.type)){let t=!1,n=go(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)lo.push(n[e]);else if(r=n[e],uo[r.localName]){var i=function(t){let n=Array.prototype.slice.call(t.labels||[]);if(!n.length){n=[];let e=t.getRootNode();if(t.id){var r=e.querySelectorAll(`label[for = ${t.id}]`);for(let e=0;e<r.length;e++)n.push(r[e])}}return n}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<lo.indexOf(i[e])}if(n[e]===fo.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}};function po(n){var r=ao?["click"]:to;for(let e,t=0;t<r.length;t++)e=r[t],n?(lo.length=0,document.addEventListener(e,ho,!0)):document.removeEventListener(e,ho,!0)}function mo(t){var e=t.type;if(io(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&&!ro&&(e=no[t.which]||0),Boolean(1&e)}}}let fo={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function _o(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function yo(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){fo.mouse.mouseIgnoreJob||po(!0),fo.mouse.target=go(e)[0],fo.mouse.mouseIgnoreJob=qs.debounce(fo.mouse.mouseIgnoreJob,ns.after(2500),function(){po(),fo.mouse.target=null,fo.mouse.mouseIgnoreJob=null})},!!so&&{passive:!0});const go=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],vo={},bo=[];function wo(e){var t=go(e);return 0<t.length?t[0]:e.target}function So(n){let r,i=n.type,e=n.currentTarget[Ks];if(e){var s=e[i];if(s){if(!n[Qs]&&(n[Qs]={},"touch"===i.slice(0,5))){var t=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(fo.touch.id=t.identifier),fo.touch.id!==t.identifier)return;Zs||"touchstart"!==i&&"touchmove"!==i||function(i){var s=i.changedTouches[0],e=i.type;if("touchstart"===e)fo.touch.x=s.clientX,fo.touch.y=s.clientY,fo.touch.scrollDecided=!1;else if("touchmove"===e&&!fo.touch.scrollDecided){fo.touch.scrollDecided=!0;let e=function(e){let n="auto",r=go(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[eo]){n=e[eo];break}return n}(i),t=!1,n=Math.abs(fo.touch.x-s.clientX),r=Math.abs(fo.touch.y-s.clientY);i.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?i.preventDefault():Po("track")}}(n)}if(r=n[Qs],!r.skip){for(let e,t=0;t<bo.length;t++)e=bo[t],s[e.name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<bo.length;t++)e=bo[t],s[e.name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function xo(e,t,n){return vo[t]&&(function(r,e,t){let n=vo[e],i=n.deps,s=n.name,o=r[Ks];o||(r[Ks]=o={});for(let e,t,n=0;n<i.length;n++)e=i[n],ao&&io(e)&&"click"!==e||(t=o[e],t||(o[e]=t={_count:0}),0===t._count&&r.addEventListener(e,So,oo(e)),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&Ao(r,n.touchAction)}(e,t,n),1)}function Co(e,t,n){return vo[t]&&(function(r,e,t){var n=vo[e],i=n.deps,s=n.name,o=r[Ks];if(o)for(let e,t,n=0;n<i.length;n++)e=i[n],t=o[e],t&&t[s]&&(t[s]=(t[s]||1)-1,t._count=(t._count||1)-1,0===t._count&&r.removeEventListener(e,So,oo(e)));r.removeEventListener(e,t)}(e,t,n),1)}function Eo(t){bo.push(t);for(let e=0;e<t.emits.length;e++)vo[t.emits[e]]=t}function Ao(e,t){Zs&&e instanceof HTMLElement&&ss.run(()=>{e.style.touchAction=t}),e[eo]=t}function To(e,t,n){let r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,Li(e).dispatchEvent(r),r.defaultPrevented){let e=n.preventer||n.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Po(e){let t=function(r){for(let n,e=0;e<bo.length;e++){n=bo[e];for(let e,t=0;t<n.emits.length;t++)if((e=n.emits[t])===r)return n}return null}(e);t.info&&(t.info.prevent=!0)}function Do(e,t,n,r){t&&To(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:Po})}function ko(e,t,n){if(!e.prevent){if(e.started)return 1;t=Math.abs(e.x-t),n=Math.abs(e.y-n);return 5<=t||5<=n}}function Oo(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),To(a,"track",{state:o.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:s,sourceEvent:l,hover:function(){return function(e,t){let n=document.elementFromPoint(e,t),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){var i=r;if(r=r.shadowRoot.elementFromPoint(e,t),i===r)break;r&&(n=r)}return n}(l.clientX,l.clientY)}})}}function Mo(e,t,n){let r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),s=wo(n||t);!s||co[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return 1;let e=wo(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return 1;var n=e.getBoundingClientRect(),r=t.pageX,t=t.pageY;return!(r>=n.left&&r<=n.right&&t>=n.top&&t<=n.bottom)}}(t))&&(e.prevent||To(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}Eo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){yo(this.info)},mousedown:function(e){if(mo(e)){let t=wo(e),n=this;_o(this.info,function(e){mo(e)||(Do("up",t,e),yo(n.info))},function(e){mo(e)&&Do("up",t,e),yo(n.info)}),Do("down",t,e)}},touchstart:function(e){Do("down",wo(e),e.changedTouches[0],e)},touchend:function(e){Do("up",wo(e),e.changedTouches[0],e)}}),Eo({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,yo(this.info)},mousedown:function(e){if(mo(e)){let r=wo(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;ko(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Po("tap"),i.info.addMove({x:t,y:n}),mo(e)||(i.info.state="end",yo(i.info)),r&&Oo(i.info,r,e),i.info.started=!0)};_o(this.info,t,function(e){i.info.started&&t(e),yo(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=wo(e),n=e.changedTouches[0],r=n.clientX,e=n.clientY;ko(this.info,r,e)&&("start"===this.info.state&&Po("tap"),this.info.addMove({x:r,y:e}),Oo(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=wo(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Oo(this.info,t,e))}}),Eo({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){mo(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){mo(e)&&Mo(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Mo(this.info,e.changedTouches[0],e)}});const Io=Ni(e=>class extends e{_addEventListenerToNode(e,t,n){xo(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){Co(e,t,n)||super._removeEventListenerFromNode(e,t,n)}}),No=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)}},Lo=e=>class extends No(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=pi.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{const e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],s=0<i.filter(e=>0===t.indexOf(e)).length,o=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:s!=o?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){if(t&&!t.content.querySelector(`style[include="${e}"]`)){const n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}};let Ro=!1;window.addEventListener("keydown",()=>{Ro=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ro=!1},{capture:!0});const Fo=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}}}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&&Ro?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()}},zo=function(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(Xs.size),Xs.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);};class Bo{static detectScrollType(){const 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{scrollLeft:r}=n;if("rtl"!==t||!e)return r;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 Yo=[];let Uo;new MutationObserver(function(){const t=$o();Yo.forEach(e=>{Ho(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ho=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},$o=function(){return document.documentElement.getAttribute("dir")},jo=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Uo=Uo||Bo.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Ho(this,$o()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(r=n===$o()&&-1===Yo.indexOf(this),e=!n&&t&&-1===Yo.indexOf(this),t=n!==$o()&&t===$o(),r||e?(this.__subscribe(),Ho(this,$o())):t&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Yo.indexOf(this)&&Yo.push(this):-1<Yo.indexOf(this)&&Yo.splice(Yo.indexOf(this),1)}__getNormalizedScrollLeft(e){return Bo.getNormalizedScrollLeft(Uo,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Bo.setNormalizedScrollLeft(Uo,this.getAttribute("dir")||"ltr",e,t)}},Wo=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Vo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Go(e,t){if("function"==typeof e){var n=Wo.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 qo(){}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)&&(Vo?!(Vo&&0<Object.keys(Vo).map(e=>Vo[e]).filter(e=>e.productionMode).length):!Go(function(){return!0}))}catch(e){return!1}}());const Xo=function(){return function(e,t){if(window.Vaadin.developmentMode)return Go(e,t)}(qo)};let Jo;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Xo,Xo()};const Zo=new Set,Ko=e=>class extends jo(e){static finalize(){super.finalize();var{is:e}=this;e&&!Zo.has(e)&&(window.Vaadin.registrations.push(this),Zo.add(e),window.Vaadin.developmentModeCallback&&(Jo=qs.debounce(Jo,is,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Js(Jo)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class Qo extends Ko(Fo(Lo(Io(Gs)))){static get template(){return Oi`
|
|
323
|
+
</dom-module>`;document.head.appendChild(At.content);let Ii=0;const Ni=function(s){let e=s.__mixinApplications;e||(e=new WeakMap,s.__mixinApplications=e);let o=Ii++;return function(t){var n=t.__mixinSet;if(n&&n[o])return t;let r=e,i=r.get(t);if(!i){i=s(t),r.set(t,i);let e=Object.create(i.__mixinSet||n||null);e[o]=!0,i.__mixinSet=e}return i}},Ri=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Li(e){return 0<=e.indexOf(".")}function Fi(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Bi(e,t){return 0===e.indexOf(t+".")}function zi(e,t){return 0===t.indexOf(e+".")}function Yi(e,t,n){return t+n.slice(e.length)}function Ui(n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){var r=n[e].toString().split(".");for(let e=0;e<r.length;e++)t.push(r[e])}return t.join(".")}return n}function Hi(e){return(Array.isArray(e)?Ui(e):e.toString()).split(".")}function $i(e,t,n){let r=e,i=Hi(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function ji(e,t,n){let r=e,i=Hi(t),s=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(r=r[i[e]],!r)return;r[s]=n}else r[t]=n;return i.join(".")}const Wi={},Vi=/-[a-z]/g,Gi=/([A-Z])/g;function qi(e){return Wi[e]||(Wi[e]=e.indexOf("-")<0?e:e.replace(Vi,e=>e[1].toUpperCase()))}function Xi(e){return Wi[e]||(Wi[e]=e.replace(Gi,"-$1").toLowerCase())}let Ji=0,Zi=0,Ki=[],Qi=0,es=!1,ts=document.createTextNode("");new window.MutationObserver(function(){es=!1;var n=Ki.length;for(let t=0;t<n;t++){let e=Ki[t];if(e)try{e()}catch(n){setTimeout(()=>{throw n})}}Ki.splice(0,n),Zi+=n}).observe(ts,{characterData:!0});const ns={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)}},rs={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},is={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},ss={run:e=>(es||(es=!0,ts.textContent=Qi++),Ki.push(e),Ji++),cancel(e){var t=e-Zi;if(0<=t){if(!Ki[t])throw new Error("invalid async handle: "+e);Ki[t]=null}}},os=ss,as=Ni(e=>class extends e{static createProperties(e){const t=this.prototype;for(var n in e)n in t||t._createPropertyAccessor(n)}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,os.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[e=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(e)))}_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=Ri(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,t)}_serializeValue(e){return"boolean"!=typeof e?null!=e?e.toString():void 0:e?"":void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),ls={};let us=HTMLElement.prototype;for(;us;){var ds=Object.getOwnPropertyNames(us);for(let e=0;e<ds.length;e++)ls[ds[e]]=!0;us=Object.getPrototypeOf(us)}const cs=Ni(e=>{return class extends as(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(qi(t[e]))}static attributeNameForProperty(e){return Xi(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)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,ls[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)}}}),hs={"dom-if":!0,"dom-repeat":!0};let ps=!1,ms=!1;const fs=Ni(e=>class extends e{static _parseTemplate(t,n){if(!t._templateInfo){let e=t._templateInfo={};e.nodeInfoList=[],e.nestedTemplate=Boolean(n),e.stripWhiteSpace=n&&n.stripWhiteSpace||t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,e,{parent:null})}return t._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,function(){if(!ps){ps=!0;const e=document.createElement("textarea");e.placeholder="a",ms=e.placeholder===e.textContent}return ms}()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,t,n)||r),r||n.noted}static _parseTemplateChildNodes(i,s,o){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,r=0;n;n=t){if("template"==n.localName&&(n=function(t){var n=t.getAttribute("is");if(n&&hs[n]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(n),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;)t.setAttribute(e.attributes[0].name,e.attributes[0].value),e.removeAttribute(e.attributes[0].name)}return t}(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,i.removeChild(e),e=t;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let e={parentIndex:r,parentInfo:o};this._parseTemplateNode(n,s,e)&&(e.infoIndex=s.nodeInfoList.push(e)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,n){let r=e,i=this._parseTemplate(r,t);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!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);let i=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,t=r.content||e.content,s=document.importNode(t,!0);s.__noInsertionPoint=!r.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++){var a=o[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}(s,e);l=s.$,u=a,(d=e).id&&(l[d.id]=u),l=a,d=e,u=r,d.templateInfo&&(l._templateInfo=d.templateInfo,l._parentTemplateInfo=u),function(r,i,s){if(s.events&&s.events.length)for(let e,t=0,n=s.events;t<n.length&&(e=n[t]);t++)r._addMethodEventListenerToNode(i,e.name,e.value,r)}(this,a,e)}var l,u,d;return s,s}_addMethodEventListenerToNode(e,t,n,r){var i,s,n=(i=r=r||e,s=n,i=i._methodHost||i,function(e){i[s]?i[s](e,e.detail):console.warn("listener method `"+s+"` not defined")});return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let _s=0;const ys=[],gs={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},vs=/[A-Z]/;function bs(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){let t=r[i],n=r[i]=Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e]}}else r=e[t]={};return r}function ws(i,e,s,o,a,l){if(e){let r=!1;var u,d=_s++;for(u in s){var c=e[a?Fi(u):u];if(c)for(let e,t=0,n=c.length;t<n&&(e=c[t]);t++)e.info&&e.info.lastRun===d||a&&!Ss(u,e.trigger)||(e.info&&(e.info.lastRun=d),e.fn(i,u,s,o,e.info,a,l),r=!0)}return r}}function Ss(e,t){if(t){var n=t.name;return n==e||t.structured&&Bi(n,e)||t.wildcard&&zi(n,e)}return 1}function xs(e,t,n,r,i){let 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 Cs(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Ri(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Es(e,t,n,r,i,s){let o=(s?Fi(t):t)!=t?t:null,a=o?$i(e,o):e.__data[t];o&&void 0===a&&(a=n[t]),Cs(e,i.eventName,a,o)}function Ts(e,t,n,r,i){let s=e.__data[t];Xr&&(s=Xr(s,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,s)}const As=(t,e,n,r,i)=>{var s=e[i?Fi(t):t];if(s)for(let e=0;e<s.length;e++){const o=s[e];o.info.lastRun===_s||i&&!Ss(t,o.trigger)||(o.info.lastRun=_s,((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)})(o.info,n,r))}};function Ps(e,t,n,r,i){r=Is(e,t,n,0,i);if(r===ys)return!1;i=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,r,!0):(e[i]=r,!1)}function Ds(n,r,e,t,i,s,o){e.bindings=e.bindings||[];let a={kind:t,target:i,parts:s,literal:o,isCompound:1!==s.length};e.bindings.push(a),s=a,Boolean(s.target)&&"attribute"!=s.kind&&"text"!=s.kind&&!s.isCompound&&"{"===s.parts[0].mode&&({event:e,negate:s}=a.parts[0],a.listenerEvent=e||Xi(i)+"-changed",a.listenerNegate=s);var l=r.nodeInfoList.length;for(let t=0;t<a.parts.length;t++){let e=a.parts[t];e.compoundIndex=t,function(n,r,e,t,i){if(!t.literal)if("attribute"===e.kind&&"-"===e.target[0])console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{var s=t.dependencies,o={index:i,binding:e,part:t,evaluator:n};for(let t=0;t<s.length;t++){let e=s[t];"string"==typeof e&&(e=Bs(e),e.wildcard=!0),n._addTemplatePropertyEffect(r,e.rootProperty,{fn:ks,info:o,trigger:e})}}}(n,r,a,e,l)}}function ks(e,t,n,r,i,s,o){let a=o[i.index],l=i.binding,u=i.part;var d;s&&u.source&&t.length>u.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(o=n[t],t=Yi(u.source,l.target,t),a._setPendingPropertyOrPath(t,o,!1,!0)&&e._enqueueClient(a)):(n=i.evaluator._evaluateBinding(e,u,t,n,r,s))!==ys&&(r=e,s=a,d=u,e=function(t,n,r){if(r.isCompound){let e=t.__dataCompoundStorage[r.target];e[d.compoundIndex]=n,n=e.join("")}return"attribute"!==r.kind&&("textContent"!==r.target&&("value"!==r.target||"input"!==t.localName&&"textarea"!==t.localName)||(n=null==n?"":n)),n}(s,e=n,n=l),Xr&&(e=Xr(e,n.target,n.kind,s)),"attribute"==n.kind?r._valueToNodeAttribute(s,e,n.target):(n=n.target,s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[n]?s[gs.READ_ONLY]&&s[gs.READ_ONLY][n]||s._setPendingProperty(n,e)&&r._enqueueClient(s):r._setUnmanagedPropertyToNode(s,n,e)))}function Os(e,n,r){if(r.listenerEvent){let t=r.parts[0];e.addEventListener(r.listenerEvent,function(e){!function(e,t,n,r,i){let s,o=e.detail,a=o&&o.path;s=a?(r=Yi(n,r,a),o&&o.value):e.currentTarget[n],s=i?!s:s,t[gs.READ_ONLY]&&t[gs.READ_ONLY][r]||!t._setPendingPropertyOrPath(r,s,!0,Boolean(a))||o&&o.queueProperty||t._invalidateProperties()}(e,n,r.target,t.source,t.negate)})}}function Ms(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 Is(e,t,n,r,i){let s=e._methodHost||e,o=s[i.methodName];if(o){n=e._marshalArgs(i.args,t,n);return n===ys?ys:o.apply(s,n)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ns=[],Rs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function Ls(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Fs(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){e={methodName:t[1],static:!0,args:Ns};return t[2].trim()?function(e,t){return t.args=e.map(function(e){e=Bs(e);return e.literal||(t.static=!1),e},this),t}(t[2].replace(/\\,/g,",").split(","),e):e}return null}function Bs(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch("-"===r&&(r=t[1]),"0"<=r&&r<="9"&&(r="#"),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=Fi(t),n.structured=Li(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function zs(e,t,n){let r=$i(e,n);return void 0===r&&(r=t[n]),r}function Ys(e,t,n,r){const i={indexSplices:r};ni&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),ni&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Us(e,t,n,r,i,s){Ys(e,t,n,[{index:r,addedCount:i,removed:s,object:t,type:"splice"}])}const Hs=Ni(e=>{const u=fs(cs(e));return class extends u{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 gs}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if($s.length){let e=$s[$s.length-1];e._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[gs.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==gs.READ_ONLY);let r=bs(this,t,!0)[e];r=r||(this[t][e]=[]),r.push(n)}_removePropertyEffect(e,t,n){let r=bs(this,t,!0)[e],i=r.indexOf(n);0<=i&&r.splice(i,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,gs.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,gs.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,gs.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,gs.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||Fi(Array.isArray(e)?e[0]:e)!==e){if(!r){r=$i(this,e);if(!(e=ji(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n))return function(t,n,r){var i=t.__dataLinkedPaths;if(i){let e;for(var s in i){var o=i[s];zi(s,n)?(e=Yi(s,o,n),t._setPendingPropertyOrPath(e,r,!0,!0)):zi(o,n)&&(e=Yi(o,s,n),t._setPendingPropertyOrPath(e,r,!0,!0))}}}(this,e,t),!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?Ri(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&Li(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[gs.NOTIFY]&&this[gs.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 n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let t=0;t<n.length;t++){let e=n[t];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[gs.READ_ONLY]&&this[gs.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,n){var r,i=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,n,r,i){var e,s=t[gs.COMPUTE];if(s)if(ri){_s++;const a=function(a){let i=a.constructor.__orderedComputedDeps;if(!i){i=new Map;var s=a[gs.COMPUTE];let e,{counts:t,ready:n,total:r}=function(){const e=a.__computeInfo,t={},n=a[gs.COMPUTE],r=[];let i=0;for(var s in e){const n=e[s];i+=t[s]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var o in n)e[o]||r.push(o);return{counts:t,ready:r,total:i}}();for(;e=n.shift();){i.set(e,i.size);const a=s[e];a&&a.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const i=a;console.warn(`Computed graph for ${i.localName} incomplete; circular?`)}a.constructor.__orderedComputedDeps=i}return i}(t),l=[];for(var o in n)As(o,s,l,a,i);for(;e=l.shift();)Ps(t,"",n,r,e)&&As(e.methodInfo,s,l,a,i);Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;ws(t,s,e,r,i);)Object.assign(r,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}}(this,t,n,i),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,n,i),this._flushClients(),ws(this,this[gs.REFLECT],t,n,i),ws(this,this[gs.OBSERVE],t,n,i),r&&function(e,t,n,r,i){let s,o,a=e[gs.NOTIFY],l=_s++;for(var u in t)t[u]&&(a&&function(r,e,i,s,o,a,l,u){let d=!1,c=e[l?Fi(s):s];if(c)for(let e,t=0,n=c.length;t<n&&(e=c[t]);t++)e.info&&e.info.lastRun===i||l&&!Ss(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,s,o,a,e.info,l,u),d=!0);return d}(e,a,l,u,n,r,i)||i&&(d=e,c=u,h=n,u=void 0,u=Fi(c),u!==c&&(Cs(d,Xi(u)+"-changed",h[c],c),1)))&&(s=!0);var d,c,h;s&&(o=e.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,r,t,n,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[gs.PROPAGATE]&&ws(this,this[gs.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{ws(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=Ui(e),t=Ui(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Ui(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};Ys(this,$i(this,e,n),n.path,t)}get(e,t){return $i(t||this,e)}set(e,t,n){n?ji(n,e,t):this[gs.READ_ONLY]&&this[gs.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let n={path:""},r=$i(this,e,n),i=r.length,s=r.push(...t);return t.length&&Us(this,r,n.path,i,t.length,[]),s}pop(e){let t={path:""},n=$i(this,e,t),r=Boolean(n.length),i=n.pop();return r&&Us(this,n,t.path,n.length,0,[i]),i}splice(e,t,n,...r){let i,s={path:""},o=$i(this,e,s);return t=t<0?o.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?o.splice(t):o.splice(t,n,...r),(r.length||i.length)&&Us(this,o,s.path,t,r.length,i),i}shift(e){let t={path:""},n=$i(this,e,t),r=Boolean(n.length),i=n.shift();return r&&Us(this,n,t.path,0,0,[i]),i}unshift(e,...t){let n={path:""},r=$i(this,e,n),i=r.unshift(...t);return t.length&&Us(this,r,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=$i(this,e,r={path:""}),r.path):Array.isArray(e)?Ui(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,gs.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,gs.OBSERVE,{fn:xs,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,gs.OBSERVE,{fn:xs,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=Fs(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Ms(this,n,gs.OBSERVE,Is,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,gs.NOTIFY,{fn:Es,info:{eventName:Xi(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,gs.REFLECT,{fn:Ts,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=Fs(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");n=Ms(this,r,gs.COMPUTE,Ps,e,n);bs(this,"__computeInfo")[e]=n}_marshalArgs(o,a,l){const u=this.__data,d=[];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=zi(e,a),d=zs(u,l,o?a:e);r={path:o?a:e,value:d,base:o?$i(u,e):d}}else r=t?zs(u,l,e):u[e];if(ni&&!this._overrideLegacyUndefined&&void 0===r&&1<o.length)return ys;d[s]=r}return d}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),n.wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;n.parent=t,t.lastChild=n,n.previousSibling=r,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;let r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}_stampTemplate(e,n){n=n||this._bindTemplate(e,!0),$s.push(this);let r=super._stampTemplate(e,n);if($s.pop(),n.nodeList=r.nodeList,!n.wasPreBound){let t=n.childNodes=[];for(let e=r.firstChild;e;e=e.nextSibling)t.push(e)}return r.templateInfo=n,function(i){var{nodeList:s,nodeInfoList:o}=n;if(o.length)for(let r=0;r<o.length;r++){let e=o[r],t=s[r],n=e.bindings;if(n)for(let e=0;e<n.length;e++){var a=n[e];(function(r,i){if(i.isCompound){let e=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),t=i.parts,n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e].literal;var s=i.target;e[s]=n,i.literal&&"property"==i.kind&&((r="className"===s?Ri(r):r)[s]=i.literal)}})(t,a),Os(t,i,a)}t.__dataHost=i}}(this),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:n,nextSibling:r,parent:i}=t;n?n.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=n:i&&(i.lastChild=n),t.nextSibling=t.previousSibling=null;var s=t.childNodes;for(let e=0;e<s.length;e++){var o=s[e];Ri(Ri(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,n){let r=u._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType!==Node.TEXT_NODE||(i=this._parseBindings(e.textContent,t))&&(e.textContent=Ls(i)||" ",Ds(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";vs.test(o)?t="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),t="attribute");let n=Ls(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=qi(o)),Ds(this,i,s,t,o,a,n),!0}return u._parseTemplateNodeAttribute.call(this,r,i,s,o,e)}static _parseTemplateNestedTemplate(e,t,n){let r=u._parseTemplateNestedTemplate.call(this,e,t,n);const i=e.parentNode,s=n.templateInfo,o="dom-if"===i.localName,a="dom-repeat"===i.localName;ii&&(o||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=s,n.noted=!0,r=!1);e=s.hostProps;if(si&&o)e&&(t.hostProps=Object.assign(t.hostProps||{},e),ii||(n.parentInfo.noted=!0));else for(var l in e)Ds(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(l,u){let d,c=[],h=0;for(;null!==(d=Rs.exec(l));){d.index>h&&c.push({literal:l.slice(h,d.index)});let e=d[1][0],t=Boolean(d[2]),n=d[3].trim(),r=!1,i="",s=-1;"{"==e&&0<(s=n.indexOf("::"))&&(i=n.substring(s+2),n=n.substring(0,s),r=!0);let o=Fs(n),a=[];if(o){var{args:p,methodName:m}=o;for(let e=0;e<p.length;e++){var f=p[e];f.literal||a.push(f)}var _=u.dynamicFns;(_&&_[m]||o.static)&&(a.push(m),o.dynamicFn=!0)}else a.push(n);c.push({source:n,mode:e,negate:t,customEvent:r,signature:o,dependencies:a,event:i}),h=Rs.lastIndex}var e;return h&&h<l.length&&((e=l.substring(h))&&c.push({literal:e})),c.length?c:null}static _evaluateBinding(e,t,n,r,i,s){let o;return o=t.signature?Is(e,n,r,0,t.signature):n!=t.source?$i(e,t.source):s&&Li(n)?$i(e,n):e.__data[n],t.negate&&(o=!o),o}}}),$s=[],js=Ni(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){const t={};for(var n in e){var r=e[n];t[n]="function"==typeof r?{type:r}:r}return t}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends as(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(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=t(this);e&&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}),Ws=window.ShadyCSS&&window.ShadyCSS.cssBuild,Vs=Ni(e=>{const r=js(Hs(e));return class extends r{static get polymerElementVersion(){return"3.4.1"}static _finalizeClass(){r._finalizeClass.call(this);var e,e=((e=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__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):Qr||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,i=e[t],t=e,i.computed&&(i.readOnly=!0),i.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,i.computed,t)),i.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!i.computed):!1===i.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),i.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===i.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),i.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===i.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),i.observer&&n._createPropertyObserver(r,i.observer,t[i.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){const r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}static get template(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_template",this))||(e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0,this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(e&&(!Zr||Kr)&&(t=pi.import(e,"template"),Zr&&!t))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${e}`);return t}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template),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=Wr(e.url):(e=pi.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=qr,this.importPath=this.constructor.importPath;var t,n=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(n)for(var r in n){let e=n[r];this._canApplyPropertyDefault(r)&&(t="function"==typeof e.value?e.value.call(this):e.value,this._hasAccessor(r)?this._setPendingProperty(r,t,!0):this[r]=t)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return jr(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;var n;t&&!t.__polymerFinalized&&(t.__polymerFinalized=!0,n=this.importPath,function(i,n,e,s){if(!Ws){var o=n.content.querySelectorAll("style"),a=gi(n),l=(t=fi(e))?vi(t):[],u=n.content.firstElementChild;for(let t=0;t<l.length;t++){let e=l[t];e.textContent=i._processStyleText(e.textContent,s),n.content.insertBefore(e,u)}let r=0;for(let n=0;n<a.length;n++){let e=a[n],t=o[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,s)}}var t;if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,e),li&&Ws&&Gr){const e=n.content.querySelectorAll("style");if(e){let t="";Array.from(e).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}}(this,t,e,n?$r(n):""),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){const t=Ri(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])),ti&&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=$r(this.importPath)),$r(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!ei||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)}}}),Gs=Vs(HTMLElement);class qs{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,Xs.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Xs.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 qs?e._cancelAsync():e=new qs,e.setConfig(t,n),e}}let Xs=new Set;const Js=function(e){Xs.add(e)};let Zs="string"==typeof document.head.style.touchAction,Ks="__polymerGestures",Qs="__polymerGesturesHandled",eo="__polymerGesturesTouchAction",to=["mousedown","mousemove","mouseup","click"],no=[0,1,4,2],ro=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function io(e){return-1<to.indexOf(e)}let so=!1;function oo(e){if(!io(e)&&"touchend"!==e)return Zs&&so&&Jr?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get(){so=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let ao=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const lo=[],uo={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},co={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};let ho=function(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[Qs]={skip:!0},"click"===e.type)){let t=!1,n=go(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)lo.push(n[e]);else if(r=n[e],uo[r.localName]){var i=function(t){let n=Array.prototype.slice.call(t.labels||[]);if(!n.length){n=[];let e=t.getRootNode();if(t.id){var r=e.querySelectorAll(`label[for = ${t.id}]`);for(let e=0;e<r.length;e++)n.push(r[e])}}return n}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<lo.indexOf(i[e])}if(n[e]===fo.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}};function po(n){var r=ao?["click"]:to;for(let e,t=0;t<r.length;t++)e=r[t],n?(lo.length=0,document.addEventListener(e,ho,!0)):document.removeEventListener(e,ho,!0)}function mo(t){var e=t.type;if(io(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&&!ro&&(e=no[t.which]||0),Boolean(1&e)}}}let fo={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function _o(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function yo(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){fo.mouse.mouseIgnoreJob||po(!0),fo.mouse.target=go(e)[0],fo.mouse.mouseIgnoreJob=qs.debounce(fo.mouse.mouseIgnoreJob,ns.after(2500),function(){po(),fo.mouse.target=null,fo.mouse.mouseIgnoreJob=null})},!!so&&{passive:!0});const go=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],vo={},bo=[];function wo(e){var t=go(e);return 0<t.length?t[0]:e.target}function So(n){let r,i=n.type,e=n.currentTarget[Ks];if(e){var s=e[i];if(s){if(!n[Qs]&&(n[Qs]={},"touch"===i.slice(0,5))){var t=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(fo.touch.id=t.identifier),fo.touch.id!==t.identifier)return;Zs||"touchstart"!==i&&"touchmove"!==i||function(i){var s=i.changedTouches[0],e=i.type;if("touchstart"===e)fo.touch.x=s.clientX,fo.touch.y=s.clientY,fo.touch.scrollDecided=!1;else if("touchmove"===e&&!fo.touch.scrollDecided){fo.touch.scrollDecided=!0;let e=function(e){let n="auto",r=go(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[eo]){n=e[eo];break}return n}(i),t=!1,n=Math.abs(fo.touch.x-s.clientX),r=Math.abs(fo.touch.y-s.clientY);i.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?i.preventDefault():Po("track")}}(n)}if(r=n[Qs],!r.skip){for(let e,t=0;t<bo.length;t++)e=bo[t],s[e.name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<bo.length;t++)e=bo[t],s[e.name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function xo(e,t,n){return vo[t]&&(function(r,e,t){let n=vo[e],i=n.deps,s=n.name,o=r[Ks];o||(r[Ks]=o={});for(let e,t,n=0;n<i.length;n++)e=i[n],ao&&io(e)&&"click"!==e||(t=o[e],t||(o[e]=t={_count:0}),0===t._count&&r.addEventListener(e,So,oo(e)),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&To(r,n.touchAction)}(e,t,n),1)}function Co(e,t,n){return vo[t]&&(function(r,e,t){var n=vo[e],i=n.deps,s=n.name,o=r[Ks];if(o)for(let e,t,n=0;n<i.length;n++)e=i[n],t=o[e],t&&t[s]&&(t[s]=(t[s]||1)-1,t._count=(t._count||1)-1,0===t._count&&r.removeEventListener(e,So,oo(e)));r.removeEventListener(e,t)}(e,t,n),1)}function Eo(t){bo.push(t);for(let e=0;e<t.emits.length;e++)vo[t.emits[e]]=t}function To(e,t){Zs&&e instanceof HTMLElement&&ss.run(()=>{e.style.touchAction=t}),e[eo]=t}function Ao(e,t,n){let r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,Ri(e).dispatchEvent(r),r.defaultPrevented){let e=n.preventer||n.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Po(e){let t=function(r){for(let n,e=0;e<bo.length;e++){n=bo[e];for(let e,t=0;t<n.emits.length;t++)if((e=n.emits[t])===r)return n}return null}(e);t.info&&(t.info.prevent=!0)}function Do(e,t,n,r){t&&Ao(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:Po})}function ko(e,t,n){if(!e.prevent){if(e.started)return 1;t=Math.abs(e.x-t),n=Math.abs(e.y-n);return 5<=t||5<=n}}function Oo(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),Ao(a,"track",{state:o.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:s,sourceEvent:l,hover:function(){return function(e,t){let n=document.elementFromPoint(e,t),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){var i=r;if(r=r.shadowRoot.elementFromPoint(e,t),i===r)break;r&&(n=r)}return n}(l.clientX,l.clientY)}})}}function Mo(e,t,n){let r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),s=wo(n||t);!s||co[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return 1;let e=wo(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return 1;var n=e.getBoundingClientRect(),r=t.pageX,t=t.pageY;return!(r>=n.left&&r<=n.right&&t>=n.top&&t<=n.bottom)}}(t))&&(e.prevent||Ao(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}Eo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){yo(this.info)},mousedown:function(e){if(mo(e)){let t=wo(e),n=this;_o(this.info,function(e){mo(e)||(Do("up",t,e),yo(n.info))},function(e){mo(e)&&Do("up",t,e),yo(n.info)}),Do("down",t,e)}},touchstart:function(e){Do("down",wo(e),e.changedTouches[0],e)},touchend:function(e){Do("up",wo(e),e.changedTouches[0],e)}}),Eo({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,yo(this.info)},mousedown:function(e){if(mo(e)){let r=wo(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;ko(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Po("tap"),i.info.addMove({x:t,y:n}),mo(e)||(i.info.state="end",yo(i.info)),r&&Oo(i.info,r,e),i.info.started=!0)};_o(this.info,t,function(e){i.info.started&&t(e),yo(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=wo(e),n=e.changedTouches[0],r=n.clientX,e=n.clientY;ko(this.info,r,e)&&("start"===this.info.state&&Po("tap"),this.info.addMove({x:r,y:e}),Oo(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=wo(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Oo(this.info,t,e))}}),Eo({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){mo(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){mo(e)&&Mo(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Mo(this.info,e.changedTouches[0],e)}});const Io=Ni(e=>class extends e{_addEventListenerToNode(e,t,n){xo(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){Co(e,t,n)||super._removeEventListenerFromNode(e,t,n)}}),No=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)}},Ro=e=>class extends No(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=pi.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{const e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],s=0<i.filter(e=>0===t.indexOf(e)).length,o=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:s!=o?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){if(t&&!t.content.querySelector(`style[include="${e}"]`)){const n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}};let Lo=!1;window.addEventListener("keydown",()=>{Lo=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Lo=!1},{capture:!0});const Fo=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}}}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&&Lo?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()}},Bo=function(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(Xs.size),Xs.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);};class zo{static detectScrollType(){const 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{scrollLeft:r}=n;if("rtl"!==t||!e)return r;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 Yo=[];let Uo;new MutationObserver(function(){const t=$o();Yo.forEach(e=>{Ho(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ho=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},$o=function(){return document.documentElement.getAttribute("dir")},jo=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Uo=Uo||zo.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Ho(this,$o()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(r=n===$o()&&-1===Yo.indexOf(this),e=!n&&t&&-1===Yo.indexOf(this),t=n!==$o()&&t===$o(),r||e?(this.__subscribe(),Ho(this,$o())):t&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Yo.indexOf(this)&&Yo.push(this):-1<Yo.indexOf(this)&&Yo.splice(Yo.indexOf(this),1)}__getNormalizedScrollLeft(e){return zo.getNormalizedScrollLeft(Uo,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return zo.setNormalizedScrollLeft(Uo,this.getAttribute("dir")||"ltr",e,t)}},Wo=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Vo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Go(e,t){if("function"==typeof e){var n=Wo.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 qo(){}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)&&(Vo?!(Vo&&0<Object.keys(Vo).map(e=>Vo[e]).filter(e=>e.productionMode).length):!Go(function(){return!0}))}catch(e){return!1}}());const Xo=function(){return function(e,t){if(window.Vaadin.developmentMode)return Go(e,t)}(qo)};let Jo;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Xo,Xo()};const Zo=new Set,Ko=e=>class extends jo(e){static finalize(){super.finalize();var{is:e}=this;e&&!Zo.has(e)&&(window.Vaadin.registrations.push(this),Zo.add(e),window.Vaadin.developmentModeCallback&&(Jo=qs.debounce(Jo,is,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Js(Jo)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class Qo extends Ko(Fo(Ro(Io(Gs)))){static get template(){return Oi`
|
|
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(){xo(this,"down",()=>!this.disabled&&this.setAttribute("active","")),xo(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(Qo.is,Qo);
|
|
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(){xo(this,"down",()=>!this.disabled&&this.setAttribute("active","")),xo(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(Qo.is,Qo);At=Oi`<dom-module id="lumo-date-picker-overlay-content" theme-for="vaadin-date-picker-overlay-content">
|
|
392
392
|
<template>
|
|
393
393
|
<style>
|
|
394
394
|
:host {
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
}
|
|
598
598
|
</style>
|
|
599
599
|
</template>
|
|
600
|
-
</dom-module>`;document.head.appendChild(
|
|
600
|
+
</dom-module>`;document.head.appendChild(At.content);At=Oi`<dom-module id="lumo-month-calendar" theme-for="vaadin-month-calendar">
|
|
601
601
|
<template>
|
|
602
602
|
<style>
|
|
603
603
|
:host {
|
|
@@ -743,7 +743,7 @@
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
</style>
|
|
746
|
-
</custom-style>`;document.head.appendChild(Tt.content);const ea=document.createElement("template");ea.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABAAAACspBAAAGxvY2EAAA5EAAAAWAAAAFh55IAsbWF4cAAADpwAAAAfAAAAIAFKAXBuYW1lAAAOvAAAATEAAAIuUUJZCHBvc3QAAA/wAAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wgc1Z9N0jpNnEL6kbRVS6HA2hQYGh9TGR1CbCqa2rXrWOkQE/sHNJgmtZvoVNZqE1B1DNHxzTQxCehUTYiJTQyENui0qSLezr3PduyQfgmRWOfde8+9551z7rnn/O4jLoJ/bRP0UaKQMLFJjpBAvphLZC3Dk0ok7WBzR2/upJs7Ryw/nfFbln/uuN/apCvwrKLrSvUqRufbm5pn0fs0w4gYxnGVP6qHnO4bWiDQGQgwtS6lm3lB3QoX1M2vwEmuzirF39y+Es2+DJ8d1pkyqBIqoze3D1+Zz4DrFoazxI8dWwMrDlZ2DMqQAR9AROsJU+2cmlTPazTco52F1xTa2a2+K8vvq92dVHmtLoPeQX/AZPRYGthDYOeZjBjKoFsVGulR3lWU95WeCK44qHU7MhWUGUKZDT3oKUcG2GWuh+EDDfUYA/jhAhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgRW95uEtpJ1Vfn9XiLriRBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKiflqHRSoWZc3m11Wa/fJdFgXD4sSYfleJBKd8GMz7J8dZn/cGRCcKGDnA2Ge3fKzcvlnTDNthGWLXzX/WaXtUAmRgeLlHSr30r0G9UTXMb0AtmwzOoy73fkSlHZkduw/TYuU9cAD4YutPoxTTsA3797wVr4Z/1NC5zARHr4vtxJjxIfiZMhMkbWk+14BnJZKwqGZwDfswLyxWDSg11rFLJF7Nopxjd1h1/QOT+oezgfu3Yq+Hk+duf5x+40o1GTkaIgikK/IEnC6aYxCUBaZJSN4XTYFjU/YMNIKqJwhDGOCCI8FDXnXmXjtGhGJyShqjAOnBOkW2JG9S7GgYeMWAU5JzhnWmBOaOM+CKEPoqSfFDC2Unq+DLlUgUVUFFLZGJg6jtlojsdsa8kPObPuJdi5dnBdBsLJMGTWDa4t2JvtwuPo9s+Y86suv/W33QG1rAaOAUV+vx4K6f2D04PVKlC7WLSrZzAi45ZV6lIC7WoXqmRyvUqoVwrzUoVsIjeTXWQv+RH5GTlBXiB/In8ln0IbBCAFOajAJrgZYyOHWqOfUe/aHjI12R6OQo1jCgt215l+4f6XPb+0MNou0V+43n2F77tSfRb24d7zitgnKmvYHs69zugaPvBwv6ioXkb2LdL65Atw51uLkXlu1bhMMRcXSPcYoqKIRlh34lQP8/5JbuUFye4vxD6/6MxFF11C0uVLr9Ulgw44tS3pMViNLUExbycFgLIct+QDMibRimx1ydUz8FXZiuOIDBOMVX2nUZc+huNE5XUJ81uiJoiabwqaVF0uacKbau/pl4R2VW0XXlJra6boVrYG646TF5NYzwy4vjENVrDlcNpZPl8DH6XX8XWCx0mvWVZY6KFLrvsY66/zPict5FnxaNUR/juvZCM3TvD60E2W1tZizbXTPDuabcm0nbbzpWKpmA1ayBQ8giedLUM+A0kNjBjQjmuYz7YrgIXYvmF63ZLBwSXrpn9Tb9wwdd/U1H0PMQK3XcO8ul3WT7PyPPdpy0TemKxNRcJNauiXJnnUDpUppQWs4SnUIy0EESGYqJYQLGHxzaGWwVIaS6Y7mQFM8ZjYDQ3axjf61SWjU33JwOZA1pwaG1L9mzf71aHRdX1JHw6Fp0aXhNwbqyeGNg4NbdzGCBxoz4ZXjy4Nu69Zr6sDY6vMrLU5nA1P8JkbdWXJ6ERfMryvNh1JfQ9+T4dIhGvK9w3dxjBBzatsQ/MlOHVIDnYpDz6odAXlQ01t2Pa5Iafd8MMpxAeDKP0C6CjgVLT5osB6icUx01lWjXxzT/GyRF2welEM5Z/7jG3VjQ1SrNn5IbyzOG5dobB3/QHxyZvsXcoz8IoEwS7plCg+zxHQk424q9BfEpkESJbFHQusDBSWFkuBkoPO0kLKwRVYjxGXlHTcTDQMJ/H6TX9afkO7mnraTO1feTnZAXLu4cp7HAXMmNG1yeFk9TgS/NHhZR/4QoBTr/ZB+6hCgyl15Nq1UbN6nE1/ZnP1U2cizCBpvs8cJQZJ4LkYx5N/yZPAUZNQQ0V4f3BQllWrK3YRzl30dOT6RVn2upNur6woSa8CqpdT/aKnBM4o3jNur9d9xqtUT6veBEt9Ca9at+ERzEEhUkR8sa5mQ4aVvJoVeEA8zI4ei5mULXFGyU7z/6TAeYLVcpzSWZY8PYYF5yrTV60sT0+XV141vX++Wf16V2bFeGVPZXxFpkvyeKTWLlzfW0mnKxsY6Y3294/0998SCfX1blm5pbcvFGlq/r07MRAMhYIDiW5JFKWW3vdrEpCsZSJG+om7Zu/PSScZJhNkLbmW5Wsr12pWqW5zKtlwRS4bFOxUw17mCzy6lskCDl1WYOGWDYrADrMA7BDDweWWNd5koiJnR1dz+ytLP2q0SqPB1lnK2ccB7RYe4FSoPks3iB3t4txTSHctb2sy1ivk0pvHuCNm6w1f6wxv3+OCgN78LqdQnUVh7R0oTAp0zOf2rbW770Vu5C2dIyGdTnHo8zSji7dppj0USoVCz+lhRMTh53Teq9VbGfbjuSbAooSdXayY4PYHg374C6f7gl1B/DXuJ4/QXxOBdJFJspFsI3egpoWUUCjlTIFnNYNl+ZyZKmBeYKGHkD1QyDlhaKbKwKcIJqJ4TLJ2OmdY/JWXae4DdGBw8HZ7eXcgFF2zr2SoalDry5iKqoa0Puhe3hPQ2s3elTYM+MI+n3rK0KgL7/La3GeMLt6m7u912vGnvtORiIa0qBmhqVi+XW9XNBmqb8eVgKzIHfGI5bNoG7X0UCzeISmqIcO/nY8FH7U8avX9fx/ST+hx0sezPw9Qy8Mum3GWf2N4Uy/yIYGVBXbJHWIZp7dfTcptdMTr9Qmq7DaiK/ukqCL4kt4RUfS5XPnMtmT22/mQFqF7emSqtrlu8SVElxDRJrZODkpuwe0VfTfjdEp1f7A7v+fozNBXUJ/6WTuK2TtFlpFVZAZ3LcFvUi1Z2p2YT+EMAkGJVStOzLTAPg4IqWIAlzRSjOBkl2zxj3TKycpzT/MnvX3uaSMWM+gU0rkXjohhefVRMaps3/kLMSKv23lT23uxQrkQjyOJleMDsdhAnD6ZGElWZ5MjCXzCE/hkWX+WF4knzGhVOyK2eQZekV3eyo0zL8kuYWCnDCvjjhAkcTPOBDXVdoav3HVcFnQjLvtV9S2p0zA6JegPwMQxt+yFb3ll9zGlq/5dRKb3cEyQYoaNYpharJ7xCB7AWxsLY3jjZXY0XsZj0Wjwc9I6PP/dKABnCZaqHpaZEACxk4ZeLZSKNgZABl+lYQX1sJQOSX3n6r410evcoud5JeAGUXVP9H1tZOKejTq4Ono0z0erro1FrnOpohva1d/hTdtVsQdKN5W9RlT3NjD0nznyKNTgKAMfWNWcyodV0IGLPIHOF0o4JyqufaK4z6WIIzuGh3d8c8cwQg8ER+OVxyrjdm8vNuhts4LoOihGxIMuUdgzwiYN7xhh1+oZnJNuTG7gQZvu4XWZ9GAZZjGEubwePqYhtKDTH+9VQkl17/iGybsnJ+8+sKtyPrcll9ty65Zsdst/9iqpEKh7M5VdBxh3csOdNc6tW3I1uyM1PzOXegSOrLFsFNI2O27M+TF2ApnN9MUv5ud6LjxIvEQnHRzxIu4IsA9MLFkJn2tcZoZ7ON7dXe7ujrc8HrusPKamlqXwd77lQUuLpilau4PUMapueBb7irU4RoUXEYXuVuIGlRGmOp+2lNkaRPVziOqmlaZvaqG4dFgSj0jxEJWrv12IUWntmw+rfQarRE0Aph4ocI6nlUlGqs+u3/+T/ethW62PpHp2eHbZstnh/wOO95yDAHicY2BkYGAA4pmJ6QHx/DZfGbiZXwBFGGpUNzQi6P+vmacy3QJyORiYQKIANoULVXicY2BkYGAO+p8FJF8wAAHzVAZGBlSgDQBW9gNvAAAAeJxjYGBgYH4xNDAAzwQmjwAAAAAATgCaAOgBCgEsAU4BcAGaAcQB7gIaApwC6ASaBLwE1gTyBQ4FKgV6BdAF/gZEBmYGtgcYB5AIGAhSCGoI/glGCb4J2goECjwKggq4CvALUAuWC7x4nGNgZGBg0GZMYRBlAAEmIOYCQgaG/2A+AwAYlAG8AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjtlugzAQRbkJUEJIuu/7vqR8lGNPAcWx0YAb5e/LklR96EgenSufGY038PqKvf9rhgGG8BEgxA4ijBBjjAQTTLGLPezjAIc4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(ea.content);const ta=document.createElement("template");ta.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ta.content);const na=document.createElement("template");na.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(na.content);Tt=Oi`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
|
|
746
|
+
</custom-style>`;document.head.appendChild(At.content);const ea=document.createElement("template");ea.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABAAAACspBAAAGxvY2EAAA5EAAAAWAAAAFh55IAsbWF4cAAADpwAAAAfAAAAIAFKAXBuYW1lAAAOvAAAATEAAAIuUUJZCHBvc3QAAA/wAAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wgc1Z9N0jpNnEL6kbRVS6HA2hQYGh9TGR1CbCqa2rXrWOkQE/sHNJgmtZvoVNZqE1B1DNHxzTQxCehUTYiJTQyENui0qSLezr3PduyQfgmRWOfde8+9551z7rnn/O4jLoJ/bRP0UaKQMLFJjpBAvphLZC3Dk0ok7WBzR2/upJs7Ryw/nfFbln/uuN/apCvwrKLrSvUqRufbm5pn0fs0w4gYxnGVP6qHnO4bWiDQGQgwtS6lm3lB3QoX1M2vwEmuzirF39y+Es2+DJ8d1pkyqBIqoze3D1+Zz4DrFoazxI8dWwMrDlZ2DMqQAR9AROsJU+2cmlTPazTco52F1xTa2a2+K8vvq92dVHmtLoPeQX/AZPRYGthDYOeZjBjKoFsVGulR3lWU95WeCK44qHU7MhWUGUKZDT3oKUcG2GWuh+EDDfUYA/jhAhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgRW95uEtpJ1Vfn9XiLriRBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKiflqHRSoWZc3m11Wa/fJdFgXD4sSYfleJBKd8GMz7J8dZn/cGRCcKGDnA2Ge3fKzcvlnTDNthGWLXzX/WaXtUAmRgeLlHSr30r0G9UTXMb0AtmwzOoy73fkSlHZkduw/TYuU9cAD4YutPoxTTsA3797wVr4Z/1NC5zARHr4vtxJjxIfiZMhMkbWk+14BnJZKwqGZwDfswLyxWDSg11rFLJF7Nopxjd1h1/QOT+oezgfu3Yq+Hk+duf5x+40o1GTkaIgikK/IEnC6aYxCUBaZJSN4XTYFjU/YMNIKqJwhDGOCCI8FDXnXmXjtGhGJyShqjAOnBOkW2JG9S7GgYeMWAU5JzhnWmBOaOM+CKEPoqSfFDC2Unq+DLlUgUVUFFLZGJg6jtlojsdsa8kPObPuJdi5dnBdBsLJMGTWDa4t2JvtwuPo9s+Y86suv/W33QG1rAaOAUV+vx4K6f2D04PVKlC7WLSrZzAi45ZV6lIC7WoXqmRyvUqoVwrzUoVsIjeTXWQv+RH5GTlBXiB/In8ln0IbBCAFOajAJrgZYyOHWqOfUe/aHjI12R6OQo1jCgt215l+4f6XPb+0MNou0V+43n2F77tSfRb24d7zitgnKmvYHs69zugaPvBwv6ioXkb2LdL65Atw51uLkXlu1bhMMRcXSPcYoqKIRlh34lQP8/5JbuUFye4vxD6/6MxFF11C0uVLr9Ulgw44tS3pMViNLUExbycFgLIct+QDMibRimx1ydUz8FXZiuOIDBOMVX2nUZc+huNE5XUJ81uiJoiabwqaVF0uacKbau/pl4R2VW0XXlJra6boVrYG646TF5NYzwy4vjENVrDlcNpZPl8DH6XX8XWCx0mvWVZY6KFLrvsY66/zPict5FnxaNUR/juvZCM3TvD60E2W1tZizbXTPDuabcm0nbbzpWKpmA1ayBQ8giedLUM+A0kNjBjQjmuYz7YrgIXYvmF63ZLBwSXrpn9Tb9wwdd/U1H0PMQK3XcO8ul3WT7PyPPdpy0TemKxNRcJNauiXJnnUDpUppQWs4SnUIy0EESGYqJYQLGHxzaGWwVIaS6Y7mQFM8ZjYDQ3axjf61SWjU33JwOZA1pwaG1L9mzf71aHRdX1JHw6Fp0aXhNwbqyeGNg4NbdzGCBxoz4ZXjy4Nu69Zr6sDY6vMrLU5nA1P8JkbdWXJ6ERfMryvNh1JfQ9+T4dIhGvK9w3dxjBBzatsQ/MlOHVIDnYpDz6odAXlQ01t2Pa5Iafd8MMpxAeDKP0C6CjgVLT5osB6icUx01lWjXxzT/GyRF2welEM5Z/7jG3VjQ1SrNn5IbyzOG5dobB3/QHxyZvsXcoz8IoEwS7plCg+zxHQk424q9BfEpkESJbFHQusDBSWFkuBkoPO0kLKwRVYjxGXlHTcTDQMJ/H6TX9afkO7mnraTO1feTnZAXLu4cp7HAXMmNG1yeFk9TgS/NHhZR/4QoBTr/ZB+6hCgyl15Nq1UbN6nE1/ZnP1U2cizCBpvs8cJQZJ4LkYx5N/yZPAUZNQQ0V4f3BQllWrK3YRzl30dOT6RVn2upNur6woSa8CqpdT/aKnBM4o3jNur9d9xqtUT6veBEt9Ca9at+ERzEEhUkR8sa5mQ4aVvJoVeEA8zI4ei5mULXFGyU7z/6TAeYLVcpzSWZY8PYYF5yrTV60sT0+XV141vX++Wf16V2bFeGVPZXxFpkvyeKTWLlzfW0mnKxsY6Y3294/0998SCfX1blm5pbcvFGlq/r07MRAMhYIDiW5JFKWW3vdrEpCsZSJG+om7Zu/PSScZJhNkLbmW5Wsr12pWqW5zKtlwRS4bFOxUw17mCzy6lskCDl1WYOGWDYrADrMA7BDDweWWNd5koiJnR1dz+ytLP2q0SqPB1lnK2ccB7RYe4FSoPks3iB3t4txTSHctb2sy1ivk0pvHuCNm6w1f6wxv3+OCgN78LqdQnUVh7R0oTAp0zOf2rbW770Vu5C2dIyGdTnHo8zSji7dppj0USoVCz+lhRMTh53Teq9VbGfbjuSbAooSdXayY4PYHg374C6f7gl1B/DXuJ4/QXxOBdJFJspFsI3egpoWUUCjlTIFnNYNl+ZyZKmBeYKGHkD1QyDlhaKbKwKcIJqJ4TLJ2OmdY/JWXae4DdGBw8HZ7eXcgFF2zr2SoalDry5iKqoa0Puhe3hPQ2s3elTYM+MI+n3rK0KgL7/La3GeMLt6m7u912vGnvtORiIa0qBmhqVi+XW9XNBmqb8eVgKzIHfGI5bNoG7X0UCzeISmqIcO/nY8FH7U8avX9fx/ST+hx0sezPw9Qy8Mum3GWf2N4Uy/yIYGVBXbJHWIZp7dfTcptdMTr9Qmq7DaiK/ukqCL4kt4RUfS5XPnMtmT22/mQFqF7emSqtrlu8SVElxDRJrZODkpuwe0VfTfjdEp1f7A7v+fozNBXUJ/6WTuK2TtFlpFVZAZ3LcFvUi1Z2p2YT+EMAkGJVStOzLTAPg4IqWIAlzRSjOBkl2zxj3TKycpzT/MnvX3uaSMWM+gU0rkXjohhefVRMaps3/kLMSKv23lT23uxQrkQjyOJleMDsdhAnD6ZGElWZ5MjCXzCE/hkWX+WF4knzGhVOyK2eQZekV3eyo0zL8kuYWCnDCvjjhAkcTPOBDXVdoav3HVcFnQjLvtV9S2p0zA6JegPwMQxt+yFb3ll9zGlq/5dRKb3cEyQYoaNYpharJ7xCB7AWxsLY3jjZXY0XsZj0Wjwc9I6PP/dKABnCZaqHpaZEACxk4ZeLZSKNgZABl+lYQX1sJQOSX3n6r410evcoud5JeAGUXVP9H1tZOKejTq4Ono0z0erro1FrnOpohva1d/hTdtVsQdKN5W9RlT3NjD0nznyKNTgKAMfWNWcyodV0IGLPIHOF0o4JyqufaK4z6WIIzuGh3d8c8cwQg8ER+OVxyrjdm8vNuhts4LoOihGxIMuUdgzwiYN7xhh1+oZnJNuTG7gQZvu4XWZ9GAZZjGEubwePqYhtKDTH+9VQkl17/iGybsnJ+8+sKtyPrcll9ty65Zsdst/9iqpEKh7M5VdBxh3csOdNc6tW3I1uyM1PzOXegSOrLFsFNI2O27M+TF2ApnN9MUv5ud6LjxIvEQnHRzxIu4IsA9MLFkJn2tcZoZ7ON7dXe7ujrc8HrusPKamlqXwd77lQUuLpilau4PUMapueBb7irU4RoUXEYXuVuIGlRGmOp+2lNkaRPVziOqmlaZvaqG4dFgSj0jxEJWrv12IUWntmw+rfQarRE0Aph4ocI6nlUlGqs+u3/+T/ethW62PpHp2eHbZstnh/wOO95yDAHicY2BkYGAA4pmJ6QHx/DZfGbiZXwBFGGpUNzQi6P+vmacy3QJyORiYQKIANoULVXicY2BkYGAO+p8FJF8wAAHzVAZGBlSgDQBW9gNvAAAAeJxjYGBgYH4xNDAAzwQmjwAAAAAATgCaAOgBCgEsAU4BcAGaAcQB7gIaApwC6ASaBLwE1gTyBQ4FKgV6BdAF/gZEBmYGtgcYB5AIGAhSCGoI/glGCb4J2goECjwKggq4CvALUAuWC7x4nGNgZGBg0GZMYRBlAAEmIOYCQgaG/2A+AwAYlAG8AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjtlugzAQRbkJUEJIuu/7vqR8lGNPAcWx0YAb5e/LklR96EgenSufGY038PqKvf9rhgGG8BEgxA4ijBBjjAQTTLGLPezjAIc4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(ea.content);const ta=document.createElement("template");ta.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ta.content);const na=document.createElement("template");na.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(na.content);At=Oi`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
|
|
747
747
|
<template>
|
|
748
748
|
<style include="lumo-required-field lumo-field-button">
|
|
749
749
|
:host {
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
}
|
|
1131
1131
|
</style>
|
|
1132
1132
|
</template>
|
|
1133
|
-
</dom-module>`;document.head.appendChild(
|
|
1133
|
+
</dom-module>`;document.head.appendChild(At.content);At=Oi`<dom-module id="vaadin-text-field-shared-styles">
|
|
1134
1134
|
<template>
|
|
1135
1135
|
<style>
|
|
1136
1136
|
:host {
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
}
|
|
1229
1229
|
</style>
|
|
1230
1230
|
</template>
|
|
1231
|
-
</dom-module>`;document.head.appendChild(Tt.content);const ra={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},ia={DEFAULT:"default",ACCESSIBLE:"accessible"},sa=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+ra.default.join(", ")+")","_hostAccessiblePropsChanged("+ra.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(this.shadowRoot)return this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`)||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(0<e.value.length&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=qs.debounce(this._inputDebouncer,ns.after(200),()=>{this.removeAttribute("input-prevented")}))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,n,r){!e&&!t&&n&&r?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_onChange(e){this._valueClearing||(e=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}),this.dispatchEvent(e))}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter(e=>3!==e.nodeType).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){var e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this.inputElement.value=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(ia).map(e=>ia[e]).forEach(e=>this._propagateHostAttributes(ra[e].map(e=>this[e]),e))}_hostPropsChanged(...e){this._propagateHostAttributes(e,ia.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,ia.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(n,e){const r=this.inputElement,t=ra[e];e===ia.ACCESSIBLE?t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r),this._setOrToggleAttribute(`aria-${e}`,!!n[t]&&"true",r)}):t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r)})}_setOrToggleAttribute(e,t,n){e&&n&&(t?n.setAttribute(e,"boolean"==typeof t?"":t):n.removeAttribute(e))}_constraintsChanged(e,t,n,r){this.invalid&&(e||t||n||r?this.validate():this.invalid=!1)}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);var e=this.shadowRoot.querySelector('[part="value"]');this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",()=>this._valueClearing=!0),this.$.clearButton.addEventListener("mouseleave",()=>this._valueClearing=!1),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this));e=sa._uniqueId=1+sa._uniqueId||0;this._errorId=`${this.constructor.is}-error-${e}`,this._labelId=`${this.constructor.is}-label-${e}`,this._helperTextId=`${this.constructor.is}-helper-${e}`,this._inputId=`${this.constructor.is}-input-${e}`,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",()=>{this.__observeOffsetHeight()})}validate(){return!(this.invalid=!this.checkValidity())}clear(){this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout(()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}}))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0});t.__fromClearButton=!0;const n=new Event("change",{bubbles:!this._slottedInput});n.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(n)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){var t;this._enabledCharPattern&&(t=(e.clipboardData||window.clipboardData).getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onDrop(e){var t;this._enabledCharPattern&&(t=e.dataTransfer.getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame(()=>{this.__preventInput=!1})},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,n,r,i,s){const o=[];(r||s)&&o.push(i),t&&e&&o.push(n),this._setOrToggleAttribute("aria-describedby",o.join(" "),this.focusElement)}_getActiveLabelId(e,t,n){let r=e?`${t} ${n}`:n;this.focusElement.setAttribute("aria-labelledby",r)}_getErrorMessageAriaHidden(e,t,n){return(!(t&&e&&n)).toString()}_dispatchIronResizeEventIfNeeded(e,t){e="__previous"+e;void 0!==this[e]&&this[e]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[e]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=qs.debounce(this.__observeOffsetHeightDebouncer,rs,()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)})}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(t)||this.updateStyles(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach(e=>{e.style[t]="visible",e.style[t]=""})}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}};class oa extends Ko(sa(Fo(Lo(Gs)))){static get template(){return Oi`
|
|
1231
|
+
</dom-module>`;document.head.appendChild(At.content);const ra={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},ia={DEFAULT:"default",ACCESSIBLE:"accessible"},sa=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+ra.default.join(", ")+")","_hostAccessiblePropsChanged("+ra.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(this.shadowRoot)return this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`)||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(0<e.value.length&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=qs.debounce(this._inputDebouncer,ns.after(200),()=>{this.removeAttribute("input-prevented")}))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,n,r){!e&&!t&&n&&r?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_onChange(e){this._valueClearing||(e=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}),this.dispatchEvent(e))}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter(e=>3!==e.nodeType).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){var e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this.inputElement.value=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(ia).map(e=>ia[e]).forEach(e=>this._propagateHostAttributes(ra[e].map(e=>this[e]),e))}_hostPropsChanged(...e){this._propagateHostAttributes(e,ia.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,ia.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(n,e){const r=this.inputElement,t=ra[e];e===ia.ACCESSIBLE?t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r),this._setOrToggleAttribute(`aria-${e}`,!!n[t]&&"true",r)}):t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r)})}_setOrToggleAttribute(e,t,n){e&&n&&(t?n.setAttribute(e,"boolean"==typeof t?"":t):n.removeAttribute(e))}_constraintsChanged(e,t,n,r){this.invalid&&(e||t||n||r?this.validate():this.invalid=!1)}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);var e=this.shadowRoot.querySelector('[part="value"]');this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",()=>this._valueClearing=!0),this.$.clearButton.addEventListener("mouseleave",()=>this._valueClearing=!1),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this));e=sa._uniqueId=1+sa._uniqueId||0;this._errorId=`${this.constructor.is}-error-${e}`,this._labelId=`${this.constructor.is}-label-${e}`,this._helperTextId=`${this.constructor.is}-helper-${e}`,this._inputId=`${this.constructor.is}-input-${e}`,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",()=>{this.__observeOffsetHeight()})}validate(){return!(this.invalid=!this.checkValidity())}clear(){this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout(()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}}))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0});t.__fromClearButton=!0;const n=new Event("change",{bubbles:!this._slottedInput});n.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(n)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){var t;this._enabledCharPattern&&(t=(e.clipboardData||window.clipboardData).getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onDrop(e){var t;this._enabledCharPattern&&(t=e.dataTransfer.getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame(()=>{this.__preventInput=!1})},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,n,r,i,s){const o=[];(r||s)&&o.push(i),t&&e&&o.push(n),this._setOrToggleAttribute("aria-describedby",o.join(" "),this.focusElement)}_getActiveLabelId(e,t,n){let r=e?`${t} ${n}`:n;this.focusElement.setAttribute("aria-labelledby",r)}_getErrorMessageAriaHidden(e,t,n){return(!(t&&e&&n)).toString()}_dispatchIronResizeEventIfNeeded(e,t){e="__previous"+e;void 0!==this[e]&&this[e]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[e]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=qs.debounce(this.__observeOffsetHeightDebouncer,rs,()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)})}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(t)||this.updateStyles(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach(e=>{e.style[t]="visible",e.style[t]=""})}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}};class oa extends Ko(sa(Fo(Ro(Gs)))){static get template(){return Oi`
|
|
1232
1232
|
<style include="vaadin-text-field-shared-styles">
|
|
1233
1233
|
/* polymer-cli linter breaks with empty line */
|
|
1234
1234
|
</style>
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
<div part="error-message" id="[[_errorId]]" aria-live="assertive" aria-hidden\$="[[_getErrorMessageAriaHidden(invalid, errorMessage, _errorId)]]">[[errorMessage]]</div>
|
|
1258
1258
|
|
|
1259
1259
|
</div>
|
|
1260
|
-
`}static get is(){return"vaadin-text-field"}static get version(){return"2.9.0"}static get properties(){return{list:{type:String},pattern:{type:String},title:{type:String}}}}customElements.define(oa.is,oa);
|
|
1260
|
+
`}static get is(){return"vaadin-text-field"}static get version(){return"2.9.0"}static get properties(){return{list:{type:String},pattern:{type:String},title:{type:String}}}}customElements.define(oa.is,oa);At=Oi`<dom-module id="lumo-date-picker" theme-for="vaadin-date-picker">
|
|
1261
1261
|
<template>
|
|
1262
1262
|
<style include="lumo-field-button">
|
|
1263
1263
|
:host {
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
1273
|
}
|
|
1274
1274
|
</style>
|
|
1275
1275
|
</template>
|
|
1276
|
-
</dom-module>`;document.head.appendChild(Tt.content);class aa{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 la(e){return function r(t,i){let n=i.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent){var s=t.previous?t.previous.end:t.parent.start;n=i.substring(s,t.start-1),n=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})}(n),n=n.replace(ha.multipleSpaces," "),n=n.substring(n.lastIndexOf(";")+1);let e=t.parsedSelector=t.selector=n.trim();t.atRule=0===e.indexOf(fa),t.atRule?0===e.indexOf(ma)?t.type=ua.MEDIA_RULE:e.match(ha.keyframesRule)&&(t.type=ua.KEYFRAMES_RULE,t.keyframesName=t.selector.split(ha.multipleSpaces).pop()):0===e.indexOf(pa)?t.type=ua.MIXIN_RULE:t.type=ua.STYLE_RULE}var o=t.rules;if(o)for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)r(e,i);return t}(function(t){let r=new aa;r.start=0,r.end=t.length;let i=r;for(let n=0,e=t.length;n<e;n++)if(t[n]===ca){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;i=new aa,i.start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else t[n]===da&&(i.end=n+1,i=i.parent||r);return r}(e=e.replace(ha.comments,"").replace(ha.port,"")),e)}const ua={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},ca="{",da="}",ha={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},pa="--",ma="@media",fa="@",_a=new Set;function ya(e,t){return e?("string"==typeof e&&(e=la(e)),t&&va(e,t),function r(e,i,t=""){let s="";if(e.cssText||e.rules){var o=e.rules;if(o&&!function(){let e=o[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(pa)}())for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)s=r(e,i,s);else s=i?e.cssText:function(e){return e.replace(ha.customProp,"").replace(ha.mixinProp,"")}(e.cssText).replace(ha.mixinApply,"").replace(ha.varApply,""),s=s.trim(),s=s&&" "+s+"\n"}return s&&(e.selector&&(t+=e.selector+" "+ca+"\n"),t+=s,e.selector&&(t+=da+"\n\n")),t}(e,Fr)):""}function ga(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=la(e.textContent)),e.__cssRules||null}function va(n,r,i,s){if(n){let e=!1,t=n.type;var o;!s||t!==ua.MEDIA_RULE||(o=n.selector.match(kr))&&(window.matchMedia(o[1]).matches||(e=!0)),t===ua.STYLE_RULE?r(n):i&&t===ua.KEYFRAMES_RULE?i(n):t===ua.MIXIN_RULE&&(e=!0);var a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)va(e,r,i,s)}}window.ShadyDOM&&window.ShadyDOM.wrap;const ba="css-build";function wa(t){return void 0!==Lr?Lr:(void 0===t.__cssBuild&&((e=t.getAttribute(ba))||""!==(e=function(e){const t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===ba)return e[1]}return""}(t))&&function(){const e=("template"===t.localName?t.content:t).firstChild;e.parentNode.removeChild(e)}(),t.__cssBuild=e),t.__cssBuild||"");var e}function Sa(e){return""!==wa(e)}const xa=/;\s*/m,Ca=/^\s*(initial)|(inherit)\s*$/,Ea=/\s*!important/;class Aa{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 Ta=null;class Pa{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Aa}detectMixin(e){e=Dr.test(e)||Pr.test(e);return Dr.lastIndex=0,Pr.lastIndex=0,e}gatherStyles(e){var t=function(){const t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){const r=n[e];r.hasAttribute("shady-unscoped")?Ir||(function(e){if(e=e.textContent,!_a.has(e)){_a.add(e);const t=document.createElement("style");t.setAttribute("shady-unscoped",""),t.textContent=e,document.head.appendChild(t)}}(r),r.parentNode.removeChild(r)):(t.push(r.textContent),r.parentNode.removeChild(r))}return t.join("").trim()}();if(t){const n=document.createElement("style");return n.textContent=t,e.content.insertBefore(n,e.content.firstChild),n}return 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=ga(e);return this.transformRules(n,t),e.textContent=ya(n),n}transformCustomStyle(e){var t=ga(e);return va(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=ya(t),t}transformRules(e,t){this._currentElement=t,va(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(Pr,(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 va(e,e=>{r=r||e===t,r||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(l,u){for(var c;c=Dr.exec(l);){let e=c[0],t=c[1],n=c.index,r=n+e.indexOf("@apply"),i=n+e.length,s=l.slice(0,r),o=l.slice(i),a=u?this._fallbacksFromPreviousRules(u):{};Object.assign(a,this._cssTextToMap(s));var d=this._atApplyToCssProperties(t,a);l=`${s}${d}${o}`,Dr.lastIndex=n+d.length}return l}_atApplyToCssProperties(r,i){r=r.replace(xa,"");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(Ea,"")),t.push(")"),Ea.test(a[e])&&t.push(" !important"),s.push(t.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){var n=Ca.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],e&&(t=e.split(":"),1<t.length&&(i=t[0].trim(),s=t.slice(1).join(":"),r&&(s=this._replaceInitialOrInherit(i,s)),a[i]=s));return a}_invalidateMixinEntry(e){if(Ta)for(var t in e.dependants)t!==this._currentElement&&Ta(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var i=t.indexOf("var(");if(-1===i)return n(t,"","","");let r=function(n){let r=0;for(let e=i+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),s=t.substring(i+4,r),o=t.substring(0,i),a=e(t.substring(r+1),n),l=s.indexOf(",");return-1===l?n(o,s.trim(),"",a):n(o,s.substring(0,l).trim(),s.substring(l+1).trim(),a)}(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,u=this._map.get(t),c=u&&u.properties;c?l=Object.assign(Object.create(c),a):this._map.set(t,l);let d,h,p=[],m=!1;for(d in l)h=a[d],void 0===h&&(h="initial"),!c||d in c||(m=!0),p.push(`${t}_-_${d}: ${h}`);return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),n&&(o=`${e};${o}`),`${o}${p.join("; ")};`}}Pa.prototype._separator="_-_",Object.defineProperty(Pa.prototype,"invalidCallback",{get:()=>Ta,set(e){Ta=e}});const Da={},ka="_applyShimCurrentVersion",Oa="_applyShimNextVersion",Ma="_applyShimValidatingVersion",Ia=Promise.resolve();function Na(e){e=Da[e];e&&((e=e)[ka]=e[ka]||0,e[Ma]=e[Ma]||0,e[Oa]=(e[Oa]||0)+1)}function La(e){return e[ka]===e[Oa]}const Ra=new Pa;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const Y=new class{constructor(){this.customStyleInterface=null,Ra.invalidCallback=Na}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ra.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Sa(e)||(Da[t]=e,t=Ra.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&&Ra.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Or(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 n,r,{is:i}=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),s=Da[i];if((!s||!Sa(s))&&s&&!La(s)){!La(r=s)&&r[Ma]===r[Oa]||(this.prepareTemplate(s,i),(n=s)[Ma]=n[Oa],n._validating||(n._validating=!0,Ia.then(function(){n[ka]=n[Oa],n._validating=!1})));let t=e.shadowRoot;if(t){let e=t.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=ya(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};var Fa=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){Y.flushCustomStyles(),Y.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){Y.flushCustomStyles(),Y.styleSubtree(e,t)},styleElement(e){Y.flushCustomStyles(),Y.styleElement(e)},styleDocument(e){Y.flushCustomStyles(),Y.styleDocument(e)},getComputedStyleValue:(e,t)=>Mr(e,t),flushCustomStyles(){Y.flushCustomStyles()},nativeCss:Fr,nativeShadow:Ir,cssBuild:Lr,disableRuntime:Wt},Fa&&(window.ShadyCSS.CustomStyleInterface=Fa)}window.ShadyCSS.ApplyShim=Ra;const za=/:host\(:dir\((ltr|rtl)\)\)/g,Ba=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ya=/:dir\((?:ltr|rtl)\)/,Ua=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Ha=[];let $a=null,ja="";function Wa(){ja=document.documentElement.getAttribute("dir")}function Va(e){e.__autoDirOptOut||e.setAttribute("dir",ja)}function Ga(){Wa(),ja=document.documentElement.getAttribute("dir");for(let e=0;e<Ha.length;e++)Va(Ha[e])}const qa=Ni(e=>{Ua||$a||(Wa(),$a=new MutationObserver(Ga),$a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=ds(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Ua&&Ya.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(za,':host([dir="$1"])'),t=t.replace(Ba,':host([dir="$2"]) $1'),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&($a&&$a.takeRecords().length&&Ga(),Ha.push(this),Va(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=Ha.indexOf(this))&&Ha.splice(e,1)}}return t.__activateDir=!1,t});let Xa=!1,Ja=[],Za=[];function Ka(){Xa=!0,requestAnimationFrame(function(){Xa=!1,function(e){for(;e.length;)Qa(e.shift())}(Ja),setTimeout(function(){!function(n){for(let e=0,t=n.length;e<t;e++)Qa(n.shift())}(Za)})})}function Qa(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function el(e,t,n){Xa||Ka(),Za.push([e,t,n])}function tl(){document.body.removeAttribute("unresolved")}function nl(e,t,n){return{index:e,removed:t,addedCount:n}}function rl(e,t){return function(e,t,d,n,r,h){let i,s=0,o=0,a=Math.min(d-t,h-r);if(0==t&&0==r&&(s=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(e,n,a)),d==e.length&&h==n.length&&(o=function(e,t,n){let r=e.length,i=t.length,s=0;for(;s<n&&e[--r]===t[--i];)s++;return s}(e,n,a-s)),r+=s,h-=o,(d-=o)-(t+=s)==0&&h-r==0)return[];if(t==d){for(i=nl(t,[],0);r<h;)i.removed.push(n[r++]);return[i]}if(r==h)return[nl(t,[],d-t)];var l=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?0!=n?(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(0):(i.push(1),r=s),t--,n--):r=l==o?(i.push(3),t--,o):(i.push(2),n--,a)):(i.push(3),t--):(i.push(2),n--)}return i.reverse(),i}(function(n,r,i,s){let o=h-s+1,a=d-r+1,l=new Array(o);for(let e=0;e<o;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let t=1;t<o;t++)for(let e=1;e<a;e++){var u,c;n[r+e-1]===i[s+t-1]?l[t][e]=l[t-1][e-1]:(u=l[t-1][e]+1,c=l[t][e-1]+1,l[t][e]=u<c?u:c)}return l}(e,t,n,r));i=void 0;let u=[],c=t,p=r;for(let e=0;e<l.length;e++)switch(l[e]){case 0:i&&(u.push(i),i=void 0),c++,p++;break;case 1:i=i||nl(c,[],0),i.addedCount++,c++,i.removed.push(n[p]),p++;break;case 2:i=i||nl(c,[],0),i.addedCount++,c++;break;case 3:i=i||nl(c,[],0),i.removed.push(n[p]),p++}return i&&u.push(i),u}(e,0,e.length,t,0,t.length)}function il(e){return"slot"===e.localName}"interactive"===document.readyState||"complete"===document.readyState?tl():window.addEventListener("DOMContentLoaded",tl);let sl=class{static getFlattenedNodes(e){const t=Li(e);return il(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>il(e)?Li(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(){il(this._target)?this._listenSlots([this._target]):Li(this._target).children&&(this._listenSlots(Li(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(){il(this._target)?this._unlistenSlots([this._target]):Li(this._target).children&&(this._unlistenSlots(Li(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,ss.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;let r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=rl(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(n){for(let t=0;t<n.length;t++){let e=n[t];il(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];il(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};const ol=Element.prototype,al=ol.matches||ol.matchesSelector||ol.mozMatchesSelector||ol.msMatchesSelector||ol.oMatchesSelector||ol.webkitMatchesSelector,ll=function(e,t){return al.call(e,t)};class ul{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new sl(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(Li(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=Li(t).parentNode||Li(t).host;return t===this.node}getOwnerRoot(){return Li(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Li(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=Li(this.node).assignedSlot;for(;t;)e.push(t),t=Li(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return Li(n).importNode(e,t)}getEffectiveChildNodes(){return sl.getFlattenedNodes(this.node)}queryDistributedElements(r){let i=this.getEffectiveChildNodes(),s=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&ll(e,r)&&s.push(e);return s}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function cl(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 dl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}let hl=ul;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class t extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(ul.prototype).forEach(e=>{"activeElement"!=e&&(t.prototype[e]=ul.prototype[e])}),cl(t.prototype,["classList"]),hl=t,Object.defineProperties(dl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&pl(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(pl(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(n,r){for(let t=0;t<r.length;t++){let e=r[t];n[e]=function(){return this.node[e].apply(this.node,arguments)}}}(ul.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),cl(ul.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(n,r){for(let e=0;e<r.length;e++){let t=r[e];Object.defineProperty(n,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}(ul.prototype,["textContent","innerHTML","className"]);const pl=function(e){if((e=e||document)instanceof hl)return e;if(e instanceof dl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?dl:hl)(e),e.__domApi=t),t},ml=window.ShadyDOM,fl=window.ShadyCSS;function _l(e,t){return Li(e).getRootNode()===t}const yl="disable-upgrade",gl=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},vl=Ni(e=>{e=Vs(e);let t=gl(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(yl)}_initializeProperties(){this.hasAttribute(yl)?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==yl?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Li(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),bl="disable-upgrade";let wl=window.ShadyCSS;const Sl=Ni(e=>{const t=Io(Vs(e)),n=Ws?t:qa(t),r=gl(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===bl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;ai&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;ai&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return ai&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(bl)}_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==bl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,Li(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){if(Qr&&this.hasAttribute(bl))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),ai&&!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;let r=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});r.detail=t;n=n.node||this;return Li(n).dispatchEvent(r),r}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;let r=this.__boundListeners&&this.__boundListeners.get(e),i=t+n,s=r&&r[i];s&&(this._removeEventListenerFromNode(e,t,s),r[i]=null)}setScrollDirection(e,t){Ao(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=Li(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=pl(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return pl(this).getEffectiveChildNodes()}queryDistributedElements(e){return pl(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){let 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?pl(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&Li(this).contains(e)&&Li(this).getRootNode()===Li(e).getRootNode()}isLocalDescendant(e){return this.root===Li(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!ml||!fl)return null;if(!ml.handlesDynamicScoping)return null;const i=fl.ScopingShim;if(!i)return null;const s=i.scopeForNode(e),o=Li(e).getRootNode(),a=e=>{if(_l(e,o)){const r=Array.from(ml.nativeMethods.querySelectorAll.call(e,"*"));r.push(e);for(let e=0;e<r.length;e++){var t,n=r[e];_l(n,o)&&((t=i.currentScopeForNode(n))!==s&&(""!==t&&i.unscopeNode(n,t),i.scopeNode(n,s)))}}};if(a(e),t){const t=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 t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return wl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=qs.debounce(this._debouncers[e],0<n?ns.after(n):ss,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return 0<t?ns.run(e.bind(this),t):~ss.run(e.bind(this))}cancelAsync(e){e<0?ss.cancel(~e):ns.cancel(e)}create(e,t){let 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 ll(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(Li(n).setAttribute(e,""),!0):(Li(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(n=e.indexOf(t),0<=n)return e.splice(n,1)}else if(n=$i(this,e).indexOf(t),0<=n)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}),xl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Cl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},El=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Cl);function Al(e,t,n,r){for(var i in!function(t,n,r){var i=t._noAccessors,s=Object.getOwnPropertyNames(t);for(let e=0;e<s.length;e++){var o=s[e];if(!(o in r))if(i)n[o]=t[o];else{let e=Object.getOwnPropertyDescriptor(t,o);e&&(e.configurable=!0,Object.defineProperty(n,o,e))}}}(t,e,r),xl)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Tl(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 Pl=Sl(HTMLElement);function Dl(r,t,n){let i;const s={};class o extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)(e=i[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){var t={};if(i)for(let e=0;e<i.length;e++)Tl(t,i[e].properties);return Tl(t,r.properties),t}static get observers(){let n=[];if(i)for(let e,t=0;t<i.length;t++)(e=i[t]).observers&&(n=n.concat(e.observers));return r.observers&&(n=n.concat(r.observers)),n}created(){super.created();const t=s.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){const e=o.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),Qr&&a(e);var n=Object.getPrototypeOf(this);let t=s.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=s.registered,t)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=s.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=s.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();let t=s.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();let t=s.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();let t=s.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();let i=s.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}if(n){Array.isArray(n)||(n=[n]);let e=t.prototype.behaviors;i=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}(n,null,e),o.prototype.behaviors=e?e.concat(n):i}const a=e=>{i&&function(t,n,r){for(let e=0;e<n.length;e++)Al(t,n[e],r,El)}(e,i,s),Al(e,r,s,Cl)};return Qr||a(o.prototype),o.generatedFrom=r,o}const kl=function(e){let t;return t="function"==typeof e?e:kl.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};function Ol(e,t,n,r,i){let s;i&&(s="object"==typeof n&&null!==n,s&&(r=e.__dataTemp[t]));r=r!==n&&(r==r||n==n);return s&&r&&(e.__dataTemp[t]=n),r}kl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let n=t?t(Pl):Pl;return n=Dl(e,n,e.behaviors),n.is=n.prototype.is=e.is,n};const Ml=Ni(e=>class extends e{_shouldPropertyChange(e,t,n){return Ol(this,e,t,n,!0)}}),Il=Ni(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Ol(this,e,t,n,this.mutableData)}});Ml._mutablePropertyChange=Ol;let Nl=null;function Ll(){return Nl}Ll.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ll,writable:!0}});const Rl=Hs(Ll),Fl=Ml(Rl);function zl(n,r){for(let t=0;t<r.length;t++){let e=r[t];if(Boolean(n)!=Boolean(e.__hideTemplateChildren__))if(e.nodeType===Node.TEXT_NODE)n?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if("slot"===e.localName)if(n)e.__polymerReplaced__=document.createComment("hidden-slot"),Li(Li(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{const n=e.__polymerReplaced__;n&&Li(Li(n).parentNode).replaceChild(e,n)}else e.style&&(n?(e.__polymerDisplay__=e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=n,e._showHideChildren&&e._showHideChildren(n)}}class Bl extends Hs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let 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(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,e=>{e.model=this,r(e)});else{let e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(t,n,r)}}_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;e=e.__dataHost.__dataHost,(t=e.__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Yl=Ml(Bl);function Ul(e){e=e.__dataHost;return e&&e._methodHost||e}function Hl(e,t,n){let r=n.mutableData?Yl:Bl;jl.mixin&&(r=jl.mixin(r));var i=class extends r{};return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(e),function(e,t,n,r){let i=n.hostProps||{};for(var s in r.instanceProps){delete i[s];var o=r.notifyInstanceProp;o&&e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((s,o))})}if(r.forwardHostProp&&t.__dataHost)for(var a in i)n.hasHostProps||(n.hasHostProps=!0),e.prototype._addPropertyEffect(a,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}(i,e,t,n),i}function $l(n,s,r,o){var e=r.forwardHostProp;if(e&&s.hasHostProps){var i,a="template"==n.localName;let t=s.templatizeTemplateClass;if(!t){if(a){class e extends(r.mutableData?Fl:Rl){}t=s.templatizeTemplateClass=e}else{const r=n.constructor;class e extends r{}t=s.templatizeTemplateClass=e}for(i in s.hostProps)t.prototype._addPropertyEffect("_host_"+i,t.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring("_host_".length),n[t])}}((i,e))}),t.prototype._createNotifyingProperty("_host_"+i);ei&&o&&function(t){const n=o.constructor._properties,{propertyEffects:e}=s,{instanceProps:r}=t;for(var i in e)if(!(n[i]||r&&r[i])){const t=e[i];for(let e=0;e<t.length;e++){const{part:n}=t[e].info;if(!n.signature||!n.signature.static){console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),a)a=t,Nl=n,Object.setPrototypeOf(n,a.prototype),new a,Nl=null,n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,t.prototype);const r=s.hostProps;for(var l in r)if(l="_host_"+l,l in n){const r=n[l];delete n[l],n.__data[l]=r}}}}function jl(e,t,n){if(Zr&&!Ul(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:Bl)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=Hl(e,r,n),r.templatizeInstanceClass=i);var s=Ul(e);$l(e,r,n,s);n=class extends i{};return n.prototype._methodHost=s,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let Wl=!1;function Vl(){if(Qr&&!Vr){if(!Wl){Wl=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return 1}}Fa=Io(Il(Hs(HTMLElement)));customElements.define("dom-bind",class extends Fa{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Zr)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(){Vl()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Li(Li(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"),!t){let e=new MutationObserver(()=>{if(t=this.querySelector("template"),!t)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}))}});class Gl extends Il(Gs){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:!oi,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)}connectedCallback(){if(super.connectedCallback(),Vl()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=Li(Li(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t)}}__ensureTemplatized(){if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){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}let e={};e[this.as]=!0,e[this.indexAs]=!0,e[this.itemsIndexAs]=!0,this.__ctor=jl(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,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)||zi(r,i)||Bi(r,i))&&(e=e[this.itemsIndexAs],t==this.as&&(this.items[e]=n),t=Yi(this.as,`${JSCompiler_renameProperty("items",this)}.${e}`,t),this.notifyPath(t,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=qs.debounce(this.__renderDebouncer,0<t?ns.after(t):ss,e.bind(this)),Js(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),zo()}__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.__continueChunking())),this._setRenderedItemCount(this.__instances.length),oi&&!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(r,e,i){const s=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],t=i[o],n=r[t];s[t]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,t),e._flushProperties()):this.__insertInstance(n,o,t)}for(let e=this.__instances.length-1;e>=o;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e];const n=Li(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){let 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 Li(Li(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(n,r){let i=n.slice(6),s=i.indexOf("."),o=s<0?i:i.substring(0,s);if(o==parseInt(o,10)){n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let e=this.__itemsIdxToInstIdx[o],t=this.__instances[e];return t&&(n=this.as+(n?"."+n:""),t._setPendingPropertyOrPath(n,r,!1,!0),t._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){return function(e,t){for(var n;t;)if(n=t.__dataHost?t:t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=Li(t).parentNode;return null}(this.template,e)}}customElements.define(Gl.is,Gl);class ql extends Gs{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=qs.debounce(this.__renderDebouncer,ss,()=>this.__render()),Js(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=Li(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Li(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Vl()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:Li(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!Li(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=Li(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&Li(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)Li(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){zo()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),oi&&!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(){}}Fa=si?class extends ql{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(Zr&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const 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=Fi(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),Li(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const 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 ql{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=jl(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[Fi(e)]=!0))}})),this.__instance=new this.__ctor,Li(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var r=this.__instance.children;if(r&&r.length){let n=Li(r[0]).parentNode;if(n){n=Li(n);for(let e,t=0;t<r.length&&(e=r[t]);t++)n.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(Fa.is,Fa);class Xl extends Ni(e=>{return class extends Vs(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){let n=t.path;if(n==JSCompiler_renameProperty("items",this)){var r=t.base||[],i=this.__lastItems;e!==this.__lastMulti&&this.clearSelection(),i&&(i=rl(r,i),this.__applySplices(i)),this.__lastItems=r,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=n.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__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){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.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)}}})(Gs){static get is(){return"array-selector"}static get template(){return null}}customElements.define(Xl.is,Xl),Sl(HTMLElement).prototype,kl({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 Jl=Element.prototype,Zl=Jl.matches||Jl.matchesSelector||Jl.mozMatchesSelector||Jl.msMatchesSelector||Jl.oMatchesSelector||Jl.webkitMatchesSelector;let Kl=0;const Ql={};class eu extends Lo(jo(Gs)){static get template(){return Oi`
|
|
1276
|
+
</dom-module>`;document.head.appendChild(At.content);class aa{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 la(e){return function r(t,i){let n=i.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent){var s=t.previous?t.previous.end:t.parent.start;n=i.substring(s,t.start-1),n=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})}(n),n=n.replace(ha.multipleSpaces," "),n=n.substring(n.lastIndexOf(";")+1);let e=t.parsedSelector=t.selector=n.trim();t.atRule=0===e.indexOf(fa),t.atRule?0===e.indexOf(ma)?t.type=ua.MEDIA_RULE:e.match(ha.keyframesRule)&&(t.type=ua.KEYFRAMES_RULE,t.keyframesName=t.selector.split(ha.multipleSpaces).pop()):0===e.indexOf(pa)?t.type=ua.MIXIN_RULE:t.type=ua.STYLE_RULE}var o=t.rules;if(o)for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)r(e,i);return t}(function(t){let r=new aa;r.start=0,r.end=t.length;let i=r;for(let n=0,e=t.length;n<e;n++)if(t[n]===da){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;i=new aa,i.start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else t[n]===ca&&(i.end=n+1,i=i.parent||r);return r}(e=e.replace(ha.comments,"").replace(ha.port,"")),e)}const ua={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},da="{",ca="}",ha={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},pa="--",ma="@media",fa="@",_a=new Set;function ya(e,t){return e?("string"==typeof e&&(e=la(e)),t&&va(e,t),function r(e,i,t=""){let s="";if(e.cssText||e.rules){var o=e.rules;if(o&&!function(){let e=o[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(pa)}())for(let e,t=0,n=o.length;t<n&&(e=o[t]);t++)s=r(e,i,s);else s=i?e.cssText:function(e){return e.replace(ha.customProp,"").replace(ha.mixinProp,"")}(e.cssText).replace(ha.mixinApply,"").replace(ha.varApply,""),s=s.trim(),s=s&&" "+s+"\n"}return s&&(e.selector&&(t+=e.selector+" "+da+"\n"),t+=s,e.selector&&(t+=ca+"\n\n")),t}(e,Fr)):""}function ga(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=la(e.textContent)),e.__cssRules||null}function va(n,r,i,s){if(n){let e=!1,t=n.type;var o;!s||t!==ua.MEDIA_RULE||(o=n.selector.match(kr))&&(window.matchMedia(o[1]).matches||(e=!0)),t===ua.STYLE_RULE?r(n):i&&t===ua.KEYFRAMES_RULE?i(n):t===ua.MIXIN_RULE&&(e=!0);var a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)va(e,r,i,s)}}window.ShadyDOM&&window.ShadyDOM.wrap;const ba="css-build";function wa(t){return void 0!==Rr?Rr:(void 0===t.__cssBuild&&((e=t.getAttribute(ba))||""!==(e=function(e){const t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===ba)return e[1]}return""}(t))&&function(){const e=("template"===t.localName?t.content:t).firstChild;e.parentNode.removeChild(e)}(),t.__cssBuild=e),t.__cssBuild||"");var e}function Sa(e){return""!==wa(e)}const xa=/;\s*/m,Ca=/^\s*(initial)|(inherit)\s*$/,Ea=/\s*!important/;class Ta{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 Aa=null;class Pa{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ta}detectMixin(e){e=Dr.test(e)||Pr.test(e);return Dr.lastIndex=0,Pr.lastIndex=0,e}gatherStyles(e){var t=function(){const t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){const r=n[e];r.hasAttribute("shady-unscoped")?Ir||(function(e){if(e=e.textContent,!_a.has(e)){_a.add(e);const t=document.createElement("style");t.setAttribute("shady-unscoped",""),t.textContent=e,document.head.appendChild(t)}}(r),r.parentNode.removeChild(r)):(t.push(r.textContent),r.parentNode.removeChild(r))}return t.join("").trim()}();if(t){const n=document.createElement("style");return n.textContent=t,e.content.insertBefore(n,e.content.firstChild),n}return 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=ga(e);return this.transformRules(n,t),e.textContent=ya(n),n}transformCustomStyle(e){var t=ga(e);return va(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=ya(t),t}transformRules(e,t){this._currentElement=t,va(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(Pr,(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 va(e,e=>{r=r||e===t,r||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(l,u){for(var d;d=Dr.exec(l);){let e=d[0],t=d[1],n=d.index,r=n+e.indexOf("@apply"),i=n+e.length,s=l.slice(0,r),o=l.slice(i),a=u?this._fallbacksFromPreviousRules(u):{};Object.assign(a,this._cssTextToMap(s));var c=this._atApplyToCssProperties(t,a);l=`${s}${c}${o}`,Dr.lastIndex=n+c.length}return l}_atApplyToCssProperties(r,i){r=r.replace(xa,"");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(Ea,"")),t.push(")"),Ea.test(a[e])&&t.push(" !important"),s.push(t.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){var n=Ca.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],e&&(t=e.split(":"),1<t.length&&(i=t[0].trim(),s=t.slice(1).join(":"),r&&(s=this._replaceInitialOrInherit(i,s)),a[i]=s));return a}_invalidateMixinEntry(e){if(Aa)for(var t in e.dependants)t!==this._currentElement&&Aa(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var i=t.indexOf("var(");if(-1===i)return n(t,"","","");let r=function(n){let r=0;for(let e=i+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),s=t.substring(i+4,r),o=t.substring(0,i),a=e(t.substring(r+1),n),l=s.indexOf(",");return-1===l?n(o,s.trim(),"",a):n(o,s.substring(0,l).trim(),s.substring(l+1).trim(),a)}(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,u=this._map.get(t),d=u&&u.properties;d?l=Object.assign(Object.create(d),a):this._map.set(t,l);let c,h,p=[],m=!1;for(c in l)h=a[c],void 0===h&&(h="initial"),!d||c in d||(m=!0),p.push(`${t}_-_${c}: ${h}`);return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),n&&(o=`${e};${o}`),`${o}${p.join("; ")};`}}Pa.prototype._separator="_-_",Object.defineProperty(Pa.prototype,"invalidCallback",{get:()=>Aa,set(e){Aa=e}});const Da={},ka="_applyShimCurrentVersion",Oa="_applyShimNextVersion",Ma="_applyShimValidatingVersion",Ia=Promise.resolve();function Na(e){e=Da[e];e&&((e=e)[ka]=e[ka]||0,e[Ma]=e[Ma]||0,e[Oa]=(e[Oa]||0)+1)}function Ra(e){return e[ka]===e[Oa]}const La=new Pa;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const U=new class{constructor(){this.customStyleInterface=null,La.invalidCallback=Na}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{La.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Sa(e)||(Da[t]=e,t=La.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&&La.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Or(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 n,r,{is:i}=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),s=Da[i];if((!s||!Sa(s))&&s&&!Ra(s)){!Ra(r=s)&&r[Ma]===r[Oa]||(this.prepareTemplate(s,i),(n=s)[Ma]=n[Oa],n._validating||(n._validating=!0,Ia.then(function(){n[ka]=n[Oa],n._validating=!1})));let t=e.shadowRoot;if(t){let e=t.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=ya(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};var Fa=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)=>Mr(e,t),flushCustomStyles(){U.flushCustomStyles()},nativeCss:Fr,nativeShadow:Ir,cssBuild:Rr,disableRuntime:Wt},Fa&&(window.ShadyCSS.CustomStyleInterface=Fa)}window.ShadyCSS.ApplyShim=La;const Ba=/:host\(:dir\((ltr|rtl)\)\)/g,za=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ya=/:dir\((?:ltr|rtl)\)/,Ua=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Ha=[];let $a=null,ja="";function Wa(){ja=document.documentElement.getAttribute("dir")}function Va(e){e.__autoDirOptOut||e.setAttribute("dir",ja)}function Ga(){Wa(),ja=document.documentElement.getAttribute("dir");for(let e=0;e<Ha.length;e++)Va(Ha[e])}const qa=Ni(e=>{Ua||$a||(Wa(),$a=new MutationObserver(Ga),$a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=cs(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Ua&&Ya.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(Ba,':host([dir="$1"])'),t=t.replace(za,':host([dir="$2"]) $1'),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&($a&&$a.takeRecords().length&&Ga(),Ha.push(this),Va(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=Ha.indexOf(this))&&Ha.splice(e,1)}}return t.__activateDir=!1,t});let Xa=!1,Ja=[],Za=[];function Ka(){Xa=!0,requestAnimationFrame(function(){Xa=!1,function(e){for(;e.length;)Qa(e.shift())}(Ja),setTimeout(function(){!function(n){for(let e=0,t=n.length;e<t;e++)Qa(n.shift())}(Za)})})}function Qa(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function el(e,t,n){Xa||Ka(),Za.push([e,t,n])}function tl(){document.body.removeAttribute("unresolved")}function nl(e,t,n){return{index:e,removed:t,addedCount:n}}function rl(e,t){return function(e,t,c,n,r,h){let i,s=0,o=0,a=Math.min(c-t,h-r);if(0==t&&0==r&&(s=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(e,n,a)),c==e.length&&h==n.length&&(o=function(e,t,n){let r=e.length,i=t.length,s=0;for(;s<n&&e[--r]===t[--i];)s++;return s}(e,n,a-s)),r+=s,h-=o,(c-=o)-(t+=s)==0&&h-r==0)return[];if(t==c){for(i=nl(t,[],0);r<h;)i.removed.push(n[r++]);return[i]}if(r==h)return[nl(t,[],c-t)];var l=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?0!=n?(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(0):(i.push(1),r=s),t--,n--):r=l==o?(i.push(3),t--,o):(i.push(2),n--,a)):(i.push(3),t--):(i.push(2),n--)}return i.reverse(),i}(function(n,r,i,s){let o=h-s+1,a=c-r+1,l=new Array(o);for(let e=0;e<o;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let t=1;t<o;t++)for(let e=1;e<a;e++){var u,d;n[r+e-1]===i[s+t-1]?l[t][e]=l[t-1][e-1]:(u=l[t-1][e]+1,d=l[t][e-1]+1,l[t][e]=u<d?u:d)}return l}(e,t,n,r));i=void 0;let u=[],d=t,p=r;for(let e=0;e<l.length;e++)switch(l[e]){case 0:i&&(u.push(i),i=void 0),d++,p++;break;case 1:i=i||nl(d,[],0),i.addedCount++,d++,i.removed.push(n[p]),p++;break;case 2:i=i||nl(d,[],0),i.addedCount++,d++;break;case 3:i=i||nl(d,[],0),i.removed.push(n[p]),p++}return i&&u.push(i),u}(e,0,e.length,t,0,t.length)}function il(e){return"slot"===e.localName}"interactive"===document.readyState||"complete"===document.readyState?tl():window.addEventListener("DOMContentLoaded",tl);let sl=class{static getFlattenedNodes(e){const t=Ri(e);return il(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>il(e)?Ri(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(){il(this._target)?this._listenSlots([this._target]):Ri(this._target).children&&(this._listenSlots(Ri(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(){il(this._target)?this._unlistenSlots([this._target]):Ri(this._target).children&&(this._unlistenSlots(Ri(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,ss.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;let r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=rl(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(n){for(let t=0;t<n.length;t++){let e=n[t];il(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];il(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};const ol=Element.prototype,al=ol.matches||ol.matchesSelector||ol.mozMatchesSelector||ol.msMatchesSelector||ol.oMatchesSelector||ol.webkitMatchesSelector,ll=function(e,t){return al.call(e,t)};class ul{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new sl(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(Ri(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=Ri(t).parentNode||Ri(t).host;return t===this.node}getOwnerRoot(){return Ri(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Ri(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=Ri(this.node).assignedSlot;for(;t;)e.push(t),t=Ri(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return Ri(n).importNode(e,t)}getEffectiveChildNodes(){return sl.getFlattenedNodes(this.node)}queryDistributedElements(r){let i=this.getEffectiveChildNodes(),s=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&ll(e,r)&&s.push(e);return s}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function dl(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 cl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}let hl=ul;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class t extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(ul.prototype).forEach(e=>{"activeElement"!=e&&(t.prototype[e]=ul.prototype[e])}),dl(t.prototype,["classList"]),hl=t,Object.defineProperties(cl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&pl(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(pl(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(n,r){for(let t=0;t<r.length;t++){let e=r[t];n[e]=function(){return this.node[e].apply(this.node,arguments)}}}(ul.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),dl(ul.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(n,r){for(let e=0;e<r.length;e++){let t=r[e];Object.defineProperty(n,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}(ul.prototype,["textContent","innerHTML","className"]);const pl=function(e){if((e=e||document)instanceof hl)return e;if(e instanceof cl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?cl:hl)(e),e.__domApi=t),t},ml=window.ShadyDOM,fl=window.ShadyCSS;function _l(e,t){return Ri(e).getRootNode()===t}const yl="disable-upgrade",gl=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},vl=Ni(e=>{e=Vs(e);let t=gl(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(yl)}_initializeProperties(){this.hasAttribute(yl)?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==yl?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Ri(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),bl="disable-upgrade";let wl=window.ShadyCSS;const Sl=Ni(e=>{const t=Io(Vs(e)),n=Ws?t:qa(t),r=gl(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===bl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;ai&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;ai&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return ai&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(bl)}_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==bl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,Ri(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){if(Qr&&this.hasAttribute(bl))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),ai&&!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;let r=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});r.detail=t;n=n.node||this;return Ri(n).dispatchEvent(r),r}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;let r=this.__boundListeners&&this.__boundListeners.get(e),i=t+n,s=r&&r[i];s&&(this._removeEventListenerFromNode(e,t,s),r[i]=null)}setScrollDirection(e,t){To(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=Ri(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=pl(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return pl(this).getEffectiveChildNodes()}queryDistributedElements(e){return pl(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){let 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?pl(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&Ri(this).contains(e)&&Ri(this).getRootNode()===Ri(e).getRootNode()}isLocalDescendant(e){return this.root===Ri(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!ml||!fl)return null;if(!ml.handlesDynamicScoping)return null;const i=fl.ScopingShim;if(!i)return null;const s=i.scopeForNode(e),o=Ri(e).getRootNode(),a=e=>{if(_l(e,o)){const r=Array.from(ml.nativeMethods.querySelectorAll.call(e,"*"));r.push(e);for(let e=0;e<r.length;e++){var t,n=r[e];_l(n,o)&&((t=i.currentScopeForNode(n))!==s&&(""!==t&&i.unscopeNode(n,t),i.scopeNode(n,s)))}}};if(a(e),t){const t=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 t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return wl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=qs.debounce(this._debouncers[e],0<n?ns.after(n):ss,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return 0<t?ns.run(e.bind(this),t):~ss.run(e.bind(this))}cancelAsync(e){e<0?ss.cancel(~e):ns.cancel(e)}create(e,t){let 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 ll(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(Ri(n).setAttribute(e,""),!0):(Ri(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(n=e.indexOf(t),0<=n)return e.splice(n,1)}else if(n=$i(this,e).indexOf(t),0<=n)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}),xl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Cl={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},El=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Cl);function Tl(e,t,n,r){for(var i in!function(t,n,r){var i=t._noAccessors,s=Object.getOwnPropertyNames(t);for(let e=0;e<s.length;e++){var o=s[e];if(!(o in r))if(i)n[o]=t[o];else{let e=Object.getOwnPropertyDescriptor(t,o);e&&(e.configurable=!0,Object.defineProperty(n,o,e))}}}(t,e,r),xl)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Al(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 Pl=Sl(HTMLElement);function Dl(r,t,n){let i;const s={};class o extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)(e=i[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){var t={};if(i)for(let e=0;e<i.length;e++)Al(t,i[e].properties);return Al(t,r.properties),t}static get observers(){let n=[];if(i)for(let e,t=0;t<i.length;t++)(e=i[t]).observers&&(n=n.concat(e.observers));return r.observers&&(n=n.concat(r.observers)),n}created(){super.created();const t=s.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){const e=o.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),Qr&&a(e);var n=Object.getPrototypeOf(this);let t=s.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=s.registered,t)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=s.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=s.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();let t=s.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();let t=s.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();let t=s.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();let i=s.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}if(n){Array.isArray(n)||(n=[n]);let e=t.prototype.behaviors;i=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}(n,null,e),o.prototype.behaviors=e?e.concat(n):i}const a=e=>{i&&function(t,n,r){for(let e=0;e<n.length;e++)Tl(t,n[e],r,El)}(e,i,s),Tl(e,r,s,Cl)};return Qr||a(o.prototype),o.generatedFrom=r,o}const kl=function(e){let t;return t="function"==typeof e?e:kl.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};function Ol(e,t,n,r,i){let s;i&&(s="object"==typeof n&&null!==n,s&&(r=e.__dataTemp[t]));r=r!==n&&(r==r||n==n);return s&&r&&(e.__dataTemp[t]=n),r}kl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let n=t?t(Pl):Pl;return n=Dl(e,n,e.behaviors),n.is=n.prototype.is=e.is,n};const Ml=Ni(e=>class extends e{_shouldPropertyChange(e,t,n){return Ol(this,e,t,n,!0)}}),Il=Ni(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Ol(this,e,t,n,this.mutableData)}});Ml._mutablePropertyChange=Ol;let Nl=null;function Rl(){return Nl}Rl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Rl,writable:!0}});const Ll=Hs(Rl),Fl=Ml(Ll);function Bl(n,r){for(let t=0;t<r.length;t++){let e=r[t];if(Boolean(n)!=Boolean(e.__hideTemplateChildren__))if(e.nodeType===Node.TEXT_NODE)n?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if("slot"===e.localName)if(n)e.__polymerReplaced__=document.createComment("hidden-slot"),Ri(Ri(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{const n=e.__polymerReplaced__;n&&Ri(Ri(n).parentNode).replaceChild(e,n)}else e.style&&(n?(e.__polymerDisplay__=e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=n,e._showHideChildren&&e._showHideChildren(n)}}class zl extends Hs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let 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(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,e=>{e.model=this,r(e)});else{let e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(t,n,r)}}_showHideChildren(e){Bl(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;e=e.__dataHost.__dataHost,(t=e.__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Yl=Ml(zl);function Ul(e){e=e.__dataHost;return e&&e._methodHost||e}function Hl(e,t,n){let r=n.mutableData?Yl:zl;jl.mixin&&(r=jl.mixin(r));var i=class extends r{};return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(e),function(e,t,n,r){let i=n.hostProps||{};for(var s in r.instanceProps){delete i[s];var o=r.notifyInstanceProp;o&&e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((s,o))})}if(r.forwardHostProp&&t.__dataHost)for(var a in i)n.hasHostProps||(n.hasHostProps=!0),e.prototype._addPropertyEffect(a,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}(i,e,t,n),i}function $l(n,s,r,o){var e=r.forwardHostProp;if(e&&s.hasHostProps){var i,a="template"==n.localName;let t=s.templatizeTemplateClass;if(!t){if(a){class e extends(r.mutableData?Fl:Ll){}t=s.templatizeTemplateClass=e}else{const r=n.constructor;class e extends r{}t=s.templatizeTemplateClass=e}for(i in s.hostProps)t.prototype._addPropertyEffect("_host_"+i,t.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring("_host_".length),n[t])}}((i,e))}),t.prototype._createNotifyingProperty("_host_"+i);ei&&o&&function(t){const n=o.constructor._properties,{propertyEffects:e}=s,{instanceProps:r}=t;for(var i in e)if(!(n[i]||r&&r[i])){const t=e[i];for(let e=0;e<t.length;e++){const{part:n}=t[e].info;if(!n.signature||!n.signature.static){console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),a)a=t,Nl=n,Object.setPrototypeOf(n,a.prototype),new a,Nl=null,n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,t.prototype);const r=s.hostProps;for(var l in r)if(l="_host_"+l,l in n){const r=n[l];delete n[l],n.__data[l]=r}}}}function jl(e,t,n){if(Zr&&!Ul(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:zl)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=Hl(e,r,n),r.templatizeInstanceClass=i);var s=Ul(e);$l(e,r,n,s);n=class extends i{};return n.prototype._methodHost=s,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let Wl=!1;function Vl(){if(Qr&&!Vr){if(!Wl){Wl=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return 1}}Fa=Io(Il(Hs(HTMLElement)));customElements.define("dom-bind",class extends Fa{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Zr)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(){Vl()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Ri(Ri(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"),!t){let e=new MutationObserver(()=>{if(t=this.querySelector("template"),!t)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}))}});class Gl extends Il(Gs){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:!oi,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)}connectedCallback(){if(super.connectedCallback(),Vl()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=Ri(Ri(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t)}}__ensureTemplatized(){if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){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}let e={};e[this.as]=!0,e[this.indexAs]=!0,e[this.itemsIndexAs]=!0,this.__ctor=jl(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,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)||Bi(r,i)||zi(r,i))&&(e=e[this.itemsIndexAs],t==this.as&&(this.items[e]=n),t=Yi(this.as,`${JSCompiler_renameProperty("items",this)}.${e}`,t),this.notifyPath(t,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=qs.debounce(this.__renderDebouncer,0<t?ns.after(t):ss,e.bind(this)),Js(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Bo()}__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.__continueChunking())),this._setRenderedItemCount(this.__instances.length),oi&&!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(r,e,i){const s=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],t=i[o],n=r[t];s[t]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,t),e._flushProperties()):this.__insertInstance(n,o,t)}for(let e=this.__instances.length-1;e>=o;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e];const n=Ri(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){let 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 Ri(Ri(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(n,r){let i=n.slice(6),s=i.indexOf("."),o=s<0?i:i.substring(0,s);if(o==parseInt(o,10)){n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let e=this.__itemsIdxToInstIdx[o],t=this.__instances[e];return t&&(n=this.as+(n?"."+n:""),t._setPendingPropertyOrPath(n,r,!1,!0),t._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){return function(e,t){for(var n;t;)if(n=t.__dataHost?t:t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=Ri(t).parentNode;return null}(this.template,e)}}customElements.define(Gl.is,Gl);class ql extends Gs{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=qs.debounce(this.__renderDebouncer,ss,()=>this.__render()),Js(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=Ri(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Ri(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Vl()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:Ri(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!Ri(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=Ri(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&Ri(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)Ri(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){Bo()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),oi&&!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(){}}Fa=si?class extends ql{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(Zr&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const 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=Fi(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),Ri(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const 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&&Bl(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends ql{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=jl(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[Fi(e)]=!0))}})),this.__instance=new this.__ctor,Ri(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var r=this.__instance.children;if(r&&r.length){let n=Ri(r[0]).parentNode;if(n){n=Ri(n);for(let e,t=0;t<r.length&&(e=r[t]);t++)n.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(Fa.is,Fa);class Xl extends Ni(e=>{return class extends Vs(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){let n=t.path;if(n==JSCompiler_renameProperty("items",this)){var r=t.base||[],i=this.__lastItems;e!==this.__lastMulti&&this.clearSelection(),i&&(i=rl(r,i),this.__applySplices(i)),this.__lastItems=r,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=n.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__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){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.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)}}})(Gs){static get is(){return"array-selector"}static get template(){return null}}customElements.define(Xl.is,Xl),Sl(HTMLElement).prototype,kl({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 Jl=Element.prototype,Zl=Jl.matches||Jl.matchesSelector||Jl.mozMatchesSelector||Jl.msMatchesSelector||Jl.oMatchesSelector||Jl.webkitMatchesSelector;let Kl=0;const Ql={};class eu extends Ro(jo(Gs)){static get template(){return Oi`
|
|
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 sl(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){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);var t;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(),el(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 eu&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===eu.__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"),eu.__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);const e=eu.__attachedInstances;let t;for(;(t=e.pop())&&(t===this||(t.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),t.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,e){this._removeOldContent(),t._Templatizer||(t._Templatizer=jl(t,this,{instanceProps:e,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const 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+=t._getStyleRules().parsedCssText,e+="}")}if(e=e.replace(/:host/g,":host-nomatch"),e)if(t){const t=(e=>{e=Ql[e]||(e=>{Kl++;const t=`vaadin-overlay-content-${Kl}`,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),Ql[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;this._oldModel=r,this._oldOwner=n;var a=this._oldInstanceProps!==i||this._oldTemplate!==e;this._oldInstanceProps=i,this._oldTemplate=e;r=this._oldRenderer!==t;this._oldRenderer=t;n=this._oldOpened!==s;if(this._oldOpened=s,e&&a)this._stampOverlayTemplate(e,i);else if(t&&(r||n||o)){if(this.content=this,r)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){const 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 class{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return Zl.call(e,"input, select, textarea, button, object")?Zl.call(e,":not([disabled])"):Zl.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&Zl.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){if(this.isFocusable(e)){e=e.getAttribute("tabindex")||0;return Number(e)}return-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;const n=e,r=this._normalizedTabIndex(n);let i,s=0<r;if(0<=r&&t.push(n),i="slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children)for(let e=0;e<i.length;e++)s=this._collectTabbableNodes(i[e],t)||s;return s}static _isVisible(e){let t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&(t=window.getComputedStyle(e),"hidden"!==t.visibility&&"none"!==t.display)}static _sortByTabIndex(e){var t=e.length;if(t<2)return e;var n=Math.ceil(t/2),t=this._sortByTabIndex(e.slice(0,n)),n=this._sortByTabIndex(e.slice(n));return this._mergeSortByTabIndex(t,n)}static _mergeSortByTabIndex(e,t){const n=[];for(;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}}.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=eu.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(eu.is,eu);class tu extends vl(eu){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(tu.is,tu);var nu={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},ru={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:"*"},iu={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},su=/[a-z0-9*]/,ou=/U\+/,au=/^arrow/,lu=/^space(bar)?/,uu=/^escape$/;function cu(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||lu.test(e)?n="space":uu.test(e)?n="esc":1==e.length?t&&!su.test(e)||(n=e):n=au.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function du(e,t){return n=t,r=e.hasModifiers,(n.key?cu(n.key,r):n.detail&&n.detail.key?cu(n.detail.key,r):(i="",(i=(r=n.keyIdentifier)?r in nu?nu[r]:ou.test(r)?(r=parseInt(r.replace("U+","0x"),16),String.fromCharCode(r).toLowerCase()):r.toLowerCase():i)||(i=n.keyCode,n="",n=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):ru[i]:n)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}function hu(e){return e.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var n=t.split(":"),t=n[0],n=n[1];return t in iu?(e[iu[t]]=!0,e.hasModifiers=!0):(e.key=t,e.event=n||"keydown"),e},{combo:e.split(":").shift()})})}Boolean;const pu=function(e,t){for(var n=hu(t),r=0;r<n.length;++r)if(du(n[r],e))return!0;return!1},mu=kl({_template:Oi`
|
|
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 sl(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){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);var t;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(),el(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 eu&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===eu.__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"),eu.__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);const e=eu.__attachedInstances;let t;for(;(t=e.pop())&&(t===this||(t.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),t.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,e){this._removeOldContent(),t._Templatizer||(t._Templatizer=jl(t,this,{instanceProps:e,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const 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+=t._getStyleRules().parsedCssText,e+="}")}if(e=e.replace(/:host/g,":host-nomatch"),e)if(t){const t=(e=>{e=Ql[e]||(e=>{Kl++;const t=`vaadin-overlay-content-${Kl}`,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),Ql[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;this._oldModel=r,this._oldOwner=n;var a=this._oldInstanceProps!==i||this._oldTemplate!==e;this._oldInstanceProps=i,this._oldTemplate=e;r=this._oldRenderer!==t;this._oldRenderer=t;n=this._oldOpened!==s;if(this._oldOpened=s,e&&a)this._stampOverlayTemplate(e,i);else if(t&&(r||n||o)){if(this.content=this,r)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){const 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 class{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return Zl.call(e,"input, select, textarea, button, object")?Zl.call(e,":not([disabled])"):Zl.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&Zl.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){if(this.isFocusable(e)){e=e.getAttribute("tabindex")||0;return Number(e)}return-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;const n=e,r=this._normalizedTabIndex(n);let i,s=0<r;if(0<=r&&t.push(n),i="slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children)for(let e=0;e<i.length;e++)s=this._collectTabbableNodes(i[e],t)||s;return s}static _isVisible(e){let t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&(t=window.getComputedStyle(e),"hidden"!==t.visibility&&"none"!==t.display)}static _sortByTabIndex(e){var t=e.length;if(t<2)return e;var n=Math.ceil(t/2),t=this._sortByTabIndex(e.slice(0,n)),n=this._sortByTabIndex(e.slice(n));return this._mergeSortByTabIndex(t,n)}static _mergeSortByTabIndex(e,t){const n=[];for(;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}}.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=eu.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(eu.is,eu);class tu extends vl(eu){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(tu.is,tu);var nu={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},ru={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:"*"},iu={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},su=/[a-z0-9*]/,ou=/U\+/,au=/^arrow/,lu=/^space(bar)?/,uu=/^escape$/;function du(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||lu.test(e)?n="space":uu.test(e)?n="esc":1==e.length?t&&!su.test(e)||(n=e):n=au.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function cu(e,t){return n=t,r=e.hasModifiers,(n.key?du(n.key,r):n.detail&&n.detail.key?du(n.detail.key,r):(i="",(i=(r=n.keyIdentifier)?r in nu?nu[r]:ou.test(r)?(r=parseInt(r.replace("U+","0x"),16),String.fromCharCode(r).toLowerCase()):r.toLowerCase():i)||(i=n.keyCode,n="",n=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):ru[i]:n)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}function hu(e){return e.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var n=t.split(":"),t=n[0],n=n[1];return t in iu?(e[iu[t]]=!0,e.hasModifiers=!0):(e.key=t,e.event=n||"keydown"),e},{combo:e.split(":").shift()})})}Boolean;const pu=function(e,t){for(var n=hu(t),r=0;r<n.length;++r)if(cu(n[r],e))return!0;return!1},mu=kl({_template:Oi`
|
|
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(){mu.instance||(mu.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)}});mu.instance=null,mu.requestAvailability=function(){mu.instance||(mu.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(mu.instance):document.addEventListener("load",function(){document.body.appendChild(mu.instance)})};const fu=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);t.setFullYear(e.getFullYear());t=e.getTime()-t.getTime(),t=Math.round(t/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 _u extends
|
|
1361
|
+
`,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){mu.instance||(mu.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)}});mu.instance=null,mu.requestAvailability=function(){mu.instance||(mu.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(mu.instance):document.addEventListener("load",function(){document.body.appendChild(mu.instance)})};const fu=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);t.setFullYear(e.getFullYear());t=e.getTime()-t.getTime(),t=Math.round(t/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 _u extends Ro(Io(Gs)){static get template(){return Oi`
|
|
1362
1362
|
<style>
|
|
1363
1363
|
:host {
|
|
1364
1364
|
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=jl(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||(((e=this.$.scroller.scrollTop)<this._bufferHeight||e>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),n=this.root.querySelector(".buffer").offsetTop,t=e>this._buffers[1].translateY+this.itemHeight+n,n=e<this._buffers[0].translateY+this.itemHeight+n,(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=qs.debounce(this._debouncerScrollFinish,ns.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=qs.debounce(this._debouncerUpdateClones,ns.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={};const n="vaadin-infinite-scroller-item-content-"+(yu._contentIndex=yu._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",n),r._itemWrapper=t,e.appendChild(r),t.setAttribute("slot",n),this.appendChild(t),
|
|
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=jl(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||(((e=this.$.scroller.scrollTop)<this._bufferHeight||e>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),n=this.root.querySelector(".buffer").offsetTop,t=e>this._buffers[1].translateY+this.itemHeight+n,n=e<this._buffers[0].translateY+this.itemHeight+n,(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=qs.debounce(this._debouncerScrollFinish,ns.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=qs.debounce(this._debouncerUpdateClones,ns.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={};const n="vaadin-infinite-scroller-item-content-"+(yu._contentIndex=yu._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",n),r._itemWrapper=t,e.appendChild(r),t.setAttribute("slot",n),this.appendChild(t),Bo(),setTimeout(()=>{this._isVisible(t,i)&&this._ensureStampedInstance(t)},1)}},this),setTimeout(()=>{el(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(i){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;var s=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{var r;e.updated||(r=this._firstIndex+this.bufferSize*t,[].forEach.call(e.children,(e,t)=>{const n=e._itemWrapper;i&&!this._isVisible(n,s)||(n.instance.index=r+t)}),e.updated=!0)},this)}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}customElements.define(yu.is,yu);const gu=document.createElement("template");gu.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(gu.content);class vu extends Ro(No(Io(Gs))){static get template(){return Oi`
|
|
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)),xo(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),Ao(this.$.scrollers,"pan-y"),mu.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];fu._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(fu._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&&(t=this._differenceInMonths(e,this._originDate),n=this.$.monthScroller.position>t,r=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,e=this.$.monthScroller.position+r-1<t,n?this._scrollToPosition(t,!0):e&&this._scrollToPosition(t-r+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=qs.debounce(this._debouncer,ns.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(fu._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){if(void 0===this._targetPosition){if(!t)return this.$.monthScroller.position=e,this._targetPosition=void 0,void this._repositionYearScroller();this._targetPosition=e;var n=t?300:0,r=0,i=this.$.monthScroller.position,s=e=>{var t=e-(r=r||e);t<n?(e=t,t=this._targetPosition-i,e=(e/=n/2)<1?t/2*e*e+i:-t/2*(--e*(e-2)-1)+i,this.$.monthScroller.position=e,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)}else 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(){const e=this.getRootNode().host,t=e?e.getRootNode().host:null;t&&(t.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(pu(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,fu._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(fu._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);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e);var r=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(vu.is,vu);var bu,wu=new Set;const Su={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):(wu.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():Vr||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=pl(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):(wu.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?wu.delete(this):wu.add(this)}};class xu extends Ko(Fo(Lo(No((bu=Io(Gs),class extends function(e,t){return Dl({},Sl(t),e)}([Su],bu){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=>{const t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{const t=e.split("/"),n=new Date;let r,i=n.getMonth(),s=n.getFullYear();if(3===t.length?(s=parseInt(t[2]),t[2].length<3&&0<=s&&(s+=s<50?2e3:1900),i=parseInt(t[0])-1,r=parseInt(t[1])):2===t.length?(i=parseInt(t[0])-1,r=parseInt(t[1])):1===t.length&&(r=parseInt(t[0])),void 0!==r)return{day:r,month:i,year:s}},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),xo(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=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(t){e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}}_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),n=e&&t(fu._extractDateParts(e)),(t=this._formatISO(e))!==this.value&&(this.validate(n),this.value=t),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?n:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(fu._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))?fu._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||(n=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(t=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=t-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),n?(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||fu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=fu._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(fu._extractDateParts(this._selectedDate)),n=!this._selectedDate||fu._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(pu(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=!fu._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,fu._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 Oi`
|
|
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)),xo(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),To(this.$.scrollers,"pan-y"),mu.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];fu._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(fu._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&&(t=this._differenceInMonths(e,this._originDate),n=this.$.monthScroller.position>t,r=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,e=this.$.monthScroller.position+r-1<t,n?this._scrollToPosition(t,!0):e&&this._scrollToPosition(t-r+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=qs.debounce(this._debouncer,ns.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(fu._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){if(void 0===this._targetPosition){if(!t)return this.$.monthScroller.position=e,this._targetPosition=void 0,void this._repositionYearScroller();this._targetPosition=e;var n=t?300:0,r=0,i=this.$.monthScroller.position,s=e=>{var t=e-(r=r||e);t<n?(e=t,t=this._targetPosition-i,e=(e/=n/2)<1?t/2*e*e+i:-t/2*(--e*(e-2)-1)+i,this.$.monthScroller.position=e,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)}else 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(){const e=this.getRootNode().host,t=e?e.getRootNode().host:null;t&&(t.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(pu(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,fu._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(fu._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);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e);var r=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(vu.is,vu);var bu,wu=new Set;const Su={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):(wu.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():Vr||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=pl(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):(wu.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?wu.delete(this):wu.add(this)}};class xu extends Ko(Fo(Ro(No((bu=Io(Gs),class extends function(e,t){return Dl({},Sl(t),e)}([Su],bu){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=>{const t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{const t=e.split("/"),n=new Date;let r,i=n.getMonth(),s=n.getFullYear();if(3===t.length?(s=parseInt(t[2]),t[2].length<3&&0<=s&&(s+=s<50?2e3:1900),i=parseInt(t[0])-1,r=parseInt(t[1])):2===t.length?(i=parseInt(t[0])-1,r=parseInt(t[1])):1===t.length&&(r=parseInt(t[0])),void 0!==r)return{day:r,month:i,year:s}},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),xo(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=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(t){e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}}_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),n=e&&t(fu._extractDateParts(e)),(t=this._formatISO(e))!==this.value&&(this.validate(n),this.value=t),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?n:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(fu._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))?fu._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||(n=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(t=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=t-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),n?(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||fu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=fu._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(fu._extractDateParts(this._selectedDate)),n=!this._selectedDate||fu._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(pu(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=!fu._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,fu._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 Oi`
|
|
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(),el(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)}}customElements.define(xu.is,xu);const Cu={en:{bonusHistory:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter:",noBonusHistory:"You have no bonuses at the moment."}},ro:{bonusHistory:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai niciun istoric de bonusuri în acest moment."}}};function Eu(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Au(e,t,n){const r=e.slice();return r[37]=t[n],r}function Tu(t){let i,s=t[10],o=[];for(let e=0;e<s.length;e+=1)o[e]=Ou(Au(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=a()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);H(t,i,n)},p(t,n){if(1025&n[0]){let e;for(s=t[10],e=0;e<s.length;e+=1){var r=Au(t,s,e);o[e]?o[e].p(r,n):(o[e]=Ou(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){C(o,e),e&&$(i)}}}function Pu(e){let n,r,i=e[11]("bonusHistory.noBonusHistory")+"";return{c(){n=t("p"),r=j(i)},m(e,t){H(e,n,t),U(n,r)},p(e,t){2048&t[0]&&i!==(i=e[11]("bonusHistory.noBonusHistory")+"")&&q(r,i)},d(e){e&&$(n)}}}function Du(e){let n,r,i,s,o,a,l,u,c,d;return{c(){n=t("player-bonus-card"),G(n,"bonuswalletid",r=e[37].walletId),G(n,"bonusdate",i=e[37].granted),G(n,"bonusstatus",s=e[37].status),G(n,"bonusname",o=e[37].name),G(n,"bonustype",a=e[37].type),G(n,"bonusamount",l=e[37].grantedAmount),G(n,"bonuswageringamount",u=e[37].totalWR),G(n,"bonusremainingamount",c=e[37].currentAmount),G(n,"bonuscurrency",d=e[37].currency),G(n,"lang",e[0])},m(e,t){H(e,n,t)},p(e,t){1024&t[0]&&r!==(r=e[37].walletId)&&G(n,"bonuswalletid",r),1024&t[0]&&i!==(i=e[37].granted)&&G(n,"bonusdate",i),1024&t[0]&&s!==(s=e[37].status)&&G(n,"bonusstatus",s),1024&t[0]&&o!==(o=e[37].name)&&G(n,"bonusname",o),1024&t[0]&&a!==(a=e[37].type)&&G(n,"bonustype",a),1024&t[0]&&l!==(l=e[37].grantedAmount)&&G(n,"bonusamount",l),1024&t[0]&&u!==(u=e[37].totalWR)&&G(n,"bonuswageringamount",u),1024&t[0]&&c!==(c=e[37].currentAmount)&&G(n,"bonusremainingamount",c),1024&t[0]&&d!==(d=e[37].currency)&&G(n,"bonuscurrency",d),1&t[0]&&G(n,"lang",e[0])},d(e){e&&$(n)}}}function ku(e){let n,r,i,s,o,a,l;return{c(){n=t("player-bonus-card"),G(n,"bonuswalletid",r=e[37].walletId),G(n,"bonusdate",i=e[37].granted),G(n,"bonusstatus",s=e[37].status),G(n,"bonusname",o=e[37].name),G(n,"bonustype",a=e[37].type),G(n,"bonuscurrency",l=e[37].currency),G(n,"lang",e[0])},m(e,t){H(e,n,t)},p(e,t){1024&t[0]&&r!==(r=e[37].walletId)&&G(n,"bonuswalletid",r),1024&t[0]&&i!==(i=e[37].granted)&&G(n,"bonusdate",i),1024&t[0]&&s!==(s=e[37].status)&&G(n,"bonusstatus",s),1024&t[0]&&o!==(o=e[37].name)&&G(n,"bonusname",o),1024&t[0]&&a!==(a=e[37].type)&&G(n,"bonustype",a),1024&t[0]&&l!==(l=e[37].currency)&&G(n,"bonuscurrency",l),1&t[0]&&G(n,"lang",e[0])},d(e){e&&$(n)}}}function Ou(e){let n;function r(e){return"freeRound"===e[37].type?ku:Du}let i=r(e),s=i(e);return{c(){s.c(),n=a()},m(e,t){s.m(e,t),H(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&$(n)}}}function Mu(n){let i,s,r,e,o,a,l,u,c,d,h,p,m,f,_,y,g,v,b,w=Array(n[8]),S=[];for(let e=0;e<w.length;e+=1)S[e]=Iu(Eu(n,w,e));return{c(){i=t("div"),s=t("span"),r=j("|<"),o=W(),a=t("span"),l=j("<"),c=W();for(let e=0;e<S.length;e+=1)S[e].c();d=W(),h=t("span"),p=j(">"),f=W(),_=t("span"),y=j(">|"),V(s,"class",e="BonusesFirst "+(0===n[9]?"Inactive":"")),V(a,"class",u="BonusesPrev "+(0===n[9]?"Inactive":"")),V(h,"class",m="BonusesNext "+(n[9]===n[8]-1?"Inactive":"")),V(_,"class",g="BonusesLast "+(n[9]===n[8]-1?"Inactive":"")),V(i,"class","BonusesPaginationWrapper "+(n[12]?"BonusesPaginationWrapperMobile":""))},m(e,t){H(e,i,t),U(i,s),U(s,r),U(i,o),U(i,a),U(a,l),U(i,c);for(let e=0;e<S.length;e+=1)S[e].m(i,null);U(i,d),U(i,h),U(h,p),U(i,f),U(i,_),U(_,y),v||(b=[B(s,"click",n[22]),B(a,"click",n[23]),B(h,"click",n[25]),B(_,"click",n[26])],v=!0)},p(t,n){if(512&n[0]&&e!==(e="BonusesFirst "+(0===t[9]?"Inactive":""))&&V(s,"class",e),512&n[0]&&u!==(u="BonusesPrev "+(0===t[9]?"Inactive":""))&&V(a,"class",u),17152&n[0]){let e;for(w=Array(t[8]),e=0;e<w.length;e+=1){var r=Eu(t,w,e);S[e]?S[e].p(r,n):(S[e]=Iu(r),S[e].c(),S[e].m(i,d))}for(;e<S.length;e+=1)S[e].d(1);S.length=w.length}768&n[0]&&m!==(m="BonusesNext "+(t[9]===t[8]-1?"Inactive":""))&&V(h,"class",m),768&n[0]&&g!==(g="BonusesLast "+(t[9]===t[8]-1?"Inactive":""))&&V(_,"class",g)},d(e){e&&$(i),C(S,e),v=!1,x(b)}}}function Iu(n){let r,i,s,o,a,e=n[36]+1+"";function l(){return n[24](n[36])}return{c(){r=t("span"),i=j(e),V(r,"class",s="BonusesPage "+(n[36]===n[9]?"BonusPageActive":""))},m(e,t){H(e,r,t),U(r,i),o||(a=B(r,"click",l),o=!0)},p(e,t){n=e,512&t[0]&&s!==(s="BonusesPage "+(n[36]===n[9]?"BonusPageActive":""))&&V(r,"class",s)},d(e){e&&$(r),o=!1,a()}}}function Nu(e){let n,r=function(n){let r,i,s,o,a,l,u,c,d,h,p,m,f,_,y,g,v,b,w,S,x,C,E,A,T,P,D=n[11]("bonusHistory.title")+"",k=n[11]("bonusHistory.dateFrom")+"",O=n[11]("bonusHistory.dateTo")+"",M=n[11]("bonusHistory.dateFilter")+"",I=n[12]&&function(n){let r,i,s,o,a,l,u,c,d,h,p,m,f,_=n[11]("bonusHistory.title")+"";return{c(){r=t("div"),i=z("svg"),s=z("defs"),o=z("style"),a=j(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=z("g"),u=z("g"),c=z("path"),d=W(),h=t("h2"),p=j(_),V(c,"class","aaa"),V(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),V(c,"transform","translate(15 15) rotate(180)"),V(u,"transform","translate(20 158)"),V(l,"transform","translate(-20 -158)"),V(i,"xmlns","http://www.w3.org/2000/svg"),V(i,"width","15"),V(i,"height","15"),V(i,"viewBox","0 0 15 15"),V(h,"class","BonusesTitleMobile"),V(r,"class","MenuReturnButton")},m(e,t){H(e,r,t),U(r,i),U(i,s),U(s,o),U(o,a),U(i,l),U(l,u),U(u,c),U(r,d),U(r,h),U(h,p),m||(f=B(r,"click",n[18]),m=!0)},p(e,t){2048&t[0]&&_!==(_=e[11]("bonusHistory.title")+"")&&q(p,_)},d(e){e&&$(r),m=!1,f()}}}(n);function N(e){return 0===e[10].length?Pu:Tu}let L=N(n),R=L(n),F=0!==n[10].length&&Mu(n);return{c(){r=t("div"),I&&I.c(),i=W(),s=t("h2"),o=j(D),a=W(),l=t("div"),u=t("div"),c=t("div"),d=t("label"),h=j(k),p=W(),m=t("vaadin-date-picker"),f=W(),_=t("div"),y=t("label"),g=j(O),v=W(),b=t("vaadin-date-picker"),w=W(),S=t("button"),x=j(M),C=W(),E=t("div"),R.c(),A=W(),F&&F.c(),V(s,"class","BonusesTitle "+(n[12]?"BonusesTitleNone":"")),V(d,"for","BonusCalendarStartDate"),G(m,"max",n[3]),G(m,"value",n[4]),G(m,"placeholder","From"),G(m,"class","VaadinDatePicker"),V(c,"class","BonusesCalendarStartDate "+(n[12]?"BonusesCalendarMobile":"")),V(y,"for","BonusesCalendarEndDate"),G(b,"max",n[3]),G(b,"value",n[3]),G(b,"placeholder","To"),G(b,"class","VaadinDatePicker"),V(_,"class","BonusesCalendarEndDate "+(n[12]?"BonusesCalendarMobile":"")),V(u,"class","BonusesCalendarContainer "+(n[12]?"BonusesCalendarContainerMobile":"")),V(S,"class","BonusesCalendarFilter "+(n[12]?"BonusesCalendarFilterMobile":"")),V(l,"class","BonusCalendarWrapper "+(n[12]?"BonusCalendarWrapperMobile":"")),V(E,"class","BonusesGrid "+(n[12]?"BonusesGridMobile":"")),V(r,"class","BonusesWrapper "+(n[12]?"BonusesWrapperMobile":""))},m(e,t){H(e,r,t),I&&I.m(r,null),U(r,i),U(r,s),U(s,o),U(r,a),U(r,l),U(l,u),U(u,c),U(c,d),U(d,h),U(c,p),U(c,m),n[19](m),U(u,f),U(u,_),U(_,y),U(y,g),U(_,v),U(_,b),n[20](b),U(l,w),U(l,S),U(S,x),U(r,C),U(r,E),R.m(E,null),U(r,A),F&&F.m(r,null),T||(P=B(S,"click",n[21]),T=!0)},p(e,t){e[12]&&I.p(e,t),2048&t[0]&&D!==(D=e[11]("bonusHistory.title")+"")&&q(o,D),2048&t[0]&&k!==(k=e[11]("bonusHistory.dateFrom")+"")&&q(h,k),8&t[0]&&G(m,"max",e[3]),16&t[0]&&G(m,"value",e[4]),2048&t[0]&&O!==(O=e[11]("bonusHistory.dateTo")+"")&&q(g,O),8&t[0]&&G(b,"max",e[3]),8&t[0]&&G(b,"value",e[3]),2048&t[0]&&M!==(M=e[11]("bonusHistory.dateFilter")+"")&&q(x,M),L===(L=N(e))&&R?R.p(e,t):(R.d(1),R=L(e),R&&(R.c(),R.m(E,null))),0!==e[10].length?F?F.p(e,t):(F=Mu(e),F.c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&$(r),I&&I.d(),n[19](null),n[20](null),R.d(),F&&F.d(),T=!1,P()}}}(e);return{c(){r.c(),n=a(),this.c=Y},m(e,t){r.m(e,t),H(e,n,t)},p(e,t){r.p(e,t)},i:Y,o:Y,d(e){r.d(e),e&&$(n)}}}function Lu(t,e,i){let n;A(t,or,e=>i(11,n=e));let r,s,o,a,{endpoint:l=""}=e,{session:u=""}=e,{playerid:c=""}=e,{lang:d="en"}=e,h=window.navigator.userAgent,p="PC"!==ar(h);o=cr(new Date).format("YYYY-MM-DD");let m=a=cr(new Date).subtract(3,"months").format("YYYY-MM-DD"),f=o,_=0,y=0,g=0,v=0,b=0,w=[];Object.keys(Cu).forEach(e=>{Yn(e,Cu[e])});const S=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},x=t=>{let e=new URL(`${l}/player/${c}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=cashback,type=freeround,type=freebet,type=wagering,granted=[${new Date(m).toISOString()}~${new Date(f).toISOString()}]`;e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`);var r={method:"GET",headers:{"X-SessionId":u}};fetch(e.href,r).then(e=>e.json()).then(e=>{i(8,v=Math.ceil(e.total/6)),0<=t-6&&i(5,_=t-6),t+6<e.total&&i(6,y=t+6),i(7,g=6*(v-1)),i(9,b=t/6),i(10,w=e.items)},e=>{console.error(e)})},C=e=>{m=e.target.value},E=e=>{f=e.target.value};e=()=>()=>{r.removeEventListener("change",C),s.removeEventListener("change",E)},function(){if(!T)throw new Error("Function called outside component initialization");return T}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&i(15,l=e.endpoint),"session"in e&&i(16,u=e.session),"playerid"in e&&i(17,c=e.playerid),"lang"in e&&i(0,d=e.lang)},t.$$.update=()=>{var e;1&t.$$.dirty[0]&&d&&(e=d,Jn.set(e)),6&t.$$.dirty[0]&&r&&s&&(r.addEventListener("change",C,!1),s.addEventListener("change",E,!1)),229376&t.$$.dirty[0]&&u&&c&&l&&x(0)},[d,r,s,o,a,_,y,g,v,b,w,n,p,S,x,l,u,c,()=>S(),function(e){P[e?"unshift":"push"](()=>{r=e,i(1,r)})},function(e){P[e?"unshift":"push"](()=>{s=e,i(2,s)})},()=>x(0),()=>x(0),()=>x(_),e=>x(6*e),()=>x(y),()=>x(g)]}class Ru extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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}.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}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Lu,Nu,n,{endpoint:15,session:16,playerid:17,lang:0},[-1,-1]),e&&(e.target&&H(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["endpoint","session","playerid","lang"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$set({endpoint:e}),b()}get session(){return this.$$.ctx[16]}set session(e){this.$set({session:e}),b()}get playerid(){return this.$$.ctx[17]}set playerid(e){this.$set({playerid:e}),b()}get lang(){return this.$$.ctx[0]}set lang(e){this.$set({lang:e}),b()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",Ru),Ru});
|
|
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(),el(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)}}customElements.define(xu.is,xu);const Cu={en:{bonusHistory:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses at the moment."}},ro:{bonusHistory:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai niciun istoric de bonusuri în acest moment."}}};function Eu(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Tu(e,t,n){const r=e.slice();return r[37]=t[n],r}function Au(t){let i,s=t[10],o=[];for(let e=0;e<s.length;e+=1)o[e]=Ou(Tu(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=a()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);$(t,i,n)},p(t,n){if(1025&n[0]){let e;for(s=t[10],e=0;e<s.length;e+=1){var r=Tu(t,s,e);o[e]?o[e].p(r,n):(o[e]=Ou(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){P(o,e),e&&j(i)}}}function Pu(e){let n,r,i=e[11]("bonusHistory.noBonusHistory")+"";return{c(){n=t("p"),r=W(i)},m(e,t){$(e,n,t),H(n,r)},p(e,t){2048&t[0]&&i!==(i=e[11]("bonusHistory.noBonusHistory")+"")&&q(r,i)},d(e){e&&j(n)}}}function Du(e){let n,r,i,s,o,a,l,u,d,c;return{c(){n=t("player-bonus-card"),Y(n,"bonuswalletid",r=e[37].walletId),Y(n,"bonusdate",i=e[37].granted),Y(n,"bonusstatus",s=e[37].status),Y(n,"bonusname",o=e[37].name),Y(n,"bonustype",a=e[37].type),Y(n,"bonusamount",l=e[37].grantedAmount),Y(n,"bonuswageringamount",u=e[37].totalWR),Y(n,"bonusremainingamount",d=e[37].currentAmount),Y(n,"bonuscurrency",c=e[37].currency),Y(n,"lang",e[0])},m(e,t){$(e,n,t)},p(e,t){1024&t[0]&&r!==(r=e[37].walletId)&&Y(n,"bonuswalletid",r),1024&t[0]&&i!==(i=e[37].granted)&&Y(n,"bonusdate",i),1024&t[0]&&s!==(s=e[37].status)&&Y(n,"bonusstatus",s),1024&t[0]&&o!==(o=e[37].name)&&Y(n,"bonusname",o),1024&t[0]&&a!==(a=e[37].type)&&Y(n,"bonustype",a),1024&t[0]&&l!==(l=e[37].grantedAmount)&&Y(n,"bonusamount",l),1024&t[0]&&u!==(u=e[37].totalWR)&&Y(n,"bonuswageringamount",u),1024&t[0]&&d!==(d=e[37].currentAmount)&&Y(n,"bonusremainingamount",d),1024&t[0]&&c!==(c=e[37].currency)&&Y(n,"bonuscurrency",c),1&t[0]&&Y(n,"lang",e[0])},d(e){e&&j(n)}}}function ku(e){let n,r,i,s,o,a,l;return{c(){n=t("player-bonus-card"),Y(n,"bonuswalletid",r=e[37].walletId),Y(n,"bonusdate",i=e[37].granted),Y(n,"bonusstatus",s=e[37].status),Y(n,"bonusname",o=e[37].name),Y(n,"bonustype",a=e[37].type),Y(n,"bonuscurrency",l=e[37].currency),Y(n,"lang",e[0])},m(e,t){$(e,n,t)},p(e,t){1024&t[0]&&r!==(r=e[37].walletId)&&Y(n,"bonuswalletid",r),1024&t[0]&&i!==(i=e[37].granted)&&Y(n,"bonusdate",i),1024&t[0]&&s!==(s=e[37].status)&&Y(n,"bonusstatus",s),1024&t[0]&&o!==(o=e[37].name)&&Y(n,"bonusname",o),1024&t[0]&&a!==(a=e[37].type)&&Y(n,"bonustype",a),1024&t[0]&&l!==(l=e[37].currency)&&Y(n,"bonuscurrency",l),1&t[0]&&Y(n,"lang",e[0])},d(e){e&&j(n)}}}function Ou(e){let n;function r(e){return"freeRound"===e[37].type?ku:Du}let i=r(e),s=i(e);return{c(){s.c(),n=a()},m(e,t){s.m(e,t),$(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),s=i(e),s&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&j(n)}}}function Mu(n){let i,s,r,e,o,a,l,u,d,c,h,p,m,f,_,y,g,v,b,w,S,x,C,E=Array(n[8]),T=[];for(let e=0;e<E.length;e+=1)T[e]=Iu(Eu(n,E,e));return{c(){i=t("div"),s=t("span"),r=W("|<"),a=V(),l=t("span"),u=W("<"),h=V();for(let e=0;e<T.length;e+=1)T[e].c();p=V(),m=t("span"),f=W(">"),g=V(),v=t("span"),b=W(">|"),G(s,"class",e="BonusesFirst "+(0===n[9]?"Inactive":"")),G(s,"part",o="BonusesFirst "+(0===n[9]?"Inactive":"")),G(l,"class",d="BonusesPrev "+(0===n[9]?"Inactive":"")),G(l,"part",c="BonusesPrev "+(0===n[9]?"Inactive":"")),G(m,"class",_="BonusesNext "+(n[9]===n[8]-1?"Inactive":"")),G(m,"part",y="BonusesNext "+(n[9]===n[8]-1?"Inactive":"")),G(v,"class",w="BonusesLast "+(n[9]===n[8]-1?"Inactive":"")),G(v,"part",S="BonusesLast "+(n[9]===n[8]-1?"Inactive":"")),G(i,"class","BonusesPaginationWrapper "+(n[12]?"BonusesPaginationWrapperMobile":"")),G(i,"part","BonusesPaginationWrapper "+(n[12]?"BonusesPaginationWrapperMobile":""))},m(e,t){$(e,i,t),H(i,s),H(s,r),H(i,a),H(i,l),H(l,u),H(i,h);for(let e=0;e<T.length;e+=1)T[e].m(i,null);H(i,p),H(i,m),H(m,f),H(i,g),H(i,v),H(v,b),x||(C=[z(s,"click",n[22]),z(l,"click",n[23]),z(m,"click",n[25]),z(v,"click",n[26])],x=!0)},p(t,n){if(512&n[0]&&e!==(e="BonusesFirst "+(0===t[9]?"Inactive":""))&&G(s,"class",e),512&n[0]&&o!==(o="BonusesFirst "+(0===t[9]?"Inactive":""))&&G(s,"part",o),512&n[0]&&d!==(d="BonusesPrev "+(0===t[9]?"Inactive":""))&&G(l,"class",d),512&n[0]&&c!==(c="BonusesPrev "+(0===t[9]?"Inactive":""))&&G(l,"part",c),17152&n[0]){let e;for(E=Array(t[8]),e=0;e<E.length;e+=1){var r=Eu(t,E,e);T[e]?T[e].p(r,n):(T[e]=Iu(r),T[e].c(),T[e].m(i,p))}for(;e<T.length;e+=1)T[e].d(1);T.length=E.length}768&n[0]&&_!==(_="BonusesNext "+(t[9]===t[8]-1?"Inactive":""))&&G(m,"class",_),768&n[0]&&y!==(y="BonusesNext "+(t[9]===t[8]-1?"Inactive":""))&&G(m,"part",y),768&n[0]&&w!==(w="BonusesLast "+(t[9]===t[8]-1?"Inactive":""))&&G(v,"class",w),768&n[0]&&S!==(S="BonusesLast "+(t[9]===t[8]-1?"Inactive":""))&&G(v,"part",S)},d(e){e&&j(i),P(T,e),x=!1,A(C)}}}function Iu(n){let r,i,s,o,a,l,e=n[36]+1+"";function u(){return n[24](n[36])}return{c(){r=t("span"),i=W(e),G(r,"class",s="BonusesPage "+(n[36]===n[9]?"BonusPageActive":"")),G(r,"part",o="BonusesPage "+(n[36]===n[9]?"BonusPageActive":""))},m(e,t){$(e,r,t),H(r,i),a||(l=z(r,"click",u),a=!0)},p(e,t){n=e,512&t[0]&&s!==(s="BonusesPage "+(n[36]===n[9]?"BonusPageActive":""))&&G(r,"class",s),512&t[0]&&o!==(o="BonusesPage "+(n[36]===n[9]?"BonusPageActive":""))&&G(r,"part",o)},d(e){e&&j(r),a=!1,l()}}}function Nu(e){let n,r=function(n){let r,i,s,o,a,l,u,d,c,h,p,m,f,_,y,g,v,b,w,S,x,C,E,T,A,P,D=n[11]("bonusHistory.title")+"",k=n[11]("bonusHistory.dateFrom")+"",O=n[11]("bonusHistory.dateTo")+"",M=n[11]("bonusHistory.dateFilter")+"",I=n[12]&&function(n){let r,i,s,o,a,l,u,d,c,h,p,m,f,_=n[11]("bonusHistory.title")+"";return{c(){r=t("div"),i=B("svg"),s=B("defs"),o=B("style"),a=W(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=B("g"),u=B("g"),d=B("path"),c=V(),h=t("h2"),p=W(_),G(d,"class","aaa"),G(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),G(d,"transform","translate(15 15) rotate(180)"),G(u,"transform","translate(20 158)"),G(l,"transform","translate(-20 -158)"),G(i,"xmlns","http://www.w3.org/2000/svg"),G(i,"width","15"),G(i,"height","15"),G(i,"viewBox","0 0 15 15"),G(h,"class","BonusesTitleMobile"),G(h,"part","BonusesTitleMobile"),G(r,"class","MenuReturnButton"),G(r,"part","MenuReturnButton")},m(e,t){$(e,r,t),H(r,i),H(i,s),H(s,o),H(o,a),H(i,l),H(l,u),H(u,d),H(r,c),H(r,h),H(h,p),m||(f=z(r,"click",n[18]),m=!0)},p(e,t){2048&t[0]&&_!==(_=e[11]("bonusHistory.title")+"")&&q(p,_)},d(e){e&&j(r),m=!1,f()}}}(n);function N(e){return 0===e[10].length?Pu:Au}let R=N(n),L=R(n),F=0!==n[10].length&&Mu(n);return{c(){r=t("div"),I&&I.c(),i=V(),s=t("h2"),o=W(D),a=V(),l=t("div"),u=t("div"),d=t("div"),c=t("label"),h=W(k),p=V(),m=t("vaadin-date-picker"),f=V(),_=t("div"),y=t("label"),g=W(O),v=V(),b=t("vaadin-date-picker"),w=V(),S=t("button"),x=W(M),C=V(),E=t("div"),L.c(),T=V(),F&&F.c(),G(s,"class","BonusesTitle "+(n[12]?"BonusesTitleNone":"")),G(s,"part","BonusesTitle "+(n[12]?"BonusesTitleNone":"")),G(c,"for","BonusCalendarStartDate"),Y(m,"max",n[3]),Y(m,"value",n[4]),Y(m,"placeholder","From"),Y(m,"class","VaadinDatePicker"),Y(m,"part","VaadinDatePicker"),G(d,"class","BonusesCalendarStartDate "+(n[12]?"BonusesCalendarMobile":"")),G(d,"part","BonusesCalendarStartDate "+(n[12]?"BonusesCalendarMobile":"")),G(y,"for","BonusesCalendarEndDate"),Y(b,"max",n[3]),Y(b,"value",n[3]),Y(b,"placeholder","To"),Y(b,"class","VaadinDatePicker"),Y(b,"part","VaadinDatePicker"),G(_,"class","BonusesCalendarEndDate "+(n[12]?"BonusesCalendarMobile":"")),G(_,"part","BonusesCalendarEndDate "+(n[12]?"BonusesCalendarMobile":"")),G(u,"class","BonusesCalendarContainer "+(n[12]?"BonusesCalendarContainerMobile":"")),G(u,"part","BonusesCalendarContainer "+(n[12]?"BonusesCalendarContainerMobile":"")),G(S,"class","BonusesCalendarFilter "+(n[12]?"BonusesCalendarFilterMobile":"")),G(S,"part","BonusesCalendarFilter "+(n[12]?"BonusesCalendarFilterMobile":"")),G(l,"class","BonusCalendarWrapper "+(n[12]?"BonusCalendarWrapperMobile":"")),G(l,"part","BonusCalendarWrapper "+(n[12]?"BonusCalendarWrapperMobile":"")),G(E,"class","BonusesGrid "+(n[12]?"BonusesGridMobile":"")),G(E,"part","BonusesGrid "+(n[12]?"BonusesGridMobile":"")),G(r,"class","BonusesWrapper "+(n[12]?"BonusesWrapperMobile":"")),G(r,"part","BonusesWrapper "+(n[12]?"BonusesWrapperMobile":""))},m(e,t){$(e,r,t),I&&I.m(r,null),H(r,i),H(r,s),H(s,o),H(r,a),H(r,l),H(l,u),H(u,d),H(d,c),H(c,h),H(d,p),H(d,m),n[19](m),H(u,f),H(u,_),H(_,y),H(y,g),H(_,v),H(_,b),n[20](b),H(l,w),H(l,S),H(S,x),H(r,C),H(r,E),L.m(E,null),H(r,T),F&&F.m(r,null),A||(P=z(S,"click",n[21]),A=!0)},p(e,t){e[12]&&I.p(e,t),2048&t[0]&&D!==(D=e[11]("bonusHistory.title")+"")&&q(o,D),2048&t[0]&&k!==(k=e[11]("bonusHistory.dateFrom")+"")&&q(h,k),8&t[0]&&Y(m,"max",e[3]),16&t[0]&&Y(m,"value",e[4]),2048&t[0]&&O!==(O=e[11]("bonusHistory.dateTo")+"")&&q(g,O),8&t[0]&&Y(b,"max",e[3]),8&t[0]&&Y(b,"value",e[3]),2048&t[0]&&M!==(M=e[11]("bonusHistory.dateFilter")+"")&&q(x,M),R===(R=N(e))&&L?L.p(e,t):(L.d(1),L=R(e),L&&(L.c(),L.m(E,null))),0!==e[10].length?F?F.p(e,t):(F=Mu(e),F.c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&j(r),I&&I.d(),n[19](null),n[20](null),L.d(),F&&F.d(),A=!1,P()}}}(e);return{c(){r.c(),n=a(),this.c=U},m(e,t){r.m(e,t),$(e,n,t)},p(e,t){r.p(e,t)},i:U,o:U,d(e){r.d(e),e&&j(n)}}}function Ru(t,e,i){let n;T(t,or,e=>i(11,n=e));let r,s,o,a,{endpoint:l=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:c="en"}=e,h=window.navigator.userAgent,p="PC"!==ar(h);o=dr(new Date).format("YYYY-MM-DD");let m=a=dr(new Date).subtract(3,"months").format("YYYY-MM-DD"),f=o,_=0,y=0,g=0,v=0,b=0,w=[];Object.keys(Cu).forEach(e=>{Yn(e,Cu[e])});const S=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},x=t=>{let e=new URL(`${l}/player/${d}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=cashback,type=freeround,type=freebet,type=wagering,granted=[${new Date(m).toISOString()}~${new Date(f).toISOString()}]`;e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`);var r={method:"GET",headers:{"X-SessionId":u}};fetch(e.href,r).then(e=>e.json()).then(e=>{i(8,v=Math.ceil(e.total/6)),0<=t-6&&i(5,_=t-6),t+6<e.total&&i(6,y=t+6),i(7,g=6*(v-1)),i(9,b=t/6),i(10,w=e.items)},e=>{console.error(e)})},C=e=>{m=e.target.value},E=e=>{f=e.target.value};e=()=>()=>{r.removeEventListener("change",C),s.removeEventListener("change",E)},function(){if(!D)throw new Error("Function called outside component initialization");return D}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&i(15,l=e.endpoint),"session"in e&&i(16,u=e.session),"playerid"in e&&i(17,d=e.playerid),"lang"in e&&i(0,c=e.lang)},t.$$.update=()=>{var e;1&t.$$.dirty[0]&&c&&(e=c,Jn.set(e)),6&t.$$.dirty[0]&&r&&s&&(r.addEventListener("change",C,!1),s.addEventListener("change",E,!1)),229376&t.$$.dirty[0]&&u&&d&&l&&x(0)},[c,r,s,o,a,_,y,g,v,b,w,n,p,S,x,l,u,d,()=>S(),function(e){k[e?"unshift":"push"](()=>{r=e,i(1,r)})},function(e){k[e?"unshift":"push"](()=>{s=e,i(2,s)})},()=>x(0),()=>x(0),()=>x(_),e=>x(6*e),()=>x(y),()=>x(g)]}class Lu extends u{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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}.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}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ru,Nu,n,{endpoint:15,session:16,playerid:17,lang:0},[-1,-1]),e&&(e.target&&$(e.target,this,e.anchor),e.props&&(this.$set(e.props),b()))}static get observedAttributes(){return["endpoint","session","playerid","lang"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$set({endpoint:e}),b()}get session(){return this.$$.ctx[16]}set session(e){this.$set({session:e}),b()}get playerid(){return this.$$.ctx[17]}set playerid(e){this.$set({playerid:e}),b()}get lang(){return this.$$.ctx[0]}set lang(e){this.$set({lang:e}),b()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",Lu),Lu});
|
|
1689
1689
|
//# sourceMappingURL=player-bonus-history.js.map
|