@everymatrix/player-active-bonuses 1.7.3 → 1.8.3
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,2 +1,2 @@
|
|
|
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 G(){}function E(e){return e()}function M(){return Object.create(null)}function N(e){e.forEach(E)}function S(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function A(e,...t){if(null==e)return G;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function O(e,t,n){e.$$.on_destroy.push(A(t,n))}function $(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode.removeChild(e)}function x(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function V(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function Z(){return z(" ")}function L(){return z("")}function R(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function X(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function d(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:X(e,t,n)}function K(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function I(e,t){e.value=null==t?"":t}function P(e){const t={};for(const n of e)t[n.name]=n.value;return t}let k;function H(e){k=e}const Y=[],U=[],F=[],q=[],J=Promise.resolve();let Q=!1;function ee(e){F.push(e)}const te=new Set;let ne=0;function y(){const e=k;do{for(;ne<Y.length;){const e=Y[ne];ne++,H(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),N(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(ee))}for(H(null),Y.length=0,ne=0;U.length;)U.pop()();for(let e=0;e<F.length;e+=1){const r=F[e];te.has(r)||(te.add(r),r())}}while(F.length=0,Y.length);for(;q.length;)q.pop()();Q=!1,te.clear(),H(e)}const re=new Set;function oe(r,e,t,n,o,i,s,a=[-1]){var u=k;H(r);const l=r.$$={fragment:null,ctx:null,props:i,update:G,not_equal:o,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return l.ctx&&o(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(Y.push(e),Q||(Q=!0,J.then(y)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],l.update(),c=!0,N(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){i=e.target;const G=Array.from(i.childNodes);l.fragment&&l.fragment.l(G),G.forEach(j)}else l.fragment&&l.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(re.delete(a),a.i(void 0));{var h=r;s=e.target;t=e.anchor;n=e.customElement;const{fragment:d,on_mount:f,on_destroy:p,after_update:m}=h.$$;d&&d.m(s,t),n||ee(()=>{var e=f.map(E).filter(S);p?p.push(...e):N(e),h.$$.on_mount=[]}),m.forEach(ee)}y()}H(u)}let ie;"function"==typeof HTMLElement&&(ie=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(S);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){N(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(N(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=G}$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 se,ae,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ue="URLSearchParams"in a,le="Symbol"in a&&"iterator"in Symbol,ce="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),he="FormData"in a,de="ArrayBuffer"in a;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function pe(e){return e="string"!=typeof e?String(e):e}function me(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return le&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?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 ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ge(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ge(t);return t.readAsArrayBuffer(e),n}function _e(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ve(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:he&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():de&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):de&&(ArrayBuffer.prototype.isPrototypeOf(e)||ae(e))?this._bodyArrayBuffer=_e(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):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ye(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?ye(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(be)}),this.text=function(){var e,t,n=ye(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ge(e=new FileReader),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},he&&(this.formData=function(){return this.text().then(Be)}),this.json=function(){return this.text().then(JSON.parse)},this}de&&(se=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ae=ArrayBuffer.isView||function(e){return e&&-1<se.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=fe(e),t=pe(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[fe(e)]},u.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},u.prototype.set=function(e,t){this.map[fe(e)]=pe(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),me(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),me(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),me(n)},le&&(u.prototype[Symbol.iterator]=u.prototype.entries);var we=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(e,t){if(!(this instanceof l))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 l){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(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 u(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<we.indexOf(n)?n:e),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||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Be(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))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 u(t.headers),this.url=t.url||"",this._initBody(e)}l.prototype.clone=function(){return new l(this,{body:this._bodyInit})},ve.call(l.prototype),ve.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308],h=(c.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new h}catch(G){(h=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),h.prototype.constructor=h}function Ee(r,s){return new Promise(function(o,e){var t=new l(r,s);if(t.signal&&t.signal.aborted)return e(new h("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var e,n,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",n=new u,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new c(r,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new h("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(ce?i.responseType="blob":de&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof u?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,pe(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",n)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ee.polyfill=!0,a.fetch||(a.fetch=Ee,a.Headers=u,a.Request=l,a.Response=c),self.fetch.bind(self);var Me=function(e,t){return(Me=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 Se(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}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ce(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 Ae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function xe(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function f(e){return"function"==typeof e}function De(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 Oe=De(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 Pe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ce(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(f(i))try{i()}catch(e){o=e instanceof Oe?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var u=Ce(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Re(c)}catch(e){o=null!=o?o:[],e instanceof Oe?o=xe(xe([],Ae(o)),Ae(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(o)throw new Oe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Re(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Pe(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((r=new n).closed=!0,r);var ke=n,He=ke.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ne(e){return e instanceof ke||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function Re(e){f(e)?e():e.unsubscribe()}var Le=void 0,Ie=!1,Ye=!1,Ue={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Ue.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,xe([e,t],Ae(n))):setTimeout.apply(void 0,xe([e,t],Ae(n)))},clearTimeout:function(e){var t=Ue.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var Ge=null;function $e(e){if(Ie){var t=!Ge;if(t&&(Ge={errorThrown:!1,error:null}),e(),t){var t=Ge,n=t.errorThrown,t=t.error;if(Ge=null,n)throw t}}else e()}Se(t,We=ke),t.create=function(e,t,n){return new Ke(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,We.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var We,je=t,Ve=Function.prototype.bind;function t(e){var t=We.call(this)||this;return t.isStopped=!1,e?Ne(t.destination=e)&&e.add(t):t.destination=et,t}function ze(e,t){return Ve.call(e,t)}Je.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Qe(e)}},Je.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Qe(e)}else Qe(e)},Je.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Qe(e)}};var Ze,Xe=Je,Ke=(Se(qe,Ze=je),qe);function qe(e,t,n){var r=Ze.call(this)||this,n=f(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ye?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ze(e.next,t),error:e.error&&ze(e.error,t),complete:e.complete&&ze(e.complete,t)}):e;return r.destination=new Xe(n),r}function Je(e){this.partialObserver=e}function Qe(e){var t=e;Ue.setTimeout(function(){throw t})}var et={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},r="function"==typeof Symbol&&Symbol.observable||"@@observable";function tt(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof je||r&&f(r.next)&&f(r.error)&&f(r.complete)&&Ne(r)?e:new Ke(e,t,n);return $e(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=rt(e))(function(e,t){var n=new Ke({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[r]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?tt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=rt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var nt=o;function o(e){e&&(this._subscribe=e)}function rt(e){return null!=(e=null!=e?e:Le)?e:Promise}var ot,it,st,at=De(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),r=(Se(s,st=nt),s.prototype.lift=function(e){var t=new ut(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new at},s.prototype.next=function(o){var i=this;$e(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ce(i.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var n=this;$e(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)}})},s.prototype.complete=function(){var t=this;$e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),st.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?He:(this.currentObservers=null,o.push(e),new ke(function(){t.currentObservers=null,Pe(o,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},s.prototype.asObservable=function(){var e=new nt;return e.source=this,e},s.create=function(e,t){return new ut(e,t)},s),ut=(Se(i,it=r),i.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},i.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},i.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},i.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:He},i),lt={now:function(){return(lt.delegate||Date).now()},delegate:void 0},ct=(Se(ht,ot=r),ht.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(r.push(e),o||r.push(i.now()+t)),this._trimBuffer(),ot.prototype.next.call(this,e)},ht.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},ht.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=t.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},ht);function ht(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=lt);var r=ot.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 i(e,t){var n=it.call(this)||this;return n.destination=e,n.source=t,n}function s(){var e=st.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let dt=[],ft={};const pt=[];function mt(r,o=G){let i;const s=new Set;function a(e){if(C(r,e)&&(r=e,i)){const e=!pt.length;for(const e of s)e[1](),pt.push(e,r);if(e){for(let e=0;e<pt.length;e+=2)pt[e][0](pt[e+1]);pt.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=G){const n=[e,t];return s.add(n),1===s.size&&(i=o(a)||G),e(r),()=>{s.delete(n),0===s.size&&(i(),i=null)}}}}function yt(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:mt(t,t=>{let n=!1;const r=[];let o=0,i=G;const s=()=>{var e;o||(i(),e=a(u?r[0]:r,t),c?t(e):i=S(e)?e:G)},e=l.map((e,t)=>A(e,e=>{r[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}));return n=!0,s(),function(){N(e),i()}}).subscribe}}function gt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===bt));var t}var bt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Et(Array.isArray(e)?[]:{},e,t):e}function vt(e,t,n){return e.concat(t).map(function(e){return _t(e,n)})}function wt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Bt(e,t){try{return t in e}catch(e){return!1}}function Tt(r,o,i){var s={};return i.isMergeableObject(r)&&wt(r).forEach(function(e){s[e]=_t(r[e],i)}),wt(o).forEach(function(t){var e,n;(!Bt(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Bt(r,t)&&i.isMergeableObject(o[t])?s[t]=function(e){if(!e.customMerge)return Et;e=e.customMerge(t);return"function"==typeof e?e:Et}(i)(r[t],o[t],i):s[t]=_t(o[t],i))}),s}function Et(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||vt,n.isMergeableObject=n.isMergeableObject||gt,n.cloneUnlessOtherwiseSpecified=_t;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Tt(e,t,n):_t(t,n)}Et.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Et(e,t,n)},{});throw new Error("first argument should be an array")};var Mt=Et,St=function(e,t){return(St=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 Ct(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}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,g,At,b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function xt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Dt(e){return e.type===g.literal}function Ot(e){return e.type===g.number}function Pt(e){return e.type===g.date}function kt(e){return e.type===g.time}function Ht(e){return e.type===g.select}function Nt(e){return e.type===g.plural}function Rt(e){return e.type===g.tag}function Lt(e){return e&&"object"==typeof e&&e.type===At.number}function It(e){return e&&"object"==typeof e&&e.type===At.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=g=g||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=At=At||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 Ut=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,$t=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function jt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Gt,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 Vt(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 zt(e){return Vt(e)||{}}function Zt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace($t,function(e,t,n,r,o,i){if(t)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ft.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ft,function(e,t,n,r,o,i){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=b(b({},s),jt(i)))}else Gt.test(o.stem)?s=b(b({},s),jt(o.stem)):((i=Vt(o.stem))&&(s=b(b({},s),i)),(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)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=b(b({},s),r)))}return s}var Xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Kt=new RegExp("^".concat(r.source,"*")),qt=new RegExp("".concat(r.source,"*$"));function _(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Jt=!!String.fromCodePoint,Qt=!!Object.fromEntries,en=!!String.prototype.codePointAt,tn=!!String.prototype.trimStart,nn=!!String.prototype.trimEnd,rn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},on=!0;try{on="a"===(null==(Sn=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Sn[0])}catch(G){on=!1}var sn,an,un=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ln=Jt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;i<o;){if(1114111<(n=e[i++]))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},cn=Qt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],o=o[1];t[i]=o}return t},hn=en?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},dn=tn?function(e){return e.trimStart()}:function(e){return e.replace(Kt,"")},fn=nn?function(e){return e.trimEnd()}:function(e){return e.replace(qt,"")};function pn(e,t){return new RegExp(e,t)}an=on?(sn=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return sn.lastIndex=t,null!=(t=sn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=hn(e,t);if(void 0===o||gn(o)||(33<=(n=o)&&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(o),t+=65536<=o?2:1}return ln.apply(void 0,r)};p.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},p.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,_(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&yn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:g.pound,location:_(i,this.clonePosition())})}}}return{val:r,err:null}},p.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:g.literal,value:"<".concat(r,"/>"),location:_(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yn(this.char()))return this.error(m.INVALID_TAG,_(e,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,_(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:g.tag,value:r,children:t,location:_(n,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,_(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,_(n,this.clonePosition()))}return this.error(m.INVALID_TAG,_(n,this.clonePosition()))},p.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())},p.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=_(n,this.clonePosition());return{val:{type:g.literal,value:r,location:n},err:null}},p.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(yn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},p.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 ln.apply(void 0,t)},p.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(),ln(n))},p.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,_(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,_(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:g.argument,value:r,location:_(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,_(n,this.clonePosition()))}},p.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=an(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:_(e,this.clonePosition())}},p.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,_(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=fn(p.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:_(l,this.clonePosition())}}if((l=this.tryParseArgumentClose(r)).err)return l;var c=_(r,this.clonePosition());if(u&&un(null==u?void 0:u.style,"::",0)){var h=dn(u.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?p:{val:{type:g.number,value:n,location:c,style:p.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,c);var d=h,f=(this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Xt[t||""]||Xt[n||""]||Xt["".concat(n,"-001")]||Xt["001"])[0]}(t);for("H"!=u&&"k"!=u||(a=0);0<a--;)n+="a";for(;0<s--;)n=u+n}else n+="J"===o?"H":o}return n}(h,this.locale)),{type:At.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},d.replace(Yt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}});return{val:{type:"date"===s?g.date:g.time,value:n,location:c,style:f},err:null}}return{val:{type:"number"===s?g.number:"date"===s?g.date:g.time,value:n,location:c,style:null!=(h=null==u?void 0:u.style)?h:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,_(d,b({},d)));this.bumpSpace();var p,f=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),f=this.parseIdentifierIfPossible(),c=p.val}u=this.tryParsePluralOrSelectOptions(e,s,t,f);if(u.err)return u;if((l=this.tryParseArgumentClose(r)).err)return l;h=_(r,this.clonePosition());return"select"===s?{val:{type:g.select,value:n,options:cn(u.val),location:h},err:null}:{val:{type:g.plural,value:n,options:cn(u.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,_(i,a))}},p.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},p.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_(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}},p.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(Ut).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:At.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Zt(n):{}},err:null}},p.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,i=[],s=new Set,a=r.value,u=r.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=_(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,n);if(l.err)return l;var h=this.tryParseArgumentClose(c);if(h.err)return h;i.push([a,{value:l.val,location:_(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:i,err:null}},p.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=_(r,this.clonePosition());return o?rn(i*=n)?{val:i,err:null}:this.error(t,r):this.error(e,r)},p.prototype.offset=function(){return this.position.offset},p.prototype.isEOF=function(){return this.offset()===this.message.length},p.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},p.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=hn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},p.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},p.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))},p.prototype.bumpIf=function(e){if(un(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},p.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},p.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},p.prototype.bumpSpace=function(){for(;!this.isEOF()&&gn(this.char());)this.bump()},p.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var mn=p;function p(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function yn(e){return 97<=e&&e<=122||65<=e&&e<=90}function gn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function bn(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new mn(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ht(e)||Nt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ot(e)&&Lt(e.style)||(Pt(e)||kt(e))&&It(e.style)?delete e.style.location:Rt(e)&&n(e.children)})}(e.val),e.val}function _n(e,t){var n=t&&t.cache?t.cache:Cn,r=t&&t.serializer?t.serializer:Tn;return(t&&t.strategy?t.strategy:function(e,t){return Bn(e,this,1===e.length?vn:wn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function vn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function wn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function Bn(e,t,n,r,o){return n.bind(t,e,r,o)}var Tn=function(){return JSON.stringify(arguments)};function En(){this.cache=Object.create(null)}En.prototype.get=function(e){return this.cache[e]},En.prototype.set=function(e,t){this.cache[e]=t};var Mn,Sn,Cn={create:function(){return new En}},An={variadic:function(e,t){return Bn(e,this,wn,t.cache.create(),t.serializer)},monadic:function(e,t){return Bn(e,this,vn,t.cache.create(),t.serializer)}};(Sn=Mn=Mn||{}).MISSING_VALUE="MISSING_VALUE",Sn.INVALID_VALUE="INVALID_VALUE",Sn.MISSING_INTL_API="MISSING_INTL_API";Ct(Fn,kn=Error),Fn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,xn,Dn,Pn,kn,Hn=Fn,Nn=(Ct(Un,Pn=Hn),Un),Rn=(Ct(Yn,Dn=Hn),Yn),Ln=(Ct(In,xn=Hn),In);function In(e,t){return xn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Mn.MISSING_VALUE,t)||this}function Yn(e,t,n){return Dn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Mn.INVALID_VALUE,n)||this}function Un(e,t,n,r){return Pn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Mn.INVALID_VALUE,r)||this}function Fn(e,t,n){e=kn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Gn(e,t,n,r,o,i,s){if(1===e.length&&Dt(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Dt(c))a.push({type:v.literal,value:c.value});else if(c.type===g.pound)"number"==typeof i&&a.push({type:v.literal,value:n.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Ln(h,s);h=o[h];if(c.type===g.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?v.literal:v.object,value:h});else if(Pt(c)){var d="string"==typeof c.style?r.date[c.style]:It(c.style)?c.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(kt(c))d="string"==typeof c.style?r.time[c.style]:It(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Ot(c))(d="string"==typeof c.style?r.number[c.style]:Lt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,d).format(h)});else{if(Rt(c)){var f=c.children,p=c.value,m=o[p];if("function"!=typeof m)throw new Rn(p,"function",s);p=m(Gn(f,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if(Ht(c)){if(!(y=c.options[h]||c.options.other))throw new Nn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gn(y.value,t,n,r,o))}else if(Nt(c)){if(!(y=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Hn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Mn.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),y=c.options[m]||c.options.other}if(!y)throw new Nn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gn(y.value,t,n,r,o,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function $n(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=v=v||{})[r.literal=0]="literal",r[r.object=1]="object",Object.defineProperty(w,"defaultLocale",{get:function(){return w.memoizedDefaultLocale||(w.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),w.memoizedDefaultLocale},enumerable:!1,configurable:!0}),w.memoizedDefaultLocale=null,w.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},w.__parse=bn,w.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Wn=w;function w(e,t,n,r){var o,i,s=this;if(void 0===t&&(t=w.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Gn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=w.resolveLocale(t),"string"==typeof e){if(this.message=e,!w.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=w.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=w.formats,(i=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=i[t])?b(b(b({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=b(b({},n[t]),r[t]||{}),e},{})):n),e},b({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:$n((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:An.variadic}),getDateTimeFormat:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:$n(t.dateTime),strategy:An.variadic}),getPluralRules:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,xt([void 0],t,!1)))},{cache:$n(t.pluralRules),strategy:An.variadic})}}const B={},jn=(e,t,n)=>n&&(t in B||(B[t]={}),e in B[t]||(B[t][e]=n),n),Vn=(t,n)=>{if(null!=n){if(n in B&&t in B[n])return B[n][t];var r=ur(n);for(let e=0;e<r.length;e++){var o=function(e,n){if(!Xn(e))return null;e=function(e){return zn[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const o=r.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const r=o.slice(e,o.length).join(".");if(r in t){t=t[r];break}}t=t[o[e]]}else t=void 0;return t}}(r[e],t);if(o)return jn(t,n,o)}}};let zn;const Zn=mt({});function Xn(e){return e in zn}function Kn(t,...n){delete B[t],Zn.update(e=>(e[t]=Mt.all([e[t]||{},...n]),e))}yt([Zn],([e])=>Object.keys(e)),Zn.subscribe(e=>zn=e);const qn={};function Jn(e){return qn[e]}function Qn(e){return null!=e&&ur(e).some(e=>{return null==(e=Jn(e))?void 0:e.size})}const er={};function tr(e){if(!Qn(e))return e in er?er[e]:Promise.resolve();const t=ur(e).map(e=>{var t=Jn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return er[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return qn[t].delete(n),0===qn[t].size&&delete qn[t],e().then(e=>e.default||e)}));return n.then(e=>Kn(r,...e))}})).then(()=>{if(Qn(e))return tr(e);delete er[e]}),er[e]}function nr(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const rr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const or=mt(!1);let ir;const sr=mt(null);function ar(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function ur(e,t=rr.fallbackLocale){e=ar(e);return t?[...new Set([...e,...ar(t)])]:e}function T(){return null!=ir?ir:void 0}sr.subscribe(e=>{ir=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const D=Object.assign(Object.assign({},sr),{set:t=>{if(t&&function(e){if(null!=e){var t=ur(e);for(let e=0;e<t.length;e++){var n=t[e];if(Xn(n))return n}}}(t)&&Qn(t)){var n=rr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=T()&&n?e=window.setTimeout(()=>or.set(!0),n):or.set(!0),tr(t).then(()=>{sr.set(t)}).finally(()=>{clearTimeout(e),or.set(!1)})}return sr.set(t)}}),lr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},cr=(e,t)=>{var n=rr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=cr("number",n)),new Intl.NumberFormat(t,e)}),dr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=cr("date",n):0===Object.keys(e).length&&(e=cr("date","short")),new Intl.DateTimeFormat(t,e)}),fr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=cr("time",n):0===Object.keys(e).length&&(e=cr("time","short")),new Intl.DateTimeFormat(t,e)}),pr=lr((e,t=T())=>new Wn(e,t,rr.formats,{ignoreTag:rr.ignoreTag})),mr=yt([D,Zn],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:s=T(),default:a}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Vn(e,s);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(r=null!=(n=null==(n=(r=rr).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!i)return u;let l=u;try{l=pr(u,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l}),yr=(yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return fr(Object.assign({locale:t},e))})(t).format(e)),yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return dr(Object.assign({locale:t},e))})(t).format(e)),yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return hr(Object.assign({locale:t},e))})(t).format(e)),yt([D,Zn],()=>(e,t=T())=>Vn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==dt.indexOf(e)&&(t=new ct(t),ft[e]=t,dt.push(e)),ft[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function gr(e,t){Kn(e,t)}const br={en:{activeBonuses:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"}},"zh-hk":{activeBonuses:{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"}},fr:{activeBonuses:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"}},ro:{activeBonuses:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"}},es:{activeBonuses:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"}},pt:{activeBonuses:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"}}};function _r(e,t){Kn(e,t)}const vr={en:{bonusCard:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Amount",remainingBonus:"Remaining Bonus Amount",forfeitBonus:"Forfeit Bonus"}},"zh-hk":{bonusCard:{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注金額",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金"}},fr:{bonusCard:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Montant de la mise",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus"}},ro:{bonusCard:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Sumă de pariat",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul"}},es:{bonusCard:{date:"Fecha de envío:",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Monto apostado",remainingBonus:"Monto restante de Bono",forfeitBonus:"Perder Bono"}},pt:{bonusCard:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Valor da aposta",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda"}}};Br=wr={path:void 0,exports:{},require:function(e,t){return On(null==t&&wr.path)}},wr.exports,Br.exports=function(){var R;function p(){return R.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function L(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function I(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(m(e,t))return;return 1}function a(e){return void 0===e}function Y(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function U(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var n=[],r=e.length,o=0;o<r;++o)n.push(t(e[o],o));return n}function G(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=y(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=l(NaN);return null!=e?G(y(t),e):y(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=p.momentProperties=[],z=!1;function Z(e,t){var n,r,o,i=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=y(t)),a(t._locale)||(e._locale=t._locale),0<i)for(n=0;n<i;n++)a(o=t[r=V[n]])||(e[r]=o);return e}function X(e){Z(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function u(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function K(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(i,s){var a=!0;return G(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,i),a){for(var e,t,n=[],r=arguments.length,o=0;o<r;o++){if(e="","object"==typeof arguments[o]){for(t in e+="\n["+o+"] ",arguments[0])m(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[o];n.push(e)}K(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var q={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),q[e]||(K(t),q[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=G({},e);for(n in t)m(t,n)&&(L(e[n])&&L(t[n])?(r[n]={},G(r[n],e[n]),G(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)m(e,n)&&!m(t,n)&&L(e[n])&&(r[n]=G({},r[n]));return r}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function i(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},ie={};function r(e,t,n,r){var o="string"==typeof r?function(){return this[r]()}:r;e&&(ie[e]=o),t&&(ie[t[0]]=function(){return i(o.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),oe[t]=oe[t]||function(r){for(var e,o=r.match(ne),t=0,i=o.length;t<i;t++)ie[o[t]]?o[t]=ie[o[t]]:o[t]=(e=o[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<i;n++)t+=c(o[n])?o[n].call(e,r):o[n];return t}}(t),oe[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var ue={};function t(e,t){var n=e.toLowerCase();ue[n]=ue[n+"s"]=ue[t]=e}function h(e){return"string"==typeof e?ue[e]||ue[e.toLowerCase()]:void 0}function le(e){var t,n,r={};for(n in e)m(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,n),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=f(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),He(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var o=/\d/,g=/\d\d/,me=/\d{3}/,ye=/\d{4}/,ge=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ve=/\d{1,3}/,we=/\d{1,4}/,Be=/[+-]?\d{1,6}/,Te=/\d+/,Ee=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,_=/[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 v(e,n,r){Ae[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Ce(e,t){return m(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},xe={};function B(e,n){var t,r,o=n;for("string"==typeof e&&(e=[e]),Y(n)&&(o=function(e,t){t[n]=f(e)}),r=e.length,t=0;t<r;t++)xe[e[t]]=o}function De(e,o){B(e,function(e,t,n,r){n._w=n._w||{},o(e,n._w,n,r)})}var T,E=0,M=1,S=2,C=3,A=4,x=5,Oe=6,Pe=7,ke=8;function He(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2}T=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),v("M",b),v("MM",b,g),v("MMM",function(e,t){return t.monthsShortRegex(e)}),v("MMMM",function(e,t){return t.monthsRegex(e)}),B(["M","MM"],function(e,t){t[M]=f(e)-1}),B(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[M]=r:y(n).invalidMonth=e});var Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ie=_,Ye=_;function Ue(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!Y(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),He(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Fe(e){return null!=e?(Ue(this,e),p.updateOffset(this,!0),this):fe(this,"Month")}function Ge(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],o=[],i=0;i<12;i++)t=l([2e3,i]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),o.push(this.months(t,"")),o.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),o.sort(e),i=0;i<12;i++)n[i]=w(n[i]),r[i]=w(r[i]);for(i=0;i<24;i++)o[i]=w(o[i]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function $e(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),v("Y",Ee),v("YY",b,g),v("YYYY",we,ye),v("YYYYY",Be,ge),v("YYYYYY",Be,ge),B(["YYYYY","YYYYYY"],E),B("YYYY",function(e,t){t[E]=2===e.length?p.parseTwoDigitYear(e):f(e)}),B("YY",function(e,t){t[E]=p.parseTwoDigitYear(e)}),B("Y",function(e,t){t[E]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var We=de("FullYear",!0);function je(e,t,n,r,o,i,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function Ze(e,t,n,r,o){var i,t=1+7*(t-1)+(7+n-r)%7+ze(e,r,o),n=t<=0?$e(i=e-1)+t:t>$e(e)?(i=e+1,t-$e(e)):(i=e,t);return{year:i,dayOfYear:n}}function Xe(e,t,n){var r,o,i=ze(e.year(),t,n),i=Math.floor((e.dayOfYear()-i-1)/7)+1;return i<1?r=i+D(o=e.year()-1,t,n):i>D(e.year(),t,n)?(r=i-D(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function D(e,t,n){var r=ze(e,t,n),t=ze(e+1,t,n);return($e(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),v("w",b),v("ww",b,g),v("W",b),v("WW",b,g),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=f(e)});function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),v("d",b),v("e",b),v("E",b),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:y(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=f(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=_,tt=_,nt=_;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,o=[],i=[],s=[],a=[],u=0;u<7;u++)r=l([2e3,1]).day(u),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),o.push(t),i.push(n),s.push(r),a.push(t),a.push(n),a.push(r);o.sort(e),i.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ot(){return this.hours()%12||12}function it(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,ot),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+ot.apply(this)+i(this.minutes(),2)}),r("hmmss",0,0,function(){return""+ot.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),it("a",!0),it("A",!1),t("hour","h"),n("hour",13),v("a",st),v("A",st),v("H",b),v("h",b),v("k",b),v("HH",b,g),v("hh",b,g),v("kk",b,g),v("hmm",be),v("hmmss",_e),v("Hmm",be),v("Hmmss",_e),B(["H","HH"],C),B(["k","kk"],function(e,t,n){e=f(e);t[C]=24===e?0:e}),B(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),B(["h","hh"],function(e,t,n){t[C]=f(e),y(n).bigHour=!0}),B("hmm",function(e,t,n){var r=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r)),y(n).bigHour=!0}),B("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r,2)),t[x]=f(e.substr(o)),y(n).bigHour=!0}),B("Hmm",function(e,t,n){var r=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r))}),B("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r,2)),t[x]=f(e.substr(o))});_=de("Hours",!0);var at,ut={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:Ne,monthsShort:Re,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},lt={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ct(e[i]).split("-")).length,n=(n=ct(e[i+1]))?n.split("-"):null;0<t;){if(r=dt(o.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}(o,n)>=t-1)break;t--}i++}return at}function dt(t){var e;if(void 0===O[t]&&Br&&Br.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),ft(e)}catch(e){O[t]=null}return O[t]}function ft(e,t){return e&&((t=a(t)?P(e):pt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function pt(e,t){if(null===t)return delete O[e],null;var n,r=ut;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,t)),lt[e]&<[e].forEach(function(e){pt(e.name,e.config)}),ft(e),O[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function mt(e){var t=e._a;return t&&-2===y(e).overflow&&(t=t[M]<0||11<t[M]?M:t[S]<1||t[S]>He(t[E],t[M])?S:t[C]<0||24<t[C]||24===t[C]&&(0!==t[A]||0!==t[x]||0!==t[Oe])?C:t[A]<0||59<t[A]?A:t[x]<0||59<t[x]?x:t[Oe]<0||999<t[Oe]?Oe:-1,y(e)._overflowDayOfYear&&(t<E||S<t)&&(t=S),y(e)._overflowWeeks&&-1===t&&(t=Pe),y(e)._overflowWeekday&&-1===t&&(t=ke),y(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["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]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,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}))$/,Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,o,i,s,a=e._i,u=yt.exec(a)||gt.exec(a),a=_t.length,l=vt.length;if(u){for(y(e).iso=!0,t=0,n=a;t<n;t++)if(_t[t][1].exec(u[1])){o=_t[t][0],r=!1!==_t[t][2];break}if(null==o)return e._isValid=!1;if(u[3]){for(t=0,n=l;t<n;t++)if(vt[t][1].exec(u[3])){i=(u[2]||" ")+vt[t][0];break}if(null==i)return e._isValid=!1}if(!r&&null!=i)return e._isValid=!1;if(u[4]){if(!bt.exec(u[4]))return e._isValid=!1;s="Z"}e._f=o+(i||"")+(s||""),xt(e)}else e._isValid=!1}function Mt(e,t,n,r,o,i){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&e.push(parseInt(i,10)),e}function St(e){var t,n,r,o,i=Bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=Mt(i[4],i[3],i[2],i[5],i[6],i[7]),n=i[1],r=t,o=e,n&&Je.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(y(o).weekdayMismatch=!0,o._isValid=!1):(e._a=t,e._tzm=(n=i[8],r=i[9],o=i[10],n?Tt[n]:r?0:((n=parseInt(o,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function At(e){var t,n,r,o,i,s,a,u,l,c,h,d=[];if(!e._d){for(c=e,h=new Date(p.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[S]&&null==e._a[M]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=Ct(h.GG,c._a[E],Xe(k(),1,4).year),o=Ct(h.W,1),((i=Ct(h.E,1))<1||7<i)&&(u=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,l=Xe(k(),s,a),r=Ct(h.gg,c._a[E],l.year),o=Ct(h.w,l.week),null!=h.d?((i=h.d)<0||6<i)&&(u=!0):null!=h.e?(i=h.e+s,(h.e<0||6<h.e)&&(u=!0)):i=s),o<1||o>D(r,s,a)?y(c)._overflowWeeks=!0:null!=u?y(c)._overflowWeekday=!0:(l=Ze(r,o,i,s,a),c._a[E]=l.year,c._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(h=Ct(e._a[E],n[E]),(e._dayOfYear>$e(h)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),u=Ve(h,0,e._dayOfYear),e._a[M]=u.getUTCMonth(),e._a[S]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[C]&&0===e._a[A]&&0===e._a[x]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[C]=0),e._d=(e._useUTC?Ve:je).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[C]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],y(e).empty=!0;for(var t,n,r,o=""+e._i,i=o.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,u=0;u<a;u++)r=n[u],(t=(o.match(Ce(r,e))||[])[0])&&(0<(h=o.substr(0,o.indexOf(t))).length&&y(e).unusedInput.push(h),o=o.slice(o.indexOf(t)+t.length),s+=t.length),ie[r]?(t?y(e).empty=!1:y(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&m(xe,h)&&xe[h](d,f._a,f,h)):e._strict&&!t&&y(e).unusedTokens.push(r);y(e).charsLeftOver=i-s,0<o.length&&y(e).unusedInput.push(o),e._a[C]<=12&&!0===y(e).bigHour&&0<e._a[C]&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[C]=(i=e._locale,l=e._a[C],null==(c=e._meridiem)?l:null!=i.meridiemHour?i.meridiemHour(l,c):null!=i.isPM?((i=i.isPM(c))&&l<12&&(l+=12),l=i||12!==l?l:0):l),null!==(c=y(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),At(e),mt(e)}else St(e);else Et(e);var l,c,h,d,f}function Dt(e){var t,n=e._i,r=e._f;{var o,i;if(e._locale=e._locale||P(e._l),null===n||void 0===r&&""===n)return W({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),u(n)?new X(mt(n)):(U(n)?e._d=n:s(r)?function(e){var t,n,r,o,i,s,a=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,e._d=new Date(NaN);for(o=0;o<u;o++)i=0,s=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],xt(t),$(t)&&(s=!0),i=(i+=y(t).charsLeftOver)+10*y(t).unusedTokens.length,y(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||s)&&(r=i,n=t,s&&(a=!0));G(e,n||t)}(e):r?xt(e):a(r=(n=e)._i)?n._d=new Date(p.now()):U(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(o=n,null===(i=wt.exec(o._i))?(Et(o),!1===o._isValid&&(delete o._isValid,St(o),!1===o._isValid&&(delete o._isValid,o._strict?o._isValid=!1:p.createFromInputFallback(o)))):o._d=new Date(+i[1])):s(r)?(n._a=F(r.slice(0),function(e){return parseInt(e,10)}),At(n)):L(r)?(o=n)._d||(t=void 0===(i=le(o._i)).day?i.date:i.day,o._a=F([i.year,i.month,t,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),At(o)):Y(r)?n._d=new Date(r):p.createFromInputFallback(n),$(e)||(e._d=null),e)}}function Ot(e,t,n,r,o){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(L(e)&&I(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,(o=new X(mt(Dt(o=i))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function k(e,t,n,r){return Ot(e,t,n,r,!1)}p.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Pt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return k();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var e=le(e),t=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,i=e.day||0,s=e.hour||0,a=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=kt.length;for(t in e)if(m(e,t)&&(-1===T.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[kt[n]]){if(r)return!1;parseFloat(e[kt[n]])!==f(e[kt[n]])&&(r=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*a+1e3*s*60*60,this._days=+i+7*o,this._months=+r+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Nt(e){return e instanceof Ht}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+i(~~(e/60),2)+n+i(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),v("Z",Se),v("ZZ",Se),B(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(Se,e)});var It=/([\+\-]|\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(It)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function Ut(e,t){var n;return t._isUTC?(t=t.clone(),n=(u(e)||U(e)?e:k(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),p.updateOffset(t,!1),t):k(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function H(e,t){var n,r,o=e,i=null;return Nt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:Y(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=$t.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:f(i[S])*n,h:f(i[C])*n,m:f(i[A])*n,s:f(i[x])*n,ms:f(Rt(1e3*i[Oe]))*n}):(i=Wt.exec(e))?(n="-"===i[1]?-1:1,o={y:jt(i[2],n),M:jt(i[3],n),w:jt(i[4],n),d:jt(i[5],n),h:jt(i[6],n),m:jt(i[7],n),s:jt(i[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=k(o.from),i=k(o.to),n=t.isValid()&&i.isValid()?(i=Ut(i,t),t.isBefore(i)?r=Vt(t,i):((r=Vt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(o={}).ms=n.milliseconds,o.M=n.months),i=new Ht(o),Nt(e)&&m(e,"_locale")&&(i._locale=e._locale),Nt(e)&&m(e,"_isValid")&&(i._isValid=e._isValid),i}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(r,o){return function(e,t){var n;return null===t||isNaN(+t)||(J(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,H(e,t),r),this}}function Zt(e,t,n,r){var o=t._milliseconds,i=Rt(t._days),t=Rt(t._months);e.isValid()&&(r=null==r||r,t&&Ue(e,fe(e,"Month")+t*n),i&&pe(e,"Date",fe(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&p.updateOffset(e,i||t))}H.fn=Ht.prototype,H.invalid=function(){return H(NaN)};Ne=zt(1,"add"),qe=zt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Kt(e){return u(e)||U(e)||Xt(e)||Y(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!Y(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=L(e)&&!I(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],o=o||m(e,n);return r&&o}(e)||null==e;var t,n,r}function qt(e,t){if(e.date()<t.date())return-qt(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 Jt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],o=this.eras(),i=0,s=o.length;i<s;++i)t.push(w(o[i].name)),e.push(w(o[i].abbr)),n.push(w(o[i].narrow)),r.push(w(o[i].name)),r.push(w(o[i].abbr)),r.push(w(o[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function un(e,t,n,r,o){var i;return null==e?Xe(this,r,o).year:(t>(i=D(e,r,o))&&(t=i),function(e,t,n,r,o){e=Ze(e,t,n,r,o),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,o))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),v("N",on),v("NN",on),v("NNN",on),v("NNNN",function(e,t){return t.erasNameRegex(e)}),v("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),B(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?y(n).era=r:y(n).invalidEra=e}),v("y",Te),v("yy",Te),v("yyy",Te),v("yyyy",Te),v("yo",function(e,t){return t._eraYearOrdinalRegex||Te}),B(["y","yy","yyy","yyyy"],E),B(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,o):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),v("G",Ee),v("g",Ee),v("GG",b,g),v("gg",b,g),v("GGGG",we,ye),v("gggg",we,ye),v("GGGGG",Be,ge),v("ggggg",Be,ge),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=f(e)}),De(["gg","GG"],function(e,t,n,r){t[r]=p.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),v("Q",o),B("Q",function(e,t){t[M]=3*(f(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),v("D",b),v("DD",b,g),v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),B(["D","DD"],S),B("Do",function(e,t){t[S]=f(e.match(b)[0])});we=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),v("DDD",ve),v("DDDD",me),B(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),v("m",b),v("mm",b,g),B(["m","mm"],A);ye=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),v("s",b),v("ss",b,g),B(["s","ss"],x);var ln,Be=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),v("S",ve,o),v("SS",ve,g),v("SSS",ve,me),ln="SSSS";ln.length<=9;ln+="S")v(ln,Te);function cn(e,t){t[Oe]=f(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")B(ln,cn);ge=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");o=X.prototype;function hn(e){return e}o.add=Ne,o.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=L(e)&&!I(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<r.length;o+=1)n=n||m(e,r[o]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||k(),n=Ut(e,this).startOf("day"),n=p.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,k(e)))},o.clone=function(){return new X(this)},o.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":i=qt(this,r)/12;break;case"month":i=qt(this,r);break;case"quarter":i=qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:d(i)},o.endOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),p.updateOffset(this,!0),this},o.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=se(this,e),this.localeData().postformat(e)},o.from=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||k(e).isValid())?H({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},o.fromNow=function(e){return this.from(k(),e)},o.to=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||k(e).isValid())?H({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},o.toNow=function(e){return this.to(k(),e)},o.get=function(e){return c(this[e=h(e)])?this[e]():this},o.invalidAt=function(){return y(this).overflow},o.isAfter=function(e,t){return e=u(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},o.isBefore=function(e,t){return e=u(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},o.isBetween=function(e,t,n,r){return e=u(e)?e:k(e),t=u(t)?t:k(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))},o.isSame=function(e,t){var e=u(e)?e:k(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},o.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},o.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},o.isValid=function(){return $(this)},o.lang=Qe,o.locale=Jt,o.localeData=Qt,o.max=_e,o.min=be,o.parsingFlags=function(){return G({},y(this))},o.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=le(e)),r=n.length,o=0;o<r;o++)this[n[o].unit](e[n[o].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},o.startOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),p.updateOffset(this,!0),this},o.subtract=qe,o.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},o.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()}},o.toDate=function(){return new Date(this.valueOf())},o.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},o.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"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},o.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},o.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""},o.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""},o.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""},o.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,o=n.length;r<o;++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()-p(n[r].since).year())*e+n[r].offset;return this.year()},o.year=We,o.isLeapYear=function(){return he(this.year())},o.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},o.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},o.quarter=o.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},o.month=Fe,o.daysInMonth=function(){return He(this.year(),this.month())},o.week=o.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},o.isoWeek=o.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},o.weeksInYear=function(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)},o.weeksInWeekYear=function(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)},o.isoWeeksInYear=function(){return D(this.year(),1,4)},o.isoWeeksInISOWeekYear=function(){return D(this.isoWeekYear(),1,4)},o.date=we,o.day=o.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},o.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")},o.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},o.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")},o.hour=o.hours=_,o.minute=o.minutes=ye,o.second=o.seconds=Be,o.millisecond=o.milliseconds=ge,o.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Ft(this);if("string"==typeof e){if(null===(e=Yt(Se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Zt(this,H(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},o.utc=function(e){return this.utcOffset(0,e)},o.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},o.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},o.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60==0)},o.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},o.isLocal=function(){return!!this.isValid()&&!this._isUTC},o.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},o.isUtc=Gt,o.isUTC=Gt,o.zoneAbbr=function(){return this._isUTC?"UTC":""},o.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},o.dates=e("dates accessor is deprecated. Use date instead.",we),o.months=e("months accessor is deprecated. Use month instead",Fe),o.years=e("years accessor is deprecated. Use year instead",We),o.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),o.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Z(t,this),(t=Dt(t))._a?(e=(t._isUTC?l:k)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&f(e[s])!==f(t[s]))&&i++;return i+o}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});g=ee.prototype;function dn(e,t,n,r){var o=P(),r=l().set(r,t);return o[n](r,e)}function fn(e,t,n){if(Y(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],o=0;o<12;o++)r[o]=dn(e,o,n,"month");return r}function pn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),Y(t)&&(n=t,t=void 0),t||"");var o,i=P(),s=e?i._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=dn(t,(o+s)%7,r,"day");return a}g.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},g.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},g.invalidDate=function(){return this._invalidDate},g.ordinal=function(e){return this._ordinal.replace("%d",e)},g.preparse=hn,g.postformat=hn,g.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return c(o)?o(e,t,n,r):o.replace(/%d/i,e)},g.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},g.set=function(e){var t,n;for(n in e)m(e,n)&&(c(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)},g.eras=function(e,t){for(var n,r=this._eras||P("en")._eras,o=0,i=r.length;o<i;++o)switch("string"==typeof r[o].since&&(n=p(r[o].since).startOf("day"),r[o].since=n.valueOf()),typeof r[o].until){case"undefined":r[o].until=1/0;break;case"string":n=p(r[o].until).startOf("day").valueOf(),r[o].until=n.valueOf()}return r},g.erasParse=function(e,t,n){var r,o,i,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if(0<=[i,s,a].indexOf(e))return u[r]},g.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*n},g.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},g.erasNameRegex=function(e){return m(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},g.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},g.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},g.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Le.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},g.monthsParse=function(e,t,n){var r,o;if(this._monthsParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=l([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=T.call(this._shortMonthsParse,e))?o:null:-1!==(o=T.call(this._longMonthsParse,e))?o:null:"MMM"===t?-1!==(o=T.call(this._shortMonthsParse,e))||-1!==(o=T.call(this._longMonthsParse,e))?o:null:-1!==(o=T.call(this._longMonthsParse,e))||-1!==(o=T.call(this._shortMonthsParse,e))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(o.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}},g.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},g.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Ie),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},g.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},g.firstDayOfYear=function(){return this._week.doy},g.firstDayOfWeek=function(){return this._week.dow},g.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ke(t,this._week.dow):e?t[e.day()]:t},g.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},g.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},g.weekdaysParse=function(e,t,n){var r,o;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=T.call(this._weekdaysParse,e))?o:null:"ddd"===t?-1!==(o=T.call(this._shortWeekdaysParse,e))?o:null:-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:"dddd"===t?-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._shortWeekdaysParse,e))||-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:"ddd"===t?-1!==(o=T.call(this._shortWeekdaysParse,e))||-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:-1!==(o=T.call(this._minWeekdaysParse,e))||-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._shortWeekdaysParse,e))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(o.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}},g.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},g.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},g.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},g.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},g.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("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===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var mn=Math.abs;function yn(e,t,n,r){t=H(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function vn(e){return function(){return this.as(e)}}ve=vn("ms"),me=vn("s"),Ne=vn("m"),_e=vn("h"),be=vn("d"),qe=vn("w"),_=vn("M"),ye=vn("Q"),Be=vn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ge=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),g=wn("hours"),Bn=wn("days"),Tn=wn("months"),En=wn("years");var Mn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cn(e,t,n,r){var o=H(e).abs(),i=Mn(o.as("s")),s=Mn(o.as("m")),a=Mn(o.as("h")),u=Mn(o.as("d")),l=Mn(o.as("M")),c=Mn(o.as("w")),o=Mn(o.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return(i=(i=null!=n.w?i||c<=1&&["w"]||c<n.w&&["ww",c]:i)||l<=1&&["M"]||l<n.M&&["MM",l]||o<=1&&["y"]||["yy",o])[2]=t,i[3]=0<+e,i[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,i)}var An=Math.abs;function xn(e){return(0<e)-(e<0)||+e}function Dn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,s,a=An(this._milliseconds)/1e3,u=An(this._days),l=An(this._months),c=this.asSeconds();return c?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(l/12),l%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",o=xn(this._months)!==xn(c)?"-":"",i=xn(this._days)!==xn(c)?"-":"",s=xn(this._milliseconds)!==xn(c)?"-":"",(c<0?"-":"")+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(u?i+u+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}var N=Ht.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},N.add=function(e,t){return yn(this,e,t,1)},N.subtract=function(e,t){return yn(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(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)}},N.asMilliseconds=ve,N.asSeconds=me,N.asMinutes=Ne,N.asHours=_e,N.asDays=be,N.asWeeks=qe,N.asMonths=_,N.asQuarters=ye,N.asYears=Be,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},N._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*gn(_n(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=gn(_n(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},N.clone=function(){return H(this)},N.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ge,N.seconds=we,N.minutes=We,N.hours=g,N.days=Bn,N.weeks=function(){return d(this.days()/7)},N.months=Tn,N.years=En,N.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Sn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Sn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),t=Cn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},N.toISOString=Dn,N.toString=Dn,N.toJSON=Dn,N.locale=Jt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn),N.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),v("x",Ee),v("X",/[+-]?\d+(\.\d{1,3})?/),B("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),B("x",function(e,t,n){n._d=new Date(f(e))}),p.version="2.29.3",R=k,p.fn=o,p.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},p.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=l,p.unix=function(e){return k(1e3*e)},p.months=function(e,t){return fn(e,t,"months")},p.isDate=U,p.locale=ft,p.invalid=W,p.duration=H,p.isMoment=u,p.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},p.parseZone=function(){return k.apply(null,arguments).parseZone()},p.localeData=P,p.isDuration=Nt,p.monthsShort=function(e,t){return fn(e,t,"monthsShort")},p.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var n,r;return null!=t?(r=ut,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),ft(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===ft()&&ft(e)):null!=O[e]&&delete O[e]),O[e]},p.locales=function(){return te(O)},p.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},p.normalizeUnits=h,p.relativeTimeRounding=function(e){return void 0===e?Mn:"function"==typeof e&&(Mn=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},p.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=o,p.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"},p}();var wr,Br,Tr=wr.exports;function Er(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.bonusAmount")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[3]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.bonusAmount")+"")&&K(o,c),8&t&&K(a,e[3]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Mr(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.wageringAmount")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[4]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.wageringAmount")+"")&&K(o,c),16&t&&K(a,e[4]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Sr(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.remainingBonus")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[5]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.remainingBonus")+"")&&K(o,c),32&t&&K(a,e[5]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Cr(n){let r,o,e,t,i,s,a=n[9]("bonusCard.forfeitBonus")+"";return{c(){r=V("button"),o=z(a),X(r,"class",e="DeleteBonus "+(n[10]?"DeleteBonusMobile":"")),X(r,"part",t="DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){W(e,r,t),$(r,o),i||(s=R(r,"click",n[11]),i=!0)},p(e,t){512&t&&a!==(a=e[9]("bonusCard.forfeitBonus")+"")&&K(o,a)},d(e){e&&j(r),i=!1,s()}}}function Ar(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,I,T,E,M,Y,S,C,U,A,x,F,D=n[9]("bonusCard.date")+"",O=Tr(n[0]).format("DD/MM/YYYY h:mm A")+"",P=n[9]("bonusCard.bonusName")+"",k=n[9]("bonusCard.bonusType")+"",H=n[3]&&Er(n),N=n[4]&&Mr(n),R=n[5]&&Sr(n),L="active"===n[1]&&Cr(n);return{c(){r=V("div"),o=V("div"),i=V("div"),s=V("p"),a=z(D),u=Z(),l=V("span"),c=z(O),h=Z(),d=V("p"),f=z(n[1]),y=Z(),g=V("div"),b=V("p"),_=z(P),v=Z(),w=V("p"),B=z(n[2]),I=Z(),T=V("div"),E=V("p"),M=z(k),Y=Z(),S=V("p"),C=z(n[8]),U=Z(),H&&H.c(),A=Z(),N&&N.c(),x=Z(),R&&R.c(),F=Z(),L&&L.c(),this.c=G,X(s,"class","BonusCardRowTitle"),X(s,"part","BonusCardRowTitle"),X(d,"class",p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),X(d,"part",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),X(i,"class","BonusCardRow"),X(i,"part","BonusCardRow"),X(b,"class","BonusCardRowTitle"),X(b,"part","BonusCardRowTitle"),X(w,"class","BonusCardRowText"),X(w,"part","BonusCardRowText"),X(g,"class","BonusCardRow"),X(g,"part","BonusCardRow"),X(E,"class","BonusCardRowTitle"),X(E,"part","BonusCardRowTitle"),X(S,"class","BonusCardRowText TextCapitalize"),X(S,"part","BonusCardRowText TextCapitalize"),X(T,"class","BonusCardRow"),X(T,"part","BonusCardRow"),X(o,"class","BonusCardInfo"),X(o,"part","BonusCardInfo"),X(r,"class","BonusCard"),X(r,"part","BonusCard")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(s,u),$(s,l),$(l,c),$(i,h),$(i,d),$(d,f),$(o,y),$(o,g),$(g,b),$(b,_),$(g,v),$(g,w),$(w,B),$(o,I),$(o,T),$(T,E),$(E,M),$(T,Y),$(T,S),$(S,C),$(o,U),H&&H.m(o,null),$(o,A),N&&N.m(o,null),$(o,x),R&&R.m(o,null),$(r,F),L&&L.m(r,null),n[18](r)},p(e,[t]){512&t&&D!==(D=e[9]("bonusCard.date")+"")&&K(a,D),1&t&&O!==(O=Tr(e[0]).format("DD/MM/YYYY h:mm A")+"")&&K(c,O),2&t&&K(f,e[1]),2&t&&p!==(p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&X(d,"class",p),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&X(d,"part",m),512&t&&P!==(P=e[9]("bonusCard.bonusName")+"")&&K(_,P),4&t&&K(B,e[2]),512&t&&k!==(k=e[9]("bonusCard.bonusType")+"")&&K(M,k),256&t&&K(C,e[8]),e[3]?H?H.p(e,t):((H=Er(e)).c(),H.m(o,A)):H&&(H.d(1),H=null),e[4]?N?N.p(e,t):((N=Mr(e)).c(),N.m(o,x)):N&&(N.d(1),N=null),e[5]?R?R.p(e,t):((R=Sr(e)).c(),R.m(o,null)):R&&(R.d(1),R=null),"active"===e[1]?L?L.p(e,t):((L=Cr(e)).c(),L.m(r,null)):L&&(L.d(1),L=null)},i:G,o:G,d(e){e&&j(r),H&&H.d(),N&&N.d(),R&&R.d(),L&&L.d(),n[18](null)}}}function xr(t,e,n){let r;O(t,mr,e=>n(9,r=e));let o,{bonuswalletid:i=""}=e,{bonusdate:s=""}=e,{bonusstatus:a=""}=e,{bonusname:u=""}=e,{bonustype:l=""}=e,{bonusamount:c=""}=e,{bonuswageringamount:h=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:f=""}=e,{lang:p="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,b=window.navigator.userAgent,_="PC"!==yr(b),v="";Object.keys(vr).forEach(e=>{_r(e,vr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,i=e.bonuswalletid),"bonusdate"in e&&n(0,s=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,u=e.bonusname),"bonustype"in e&&n(13,l=e.bonustype),"bonusamount"in e&&n(3,c=e.bonusamount),"bonuswageringamount"in e&&n(4,h=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,f=e.bonuscurrency),"lang"in e&&n(14,p=e.lang),"clientstyling"in e&&n(15,m=e.clientstyling),"clientstylingurl"in e&&n(16,y=e.clientstylingurl),"translationurl"in e&&n(17,g=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&p&&(e=p,D.set(e)),8192&t.$$.dirty&&l&&(n(8,v=l),"freeRound"===v?n(8,v="Free Spins"):"freeBet"===v&&n(8,v="Free Bet")),65664&t.$$.dirty&&y&&o){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(32896&t.$$.dirty&&m&&o){let e=document.createElement("style");e.innerHTML=m,o.appendChild(e)}var e;131072&t.$$.dirty&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{_r(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,u,c,h,d,f,o,v,r,_,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:i},window.location.href)},i,l,p,m,y,g,function(e){U[e?"unshift":"push"](()=>{o=e,n(7,o)})}]}function Dr(e,t,n){const r=e.slice();return r[43]=t[n],r[45]=n,r}function Or(e,t,n){const r=e.slice();return r[46]=t[n],r}function Pr(e){let n,r,o=e[14]("activeBonuses.invalidBonusCode")+"";return{c(){n=V("p"),r=z(o),X(n,"class","InvalidBonusCodeMessage"),X(n,"part","InvalidBonusCodeMessage")},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("activeBonuses.invalidBonusCode")+"")&&K(r,o)},d(e){e&&j(n)}}}function kr(t){let o,i=t[12],s=[];for(let e=0;e<i.length;e+=1)s[e]=Lr(Or(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();o=L()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);W(t,o,n)},p(t,n){if(4103&n[0]){let e;for(i=t[12],e=0;e<i.length;e+=1){var r=Or(t,i,e);s[e]?s[e].p(r,n):(s[e]=Lr(r),s[e].c(),s[e].m(o.parentNode,o))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){x(s,e),e&&j(o)}}}function Hr(e){let n,r,o=e[14]("activeBonuses.noActiveBonuses")+"";return{c(){n=V("p"),r=z(o)},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("activeBonuses.noActiveBonuses")+"")&&K(r,o)},d(e){e&&j(n)}}}function Nr(e){let n,r,o,i,s,a,u,l,c,h;return{c(){d(n=V("player-bonus-card"),"bonuswalletid",r=e[46].walletId),d(n,"bonusdate",o=e[46].granted),d(n,"bonusstatus",i=e[46].status),d(n,"bonusname",s=e[46].name),d(n,"bonustype",a=e[46].type),d(n,"bonusamount",u=e[46].grantedAmount),d(n,"bonuswageringamount",l=e[46].totalWR),d(n,"bonusremainingamount",c=e[46].currentAmount),d(n,"bonuscurrency",h=e[46].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[46].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[46].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[46].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[46].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[46].grantedAmount)&&d(n,"bonusamount",u),4096&t[0]&&l!==(l=e[46].totalWR)&&d(n,"bonuswageringamount",l),4096&t[0]&&c!==(c=e[46].currentAmount)&&d(n,"bonusremainingamount",c),4096&t[0]&&h!==(h=e[46].currency)&&d(n,"bonuscurrency",h),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Rr(e){let n,r,o,i,s,a,u;return{c(){d(n=V("player-bonus-card"),"bonuswalletid",r=e[46].walletId),d(n,"bonusdate",o=e[46].granted),d(n,"bonusstatus",i=e[46].status),d(n,"bonusname",s=e[46].name),d(n,"bonustype",a=e[46].type),d(n,"bonuscurrency",u=e[46].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[46].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[46].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[46].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[46].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[46].currency)&&d(n,"bonuscurrency",u),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Lr(e){let n;function r(e){return"freeRound"===e[46].type?Rr:Nr}let o=r(e),i=o(e);return{c(){i.c(),n=L()},m(e,t){i.m(e,t),W(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),(i=o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&j(n)}}}function Ir(n){let o,i,r,e,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,t,T,E,M,S=Array(n[10]),C=[];for(let e=0;e<S.length;e+=1)C[e]=Yr(Dr(n,S,e));return{c(){o=V("div"),i=V("span"),r=z("|<"),a=Z(),u=V("span"),l=z("<"),d=Z();for(let e=0;e<C.length;e+=1)C[e].c();f=Z(),p=V("span"),m=z(">"),b=Z(),_=V("span"),v=z(">|"),X(i,"class",e="BonusesFirst "+(0===n[11]?"Inactive":"")),X(i,"part",s="BonusesFirst "+(0===n[11]?"Inactive":"")),X(u,"class",c="BonusesPrev "+(0===n[11]?"Inactive":"")),X(u,"part",h="BonusesPrev "+(0===n[11]?"Inactive":"")),X(p,"class",y="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),X(p,"part",g="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),X(_,"class",w="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),X(_,"part",B="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),X(o,"class",t="BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":"")),X(o,"part",T="BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){W(e,o,t),$(o,i),$(i,r),$(o,a),$(o,u),$(u,l),$(o,d);for(let e=0;e<C.length;e+=1)C[e].m(o,null);$(o,f),$(o,p),$(p,m),$(o,b),$(o,_),$(_,v),E||(M=[R(i,"click",n[29]),R(u,"click",n[30]),R(p,"click",n[32]),R(_,"click",n[33])],E=!0)},p(t,n){if(2048&n[0]&&e!==(e="BonusesFirst "+(0===t[11]?"Inactive":""))&&X(i,"class",e),2048&n[0]&&s!==(s="BonusesFirst "+(0===t[11]?"Inactive":""))&&X(i,"part",s),2048&n[0]&&c!==(c="BonusesPrev "+(0===t[11]?"Inactive":""))&&X(u,"class",c),2048&n[0]&&h!==(h="BonusesPrev "+(0===t[11]?"Inactive":""))&&X(u,"part",h),265216&n[0]){let e;for(S=Array(t[10]),e=0;e<S.length;e+=1){var r=Dr(t,S,e);C[e]?C[e].p(r,n):(C[e]=Yr(r),C[e].c(),C[e].m(o,f))}for(;e<C.length;e+=1)C[e].d(1);C.length=S.length}3072&n[0]&&y!==(y="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&X(p,"class",y),3072&n[0]&&g!==(g="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&X(p,"part",g),3072&n[0]&&w!==(w="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&X(_,"class",w),3072&n[0]&&B!==(B="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&X(_,"part",B)},d(e){e&&j(o),x(C,e),E=!1,N(M)}}}function Yr(n){let r,o,i,s,a,u,e=n[45]+1+"";function l(){return n[31](n[45])}return{c(){r=V("span"),o=z(e),X(r,"class",i="BonusesPage "+(n[45]===n[11]?"BonusPageActive":"")),X(r,"part",s="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))},m(e,t){W(e,r,t),$(r,o),a||(u=R(r,"click",l),a=!0)},p(e,t){n=e,2048&t[0]&&i!==(i="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&X(r,"class",i),2048&t[0]&&s!==(s="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&X(r,"part",s)},d(e){e&&j(r),a=!1,u()}}}function Ur(n){let r,o,i,s,a,u,l,c,h,d,f,p,e,t,m,y,g=n[14]("activeBonuses.forfeitBonus")+"",b=n[14]("activeBonuses.forfeitBonusCancel")+"",_=n[14]("activeBonuses.forfeitBonusConfirm")+"";return{c(){r=V("div"),o=V("div"),i=V("div"),s=V("p"),a=z(g),u=Z(),l=V("div"),c=V("button"),h=z(b),d=Z(),f=V("button"),p=z(_),X(s,"class","ModalText"),X(s,"part","ModalText"),X(c,"class","ModalCancel"),X(c,"part","ModalCancel"),X(f,"class","ModalConfirm"),X(f,"part","ModalConfirm"),X(l,"class","ModalButtons"),X(l,"part","ModalButtons"),X(i,"class","ModalBody"),X(i,"part","ModalBody"),X(o,"class","ModalContent"),X(o,"part","ModalContent"),X(r,"class",e="ModalWrapper "+(n[15]?"ModalWrapperMobile":"")),X(r,"part",t="ModalWrapper "+(n[15]?"ModalWrapperMobile":""))},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(i,u),$(i,l),$(l,c),$(c,h),$(l,d),$(l,f),$(f,p),m||(y=[R(c,"click",n[20]),R(f,"click",n[21])],m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("activeBonuses.forfeitBonus")+"")&&K(a,g),16384&t[0]&&b!==(b=e[14]("activeBonuses.forfeitBonusCancel")+"")&&K(h,b),16384&t[0]&&_!==(_=e[14]("activeBonuses.forfeitBonusConfirm")+"")&&K(p,_)},d(e){e&&j(r),m=!1,N(y)}}}function Fr(n){let r,o=function(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,T,E,M=n[14]("activeBonuses.title")+"",S=n[14]("activeBonuses.bonusCode")+"",C=n[14]("activeBonuses.getBonus")+"",A=n[15]&&function(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y=n[14]("activeBonuses.title")+"";return{c(){r=V("div"),o=e("svg"),i=e("defs"),s=e("style"),a=z(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),u=e("g"),l=e("g"),c=e("path"),h=Z(),d=V("h2"),f=z(y),X(c,"class","aaa"),X(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),X(c,"transform","translate(15 15) rotate(180)"),X(l,"transform","translate(20 158)"),X(u,"transform","translate(-20 -158)"),X(o,"xmlns","http://www.w3.org/2000/svg"),X(o,"width","15"),X(o,"height","15"),X(o,"viewBox","0 0 15 15"),X(d,"class","ActiveBonusesTitleMobile"),X(d,"part","ActiveBonusesTitleMobile"),X(r,"class","MenuReturnButton"),X(r,"part","MenuReturnButton")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(o,u),$(u,l),$(l,c),$(r,h),$(r,d),$(d,f),p||(m=R(r,"click",n[27]),p=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("activeBonuses.title")+"")&&K(f,y)},d(e){e&&j(r),p=!1,m()}}}(n),x=n[5]&&Pr(n);function D(e){return 0===e[12].length?Hr:kr}let O=D(n),P=O(n),k=0!==n[12].length&&Ir(n),H=n[13]&&Ur(n);return{c(){r=V("div"),A&&A.c(),o=Z(),i=V("h2"),s=z(M),a=Z(),u=V("div"),l=V("label"),c=z(S),h=Z(),d=V("div"),f=V("input"),p=Z(),m=V("button"),y=z(C),g=Z(),x&&x.c(),b=Z(),_=V("div"),P.c(),v=Z(),k&&k.c(),w=Z(),H&&H.c(),B=L(),X(i,"class","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),X(i,"part","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),X(l,"for","BonusCode"),X(f,"class","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),X(f,"part","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),X(f,"type","text"),X(f,"id","BonusCode"),X(m,"class","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),X(m,"part","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),m.disabled=n[4],X(d,"class","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),X(d,"part","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),X(u,"class","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),X(u,"part","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),X(_,"class","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),X(_,"part","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),X(r,"class","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":"")),X(r,"part","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){W(e,r,t),A&&A.m(r,null),$(r,o),$(r,i),$(i,s),$(r,a),$(r,u),$(u,l),$(l,c),$(u,h),$(u,d),$(d,f),I(f,n[6]),$(d,p),$(d,m),$(m,y),$(u,g),x&&x.m(u,null),$(r,b),$(r,_),P.m(_,null),$(r,v),k&&k.m(r,null),W(e,w,t),H&&H.m(e,t),W(e,B,t),T||(E=[R(f,"input",n[28]),R(f,"keyup",n[17]),R(m,"click",n[19])],T=!0)},p(e,t){e[15]&&A.p(e,t),16384&t[0]&&M!==(M=e[14]("activeBonuses.title")+"")&&K(s,M),16384&t[0]&&S!==(S=e[14]("activeBonuses.bonusCode")+"")&&K(c,S),64&t[0]&&f.value!==e[6]&&I(f,e[6]),16384&t[0]&&C!==(C=e[14]("activeBonuses.getBonus")+"")&&K(y,C),16&t[0]&&(m.disabled=e[4]),e[5]?x?x.p(e,t):((x=Pr(e)).c(),x.m(u,null)):x&&(x.d(1),x=null),O===(O=D(e))&&P?P.p(e,t):(P.d(1),(P=O(e))&&(P.c(),P.m(_,null))),0!==e[12].length?k?k.p(e,t):((k=Ir(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),e[13]?H?H.p(e,t):((H=Ur(e)).c(),H.m(B.parentNode,B)):H&&(H.d(1),H=null)},d(e){e&&j(r),A&&A.d(),x&&x.d(),P.d(),k&&k.d(),e&&j(w),H&&H.d(e),e&&j(B),T=!1,N(E)}}}(n);return{c(){r=V("div"),o.c(),this.c=G},m(e,t){W(e,r,t),o.m(r,null),n[34](r)},p(e,t){o.p(e,t)},i:G,o:G,d(e){e&&j(r),o.d(),n[34](null)}}}function Gr(t,e,r){let n;O(t,mr,e=>r(14,n=e));let o,{endpoint:i=""}=e,{session:s=""}=e,{playerid:a=""}=e,{lang:u="en"}=e,{playercurrency:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,f=window.navigator.userAgent,p="PC"!==yr(f),m,y=!1,g="",b=0,_=0,v=0,w=0,B=0,T=[],E="",M=!1;Object.keys(br).forEach(e=>{gr(e,br[e])});const S=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(E=e.data.bonuswalletid,r(13,M=!0))},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:p},window.location.href)},A=t=>{let e={method:"GET",headers:{"X-SessionId":s}},n=new URL(`${i}/player/${a}/bonusWallet`);n.searchParams.append("filter","status=active"),n.searchParams.append("pagination",`offset=${t},limit=6`),fetch(n,e).then(e=>e.json()).then(e=>{r(10,w=Math.ceil(e.total/6)),0<=t-6&&r(7,b=t-6),t+6<e.total&&r(8,_=t+6),r(9,v=6*(w-1)),r(11,B=t/6),r(12,T=e.items)},e=>{console.error(e)})},x=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,M=!1)};return e=()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}),function(){if(k)return k;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e),t.$$set=e=>{"endpoint"in e&&r(22,i=e.endpoint),"session"in e&&r(23,s=e.session),"playerid"in e&&r(24,a=e.playerid),"lang"in e&&r(0,u=e.lang),"playercurrency"in e&&r(25,l=e.playercurrency),"clientstyling"in e&&r(1,c=e.clientstyling),"clientstylingurl"in e&&r(2,h=e.clientstylingurl),"translationurl"in e&&r(26,d=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&u&&(e=u,D.set(e)),29360128&t.$$.dirty[0]&&s&&a&&i&&A(0),12&t.$$.dirty[0]&&h&&o){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(10&t.$$.dirty[0]&&c&&o){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}var e;67108864&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gr(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,h,o,!0,y,g,b,_,v,w,B,T,M,n,p,C,()=>{r(4,m=!g)},A,()=>{let e=new URL(`${i}/player/${a}/claimbonus`),t={method:"POST",headers:{"X-SessionId":s,accept:"application/json"}};e.searchParams.append("currency",l),e.searchParams.append("bonusCode",g),fetch(e.href,t).then(e=>{200==e.status?(r(5,y=!1),A(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("activeBonuses.successMessage")}},window.location.href),"function"==typeof gtag&>ag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(a||"Not logged in"),bonusCode:""+g})):(r(5,y=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("activeBonuses.errorMessage")}},window.location.href))})},x,()=>{let e={method:"DELETE",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${i}/player/${a}/bonusWallet`);t.searchParams.append("bonusWalletID",E),fetch(t,e).then(e=>{200==e.status&&(A(0),x())})},i,s,a,l,d,()=>C(),function(){g=this.value,r(6,g)},()=>A(0),()=>A(b),e=>A(6*e),()=>A(_),()=>A(v),function(e){U[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ie{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:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-color-black, #000000);font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-color-black, #000000)}.BonusCardRow .BonusCardRowText.StatusActive{color:#0AA543}.BonusCardRow .BonusCardRowText.StatusExpired{color:#FD2839}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-color-primary-600, #99034F)}</style>",oe(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},xr,Ar,C,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&W(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),y()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),y()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),y()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),y()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),y()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),y()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),y()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),y()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),y()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),y()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),y()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),y()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),y()}});class $r extends ie{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'}.ActiveBonusesWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{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:30px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-color-primary, #D0046C)}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{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:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-color-primary-600, #99034F)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, #FD2839)}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{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:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-color-primary-600, #99034F)}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-color-primary, #D0046C);font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}</style>",oe(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},Gr,Fr,C,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&W(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),y()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),y()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),y()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),y()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),y()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),y()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),y()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),y()}}return customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",$r),$r});
|
|
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 G(){}function E(e){return e()}function M(){return Object.create(null)}function N(e){e.forEach(E)}function S(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function A(e,...t){if(null==e)return G;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function O(e,t,n){e.$$.on_destroy.push(A(t,n))}function $(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode.removeChild(e)}function x(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function V(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function Z(){return z(" ")}function L(){return z("")}function R(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function X(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function d(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:X(e,t,n)}function K(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function I(e,t){e.value=null==t?"":t}function P(e){const t={};for(const n of e)t[n.name]=n.value;return t}let k;function H(e){k=e}const Y=[],U=[],F=[],q=[],J=Promise.resolve();let Q=!1;function ee(e){F.push(e)}const te=new Set;let ne=0;function y(){const e=k;do{for(;ne<Y.length;){const e=Y[ne];ne++,H(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),N(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(ee))}for(H(null),Y.length=0,ne=0;U.length;)U.pop()();for(let e=0;e<F.length;e+=1){const r=F[e];te.has(r)||(te.add(r),r())}}while(F.length=0,Y.length);for(;q.length;)q.pop()();Q=!1,te.clear(),H(e)}const re=new Set;function oe(r,e,t,n,o,i,s,a=[-1]){var u=k;H(r);const l=r.$$={fragment:null,ctx:null,props:i,update:G,not_equal:o,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return l.ctx&&o(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(Y.push(e),Q||(Q=!0,J.then(y)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],l.update(),c=!0,N(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){i=e.target;const G=Array.from(i.childNodes);l.fragment&&l.fragment.l(G),G.forEach(j)}else l.fragment&&l.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(re.delete(a),a.i(void 0));{var h=r;s=e.target;t=e.anchor;n=e.customElement;const{fragment:d,on_mount:f,on_destroy:p,after_update:m}=h.$$;d&&d.m(s,t),n||ee(()=>{var e=f.map(E).filter(S);p?p.push(...e):N(e),h.$$.on_mount=[]}),m.forEach(ee)}y()}H(u)}let ie;"function"==typeof HTMLElement&&(ie=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(S);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){N(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(N(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=G}$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 se,ae,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ue="URLSearchParams"in a,le="Symbol"in a&&"iterator"in Symbol,ce="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),he="FormData"in a,de="ArrayBuffer"in a;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function pe(e){return e="string"!=typeof e?String(e):e}function me(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return le&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?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 ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ge(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ge(t);return t.readAsArrayBuffer(e),n}function _e(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ve(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:he&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():de&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):de&&(ArrayBuffer.prototype.isPrototypeOf(e)||ae(e))?this._bodyArrayBuffer=_e(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):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ye(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?ye(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(be)}),this.text=function(){var e,t,n=ye(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ge(e=new FileReader),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},he&&(this.formData=function(){return this.text().then(Be)}),this.json=function(){return this.text().then(JSON.parse)},this}de&&(se=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ae=ArrayBuffer.isView||function(e){return e&&-1<se.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=fe(e),t=pe(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[fe(e)]},u.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},u.prototype.set=function(e,t){this.map[fe(e)]=pe(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),me(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),me(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),me(n)},le&&(u.prototype[Symbol.iterator]=u.prototype.entries);var we=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(e,t){if(!(this instanceof l))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 l){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(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 u(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<we.indexOf(n)?n:e),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||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Be(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))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 u(t.headers),this.url=t.url||"",this._initBody(e)}l.prototype.clone=function(){return new l(this,{body:this._bodyInit})},ve.call(l.prototype),ve.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308],h=(c.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new h}catch(G){(h=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),h.prototype.constructor=h}function Ee(r,s){return new Promise(function(o,e){var t=new l(r,s);if(t.signal&&t.signal.aborted)return e(new h("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var e,n,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",n=new u,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new c(r,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new h("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(ce?i.responseType="blob":de&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof u?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,pe(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",n)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ee.polyfill=!0,a.fetch||(a.fetch=Ee,a.Headers=u,a.Request=l,a.Response=c),self.fetch.bind(self);var Me=function(e,t){return(Me=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 Se(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}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ce(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 Ae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function xe(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function f(e){return"function"==typeof e}function De(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 Oe=De(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 Pe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ce(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(f(i))try{i()}catch(e){o=e instanceof Oe?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var u=Ce(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Re(c)}catch(e){o=null!=o?o:[],e instanceof Oe?o=xe(xe([],Ae(o)),Ae(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(o)throw new Oe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Re(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Pe(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((r=new n).closed=!0,r);var ke=n,He=ke.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ne(e){return e instanceof ke||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function Re(e){f(e)?e():e.unsubscribe()}var Le=void 0,Ie=!1,Ye=!1,Ue={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Ue.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,xe([e,t],Ae(n))):setTimeout.apply(void 0,xe([e,t],Ae(n)))},clearTimeout:function(e){var t=Ue.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var Ge=null;function $e(e){if(Ie){var t=!Ge;if(t&&(Ge={errorThrown:!1,error:null}),e(),t){var t=Ge,n=t.errorThrown,t=t.error;if(Ge=null,n)throw t}}else e()}Se(t,We=ke),t.create=function(e,t,n){return new Ke(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,We.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var We,je=t,Ve=Function.prototype.bind;function t(e){var t=We.call(this)||this;return t.isStopped=!1,e?Ne(t.destination=e)&&e.add(t):t.destination=et,t}function ze(e,t){return Ve.call(e,t)}Je.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Qe(e)}},Je.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Qe(e)}else Qe(e)},Je.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Qe(e)}};var Ze,Xe=Je,Ke=(Se(qe,Ze=je),qe);function qe(e,t,n){var r=Ze.call(this)||this,n=f(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ye?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ze(e.next,t),error:e.error&&ze(e.error,t),complete:e.complete&&ze(e.complete,t)}):e;return r.destination=new Xe(n),r}function Je(e){this.partialObserver=e}function Qe(e){var t=e;Ue.setTimeout(function(){throw t})}var et={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},r="function"==typeof Symbol&&Symbol.observable||"@@observable";function tt(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof je||r&&f(r.next)&&f(r.error)&&f(r.complete)&&Ne(r)?e:new Ke(e,t,n);return $e(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=rt(e))(function(e,t){var n=new Ke({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[r]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?tt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=rt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var nt=o;function o(e){e&&(this._subscribe=e)}function rt(e){return null!=(e=null!=e?e:Le)?e:Promise}var ot,it,st,at=De(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),r=(Se(s,st=nt),s.prototype.lift=function(e){var t=new ut(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new at},s.prototype.next=function(o){var i=this;$e(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ce(i.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var n=this;$e(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)}})},s.prototype.complete=function(){var t=this;$e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),st.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?He:(this.currentObservers=null,o.push(e),new ke(function(){t.currentObservers=null,Pe(o,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},s.prototype.asObservable=function(){var e=new nt;return e.source=this,e},s.create=function(e,t){return new ut(e,t)},s),ut=(Se(i,it=r),i.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},i.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},i.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},i.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:He},i),lt={now:function(){return(lt.delegate||Date).now()},delegate:void 0},ct=(Se(ht,ot=r),ht.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(r.push(e),o||r.push(i.now()+t)),this._trimBuffer(),ot.prototype.next.call(this,e)},ht.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},ht.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=t.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},ht);function ht(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=lt);var r=ot.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 i(e,t){var n=it.call(this)||this;return n.destination=e,n.source=t,n}function s(){var e=st.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let dt=[],ft={};const pt=[];function mt(r,o=G){let i;const s=new Set;function a(e){if(C(r,e)&&(r=e,i)){const e=!pt.length;for(const e of s)e[1](),pt.push(e,r);if(e){for(let e=0;e<pt.length;e+=2)pt[e][0](pt[e+1]);pt.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=G){const n=[e,t];return s.add(n),1===s.size&&(i=o(a)||G),e(r),()=>{s.delete(n),0===s.size&&(i(),i=null)}}}}function yt(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:mt(t,t=>{let n=!1;const r=[];let o=0,i=G;const s=()=>{var e;o||(i(),e=a(u?r[0]:r,t),c?t(e):i=S(e)?e:G)},e=l.map((e,t)=>A(e,e=>{r[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}));return n=!0,s(),function(){N(e),i()}}).subscribe}}function gt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===bt));var t}var bt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Et(Array.isArray(e)?[]:{},e,t):e}function vt(e,t,n){return e.concat(t).map(function(e){return _t(e,n)})}function wt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Bt(e,t){try{return t in e}catch(e){return!1}}function Tt(r,o,i){var s={};return i.isMergeableObject(r)&&wt(r).forEach(function(e){s[e]=_t(r[e],i)}),wt(o).forEach(function(t){var e,n;(!Bt(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Bt(r,t)&&i.isMergeableObject(o[t])?s[t]=function(e){if(!e.customMerge)return Et;e=e.customMerge(t);return"function"==typeof e?e:Et}(i)(r[t],o[t],i):s[t]=_t(o[t],i))}),s}function Et(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||vt,n.isMergeableObject=n.isMergeableObject||gt,n.cloneUnlessOtherwiseSpecified=_t;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Tt(e,t,n):_t(t,n)}Et.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Et(e,t,n)},{});throw new Error("first argument should be an array")};var Mt=Et,St=function(e,t){return(St=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 Ct(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}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,g,At,b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function xt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Dt(e){return e.type===g.literal}function Ot(e){return e.type===g.number}function Pt(e){return e.type===g.date}function kt(e){return e.type===g.time}function Ht(e){return e.type===g.select}function Nt(e){return e.type===g.plural}function Rt(e){return e.type===g.tag}function Lt(e){return e&&"object"==typeof e&&e.type===At.number}function It(e){return e&&"object"==typeof e&&e.type===At.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=g=g||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=At=At||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 Ut=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,$t=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function jt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Gt,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 Vt(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 zt(e){return Vt(e)||{}}function Zt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return b(b({},e),zt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace($t,function(e,t,n,r,o,i){if(t)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ft.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ft,function(e,t,n,r,o,i){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=b(b({},s),jt(i)))}else Gt.test(o.stem)?s=b(b({},s),jt(o.stem)):((i=Vt(o.stem))&&(s=b(b({},s),i)),(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)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=b(b({},s),r)))}return s}var Xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Kt=new RegExp("^".concat(r.source,"*")),qt=new RegExp("".concat(r.source,"*$"));function _(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Jt=!!String.fromCodePoint,Qt=!!Object.fromEntries,en=!!String.prototype.codePointAt,tn=!!String.prototype.trimStart,nn=!!String.prototype.trimEnd,rn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},on=!0;try{on="a"===(null==(Sn=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Sn[0])}catch(G){on=!1}var sn,an,un=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ln=Jt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;i<o;){if(1114111<(n=e[i++]))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},cn=Qt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],o=o[1];t[i]=o}return t},hn=en?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},dn=tn?function(e){return e.trimStart()}:function(e){return e.replace(Kt,"")},fn=nn?function(e){return e.trimEnd()}:function(e){return e.replace(qt,"")};function pn(e,t){return new RegExp(e,t)}an=on?(sn=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return sn.lastIndex=t,null!=(t=sn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=hn(e,t);if(void 0===o||gn(o)||(33<=(n=o)&&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(o),t+=65536<=o?2:1}return ln.apply(void 0,r)};p.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},p.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,_(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&yn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:g.pound,location:_(i,this.clonePosition())})}}}return{val:r,err:null}},p.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:g.literal,value:"<".concat(r,"/>"),location:_(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yn(this.char()))return this.error(m.INVALID_TAG,_(e,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,_(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:g.tag,value:r,children:t,location:_(n,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,_(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,_(n,this.clonePosition()))}return this.error(m.INVALID_TAG,_(n,this.clonePosition()))},p.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())},p.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=_(n,this.clonePosition());return{val:{type:g.literal,value:r,location:n},err:null}},p.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(yn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},p.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 ln.apply(void 0,t)},p.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(),ln(n))},p.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,_(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,_(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:g.argument,value:r,location:_(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,_(n,this.clonePosition()))}},p.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=an(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:_(e,this.clonePosition())}},p.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,_(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(f=fn(p.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:_(l,this.clonePosition())}}if((l=this.tryParseArgumentClose(r)).err)return l;var c=_(r,this.clonePosition());if(u&&un(null==u?void 0:u.style,"::",0)){var h=dn(u.style.slice(2));if("number"===s)return(p=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?p:{val:{type:g.number,value:n,location:c,style:p.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,c);var d=h,f=(this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Xt[t||""]||Xt[n||""]||Xt["".concat(n,"-001")]||Xt["001"])[0]}(t);for("H"!=u&&"k"!=u||(a=0);0<a--;)n+="a";for(;0<s--;)n=u+n}else n+="J"===o?"H":o}return n}(h,this.locale)),{type:At.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},d.replace(Yt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}});return{val:{type:"date"===s?g.date:g.time,value:n,location:c,style:f},err:null}}return{val:{type:"number"===s?g.number:"date"===s?g.date:g.time,value:n,location:c,style:null!=(h=null==u?void 0:u.style)?h:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,_(d,b({},d)));this.bumpSpace();var p,f=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),f=this.parseIdentifierIfPossible(),c=p.val}u=this.tryParsePluralOrSelectOptions(e,s,t,f);if(u.err)return u;if((l=this.tryParseArgumentClose(r)).err)return l;h=_(r,this.clonePosition());return"select"===s?{val:{type:g.select,value:n,options:cn(u.val),location:h},err:null}:{val:{type:g.plural,value:n,options:cn(u.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,_(i,a))}},p.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,_(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},p.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_(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}},p.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(Ut).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:At.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Zt(n):{}},err:null}},p.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,i=[],s=new Set,a=r.value,u=r.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=_(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,n);if(l.err)return l;var h=this.tryParseArgumentClose(c);if(h.err)return h;i.push([a,{value:l.val,location:_(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:i,err:null}},p.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=_(r,this.clonePosition());return o?rn(i*=n)?{val:i,err:null}:this.error(t,r):this.error(e,r)},p.prototype.offset=function(){return this.position.offset},p.prototype.isEOF=function(){return this.offset()===this.message.length},p.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},p.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=hn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},p.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},p.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))},p.prototype.bumpIf=function(e){if(un(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},p.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},p.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},p.prototype.bumpSpace=function(){for(;!this.isEOF()&&gn(this.char());)this.bump()},p.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var mn=p;function p(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function yn(e){return 97<=e&&e<=122||65<=e&&e<=90}function gn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function bn(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new mn(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ht(e)||Nt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ot(e)&&Lt(e.style)||(Pt(e)||kt(e))&&It(e.style)?delete e.style.location:Rt(e)&&n(e.children)})}(e.val),e.val}function _n(e,t){var n=t&&t.cache?t.cache:Cn,r=t&&t.serializer?t.serializer:Tn;return(t&&t.strategy?t.strategy:function(e,t){return Bn(e,this,1===e.length?vn:wn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function vn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function wn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function Bn(e,t,n,r,o){return n.bind(t,e,r,o)}var Tn=function(){return JSON.stringify(arguments)};function En(){this.cache=Object.create(null)}En.prototype.get=function(e){return this.cache[e]},En.prototype.set=function(e,t){this.cache[e]=t};var Mn,Sn,Cn={create:function(){return new En}},An={variadic:function(e,t){return Bn(e,this,wn,t.cache.create(),t.serializer)},monadic:function(e,t){return Bn(e,this,vn,t.cache.create(),t.serializer)}};(Sn=Mn=Mn||{}).MISSING_VALUE="MISSING_VALUE",Sn.INVALID_VALUE="INVALID_VALUE",Sn.MISSING_INTL_API="MISSING_INTL_API";Ct(Fn,kn=Error),Fn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,xn,Dn,Pn,kn,Hn=Fn,Nn=(Ct(Un,Pn=Hn),Un),Rn=(Ct(Yn,Dn=Hn),Yn),Ln=(Ct(In,xn=Hn),In);function In(e,t){return xn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Mn.MISSING_VALUE,t)||this}function Yn(e,t,n){return Dn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Mn.INVALID_VALUE,n)||this}function Un(e,t,n,r){return Pn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Mn.INVALID_VALUE,r)||this}function Fn(e,t,n){e=kn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Gn(e,t,n,r,o,i,s){if(1===e.length&&Dt(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Dt(c))a.push({type:v.literal,value:c.value});else if(c.type===g.pound)"number"==typeof i&&a.push({type:v.literal,value:n.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Ln(h,s);h=o[h];if(c.type===g.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?v.literal:v.object,value:h});else if(Pt(c)){var d="string"==typeof c.style?r.date[c.style]:It(c.style)?c.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(kt(c))d="string"==typeof c.style?r.time[c.style]:It(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Ot(c))(d="string"==typeof c.style?r.number[c.style]:Lt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,d).format(h)});else{if(Rt(c)){var f=c.children,p=c.value,m=o[p];if("function"!=typeof m)throw new Rn(p,"function",s);p=m(Gn(f,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if(Ht(c)){if(!(y=c.options[h]||c.options.other))throw new Nn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gn(y.value,t,n,r,o))}else if(Nt(c)){if(!(y=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Hn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Mn.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),y=c.options[m]||c.options.other}if(!y)throw new Nn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gn(y.value,t,n,r,o,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function $n(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=v=v||{})[r.literal=0]="literal",r[r.object=1]="object",Object.defineProperty(w,"defaultLocale",{get:function(){return w.memoizedDefaultLocale||(w.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),w.memoizedDefaultLocale},enumerable:!1,configurable:!0}),w.memoizedDefaultLocale=null,w.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},w.__parse=bn,w.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Wn=w;function w(e,t,n,r){var o,i,s=this;if(void 0===t&&(t=w.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Gn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=w.resolveLocale(t),"string"==typeof e){if(this.message=e,!w.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=w.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=w.formats,(i=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=i[t])?b(b(b({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=b(b({},n[t]),r[t]||{}),e},{})):n),e},b({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:$n((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:An.variadic}),getDateTimeFormat:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,xt([void 0],t,!1)))},{cache:$n(t.dateTime),strategy:An.variadic}),getPluralRules:_n(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,xt([void 0],t,!1)))},{cache:$n(t.pluralRules),strategy:An.variadic})}}const B={},jn=(e,t,n)=>n&&(t in B||(B[t]={}),e in B[t]||(B[t][e]=n),n),Vn=(t,n)=>{if(null!=n){if(n in B&&t in B[n])return B[n][t];var r=ur(n);for(let e=0;e<r.length;e++){var o=function(e,n){if(!Xn(e))return null;e=function(e){return zn[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const o=r.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const r=o.slice(e,o.length).join(".");if(r in t){t=t[r];break}}t=t[o[e]]}else t=void 0;return t}}(r[e],t);if(o)return jn(t,n,o)}}};let zn;const Zn=mt({});function Xn(e){return e in zn}function Kn(t,...n){delete B[t],Zn.update(e=>(e[t]=Mt.all([e[t]||{},...n]),e))}yt([Zn],([e])=>Object.keys(e)),Zn.subscribe(e=>zn=e);const qn={};function Jn(e){return qn[e]}function Qn(e){return null!=e&&ur(e).some(e=>{return null==(e=Jn(e))?void 0:e.size})}const er={};function tr(e){if(!Qn(e))return e in er?er[e]:Promise.resolve();const t=ur(e).map(e=>{var t=Jn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return er[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return qn[t].delete(n),0===qn[t].size&&delete qn[t],e().then(e=>e.default||e)}));return n.then(e=>Kn(r,...e))}})).then(()=>{if(Qn(e))return tr(e);delete er[e]}),er[e]}function nr(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const rr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const or=mt(!1);let ir;const sr=mt(null);function ar(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function ur(e,t=rr.fallbackLocale){e=ar(e);return t?[...new Set([...e,...ar(t)])]:e}function T(){return null!=ir?ir:void 0}sr.subscribe(e=>{ir=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const D=Object.assign(Object.assign({},sr),{set:t=>{if(t&&function(e){if(null!=e){var t=ur(e);for(let e=0;e<t.length;e++){var n=t[e];if(Xn(n))return n}}}(t)&&Qn(t)){var n=rr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=T()&&n?e=window.setTimeout(()=>or.set(!0),n):or.set(!0),tr(t).then(()=>{sr.set(t)}).finally(()=>{clearTimeout(e),or.set(!1)})}return sr.set(t)}}),lr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},cr=(e,t)=>{var n=rr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=cr("number",n)),new Intl.NumberFormat(t,e)}),dr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=cr("date",n):0===Object.keys(e).length&&(e=cr("date","short")),new Intl.DateTimeFormat(t,e)}),fr=lr(e=>{var{locale:t,format:n}=e,e=nr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=cr("time",n):0===Object.keys(e).length&&(e=cr("time","short")),new Intl.DateTimeFormat(t,e)}),pr=lr((e,t=T())=>new Wn(e,t,rr.formats,{ignoreTag:rr.ignoreTag})),mr=yt([D,Zn],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:s=T(),default:a}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Vn(e,s);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(r=null!=(n=null==(n=(r=rr).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!i)return u;let l=u;try{l=pr(u,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l}),yr=(yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return fr(Object.assign({locale:t},e))})(t).format(e)),yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return dr(Object.assign({locale:t},e))})(t).format(e)),yt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=nr(e,["locale"]);return hr(Object.assign({locale:t},e))})(t).format(e)),yt([D,Zn],()=>(e,t=T())=>Vn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==dt.indexOf(e)&&(t=new ct(t),ft[e]=t,dt.push(e)),ft[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function gr(e,t){Kn(e,t)}const br={en:{activeBonuses:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"}},"zh-hk":{activeBonuses:{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"}},fr:{activeBonuses:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"}},ro:{activeBonuses:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"}},es:{activeBonuses:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"}},pt:{activeBonuses:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"}}};function _r(e,t){Kn(e,t)}const vr={en:{bonusCard:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Amount",remainingBonus:"Remaining Bonus Amount",forfeitBonus:"Forfeit Bonus"}},"zh-hk":{bonusCard:{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注金額",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金"}},fr:{bonusCard:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Montant de la mise",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus"}},ro:{bonusCard:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Sumă de pariat",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul"}},es:{bonusCard:{date:"Fecha de envío:",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Monto apostado",remainingBonus:"Monto restante de Bono",forfeitBonus:"Perder Bono"}},pt:{bonusCard:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Valor da aposta",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda"}}};Br=wr={path:void 0,exports:{},require:function(e,t){return On(null==t&&wr.path)}},wr.exports,Br.exports=function(){var R;function p(){return R.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function L(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function I(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(m(e,t))return;return 1}function a(e){return void 0===e}function Y(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function U(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var n=[],r=e.length,o=0;o<r;++o)n.push(t(e[o],o));return n}function G(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=y(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=l(NaN);return null!=e?G(y(t),e):y(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=p.momentProperties=[],z=!1;function Z(e,t){var n,r,o,i=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=y(t)),a(t._locale)||(e._locale=t._locale),0<i)for(n=0;n<i;n++)a(o=t[r=V[n]])||(e[r]=o);return e}function X(e){Z(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function u(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function K(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(i,s){var a=!0;return G(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,i),a){for(var e,t,n=[],r=arguments.length,o=0;o<r;o++){if(e="","object"==typeof arguments[o]){for(t in e+="\n["+o+"] ",arguments[0])m(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[o];n.push(e)}K(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var q={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),q[e]||(K(t),q[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=G({},e);for(n in t)m(t,n)&&(L(e[n])&&L(t[n])?(r[n]={},G(r[n],e[n]),G(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)m(e,n)&&!m(t,n)&&L(e[n])&&(r[n]=G({},r[n]));return r}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function i(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},ie={};function r(e,t,n,r){var o="string"==typeof r?function(){return this[r]()}:r;e&&(ie[e]=o),t&&(ie[t[0]]=function(){return i(o.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),oe[t]=oe[t]||function(r){for(var e,o=r.match(ne),t=0,i=o.length;t<i;t++)ie[o[t]]?o[t]=ie[o[t]]:o[t]=(e=o[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<i;n++)t+=c(o[n])?o[n].call(e,r):o[n];return t}}(t),oe[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var ue={};function t(e,t){var n=e.toLowerCase();ue[n]=ue[n+"s"]=ue[t]=e}function h(e){return"string"==typeof e?ue[e]||ue[e.toLowerCase()]:void 0}function le(e){var t,n,r={};for(n in e)m(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,n),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=f(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),He(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var o=/\d/,g=/\d\d/,me=/\d{3}/,ye=/\d{4}/,ge=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ve=/\d{1,3}/,we=/\d{1,4}/,Be=/[+-]?\d{1,6}/,Te=/\d+/,Ee=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,_=/[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 v(e,n,r){Ae[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Ce(e,t){return m(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},xe={};function B(e,n){var t,r,o=n;for("string"==typeof e&&(e=[e]),Y(n)&&(o=function(e,t){t[n]=f(e)}),r=e.length,t=0;t<r;t++)xe[e[t]]=o}function De(e,o){B(e,function(e,t,n,r){n._w=n._w||{},o(e,n._w,n,r)})}var T,E=0,M=1,S=2,C=3,A=4,x=5,Oe=6,Pe=7,ke=8;function He(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2}T=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),v("M",b),v("MM",b,g),v("MMM",function(e,t){return t.monthsShortRegex(e)}),v("MMMM",function(e,t){return t.monthsRegex(e)}),B(["M","MM"],function(e,t){t[M]=f(e)-1}),B(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[M]=r:y(n).invalidMonth=e});var Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ie=_,Ye=_;function Ue(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!Y(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),He(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Fe(e){return null!=e?(Ue(this,e),p.updateOffset(this,!0),this):fe(this,"Month")}function Ge(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],o=[],i=0;i<12;i++)t=l([2e3,i]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),o.push(this.months(t,"")),o.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),o.sort(e),i=0;i<12;i++)n[i]=w(n[i]),r[i]=w(r[i]);for(i=0;i<24;i++)o[i]=w(o[i]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function $e(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),v("Y",Ee),v("YY",b,g),v("YYYY",we,ye),v("YYYYY",Be,ge),v("YYYYYY",Be,ge),B(["YYYYY","YYYYYY"],E),B("YYYY",function(e,t){t[E]=2===e.length?p.parseTwoDigitYear(e):f(e)}),B("YY",function(e,t){t[E]=p.parseTwoDigitYear(e)}),B("Y",function(e,t){t[E]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var We=de("FullYear",!0);function je(e,t,n,r,o,i,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function Ze(e,t,n,r,o){var i,t=1+7*(t-1)+(7+n-r)%7+ze(e,r,o),n=t<=0?$e(i=e-1)+t:t>$e(e)?(i=e+1,t-$e(e)):(i=e,t);return{year:i,dayOfYear:n}}function Xe(e,t,n){var r,o,i=ze(e.year(),t,n),i=Math.floor((e.dayOfYear()-i-1)/7)+1;return i<1?r=i+D(o=e.year()-1,t,n):i>D(e.year(),t,n)?(r=i-D(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function D(e,t,n){var r=ze(e,t,n),t=ze(e+1,t,n);return($e(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),v("w",b),v("ww",b,g),v("W",b),v("WW",b,g),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=f(e)});function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),v("d",b),v("e",b),v("E",b),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:y(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=f(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=_,tt=_,nt=_;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,o=[],i=[],s=[],a=[],u=0;u<7;u++)r=l([2e3,1]).day(u),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),o.push(t),i.push(n),s.push(r),a.push(t),a.push(n),a.push(r);o.sort(e),i.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ot(){return this.hours()%12||12}function it(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,ot),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+ot.apply(this)+i(this.minutes(),2)}),r("hmmss",0,0,function(){return""+ot.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),it("a",!0),it("A",!1),t("hour","h"),n("hour",13),v("a",st),v("A",st),v("H",b),v("h",b),v("k",b),v("HH",b,g),v("hh",b,g),v("kk",b,g),v("hmm",be),v("hmmss",_e),v("Hmm",be),v("Hmmss",_e),B(["H","HH"],C),B(["k","kk"],function(e,t,n){e=f(e);t[C]=24===e?0:e}),B(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),B(["h","hh"],function(e,t,n){t[C]=f(e),y(n).bigHour=!0}),B("hmm",function(e,t,n){var r=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r)),y(n).bigHour=!0}),B("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r,2)),t[x]=f(e.substr(o)),y(n).bigHour=!0}),B("Hmm",function(e,t,n){var r=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r))}),B("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[C]=f(e.substr(0,r)),t[A]=f(e.substr(r,2)),t[x]=f(e.substr(o))});_=de("Hours",!0);var at,ut={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:Ne,monthsShort:Re,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},lt={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ct(e[i]).split("-")).length,n=(n=ct(e[i+1]))?n.split("-"):null;0<t;){if(r=dt(o.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}(o,n)>=t-1)break;t--}i++}return at}function dt(t){var e;if(void 0===O[t]&&Br&&Br.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),ft(e)}catch(e){O[t]=null}return O[t]}function ft(e,t){return e&&((t=a(t)?P(e):pt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function pt(e,t){if(null===t)return delete O[e],null;var n,r=ut;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,t)),lt[e]&<[e].forEach(function(e){pt(e.name,e.config)}),ft(e),O[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function mt(e){var t=e._a;return t&&-2===y(e).overflow&&(t=t[M]<0||11<t[M]?M:t[S]<1||t[S]>He(t[E],t[M])?S:t[C]<0||24<t[C]||24===t[C]&&(0!==t[A]||0!==t[x]||0!==t[Oe])?C:t[A]<0||59<t[A]?A:t[x]<0||59<t[x]?x:t[Oe]<0||999<t[Oe]?Oe:-1,y(e)._overflowDayOfYear&&(t<E||S<t)&&(t=S),y(e)._overflowWeeks&&-1===t&&(t=Pe),y(e)._overflowWeekday&&-1===t&&(t=ke),y(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["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]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,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}))$/,Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,o,i,s,a=e._i,u=yt.exec(a)||gt.exec(a),a=_t.length,l=vt.length;if(u){for(y(e).iso=!0,t=0,n=a;t<n;t++)if(_t[t][1].exec(u[1])){o=_t[t][0],r=!1!==_t[t][2];break}if(null==o)return e._isValid=!1;if(u[3]){for(t=0,n=l;t<n;t++)if(vt[t][1].exec(u[3])){i=(u[2]||" ")+vt[t][0];break}if(null==i)return e._isValid=!1}if(!r&&null!=i)return e._isValid=!1;if(u[4]){if(!bt.exec(u[4]))return e._isValid=!1;s="Z"}e._f=o+(i||"")+(s||""),xt(e)}else e._isValid=!1}function Mt(e,t,n,r,o,i){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&e.push(parseInt(i,10)),e}function St(e){var t,n,r,o,i=Bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=Mt(i[4],i[3],i[2],i[5],i[6],i[7]),n=i[1],r=t,o=e,n&&Je.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(y(o).weekdayMismatch=!0,o._isValid=!1):(e._a=t,e._tzm=(n=i[8],r=i[9],o=i[10],n?Tt[n]:r?0:((n=parseInt(o,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function At(e){var t,n,r,o,i,s,a,u,l,c,h,d=[];if(!e._d){for(c=e,h=new Date(p.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[S]&&null==e._a[M]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=Ct(h.GG,c._a[E],Xe(k(),1,4).year),o=Ct(h.W,1),((i=Ct(h.E,1))<1||7<i)&&(u=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,l=Xe(k(),s,a),r=Ct(h.gg,c._a[E],l.year),o=Ct(h.w,l.week),null!=h.d?((i=h.d)<0||6<i)&&(u=!0):null!=h.e?(i=h.e+s,(h.e<0||6<h.e)&&(u=!0)):i=s),o<1||o>D(r,s,a)?y(c)._overflowWeeks=!0:null!=u?y(c)._overflowWeekday=!0:(l=Ze(r,o,i,s,a),c._a[E]=l.year,c._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(h=Ct(e._a[E],n[E]),(e._dayOfYear>$e(h)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),u=Ve(h,0,e._dayOfYear),e._a[M]=u.getUTCMonth(),e._a[S]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[C]&&0===e._a[A]&&0===e._a[x]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[C]=0),e._d=(e._useUTC?Ve:je).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[C]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],y(e).empty=!0;for(var t,n,r,o=""+e._i,i=o.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,u=0;u<a;u++)r=n[u],(t=(o.match(Ce(r,e))||[])[0])&&(0<(h=o.substr(0,o.indexOf(t))).length&&y(e).unusedInput.push(h),o=o.slice(o.indexOf(t)+t.length),s+=t.length),ie[r]?(t?y(e).empty=!1:y(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&m(xe,h)&&xe[h](d,f._a,f,h)):e._strict&&!t&&y(e).unusedTokens.push(r);y(e).charsLeftOver=i-s,0<o.length&&y(e).unusedInput.push(o),e._a[C]<=12&&!0===y(e).bigHour&&0<e._a[C]&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[C]=(i=e._locale,l=e._a[C],null==(c=e._meridiem)?l:null!=i.meridiemHour?i.meridiemHour(l,c):null!=i.isPM?((i=i.isPM(c))&&l<12&&(l+=12),l=i||12!==l?l:0):l),null!==(c=y(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),At(e),mt(e)}else St(e);else Et(e);var l,c,h,d,f}function Dt(e){var t,n=e._i,r=e._f;{var o,i;if(e._locale=e._locale||P(e._l),null===n||void 0===r&&""===n)return W({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),u(n)?new X(mt(n)):(U(n)?e._d=n:s(r)?function(e){var t,n,r,o,i,s,a=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,e._d=new Date(NaN);for(o=0;o<u;o++)i=0,s=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],xt(t),$(t)&&(s=!0),i=(i+=y(t).charsLeftOver)+10*y(t).unusedTokens.length,y(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||s)&&(r=i,n=t,s&&(a=!0));G(e,n||t)}(e):r?xt(e):a(r=(n=e)._i)?n._d=new Date(p.now()):U(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(o=n,null===(i=wt.exec(o._i))?(Et(o),!1===o._isValid&&(delete o._isValid,St(o),!1===o._isValid&&(delete o._isValid,o._strict?o._isValid=!1:p.createFromInputFallback(o)))):o._d=new Date(+i[1])):s(r)?(n._a=F(r.slice(0),function(e){return parseInt(e,10)}),At(n)):L(r)?(o=n)._d||(t=void 0===(i=le(o._i)).day?i.date:i.day,o._a=F([i.year,i.month,t,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),At(o)):Y(r)?n._d=new Date(r):p.createFromInputFallback(n),$(e)||(e._d=null),e)}}function Ot(e,t,n,r,o){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(L(e)&&I(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,(o=new X(mt(Dt(o=i))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function k(e,t,n,r){return Ot(e,t,n,r,!1)}p.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Pt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return k();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var e=le(e),t=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,i=e.day||0,s=e.hour||0,a=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=kt.length;for(t in e)if(m(e,t)&&(-1===T.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[kt[n]]){if(r)return!1;parseFloat(e[kt[n]])!==f(e[kt[n]])&&(r=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*a+1e3*s*60*60,this._days=+i+7*o,this._months=+r+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Nt(e){return e instanceof Ht}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+i(~~(e/60),2)+n+i(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),v("Z",Se),v("ZZ",Se),B(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(Se,e)});var It=/([\+\-]|\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(It)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function Ut(e,t){var n;return t._isUTC?(t=t.clone(),n=(u(e)||U(e)?e:k(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),p.updateOffset(t,!1),t):k(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function H(e,t){var n,r,o=e,i=null;return Nt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:Y(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=$t.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:f(i[S])*n,h:f(i[C])*n,m:f(i[A])*n,s:f(i[x])*n,ms:f(Rt(1e3*i[Oe]))*n}):(i=Wt.exec(e))?(n="-"===i[1]?-1:1,o={y:jt(i[2],n),M:jt(i[3],n),w:jt(i[4],n),d:jt(i[5],n),h:jt(i[6],n),m:jt(i[7],n),s:jt(i[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=k(o.from),i=k(o.to),n=t.isValid()&&i.isValid()?(i=Ut(i,t),t.isBefore(i)?r=Vt(t,i):((r=Vt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(o={}).ms=n.milliseconds,o.M=n.months),i=new Ht(o),Nt(e)&&m(e,"_locale")&&(i._locale=e._locale),Nt(e)&&m(e,"_isValid")&&(i._isValid=e._isValid),i}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(r,o){return function(e,t){var n;return null===t||isNaN(+t)||(J(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,H(e,t),r),this}}function Zt(e,t,n,r){var o=t._milliseconds,i=Rt(t._days),t=Rt(t._months);e.isValid()&&(r=null==r||r,t&&Ue(e,fe(e,"Month")+t*n),i&&pe(e,"Date",fe(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&p.updateOffset(e,i||t))}H.fn=Ht.prototype,H.invalid=function(){return H(NaN)};Ne=zt(1,"add"),qe=zt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Kt(e){return u(e)||U(e)||Xt(e)||Y(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!Y(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=L(e)&&!I(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],o=o||m(e,n);return r&&o}(e)||null==e;var t,n,r}function qt(e,t){if(e.date()<t.date())return-qt(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 Jt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],o=this.eras(),i=0,s=o.length;i<s;++i)t.push(w(o[i].name)),e.push(w(o[i].abbr)),n.push(w(o[i].narrow)),r.push(w(o[i].name)),r.push(w(o[i].abbr)),r.push(w(o[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function un(e,t,n,r,o){var i;return null==e?Xe(this,r,o).year:(t>(i=D(e,r,o))&&(t=i),function(e,t,n,r,o){e=Ze(e,t,n,r,o),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,o))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),v("N",on),v("NN",on),v("NNN",on),v("NNNN",function(e,t){return t.erasNameRegex(e)}),v("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),B(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?y(n).era=r:y(n).invalidEra=e}),v("y",Te),v("yy",Te),v("yyy",Te),v("yyyy",Te),v("yo",function(e,t){return t._eraYearOrdinalRegex||Te}),B(["y","yy","yyy","yyyy"],E),B(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,o):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),v("G",Ee),v("g",Ee),v("GG",b,g),v("gg",b,g),v("GGGG",we,ye),v("gggg",we,ye),v("GGGGG",Be,ge),v("ggggg",Be,ge),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=f(e)}),De(["gg","GG"],function(e,t,n,r){t[r]=p.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),v("Q",o),B("Q",function(e,t){t[M]=3*(f(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),v("D",b),v("DD",b,g),v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),B(["D","DD"],S),B("Do",function(e,t){t[S]=f(e.match(b)[0])});we=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),v("DDD",ve),v("DDDD",me),B(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),v("m",b),v("mm",b,g),B(["m","mm"],A);ye=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),v("s",b),v("ss",b,g),B(["s","ss"],x);var ln,Be=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),v("S",ve,o),v("SS",ve,g),v("SSS",ve,me),ln="SSSS";ln.length<=9;ln+="S")v(ln,Te);function cn(e,t){t[Oe]=f(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")B(ln,cn);ge=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");o=X.prototype;function hn(e){return e}o.add=Ne,o.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=L(e)&&!I(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<r.length;o+=1)n=n||m(e,r[o]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||k(),n=Ut(e,this).startOf("day"),n=p.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,k(e)))},o.clone=function(){return new X(this)},o.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":i=qt(this,r)/12;break;case"month":i=qt(this,r);break;case"quarter":i=qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:d(i)},o.endOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),p.updateOffset(this,!0),this},o.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=se(this,e),this.localeData().postformat(e)},o.from=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||k(e).isValid())?H({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},o.fromNow=function(e){return this.from(k(),e)},o.to=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||k(e).isValid())?H({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},o.toNow=function(e){return this.to(k(),e)},o.get=function(e){return c(this[e=h(e)])?this[e]():this},o.invalidAt=function(){return y(this).overflow},o.isAfter=function(e,t){return e=u(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},o.isBefore=function(e,t){return e=u(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},o.isBetween=function(e,t,n,r){return e=u(e)?e:k(e),t=u(t)?t:k(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))},o.isSame=function(e,t){var e=u(e)?e:k(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},o.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},o.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},o.isValid=function(){return $(this)},o.lang=Qe,o.locale=Jt,o.localeData=Qt,o.max=_e,o.min=be,o.parsingFlags=function(){return G({},y(this))},o.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=le(e)),r=n.length,o=0;o<r;o++)this[n[o].unit](e[n[o].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},o.startOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),p.updateOffset(this,!0),this},o.subtract=qe,o.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},o.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()}},o.toDate=function(){return new Date(this.valueOf())},o.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},o.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"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},o.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},o.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""},o.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""},o.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""},o.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,o=n.length;r<o;++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()-p(n[r].since).year())*e+n[r].offset;return this.year()},o.year=We,o.isLeapYear=function(){return he(this.year())},o.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},o.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},o.quarter=o.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},o.month=Fe,o.daysInMonth=function(){return He(this.year(),this.month())},o.week=o.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},o.isoWeek=o.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},o.weeksInYear=function(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)},o.weeksInWeekYear=function(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)},o.isoWeeksInYear=function(){return D(this.year(),1,4)},o.isoWeeksInISOWeekYear=function(){return D(this.isoWeekYear(),1,4)},o.date=we,o.day=o.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},o.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")},o.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},o.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")},o.hour=o.hours=_,o.minute=o.minutes=ye,o.second=o.seconds=Be,o.millisecond=o.milliseconds=ge,o.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Ft(this);if("string"==typeof e){if(null===(e=Yt(Se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Zt(this,H(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},o.utc=function(e){return this.utcOffset(0,e)},o.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},o.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},o.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60==0)},o.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},o.isLocal=function(){return!!this.isValid()&&!this._isUTC},o.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},o.isUtc=Gt,o.isUTC=Gt,o.zoneAbbr=function(){return this._isUTC?"UTC":""},o.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},o.dates=e("dates accessor is deprecated. Use date instead.",we),o.months=e("months accessor is deprecated. Use month instead",Fe),o.years=e("years accessor is deprecated. Use year instead",We),o.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),o.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Z(t,this),(t=Dt(t))._a?(e=(t._isUTC?l:k)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&f(e[s])!==f(t[s]))&&i++;return i+o}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});g=ee.prototype;function dn(e,t,n,r){var o=P(),r=l().set(r,t);return o[n](r,e)}function fn(e,t,n){if(Y(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],o=0;o<12;o++)r[o]=dn(e,o,n,"month");return r}function pn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),Y(t)&&(n=t,t=void 0),t||"");var o,i=P(),s=e?i._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=dn(t,(o+s)%7,r,"day");return a}g.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},g.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},g.invalidDate=function(){return this._invalidDate},g.ordinal=function(e){return this._ordinal.replace("%d",e)},g.preparse=hn,g.postformat=hn,g.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return c(o)?o(e,t,n,r):o.replace(/%d/i,e)},g.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},g.set=function(e){var t,n;for(n in e)m(e,n)&&(c(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)},g.eras=function(e,t){for(var n,r=this._eras||P("en")._eras,o=0,i=r.length;o<i;++o)switch("string"==typeof r[o].since&&(n=p(r[o].since).startOf("day"),r[o].since=n.valueOf()),typeof r[o].until){case"undefined":r[o].until=1/0;break;case"string":n=p(r[o].until).startOf("day").valueOf(),r[o].until=n.valueOf()}return r},g.erasParse=function(e,t,n){var r,o,i,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if(0<=[i,s,a].indexOf(e))return u[r]},g.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*n},g.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},g.erasNameRegex=function(e){return m(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},g.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},g.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},g.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Le.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},g.monthsParse=function(e,t,n){var r,o;if(this._monthsParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=l([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=T.call(this._shortMonthsParse,e))?o:null:-1!==(o=T.call(this._longMonthsParse,e))?o:null:"MMM"===t?-1!==(o=T.call(this._shortMonthsParse,e))||-1!==(o=T.call(this._longMonthsParse,e))?o:null:-1!==(o=T.call(this._longMonthsParse,e))||-1!==(o=T.call(this._shortMonthsParse,e))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(o.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}},g.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},g.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Ie),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},g.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},g.firstDayOfYear=function(){return this._week.doy},g.firstDayOfWeek=function(){return this._week.dow},g.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ke(t,this._week.dow):e?t[e.day()]:t},g.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},g.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},g.weekdaysParse=function(e,t,n){var r,o;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=T.call(this._weekdaysParse,e))?o:null:"ddd"===t?-1!==(o=T.call(this._shortWeekdaysParse,e))?o:null:-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:"dddd"===t?-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._shortWeekdaysParse,e))||-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:"ddd"===t?-1!==(o=T.call(this._shortWeekdaysParse,e))||-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._minWeekdaysParse,e))?o:null:-1!==(o=T.call(this._minWeekdaysParse,e))||-1!==(o=T.call(this._weekdaysParse,e))||-1!==(o=T.call(this._shortWeekdaysParse,e))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(o.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}},g.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},g.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},g.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},g.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},g.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("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===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var mn=Math.abs;function yn(e,t,n,r){t=H(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function vn(e){return function(){return this.as(e)}}ve=vn("ms"),me=vn("s"),Ne=vn("m"),_e=vn("h"),be=vn("d"),qe=vn("w"),_=vn("M"),ye=vn("Q"),Be=vn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ge=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),g=wn("hours"),Bn=wn("days"),Tn=wn("months"),En=wn("years");var Mn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cn(e,t,n,r){var o=H(e).abs(),i=Mn(o.as("s")),s=Mn(o.as("m")),a=Mn(o.as("h")),u=Mn(o.as("d")),l=Mn(o.as("M")),c=Mn(o.as("w")),o=Mn(o.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return(i=(i=null!=n.w?i||c<=1&&["w"]||c<n.w&&["ww",c]:i)||l<=1&&["M"]||l<n.M&&["MM",l]||o<=1&&["y"]||["yy",o])[2]=t,i[3]=0<+e,i[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,i)}var An=Math.abs;function xn(e){return(0<e)-(e<0)||+e}function Dn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,s,a=An(this._milliseconds)/1e3,u=An(this._days),l=An(this._months),c=this.asSeconds();return c?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(l/12),l%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",o=xn(this._months)!==xn(c)?"-":"",i=xn(this._days)!==xn(c)?"-":"",s=xn(this._milliseconds)!==xn(c)?"-":"",(c<0?"-":"")+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(u?i+u+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}var N=Ht.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},N.add=function(e,t){return yn(this,e,t,1)},N.subtract=function(e,t){return yn(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(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)}},N.asMilliseconds=ve,N.asSeconds=me,N.asMinutes=Ne,N.asHours=_e,N.asDays=be,N.asWeeks=qe,N.asMonths=_,N.asQuarters=ye,N.asYears=Be,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},N._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*gn(_n(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=gn(_n(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},N.clone=function(){return H(this)},N.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ge,N.seconds=we,N.minutes=We,N.hours=g,N.days=Bn,N.weeks=function(){return d(this.days()/7)},N.months=Tn,N.years=En,N.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Sn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Sn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),t=Cn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},N.toISOString=Dn,N.toString=Dn,N.toJSON=Dn,N.locale=Jt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn),N.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),v("x",Ee),v("X",/[+-]?\d+(\.\d{1,3})?/),B("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),B("x",function(e,t,n){n._d=new Date(f(e))}),p.version="2.29.3",R=k,p.fn=o,p.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},p.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=l,p.unix=function(e){return k(1e3*e)},p.months=function(e,t){return fn(e,t,"months")},p.isDate=U,p.locale=ft,p.invalid=W,p.duration=H,p.isMoment=u,p.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},p.parseZone=function(){return k.apply(null,arguments).parseZone()},p.localeData=P,p.isDuration=Nt,p.monthsShort=function(e,t){return fn(e,t,"monthsShort")},p.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var n,r;return null!=t?(r=ut,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),ft(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===ft()&&ft(e)):null!=O[e]&&delete O[e]),O[e]},p.locales=function(){return te(O)},p.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},p.normalizeUnits=h,p.relativeTimeRounding=function(e){return void 0===e?Mn:"function"==typeof e&&(Mn=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},p.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=o,p.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"},p}();var wr,Br,Tr=wr.exports;function Er(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.bonusAmount")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[3]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.bonusAmount")+"")&&K(o,c),8&t&&K(a,e[3]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Mr(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.wageringAmount")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[4]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.wageringAmount")+"")&&K(o,c),16&t&&K(a,e[4]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Sr(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusCard.remainingBonus")+"";return{c(){n=V("div"),r=V("p"),o=z(c),i=Z(),s=V("p"),a=z(e[5]),u=Z(),l=z(e[6]),X(r,"class","BonusCardRowTitle"),X(r,"part","BonusCardRowTitle"),X(s,"class","BonusCardRowText"),X(s,"part","BonusCardRowText"),X(n,"class","BonusCardRow"),X(n,"part","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusCard.remainingBonus")+"")&&K(o,c),32&t&&K(a,e[5]),64&t&&K(l,e[6])},d(e){e&&j(n)}}}function Cr(n){let r,o,e,t,i,s,a=n[9]("bonusCard.forfeitBonus")+"";return{c(){r=V("button"),o=z(a),X(r,"class",e="DeleteBonus "+(n[10]?"DeleteBonusMobile":"")),X(r,"part",t="DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){W(e,r,t),$(r,o),i||(s=R(r,"click",n[11]),i=!0)},p(e,t){512&t&&a!==(a=e[9]("bonusCard.forfeitBonus")+"")&&K(o,a)},d(e){e&&j(r),i=!1,s()}}}function Ar(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,I,T,E,M,Y,S,C,U,A,x,F,D=n[9]("bonusCard.date")+"",O=Tr(n[0]).format("DD/MM/YYYY h:mm A")+"",P=n[9]("bonusCard.bonusName")+"",k=n[9]("bonusCard.bonusType")+"",H=n[3]&&Er(n),N=n[4]&&Mr(n),R=n[5]&&Sr(n),L="active"===n[1]&&Cr(n);return{c(){r=V("div"),o=V("div"),i=V("div"),s=V("p"),a=z(D),u=Z(),l=V("span"),c=z(O),h=Z(),d=V("p"),f=z(n[1]),y=Z(),g=V("div"),b=V("p"),_=z(P),v=Z(),w=V("p"),B=z(n[2]),I=Z(),T=V("div"),E=V("p"),M=z(k),Y=Z(),S=V("p"),C=z(n[8]),U=Z(),H&&H.c(),A=Z(),N&&N.c(),x=Z(),R&&R.c(),F=Z(),L&&L.c(),this.c=G,X(s,"class","BonusCardRowTitle"),X(s,"part","BonusCardRowTitle"),X(d,"class",p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),X(d,"part",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),X(i,"class","BonusCardRow"),X(i,"part","BonusCardRow"),X(b,"class","BonusCardRowTitle"),X(b,"part","BonusCardRowTitle"),X(w,"class","BonusCardRowText"),X(w,"part","BonusCardRowText"),X(g,"class","BonusCardRow"),X(g,"part","BonusCardRow"),X(E,"class","BonusCardRowTitle"),X(E,"part","BonusCardRowTitle"),X(S,"class","BonusCardRowText TextCapitalize"),X(S,"part","BonusCardRowText TextCapitalize"),X(T,"class","BonusCardRow"),X(T,"part","BonusCardRow"),X(o,"class","BonusCardInfo"),X(o,"part","BonusCardInfo"),X(r,"class","BonusCard"),X(r,"part","BonusCard")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(s,u),$(s,l),$(l,c),$(i,h),$(i,d),$(d,f),$(o,y),$(o,g),$(g,b),$(b,_),$(g,v),$(g,w),$(w,B),$(o,I),$(o,T),$(T,E),$(E,M),$(T,Y),$(T,S),$(S,C),$(o,U),H&&H.m(o,null),$(o,A),N&&N.m(o,null),$(o,x),R&&R.m(o,null),$(r,F),L&&L.m(r,null),n[18](r)},p(e,[t]){512&t&&D!==(D=e[9]("bonusCard.date")+"")&&K(a,D),1&t&&O!==(O=Tr(e[0]).format("DD/MM/YYYY h:mm A")+"")&&K(c,O),2&t&&K(f,e[1]),2&t&&p!==(p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&X(d,"class",p),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&X(d,"part",m),512&t&&P!==(P=e[9]("bonusCard.bonusName")+"")&&K(_,P),4&t&&K(B,e[2]),512&t&&k!==(k=e[9]("bonusCard.bonusType")+"")&&K(M,k),256&t&&K(C,e[8]),e[3]?H?H.p(e,t):((H=Er(e)).c(),H.m(o,A)):H&&(H.d(1),H=null),e[4]?N?N.p(e,t):((N=Mr(e)).c(),N.m(o,x)):N&&(N.d(1),N=null),e[5]?R?R.p(e,t):((R=Sr(e)).c(),R.m(o,null)):R&&(R.d(1),R=null),"active"===e[1]?L?L.p(e,t):((L=Cr(e)).c(),L.m(r,null)):L&&(L.d(1),L=null)},i:G,o:G,d(e){e&&j(r),H&&H.d(),N&&N.d(),R&&R.d(),L&&L.d(),n[18](null)}}}function xr(t,e,n){let r;O(t,mr,e=>n(9,r=e));let o,{bonuswalletid:i=""}=e,{bonusdate:s=""}=e,{bonusstatus:a=""}=e,{bonusname:u=""}=e,{bonustype:l=""}=e,{bonusamount:c=""}=e,{bonuswageringamount:h=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:f=""}=e,{lang:p="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,b=window.navigator.userAgent,_="PC"!==yr(b),v="";Object.keys(vr).forEach(e=>{_r(e,vr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,i=e.bonuswalletid),"bonusdate"in e&&n(0,s=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,u=e.bonusname),"bonustype"in e&&n(13,l=e.bonustype),"bonusamount"in e&&n(3,c=e.bonusamount),"bonuswageringamount"in e&&n(4,h=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,f=e.bonuscurrency),"lang"in e&&n(14,p=e.lang),"clientstyling"in e&&n(15,m=e.clientstyling),"clientstylingurl"in e&&n(16,y=e.clientstylingurl),"translationurl"in e&&n(17,g=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&p&&(e=p,D.set(e)),8192&t.$$.dirty&&l&&(n(8,v=l),"freeRound"===v?n(8,v="Free Spins"):"freeBet"===v&&n(8,v="Free Bet")),65664&t.$$.dirty&&y&&o){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(32896&t.$$.dirty&&m&&o){let e=document.createElement("style");e.innerHTML=m,o.appendChild(e)}var e;131072&t.$$.dirty&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{_r(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,u,c,h,d,f,o,v,r,_,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:i},window.location.href)},i,l,p,m,y,g,function(e){U[e?"unshift":"push"](()=>{o=e,n(7,o)})}]}function Dr(e,t,n){const r=e.slice();return r[43]=t[n],r[45]=n,r}function Or(e,t,n){const r=e.slice();return r[46]=t[n],r}function Pr(e){let n,r,o=e[14]("activeBonuses.invalidBonusCode")+"";return{c(){n=V("p"),r=z(o),X(n,"class","InvalidBonusCodeMessage"),X(n,"part","InvalidBonusCodeMessage")},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("activeBonuses.invalidBonusCode")+"")&&K(r,o)},d(e){e&&j(n)}}}function kr(t){let o,i=t[12],s=[];for(let e=0;e<i.length;e+=1)s[e]=Lr(Or(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();o=L()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);W(t,o,n)},p(t,n){if(4103&n[0]){let e;for(i=t[12],e=0;e<i.length;e+=1){var r=Or(t,i,e);s[e]?s[e].p(r,n):(s[e]=Lr(r),s[e].c(),s[e].m(o.parentNode,o))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){x(s,e),e&&j(o)}}}function Hr(e){let n,r,o=e[14]("activeBonuses.noActiveBonuses")+"";return{c(){n=V("p"),r=z(o)},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("activeBonuses.noActiveBonuses")+"")&&K(r,o)},d(e){e&&j(n)}}}function Nr(e){let n,r,o,i,s,a,u,l,c,h;return{c(){d(n=V("player-bonus-card"),"bonuswalletid",r=e[46].walletId),d(n,"bonusdate",o=e[46].granted),d(n,"bonusstatus",i=e[46].status),d(n,"bonusname",s=e[46].name),d(n,"bonustype",a=e[46].type),d(n,"bonusamount",u=e[46].grantedAmount),d(n,"bonuswageringamount",l=e[46].totalWR),d(n,"bonusremainingamount",c=e[46].currentAmount),d(n,"bonuscurrency",h=e[46].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[46].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[46].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[46].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[46].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[46].grantedAmount)&&d(n,"bonusamount",u),4096&t[0]&&l!==(l=e[46].totalWR)&&d(n,"bonuswageringamount",l),4096&t[0]&&c!==(c=e[46].currentAmount)&&d(n,"bonusremainingamount",c),4096&t[0]&&h!==(h=e[46].currency)&&d(n,"bonuscurrency",h),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Rr(e){let n,r,o,i,s,a,u;return{c(){d(n=V("player-bonus-card"),"bonuswalletid",r=e[46].walletId),d(n,"bonusdate",o=e[46].granted),d(n,"bonusstatus",i=e[46].status),d(n,"bonusname",s=e[46].name),d(n,"bonustype",a=e[46].type),d(n,"bonuscurrency",u=e[46].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[46].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[46].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[46].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[46].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[46].currency)&&d(n,"bonuscurrency",u),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Lr(e){let n;function r(e){return"freeRound"===e[46].type?Rr:Nr}let o=r(e),i=o(e);return{c(){i.c(),n=L()},m(e,t){i.m(e,t),W(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),(i=o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&j(n)}}}function Ir(n){let o,i,r,e,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,t,T,E,M,S=Array(n[10]),C=[];for(let e=0;e<S.length;e+=1)C[e]=Yr(Dr(n,S,e));return{c(){o=V("div"),i=V("span"),r=z("|<"),a=Z(),u=V("span"),l=z("<"),d=Z();for(let e=0;e<C.length;e+=1)C[e].c();f=Z(),p=V("span"),m=z(">"),b=Z(),_=V("span"),v=z(">|"),X(i,"class",e="BonusesFirst "+(0===n[11]?"Inactive":"")),X(i,"part",s="BonusesFirst "+(0===n[11]?"Inactive":"")),X(u,"class",c="BonusesPrev "+(0===n[11]?"Inactive":"")),X(u,"part",h="BonusesPrev "+(0===n[11]?"Inactive":"")),X(p,"class",y="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),X(p,"part",g="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),X(_,"class",w="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),X(_,"part",B="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),X(o,"class",t="BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":"")),X(o,"part",T="BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){W(e,o,t),$(o,i),$(i,r),$(o,a),$(o,u),$(u,l),$(o,d);for(let e=0;e<C.length;e+=1)C[e].m(o,null);$(o,f),$(o,p),$(p,m),$(o,b),$(o,_),$(_,v),E||(M=[R(i,"click",n[29]),R(u,"click",n[30]),R(p,"click",n[32]),R(_,"click",n[33])],E=!0)},p(t,n){if(2048&n[0]&&e!==(e="BonusesFirst "+(0===t[11]?"Inactive":""))&&X(i,"class",e),2048&n[0]&&s!==(s="BonusesFirst "+(0===t[11]?"Inactive":""))&&X(i,"part",s),2048&n[0]&&c!==(c="BonusesPrev "+(0===t[11]?"Inactive":""))&&X(u,"class",c),2048&n[0]&&h!==(h="BonusesPrev "+(0===t[11]?"Inactive":""))&&X(u,"part",h),265216&n[0]){let e;for(S=Array(t[10]),e=0;e<S.length;e+=1){var r=Dr(t,S,e);C[e]?C[e].p(r,n):(C[e]=Yr(r),C[e].c(),C[e].m(o,f))}for(;e<C.length;e+=1)C[e].d(1);C.length=S.length}3072&n[0]&&y!==(y="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&X(p,"class",y),3072&n[0]&&g!==(g="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&X(p,"part",g),3072&n[0]&&w!==(w="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&X(_,"class",w),3072&n[0]&&B!==(B="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&X(_,"part",B)},d(e){e&&j(o),x(C,e),E=!1,N(M)}}}function Yr(n){let r,o,i,s,a,u,e=n[45]+1+"";function l(){return n[31](n[45])}return{c(){r=V("span"),o=z(e),X(r,"class",i="BonusesPage "+(n[45]===n[11]?"BonusPageActive":"")),X(r,"part",s="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))},m(e,t){W(e,r,t),$(r,o),a||(u=R(r,"click",l),a=!0)},p(e,t){n=e,2048&t[0]&&i!==(i="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&X(r,"class",i),2048&t[0]&&s!==(s="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&X(r,"part",s)},d(e){e&&j(r),a=!1,u()}}}function Ur(n){let r,o,i,s,a,u,l,c,h,d,f,p,e,t,m,y,g=n[14]("activeBonuses.forfeitBonus")+"",b=n[14]("activeBonuses.forfeitBonusCancel")+"",_=n[14]("activeBonuses.forfeitBonusConfirm")+"";return{c(){r=V("div"),o=V("div"),i=V("div"),s=V("p"),a=z(g),u=Z(),l=V("div"),c=V("button"),h=z(b),d=Z(),f=V("button"),p=z(_),X(s,"class","ModalText"),X(s,"part","ModalText"),X(c,"class","ModalCancel"),X(c,"part","ModalCancel"),X(f,"class","ModalConfirm"),X(f,"part","ModalConfirm"),X(l,"class","ModalButtons"),X(l,"part","ModalButtons"),X(i,"class","ModalBody"),X(i,"part","ModalBody"),X(o,"class","ModalContent"),X(o,"part","ModalContent"),X(r,"class",e="ModalWrapper "+(n[15]?"ModalWrapperMobile":"")),X(r,"part",t="ModalWrapper "+(n[15]?"ModalWrapperMobile":""))},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(i,u),$(i,l),$(l,c),$(c,h),$(l,d),$(l,f),$(f,p),m||(y=[R(c,"click",n[20]),R(f,"click",n[21])],m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("activeBonuses.forfeitBonus")+"")&&K(a,g),16384&t[0]&&b!==(b=e[14]("activeBonuses.forfeitBonusCancel")+"")&&K(h,b),16384&t[0]&&_!==(_=e[14]("activeBonuses.forfeitBonusConfirm")+"")&&K(p,_)},d(e){e&&j(r),m=!1,N(y)}}}function Fr(n){let r,o=function(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,_,v,w,B,T,E,M=n[14]("activeBonuses.title")+"",S=n[14]("activeBonuses.bonusCode")+"",C=n[14]("activeBonuses.getBonus")+"",A=n[15]&&function(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y=n[14]("activeBonuses.title")+"";return{c(){r=V("div"),o=e("svg"),i=e("defs"),s=e("style"),a=z(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),u=e("g"),l=e("g"),c=e("path"),h=Z(),d=V("h2"),f=z(y),X(c,"class","aaa"),X(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),X(c,"transform","translate(15 15) rotate(180)"),X(l,"transform","translate(20 158)"),X(u,"transform","translate(-20 -158)"),X(o,"xmlns","http://www.w3.org/2000/svg"),X(o,"width","15"),X(o,"height","15"),X(o,"viewBox","0 0 15 15"),X(d,"class","ActiveBonusesTitleMobile"),X(d,"part","ActiveBonusesTitleMobile"),X(r,"class","MenuReturnButton"),X(r,"part","MenuReturnButton")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(o,u),$(u,l),$(l,c),$(r,h),$(r,d),$(d,f),p||(m=R(r,"click",n[27]),p=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("activeBonuses.title")+"")&&K(f,y)},d(e){e&&j(r),p=!1,m()}}}(n),x=n[5]&&Pr(n);function D(e){return 0===e[12].length?Hr:kr}let O=D(n),P=O(n),k=0!==n[12].length&&Ir(n),H=n[13]&&Ur(n);return{c(){r=V("div"),A&&A.c(),o=Z(),i=V("h2"),s=z(M),a=Z(),u=V("div"),l=V("label"),c=z(S),h=Z(),d=V("div"),f=V("input"),p=Z(),m=V("button"),y=z(C),g=Z(),x&&x.c(),b=Z(),_=V("div"),P.c(),v=Z(),k&&k.c(),w=Z(),H&&H.c(),B=L(),X(i,"class","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),X(i,"part","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),X(l,"for","BonusCode"),X(f,"class","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),X(f,"part","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),X(f,"type","text"),X(f,"id","BonusCode"),X(m,"class","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),X(m,"part","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),m.disabled=n[4],X(d,"class","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),X(d,"part","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),X(u,"class","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),X(u,"part","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),X(_,"class","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),X(_,"part","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),X(r,"class","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":"")),X(r,"part","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){W(e,r,t),A&&A.m(r,null),$(r,o),$(r,i),$(i,s),$(r,a),$(r,u),$(u,l),$(l,c),$(u,h),$(u,d),$(d,f),I(f,n[6]),$(d,p),$(d,m),$(m,y),$(u,g),x&&x.m(u,null),$(r,b),$(r,_),P.m(_,null),$(r,v),k&&k.m(r,null),W(e,w,t),H&&H.m(e,t),W(e,B,t),T||(E=[R(f,"input",n[28]),R(f,"keyup",n[17]),R(m,"click",n[19])],T=!0)},p(e,t){e[15]&&A.p(e,t),16384&t[0]&&M!==(M=e[14]("activeBonuses.title")+"")&&K(s,M),16384&t[0]&&S!==(S=e[14]("activeBonuses.bonusCode")+"")&&K(c,S),64&t[0]&&f.value!==e[6]&&I(f,e[6]),16384&t[0]&&C!==(C=e[14]("activeBonuses.getBonus")+"")&&K(y,C),16&t[0]&&(m.disabled=e[4]),e[5]?x?x.p(e,t):((x=Pr(e)).c(),x.m(u,null)):x&&(x.d(1),x=null),O===(O=D(e))&&P?P.p(e,t):(P.d(1),(P=O(e))&&(P.c(),P.m(_,null))),0!==e[12].length?k?k.p(e,t):((k=Ir(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),e[13]?H?H.p(e,t):((H=Ur(e)).c(),H.m(B.parentNode,B)):H&&(H.d(1),H=null)},d(e){e&&j(r),A&&A.d(),x&&x.d(),P.d(),k&&k.d(),e&&j(w),H&&H.d(e),e&&j(B),T=!1,N(E)}}}(n);return{c(){r=V("div"),o.c(),this.c=G},m(e,t){W(e,r,t),o.m(r,null),n[34](r)},p(e,t){o.p(e,t)},i:G,o:G,d(e){e&&j(r),o.d(),n[34](null)}}}function Gr(t,e,r){let n;O(t,mr,e=>r(14,n=e));let o,{endpoint:i=""}=e,{session:s=""}=e,{playerid:a=""}=e,{lang:u="en"}=e,{playercurrency:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,f=window.navigator.userAgent,p="PC"!==yr(f),m,y=!1,g="",b=0,_=0,v=0,w=0,B=0,T=[],E="",M=!1;Object.keys(br).forEach(e=>{gr(e,br[e])});const S=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(E=e.data.bonuswalletid,r(13,M=!0))},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:p},window.location.href)},A=t=>{let e={method:"GET",headers:{"X-SessionId":s}},n=new URL(`${i}/player/${a}/bonusWallet`);n.searchParams.append("filter","status=active"),n.searchParams.append("pagination",`offset=${t},limit=6`),fetch(n,e).then(e=>e.json()).then(e=>{r(10,w=Math.ceil(e.total/6)),0<=t-6&&r(7,b=t-6),t+6<e.total&&r(8,_=t+6),r(9,v=6*(w-1)),r(11,B=t/6),r(12,T=e.items)},e=>{console.error(e)})},x=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,M=!1)};return e=()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}),function(){if(k)return k;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e),t.$$set=e=>{"endpoint"in e&&r(22,i=e.endpoint),"session"in e&&r(23,s=e.session),"playerid"in e&&r(24,a=e.playerid),"lang"in e&&r(0,u=e.lang),"playercurrency"in e&&r(25,l=e.playercurrency),"clientstyling"in e&&r(1,c=e.clientstyling),"clientstylingurl"in e&&r(2,h=e.clientstylingurl),"translationurl"in e&&r(26,d=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&u&&(e=u,D.set(e)),29360128&t.$$.dirty[0]&&s&&a&&i&&A(0),12&t.$$.dirty[0]&&h&&o){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(10&t.$$.dirty[0]&&c&&o){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}var e;67108864&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gr(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,h,o,!0,y,g,b,_,v,w,B,T,M,n,p,C,()=>{r(4,m=!g)},A,()=>{let e=new URL(`${i}/player/${a}/claimbonus`),t={method:"POST",headers:{"X-SessionId":s,accept:"application/json"}};e.searchParams.append("currency",l),e.searchParams.append("bonusCode",g),fetch(e.href,t).then(e=>{200==e.status?(r(5,y=!1),A(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("activeBonuses.successMessage")}},window.location.href),"function"==typeof gtag&>ag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(a||"Not logged in"),bonusCode:""+g})):(r(5,y=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("activeBonuses.errorMessage")}},window.location.href))})},x,()=>{let e={method:"DELETE",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${i}/player/${a}/bonusWallet`);t.searchParams.append("bonusWalletID",E),fetch(t,e).then(e=>{200==e.status&&(A(0),x())})},i,s,a,l,d,()=>C(),function(){g=this.value,r(6,g)},()=>A(0),()=>A(b),e=>A(6*e),()=>A(_),()=>A(v),function(e){U[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ie{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:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-color-black, #000000);font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-color-black, #000000)}.BonusCardRow .BonusCardRowText.StatusActive{color:#0AA543}.BonusCardRow .BonusCardRowText.StatusExpired{color:#FD2839}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-color-primary-600, #99034F)}</style>',oe(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},xr,Ar,C,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&W(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),y()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),y()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),y()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),y()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),y()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),y()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),y()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),y()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),y()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),y()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),y()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),y()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),y()}});class $r extends ie{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"}.ActiveBonusesWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{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:30px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-color-primary, #D0046C)}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{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:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-color-primary-600, #99034F)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, #FD2839)}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{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:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-color-primary-600, #99034F)}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-color-primary, #D0046C);font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}</style>',oe(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},Gr,Fr,C,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&W(e.target,this,e.anchor),e.props&&(this.$set(e.props),y()))}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),y()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),y()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),y()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),y()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),y()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),y()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),y()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),y()}}return customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",$r),$r});
|
|
2
2
|
//# sourceMappingURL=player-active-bonuses.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-active-bonuses",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"main": "dist/player-active-bonuses",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "15df0a4bc1195017b7df65675dfd40261b5dbe8b"
|
|
40
40
|
}
|