@everymatrix/player-account-gaming-limits 0.0.281 → 0.0.284
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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function z(){}const p=t=>t;function c(t){return t()}function d(){return Object.create(null)}function Z(t){t.forEach(c)}function v(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function h(t,...e){if(null==t)return z;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function N(t,e,i){t.$$.on_destroy.push(h(e,i))}var t="undefined"!=typeof window;let y=t?()=>window.performance.now():()=>Date.now(),g=t?t=>requestAnimationFrame(t):z;const w=new Set;function _(e){w.forEach(t=>{t.c(e)||(w.delete(t),t.f())}),0!==w.size&&g(_)}function X(t,e){t.appendChild(e)}function q(t,e,i){t.insertBefore(e,i||null)}function J(t){t.parentNode.removeChild(t)}function b(e,i){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(i)}function K(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t){return document.createTextNode(t)}function tt(){return Q(" ")}function x(){return Q("")}function et(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function it(e){return function(t){return t.preventDefault(),e.call(this,t)}}function nt(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function rt(t,e,i){e in t?t[e]=i:nt(t,e,i)}function R(t){return""===t?null:+t}function ot(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function f(t,e){t.value=null==e?"":e}function E(e,i){for(let t=0;t<e.options.length;t+=1){const n=e.options[t];if(n.__value===i)return n.selected=!0,0}}function n(t){const e={};for(const i of t)e[i.name]=i.value;return e}const T=new Set;let m,C=0;function L(t,e,i,n,r,o,a,s=0){var l=16.666/n;let u="{\n";for(let t=0;t<=1;t+=l){const n=e+(i-e)*o(t);u+=100*t+`%{${a(n,1-n)}}\n`}const c=u+`100% {${a(i,1-i)}}\n}`,d=`__svelte_${function(t){let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return e>>>0}(c)}_${s}`,h=t.ownerDocument;T.add(h);const f=h.__svelte_stylesheet||(h.__svelte_stylesheet=h.head.appendChild(K("style")).sheet),m=h.__svelte_rules||(h.__svelte_rules={});m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} ${c}`,f.cssRules.length));s=t.style.animation||"";return t.style.animation=`${s?`${s}, `:""}${d} ${n}ms linear ${r}ms 1 both`,C+=1,d}function M(t){m=t}function Y(t){!function(){if(!m)throw new Error("Function called outside component initialization");return m}().$$.on_mount.push(t)}const A=[],s=[],r=[],o=[],a=Promise.resolve();let l=!1;function S(){l||(l=!0,a.then(k))}function I(t){r.push(t)}let u=!1;const D=new Set;function k(){if(!u){u=!0;do{for(let t=0;t<A.length;t+=1){var e=A[t];M(e),function(t){{var e;null!==t.fragment&&(t.update(),Z(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I))}}(e.$$)}for(M(null),A.length=0;s.length;)s.pop()();for(let t=0;t<r.length;t+=1){const i=r[t];D.has(i)||(D.add(i),i())}}while(r.length=0,A.length);for(;o.length;)o.pop()();l=!1,u=!1,D.clear()}}let P;function O(t,e,i){t.dispatchEvent(function(t){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}(`${e?"intro":"outro"}${i}`))}const F=new Set;let U;function G(t,e){t&&t.i&&(F.delete(t),t.i(e))}function $(t,e,i,n){t&&t.o&&(F.has(t)||(F.add(t),U.c.push(()=>{F.delete(t),n&&(i&&t.d(1),n())}),t.o(e)))}const W={duration:0};function j(s,t,e,i){let l=t(s,e),u=i?0:1,c=null,d=null,h=null;function f(){h&&function(t,e){const i=(t.style.animation||"").split(", "),n=i.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=i.length-n.length;r&&(t.style.animation=n.join(", "),C-=r,C||g(()=>{C||(T.forEach(t=>{const e=t.__svelte_stylesheet;let i=e.cssRules.length;for(;i--;)e.deleteRule(i);t.__svelte_rules={}}),T.clear())}))}(s,h)}function m(t,e){var i=t.b-u;return e*=Math.abs(i),{a:u,b:t.b,d:i,duration:e,start:t.start,end:t.start+e,group:t.group}}function n(t){const{delay:e=0,duration:i=300,easing:n=p,tick:r=z,css:o}=l||W,a={start:y()+e,b:t};t||(a.group=U,U.r+=1),c||d?d=a:(o&&(f(),h=L(s,u,t,i,e,n,o)),t&&r(0,1),c=m(a,i),I(()=>O(s,t,"start")),function(e){let i;0===w.size&&g(_),new Promise(t=>{w.add(i={c:e,f:t})})}(t=>{return d&&t>d.start&&(c=m(d,i),d=null,O(s,c.b,"start"),o&&(f(),h=L(s,u,c.b,c.duration,0,n,l.css))),c&&(t>=c.end?(r(u=c.b,1-u),O(s,c.b,"end"),d||(c.b?f():--c.group.r||Z(c.group.c)),c=null):t>=c.start&&(t=t-c.start,u=c.a+c.d*n(t/c.duration),r(u,1-u))),!(!c&&!d)}))}return{run(t){v(l)?(P||(P=Promise.resolve(),P.then(()=>{P=null})),P.then(()=>{l=l(),n(t)})):n(t)},end(){f(),c=d=null}}}function B(n,t,e,i,r,o,a=[-1]){var s=m;M(n);const l=n.$$={fragment:null,ctx:null,props:o,update:z,not_equal:r,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:t.context||[]),callbacks:d(),dirty:a,skip_bound:!1};let u=!1;if(l.ctx=e?e(n,t.props||{},(t,e,...i)=>{i=i.length?i[0]:e;return l.ctx&&r(l.ctx[t],l.ctx[t]=i)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](i),u&&(i=t,-1===(t=n).$$.dirty[0]&&(A.push(t),S(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31)),e}):[],l.update(),u=!0,Z(l.before_update),l.fragment=!!i&&i(l.ctx),t.target){if(t.hydrate){const z=(i=t.target,Array.from(i.childNodes));l.fragment&&l.fragment.l(z),z.forEach(J)}else l.fragment&&l.fragment.c();t.intro&&G(n.$$.fragment),function(e,t,i,n){const{fragment:r,on_mount:o,on_destroy:a,after_update:s}=e.$$;r&&r.m(t,i),n||I(()=>{var t=o.map(c).filter(v);a?a.push(...t):Z(t),e.$$.on_mount=[]}),s.forEach(I)}(n,t.target,t.anchor,t.customElement),k()}M(s)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(c).filter(v);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,i){this[t]=i}disconnectedCallback(){Z(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(Z(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=z}$on(t,e){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{var t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var V,at,st="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==st&&st,lt="URLSearchParams"in st,ut="Symbol"in st&&"iterator"in Symbol,ct="FileReader"in st&&"Blob"in st&&function(){try{return new Blob,!0}catch(t){return!1}}(),dt="FormData"in st,ht="ArrayBuffer"in st;function ft(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function mt(t){return t="string"!=typeof t?String(t):t}function pt(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ut&&(t[Symbol.iterator]=function(){return t}),t}function yt(e){this.map={},e instanceof yt?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function gt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function wt(i){return new Promise(function(t,e){i.onload=function(){t(i.result)},i.onerror=function(){e(i.error)}})}function vt(t){var e=new FileReader,i=wt(e);return e.readAsArrayBuffer(t),i}function _t(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function bt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:ct&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:dt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:lt&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ht&&ct&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_t(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ht&&(ArrayBuffer.prototype.isPrototypeOf(t)||at(t))?this._bodyArrayBuffer=_t(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):lt&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ct&&(this.blob=function(){var t=gt(this);if(t)return t;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?gt(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(vt)}),this.text=function(){var t,e,i=gt(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=wt(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},dt&&(this.formData=function(){return this.text().then(Tt)}),this.json=function(){return this.text().then(JSON.parse)},this}ht&&(V=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],at=ArrayBuffer.isView||function(t){return t&&-1<V.indexOf(Object.prototype.toString.call(t))}),yt.prototype.append=function(t,e){t=ft(t),e=mt(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},yt.prototype.delete=function(t){delete this.map[ft(t)]},yt.prototype.get=function(t){return t=ft(t),this.has(t)?this.map[t]:null},yt.prototype.has=function(t){return this.map.hasOwnProperty(ft(t))},yt.prototype.set=function(t,e){this.map[ft(t)]=mt(e)},yt.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},yt.prototype.keys=function(){var i=[];return this.forEach(function(t,e){i.push(e)}),pt(i)},yt.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),pt(e)},yt.prototype.entries=function(){var i=[];return this.forEach(function(t,e){i.push([e,t])}),pt(i)},ut&&(yt.prototype[Symbol.iterator]=yt.prototype.entries);var xt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Et(t,e){if(!(this instanceof Et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n=(e=e||{}).body;if(t instanceof Et){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new yt(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new yt(e.headers)),this.method=(t=(i=e.method||this.method||"GET").toUpperCase(),-1<xt.indexOf(t)?t:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Tt(t){var i=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function Ct(t,e){if(!(this instanceof Ct))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new yt(e.headers),this.url=e.url||"",this._initBody(t)}Et.prototype.clone=function(){return new Et(this,{body:this._bodyInit})},bt.call(Et.prototype),bt.call(Ct.prototype),Ct.prototype.clone=function(){return new Ct(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new yt(this.headers),url:this.url})},Ct.error=function(){var t=new Ct(null,{status:0,statusText:""});return t.type="error",t};var Lt=[301,302,303,307,308];Ct.redirect=function(t,e){if(-1===Lt.indexOf(e))throw new RangeError("Invalid status code");return new Ct(null,{status:e,headers:{location:t}})};var Mt=st.DOMException;try{new Mt}catch(z){(Mt=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),Mt.prototype.constructor=Mt}function At(n,a){return new Promise(function(r,t){var e=new Et(n,a);if(e.signal&&e.signal.aborted)return t(new Mt("Aborted","AbortError"));var o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var t,i,e={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",i=new yt,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),i.append(t,e))}),i)};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){r(new Ct(n,e))},0)},o.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){t(new Mt("Aborted","AbortError"))},0)},o.open(e.method,function(e){try{return""===e&&st.location.href?st.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?o.withCredentials=!0:"omit"===e.credentials&&(o.withCredentials=!1),"responseType"in o&&(ct?o.responseType="blob":ht&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof yt?e.headers.forEach(function(t,e){o.setRequestHeader(e,t)}):Object.getOwnPropertyNames(a.headers).forEach(function(t){o.setRequestHeader(t,mt(a.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&e.signal.removeEventListener("abort",i)}),o.send(void 0===e._bodyInit?null:e._bodyInit)})}function Ii(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}At.polyfill=!0,st.fetch||(st.fetch=At,st.Headers=yt,st.Request=Et,st.Response=Ct),self.fetch.bind(self);var St=function(t,e){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function It(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}St(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function Dt(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kt(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function Pt(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t}function Ot(t){return"function"==typeof t}function Nt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var Rt=Nt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Yt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var Ft=(Gt.prototype.unsubscribe=function(){var t,e,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Dt(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);o=this.initialTeardown;if(Ot(o))try{o()}catch(t){r=t instanceof Rt?t.errors:[t]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=Dt(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Wt(c)}catch(t){r=null!=r?r:[],t instanceof Rt?r=Pt(Pt([],kt(r)),kt(t.errors)):r.push(t)}}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Rt(r)}},Gt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Wt(t);else{if(t instanceof Gt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},Gt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},Gt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},Gt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Yt(e,t)},Gt.prototype.remove=function(t){var e=this._teardowns;e&&Yt(e,t),t instanceof Gt&&t._removeParent(this)},Gt.EMPTY=((ui=new Gt).closed=!0,ui),Gt),Ut=Ft.EMPTY;function Gt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function $t(t){return t instanceof Ft||t&&"closed"in t&&Ot(t.remove)&&Ot(t.add)&&Ot(t.unsubscribe)}function Wt(t){Ot(t)?t():t.unsubscribe()}var jt=void 0,Bt=!1,Ht=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,Pt([],kt(t)))};function Vt(){}function zt(t){t()}var Zt,Xt,qt=(It(Qt,Xt=Ft),Qt.create=function(t,e,i){return new Jt(t,e,i)},Qt.prototype.next=function(t){this.isStopped||this._next(t)},Qt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Qt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Qt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xt.prototype.unsubscribe.call(this),this.destination=null)},Qt.prototype._next=function(t){this.destination.next(t)},Qt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Qt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Qt),Jt=(It(Kt,Zt=qt),Kt);function Kt(t,e,i){var n,r,o=Zt.call(this)||this;return Ot(t)?r=t:t&&(r=t.next,e=t.error,i=t.complete,o&&Bt?(n=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:n=t,r=null==r?void 0:r.bind(n),e=null==e?void 0:e.bind(n),i=null==i?void 0:i.bind(n)),o.destination={next:r?te(r):Vt,error:te(null!=e?e:ee),complete:i?te(i):Vt},o}function Qt(t){var e=Xt.call(this)||this;return e.isStopped=!1,t?$t(e.destination=t)&&t.add(e):e.destination=ie,e}function te(n){return function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];try{n.apply(void 0,Pt([],kt(t)))}catch(t){e=t,Ht(function(){throw e})}}}function ee(t){throw t}var ie={closed:!0,next:Vt,error:ee,complete:Vt},ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function re(t){return t}var oe=(ae.prototype.lift=function(t){var e=new ae;return e.source=this,e.operator=t,e},ae.prototype.subscribe=function(t,e,i){var n,r=this,o=(n=t)&&n instanceof qt||n&&Ot(n.next)&&Ot(n.error)&&Ot(n.complete)&&$t(n)?t:new Jt(t,e,i);return zt(function(){var t=r.operator,e=r.source;o.add(t?t.call(o,e):e?r._subscribe(o):r._trySubscribe(o))}),o},ae.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},ae.prototype.forEach=function(n,t){var r=this;return new(t=se(t))(function(t,e){var i=r.subscribe(function(t){try{n(t)}catch(t){e(t),null==i||i.unsubscribe()}},e,t)})},ae.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},ae.prototype[ne]=function(){return this},ae.prototype.pipe=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return(0===(e=t).length?re:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},ae.prototype.toPromise=function(t){var n=this;return new(t=se(t))(function(t,e){var i;n.subscribe(function(t){return i=t},function(t){return e(t)},function(){return t(i)})})},ae.create=function(t){return new ae(t)},ae);function ae(t){t&&(this._subscribe=t)}function se(t){return null!==(t=null!=t?t:jt)&&void 0!==t?t:Promise}var le,ue,ce,de=Nt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),he=(It(we,ce=oe),we.prototype.lift=function(t){var e=new fe(this,this);return e.operator=t,e},we.prototype._throwIfClosed=function(){if(this.closed)throw new de},we.prototype.next=function(o){var a=this;zt(function(){var e,t;if(a._throwIfClosed(),!a.isStopped){var i=a.observers.slice();try{for(var n=Dt(i),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},we.prototype.error=function(e){var i=this;zt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var t=i.observers;t.length;)t.shift().error(e)}})},we.prototype.complete=function(){var e=this;zt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},we.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(we.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),we.prototype._trySubscribe=function(t){return this._throwIfClosed(),ce.prototype._trySubscribe.call(this,t)},we.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},we.prototype._innerSubscribe=function(t){var e=this.hasError,i=this.isStopped,n=this.observers;return e||i?Ut:(n.push(t),new Ft(function(){return Yt(n,t)}))},we.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,i=this.thrownError,n=this.isStopped;e?t.error(i):n&&t.complete()},we.prototype.asObservable=function(){var t=new oe;return t.source=this,t},we.create=function(t,e){return new fe(t,e)},we),fe=(It(ge,ue=he),ge.prototype.next=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)},ge.prototype.error=function(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)},ge.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},ge.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:Ut},ge),me={now:function(){return(me.delegate||Date).now()},delegate:void 0},pe=(It(ye,le=he),ye.prototype.next=function(t){var e=this,i=e.isStopped,n=e._buffer,r=e._infiniteTimeWindow,o=e._timestampProvider,e=e._windowTime;i||(n.push(t),r||n.push(o.now()+e)),this._trimBuffer(),le.prototype.next.call(this,t)},ye.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!t.closed;r+=i?1:2)t.next(n[r]);return this._checkFinalizedStatuses(t),e},ye.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*t;if(t<1/0&&r<i.length&&i.splice(0,i.length-r),!n){for(var o=e.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},ye);function ye(t,e,i){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===i&&(i=me);var n=le.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function ge(t,e){var i=ue.call(this)||this;return i.destination=t,i.source=e,i}function we(){var t=ce.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ve=[],_e={};const be=[];function xe(n,r=z){let o;const a=[];function s(t){if(i(n,t)&&(n=t,o)){const t=!be.length;for(let t=0;t<a.length;t+=1){const e=a[t];e[1](),be.push(e,n)}if(t){for(let t=0;t<be.length;t+=2)be[t][0](be[t+1]);be.length=0}}}return{set:s,update:function(t){s(t(n))},subscribe:function(t,e=z){const i=[t,e];return a.push(i),1===a.length&&(o=r(s)||z),t(n),()=>{var t=a.indexOf(i);-1!==t&&a.splice(t,1),0===a.length&&(o(),o=null)}}}}function Ee(t,s,e){const l=!Array.isArray(t),u=l?[t]:t,c=s.length<2;return{subscribe:xe(e,e=>{let i=!1;const n=[];let r=0,o=z;const a=()=>{var t;r||(o(),t=s(l?n[0]:n,e),c?e(t):o=v(t)?t:z)},t=u.map((t,e)=>h(t,t=>{n[e]=t,r&=~(1<<e),i&&a()},()=>{r|=1<<e}));return i=!0,a(),function(){Z(t),o()}}).subscribe}}var Te=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Ce));var e},Ce="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Le(t,e){return!1!==e.clone&&e.isMergeableObject(t)?De(Array.isArray(t)?[]:{},t,e):t}function Me(t,e,i){return t.concat(e).map(function(t){return Le(t,i)})}function Ae(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function Se(t,e){try{return e in t}catch(t){return!1}}function Ie(n,r,o){var a={};return o.isMergeableObject(n)&&Ae(n).forEach(function(t){a[t]=Le(n[t],o)}),Ae(r).forEach(function(e){var t,i;(!Se(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Se(n,e)&&o.isMergeableObject(r[e])?a[e]=function(){if(!o.customMerge)return De;var t=o.customMerge(e);return"function"==typeof t?t:De}()(n[e],r[e],o):a[e]=Le(r[e],o))}),a}function De(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Me,i.isMergeableObject=i.isMergeableObject||Te,i.cloneUnlessOtherwiseSpecified=Le;var n=Array.isArray(e);return n===Array.isArray(t)?n?i.arrayMerge(t,e,i):Ie(t,e,i):Le(e,i)}De.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return De(t,e,i)},{})};var ke=De,Pe=function(t,e){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function Oe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Pe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Ne,Re,Ye,Fe=function(){return(Fe=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function Ue(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t}function Ge(t){return t.type===Re.literal}function $e(t){return t.type===Re.number}function We(t){return t.type===Re.date}function je(t){return t.type===Re.time}function Be(t){return t.type===Re.select}function He(t){return t.type===Re.plural}function Ve(t){return t.type===Re.tag}function ze(t){return t&&"object"==typeof t&&t.type===Ye.number}function Ze(t){return t&&"object"==typeof t&&t.type===Ye.dateTime}(ci=Ne=Ne||{})[ci.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ci[ci.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ci[ci.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ci[ci.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ci[ci.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ci[ci.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ci[ci.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ci[ci.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ci[ci.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ci[ci.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ci[ci.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ci[ci.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ci[ci.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ci[ci.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ci[ci.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ci[ci.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ci[ci.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ci[ci.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ci[ci.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ci[ci.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ci[ci.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ci[ci.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ci[ci.INVALID_TAG=23]="INVALID_TAG",ci[ci.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ci[ci.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ci[ci.UNCLOSED_TAG=27]="UNCLOSED_TAG",(di=Re=Re||{})[di.literal=0]="literal",di[di.argument=1]="argument",di[di.number=2]="number",di[di.date=3]="date",di[di.time=4]="time",di[di.select=5]="select",di[di.plural=6]="plural",di[di.pound=7]="pound",di[di.tag=8]="tag",(hi=Ye=Ye||{})[hi.number=0]="number",hi[hi.dateTime=1]="dateTime";var t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xe=/(?:[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 qe,Je=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ke=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qe=/^(@+)?(\+|#+)?$/g,ti=/(\*)(0+)|(#+)(0+)|(0+)/g,ei=/^(0+)$/;function ii(t){var n={};return t.replace(Qe,function(t,e,i){return"string"!=typeof i?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===i?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof i?i.length:0)),""}),n}function ni(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ri(t){return ni(t)||{}}function oi(t){for(var a={},e=0,i=t;e<i.length;e++){var n,r=i[e];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=Fe(Fe(Fe({},a),{notation:"scientific"}),r.options.reduce(function(t,e){return Fe(Fe({},t),ri(e))},{}));continue;case"engineering":a=Fe(Fe(Fe({},a),{notation:"engineering"}),r.options.reduce(function(t,e){return Fe(Fe({},t),ri(e))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(ti,function(t,e,i,n,r,o){if(e)a.minimumIntegerDigits=i.length;else{if(n&&r)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ei.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(Ke.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Ke,function(t,e,i,n,r,o){return"*"===i?a.minimumFractionDigits=e.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=e.length,a.maximumFractionDigits=e.length),""}),r.options.length&&(a=Fe(Fe({},a),ii(r.options[0])))}else Qe.test(r.stem)?a=Fe(Fe({},a),ii(r.stem)):((n=ni(r.stem))&&(a=Fe(Fe({},a),n)),(n=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!ei.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(r.stem))&&(a=Fe(Fe({},a),n)))}return a}var ai=new RegExp("^"+t.source+"*"),si=new RegExp(t.source+"*$");function li(t,e){return{start:t,end:e}}var ui=!!String.prototype.startsWith,ne=!!String.fromCodePoint,he=!!Object.fromEntries,ci=!!String.prototype.codePointAt,di=!!String.prototype.trimStart,hi=!!String.prototype.trimEnd,fi=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},t=!0;try{t="a"===(null===(qe=xi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===qe?void 0:qe[0])}catch(z){t=!1}var mi,pi,yi=ui?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},gi=ne?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,n="",r=t.length,o=0;o<r;){if(1114111<(i=t[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},wi=he?Object.fromEntries:function(t){for(var e={},i=0,n=t;i<n.length;i++){var r=n[i],o=r[0],r=r[1];e[o]=r}return e},vi=ci?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||i<=e)){var n,r=t.charCodeAt(e);return r<55296||56319<r||e+1===i||(n=t.charCodeAt(e+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536}},_i=di?function(t){return t.trimStart()}:function(t){return t.replace(ai,"")},bi=hi?function(t){return t.trimEnd()}:function(t){return t.replace(si,"")};function xi(t,e){return new RegExp(t,e)}pi=t?(mi=xi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return mi.lastIndex=e,null!==(t=mi.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var i,n=[];;){var r=vi(t,e);if(void 0===r||Li(r)||(33<=(i=r)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094))break;n.push(r),e+=65536<=r?2:1}return gi.apply(void 0,n)};var Ei=(Ti.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ti.prototype.parseMessage=function(t,e,i){for(var n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(t,i)).err)return r;n.push(r.val)}else{if(125===o&&0<t)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(Ne.UNMATCHED_CLOSING_TAG,li(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ci(this.peek()||0)){if((r=this.parseTag(t,e)).err)return r;n.push(r.val)}else{if((r=this.parseLiteral(t,e)).err)return r;n.push(r.val)}}else{o=this.clonePosition();this.bump(),n.push({type:Re.pound,location:li(o,this.clonePosition())})}}}return{val:n,err:null}},Ti.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Re.literal,value:"<"+n+"/>",location:li(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,e,!0);if(r.err)return r;t=r.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ci(this.char()))return this.error(Ne.INVALID_TAG,li(e,this.clonePosition()));r=this.clonePosition();return n!==this.parseTagName()?this.error(Ne.UNMATCHED_CLOSING_TAG,li(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Re.tag,value:n,children:t,location:li(i,this.clonePosition())},err:null}:this.error(Ne.INVALID_TAG,li(e,this.clonePosition())))}return this.error(Ne.UNCLOSED_TAG,li(i,this.clonePosition()))}return this.error(Ne.INVALID_TAG,li(i,this.clonePosition()))},Ti.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},Ti.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(e);if(r)n+=r;else{r=this.tryParseUnquoted(t,e);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=li(i,this.clonePosition());return{val:{type:Re.literal,value:n,location:i},err:null}},Ti.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ci(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},Ti.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return gi.apply(void 0,e)},Ti.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&0<t?null:(this.bump(),gi(i))},Ti.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ne.EMPTY_ARGUMENT,li(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ne.MALFORMED_ARGUMENT,li(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Re.argument,value:n,location:li(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition())):this.parseArgumentOptions(t,e,n,i);default:return this.error(Ne.MALFORMED_ARGUMENT,li(i,this.clonePosition()))}},Ti.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=pi(this.message,e),e=e+i.length;return this.bumpTo(e),{value:i,location:li(t,this.clonePosition())}},Ti.prototype.parseArgumentOptions=function(t,e,i,n){var r,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ne.EXPECT_ARGUMENT_TYPE,li(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=bi(h.val)).length)return this.error(Ne.EXPECT_ARGUMENT_STYLE,li(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:li(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var c=li(n,this.clonePosition());if(l&&yi(null==l?void 0:l.style,"::",0)){u=_i(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:Re.number,value:i,location:c,style:h.val},err:null};if(0===u.length)return this.error(Ne.EXPECT_DATE_TIME_SKELETON,c);var d={type:Ye.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(Xe,function(t){var e=t.length;switch(t[0]){case"G":r.era=4===e?"long":5===e?"narrow":"short";break;case"y":r.year=2===e?"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":r.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][e-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][e-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][e-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][e-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":r.minute=["numeric","2-digit"][e-1];break;case"s":r.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=e<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""}),r):{}};return{val:{type:"date"===a?Re.date:Re.time,value:i,location:c,style:d},err:null}}return{val:{type:"number"===a?Re.number:"date"===a?Re.date:Re.time,value:i,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ne.EXPECT_SELECT_ARGUMENT_OPTIONS,li(l,Fe({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Ne.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,li(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(Ne.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ne.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,a,e,c);if(c.err)return c;if((f=this.tryParseArgumentClose(n)).err)return f;var f=li(n,this.clonePosition());return"select"===a?{val:{type:Re.select,value:i,options:wi(c.val),location:f},err:null}:{val:{type:Re.plural,value:i,options:wi(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:f},err:null};default:return this.error(Ne.INVALID_ARGUMENT_TYPE,li(o,s))}},Ti.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,li(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ti.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ne.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,li(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},Ti.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],i=0,n=t.split(Je).filter(function(t){return 0<t.length});i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:r})}return e}(t)}catch(t){return this.error(Ne.INVALID_NUMBER_SKELETON,e)}return{val:{type:Ye.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?oi(i):{}},err:null}},Ti.prototype.tryParsePluralOrSelectOptions=function(t,e,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ne.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=li(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===e?Ne.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ne.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(r=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Ne.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,li(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,i);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;o.push([s,{value:c.val,location:li(d,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===e?Ne.EXPECT_SELECT_ARGUMENT_SELECTOR:Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR,li(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(Ne.MISSING_OTHER_CLAUSE,li(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ti.prototype.tryParseDecimalInteger=function(t,e){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}n=li(n,this.clonePosition());return r?fi(o*=i)?{val:o,err:null}:this.error(e,n):this.error(t,n)},Ti.prototype.offset=function(){return this.position.offset},Ti.prototype.isEOF=function(){return this.offset()===this.message.length},Ti.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ti.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=vi(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},Ti.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},Ti.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},Ti.prototype.bumpIf=function(t){if(yi(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},Ti.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},Ti.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ti.prototype.bumpSpace=function(){for(;!this.isEOF()&&Li(this.char());)this.bump()},Ti.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},Ti);function Ti(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function Ci(t){return 97<=t&&t<=122||65<=t&&t<=90}function Li(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function Mi(t,e){e=Fe({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var i=new Ei(t,e).parse();if(i.err){t=SyntaxError(Ne[i.err.kind]);throw t.location=i.err.location,t.originalMessage=i.err.message,t}return null!=e&&e.captureLocation||function i(t){t.forEach(function(t){if(delete t.location,Be(t)||He(t))for(var e in t.options)delete t.options[e].location,i(t.options[e].value);else $e(t)&&ze(t.style)||(We(t)||je(t))&&Ze(t.style)?delete t.style.location:Ve(t)&&i(t.children)})}(i.val),i.val}function Ai(t,e){var i=e&&e.cache?e.cache:Ri,n=e&&e.serializer?e.serializer:Pi;return(e&&e.strategy?e.strategy:function(t,e){return ki(t,this,1===t.length?Si:Di,e.cache.create(),e.serializer)})(t,{cache:i,serializer:n})}function Si(t,e,i,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),i=e.get(r);return void 0===i&&(i=t.call(this,n),e.set(r,i)),i}function Di(t,e,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),i=e.get(r);return void 0===i&&(i=t.apply(this,n),e.set(r,i)),i}function ki(t,e,i,n,r){return i.bind(e,t,n,r)}var Pi=function(){return JSON.stringify(arguments)};function Oi(){this.cache=Object.create(null)}Oi.prototype.has=function(t){return t in this.cache},Oi.prototype.get=function(t){return this.cache[t]},Oi.prototype.set=function(t,e){this.cache[t]=e};var Ni,Ri={create:function(){return new Oi}},Yi={variadic:function(t,e){return ki(t,this,Di,e.cache.create(),e.serializer)},monadic:function(t,e){return ki(t,this,Si,e.cache.create(),e.serializer)}};(t=Ni=Ni||{}).MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API";var Fi,Ui,Gi,$i,Wi,ji=(Oe(qi,Wi=Error),qi.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},qi),Bi=(Oe(Xi,$i=ji),Xi),Hi=(Oe(Zi,Gi=ji),Zi),Vi=(Oe(zi,Ui=ji),zi);function zi(t,e){return Ui.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',Ni.MISSING_VALUE,e)||this}function Zi(t,e,i){return Gi.call(this,'Value for "'+t+'" must be of type '+e,Ni.INVALID_VALUE,i)||this}function Xi(t,e,i,n){return $i.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(i).join('", "')+'"',Ni.INVALID_VALUE,n)||this}function qi(t,e,i){t=Wi.call(this,t)||this;return t.code=e,t.originalMessage=i,t}function Ji(t,e,i,n,r,o,a){if(1===t.length&&Ge(t[0]))return[{type:Fi.literal,value:t[0].value}];for(var s=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Ge(c))s.push({type:Fi.literal,value:c.value});else if(c.type===Re.pound)"number"==typeof o&&s.push({type:Fi.literal,value:i.getNumberFormat(e).format(o)});else{var d=c.value;if(!(r&&d in r))throw new Vi(d,a);var h=r[d];if(c.type===Re.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Fi.literal:Fi.object,value:h});else if(We(c)){var f="string"==typeof c.style?n.date[c.style]:Ze(c.style)?c.style.parsedOptions:void 0;s.push({type:Fi.literal,value:i.getDateTimeFormat(e,f).format(h)})}else if(je(c))f="string"==typeof c.style?n.time[c.style]:Ze(c.style)?c.style.parsedOptions:void 0,s.push({type:Fi.literal,value:i.getDateTimeFormat(e,f).format(h)});else if($e(c))(f="string"==typeof c.style?n.number[c.style]:ze(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Fi.literal,value:i.getNumberFormat(e,f).format(h)});else{if(Ve(c)){var m=c.children,p=c.value,d=r[p];if("function"!=typeof d)throw new Hi(p,"function",a);m=d(Ji(m,e,i,n,r,o).map(function(t){return t.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(t){return{type:"string"==typeof t?Fi.literal:Fi.object,value:t}}))}if(Be(c)){if(!(y=c.options[h]||c.options.other))throw new Bi(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ji(y.value,e,i,n,r))}else if(He(c)){if(!(y=c.options["="+h])){if(!Intl.PluralRules)throw new ji('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ni.MISSING_INTL_API,a);var m=i.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),y=c.options[m]||c.options.other}if(!y)throw new Bi(c.value,h,Object.keys(c.options),a);s.push.apply(s,Ji(y.value,e,i,n,r,h-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(t,e){var i=t[t.length-1];return i&&i.type===Fi.literal&&e.type===Fi.literal?i.value+=e.value:t.push(e),t},[])}function Ki(i){return{create:function(){return{has:function(t){return t in i},get:function(t){return i[t]},set:function(t,e){i[t]=e}}}}}(t=Fi=Fi||{})[t.literal=0]="literal",t[t.object=1]="object";var Qi=(Object.defineProperty(tn,"defaultLocale",{get:function(){return tn.memoizedDefaultLocale||(tn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),tn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),tn.memoizedDefaultLocale=null,tn.__parse=Mi,tn.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"}}},tn);function tn(t,e,i,n){var r,o,a=this;if(void 0===e&&(e=tn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=a.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===Fi.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Ji(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!tn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=tn.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(r=tn.formats,(o=i)?Object.keys(r).reduce(function(t,e){var i,n;return t[e]=(i=r[e],(n=o[e])?Fe(Fe(Fe({},i||{}),n||{}),Object.keys(i).reduce(function(t,e){return t[e]=Fe(Fe({},i[e]),n[e]||{}),t},{})):i),t},Fe({},r)):r),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:Ai(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Ue([void 0],e)))},{cache:Ki((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Yi.variadic}),getDateTimeFormat:Ai(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Ue([void 0],e)))},{cache:Ki(n.dateTime),strategy:Yi.variadic}),getPluralRules:Ai(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Ue([void 0],e)))},{cache:Ki(n.pluralRules),strategy:Yi.variadic})}}const en={},nn=(e,i)=>{if(null!=i){if(i in en&&e in en[i])return en[i][e];var n,r,o=vn(i);for(let t=0;t<o.length;t++){var a=(n=o[t],r=e,an(n)?function(t,e){if(e in t)return t[e];const i=e.split(".");let n=t;for(let t=0;t<i.length;t++)if("object"==typeof n){if(0<t){const e=i.slice(t,i.length).join(".");if(e in n){n=n[e];break}}n=n[i[t]]}else n=void 0;return n}(function(t){return rn[t]||null}(n),r):null);if(a)return n=e,r=i,(a=a)&&(r in en||(en[r]={}),n in en[r]||(en[r][n]=a),a)}}};let rn;const on=xe({});function an(t){return t in rn}function sn(e,...i){delete en[e],on.update(t=>(t[e]=ke.all([t[e]||{},...i]),t))}Ee([on],([t])=>Object.keys(t)),on.subscribe(t=>rn=t);const ln={};function un(t){return ln[t]}function cn(t){return vn(t).some(t=>{return null===(t=un(t))||void 0===t?void 0:t.size})}const dn={};function hn(t){if(!cn(t))return t in dn?dn[t]:void 0;const e=vn(t).map(t=>{var e=un(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return dn[t]=Promise.all(e.map(([t,i])=>function(e){return Promise.all(i.map(t=>(function(t,e){ln[t].delete(e),0===ln[t].size&&delete ln[t]}(e,t),t().then(t=>t.default||t)))).then(t=>sn(e,...t))}(t))).then(()=>cn(t)?hn(t):void delete dn[t]),dn[t]}function fn(t,e){var i={};for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]]);return i}const mn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const pn=xe(!1);let yn;const gn=xe(null);function wn(t){return t.split("-").map((t,e,i)=>i.slice(0,e+1).join("-")).reverse()}function vn(t,e=mn.fallbackLocale){t=wn(t);return e?[...new Set([...t,...wn(e)])]:t}gn.subscribe(t=>{yn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const _n=gn.set;gn.set=e=>{if(function(t){if(null!=t){var e=vn(t);for(let t=0;t<e.length;t++){var i=e[t];if(an(i))return i}}}(e)&&cn(e)){var{loadingDelay:i}=mn;let t;return"undefined"!=typeof window&&null!=yn&&i?t=window.setTimeout(()=>pn.set(!0),i):pn.set(!0),hn(e).then(()=>{_n(e)}).finally(()=>{clearTimeout(t),pn.set(!1)})}return _n(e)},gn.update=t=>_n(t(yn));const bn=i=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=i(t)}},xn=(t,e)=>{var{formats:i}=mn;if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},En=bn(t=>{var{locale:e,format:i}=t,t=fn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(t=xn("number",i)),new Intl.NumberFormat(e,t)}),Tn=bn(t=>{var{locale:e,format:i}=t,t=fn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?t=xn("date",i):0===Object.keys(t).length&&(t=xn("date","short")),new Intl.DateTimeFormat(e,t)}),Cn=bn(t=>{var{locale:e,format:i}=t,t=fn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?t=xn("time",i):0===Object.keys(t).length&&(t=xn("time","short")),new Intl.DateTimeFormat(e,t)}),Ln=bn((t,e=yn)=>new Qi(t,e,mn.formats,{ignoreTag:mn.ignoreTag})),Mn=Ee([gn,on],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:i,locale:n=yn,default:r}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=nn(t,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else mn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${vn(n).join('", "')}".${cn(yn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=r||t;if(!i)return o;let a=o;try{a=Ln(o,n).format(i)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return a});Ee([gn],()=>(t,e)=>((t={})=>{var{locale:e=yn}=t,t=fn(t,["locale"]);return Cn(Object.assign({locale:e},t))})(e).format(t)),Ee([gn],()=>(t,e)=>((t={})=>{var{locale:e=yn}=t,t=fn(t,["locale"]);return Tn(Object.assign({locale:e},t))})(e).format(t)),Ee([gn],()=>(t,e)=>((t={})=>{var{locale:e=yn}=t,t=fn(t,["locale"]);return En(Object.assign({locale:e},t))})(e).format(t)),Ee([gn,on],()=>(t,e=yn)=>nn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ve.indexOf(t)&&(e=new pe(e),_e[t]=e,ve.push(t)),_e[t]}};const An=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",Sn={en:{gamingLimits:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}},ro:{gamingLimits:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"}}},In={en:{cardText:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"}},ro:{cardText:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"}}},Dn={en:{popupText:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt."}},ro:{popupText:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră. "}}};function kn(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y,g,w=i[3]("popupText.name")+"";function v(t){return t[0]?On:Pn}let _=v(i),b=_(i);return{c(){n=K("section"),r=K("div"),o=K("div"),a=K("div"),a.textContent="i",s=tt(),l=K("div"),u=Q(w),c=tt(),d=K("div"),d.innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',h=tt(),f=K("div"),b.c(),nt(a,"class","InfoCardPopupIcon"),nt(a,"part","InfoCardPopupIcon"),nt(l,"class","InfoCardPopupTitle"),nt(l,"part","InfoCardPopupTitle"),nt(d,"class","InfoCardPopupCloseButton"),nt(d,"part","InfoCardPopupCloseButton"),nt(o,"class","InfoCardPopupHeader"),nt(o,"part","InfoCardPopupHeader"),nt(f,"class","InfoCardPopupContentArea"),nt(f,"part","InfoCardPopupContentArea"),nt(r,"class",m="InfoCardPopupWrapper "+(i[4]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),nt(r,"part",p="InfoCardPopupWrapper "+(i[4]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),nt(n,"class",i[4]?"InfoCardPopupMobileModal":""),nt(n,"part",i[4]?"InfoCardPopupMobileModal":"")},m(t,e){q(t,n,e),X(n,r),X(r,o),X(o,a),X(o,s),X(o,l),X(l,u),X(o,c),X(o,d),X(r,h),X(r,f),b.m(f,null),y||(g=et(d,"click",it(i[5])),y=!0)},p(t,e){8&e&&w!==(w=t[3]("popupText.name")+"")&&ot(u,w),_===(_=v(t))&&b?b.p(t,e):(b.d(1),b=_(t),b&&(b.c(),b.m(f,null))),1&e&&m!==(m="InfoCardPopupWrapper "+(t[4]?"InfoCardPopupMobileWrapper":"")+" "+(t[0]?"InfoCardPopupLimitChanged":""))&&nt(r,"class",m),1&e&&p!==(p="InfoCardPopupWrapper "+(t[4]?"InfoCardPopupMobileWrapper":"")+" "+(t[0]?"InfoCardPopupLimitChanged":""))&&nt(r,"part",p)},d(t){t&&J(n),b.d(),y=!1,g()}}}function Pn(t){let i,n,r=t[3]("popupText.defaultText")+"";return{c(){i=K("p"),n=Q(r),nt(i,"class","InfoCardPopupContent"),nt(i,"part","InfoCardPopupContent")},m(t,e){q(t,i,e),X(i,n)},p(t,e){8&e&&r!==(r=t[3]("popupText.defaultText")+"")&&ot(n,r)},d(t){t&&J(i)}}}function On(t){let i,n,r=t[3]("popupText.amountChanged",{values:{amount:t[0],currency:t[1]}})+"";return{c(){i=K("p"),n=Q(r),nt(i,"class","InfoCardPopupContent"),nt(i,"part","InfoCardPopupContent")},m(t,e){q(t,i,e),X(i,n)},p(t,e){11&e&&r!==(r=t[3]("popupText.amountChanged",{values:{amount:t[0],currency:t[1]}})+"")&&ot(n,r)},d(t){t&&J(i)}}}function Nn(t){let i,n=t[2]&&kn(t);return{c(){n&&n.c(),i=x(),this.c=z},m(t,e){n&&n.m(t,e),q(t,i,e)},p(t,[e]){t[2]?n?n.p(t,e):(n=kn(t),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:z,o:z,d(t){n&&n.d(t),t&&J(i)}}}function Rn(e,t,i){let n;N(e,Mn,t=>i(3,n=t));let{showpopup:r=""}=t,{iteminfoamount:o=""}=t,{lang:a="en"}=t,{playercurrency:s="USD"}=t;Object.keys(Dn).forEach(t=>{sn(t,Dn[t])});let l=!1,u=window.navigator.userAgent,c="PC"!==An(u);const d=t=>{t.data&&"ClosePlayerAccountGamingLimitsPopup"==t.data.type&&i(2,l=!1)};return Y(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)})),e.$$set=t=>{"showpopup"in t&&i(6,r=t.showpopup),"iteminfoamount"in t&&i(0,o=t.iteminfoamount),"lang"in t&&i(7,a=t.lang),"playercurrency"in t&&i(1,s=t.playercurrency)},e.$$.update=()=>{var t;192&e.$$.dirty&&r&&a&&(t=a,gn.set(t),o<0&&i(0,o="0"),i(2,l=r))},[o,s,l,n,c,()=>{i(2,l=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a]}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends H{constructor(t){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'}.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:''}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:\"\";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, #FD2839);fill:var(--emfe-w-color-secondary, #FD2839)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Rn,Nn,i,{showpopup:6,iteminfoamount:0,lang:7,playercurrency:1}),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency"]}get showpopup(){return this.$$.ctx[6]}set showpopup(t){this.$set({showpopup:t}),k()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(t){this.$set({iteminfoamount:t}),k()}get lang(){return this.$$.ctx[7]}set lang(t){this.$set({lang:t}),k()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(t){this.$set({playercurrency:t}),k()}});const Yn={en:{editText:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on ",invalidInputMessageLimit:"The amount needs to be between 0 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:". You will have to wait for the expiration date for your new limit \vto take effect"}},ro:{editText:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei ",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 0 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare."}}};var Fn,Un,Gn=(Un=Fn={path:void 0,exports:{},require:function(t,e){return Ii(null==e&&Fn.path)}},Fn.exports,Un.exports=function(){var t;function m(){return t.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(f(t,e))return;return 1}function o(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function n(t,e){for(var i=[],n=0;n<t.length;++n)i.push(e(t[n],n));return i}function c(t,e){for(var i in e)f(e,i)&&(t[i]=e[i]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return Se(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._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}),t._pf}function h(t){if(null==t._isValid){var e=p(t),i=g.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=d(NaN);return null!=t?c(p(e),t):p(e).userInvalidated=!0,e}var g=Array.prototype.some||function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1},w=m.momentProperties=[],e=!1;function v(t,e){var i,n,r;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=p(e)),o(e._locale)||(t._locale=e._locale),0<w.length)for(i=0;i<w.length;i++)o(r=e[n=w[i]])||(t[n]=r);return t}function _(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,m.updateOffset(this),e=!1)}function b(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function x(t){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function i(r,o){var a=!0;return c(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,r),a){for(var t,e,i=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(e in t+="\n["+n+"] ",arguments[0])f(arguments[0],e)&&(t+=e+": "+arguments[0][e]+", ");t=t.slice(0,-2)}else t=arguments[n];i.push(t)}x(r+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var E={};function T(t,e){null!=m.deprecationHandler&&m.deprecationHandler(t,e),E[t]||(x(e),E[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t,e){var i,n=c({},t);for(i in e)f(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},c(n[i],t[i]),c(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)f(t,i)&&!f(e,i)&&s(t[i])&&(n[i]=c({},n[i]));return n}function M(t){null!=t&&this.set(t)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var A=Object.keys||function(t){var e,i=[];for(e in t)f(t,e)&&i.push(e);return i};function S(t,e,i){var n=""+Math.abs(t);return(0<=t?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var I=/(\[[^\[]*\])|(\\)?([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,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},P={};function O(t,e,i,n){var r="string"==typeof n?function(){return this[n]()}:n;t&&(P[t]=r),e&&(P[e[0]]=function(){return S(r.apply(this,arguments),e[1],e[2])}),i&&(P[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(e=R(e,t.localeData()),k[e]=k[e]||function(n){for(var t,r=n.match(I),e=0,o=r.length;e<o;e++)P[r[e]]?r[e]=P[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",i=0;i<o;i++)e+=C(r[i])?r[i].call(t,n):r[i];return e}}(e),k[e](t)):t.localeData().invalidDate()}function R(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(D.lastIndex=0;0<=i&&D.test(t);)t=t.replace(D,n),D.lastIndex=0,--i;return t}var Y={};function F(t,e){var i=t.toLowerCase();Y[i]=Y[i+"s"]=Y[e]=t}function U(t){return"string"==typeof t?Y[t]||Y[t.toLowerCase()]:void 0}function G(t){var e,i,n={};for(i in t)f(t,i)&&(e=U(i))&&(n[e]=t[i]);return n}var $={};function W(t,e){$[t]=e}function j(t){return t%4==0&&t%100!=0||t%400==0}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function H(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?B(e):t}function V(e,i){return function(t){return null!=t?(Z(this,e,t),m.updateOffset(this,i),this):z(this,e)}}function z(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Z(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&j(t.year())&&1===t.month()&&29===t.date()?(i=H(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),At(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var X=/\d/,q=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,tt=/\d\d?/,et=/\d\d\d\d?/,it=/\d\d\d\d\d\d?/,nt=/\d{1,3}/,rt=/\d{1,4}/,ot=/[+-]?\d{1,6}/,at=/\d+/,st=/[+-]?\d+/,lt=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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 dt(t,i,n){mt[t]=C(i)?i:function(t,e){return t&&n?n:i}}function ht(t,e){return f(mt,t)?mt[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r})))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var mt={},pt={};function yt(t,i){var e,n=i;for("string"==typeof t&&(t=[t]),u(i)&&(n=function(t,e){e[i]=H(t)}),e=0;e<t.length;e++)pt[t[e]]=n}function gt(t,r){yt(t,function(t,e,i,n){i._w=i._w||{},r(t,i._w,i,n)})}var wt,vt=0,_t=1,bt=2,xt=3,Et=4,Tt=5,Ct=6,Lt=7,Mt=8;function At(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,i=(e%(i=12)+i)%i;return t+=(e-i)/12,1==i?j(t)?29:28:31-i%7%2}wt=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),O("MMMM",0,0,function(t){return this.localeData().months(this,t)}),F("month","M"),W("month",8),dt("M",tt),dt("MM",tt,q),dt("MMM",function(t,e){return e.monthsShortRegex(t)}),dt("MMMM",function(t,e){return e.monthsRegex(t)}),yt(["M","MM"],function(t,e){e[_t]=H(t)-1}),yt(["MMM","MMMM"],function(t,e,i,n){n=i._locale.monthsParse(t,n,i._strict);null!=n?e[_t]=n:p(i).invalidMonth=t});var St="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),It="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kt=ct,Pt=ct;function Ot(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=H(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Nt(t){return null!=t?(Ot(this,t),m.updateOffset(this,!0),this):z(this,"Month")}function Rt(){function t(t,e){return e.length-t.length}for(var e,i=[],n=[],r=[],o=0;o<12;o++)e=d([2e3,o]),i.push(this.monthsShort(e,"")),n.push(this.months(e,"")),r.push(this.months(e,"")),r.push(this.monthsShort(e,""));for(i.sort(t),n.sort(t),r.sort(t),o=0;o<12;o++)i[o]=ft(i[o]),n[o]=ft(n[o]);for(o=0;o<24;o++)r[o]=ft(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Yt(t){return j(t)?366:365}O("Y",0,0,function(){var t=this.year();return t<=9999?S(t,4):"+"+t}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),F("year","y"),W("year",1),dt("Y",st),dt("YY",tt,q),dt("YYYY",rt,K),dt("YYYYY",ot,Q),dt("YYYYYY",ot,Q),yt(["YYYYY","YYYYYY"],vt),yt("YYYY",function(t,e){e[vt]=2===t.length?m.parseTwoDigitYear(t):H(t)}),yt("YY",function(t,e){e[vt]=m.parseTwoDigitYear(t)}),yt("Y",function(t,e){e[vt]=parseInt(t,10)}),m.parseTwoDigitYear=function(t){return H(t)+(68<H(t)?1900:2e3)};var Ft=V("FullYear",!0);function Ut(t,e,i,n,r,o,a){var s;return t<100&&0<=t?(s=new Date(t+400,e,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,r,o,a),s}function Gt(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function $t(t,e,i){i=7+e-i;return-(7+Gt(t,0,i).getUTCDay()-e)%7+i-1}function Wt(t,e,i,n,r){var o,r=1+7*(e-1)+(7+i-n)%7+$t(t,n,r),r=r<=0?Yt(o=t-1)+r:r>Yt(t)?(o=t+1,r-Yt(t)):(o=t,r);return{year:o,dayOfYear:r}}function jt(t,e,i){var n,r,o=$t(t.year(),e,i),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?n=o+Bt(r=t.year()-1,e,i):o>Bt(t.year(),e,i)?(n=o-Bt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=o),{week:n,year:r}}function Bt(t,e,i){var n=$t(t,e,i),i=$t(t+1,e,i);return(Yt(t)-n+i)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),W("week",5),W("isoWeek",5),dt("w",tt),dt("ww",tt,q),dt("W",tt),dt("WW",tt,q),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=H(t)});function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}O("d",0,"do","day"),O("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),O("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),O("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),dt("d",tt),dt("e",tt),dt("E",tt),dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),dt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){n=i._locale.weekdaysParse(t,n,i._strict);null!=n?e.d=n:p(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=H(t)});var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=ct,qt=ct,Jt=ct;function Kt(){function t(t,e){return e.length-t.length}for(var e,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=d([2e3,1]).day(l),e=ft(this.weekdaysMin(n,"")),i=ft(this.weekdaysShort(n,"")),n=ft(this.weekdays(n,"")),r.push(e),o.push(i),a.push(n),s.push(e),s.push(i),s.push(n);r.sort(t),o.sort(t),a.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Qt(){return this.hours()%12||12}function te(t,e){O(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,Qt),O("k",["kk",2],0,function(){return this.hours()||24}),O("hmm",0,0,function(){return""+Qt.apply(this)+S(this.minutes(),2)}),O("hmmss",0,0,function(){return""+Qt.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),O("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),O("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),te("a",!0),te("A",!1),F("hour","h"),W("hour",13),dt("a",ee),dt("A",ee),dt("H",tt),dt("h",tt),dt("k",tt),dt("HH",tt,q),dt("hh",tt,q),dt("kk",tt,q),dt("hmm",et),dt("hmmss",it),dt("Hmm",et),dt("Hmmss",it),yt(["H","HH"],xt),yt(["k","kk"],function(t,e,i){t=H(t);e[xt]=24===t?0:t}),yt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),yt(["h","hh"],function(t,e,i){e[xt]=H(t),p(i).bigHour=!0}),yt("hmm",function(t,e,i){var n=t.length-2;e[xt]=H(t.substr(0,n)),e[Et]=H(t.substr(n)),p(i).bigHour=!0}),yt("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[xt]=H(t.substr(0,n)),e[Et]=H(t.substr(n,2)),e[Tt]=H(t.substr(r)),p(i).bigHour=!0}),yt("Hmm",function(t,e,i){var n=t.length-2;e[xt]=H(t.substr(0,n)),e[Et]=H(t.substr(n))}),yt("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[xt]=H(t.substr(0,n)),e[Et]=H(t.substr(n,2)),e[Tt]=H(t.substr(r))});var ie=V("Hours",!0);var ne,re={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:St,monthsShort:It,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:Zt,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},oe={},ae={};function se(t){return t&&t.toLowerCase().replace("_","-")}function le(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=se(t[o]).split("-")).length,i=(i=se(t[o+1]))?i.split("-"):null;0<e;){if(n=ue(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&function(t,e){for(var i=Math.min(t.length,e.length),n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}(r,i)>=e-1)break;e--}o++}return ne}function ue(e){var t;if(void 0===oe[e]&&Un&&Un.exports)try{t=ne._abbr,Ii(),ce(t)}catch(t){oe[e]=null}return oe[e]}function ce(t,e){return t&&((e=o(e)?he(t):de(t,e))?ne=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ne._abbr}function de(t,e){if(null===e)return delete oe[t],null;var i,n=re;if(e.abbr=t,null!=oe[t])T("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."),n=oe[t]._config;else if(null!=e.parentLocale)if(null!=oe[e.parentLocale])n=oe[e.parentLocale]._config;else{if(null==(i=ue(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;n=i._config}return oe[t]=new M(L(n,e)),ae[t]&&ae[t].forEach(function(t){de(t.name,t.config)}),ce(t),oe[t]}function he(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ne;if(!a(t)){if(e=ue(t))return e;t=[t]}return le(t)}function fe(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[_t]<0||11<e[_t]?_t:e[bt]<1||e[bt]>At(e[vt],e[_t])?bt:e[xt]<0||24<e[xt]||24===e[xt]&&(0!==e[Et]||0!==e[Tt]||0!==e[Ct])?xt:e[Et]<0||59<e[Et]?Et:e[Tt]<0||59<e[Tt]?Tt:e[Ct]<0||999<e[Ct]?Ct:-1,p(t)._overflowDayOfYear&&(e<vt||bt<e)&&(e=bt),p(t)._overflowWeeks&&-1===e&&(e=Lt),p(t)._overflowWeekday&&-1===e&&(e=Mt),p(t).overflow=e),t}var me=/^\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)?)?$/,pe=/^\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)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,ge=[["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]],we=[["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/]],ve=/^\/?Date\((-?\d+)/i,_e=/^(?:(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}))$/,be={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,i,n,r,o,a,s=t._i,l=me.exec(s)||pe.exec(s);if(l){for(p(t).iso=!0,e=0,i=ge.length;e<i;e++)if(ge[e][1].exec(l[1])){r=ge[e][0],n=!1!==ge[e][2];break}if(null==r)return t._isValid=!1;if(l[3]){for(e=0,i=we.length;e<i;e++)if(we[e][1].exec(l[3])){o=(l[2]||" ")+we[e][0];break}if(null==o)return t._isValid=!1}if(!n&&null!=o)return t._isValid=!1;if(l[4]){if(!ye.exec(l[4]))return t._isValid=!1;a="Z"}t._f=r+(o||"")+(a||""),Me(t)}else t._isValid=!1}function Ee(t,e,i,n,r,o){r=[function(t){t=parseInt(t,10);return t<=49?2e3+t:t<=999?1900+t:t}(t),It.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&r.push(parseInt(o,10)),r}function Te(t){var e,i,n,r,o=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(e=Ee(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],n=e,r=t,i&&zt.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(p(r).weekdayMismatch=!0,r._isValid=!1):(t._a=e,t._tzm=(r=o[8],e=o[9],o=o[10],r?be[r]:e?0:((e=parseInt(o,10))-(o=e%100))/100*60+o),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0)):t._isValid=!1}function Ce(t,e,i){return null!=t?t:null!=e?e:i}function Le(t){var e,i,n,r,o,a,s,l,u,c,d,h,f=[];if(!t._d){for(d=t,h=new Date(m.now()),i=d._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],t._w&&null==t._a[bt]&&null==t._a[_t]&&(null!=(d=(r=t)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,o=Ce(d.GG,r._a[vt],jt(Ie(),1,4).year),a=Ce(d.W,1),((s=Ce(d.E,1))<1||7<s)&&(c=!0)):(l=r._locale._week.dow,u=r._locale._week.doy,h=jt(Ie(),l,u),o=Ce(d.gg,r._a[vt],h.year),a=Ce(d.w,h.week),null!=d.d?((s=d.d)<0||6<s)&&(c=!0):null!=d.e?(s=d.e+l,(d.e<0||6<d.e)&&(c=!0)):s=l),a<1||a>Bt(o,l,u)?p(r)._overflowWeeks=!0:null!=c?p(r)._overflowWeekday=!0:(u=Wt(o,a,s,l,u),r._a[vt]=u.year,r._dayOfYear=u.dayOfYear)),null!=t._dayOfYear&&(n=Ce(t._a[vt],i[vt]),(t._dayOfYear>Yt(n)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Gt(n,0,t._dayOfYear),t._a[_t]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=i[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[Et]&&0===t._a[Tt]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Gt:Ut).apply(null,f),n=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==n&&(p(t).weekdayMismatch=!0)}}function Me(t){if(t._f!==m.ISO_8601)if(t._f!==m.RFC_2822){t._a=[],p(t).empty=!0;for(var e,i,n=""+t._i,r=n.length,o=0,a=R(t._f,t._locale).match(I)||[],s=0;s<a.length;s++)i=a[s],(e=(n.match(ht(i,t))||[])[0])&&(0<(d=n.substr(0,n.indexOf(e))).length&&p(t).unusedInput.push(d),n=n.slice(n.indexOf(e)+e.length),o+=e.length),P[i]?(e?p(t).empty=!1:p(t).unusedTokens.push(i),c=i,h=t,null!=(d=e)&&f(pt,c)&&pt[c](d,h._a,h,c)):t._strict&&!e&&p(t).unusedTokens.push(i);p(t).charsLeftOver=r-o,0<n.length&&p(t).unusedInput.push(n),t._a[xt]<=12&&!0===p(t).bigHour&&0<t._a[xt]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[xt]=(l=t._locale,u=t._a[xt],null==(r=t._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,r):null!=l.isPM?((r=l.isPM(r))&&u<12&&(u+=12),u=r||12!==u?u:0):u),null!==(u=p(t).era)&&(t._a[vt]=t._locale.erasConvertYear(u,t._a[vt])),Le(t),fe(t)}else Te(t);else xe(t);var l,u,c,d,h}function Ae(t){var e=t._i,i=t._f;return t._locale=t._locale||he(t._l),null===e||void 0===i&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new _(fe(e)):(r(e)?t._d=e:a(i)?function(t){var e,i,n,r,o,a,s=!1;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,a=!1,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Me(e),h(e)&&(a=!0),o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,s?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(s=!0));c(t,i||e)}(t):i?Me(t):o(i=(e=t)._i)?e._d=new Date(m.now()):r(i)?e._d=new Date(i.valueOf()):"string"==typeof i?function(t){var e=ve.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Te(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:m.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):a(i)?(e._a=n(i.slice(0),function(t){return parseInt(t,10)}),Le(e)):s(i)?function(t){var e,i;t._d||(i=void 0===(e=G(t._i)).day?e.date:e.day,t._a=n([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),Le(t))}(e):u(i)?e._d=new Date(i):m.createFromInputFallback(e),h(t)||(t._d=null),t))}function Se(t,e,i,n,r){var o={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(s(t)&&l(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=t,o._f=e,o._strict=n,(o=new _(fe(Ae(o=o))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ie(t,e,i,n){return Se(t,e,i,n,!1)}m.createFromInputFallback=i("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var De=i("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ie.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),ke=i("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ie.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function Pe(t,e){var i,n;if(!(e=1===e.length&&a(e[0])?e[0]:e).length)return Ie();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=G(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,t=e.millisecond||0;this._isValid=function(t){var e,i,n=!1;for(e in t)if(f(t,e)&&(-1===wt.call(Oe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<Oe.length;++i)if(t[Oe[i]]){if(n)return!1;parseFloat(t[Oe[i]])!==H(t[Oe[i]])&&(n=!0)}return!0}(e),this._milliseconds=+t+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=he(),this._bubble()}function Re(t){return t instanceof Ne}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,i){O(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+S(~~(t/60),2)+i+S(~~t%60,2)})}Fe("Z",":"),Fe("ZZ",""),dt("Z",ut),dt("ZZ",ut),yt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Ge(ut,t)});var Ue=/([\+\-]|\d\d)/gi;function Ge(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Ue)||["-",0,0])[1]+H(t[2]))?0:"+"===t[0]?e:-e}function $e(t,e){var i;return e._isUTC?(i=e.clone(),e=(b(t)||r(t)?t:Ie(t)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+e),m.updateOffset(i,!1),i):Ie(t).local()}function We(t){return-Math.round(t._d.getTimezoneOffset())}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Be=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ve(t,e){var i,n,r=t,o=null;return Re(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(o=Be.exec(t))?(i="-"===o[1]?-1:1,r={y:0,d:H(o[bt])*i,h:H(o[xt])*i,m:H(o[Et])*i,s:H(o[Tt])*i,ms:H(Ye(1e3*o[Ct]))*i}):(o=He.exec(t))?(i="-"===o[1]?-1:1,r={y:ze(o[2],i),M:ze(o[3],i),w:ze(o[4],i),d:ze(o[5],i),h:ze(o[6],i),m:ze(o[7],i),s:ze(o[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Ie(r.from),i=Ie(r.to),n=o.isValid()&&i.isValid()?(i=$e(i,o),o.isBefore(i)?n=Ze(o,i):((n=Ze(i,o)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=n.milliseconds,r.M=n.months),r=new Ne(r),Re(t)&&f(t,"_locale")&&(r._locale=t._locale),Re(t)&&f(t,"_isValid")&&(r._isValid=t._isValid),r}function ze(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function Ze(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Xe(n,r){return function(t,e){var i;return null===e||isNaN(+e)||(T(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=e,e=i),qe(this,Ve(t,e),n),this}}function qe(t,e,i,n){var r=e._milliseconds,o=Ye(e._days),e=Ye(e._months);t.isValid()&&(n=null==n||n,e&&Ot(t,z(t,"Month")+e*i),o&&Z(t,"Date",z(t,"Date")+o*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&m.updateOffset(t,o||e))}Ve.fn=Ne.prototype,Ve.invalid=function(){return Ve(NaN)};var Je=Xe(1,"add"),ct=Xe(-1,"subtract");function Ke(t){return"string"==typeof t||t instanceof String}function Qe(t){return b(t)||r(t)||Ke(t)||u(t)||(i=a(e=t),n=!1,i&&(n=0===e.filter(function(t){return!u(t)&&Ke(e)}).length),i&&n)||function(t){var e,i,n=s(t)&&!l(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<o.length;e+=1)i=o[e],r=r||f(t,i);return n&&r}(t)||null==t;var e,i,n}function ti(t,e){if(t.date()<e.date())return-ti(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(1+i,"months")-n)))||0}function ei(t){return void 0===t?this._locale._abbr:(null!=(t=he(t))&&(this._locale=t),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";et=i("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function ii(){return this._locale}var ni=126227808e5;function ri(t,e){return(t%e+e)%e}function oi(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-ni:new Date(t,e,i).valueOf()}function ai(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-ni:Date.UTC(t,e,i)}function si(t,e){return e.erasAbbrRegex(t)}function li(){for(var t=[],e=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)e.push(ft(r[o].name)),t.push(ft(r[o].abbr)),i.push(ft(r[o].narrow)),n.push(ft(r[o].name)),n.push(ft(r[o].abbr)),n.push(ft(r[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ui(t,e){O(0,[t,t.length],0,e)}function ci(t,e,i,n,r){var o;return null==t?jt(this,n,r).year:(e>(o=Bt(t,n,r))&&(e=o),function(t,e,i,n,r){r=Wt(t,e,i,n,r),r=Gt(r.year,0,r.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,t,e,i,n,r))}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),dt("N",si),dt("NN",si),dt("NNN",si),dt("NNNN",function(t,e){return e.erasNameRegex(t)}),dt("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),yt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){n=i._locale.erasParse(t,n,i._strict);n?p(i).era=n:p(i).invalidEra=t}),dt("y",at),dt("yy",at),dt("yyy",at),dt("yyyy",at),dt("yo",function(t,e){return e._eraYearOrdinalRegex||at}),yt(["y","yy","yyy","yyyy"],vt),yt(["yo"],function(t,e,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[vt]=i._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)}),O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ui("gggg","weekYear"),ui("ggggg","weekYear"),ui("GGGG","isoWeekYear"),ui("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),dt("G",st),dt("g",st),dt("GG",tt,q),dt("gg",tt,q),dt("GGGG",rt,K),dt("gggg",rt,K),dt("GGGGG",ot,Q),dt("ggggg",ot,Q),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=H(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=m.parseTwoDigitYear(t)}),O("Q",0,"Qo","quarter"),F("quarter","Q"),W("quarter",7),dt("Q",X),yt("Q",function(t,e){e[_t]=3*(H(t)-1)}),O("D",["DD",2],"Do","date"),F("date","D"),W("date",9),dt("D",tt),dt("DD",tt,q),dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],bt),yt("Do",function(t,e){e[bt]=H(t.match(tt)[0])});it=V("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),W("dayOfYear",4),dt("DDD",nt),dt("DDDD",J),yt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=H(t)}),O("m",["mm",2],0,"minute"),F("minute","m"),W("minute",14),dt("m",tt),dt("mm",tt,q),yt(["m","mm"],Et);St=V("Minutes",!1);O("s",["ss",2],0,"second"),F("second","s"),W("second",15),dt("s",tt),dt("ss",tt,q),yt(["s","ss"],Tt);var di,Vt=V("Seconds",!1);for(O("S",0,0,function(){return~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return 10*this.millisecond()}),O(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),O(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),O(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),O(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),O(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),W("millisecond",16),dt("S",nt,X),dt("SS",nt,q),dt("SSS",nt,J),di="SSSS";di.length<=9;di+="S")dt(di,at);function hi(t,e){e[Ct]=H(1e3*("0."+t))}for(di="S";di.length<=9;di+="S")yt(di,hi);Zt=V("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");rt=_.prototype;function fi(t){return t}rt.add=Je,rt.calendar=function(t,e){1===arguments.length&&(arguments[0]?Qe(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=s(t)&&!l(t),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||f(t,n[r]);return e&&i}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var i=t||Ie(),t=$e(i,this).startOf("day"),t=m.calendarFormat(this,t)||"sameElse",e=e&&(C(e[t])?e[t].call(this,i):e[t]);return this.format(e||this.localeData().calendar(t,this,Ie(i)))},rt.clone=function(){return new _(this)},rt.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=$e(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=U(e)){case"year":o=ti(this,n)/12;break;case"month":o=ti(this,n);break;case"quarter":o=ti(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:B(o)},rt.endOf=function(t){var e,i;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ai:oi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-ri(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-ri(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-ri(e,1e3)-1}return this._d.setTime(e),m.updateOffset(this,!0),this},rt.format=function(t){return t=t||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),t=N(this,t),this.localeData().postformat(t)},rt.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ie(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},rt.fromNow=function(t){return this.from(Ie(),t)},rt.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ie(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},rt.toNow=function(t){return this.to(Ie(),t)},rt.get=function(t){return C(this[t=U(t)])?this[t]():this},rt.invalidAt=function(){return p(this).overflow},rt.isAfter=function(t,e){return t=b(t)?t:Ie(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},rt.isBefore=function(t,e){return t=b(t)?t:Ie(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},rt.isBetween=function(t,e,i,n){return t=b(t)?t:Ie(t),e=b(e)?e:Ie(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))},rt.isSame=function(t,e){var t=b(t)?t:Ie(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},rt.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},rt.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},rt.isValid=function(){return h(this)},rt.lang=et,rt.locale=ei,rt.localeData=ii,rt.max=ke,rt.min=De,rt.parsingFlags=function(){return c({},p(this))},rt.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e,i=[];for(e in t)f(t,e)&&i.push({unit:e,priority:$[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}(t=G(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(C(this[t=U(t)]))return this[t](e);return this},rt.startOf=function(t){var e,i;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ai:oi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ri(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=ri(e,6e4);break;case"second":e=this._d.valueOf(),e-=ri(e,1e3)}return this._d.setTime(e),m.updateOffset(this,!0),this},rt.subtract=ct,rt.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},rt.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},rt.toDate=function(){return new Date(this.valueOf())},rt.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?N(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",N(t,"Z")):N(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},rt.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e="moment",i="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+e+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(rt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),rt.toJSON=function(){return this.isValid()?this.toISOString():null},rt.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},rt.unix=function(){return Math.floor(this.valueOf()/1e3)},rt.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},rt.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},rt.eraName=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].name;if(e[i].until<=t&&t<=e[i].since)return e[i].name}return""},rt.eraNarrow=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].narrow;if(e[i].until<=t&&t<=e[i].since)return e[i].narrow}return""},rt.eraAbbr=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].abbr;if(e[i].until<=t&&t<=e[i].since)return e[i].abbr}return""},rt.eraYear=function(){for(var t,e,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(t=i[n].since<=i[n].until?1:-1,e=this.clone().startOf("day").valueOf(),i[n].since<=e&&e<=i[n].until||i[n].until<=e&&e<=i[n].since)return(this.year()-m(i[n].since).year())*t+i[n].offset;return this.year()},rt.year=Ft,rt.isLeapYear=function(){return j(this.year())},rt.weekYear=function(t){return ci.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},rt.isoWeekYear=function(t){return ci.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},rt.quarter=rt.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},rt.month=Nt,rt.daysInMonth=function(){return At(this.year(),this.month())},rt.week=rt.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},rt.isoWeek=rt.isoWeeks=function(t){var e=jt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},rt.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},rt.weeksInWeekYear=function(){var t=this.localeData()._week;return Bt(this.weekYear(),t.dow,t.doy)},rt.isoWeeksInYear=function(){return Bt(this.year(),1,4)},rt.isoWeeksInISOWeekYear=function(){return Bt(this.isoWeekYear(),1,4)},rt.date=it,rt.day=rt.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d")):n},rt.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},rt.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},rt.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},rt.hour=rt.hours=ie,rt.minute=rt.minutes=St,rt.second=rt.seconds=Vt,rt.millisecond=rt.milliseconds=Zt,rt.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?r:We(this);if("string"==typeof t){if(null===(t=Ge(ut,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=We(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?qe(this,Ve(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},rt.utc=function(t){return this.utcOffset(0,t)},rt.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(We(this),"m")),this},rt.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ge(lt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},rt.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ie(t).utcOffset():0,(this.utcOffset()-t)%60==0)},rt.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},rt.isLocal=function(){return!!this.isValid()&&!this._isUTC},rt.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},rt.isUtc=je,rt.isUTC=je,rt.zoneAbbr=function(){return this._isUTC?"UTC":""},rt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},rt.dates=i("dates accessor is deprecated. Use date instead.",it),rt.months=i("months accessor is deprecated. Use month instead",Nt),rt.years=i("years accessor is deprecated. Use year instead",Ft),rt.zone=i("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),rt.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t,e={};return v(e,this),(e=Ae(e))._a?(t=(e._isUTC?d:Ie)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,i){for(var n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0,a=0;a<n;a++)(i&&t[a]!==e[a]||!i&&H(t[a])!==H(e[a]))&&o++;return o+r}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=M.prototype;function mi(t,e,i,n){var r=he(),e=d().set(n,e);return r[i](e,t)}function pi(t,e,i){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");for(var n=[],r=0;r<12;r++)n[r]=mi(t,r,i,"month");return n}function yi(t,e,i,n){e=("boolean"==typeof t||(i=e=t,t=!1),u(e)&&(i=e,e=void 0),e||"");var r,o=he(),a=t?o._week.dow:0,s=[];if(null!=i)return mi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=mi(e,(r+a)%7,n,"day");return s}K.calendar=function(t,e,i){return C(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,i):t},K.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(I).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(t){return this._ordinal.replace("%d",t)},K.preparse=fi,K.postformat=fi,K.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return C(r)?r(t,e,i,n):r.replace(/%d/i,t)},K.pastFuture=function(t,e){return C(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},K.set=function(t){var e,i;for(i in t)f(t,i)&&(C(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(t,e){for(var i,n=this._eras||he("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=m(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=m(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},K.erasParse=function(t,e,i){var n,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if(0<=[o,a,s].indexOf(t))return l[n]},K.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?m(t.since).year():m(t.since).year()+(e-t.offset)*i},K.erasAbbrRegex=function(t){return f(this,"_erasAbbrRegex")||li.call(this),t?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(t){return f(this,"_erasNameRegex")||li.call(this),t?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(t){return f(this,"_erasNarrowRegex")||li.call(this),t?this._erasNarrowRegex:this._erasRegex},K.months=function(t,e){return t?(a(this._months)?this._months:this._months[(this._months.isFormat||Dt).test(e)?"format":"standalone"])[t.month()]:a(this._months)?this._months:this._months.standalone},K.monthsShort=function(t,e){return t?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Dt.test(e)?"format":"standalone"])[t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(t,e,i){var n,r;if(this._monthsParseExact)return function(t,e,i){var n,r,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=wt.call(this._shortMonthsParse,t))?r:null:-1!==(r=wt.call(this._longMonthsParse,t))?r:null:"MMM"===e?-1!==(r=wt.call(this._shortMonthsParse,t))||-1!==(r=wt.call(this._longMonthsParse,t))?r:null:-1!==(r=wt.call(this._longMonthsParse,t))||-1!==(r=wt.call(this._shortMonthsParse,t))?r:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},K.monthsRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Pt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=kt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(t){return jt(t,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(t,e){return e=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Ht(e,this._week.dow):t?e[t.day()]:e},K.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},K.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},K.weekdaysParse=function(t,e,i){var n,r;if(this._weekdaysParseExact)return function(t,e,i){var n,r,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=wt.call(this._weekdaysParse,t))?r:null:"ddd"===e?-1!==(r=wt.call(this._shortWeekdaysParse,t))?r:null:-1!==(r=wt.call(this._minWeekdaysParse,t))?r:null:"dddd"===e?-1!==(r=wt.call(this._weekdaysParse,t))||-1!==(r=wt.call(this._shortWeekdaysParse,t))||-1!==(r=wt.call(this._minWeekdaysParse,t))?r:null:"ddd"===e?-1!==(r=wt.call(this._shortWeekdaysParse,t))||-1!==(r=wt.call(this._weekdaysParse,t))||-1!==(r=wt.call(this._minWeekdaysParse,t))?r:null:-1!==(r=wt.call(this._minWeekdaysParse,t))||-1!==(r=wt.call(this._weekdaysParse,t))||-1!==(r=wt.call(this._shortWeekdaysParse,t))?r:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},K.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},K.meridiem=function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},ce("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(t){var e=t%10;return t+(1===H(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),m.lang=i("moment.lang is deprecated. Use moment.locale instead.",ce),m.langData=i("moment.langData is deprecated. Use moment.localeData instead.",he);var gi=Math.abs;function wi(t,e,i,n){i=Ve(e,i);return t._milliseconds+=n*i._milliseconds,t._days+=n*i._days,t._months+=n*i._months,t._bubble()}function vi(t){return t<0?Math.floor(t):Math.ceil(t)}function _i(t){return 4800*t/146097}function bi(t){return 146097*t/4800}function xi(t){return function(){return this.as(t)}}ot=xi("ms"),Q=xi("s"),X=xi("m"),q=xi("h"),nt=xi("d"),J=xi("w"),Je=xi("M"),ke=xi("Q"),De=xi("y");function Ei(t){return function(){return this.isValid()?this._data[t]:NaN}}ct=Ei("milliseconds"),ie=Ei("seconds"),St=Ei("minutes"),Vt=Ei("hours"),Zt=Ei("days"),it=Ei("months"),Ft=Ei("years");var Ti=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Li(t,e,i,n){var r=Ve(t).abs(),o=Ti(r.as("s")),a=Ti(r.as("m")),s=Ti(r.as("h")),l=Ti(r.as("d")),u=Ti(r.as("M")),c=Ti(r.as("w")),r=Ti(r.as("y")),l=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||a<=1&&["m"]||a<i.m&&["mm",a]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return(l=(l=null!=i.w?l||c<=1&&["w"]||c<i.w&&["ww",c]:l)||u<=1&&["M"]||u<i.M&&["MM",u]||r<=1&&["y"]||["yy",r])[2]=e,l[3]=0<+t,l[4]=n,function(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}.apply(null,l)}var Mi=Math.abs;function Ai(t){return(0<t)-(t<0)||+t}function Si(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,o,a,s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),c=this.asSeconds();return c?(t=B(s/60),e=B(t/60),s%=60,t%=60,i=B(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(c)?"-":"",o=Ai(this._days)!==Ai(c)?"-":"",a=Ai(this._milliseconds)!==Ai(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(l?o+l+"D":"")+(e||t||s?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(s?a+n+"S":"")):"P0D"}K=Ne.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},K.add=function(t,e){return wi(this,t,e,1)},K.subtract=function(t,e){return wi(this,t,e,-1)},K.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=U(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+_i(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(bi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},K.asMilliseconds=ot,K.asSeconds=Q,K.asMinutes=X,K.asHours=q,K.asDays=nt,K.asWeeks=J,K.asMonths=Je,K.asQuarters=ke,K.asYears=De,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},K._bubble=function(){var t=this._milliseconds,e=this._days,i=this._months,n=this._data;return 0<=t&&0<=e&&0<=i||t<=0&&e<=0&&i<=0||(t+=864e5*vi(bi(i)+e),i=e=0),n.milliseconds=t%1e3,t=B(t/1e3),n.seconds=t%60,t=B(t/60),n.minutes=t%60,t=B(t/60),n.hours=t%24,e+=B(t/24),i+=t=B(_i(e)),e-=vi(bi(t)),t=B(i/12),i%=12,n.days=e,n.months=i,n.years=t,this},K.clone=function(){return Ve(this)},K.get=function(t){return t=U(t),this.isValid()?this[t+"s"]():NaN},K.milliseconds=ct,K.seconds=ie,K.minutes=St,K.hours=Vt,K.days=Zt,K.weeks=function(){return B(this.days()/7)},K.months=it,K.years=Ft,K.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=Ci;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(n=Object.assign({},Ci,e),null!=e.s&&null==e.ss&&(n.ss=e.s-1)),n=Li(this,!i,n,e=this.localeData()),i&&(n=e.pastFuture(+this,n)),e.postformat(n)},K.toISOString=Si,K.toString=Si,K.toJSON=Si,K.locale=ei,K.localeData=ii,K.toIsoString=i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Si),K.lang=et,O("X",0,0,"unix"),O("x",0,0,"valueOf"),dt("x",st),dt("X",/[+-]?\d+(\.\d{1,3})?/),yt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),yt("x",function(t,e,i){i._d=new Date(H(t))}),m.version="2.29.1",t=Ie,m.fn=rt,m.min=function(){return Pe("isBefore",[].slice.call(arguments,0))},m.max=function(){return Pe("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=d,m.unix=function(t){return Ie(1e3*t)},m.months=function(t,e){return pi(t,e,"months")},m.isDate=r,m.locale=ce,m.invalid=y,m.duration=Ve,m.isMoment=b,m.weekdays=function(t,e,i){return yi(t,e,i,"weekdays")},m.parseZone=function(){return Ie.apply(null,arguments).parseZone()},m.localeData=he,m.isDuration=Re,m.monthsShort=function(t,e){return pi(t,e,"monthsShort")},m.weekdaysMin=function(t,e,i){return yi(t,e,i,"weekdaysMin")},m.defineLocale=de,m.updateLocale=function(t,e){var i,n;return null!=e?(n=re,null!=oe[t]&&null!=oe[t].parentLocale?oe[t].set(L(oe[t]._config,e)):(e=L(n=null!=(i=ue(t))?i._config:n,e),null==i&&(e.abbr=t),(e=new M(e)).parentLocale=oe[t],oe[t]=e),ce(t)):null!=oe[t]&&(null!=oe[t].parentLocale?(oe[t]=oe[t].parentLocale,t===ce()&&ce(t)):null!=oe[t]&&delete oe[t]),oe[t]},m.locales=function(){return A(oe)},m.weekdaysShort=function(t,e,i){return yi(t,e,i,"weekdaysShort")},m.normalizeUnits=U,m.relativeTimeRounding=function(t){return void 0===t?Ti:"function"==typeof t&&(Ti=t,!0)},m.relativeTimeThreshold=function(t,e){return void 0!==Ci[t]&&(void 0===e?Ci[t]:(Ci[t]=e,"s"===t&&(Ci.ss=e-1),!0))},m.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=rt,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}(),Fn.exports);function $n(t,{delay:e=0,duration:i=400,easing:n=p}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:n,css:t=>"opacity: "+t*r}}function Wn(i){let n,e,r;return{c(){n=K("div"),n.innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',nt(n,"class","ModalWindow"),nt(n,"part","ModalWindow"),nt(n,"id","Modal")},m(t,e){q(t,n,e),i[3](n),r=!0},p(t,e){i=t},i(t){r||(I(()=>{e=e||j(n,$n,{transitionDuration:i[1]},!0),e.run(1)}),r=!0)},o(t){e=e||j(n,$n,{transitionDuration:i[1]},!1),e.run(0),r=!1},d(t){t&&J(n),i[3](null),t&&e&&e.end()}}}function jn(t){let i,n,r=t[0]&&Wn(t);return{c(){i=K("div"),r&&r.c(),this.c=z},m(t,e){q(t,i,e),r&&r.m(i,null),n=!0},p(t,[e]){t[0]?r?(r.p(t,e),1&e&&G(r,1)):(r=Wn(t),r.c(),G(r,1),r.m(i,null)):r&&(U={r:0,c:[],p:U},$(r,1,1,()=>{r=null}),U.r||Z(U.c),U=U.p)},i(t){n||(G(r),n=!0)},o(t){$(r),n=!1},d(t){t&&J(i),r&&r.d()}}}function Bn(t,e,i){let n,{show:r=!1}=e,{duration:o=350}=e;const a=t=>{"ModalClosed"==t.data.type&&i(0,r=!1),"ShowLimitsConfirmationModal"===t.data.type&&(i(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return Y(()=>(window.addEventListener("message",a,!1),()=>{window.removeEventListener("message",a)})),t.$$set=t=>{"show"in t&&i(0,r=t.show),"duration"in t&&i(1,o=t.duration)},[r,o,void 0,function(t){s[t?"unshift":"push"](()=>{n=t,i(2,n)})}]}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends H{constructor(t){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'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Bn,jn,i,{show:0,duration:1}),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["show","duration"]}get show(){return this.$$.ctx[0]}set show(t){this.$set({show:t}),k()}get duration(){return this.$$.ctx[1]}set duration(t){this.$set({duration:t}),k()}});const Hn={en:{modalText:{cancel:"Cancel",confirm:"Confirm"}},ro:{modalText:{cancel:"Anulează",confirm:"Confirmă"}}};function Vn(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y,g=i[1]("modalText.cancel")+"",w=i[1]("modalText.confirm")+"",v=!i[2]&&function(i){let n,r,o;return{c(){n=K("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',nt(n,"class","ModalCloseBtn"),nt(n,"part","ModalCloseBtn"),nt(n,"role","button")},m(t,e){q(t,n,e),r||(o=et(n,"click",i[3]),r=!0)},p:z,d(t){t&&J(n),r=!1,o()}}}(i);return{c(){n=K("div"),v&&v.c(),r=tt(),o=K("div"),a=K("div"),s=Q(i[0]),l=tt(),u=K("div"),c=K("button"),d=Q(g),h=tt(),f=K("button"),m=Q(w),this.c=z,nt(a,"class","GamingLimitsConfirmationContent"),nt(a,"part","GamingLimitsConfirmationContent"),nt(c,"class","GamingLimitsCancelButton"),nt(c,"part","GamingLimitsCancelButton"),nt(f,"class","GamingLimitsConfirmButton"),nt(f,"part","GamingLimitsConfirmButton"),nt(u,"class","GamingLimitsConfirmationControlArea"),nt(u,"part","GamingLimitsConfirmationControlArea"),nt(o,"class","GamingLimitsConfirmationContainer "+(i[2]?"GamingLimitsConfirmationContainerMobile":"")),nt(o,"part","GamingLimitsConfirmationContainer "+(i[2]?"GamingLimitsConfirmationContainerMobile":"")),nt(n,"class","GamingLimitsConfirmationWrapper "+(i[2]?"GamingLimitsConfirmationMobileWrapper":"")),nt(n,"part","GamingLimitsConfirmationWrapper "+(i[2]?"GamingLimitsConfirmationMobileWrapper":""))},m(t,e){q(t,n,e),v&&v.m(n,null),X(n,r),X(n,o),X(o,a),X(a,s),X(o,l),X(o,u),X(u,c),X(c,d),X(u,h),X(u,f),X(f,m),p||(y=[et(c,"click",i[5]),et(f,"click",i[4])],p=!0)},p(t,[e]){t[2]||v.p(t,e),1&e&&ot(s,t[0]),2&e&&g!==(g=t[1]("modalText.cancel")+"")&&ot(d,g),2&e&&w!==(w=t[1]("modalText.confirm")+"")&&ot(m,w)},i:z,o:z,d(t){t&&J(n),v&&v.d(),p=!1,Z(y)}}}function zn(e,t,i){let n;N(e,Mn,t=>i(1,n=t));let{modaltext:r="Are you sure that you want to perform this action?"}=t,{modalsource:o=""}=t,{lang:a="en"}=t;Object.keys(Hn).forEach(t=>{sn(t,Hn[t])});let s=window.navigator.userAgent,l="PC"!==An(s),u={},c="";const d=t=>{t.data&&"DeleteLimitsItem"===t.data.type&&(u=t.data.removeData,t=t.data.removeName,c="Time Limit"===t?"cumulativeSessionLimits":"Deposit Limit"===t?"depositLimits":"Wagering Limit"===t?"wageringLimit":"lossLimit")};Y(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));return e.$$set=t=>{"modaltext"in t&&i(0,r=t.modaltext),"modalsource"in t&&i(6,o=t.modalsource),"lang"in t&&i(7,a=t.lang)},e.$$.update=()=>{var t;193&e.$$.dirty&&r&&o&&a&&(t=a,gn.set(t))},[r,n,l,()=>{window.postMessage({type:"ModalClosed"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:u,name:c},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a]}function Zn(t,e,i){const n=t.slice();return n[44]=e[i],n[45]=e,n[46]=i,n}function Xn(t,e,i){const n=t.slice();return n[47]=e[i],n}function qn(t,e,i){const n=t.slice();return n[44]=e[i],n[46]=i,n}function Jn(t){let i,n,r,o=t[16]("editText.success")+"";return{c(){i=K("div"),n=K("p"),r=Q(o),nt(i,"class","AccountEditLimitSuccessfulChangeContainer"),nt(i,"part","AccountEditLimitSuccessfulChangeContainer")},m(t,e){q(t,i,e),X(i,n),X(n,r)},p(t,e){65536&e[0]&&o!==(o=t[16]("editText.success")+"")&&ot(r,o)},d(t){t&&J(i)}}}function Kn(e){let r,o=e[12],a=[];for(let t=0;t<o.length;t+=1)a[t]=tr(qn(e,o,t));return{c(){r=K("div");for(let t=0;t<a.length;t+=1)a[t].c();nt(r,"class","AccountEditLimitSuccessfulChangeContainer"),nt(r,"part","AccountEditLimitSuccessfulChangeContainer")},m(t,e){q(t,r,e);for(let t=0;t<a.length;t+=1)a[t].m(r,null)},p(e,i){if(102400&i[0]){let t;for(o=e[12],t=0;t<o.length;t+=1){var n=qn(e,o,t);a[t]?a[t].p(n,i):(a[t]=tr(n),a[t].c(),a[t].m(r,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}},d(t){t&&J(r),b(a,t)}}}function Qn(t){let i,n,r,o,a=t[16]("editText.remove")+"",s=(t[44].expiryDate?Gn(t[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("p"),n=Q(a),r=tt(),o=Q(s)},m(t,e){q(t,i,e),X(i,n),X(i,r),X(i,o)},p(t,e){65536&e[0]&&a!==(a=t[16]("editText.remove")+"")&&ot(n,a),4096&e[0]&&s!==(s=(t[44].expiryDate?Gn(t[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ot(o,s)},d(t){t&&J(i)}}}function tr(t){let i,n=t[44].period==t[15][t[46]].periodName&&Qn(t);return{c(){n&&n.c(),i=x()},m(t,e){n&&n.m(t,e),q(t,i,e)},p(t,e){t[44].period==t[15][t[46]].periodName?n?n.p(t,e):(n=Qn(t),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&J(i)}}}function er(e){let i,r,o=e[12],a=[];for(let t=0;t<o.length;t+=1)a[t]=cr(Zn(e,o,t));return{c(){i=K("div"),r=K("div");for(let t=0;t<a.length;t+=1)a[t].c();nt(r,"class","AccountEditLimitsContainer"),nt(r,"part","AccountEditLimitsContainer"),nt(i,"class","AccountEditContent"),nt(i,"part","AccountEditContent")},m(t,e){q(t,i,e),X(i,r);for(let t=0;t<a.length;t+=1)a[t].m(r,null)},p(e,i){if(4709144&i[0]){let t;for(o=e[12],t=0;t<o.length;t+=1){var n=Zn(e,o,t);a[t]?a[t].p(n,i):(a[t]=cr(n),a[t].c(),a[t].m(r,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}},d(t){t&&J(i),b(a,t)}}}function ir(i){let n,r,o,a,s,l,u,c,d,h,f=i[16]("editText.noLimit")+"",m=i[18][i[46]].values,p=[];for(let t=0;t<m.length;t+=1)p[t]=nr(Xn(i,m,t));function y(){i[23].call(n,i[46])}let g="Custom"===i[15][i[46]].amount&&rr(i),w=!0===i[44].isModified&&ur(i);return{c(){n=K("select"),r=K("option"),o=Q(f);for(let t=0;t<p.length;t+=1)p[t].c();s=tt(),l=K("div"),g&&g.c(),u=tt(),w&&w.c(),c=x(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,nt(n,"class","AccountEditField "+(i[17]?"TimeoutSelectMobile":"")),nt(n,"part","AccountEditField "+(i[17]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[44].isModified,void 0===i[15][i[46]].amount&&I(y),nt(l,"class","AccountEditLimitsInputContainer"),nt(l,"part","AccountEditLimitsInputContainer")},m(t,e){q(t,n,e),X(n,r),X(r,o);for(let t=0;t<p.length;t+=1)p[t].m(n,null);E(n,i[15][i[46]].amount),q(t,s,e),q(t,l,e),g&&g.m(l,null),q(t,u,e),w&&w.m(t,e),q(t,c,e),d||(h=[et(n,"change",y),et(n,"change",function(){v(i[22](i[15][i[46]],i[46],!1,i[14]))&&i[22](i[15][i[46]],i[46],!1,i[14]).apply(this,arguments)})],d=!0)},p(t,e){if(i=t,65536&e[0]&&f!==(f=i[16]("editText.noLimit")+"")&&ot(o,f),262168&e[0]){let t;for(m=i[18][i[46]].values,t=0;t<m.length;t+=1){const o=Xn(i,m,t);p[t]?p[t].p(o,e):(p[t]=nr(o),p[t].c(),p[t].m(n,null))}for(;t<p.length;t+=1)p[t].d(1);p.length=m.length}4096&e[0]&&a!==(a=!0===i[44].isModified)&&(n.disabled=a),294912&e[0]&&E(n,i[15][i[46]].amount),"Custom"===i[15][i[46]].amount?g?g.p(i,e):(g=rr(i),g.c(),g.m(l,null)):g&&(g.d(1),g=null),!0===i[44].isModified?w?w.p(i,e):(w=ur(i),w.c(),w.m(c.parentNode,c)):w&&(w.d(1),w=null)},d(t){t&&J(n),b(p,t),t&&J(s),t&&J(l),g&&g.d(),t&&J(u),w&&w.d(t),t&&J(c),d=!1,Z(h)}}}function nr(t){let i,n,r,e=t[47]+"",o="No limit"!==t[47]&&"Custom"!==t[47]&&function(){let i,n=("Time Limit"!==t[3]?t[4]:" minutes")+"";return{c(){i=Q(n)},m(t,e){q(t,i,e)},p(t,e){24&e[0]&&n!==(n=("Time Limit"!==t[3]?t[4]:" minutes")+"")&&ot(i,n)},d(t){t&&J(i)}}}();return{c(){i=K("option"),n=Q(e),r=tt(),o&&o.c(),i.__value=t[47],i.value=i.__value},m(t,e){q(t,i,e),X(i,n),X(i,r),o&&o.m(i,null)},p(t,e){"No limit"!==t[47]&&"Custom"!==t[47]&&o.p(t,e)},d(t){t&&J(i),o&&o.d()}}}function rr(t){let i;function n(t){return"Deposit Limit"===t[3]?ar:or}let r=n(t),o=r(t);return{c(){o.c(),i=x()},m(t,e){o.m(t,e),q(t,i,e)},p(t,e){r===(r=n(t))&&o?o.p(t,e):(o.d(1),o=r(t),o&&(o.c(),o.m(i.parentNode,i)))},d(t){o.d(t),t&&J(i)}}}function or(i){let n,r,o,a,s,l;function u(){i[25].call(n,i[46])}let c=1==i[11][i[46]]&&sr(i);return{c(){n=K("input"),o=tt(),a=K("p"),c&&c.c(),nt(n,"type","number"),nt(n,"class","AccountEditField AccountEditFieldCustom"),nt(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[44].isModified,nt(a,"class","AccountEditWarningText"),nt(a,"part","AccountEditWarningText")},m(t,e){q(t,n,e),f(n,i[15][i[46]].value),q(t,o,e),q(t,a,e),c&&c.m(a,null),s||(l=[et(n,"keyup",function(){v(i[22](i[15][i[46]],i[46],!0,i[14]))&&i[22](i[15][i[46]],i[46],!0,i[14]).apply(this,arguments)}),et(n,"input",u)],s=!0)},p(t,e){i=t,4096&e[0]&&r!==(r=!0===i[44].isModified)&&(n.disabled=r),294912&e[0]&&R(n.value)!==i[15][i[46]].value&&f(n,i[15][i[46]].value),1==i[11][i[46]]?c?c.p(i,e):(c=sr(i),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(t){t&&J(n),t&&J(o),t&&J(a),c&&c.d(),s=!1,Z(l)}}}function ar(i){let n,r,o,a,s,l;function u(){i[24].call(n,i[46])}let c=1==i[11][i[46]]&&lr(i);return{c(){n=K("input"),o=tt(),a=K("p"),c&&c.c(),nt(n,"type","number"),nt(n,"class","AccountEditField AccountEditFieldCustom"),nt(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[44].isModified,nt(a,"class","AccountEditWarningText"),nt(a,"part","AccountEditWarningText")},m(t,e){q(t,n,e),f(n,i[15][i[46]].value),q(t,o,e),q(t,a,e),c&&c.m(a,null),s||(l=[et(n,"keyup",function(){v(i[22](i[15][i[46]],i[46],!1,i[14]))&&i[22](i[15][i[46]],i[46],!1,i[14]).apply(this,arguments)}),et(n,"input",u)],s=!0)},p(t,e){i=t,4096&e[0]&&r!==(r=!0===i[44].isModified)&&(n.disabled=r),294912&e[0]&&R(n.value)!==i[15][i[46]].value&&f(n,i[15][i[46]].value),1==i[11][i[46]]?c?c.p(i,e):(c=lr(i),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(t){t&&J(n),t&&J(o),t&&J(a),c&&c.d(),s=!1,Z(l)}}}function sr(t){let i,n,r=t[16]("editText.invalidInputMessageTime",{values:{minTime:t[8],maxTime:t[9]}})+"";return{c(){i=K("p"),n=Q(r),nt(i,"class","InvalidInput"),nt(i,"part","InvalidInput")},m(t,e){q(t,i,e),X(i,n)},p(t,e){66304&e[0]&&r!==(r=t[16]("editText.invalidInputMessageTime",{values:{minTime:t[8],maxTime:t[9]}})+"")&&ot(n,r)},d(t){t&&J(i)}}}function lr(t){let i,n,r=t[16]("editText.invalidInputMessageLimit")+"";return{c(){i=K("p"),n=Q(r),nt(i,"class","InvalidInput"),nt(i,"part","InvalidInput")},m(t,e){q(t,i,e),X(i,n)},p(t,e){65536&e[0]&&r!==(r=t[16]("editText.invalidInputMessageLimit")+"")&&ot(n,r)},d(t){t&&J(i)}}}function ur(t){let i,n,r,o,a,s,l,u,c,d,h,f,m,p,y,g,w=t[16]("editText.expirationDate")+"",v=(t[44].expiryDate?Gn(t[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=t[16]("editText.changedLimitTextBefore")+"",b=(0<t[44].updateAmount?t[44].updateAmount:0)+"",x=(void 0!==t[44].minutes?" minutes":t[4])+"",E=t[16]("editText.changedLimitTextAfter")+"";return{c(){i=K("p"),n=Q(w),r=tt(),o=K("span"),a=Q(v),s=tt(),l=K("div"),u=K("p"),c=K("span"),c.textContent="i",d=K("span"),h=Q(_),f=tt(),m=Q(b),p=tt(),y=Q(x),g=Q(E),nt(i,"class","AccountEditLimitsExpiryDate"),nt(i,"part","AccountEditLimitsExpiryDate"),nt(c,"class","AccountEditLimitChangePeriodIcon"),nt(c,"part","AccountEditLimitChangePeriodIcon"),nt(l,"class","AccountEditLimitsPeriodChangeContainer"),nt(l,"part","AccountEditLimitsPeriodChangeContainer")},m(t,e){q(t,i,e),X(i,n),X(i,r),X(i,o),X(o,a),q(t,s,e),q(t,l,e),X(l,u),X(u,c),X(u,d),X(d,h),X(d,f),X(d,m),X(d,p),X(d,y),X(d,g)},p(t,e){65536&e[0]&&w!==(w=t[16]("editText.expirationDate")+"")&&ot(n,w),4096&e[0]&&v!==(v=(t[44].expiryDate?Gn(t[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ot(a,v),65536&e[0]&&_!==(_=t[16]("editText.changedLimitTextBefore")+"")&&ot(h,_),4096&e[0]&&b!==(b=(0<t[44].updateAmount?t[44].updateAmount:0)+"")&&ot(m,b),4112&e[0]&&x!==(x=(void 0!==t[44].minutes?" minutes":t[4])+"")&&ot(y,x),65536&e[0]&&E!==(E=t[16]("editText.changedLimitTextAfter")+"")&&ot(g,E)},d(t){t&&J(i),t&&J(s),t&&J(l)}}}function cr(t){let i,n,r,o,a,s=t[44].period+"",l=t[44].period==t[15][t[46]].periodName&&ir(t);return{c(){i=K("div"),n=K("p"),r=Q(s),o=tt(),l&&l.c(),a=tt(),nt(n,"class","AccountEditLimitsTitle"),nt(n,"part","AccountEditLimitsTitle"),nt(i,"class","AccountEditLimitsBox"),nt(i,"part","AccountEditLimitsBox")},m(t,e){q(t,i,e),X(i,n),X(n,r),X(i,o),l&&l.m(i,null),X(i,a)},p(t,e){4096&e[0]&&s!==(s=t[44].period+"")&&ot(r,s),t[44].period==t[15][t[46]].periodName?l?l.p(t,e):(l=ir(t),l.c(),l.m(i,a)):l&&(l.d(1),l=null)},d(t){t&&J(i),l&&l.d()}}}function dr(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y,g,w,v,_,b,x,E,T,C,L,M,A,S,I,D,k,P,O,N,R,Y,F,U,G=i[16]("editText.back")+"",$=(i[0]?i[3]:"")+"",W=i[16]("editText.save")+"",j=i[17]&&function(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y=i[16]("editText.back")+"";return{c(){n=K("div"),r=e("svg"),o=e("defs"),a=e("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=e("g"),u=e("g"),c=e("path"),d=tt(),h=K("h2"),f=Q(y),nt(c,"class","aaa"),nt(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),nt(c,"transform","translate(15 15) rotate(180)"),nt(u,"transform","translate(20 158)"),nt(l,"transform","translate(-20 -158)"),nt(r,"xmlns","http://www.w3.org/2000/svg"),nt(r,"width","15"),nt(r,"height","15"),nt(r,"viewBox","0 0 15 15"),nt(h,"class","MyAccountCategoryTitleMobile"),nt(h,"part","MyAccountCategoryTitleMobile"),nt(n,"class","MenuReturnButton"),nt(n,"part","MenuReturnButton")},m(t,e){q(t,n,e),X(n,r),X(r,o),X(o,a),X(a,s),X(r,l),X(l,u),X(u,c),X(n,d),X(n,h),X(h,f),m||(p=et(n,"click",i[20]),m=!0)},p(t,e){65536&e[0]&&y!==(y=t[16]("editText.back")+"")&&ot(f,y)},d(t){t&&J(n),m=!1,p()}}}(i),B=i[1]&&Jn(i),H=i[2]&&Kn(i),V=i[7]&&er(i);return{c(){n=K("div"),j&&j.c(),r=tt(),o=K("div"),a=e("svg"),s=e("defs"),l=e("style"),u=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),c=e("g"),d=e("g"),h=e("path"),f=tt(),m=K("h2"),p=Q(G),y=tt(),g=K("div"),w=K("h6"),v=Q($),_=tt(),b=K("div"),x=K("span"),x.textContent="i",E=tt(),T=K("player-account-gaming-limits-popup"),C=tt(),B&&B.c(),L=tt(),H&&H.c(),M=tt(),V&&V.c(),A=tt(),S=K("div"),I=K("button"),D=Q(W),N=tt(),R=K("player-account-modal"),Y=K("player-account-gaming-limits-confirmation-modal"),this.c=z,nt(h,"class","aaa"),nt(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),nt(h,"transform","translate(15 15) rotate(180)"),nt(d,"transform","translate(20 158)"),nt(c,"transform","translate(-20 -158)"),nt(a,"xmlns","http://www.w3.org/2000/svg"),nt(a,"width","15"),nt(a,"height","15"),nt(a,"viewBox","0 0 15 15"),nt(m,"class","MyAccountCategoryTitle "+(i[17]?"MyAccountCategoryTitleNone":"")),nt(m,"part","MyAccountCategoryTitle "+(i[17]?"MyAccountCategoryTitleNone":"")),nt(o,"class","MenuReturnButton "+(i[17]?"MyAccountCategoryTitleNone":"")),nt(o,"part","MenuReturnButton "+(i[17]?"MyAccountCategoryTitleNone":"")),nt(x,"class","AccountEditLimitsIcon"),nt(x,"part","AccountEditLimitsIcon"),rt(T,"showpopup",i[6]),rt(T,"lang",i[5]),nt(b,"class","AccountEditLimitsIconWrapper"),nt(b,"part","AccountEditLimitsIconWrapper"),nt(g,"class","AccountEditLimitsHeader"),nt(g,"part","AccountEditLimitsHeader"),nt(I,"class",k="AccountEditLimitsSaveButton "+(i[13]?"":"AccountEditLimitsButtonDisabled")),nt(I,"part",P="AccountEditLimitsSaveButton "+(i[13]?"":"AccountEditLimitsButtonDisabled")),I.disabled=O=!i[13],nt(S,"class","AccountEditLimitsControlArea"),nt(S,"part","AccountEditLimitsControlArea"),nt(n,"class","AccountEditLimitsWrapper "+(i[17]?"AccountEditLimitsMobileWrapper":"")),rt(Y,"modaltext",i[10]),rt(Y,"modalsource","groupEdit"),rt(Y,"lang",i[5])},m(t,e){q(t,n,e),j&&j.m(n,null),X(n,r),X(n,o),X(o,a),X(a,s),X(s,l),X(l,u),X(a,c),X(c,d),X(d,h),X(o,f),X(o,m),X(m,p),X(n,y),X(n,g),X(g,w),X(w,v),X(g,_),X(g,b),X(b,x),X(b,E),X(b,T),X(n,C),B&&B.m(n,null),X(n,L),H&&H.m(n,null),X(n,M),V&&V.m(n,null),X(n,A),X(n,S),X(S,I),X(I,D),q(t,N,e),q(t,R,e),X(R,Y),F||(U=[et(o,"click",i[20]),et(x,"click",it(i[19])),et(I,"click",i[26])],F=!0)},p(t,e){t[17]&&j.p(t,e),65536&e[0]&&G!==(G=t[16]("editText.back")+"")&&ot(p,G),9&e[0]&&$!==($=(t[0]?t[3]:"")+"")&&ot(v,$),64&e[0]&&rt(T,"showpopup",t[6]),32&e[0]&&rt(T,"lang",t[5]),t[1]?B?B.p(t,e):(B=Jn(t),B.c(),B.m(n,L)):B&&(B.d(1),B=null),t[2]?H?H.p(t,e):(H=Kn(t),H.c(),H.m(n,M)):H&&(H.d(1),H=null),t[7]?V?V.p(t,e):(V=er(t),V.c(),V.m(n,A)):V&&(V.d(1),V=null),65536&e[0]&&W!==(W=t[16]("editText.save")+"")&&ot(D,W),8192&e[0]&&k!==(k="AccountEditLimitsSaveButton "+(t[13]?"":"AccountEditLimitsButtonDisabled"))&&nt(I,"class",k),8192&e[0]&&P!==(P="AccountEditLimitsSaveButton "+(t[13]?"":"AccountEditLimitsButtonDisabled"))&&nt(I,"part",P),8192&e[0]&&O!==(O=!t[13])&&(I.disabled=O),1024&e[0]&&rt(Y,"modaltext",t[10]),32&e[0]&&rt(Y,"lang",t[5])},i:z,o:z,d(t){t&&J(n),j&&j.d(),B&&B.d(),H&&H.d(),V&&V.d(),t&&J(N),t&&J(R),F=!1,Z(U)}}}function hr(t,e,o){let i;N(t,Mn,t=>o(16,i=t));let{limitsdata:n=[]}=e,{showsuccessnotification:r=!1}=e,{showdeletenotification:a=!1}=e,{limitname:s=""}=e,{playercurrency:l=""}=e,{lang:u="en"}=e;Object.keys(Yn).forEach(t=>{sn(t,Yn[t])});let c=!1,d=!0,h=!1,f=0,m=0,p="",y=window.navigator.userAgent,g="PC"!==An(y),w=new Array(3).fill(0),v={},_=[],b=!1,x=[];const E={amount:/^[0-9]{0,7}$/,time:/^[1-9]\d*$/};let T=[{periodName:"Daily",amount:"No limit",value:0},{periodName:"Weekly",amount:"No limit",value:0},{periodName:"Monthly",amount:"No limit",value:0}],C=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],L=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],M=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],A=[{periodName:"Daily",values:["500","1000","1430","Custom"]},{periodName:"Weekly",values:["5000","7000","10000","Custom"]},{periodName:"Monthly",values:["20000","30000","43000","Custom"]}];const S=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),I=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},D=(i,t)=>{let n=JSON.parse(JSON.stringify(t));T.forEach(e=>{n.forEach(t=>{e.periodName==i.periodName&&("Custom"!==e.amount&&"No limit"!==e.amount?e.value=JSON.parse(e.amount):"No limit"===e.amount&&(e.value=0)),t.period===e.periodName&&(t.amount=e.value)})})},k=()=>{x.forEach(t=>{var e=t;_.forEach(t=>{e.period===t.periodName&&("Time Limit"===s&&(o(8,f=60),"Daily"===e.periodName?o(9,m=1440):"Weekly"==e.periodName?o(9,m=10080):o(9,m=43200)),-1<t.values.indexOf(e.amount)&&("No limit"===e.amount?e.amount=0:e.amount=JSON.parse(e.amount)))})}),v.forEach(e=>{_.forEach(t=>{e.period===t.periodName&&((t,e,i)=>{let n=t.values;e.amount&&"No limit"!==e.amount?n.includes(JSON.stringify(e.amount))?i.forEach(t=>{t.periodName===e.period&&(t.amount=JSON.stringify(e.amount),t.value=e.amount)}):i.forEach(t=>{t.periodName===e.period&&(t.amount="Custom",t.value=e.amount)}):i.forEach(t=>{t.periodName===e.period&&(t.amount=e.amount,t.value=0)})})(t,e,T)})})},P=()=>{var t=u;gn.set(t),t="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",o(10,p=i("editText.changeLimitsText",{values:{limit:t}})),o(14,x=JSON.parse(JSON.stringify(n))),o(12,v=JSON.parse(JSON.stringify(n))),_="Wagering Limit"===s?L:"Loss Limit"===s?M:"Deposit Limit"===s?C:"Time Limit"===s?A:[],k()},O=t=>{if(t.data)switch(t.data.type){case"ClosePlayerAccountGamingLimitsPopup":o(6,c=!1);break;case"GamingLimitsConfirmChanges":h=!0,h&&("Time Limit"===s?T.forEach(e=>{v.forEach(t=>{t.period===e.periodName&&(t.minutes=e.value)})}):T.forEach(e=>{v.forEach(t=>{t.period===e.periodName&&(t.amount=e.value,t.currency=l)})}),e={},e={[S.get(s)]:[...v]},window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:e,limitsCategory:S.get(s)},window.location.href),o(13,b=!1));break;case"CancelGamingLimitsChanges":o(7,d=!1),setTimeout(()=>{o(7,d=!0)},10),P(),o(13,b=!1),h=!1}var e};return Y(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)})),t.$$set=t=>{"limitsdata"in t&&o(0,n=t.limitsdata),"showsuccessnotification"in t&&o(1,r=t.showsuccessnotification),"showdeletenotification"in t&&o(2,a=t.showdeletenotification),"limitname"in t&&o(3,s=t.limitname),"playercurrency"in t&&o(4,l=t.playercurrency),"lang"in t&&o(5,u=t.lang)},t.$$.update=()=>{6&t.$$.dirty[0]&&r&&a&&P(),33&t.$$.dirty[0]&&n&&u&&P()},[n,r,a,s,l,u,c,d,f,m,p,w,v,b,x,T,i,g,C,()=>{o(6,c=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},I,(t,e,i,n)=>{var r;"Custom"===t.amount?"Time Limit"==s?(o(8,f=60),"Daily"===t.periodName?o(9,m=1440):"Weekly"==t.periodName?o(9,m=10080):o(9,m=43200),t.value&&E.time.test(t.value)&&t.value>f&&t.value<=m?(o(11,w[e]=0,w),r=n[e],t.periodName==r.period&&t.value==r.amount?(o(13,b=!1),D(t,n)):o(13,b=!0)):(o(11,w[e]=1,w),o(13,b=!1))):t.value&&E.amount.test(t.value)?(o(11,w[e]=0,w),t.periodName==n[e].period&&t.value==n[e].amount?(o(13,b=!!b),D(t,n)):o(13,b=!0),T.forEach(t=>{0==t.value&&o(13,b=!1)})):(o(11,w[e]=1,w),o(13,b=!1)):(t.periodName==n[e].period?(D(t,n),o(13,b=t.value!=n[e].amount)):o(13,b=!0),T.forEach(t=>{0==t.value&&o(13,b=!1)}))},function(t){T[t].amount=function(t){t=t.querySelector(":checked")||t.options[0];return t&&t.__value}(this),o(15,T),o(18,C)},function(t){T[t].value=R(this.value),o(15,T),o(18,C)},function(t){T[t].value=R(this.value),o(15,T),o(18,C)},()=>I()]}function fr(t,e,i){const n=t.slice();return n[33]=e[i],n[35]=i,n}function mr(t,e,i){const n=t.slice();return n[33]=e[i],n[35]=i,n}function pr(e){let r,o=e[0],a=[];for(let t=0;t<o.length;t+=1)a[t]=br(fr(e,o,t));return{c(){for(let t=0;t<a.length;t+=1)a[t].c();r=x()},m(e,i){for(let t=0;t<a.length;t+=1)a[t].m(e,i);q(e,r,i)},p(e,i){if(210975&i[0]){let t;for(o=e[0],t=0;t<o.length;t+=1){var n=fr(e,o,t);a[t]?a[t].p(n,i):(a[t]=br(n),a[t].c(),a[t].m(r.parentNode,r))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}},d(t){b(a,t),t&&J(r)}}}function yr(e){let r,o=e[0],a=[];for(let t=0;t<o.length;t+=1)a[t]=Sr(mr(e,o,t));return{c(){for(let t=0;t<a.length;t+=1)a[t].c();r=x()},m(e,i){for(let t=0;t<a.length;t+=1)a[t].m(e,i);q(e,r,i)},p(e,i){if(210971&i[0]){let t;for(o=e[0],t=0;t<o.length;t+=1){var n=mr(e,o,t);a[t]?a[t].p(n,i):(a[t]=Sr(n),a[t].c(),a[t].m(r.parentNode,r))}for(;t<a.length;t+=1)a[t].d(1);a.length=o.length}},d(t){b(a,t),t&&J(r)}}}function gr(t){let i,n,r=t[11]("cardText.notAvailable")+"";return{c(){i=K("div"),n=Q(r),nt(i,"class","InfoCardRowValue"),nt(i,"part","InfoCardRowValue")},m(t,e){q(t,i,e),X(i,n)},p(t,e){2048&e[0]&&r!==(r=t[11]("cardText.notAvailable")+"")&&ot(n,r)},d(t){t&&J(i)}}}function wr(t){let i,n,r=(t[33]?(Gn(t[33].expiryDate).year()>t[13].year()+30?t[13].add(5,"years"):Gn(t[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=Q(r),nt(i,"class","InfoCardRowValue"),nt(i,"part","InfoCardRowValue")},m(t,e){q(t,i,e),X(i,n)},p(t,e){1&e[0]&&r!==(r=(t[33]?(Gn(t[33].expiryDate).year()>t[13].year()+30?t[13].add(5,"years"):Gn(t[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ot(n,r)},d(t){t&&J(i)}}}function vr(i){let n,r,o,a,s,l,u,c;function d(){return i[20](i[35])}return{c(){n=K("div"),r=K("span"),r.textContent="i",o=tt(),a=K("player-account-gaming-limits-popup"),nt(r,"class","InfoCardIcon"),nt(r,"part","InfoCardIcon"),rt(a,"showpopup",s=i[4][i[35]+1]),rt(a,"iteminfoamount",l=i[33].updateAmount),rt(a,"playercurrency",i[2]),rt(a,"lang",i[3]),nt(n,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),nt(n,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":""))},m(t,e){q(t,n,e),X(n,r),X(n,o),X(n,a),u||(c=et(r,"click",it(d)),u=!0)},p(t,e){i=t,16&e[0]&&s!==(s=i[4][i[35]+1])&&rt(a,"showpopup",s),1&e[0]&&l!==(l=i[33].updateAmount)&&rt(a,"iteminfoamount",l),4&e[0]&&rt(a,"playercurrency",i[2]),8&e[0]&&rt(a,"lang",i[3])},d(t){t&&J(n),u=!1,c()}}}function _r(i){let n,r,o;return{c(){n=K("div"),n.innerHTML="<span></span>",nt(n,"class","InfoCardRemoveIcon"),nt(n,"part","InfoCardRemoveIcon")},m(t,e){q(t,n,e),r||(o=et(n,"click",function(){v(i[16](i[33],i[1]))&&i[16](i[33],i[1]).apply(this,arguments)}),r=!0)},p(t,e){i=t},d(t){t&&J(n),r=!1,o()}}}function br(t){let i,n,r,o,a,s,l,u,c,d,h,f,m,p,y,g,w,v,_,b=(t[33]?t[33].period:"")+"",x=(t[33]?t[33].amount:0)+"",E=(t[33]?t[33].currency:"")+"",T=t[11]("cardText.expirationDate")+"";function C(t){return t[33].expiryDate?wr:gr}let L=C(t),M=L(t);function A(t,e){return(null==v||2049&e[0])&&(v=!(t[33].amount===t[11]("cardText.noLimit")||t[33].isModified)),v?_r:"No limit"!=t[33].amount&&t[33].isModified?vr:void 0}let S=A(t,[-1]),I=S&&S(t);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=Q(b),s=tt(),l=K("div"),u=Q(x),c=tt(),d=K("span"),h=Q(E),f=tt(),m=K("div"),p=K("div"),y=Q(T),g=tt(),M.c(),w=tt(),I&&I.c(),_=tt(),nt(o,"class","InfoCardRowTitle"),nt(o,"part","InfoCardRowTitle"),nt(d,"class","InfoCardCurrency"),nt(d,"part","InfoCardCurrency"),nt(l,"class","InfoCardRowValue"),nt(l,"part","InfoCardRowValue"),nt(r,"class","InfoCardRow InfoMainRow"),nt(r,"part","InfoCardRow InfoMainRow"),nt(p,"class","InfoCardRowTitle"),nt(p,"part","InfoCardRowTitle"),nt(m,"class","InfoCardRow"),nt(m,"part","InfoCardRow"),nt(n,"class","InfoCardRowContainer"),nt(n,"part","InfoCardRowContainer"),nt(i,"class","InfoCardBox InfoCardMultipleItems"),nt(i,"part","InfoCardBox InfoCardMultipleItems")},m(t,e){q(t,i,e),X(i,n),X(n,r),X(r,o),X(o,a),X(r,s),X(r,l),X(l,u),X(l,c),X(l,d),X(d,h),X(n,f),X(n,m),X(m,p),X(p,y),X(m,g),M.m(m,null),X(i,w),I&&I.m(i,null),X(i,_)},p(t,e){1&e[0]&&b!==(b=(t[33]?t[33].period:"")+"")&&ot(a,b),1&e[0]&&x!==(x=(t[33]?t[33].amount:0)+"")&&ot(u,x),1&e[0]&&E!==(E=(t[33]?t[33].currency:"")+"")&&ot(h,E),2048&e[0]&&T!==(T=t[11]("cardText.expirationDate")+"")&&ot(y,T),L===(L=C(t))&&M?M.p(t,e):(M.d(1),M=L(t),M&&(M.c(),M.m(m,null))),S===(S=A(t,e))&&I?I.p(t,e):(I&&I.d(1),I=S&&S(t),I&&(I.c(),I.m(i,_)))},d(t){t&&J(i),M.d(),I&&I.d()}}}function xr(t){let i,n,r=t[11]("cardText.noLimit")+"";return{c(){i=K("span"),n=Q(r),nt(i,"class","InfoCardCurrency"),nt(i,"part","InfoCardCurrency")},m(t,e){q(t,i,e),X(i,n)},p(t,e){2048&e[0]&&r!==(r=t[11]("cardText.noLimit")+"")&&ot(n,r)},d(t){t&&J(i)}}}function Er(t){let i,n,r,o=(t[33]?t[33].amount:0)+"",a="No limit"!=t[33].amount&&Tr(t);return{c(){i=Q(o),n=tt(),a&&a.c(),r=x()},m(t,e){q(t,i,e),q(t,n,e),a&&a.m(t,e),q(t,r,e)},p(t,e){1&e[0]&&o!==(o=(t[33]?t[33].amount:0)+"")&&ot(i,o),"No limit"!=t[33].amount?a?a.p(t,e):(a=Tr(t),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(t){t&&J(i),t&&J(n),a&&a.d(t),t&&J(r)}}}function Tr(t){let i,n,r=t[11]("cardText.minutes")+"";return{c(){i=K("span"),n=Q(r),nt(i,"class","InfoCardCurrency"),nt(i,"part","InfoCardCurrency")},m(t,e){q(t,i,e),X(i,n)},p(t,e){2048&e[0]&&r!==(r=t[11]("cardText.minutes")+"")&&ot(n,r)},d(t){t&&J(i)}}}function Cr(t){let i,n,r=t[11]("cardText.notAvailable")+"";return{c(){i=K("div"),n=Q(r),nt(i,"class","InfoCardRowValue"),nt(i,"part","InfoCardRowValue")},m(t,e){q(t,i,e),X(i,n)},p(t,e){2048&e[0]&&r!==(r=t[11]("cardText.notAvailable")+"")&&ot(n,r)},d(t){t&&J(i)}}}function Lr(t){let i,n,r=(t[33]?(Gn(t[33].expiryDate).year()>t[13].year()+30?t[13].add(5,"years"):Gn(t[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=Q(r),nt(i,"class","InfoCardRowValue"),nt(i,"part","InfoCardRowValue")},m(t,e){q(t,i,e),X(i,n)},p(t,e){1&e[0]&&r!==(r=(t[33]?(Gn(t[33].expiryDate).year()>t[13].year()+30?t[13].add(5,"years"):Gn(t[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ot(n,r)},d(t){t&&J(i)}}}function Mr(i){let n,r,o,a,s,l,u,c;function d(){return i[19](i[35])}return{c(){n=K("div"),r=K("span"),r.textContent="i",o=tt(),a=K("player-account-gaming-limits-popup"),nt(r,"class","InfoCardIcon"),nt(r,"part","InfoCardIcon"),rt(a,"showpopup",s=i[4][i[35]+1]),rt(a,"iteminfoamount",l=i[33].updateMinutes),rt(a,"playercurrency","minutes"),rt(a,"lang",i[3]),nt(n,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),nt(n,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":""))},m(t,e){q(t,n,e),X(n,r),X(n,o),X(n,a),u||(c=et(r,"click",it(d)),u=!0)},p(t,e){i=t,16&e[0]&&s!==(s=i[4][i[35]+1])&&rt(a,"showpopup",s),1&e[0]&&l!==(l=i[33].updateMinutes)&&rt(a,"iteminfoamount",l),8&e[0]&&rt(a,"lang",i[3])},d(t){t&&J(n),u=!1,c()}}}function Ar(i){let n,r,o;return{c(){n=K("div"),n.innerHTML="<span></span>",nt(n,"class","InfoCardRemoveIcon"),nt(n,"part","InfoCardRemoveIcon")},m(t,e){q(t,n,e),r||(o=et(n,"click",function(){v(i[16](i[33],i[1]))&&i[16](i[33],i[1]).apply(this,arguments)}),r=!0)},p(t,e){i=t},d(t){t&&J(n),r=!1,o()}}}function Sr(t){let i,n,r,o,a,s,l,u,c,d,h,f,m,p,y,g=(t[33]?t[33].period:"")+"",w=t[11]("cardText.expirationDate")+"";function v(t){return 0!==t[33].amount?Er:xr}let _=v(t),b=_(t);function x(t){return t[33].expiryDate?Lr:Cr}let E=x(t),T=E(t);function C(t,e){return(null==p||2049&e[0])&&(p=!(t[33].amount===t[11]("cardText.noLimit")||t[33].isModified)),p?Ar:"No limit"!=t[33].amount&&t[33].isModified?Mr:void 0}let L=C(t,[-1]),M=L&&L(t);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=Q(g),s=tt(),l=K("div"),b.c(),u=tt(),c=K("div"),d=K("div"),h=Q(w),f=tt(),T.c(),m=tt(),M&&M.c(),y=tt(),nt(o,"class","InfoCardRowTitle"),nt(o,"part","InfoCardRowTitle"),nt(l,"class","InfoCardRowValue"),nt(l,"part","InfoCardRowValue"),nt(r,"class","InfoCardRow InfoMainRow"),nt(r,"part","InfoCardRow InfoMainRow"),nt(d,"class","InfoCardRowTitle"),nt(d,"part","InfoCardRowTitle"),nt(c,"class","InfoCardRow"),nt(c,"part","InfoCardRow"),nt(n,"class","InfoCardRowContainer"),nt(n,"part","InfoCardRowContainer"),nt(i,"class","InfoCardBox InfoCardMultipleItems"),nt(i,"part","InfoCardBox InfoCardMultipleItems")},m(t,e){q(t,i,e),X(i,n),X(n,r),X(r,o),X(o,a),X(r,s),X(r,l),b.m(l,null),X(n,u),X(n,c),X(c,d),X(d,h),X(c,f),T.m(c,null),X(i,m),M&&M.m(i,null),X(i,y)},p(t,e){1&e[0]&&g!==(g=(t[33]?t[33].period:"")+"")&&ot(a,g),_===(_=v(t))&&b?b.p(t,e):(b.d(1),b=_(t),b&&(b.c(),b.m(l,null))),2048&e[0]&&w!==(w=t[11]("cardText.expirationDate")+"")&&ot(h,w),E===(E=x(t))&&T?T.p(t,e):(T.d(1),T=E(t),T&&(T.c(),T.m(c,null))),L===(L=C(t,e))&&M?M.p(t,e):(M&&M.d(1),M=L&&L(t),M&&(M.c(),M.m(i,y)))},d(t){t&&J(i),b.d(),T.d(),M&&M.d()}}}function Ir(i){let n,r,o,a,s=i[11]("cardText.removeLimits")+"";return{c(){n=K("button"),r=Q(s),nt(n,"class","InfoCardRemoveButton"),nt(n,"part","InfoCardRemoveButton")},m(t,e){q(t,n,e),X(n,r),o||(a=et(n,"click",i[22]),o=!0)},p(t,e){2048&e[0]&&s!==(s=t[11]("cardText.removeLimits")+"")&&ot(r,s)},d(t){t&&J(n),o=!1,a()}}}function Dr(t){let i,n,r;return{c(){i=K("player-account-modal"),n=K("player-account-gaming-limits-confirmation-modal"),rt(n,"modaltext",r=t[6]?t[8]:t[9]),rt(n,"modalsource","infoCard"),rt(n,"lang",t[3])},m(t,e){q(t,i,e),X(i,n)},p(t,e){832&e[0]&&r!==(r=t[6]?t[8]:t[9])&&rt(n,"modaltext",r),8&e[0]&&rt(n,"lang",t[3])},d(t){t&&J(i)}}}function kr(t){let i,n=function(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y,g,w,v,_,b,x,E,T,C,L=(i[0]?i[1]:"")+"",M=i[11]("cardText.edit")+"";function A(t){return"Time Limit"===t[1]?yr:pr}let S=A(i),I=S(i),D=!i[5]&&!i[0].isModified&&i[10]&&Ir(i),k=i[7]&&Dr(i);return{c(){n=K("div"),r=K("div"),o=K("div"),a=K("h5"),s=Q(L),l=tt(),u=K("div"),c=K("span"),c.textContent="i",d=tt(),h=K("player-account-gaming-limits-popup"),m=tt(),p=K("div"),y=K("div"),g=K("div"),I.c(),w=tt(),v=K("div"),_=K("button"),b=Q(M),x=tt(),D&&D.c(),E=tt(),k&&k.c(),nt(c,"class","InfoCardIcon"),nt(c,"part","InfoCardIcon"),rt(h,"showpopup",f=i[4][0]),rt(h,"lang",i[3]),nt(u,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),nt(u,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),nt(o,"class","InfoCardHeader "+(i[12]?"InfoCardMobileHeader":"")),nt(o,"part","InfoCardHeader "+(i[12]?"InfoCardMobileHeader":"")),nt(g,"class","InfoCardTableRow"),nt(g,"part","InfoCardTableRow"),nt(y,"class","InfoCardTableWrapper"),nt(y,"part","InfoCardTableWrapper"),nt(_,"class","InfoCardEditButton"),nt(_,"part","InfoCardEditButton"),nt(v,"class","InfoCardControlArea"),nt(v,"part","InfoCardControlArea"),nt(p,"class","InfoCard"),nt(p,"part","InfoCard"),nt(r,"class","InfoCardWrapper"),nt(r,"part","InfoCardWrapper"),nt(n,"class","InfoCardSection"),nt(n,"part","InfoCardSection")},m(t,e){q(t,n,e),X(n,r),X(r,o),X(o,a),X(a,s),X(o,l),X(o,u),X(u,c),X(u,d),X(u,h),X(r,m),X(r,p),X(p,y),X(y,g),I.m(g,null),X(p,w),X(p,v),X(v,_),X(_,b),X(v,x),D&&D.m(v,null),X(n,E),k&&k.m(n,null),T||(C=[et(c,"click",it(i[18])),et(_,"click",i[21])],T=!0)},p(t,e){3&e[0]&&L!==(L=(t[0]?t[1]:"")+"")&&ot(s,L),16&e[0]&&f!==(f=t[4][0])&&rt(h,"showpopup",f),8&e[0]&&rt(h,"lang",t[3]),S===(S=A(t))&&I?I.p(t,e):(I.d(1),I=S(t),I&&(I.c(),I.m(g,null))),2048&e[0]&&M!==(M=t[11]("cardText.edit")+"")&&ot(b,M),t[5]||t[0].isModified||!t[10]?D&&(D.d(1),D=null):D?D.p(t,e):(D=Ir(t),D.c(),D.m(v,null)),t[7]?k?k.p(t,e):(k=Dr(t),k.c(),k.m(n,null)):k&&(k.d(1),k=null)},d(t){t&&J(n),I.d(),D&&D.d(),k&&k.d(),T=!1,Z(C)}}}(t);return{c(){n.c(),i=x(),this.c=z},m(t,e){n.m(t,e),q(t,i,e)},p(t,e){n.p(t,e)},i:z,o:z,d(t){n.d(t),t&&J(i)}}}function Pr(t,e,n){let o;N(t,Mn,t=>n(11,o=t));let{limitsdata:i=""}=e,{limitname:r=""}=e,{playercurrency:a=""}=e,{lang:s="en"}=e;Object.keys(In).forEach(t=>{sn(t,In[t])});let l=new Array(5).fill(0),u=[o("cardText.daily"),o("cardText.weekly"),o("cardText.monthly")],c=!0,d=!0,h=!1,f=window.navigator.userAgent,m="PC"!==An(f),p="",y="",g=!0,w=Gn();const v=t=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:t,name:r},window.location.href)},_=t=>{n(7,h=!0),n(6,d=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:t,removeName:r},window.location.href)},b=t=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(4,l[t]=!0,l)},50)},x=(t,e,i,n)=>{var r=n===o("cardText.time")?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:o("cardText.noLimit"),currency:"",isModified:!1,expiryDate:""};t.splice(e,0,r)},E=(t,e)=>t.period===o("cardText.weekly")&&e.period===o("cardText.daily")||t.period===o("cardText.monthly")&&e.period===o("cardText.daily")||t.period===o("cardText.monthly")&&e.period===o("cardText.weekly")?1:t.period===o("cardText.daily")&&e.period===o("cardText.weekly")||t.period===o("cardText.daily")&&e.period===o("cardText.monthly")||t.period===o("cardText.weekly")&&e.period===o("cardText.monthly")?-1:0,T=()=>{var t=s;gn.set(t),t=r===o("cardText.timeLimit")?o("cardText.timeLimitLower"):r===o("cardText.depositLimit")?o("cardText.depositLimitLower"):r===o("cardText.wageringLimit")?o("cardText.wageringLimitLower"):o("cardText.lossLimitLower"),n(8,p=o("cardText.removeLimitsText",{values:{limit:t}})),n(9,y=o("cardText.removeLimitText",{values:{limit:t}})),i.forEach(t=>{t.isModified&&n(10,g=!1)}),i.sort(E),(i=>{const e=u;u.forEach(e=>{i.indexOf(e),i.find(t=>t.period===e)&&(u=u.filter(t=>t!==e)),i.forEach(t=>{t.period===e&&t.amount!==o("cardText.noLimit")&&n(5,c=!1)})}),u.forEach(t=>{i.name===o("cardText.timeLimit")?x(i,e.indexOf(t),t,o("cardText.time")):x(i,e.indexOf(t),t,o("cardText.currency"))})})(i)},C=t=>{if(t.data)switch(t.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(4,l=new Array(5).fill(0));break;case"ModalClosed":n(7,h=!1),n(6,d=!1)}};return Y(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),t.$$set=t=>{"limitsdata"in t&&n(0,i=t.limitsdata),"limitname"in t&&n(1,r=t.limitname),"playercurrency"in t&&n(2,a=t.playercurrency),"lang"in t&&n(3,s=t.lang)},t.$$.update=()=>{11&t.$$.dirty[0]&&i&&r&&s&&T()},[i,r,a,s,l,c,d,h,p,y,g,o,m,w,v,_,(t,e)=>{n(7,h=!0),n(6,d=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:t,removeName:e},window.location.href)},b,()=>b(0),t=>b(t+1),t=>b(t+1),()=>v(i),()=>_(i)]}function Or(t){let i;return{c(){i=K("player-account-gaming-limits-group-edit"),rt(i,"limitsdata",t[8]),rt(i,"limitname",t[9]),rt(i,"showsuccessnotification",t[6]),rt(i,"showdeletenotification",t[5]),rt(i,"playercurrency",t[0]),rt(i,"lang",t[7])},m(t,e){q(t,i,e)},p(t,e){256&e&&rt(i,"limitsdata",t[8]),512&e&&rt(i,"limitname",t[9]),64&e&&rt(i,"showsuccessnotification",t[6]),32&e&&rt(i,"showdeletenotification",t[5]),1&e&&rt(i,"playercurrency",t[0]),128&e&&rt(i,"lang",t[7])},d(t){t&&J(i)}}}function Nr(t){let i,n,r,o,a,s,l,u,c,d,h,f,m,p=t[11]("gamingLimits.gamingLimitsText")+"",y=t[12]&&function(i){let n,r,o,a,s,l,u,c,d,h,f,m,p,y=i[11]("gamingLimits.gamingLimitsText")+"";return{c(){n=K("div"),r=e("svg"),o=e("defs"),a=e("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=e("g"),u=e("g"),c=e("path"),d=tt(),h=K("h2"),f=Q(y),nt(c,"class","aaa"),nt(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),nt(c,"transform","translate(15 15) rotate(180)"),nt(u,"transform","translate(20 158)"),nt(l,"transform","translate(-20 -158)"),nt(r,"xmlns","http://www.w3.org/2000/svg"),nt(r,"width","15"),nt(r,"height","15"),nt(r,"viewBox","0 0 15 15"),nt(h,"class","PlayerGamingLimitsTitleMobile"),nt(h,"part","PlayerGamingLimitsTitleMobile"),nt(n,"class","MenuReturnButton"),nt(n,"part","MenuReturnButton")},m(t,e){q(t,n,e),X(n,r),X(r,o),X(o,a),X(a,s),X(r,l),X(l,u),X(u,c),X(n,d),X(n,h),X(h,f),m||(p=et(n,"click",i[19]),m=!0)},p(t,e){2048&e&&y!==(y=t[11]("gamingLimits.gamingLimitsText")+"")&&ot(f,y)},d(t){t&&J(n),m=!1,p()}}}(t);return{c(){i=K("div"),y&&y.c(),n=tt(),r=K("h2"),o=Q(p),a=tt(),s=K("div"),l=K("player-account-gaming-limits-info-card"),u=tt(),c=K("player-account-gaming-limits-info-card"),d=tt(),h=K("player-account-gaming-limits-info-card"),f=tt(),m=K("player-account-gaming-limits-info-card"),nt(r,"class","PlayerGamingLimitsTitle "+(t[12]?"PlayerGamingLimitsTitleNone":"")),nt(r,"part","PlayerGamingLimitsTitle "+(t[12]?"PlayerGamingLimitsTitleNone":"")),rt(l,"limitsdata",t[1]),rt(l,"limitname",t[13]),rt(l,"playercurrency",t[0]),rt(l,"lang",t[7]),rt(c,"limitsdata",t[2]),rt(c,"limitname",t[14]),rt(c,"playercurrency",t[0]),rt(c,"lang",t[7]),rt(h,"limitsdata",t[3]),rt(h,"limitname",t[15]),rt(h,"playercurrency",t[0]),rt(h,"lang",t[7]),rt(m,"limitsdata",t[4]),rt(m,"limitname",t[16]),rt(m,"playercurrency",t[0]),rt(m,"lang",t[7]),nt(s,"class","PlayerAccountGamingLimitsContainer"),nt(s,"part","PlayerAccountGamingLimitsContainer"),nt(i,"class","PlayerAccountGamingLimitsWrapper "+(t[12]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(t[17].matches&&t[12]?"PlayerAccountTabletGamingLimitsWrapper":"")),nt(i,"part","PlayerAccountGamingLimitsWrapper "+(t[12]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(t[17].matches&&t[12]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(t,e){q(t,i,e),y&&y.m(i,null),X(i,n),X(i,r),X(r,o),X(i,a),X(i,s),X(s,l),X(s,u),X(s,c),X(s,d),X(s,h),X(s,f),X(s,m)},p(t,e){t[12]&&y.p(t,e),2048&e&&p!==(p=t[11]("gamingLimits.gamingLimitsText")+"")&&ot(o,p),2&e&&rt(l,"limitsdata",t[1]),1&e&&rt(l,"playercurrency",t[0]),128&e&&rt(l,"lang",t[7]),4&e&&rt(c,"limitsdata",t[2]),1&e&&rt(c,"playercurrency",t[0]),128&e&&rt(c,"lang",t[7]),8&e&&rt(h,"limitsdata",t[3]),1&e&&rt(h,"playercurrency",t[0]),128&e&&rt(h,"lang",t[7]),16&e&&rt(m,"limitsdata",t[4]),1&e&&rt(m,"playercurrency",t[0]),128&e&&rt(m,"lang",t[7])},d(t){t&&J(i),y&&y.d()}}}function Rr(t){let i;function n(t){return t[10]?Nr:Or}let r=n(t),o=r(t);return{c(){o.c(),i=x(),this.c=z},m(t,e){o.m(t,e),q(t,i,e)},p(t,[e]){r===(r=n(t))&&o?o.p(t,e):(o.d(1),o=r(t),o&&(o.c(),o.m(i.parentNode,i)))},i:z,o:z,d(t){o.d(t),t&&J(i)}}}function Yr(e,t,i){let n;N(e,Mn,t=>i(11,n=t));let{depositlimit:r=""}=t,{wageringlimit:o=""}=t,{losslimit:a=""}=t,{timelimit:s=""}=t,{showdeletenotification:l=!1}=t,{showsuccessnotification:u=!1}=t,{lang:c="en"}=t,{playercurrency:d=""}=t;Object.keys(Sn).forEach(t=>{sn(t,Sn[t])});let h,f=window.navigator.userAgent,m="PC"!==An(f),p="",y=!0,g=n("gamingLimits.depositLimit"),w=n("gamingLimits.wageringLimit"),v=n("gamingLimits.lossLimit"),_=n("gamingLimits.timeLimit");const b=window.matchMedia("(min-width: 768px)"),x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},E=t=>{if(t.data)switch(t.data.type){case"EditPlayerAccountGamingLimits":i(8,h=t.data.edit),i(9,p=t.data.name),i(10,y=!1);break;case"PlayerAccountBackToLimitsView":i(10,y=!0);break;case"ProfileDetailsData":var e=t.data.profileDetails;i(0,d=e.currency)}};return Y(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),e.$$set=t=>{"depositlimit"in t&&i(1,r=t.depositlimit),"wageringlimit"in t&&i(2,o=t.wageringlimit),"losslimit"in t&&i(3,a=t.losslimit),"timelimit"in t&&i(4,s=t.timelimit),"showdeletenotification"in t&&i(5,l=t.showdeletenotification),"showsuccessnotification"in t&&i(6,u=t.showsuccessnotification),"lang"in t&&i(7,c=t.lang),"playercurrency"in t&&i(0,d=t.playercurrency)},e.$$.update=()=>{var t;144&e.$$.dirty&&s&&g&&w&&v&&_&&c&&(t=c,gn.set(t),S())},[d,r,o,a,s,l,u,c,h,p,y,n,m,g,w,v,_,b,x,()=>x()]}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends H{constructor(t){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'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, #FD2839);margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},zn,Vn,i,{modaltext:0,modalsource:6,lang:7}),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["modaltext","modalsource","lang"]}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$set({modaltext:t}),k()}get modalsource(){return this.$$.ctx[6]}set modalsource(t){this.$set({modalsource:t}),k()}get lang(){return this.$$.ctx[7]}set lang(t){this.$set({lang:t}),k()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends H{constructor(t){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'}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-color-primary, #D0046C)}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-color-primary-50, #FBECF4);border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-color-primary, #D0046C);cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},hr,dr,i,{limitsdata:0,showsuccessnotification:1,showdeletenotification:2,limitname:3,playercurrency:4,lang:5},[-1,-1]),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","limitname","playercurrency","lang"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(t){this.$set({limitsdata:t}),k()}get showsuccessnotification(){return this.$$.ctx[1]}set showsuccessnotification(t){this.$set({showsuccessnotification:t}),k()}get showdeletenotification(){return this.$$.ctx[2]}set showdeletenotification(t){this.$set({showdeletenotification:t}),k()}get limitname(){return this.$$.ctx[3]}set limitname(t){this.$set({limitname:t}),k()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(t){this.$set({playercurrency:t}),k()}get lang(){return this.$$.ctx[5]}set lang(t){this.$set({lang:t}),k()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends H{constructor(t){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'}.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, #FD2839);border:1px solid var(--emfe-w-color-secondary, #FD2839)}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:\"\\274c\";font-size:7px;color:var(--emfe-w-color-secondary, #FD2839);line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Pr,kr,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3},[-1,-1]),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(t){this.$set({limitsdata:t}),k()}get limitname(){return this.$$.ctx[1]}set limitname(t){this.$set({limitname:t}),k()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(t){this.$set({playercurrency:t}),k()}get lang(){return this.$$.ctx[3]}set lang(t){this.$set({lang:t}),k()}});class Fr extends H{constructor(t){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'}.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-color-primary, #D0046C);padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Yr,Rr,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:5,showsuccessnotification:6,lang:7,playercurrency:0}),t&&(t.target&&q(t.target,this,t.anchor),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(t){this.$set({depositlimit:t}),k()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(t){this.$set({wageringlimit:t}),k()}get losslimit(){return this.$$.ctx[3]}set losslimit(t){this.$set({losslimit:t}),k()}get timelimit(){return this.$$.ctx[4]}set timelimit(t){this.$set({timelimit:t}),k()}get showdeletenotification(){return this.$$.ctx[5]}set showdeletenotification(t){this.$set({showdeletenotification:t}),k()}get showsuccessnotification(){return this.$$.ctx[6]}set showsuccessnotification(t){this.$set({showsuccessnotification:t}),k()}get lang(){return this.$$.ctx[7]}set lang(t){this.$set({lang:t}),k()}get playercurrency(){return this.$$.ctx[0]}set playercurrency(t){this.$set({playercurrency:t}),k()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",Fr),Fr});
|
|
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 z(){}const p=e=>e;function c(e){return e()}function d(){return Object.create(null)}function q(e){e.forEach(c)}function w(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return z;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function N(e,t,i){e.$$.on_destroy.push(m(t,i))}var e="undefined"!=typeof window;let g=e?()=>window.performance.now():()=>Date.now(),y=e?e=>requestAnimationFrame(e):z;const v=new Set;function _(t){v.forEach(e=>{e.c(t)||(v.delete(e),e.f())}),0!==v.size&&y(_)}function Z(e,t){e.appendChild(t)}function X(e,t,i){e.insertBefore(t,i||null)}function J(e){e.parentNode.removeChild(e)}function b(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function K(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e){return document.createTextNode(e)}function ee(){return Q(" ")}function x(){return Q("")}function te(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function ie(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ne(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function re(e,t,i){t in e?e[t]=i:ne(e,t,i)}function R(e){return""===e?null:+e}function oe(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function h(e,t){e.value=null==t?"":t}function T(t,i){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===i)return n.selected=!0,0}}function n(e){const t={};for(const i of e)t[i.name]=i.value;return t}const E=new Set;let f,C=0;function L(e,t,i,n,r,o,a,s=0){var l=16.666/n;let u="{\n";for(let e=0;e<=1;e+=l){const n=t+(i-t)*o(e);u+=100*e+`%{${a(n,1-n)}}\n`}const c=u+`100% {${a(i,1-i)}}\n}`,d=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(c)}_${s}`,m=e.ownerDocument;E.add(m);const h=m.__svelte_stylesheet||(m.__svelte_stylesheet=m.head.appendChild(K("style")).sheet),f=m.__svelte_rules||(m.__svelte_rules={});f[d]||(f[d]=!0,h.insertRule(`@keyframes ${d} ${c}`,h.cssRules.length));s=e.style.animation||"";return e.style.animation=`${s?`${s}, `:""}${d} ${n}ms linear ${r}ms 1 both`,C+=1,d}function M(e){f=e}function Y(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const A=[],s=[],r=[],o=[],a=Promise.resolve();let l=!1;function S(){l||(l=!0,a.then(k))}function I(e){r.push(e)}let u=!1;const D=new Set;function k(){if(!u){u=!0;do{for(let e=0;e<A.length;e+=1){var t=A[e];M(t),function(e){{var t;null!==e.fragment&&(e.update(),q(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I))}}(t.$$)}for(M(null),A.length=0;s.length;)s.pop()();for(let e=0;e<r.length;e+=1){const i=r[e];D.has(i)||(D.add(i),i())}}while(r.length=0,A.length);for(;o.length;)o.pop()();l=!1,u=!1,D.clear()}}let P;function O(e,t,i){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${i}`))}const F=new Set;let U;function G(e,t){e&&e.i&&(F.delete(e),e.i(t))}function $(e,t,i,n){e&&e.o&&(F.has(e)||(F.add(e),U.c.push(()=>{F.delete(e),n&&(i&&e.d(1),n())}),e.o(t)))}const W={duration:0};function j(s,e,t,i){let l=e(s,t),u=i?0:1,c=null,d=null,m=null;function h(){m&&function(e,t){const i=(e.style.animation||"").split(", "),n=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),r=i.length-n.length;r&&(e.style.animation=n.join(", "),C-=r,C||y(()=>{C||(E.forEach(e=>{const t=e.__svelte_stylesheet;let i=t.cssRules.length;for(;i--;)t.deleteRule(i);e.__svelte_rules={}}),E.clear())}))}(s,m)}function f(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:n=p,tick:r=z,css:o}=l||W,a={start:g()+t,b:e};e||(a.group=U,U.r+=1),c||d?d=a:(o&&(h(),m=L(s,u,e,i,t,n,o)),e&&r(0,1),c=f(a,i),I(()=>O(s,e,"start")),function(t){let i;0===v.size&&y(_),new Promise(e=>{v.add(i={c:t,f:e})})}(e=>{return d&&e>d.start&&(c=f(d,i),d=null,O(s,c.b,"start"),o&&(h(),m=L(s,u,c.b,c.duration,0,n,l.css))),c&&(e>=c.end?(r(u=c.b,1-u),O(s,c.b,"end"),d||(c.b?h():--c.group.r||q(c.group.c)),c=null):e>=c.start&&(e=e-c.start,u=c.a+c.d*n(e/c.duration),r(u,1-u))),!(!c&&!d)}))}return{run(e){w(l)?(P||(P=Promise.resolve(),P.then(()=>{P=null})),P.then(()=>{l=l(),n(e)})):n(e)},end(){h(),c=d=null}}}function B(n,e,t,i,r,o,a=[-1]){var s=f;M(n);const l=n.$$={fragment:null,ctx:null,props:o,update:z,not_equal:r,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:e.context||[]),callbacks:d(),dirty:a,skip_bound:!1};let u=!1;if(l.ctx=t?t(n,e.props||{},(e,t,...i)=>{i=i.length?i[0]:t;return l.ctx&&r(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),u&&(i=e,-1===(e=n).$$.dirty[0]&&(A.push(e),S(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31)),t}):[],l.update(),u=!0,q(l.before_update),l.fragment=!!i&&i(l.ctx),e.target){if(e.hydrate){const z=(i=e.target,Array.from(i.childNodes));l.fragment&&l.fragment.l(z),z.forEach(J)}else l.fragment&&l.fragment.c();e.intro&&G(n.$$.fragment),function(t,e,i,n){const{fragment:r,on_mount:o,on_destroy:a,after_update:s}=t.$$;r&&r.m(e,i),n||I(()=>{var e=o.map(c).filter(w);a?a.push(...e):q(e),t.$$.on_mount=[]}),s.forEach(I)}(n,e.target,e.anchor,e.customElement),k()}M(s)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(w);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=z}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var V,ae,se="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==se&&se,le="URLSearchParams"in se,ue="Symbol"in se&&"iterator"in Symbol,ce="FileReader"in se&&"Blob"in se&&function(){try{return new Blob,!0}catch(e){return!1}}(),de="FormData"in se,me="ArrayBuffer"in se;function he(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 fe(e){return e="string"!=typeof e?String(e):e}function pe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ue&&(e[Symbol.iterator]=function(){return e}),e}function ge(t){this.map={},t instanceof ge?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 ve(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function we(e){var t=new FileReader,i=ve(t);return t.readAsArrayBuffer(e),i}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 be(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:de&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:le&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&ce&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=_e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(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):le&&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(we)}),this.text=function(){var e,t,i=ye(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=ve(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},de&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(V=["[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<V.indexOf(Object.prototype.toString.call(e))}),ge.prototype.append=function(e,t){e=he(e),t=fe(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},ge.prototype.delete=function(e){delete this.map[he(e)]},ge.prototype.get=function(e){return e=he(e),this.has(e)?this.map[e]:null},ge.prototype.has=function(e){return this.map.hasOwnProperty(he(e))},ge.prototype.set=function(e,t){this.map[he(e)]=fe(t)},ge.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},ge.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),pe(i)},ge.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),pe(t)},ge.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),pe(i)},ue&&(ge.prototype[Symbol.iterator]=ge.prototype.entries);var xe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Te(e,t){if(!(this instanceof Te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n=(t=t||{}).body;if(e instanceof Te){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ge(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 ge(t.headers)),this.method=(e=(i=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(e)?e:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ee(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),i.append(decodeURIComponent(e),decodeURIComponent(t)))}),i}function Ce(e,t){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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 ge(t.headers),this.url=t.url||"",this._initBody(e)}Te.prototype.clone=function(){return new Te(this,{body:this._bodyInit})},be.call(Te.prototype),be.call(Ce.prototype),Ce.prototype.clone=function(){return new Ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ge(this.headers),url:this.url})},Ce.error=function(){var e=new Ce(null,{status:0,statusText:""});return e.type="error",e};var Le=[301,302,303,307,308];Ce.redirect=function(e,t){if(-1===Le.indexOf(t))throw new RangeError("Invalid status code");return new Ce(null,{status:t,headers:{location:e}})};var Me=se.DOMException;try{new Me}catch(z){(Me=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Me.prototype.constructor=Me}function Ae(n,a){return new Promise(function(r,e){var t=new Te(n,a);if(t.signal&&t.signal.aborted)return e(new Me("Aborted","AbortError"));var o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var e,i,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",i=new ge,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),i.append(e,t))}),i)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){r(new Ce(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Me("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&se.location.href?se.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(ce?o.responseType="blob":me&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof ge?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,fe(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",i)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}function Ii(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ae.polyfill=!0,se.fetch||(se.fetch=Ae,se.Headers=ge,se.Request=Te,se.Response=Ce),self.fetch.bind(self);var Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function De(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ke(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function Pe(e,t){for(var i=0,n=t.length,r=e.length;i<n;i++,r++)e[r]=t[i];return e}function Oe(e){return"function"==typeof e}function Ne(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Re=Ne(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 Ye(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Fe=(Ge.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=De(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Oe(o))try{o()}catch(e){r=e instanceof Re?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=De(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{We(c)}catch(e){r=null!=r?r:[],e instanceof Re?r=Pe(Pe([],ke(r)),ke(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Re(r)}},Ge.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)We(e);else{if(e instanceof Ge){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ge.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ge.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ge.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ye(t,e)},Ge.prototype.remove=function(e){var t=this._teardowns;t&&Ye(t,e),e instanceof Ge&&e._removeParent(this)},Ge.EMPTY=((ui=new Ge).closed=!0,ui),Ge),Ue=Fe.EMPTY;function Ge(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function $e(e){return e instanceof Fe||e&&"closed"in e&&Oe(e.remove)&&Oe(e.add)&&Oe(e.unsubscribe)}function We(e){Oe(e)?e():e.unsubscribe()}var je=void 0,Be=!1,He=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Pe([],ke(e)))};function Ve(){}function ze(e){e()}var qe,Ze,Xe=(Ie(Qe,Ze=Fe),Qe.create=function(e,t,i){return new Je(e,t,i)},Qe.prototype.next=function(e){this.isStopped||this._next(e)},Qe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Qe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Qe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ze.prototype.unsubscribe.call(this),this.destination=null)},Qe.prototype._next=function(e){this.destination.next(e)},Qe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Qe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Qe),Je=(Ie(Ke,qe=Xe),Ke);function Ke(e,t,i){var n,r,o=qe.call(this)||this;return Oe(e)?r=e:e&&(r=e.next,t=e.error,i=e.complete,o&&Be?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,r=null==r?void 0:r.bind(n),t=null==t?void 0:t.bind(n),i=null==i?void 0:i.bind(n)),o.destination={next:r?et(r):Ve,error:et(null!=t?t:tt),complete:i?et(i):Ve},o}function Qe(e){var t=Ze.call(this)||this;return t.isStopped=!1,e?$e(t.destination=e)&&e.add(t):t.destination=it,t}function et(n){return function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];try{n.apply(void 0,Pe([],ke(e)))}catch(e){t=e,He(function(){throw t})}}}function tt(e){throw e}var it={closed:!0,next:Ve,error:tt,complete:Ve},nt="function"==typeof Symbol&&Symbol.observable||"@@observable";function rt(e){return e}var ot=(at.prototype.lift=function(e){var t=new at;return t.source=this,t.operator=e,t},at.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof Xe||n&&Oe(n.next)&&Oe(n.error)&&Oe(n.complete)&&$e(n)?e:new Je(e,t,i);return ze(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},at.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},at.prototype.forEach=function(n,e){var r=this;return new(e=st(e))(function(e,t){var i=r.subscribe(function(e){try{n(e)}catch(e){t(e),null==i||i.unsubscribe()}},t,e)})},at.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},at.prototype[nt]=function(){return this},at.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?rt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},at.prototype.toPromise=function(e){var n=this;return new(e=st(e))(function(e,t){var i;n.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},at.create=function(e){return new at(e)},at);function at(e){e&&(this._subscribe=e)}function st(e){return null!==(e=null!=e?e:je)&&void 0!==e?e:Promise}var lt,ut,ct,dt=Ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),mt=(Ie(vt,ct=ot),vt.prototype.lift=function(e){var t=new ht(this,this);return t.operator=e,t},vt.prototype._throwIfClosed=function(){if(this.closed)throw new dt},vt.prototype.next=function(o){var a=this;ze(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var i=a.observers.slice();try{for(var n=De(i),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}}}})},vt.prototype.error=function(t){var i=this;ze(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},vt.prototype.complete=function(){var t=this;ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},vt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(vt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),vt.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},vt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},vt.prototype._innerSubscribe=function(e){var t=this.hasError,i=this.isStopped,n=this.observers;return t||i?Ue:(n.push(e),new Fe(function(){return Ye(n,e)}))},vt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},vt.prototype.asObservable=function(){var e=new ot;return e.source=this,e},vt.create=function(e,t){return new ht(e,t)},vt),ht=(Ie(yt,ut=mt),yt.prototype.next=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)},yt.prototype.error=function(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)},yt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},yt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Ue},yt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},pt=(Ie(gt,lt=mt),gt.prototype.next=function(e){var t=this,i=t.isStopped,n=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(n.push(e),r||n.push(o.now()+t)),this._trimBuffer(),lt.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*e;if(e<1/0&&r<i.length&&i.splice(0,i.length-r),!n){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},gt);function gt(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=ft);var n=lt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function yt(e,t){var i=ut.call(this)||this;return i.destination=e,i.source=t,i}function vt(){var e=ct.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let wt=[],_t={};const bt=[];function xt(n,r=z){let o;const a=[];function s(e){if(i(n,e)&&(n=e,o)){const e=!bt.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),bt.push(t,n)}if(e){for(let e=0;e<bt.length;e+=2)bt[e][0](bt[e+1]);bt.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=z){const i=[e,t];return a.push(i),1===a.length&&(o=r(s)||z),e(n),()=>{var e=a.indexOf(i);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function Tt(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:xt(t,t=>{let i=!1;const n=[];let r=0,o=z;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),c?t(e):o=w(e)?e:z)},e=u.map((e,t)=>m(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=1<<t}));return i=!0,a(),function(){q(e),o()}}).subscribe}}var Et=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===Ct));var t},Ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Lt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dt(Array.isArray(e)?[]:{},e,t):e}function Mt(e,t,i){return e.concat(t).map(function(e){return Lt(e,i)})}function At(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function St(e,t){try{return t in e}catch(e){return!1}}function It(n,r,o){var a={};return o.isMergeableObject(n)&&At(n).forEach(function(e){a[e]=Lt(n[e],o)}),At(r).forEach(function(t){var e,i;(!St(e=n,i=t)||Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))&&(St(n,t)&&o.isMergeableObject(r[t])?a[t]=function(){if(!o.customMerge)return Dt;var e=o.customMerge(t);return"function"==typeof e?e:Dt}()(n[t],r[t],o):a[t]=Lt(r[t],o))}),a}function Dt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Mt,i.isMergeableObject=i.isMergeableObject||Et,i.cloneUnlessOtherwiseSpecified=Lt;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):It(e,t,i):Lt(t,i)}Dt.all=function(e,i){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return Dt(e,t,i)},{})};var kt=Dt,Pt=function(e,t){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var Nt,Rt,Yt,Ft=function(){return(Ft=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Ut(e,t){for(var i=0,n=t.length,r=e.length;i<n;i++,r++)e[r]=t[i];return e}function Gt(e){return e.type===Rt.literal}function $t(e){return e.type===Rt.number}function Wt(e){return e.type===Rt.date}function jt(e){return e.type===Rt.time}function Bt(e){return e.type===Rt.select}function Ht(e){return e.type===Rt.plural}function Vt(e){return e.type===Rt.tag}function zt(e){return e&&"object"==typeof e&&e.type===Yt.number}function qt(e){return e&&"object"==typeof e&&e.type===Yt.dateTime}(ci=Nt=Nt||{})[ci.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ci[ci.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ci[ci.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ci[ci.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ci[ci.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ci[ci.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ci[ci.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ci[ci.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ci[ci.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ci[ci.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ci[ci.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ci[ci.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ci[ci.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ci[ci.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ci[ci.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ci[ci.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ci[ci.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ci[ci.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ci[ci.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ci[ci.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ci[ci.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ci[ci.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ci[ci.INVALID_TAG=23]="INVALID_TAG",ci[ci.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ci[ci.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ci[ci.UNCLOSED_TAG=27]="UNCLOSED_TAG",(di=Rt=Rt||{})[di.literal=0]="literal",di[di.argument=1]="argument",di[di.number=2]="number",di[di.date=3]="date",di[di.time=4]="time",di[di.select=5]="select",di[di.plural=6]="plural",di[di.pound=7]="pound",di[di.tag=8]="tag",(mi=Yt=Yt||{})[mi.number=0]="number",mi[mi.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zt=/(?:[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 Xt,Jt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Kt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qt=/^(@+)?(\+|#+)?$/g,ei=/(\*)(0+)|(#+)(0+)|(0+)/g,ti=/^(0+)$/;function ii(e){var n={};return e.replace(Qt,function(e,t,i){return"string"!=typeof i?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===i?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),n}function ni(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 ri(e){return ni(e)||{}}function oi(e){for(var a={},t=0,i=e;t<i.length;t++){var n,r=i[t];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=Ft(Ft(Ft({},a),{notation:"scientific"}),r.options.reduce(function(e,t){return Ft(Ft({},e),ri(t))},{}));continue;case"engineering":a=Ft(Ft(Ft({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return Ft(Ft({},e),ri(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(ei,function(e,t,i,n,r,o){if(t)a.minimumIntegerDigits=i.length;else{if(n&&r)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ti.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(Kt.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Kt,function(e,t,i,n,r,o){return"*"===i?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),r.options.length&&(a=Ft(Ft({},a),ii(r.options[0])))}else Qt.test(r.stem)?a=Ft(Ft({},a),ii(r.stem)):((n=ni(r.stem))&&(a=Ft(Ft({},a),n)),(n=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 i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ti.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=Ft(Ft({},a),n)))}return a}var ai=new RegExp("^"+e.source+"*"),si=new RegExp(e.source+"*$");function li(e,t){return{start:e,end:t}}var ui=!!String.prototype.startsWith,nt=!!String.fromCodePoint,mt=!!Object.fromEntries,ci=!!String.prototype.codePointAt,di=!!String.prototype.trimStart,mi=!!String.prototype.trimEnd,hi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(Xt=xi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Xt?void 0:Xt[0])}catch(z){e=!1}var fi,pi,gi=ui?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},yi=nt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;o<r;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},vi=mt?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],r=r[1];t[o]=r}return t},wi=ci?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||i<=t)){var n,r=e.charCodeAt(t);return r<55296||56319<r||t+1===i||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536}},_i=di?function(e){return e.trimStart()}:function(e){return e.replace(ai,"")},bi=mi?function(e){return e.trimEnd()}:function(e){return e.replace(si,"")};function xi(e,t){return new RegExp(e,t)}pi=e?(fi=xi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return fi.lastIndex=t,null!==(e=fi.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var i,n=[];;){var r=wi(e,t);if(void 0===r||Li(r)||(33<=(i=r)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094))break;n.push(r),t+=65536<=r?2:1}return yi.apply(void 0,n)};var Ti=(Ei.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ei.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,i)).err)return r;n.push(r.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(Nt.UNMATCHED_CLOSING_TAG,li(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ci(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r;n.push(r.val)}else{if((r=this.parseLiteral(e,t)).err)return r;n.push(r.val)}}else{o=this.clonePosition();this.bump(),n.push({type:Rt.pound,location:li(o,this.clonePosition())})}}}return{val:n,err:null}},Ei.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Rt.literal,value:"<"+n+"/>",location:li(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;e=r.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ci(this.char()))return this.error(Nt.INVALID_TAG,li(t,this.clonePosition()));r=this.clonePosition();return n!==this.parseTagName()?this.error(Nt.UNMATCHED_CLOSING_TAG,li(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rt.tag,value:n,children:e,location:li(i,this.clonePosition())},err:null}:this.error(Nt.INVALID_TAG,li(t,this.clonePosition())))}return this.error(Nt.UNCLOSED_TAG,li(i,this.clonePosition()))}return this.error(Nt.INVALID_TAG,li(i,this.clonePosition()))},Ei.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())},Ei.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{r=this.tryParseUnquoted(e,t);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=li(i,this.clonePosition());return{val:{type:Rt.literal,value:n,location:i},err:null}},Ei.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ci(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ei.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 i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return yi.apply(void 0,t)},Ei.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),yi(i))},Ei.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Nt.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Nt.EMPTY_ARGUMENT,li(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Nt.MALFORMED_ARGUMENT,li(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Nt.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rt.argument,value:n,location:li(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Nt.EXPECT_ARGUMENT_CLOSING_BRACE,li(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(Nt.MALFORMED_ARGUMENT,li(i,this.clonePosition()))}},Ei.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=pi(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:li(e,this.clonePosition())}},Ei.prototype.parseArgumentOptions=function(e,t,i,n){var r,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Nt.EXPECT_ARGUMENT_TYPE,li(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=bi(m.val)).length)return this.error(Nt.EXPECT_ARGUMENT_STYLE,li(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:li(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=li(n,this.clonePosition());if(l&&gi(null==l?void 0:l.style,"::",0)){u=_i(l.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?m:{val:{type:Rt.number,value:i,location:c,style:m.val},err:null};if(0===u.length)return this.error(Nt.EXPECT_DATE_TIME_SKELETON,c);var d={type:Yt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(Zt,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}};return{val:{type:"date"===a?Rt.date:Rt.time,value:i,location:c,style:d},err:null}}return{val:{type:"number"===a?Rt.number:"date"===a?Rt.date:Rt.time,value:i,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Nt.EXPECT_SELECT_ARGUMENT_OPTIONS,li(l,Ft({},l)));this.bumpSpace();var m,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Nt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,li(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(Nt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=m.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=li(n,this.clonePosition());return"select"===a?{val:{type:Rt.select,value:i,options:vi(c.val),location:h},err:null}:{val:{type:Rt.plural,value:i,options:vi(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Nt.INVALID_ARGUMENT_TYPE,li(o,s))}},Ei.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Nt.EXPECT_ARGUMENT_CLOSING_BRACE,li(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ei.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Nt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,li(i,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}},Ei.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,n=e.split(Jt).filter(function(e){return 0<e.length});i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:r})}return t}(e)}catch(e){return this.error(Nt.INVALID_NUMBER_SKELETON,t)}return{val:{type:Yt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?oi(i):{}},err:null}},Ei.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=li(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Nt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Nt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(r=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Nt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,li(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,i);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;o.push([s,{value:c.val,location:li(d,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?Nt.EXPECT_SELECT_ARGUMENT_SELECTOR:Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR,li(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(Nt.MISSING_OTHER_CLAUSE,li(this.clonePosition(),this.clonePosition())):{val:o,err:null}},Ei.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}n=li(n,this.clonePosition());return r?hi(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},Ei.prototype.offset=function(){return this.position.offset},Ei.prototype.isEOF=function(){return this.offset()===this.message.length},Ei.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ei.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=wi(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ei.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ei.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))},Ei.prototype.bumpIf=function(e){if(gi(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ei.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ei.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ei.prototype.bumpSpace=function(){for(;!this.isEOF()&&Li(this.char());)this.bump()},Ei.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ei);function Ei(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ci(e){return 97<=e&&e<=122||65<=e&&e<=90}function Li(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Mi(e,t){t=Ft({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i=new Ti(e,t).parse();if(i.err){e=SyntaxError(Nt[i.err.kind]);throw e.location=i.err.location,e.originalMessage=i.err.message,e}return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Bt(e)||Ht(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else $t(e)&&zt(e.style)||(Wt(e)||jt(e))&&qt(e.style)?delete e.style.location:Vt(e)&&i(e.children)})}(i.val),i.val}function Ai(e,t){var i=t&&t.cache?t.cache:Ri,n=t&&t.serializer?t.serializer:Pi;return(t&&t.strategy?t.strategy:function(e,t){return ki(e,this,1===e.length?Si:Di,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function Si(e,t,i,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Di(e,t,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function ki(e,t,i,n,r){return i.bind(t,e,n,r)}var Pi=function(){return JSON.stringify(arguments)};function Oi(){this.cache=Object.create(null)}Oi.prototype.has=function(e){return e in this.cache},Oi.prototype.get=function(e){return this.cache[e]},Oi.prototype.set=function(e,t){this.cache[e]=t};var Ni,Ri={create:function(){return new Oi}},Yi={variadic:function(e,t){return ki(e,this,Di,t.cache.create(),t.serializer)},monadic:function(e,t){return ki(e,this,Si,t.cache.create(),t.serializer)}};(e=Ni=Ni||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Fi,Ui,Gi,$i,Wi,ji=(Ot(Xi,Wi=Error),Xi.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Xi),Bi=(Ot(Zi,$i=ji),Zi),Hi=(Ot(qi,Gi=ji),qi),Vi=(Ot(zi,Ui=ji),zi);function zi(e,t){return Ui.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Ni.MISSING_VALUE,t)||this}function qi(e,t,i){return Gi.call(this,'Value for "'+e+'" must be of type '+t,Ni.INVALID_VALUE,i)||this}function Zi(e,t,i,n){return $i.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(i).join('", "')+'"',Ni.INVALID_VALUE,n)||this}function Xi(e,t,i){e=Wi.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function Ji(e,t,i,n,r,o,a){if(1===e.length&&Gt(e[0]))return[{type:Fi.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Gt(c))s.push({type:Fi.literal,value:c.value});else if(c.type===Rt.pound)"number"==typeof o&&s.push({type:Fi.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!(r&&d in r))throw new Vi(d,a);var m=r[d];if(c.type===Rt.argument)m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),s.push({type:"string"==typeof m?Fi.literal:Fi.object,value:m});else if(Wt(c)){var h="string"==typeof c.style?n.date[c.style]:qt(c.style)?c.style.parsedOptions:void 0;s.push({type:Fi.literal,value:i.getDateTimeFormat(t,h).format(m)})}else if(jt(c))h="string"==typeof c.style?n.time[c.style]:qt(c.style)?c.style.parsedOptions:void 0,s.push({type:Fi.literal,value:i.getDateTimeFormat(t,h).format(m)});else if($t(c))(h="string"==typeof c.style?n.number[c.style]:zt(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(m*=h.scale||1),s.push({type:Fi.literal,value:i.getNumberFormat(t,h).format(m)});else{if(Vt(c)){var f=c.children,p=c.value,d=r[p];if("function"!=typeof d)throw new Hi(p,"function",a);f=d(Ji(f,t,i,n,r,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?Fi.literal:Fi.object,value:e}}))}if(Bt(c)){if(!(g=c.options[m]||c.options.other))throw new Bi(c.value,m,Object.keys(c.options),a);s.push.apply(s,Ji(g.value,t,i,n,r))}else if(Ht(c)){if(!(g=c.options["="+m])){if(!Intl.PluralRules)throw new ji('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ni.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Bi(c.value,m,Object.keys(c.options),a);s.push.apply(s,Ji(g.value,t,i,n,r,m-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===Fi.literal&&t.type===Fi.literal?i.value+=t.value:e.push(t),e},[])}function Ki(i){return{create:function(){return{has:function(e){return e in i},get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(e=Fi=Fi||{})[e.literal=0]="literal",e[e.object=1]="object";var Qi=(Object.defineProperty(en,"defaultLocale",{get:function(){return en.memoizedDefaultLocale||(en.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),en.memoizedDefaultLocale},enumerable:!1,configurable:!0}),en.memoizedDefaultLocale=null,en.__parse=Mi,en.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"}}},en);function en(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=en.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Fi.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 Ji(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!en.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=en.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(r=en.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?Ft(Ft(Ft({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=Ft(Ft({},i[t]),n[t]||{}),e},{})):i),e},Ft({},r)):r),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Ai(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Ut([void 0],t)))},{cache:Ki((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Yi.variadic}),getDateTimeFormat:Ai(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Ut([void 0],t)))},{cache:Ki(n.dateTime),strategy:Yi.variadic}),getPluralRules:Ai(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Ut([void 0],t)))},{cache:Ki(n.pluralRules),strategy:Yi.variadic})}}const tn={},nn=(t,i)=>{if(null!=i){if(i in tn&&t in tn[i])return tn[i][t];var n,r,o=wn(i);for(let e=0;e<o.length;e++){var a=(n=o[e],r=t,an(n)?function(e,t){if(t in e)return e[t];const i=t.split(".");let n=e;for(let e=0;e<i.length;e++)if("object"==typeof n){if(0<e){const t=i.slice(e,i.length).join(".");if(t in n){n=n[t];break}}n=n[i[e]]}else n=void 0;return n}(function(e){return rn[e]||null}(n),r):null);if(a)return n=t,r=i,(a=a)&&(r in tn||(tn[r]={}),n in tn[r]||(tn[r][n]=a),a)}}};let rn;const on=xt({});function an(e){return e in rn}function sn(t,...i){delete tn[t],on.update(e=>(e[t]=kt.all([e[t]||{},...i]),e))}Tt([on],([e])=>Object.keys(e)),on.subscribe(e=>rn=e);const ln={};function un(e){return ln[e]}function cn(e){return wn(e).some(e=>{return null===(e=un(e))||void 0===e?void 0:e.size})}const dn={};function mn(e){if(!cn(e))return e in dn?dn[e]:void 0;const t=wn(e).map(e=>{var t=un(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return dn[e]=Promise.all(t.map(([e,i])=>function(t){return Promise.all(i.map(e=>(function(e,t){ln[e].delete(t),0===ln[e].size&&delete ln[e]}(t,e),e().then(e=>e.default||e)))).then(e=>sn(t,...e))}(e))).then(()=>cn(e)?mn(e):void delete dn[e]),dn[e]}function hn(e,t){var i={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}const fn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const pn=xt(!1);let gn;const yn=xt(null);function vn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function wn(e,t=fn.fallbackLocale){e=vn(e);return t?[...new Set([...e,...vn(t)])]:e}yn.subscribe(e=>{gn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const _n=yn.set;yn.set=t=>{if(function(e){if(null!=e){var t=wn(e);for(let e=0;e<t.length;e++){var i=t[e];if(an(i))return i}}}(t)&&cn(t)){var{loadingDelay:i}=fn;let e;return"undefined"!=typeof window&&null!=gn&&i?e=window.setTimeout(()=>pn.set(!0),i):pn.set(!0),mn(t).then(()=>{_n(t)}).finally(()=>{clearTimeout(e),pn.set(!1)})}return _n(t)},yn.update=e=>_n(e(gn));const bn=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},xn=(e,t)=>{var{formats:i}=fn;if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tn=bn(e=>{var{locale:t,format:i}=e,e=hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=xn("number",i)),new Intl.NumberFormat(t,e)}),En=bn(e=>{var{locale:t,format:i}=e,e=hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=xn("date",i):0===Object.keys(e).length&&(e=xn("date","short")),new Intl.DateTimeFormat(t,e)}),Cn=bn(e=>{var{locale:t,format:i}=e,e=hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=xn("time",i):0===Object.keys(e).length&&(e=xn("time","short")),new Intl.DateTimeFormat(t,e)}),Ln=bn((e,t=gn)=>new Qi(e,t,fn.formats,{ignoreTag:fn.ignoreTag})),Mn=Tt([yn,on],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:i,locale:n=gn,default:r}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=nn(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else fn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${wn(n).join('", "')}".${cn(gn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=r||e;if(!i)return o;let a=o;try{a=Ln(o,n).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});Tt([yn],()=>(e,t)=>((e={})=>{var{locale:t=gn}=e,e=hn(e,["locale"]);return Cn(Object.assign({locale:t},e))})(t).format(e)),Tt([yn],()=>(e,t)=>((e={})=>{var{locale:t=gn}=e,e=hn(e,["locale"]);return En(Object.assign({locale:t},e))})(t).format(e)),Tt([yn],()=>(e,t)=>((e={})=>{var{locale:t=gn}=e,e=hn(e,["locale"]);return Tn(Object.assign({locale:t},e))})(t).format(e)),Tt([yn,on],()=>(e,t=gn)=>nn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==wt.indexOf(e)&&(t=new pt(t),_t[e]=t,wt.push(e)),_t[e]}};const An=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",Sn={en:{gamingLimits:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}},ro:{gamingLimits:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"}},es:{gamingLimits:{returnToMenu:"Regresar al Menú",gamingLimitsText:"Límites del juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"}},pt:{gamingLimits:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"}}},In={en:{cardText:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"}},ro:{cardText:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"}},es:{cardText:{name:"Información",amountChanged:"Su límite ha cambiado o aumentado: {cantidad} {moneda}. Tendrás que esperar a la fecha de vencimiento para que tu nuevo límite entre en vigencia:",daily:"Diario",weekly:"Semanalmente",monthly:"Mensual",removeLimitText:"Está seguro de que desea eliminar {limit}?",removeLimitsText:"Está seguro de que desea eliminar todos los {limit}?",minutes:"Minutos",noLimit:"Sin limite",expirationDate:"Fecha de validez",notAvailable:"No disponible",edit:"Editar",removeLimits:"Eliminar límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de apuestas",lossLimitLower:"Límite de pérdida",time:"Tiempo",currency:"Moneda"}},pt:{cardText:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",removeLimitText:"Tem certeza de que deseja remover o {limite}??",removeLimitsText:"Tem certeza de que deseja remover todos os {limite}s??",minutes:"Minutos",noLimit:"Sem limite",expirationDate:"Data de Validade",notAvailable:"Não Disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",timeLimitLower:"Limite de tempo",depositLimitLower:"limite de depósito",wageringLimitLower:"limite de apostas",lossLimitLower:"limite de perda",time:"Tempo",currency:"Moeda"}}},Dn={en:{popupText:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt."}},ro:{popupText:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră. "}},es:{popupText:{name:"Información",amountChanged:"Su límite ha cambiado o aumentado: {cantidad} {moneda}. Tendrás que esperar a la fecha de vencimiento para que tu nuevo límite entre en vigencia:",defaultText:"Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual."}},pt:{popupText:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",defaultText:"Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar."}}};function kn(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g,y,v=i[3]("popupText.name")+"";function w(e){return e[0]?On:Pn}let _=w(i),b=_(i);return{c(){n=K("section"),r=K("div"),o=K("div"),a=K("div"),a.textContent="i",s=ee(),l=K("div"),u=Q(v),c=ee(),d=K("div"),d.innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',m=ee(),h=K("div"),b.c(),ne(a,"class","InfoCardPopupIcon"),ne(a,"part","InfoCardPopupIcon"),ne(l,"class","InfoCardPopupTitle"),ne(l,"part","InfoCardPopupTitle"),ne(d,"class","InfoCardPopupCloseButton"),ne(d,"part","InfoCardPopupCloseButton"),ne(o,"class","InfoCardPopupHeader"),ne(o,"part","InfoCardPopupHeader"),ne(h,"class","InfoCardPopupContentArea"),ne(h,"part","InfoCardPopupContentArea"),ne(r,"class",f="InfoCardPopupWrapper "+(i[4]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ne(r,"part",p="InfoCardPopupWrapper "+(i[4]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ne(n,"class",i[4]?"InfoCardPopupMobileModal":""),ne(n,"part",i[4]?"InfoCardPopupMobileModal":"")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(o,s),Z(o,l),Z(l,u),Z(o,c),Z(o,d),Z(r,m),Z(r,h),b.m(h,null),g||(y=te(d,"click",ie(i[5])),g=!0)},p(e,t){8&t&&v!==(v=e[3]("popupText.name")+"")&&oe(u,v),_===(_=w(e))&&b?b.p(e,t):(b.d(1),b=_(e),b&&(b.c(),b.m(h,null))),1&t&&f!==(f="InfoCardPopupWrapper "+(e[4]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ne(r,"class",f),1&t&&p!==(p="InfoCardPopupWrapper "+(e[4]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ne(r,"part",p)},d(e){e&&J(n),b.d(),g=!1,y()}}}function Pn(e){let i,n,r=e[3]("popupText.defaultText")+"";return{c(){i=K("p"),n=Q(r),ne(i,"class","InfoCardPopupContent"),ne(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){8&t&&r!==(r=e[3]("popupText.defaultText")+"")&&oe(n,r)},d(e){e&&J(i)}}}function On(e){let i,n,r=e[3]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=K("p"),n=Q(r),ne(i,"class","InfoCardPopupContent"),ne(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){11&t&&r!==(r=e[3]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&oe(n,r)},d(e){e&&J(i)}}}function Nn(e){let i,n=e[2]&&kn(e);return{c(){n&&n.c(),i=x(),this.c=z},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,[t]){e[2]?n?n.p(e,t):(n=kn(e),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:z,o:z,d(e){n&&n.d(e),e&&J(i)}}}function Rn(t,e,i){let n;N(t,Mn,e=>i(3,n=e));let{showpopup:r=""}=e,{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e;Object.keys(Dn).forEach(e=>{sn(e,Dn[e])});let l=!1,u=window.navigator.userAgent,c="PC"!==An(u);const d=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(2,l=!1)};return Y(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)})),t.$$set=e=>{"showpopup"in e&&i(6,r=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(7,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency)},t.$$.update=()=>{var e;192&t.$$.dirty&&r&&a&&(e=a,yn.set(e),o<0&&i(0,o="0"),i(2,l=r))},[o,s,l,n,c,()=>{i(2,l=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a]}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends H{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'}.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:''}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:\"\";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, #FD2839);fill:var(--emfe-w-color-secondary, #FD2839)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Rn,Nn,i,{showpopup:6,iteminfoamount:0,lang:7,playercurrency:1}),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency"]}get showpopup(){return this.$$.ctx[6]}set showpopup(e){this.$set({showpopup:e}),k()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$set({iteminfoamount:e}),k()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),k()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$set({playercurrency:e}),k()}});const Yn={en:{editText:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on ",invalidInputMessageLimit:"The amount needs to be between 0 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit \vto take effect"}},ro:{editText:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei ",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 0 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare."}},es:{editText:{back:"Volver a Límites del juego",limit:"Límite",amount:"Cantidad",noLimit:"Sin limite",changeLimitsText:"Estás seguro de que quieres cambiar los {limit}s?",success:"Sus límites de juego se han establecido correctamente.",remove:"Solicitaste la eliminación de este límite. Esto se aplicará en",invalidInputMessageLimit:"El valor debe estar entre 0 y 99.999.999",invalidInputMessageTime:"La cantidad de tiempo debe ser mayor que {1} y menor que {99999999} minutos",expirationDate:"Fecha de validez",save:"Guardar",changedLimitTextBefore:"Su límite ha sido modificado o aumentado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de vencimiento para que tu nuevo límite entre en vigencia."}},pt:{editText:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 0 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor"}}};var Fn,Un,Gn=(Un=Fn={path:void 0,exports:{},require:function(e,t){return Ii(null==t&&Fn.path)}},Fn.exports,Un.exports=function(){var e;function f(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(h(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function n(e,t){for(var i=[],n=0;n<e.length;++n)i.push(t(e[n],n));return i}function c(e,t){for(var i in t)h(t,i)&&(e[i]=t[i]);return h(t,"toString")&&(e.toString=t.toString),h(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,i,n){return St(e,t,i,n,!0).utc()}function p(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 m(e){if(null==e._isValid){var t=p(e),i=y.call(t.parsedDateParts,function(e){return null!=e}),i=!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&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=d(NaN);return null!=e?c(p(t),e):p(t).userInvalidated=!0,t}var y=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},v=f.momentProperties=[],t=!1;function w(e,t){var i,n,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),0<v.length)for(i=0;i<v.length;i++)o(r=t[n=v[i]])||(e[n]=r);return e}function _(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,f.updateOffset(this),t=!1)}function b(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function i(r,o){var a=!0;return c(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,r),a){for(var e,t,i=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])h(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}x(r+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var T={};function E(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),T[e]||(x(t),T[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e,t){var i,n=c({},e);for(i in t)h(t,i)&&(s(e[i])&&s(t[i])?(n[i]={},c(n[i],e[i]),c(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)h(e,i)&&!h(t,i)&&s(e[i])&&(n[i]=c({},n[i]));return n}function M(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var A=Object.keys||function(e){var t,i=[];for(t in e)h(e,t)&&i.push(t);return i};function S(e,t,i){var n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var I=/(\[[^\[]*\])|(\\)?([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,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},P={};function O(e,t,i,n){var r="string"==typeof n?function(){return this[n]()}:n;e&&(P[e]=r),t&&(P[t[0]]=function(){return S(r.apply(this,arguments),t[1],t[2])}),i&&(P[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=R(t,e.localeData()),k[t]=k[t]||function(n){for(var e,r=n.match(I),t=0,o=r.length;t<o;t++)P[r[t]]?r[t]=P[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=C(r[i])?r[i].call(e,n):r[i];return t}}(t),k[t](e)):e.localeData().invalidDate()}function R(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;0<=i&&D.test(e);)e=e.replace(D,n),D.lastIndex=0,--i;return e}var Y={};function F(e,t){var i=e.toLowerCase();Y[i]=Y[i+"s"]=Y[t]=e}function U(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function G(e){var t,i,n={};for(i in e)h(e,i)&&(t=U(i))&&(n[t]=e[i]);return n}var $={};function W(e,t){$[e]=t}function j(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?B(t):e}function V(t,i){return function(e){return null!=e?(q(this,t,e),f.updateOffset(this,i),this):z(this,t)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&j(e.year())&&1===e.month()&&29===e.date()?(i=H(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Ae(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var Z=/\d/,X=/\d\d/,J=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ae=/\d+/,se=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,i,n){fe[e]=C(i)?i:function(e,t){return e&&n?n:i}}function me(e,t){return h(fe,e)?fe[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={},pe={};function ge(e,i){var t,n=i;for("string"==typeof e&&(e=[e]),u(i)&&(n=function(e,t){t[i]=H(e)}),t=0;t<e.length;t++)pe[e[t]]=n}function ye(e,r){ge(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var ve,we=0,_e=1,be=2,xe=3,Te=4,Ee=5,Ce=6,Le=7,Me=8;function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var i,i=(t%(i=12)+i)%i;return e+=(t-i)/12,1==i?j(e)?29:28:31-i%7%2}ve=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),O("MMMM",0,0,function(e){return this.localeData().months(this,e)}),F("month","M"),W("month",8),de("M",ee),de("MM",ee,X),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[_e]=H(e)-1}),ge(["MMM","MMMM"],function(e,t,i,n){n=i._locale.monthsParse(e,n,i._strict);null!=n?t[_e]=n:p(i).invalidMonth=e});var Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ke=ce,Pe=ce;function Oe(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=H(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),Ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function Ne(e){return null!=e?(Oe(this,e),f.updateOffset(this,!0),this):z(this,"Month")}function Re(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],r=[],o=0;o<12;o++)t=d([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),r.sort(e),o=0;o<12;o++)i[o]=he(i[o]),n[o]=he(n[o]);for(o=0;o<24;o++)r[o]=he(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ye(e){return j(e)?366:365}O("Y",0,0,function(){var e=this.year();return e<=9999?S(e,4):"+"+e}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),F("year","y"),W("year",1),de("Y",se),de("YY",ee,X),de("YYYY",re,K),de("YYYYY",oe,Q),de("YYYYYY",oe,Q),ge(["YYYYY","YYYYYY"],we),ge("YYYY",function(e,t){t[we]=2===e.length?f.parseTwoDigitYear(e):H(e)}),ge("YY",function(e,t){t[we]=f.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[we]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return H(e)+(68<H(e)?1900:2e3)};var Fe=V("FullYear",!0);function Ue(e,t,i,n,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,o,a),s}function Ge(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 $e(e,t,i){i=7+t-i;return-(7+Ge(e,0,i).getUTCDay()-t)%7+i-1}function We(e,t,i,n,r){var o,r=1+7*(t-1)+(7+i-n)%7+$e(e,n,r),r=r<=0?Ye(o=e-1)+r:r>Ye(e)?(o=e+1,r-Ye(e)):(o=e,r);return{year:o,dayOfYear:r}}function je(e,t,i){var n,r,o=$e(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+Be(r=e.year()-1,t,i):o>Be(e.year(),t,i)?(n=o-Be(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function Be(e,t,i){var n=$e(e,t,i),i=$e(e+1,t,i);return(Ye(e)-n+i)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),W("week",5),W("isoWeek",5),de("w",ee),de("ww",ee,X),de("W",ee),de("WW",ee,X),ye(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=H(e)});function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("d",0,"do","day"),O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:p(i).invalidWeekday=e}),ye(["d","e","E"],function(e,t,i,n){t[n]=H(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,Xe=ce,Je=ce;function Ke(){function e(e,t){return t.length-e.length}for(var t,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=d([2e3,1]).day(l),t=he(this.weekdaysMin(n,"")),i=he(this.weekdaysShort(n,"")),n=he(this.weekdays(n,"")),r.push(t),o.push(i),a.push(n),s.push(t),s.push(i),s.push(n);r.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,Qe),O("k",["kk",2],0,function(){return this.hours()||24}),O("hmm",0,0,function(){return""+Qe.apply(this)+S(this.minutes(),2)}),O("hmmss",0,0,function(){return""+Qe.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),O("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),O("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),et("a",!0),et("A",!1),F("hour","h"),W("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,X),de("hh",ee,X),de("kk",ee,X),de("hmm",te),de("hmmss",ie),de("Hmm",te),de("Hmmss",ie),ge(["H","HH"],xe),ge(["k","kk"],function(e,t,i){e=H(e);t[xe]=24===e?0:e}),ge(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),ge(["h","hh"],function(e,t,i){t[xe]=H(e),p(i).bigHour=!0}),ge("hmm",function(e,t,i){var n=e.length-2;t[xe]=H(e.substr(0,n)),t[Te]=H(e.substr(n)),p(i).bigHour=!0}),ge("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[xe]=H(e.substr(0,n)),t[Te]=H(e.substr(n,2)),t[Ee]=H(e.substr(r)),p(i).bigHour=!0}),ge("Hmm",function(e,t,i){var n=e.length-2;t[xe]=H(e.substr(0,n)),t[Te]=H(e.substr(n))}),ge("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[xe]=H(e.substr(0,n)),t[Te]=H(e.substr(n,2)),t[Ee]=H(e.substr(r))});var it=V("Hours",!0);var nt,rt={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:Se,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:qe,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},ot={},at={};function st(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=st(e[o]).split("-")).length,i=(i=st(e[o+1]))?i.split("-"):null;0<t;){if(n=ut(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(r,i)>=t-1)break;t--}o++}return nt}function ut(t){var e;if(void 0===ot[t]&&Un&&Un.exports)try{e=nt._abbr,Ii(),ct(e)}catch(e){ot[t]=null}return ot[t]}function ct(e,t){return e&&((t=o(t)?mt(e):dt(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function dt(e,t){if(null===t)return delete ot[e],null;var i,n=rt;if(t.abbr=e,null!=ot[e])E("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."),n=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])n=ot[t.parentLocale]._config;else{if(null==(i=ut(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;n=i._config}return ot[e]=new M(L(n,t)),at[e]&&at[e].forEach(function(e){dt(e.name,e.config)}),ct(e),ot[e]}function mt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!a(e)){if(t=ut(e))return t;e=[e]}return lt(e)}function ht(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[_e]<0||11<t[_e]?_e:t[be]<1||t[be]>Ae(t[we],t[_e])?be:t[xe]<0||24<t[xe]||24===t[xe]&&(0!==t[Te]||0!==t[Ee]||0!==t[Ce])?xe:t[Te]<0||59<t[Te]?Te:t[Ee]<0||59<t[Ee]?Ee:t[Ce]<0||999<t[Ce]?Ce:-1,p(e)._overflowDayOfYear&&(t<we||be<t)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=Le),p(e)._overflowWeekday&&-1===t&&(t=Me),p(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],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,_t=/^(?:(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}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,i,n,r,o,a,s=e._i,l=ft.exec(s)||pt.exec(s);if(l){for(p(e).iso=!0,t=0,i=yt.length;t<i;t++)if(yt[t][1].exec(l[1])){r=yt[t][0],n=!1!==yt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,i=vt.length;t<i;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return e._isValid=!1}if(!n&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=r+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Tt(e,t,i,n,r,o){r=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ie.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&r.push(parseInt(o,10)),r}function Et(e){var t,i,n,r,o=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Tt(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],n=t,r=e,i&&ze.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(p(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(r=o[8],t=o[9],o=o[10],r?bt[r]:t?0:((t=parseInt(o,10))-(o=t%100))/100*60+o),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,i){return null!=e?e:null!=t?t:i}function Lt(e){var t,i,n,r,o,a,s,l,u,c,d,m,h=[];if(!e._d){for(d=e,m=new Date(f.now()),i=d._useUTC?[m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]:[m.getFullYear(),m.getMonth(),m.getDate()],e._w&&null==e._a[be]&&null==e._a[_e]&&(null!=(d=(r=e)._w).GG||null!=d.W||null!=d.E?(l=1,u=4,o=Ct(d.GG,r._a[we],je(It(),1,4).year),a=Ct(d.W,1),((s=Ct(d.E,1))<1||7<s)&&(c=!0)):(l=r._locale._week.dow,u=r._locale._week.doy,m=je(It(),l,u),o=Ct(d.gg,r._a[we],m.year),a=Ct(d.w,m.week),null!=d.d?((s=d.d)<0||6<s)&&(c=!0):null!=d.e?(s=d.e+l,(d.e<0||6<d.e)&&(c=!0)):s=l),a<1||a>Be(o,l,u)?p(r)._overflowWeeks=!0:null!=c?p(r)._overflowWeekday=!0:(u=We(o,a,s,l,u),r._a[we]=u.year,r._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(n=Ct(e._a[we],i[we]),(e._dayOfYear>Ye(n)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ge(n,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=h[t]=i[t];for(;t<7;t++)e._a[t]=h[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[Te]&&0===e._a[Ee]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Ge:Ue).apply(null,h),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(p(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],p(e).empty=!0;for(var t,i,n=""+e._i,r=n.length,o=0,a=R(e._f,e._locale).match(I)||[],s=0;s<a.length;s++)i=a[s],(t=(n.match(me(i,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&p(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),o+=t.length),P[i]?(t?p(e).empty=!1:p(e).unusedTokens.push(i),c=i,m=e,null!=(d=t)&&h(pe,c)&&pe[c](d,m._a,m,c)):e._strict&&!t&&p(e).unusedTokens.push(i);p(e).charsLeftOver=r-o,0<n.length&&p(e).unusedInput.push(n),e._a[xe]<=12&&!0===p(e).bigHour&&0<e._a[xe]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[xe]=(l=e._locale,u=e._a[xe],null==(r=e._meridiem)?u:null!=l.meridiemHour?l.meridiemHour(u,r):null!=l.isPM?((r=l.isPM(r))&&u<12&&(u+=12),u=r||12!==u?u:0):u),null!==(u=p(e).era)&&(e._a[we]=e._locale.erasConvertYear(u,e._a[we])),Lt(e),ht(e)}else Et(e);else xt(e);var l,u,c,d,m}function At(e){var t=e._i,i=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===i&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new _(ht(t)):(r(t)?e._d=t:a(i)?function(e){var t,i,n,r,o,a,s=!1;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<e._f.length;r++)o=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Mt(t),m(t)&&(a=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,s?o<n&&(n=o,i=t):(null==n||o<n||a)&&(n=o,i=t,a&&(s=!0));c(e,i||t)}(e):i?Mt(e):o(i=(t=e)._i)?t._d=new Date(f.now()):r(i)?t._d=new Date(i.valueOf()):"string"==typeof i?function(e){var t=wt.exec(e._i);null===t?(xt(e),!1===e._isValid&&(delete e._isValid,Et(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:f.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):a(i)?(t._a=n(i.slice(0),function(e){return parseInt(e,10)}),Lt(t)):s(i)?function(e){var t,i;e._d||(i=void 0===(t=G(e._i)).day?t.date:t.day,e._a=n([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Lt(e))}(t):u(i)?t._d=new Date(i):f.createFromInputFallback(t),m(e)||(e._d=null),e))}function St(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,(o=new _(ht(At(o=o))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function It(e,t,i,n){return St(e,t,i,n,!1)}f.createFromInputFallback=i("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":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};var Dt=i("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),kt=i("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Pt(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return It();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=G(e),i=t.year||0,n=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,i,n=!1;for(t in e)if(h(e,t)&&(-1===ve.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<Ot.length;++i)if(e[Ot[i]]){if(n)return!1;parseFloat(e[Ot[i]])!==H(e[Ot[i]])&&(n=!0)}return!0}(t),this._milliseconds=+e+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=mt(),this._bubble()}function Rt(e){return e instanceof Nt}function Yt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,i){O(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+S(~~(e/60),2)+i+S(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),de("Z",ue),de("ZZ",ue),ge(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Gt(ue,e)});var Ut=/([\+\-]|\d\d)/gi;function Gt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ut)||["-",0,0])[1]+H(e[2]))?0:"+"===e[0]?t:-t}function $t(e,t){var i;return t._isUTC?(i=t.clone(),t=(b(e)||r(e)?e:It(e)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+t),f.updateOffset(i,!1),i):It(e).local()}function Wt(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var i,n,r=e,o=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(o=Bt.exec(e))?(i="-"===o[1]?-1:1,r={y:0,d:H(o[be])*i,h:H(o[xe])*i,m:H(o[Te])*i,s:H(o[Ee])*i,ms:H(Yt(1e3*o[Ce]))*i}):(o=Ht.exec(e))?(i="-"===o[1]?-1:1,r={y:zt(o[2],i),M:zt(o[3],i),w:zt(o[4],i),d:zt(o[5],i),h:zt(o[6],i),m:zt(o[7],i),s:zt(o[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=It(r.from),i=It(r.to),n=o.isValid()&&i.isValid()?(i=$t(i,o),o.isBefore(i)?n=qt(o,i):((n=qt(i,o)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=n.milliseconds,r.M=n.months),r=new Nt(r),Rt(e)&&h(e,"_locale")&&(r._locale=e._locale),Rt(e)&&h(e,"_isValid")&&(r._isValid=e._isValid),r}function zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function qt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Zt(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(E(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),Xt(this,Vt(e,t),n),this}}function Xt(e,t,i,n){var r=t._milliseconds,o=Yt(t._days),t=Yt(t._months);e.isValid()&&(n=null==n||n,t&&Oe(e,z(e,"Month")+t*i),o&&q(e,"Date",z(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n&&f.updateOffset(e,o||t))}Vt.fn=Nt.prototype,Vt.invalid=function(){return Vt(NaN)};var Jt=Zt(1,"add"),ce=Zt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Qt(e){return b(e)||r(e)||Kt(e)||u(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!u(e)&&Kt(t)}).length),i&&n)||function(e){var t,i,n=s(e)&&!l(e),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)i=o[t],r=r||h(e,i);return n&&r}(e)||null==e;var t,i,n}function ei(e,t){if(e.date()<t.date())return-ei(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function ti(e){return void 0===e?this._locale._abbr:(null!=(e=mt(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=i("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 ii(){return this._locale}var ni=126227808e5;function ri(e,t){return(e%t+t)%t}function oi(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ni:new Date(e,t,i).valueOf()}function ai(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ni:Date.UTC(e,t,i)}function si(e,t){return t.erasAbbrRegex(e)}function li(){for(var e=[],t=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(he(r[o].name)),e.push(he(r[o].abbr)),i.push(he(r[o].narrow)),n.push(he(r[o].name)),n.push(he(r[o].abbr)),n.push(he(r[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ui(e,t){O(0,[e,e.length],0,t)}function ci(e,t,i,n,r){var o;return null==e?je(this,n,r).year:(t>(o=Be(e,n,r))&&(t=o),function(e,t,i,n,r){r=We(e,t,i,n,r),r=Ge(r.year,0,r.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,i,n,r))}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),de("N",si),de("NN",si),de("NNN",si),de("NNNN",function(e,t){return t.erasNameRegex(e)}),de("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){n=i._locale.erasParse(e,n,i._strict);n?p(i).era=n:p(i).invalidEra=e}),de("y",ae),de("yy",ae),de("yyy",ae),de("yyyy",ae),de("yo",function(e,t){return t._eraYearOrdinalRegex||ae}),ge(["y","yy","yyy","yyyy"],we),ge(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[we]=i._locale.eraYearOrdinalParse(e,r):t[we]=parseInt(e,10)}),O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ui("gggg","weekYear"),ui("ggggg","weekYear"),ui("GGGG","isoWeekYear"),ui("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),de("G",se),de("g",se),de("GG",ee,X),de("gg",ee,X),de("GGGG",re,K),de("gggg",re,K),de("GGGGG",oe,Q),de("ggggg",oe,Q),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=H(e)}),ye(["gg","GG"],function(e,t,i,n){t[n]=f.parseTwoDigitYear(e)}),O("Q",0,"Qo","quarter"),F("quarter","Q"),W("quarter",7),de("Q",Z),ge("Q",function(e,t){t[_e]=3*(H(e)-1)}),O("D",["DD",2],"Do","date"),F("date","D"),W("date",9),de("D",ee),de("DD",ee,X),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],be),ge("Do",function(e,t){t[be]=H(e.match(ee)[0])});ie=V("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),W("dayOfYear",4),de("DDD",ne),de("DDDD",J),ge(["DDD","DDDD"],function(e,t,i){i._dayOfYear=H(e)}),O("m",["mm",2],0,"minute"),F("minute","m"),W("minute",14),de("m",ee),de("mm",ee,X),ge(["m","mm"],Te);Se=V("Minutes",!1);O("s",["ss",2],0,"second"),F("second","s"),W("second",15),de("s",ee),de("ss",ee,X),ge(["s","ss"],Ee);var di,Ve=V("Seconds",!1);for(O("S",0,0,function(){return~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return 10*this.millisecond()}),O(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),O(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),O(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),O(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),O(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),W("millisecond",16),de("S",ne,Z),de("SS",ne,X),de("SSS",ne,J),di="SSSS";di.length<=9;di+="S")de(di,ae);function mi(e,t){t[Ce]=H(1e3*("0."+e))}for(di="S";di.length<=9;di+="S")ge(di,mi);qe=V("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");re=_.prototype;function hi(e){return e}re.add=Jt,re.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=s(e)&&!l(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||h(e,n[r]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var i=e||It(),e=$t(i,this).startOf("day"),e=f.calendarFormat(this,e)||"sameElse",t=t&&(C(t[e])?t[e].call(this,i):t[e]);return this.format(t||this.localeData().calendar(e,this,It(i)))},re.clone=function(){return new _(this)},re.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=$t(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=ei(this,n)/12;break;case"month":o=ei(this,n);break;case"quarter":o=ei(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:B(o)},re.endOf=function(e){var t,i;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ai:oi,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ri(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ri(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ri(t,1e3)-1}return this._d.setTime(t),f.updateOffset(this,!0),this},re.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=N(this,e),this.localeData().postformat(e)},re.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||It(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},re.fromNow=function(e){return this.from(It(),e)},re.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||It(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},re.toNow=function(e){return this.to(It(),e)},re.get=function(e){return C(this[e=U(e)])?this[e]():this},re.invalidAt=function(){return p(this).overflow},re.isAfter=function(e,t){return e=b(e)?e:It(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},re.isBefore=function(e,t){return e=b(e)?e:It(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},re.isBetween=function(e,t,i,n){return e=b(e)?e:It(e),t=b(t)?t:It(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},re.isSame=function(e,t){var e=b(e)?e:It(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},re.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},re.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},re.isValid=function(){return m(this)},re.lang=te,re.locale=ti,re.localeData=ii,re.max=kt,re.min=Dt,re.parsingFlags=function(){return c({},p(this))},re.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)h(e,t)&&i.push({unit:t,priority:$[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=G(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(C(this[e=U(e)]))return this[e](t);return this},re.startOf=function(e){var t,i;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ai:oi,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ri(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ri(t,6e4);break;case"second":t=this._d.valueOf(),t-=ri(t,1e3)}return this._d.setTime(t),f.updateOffset(this,!0),this},re.subtract=ce,re.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},re.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()}},re.toDate=function(){return new Date(this.valueOf())},re.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?N(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(e,"Z")):N(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},re.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",i="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},re.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},re.eraName=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},re.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},re.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},re.eraYear=function(){for(var e,t,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(e=i[n].since<=i[n].until?1:-1,t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return(this.year()-f(i[n].since).year())*e+i[n].offset;return this.year()},re.year=Fe,re.isLeapYear=function(){return j(this.year())},re.weekYear=function(e){return ci.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},re.isoWeekYear=function(e){return ci.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},re.quarter=re.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},re.month=Ne,re.daysInMonth=function(){return Ae(this.year(),this.month())},re.week=re.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},re.isoWeek=re.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},re.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},re.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},re.isoWeeksInYear=function(){return Be(this.year(),1,4)},re.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},re.date=ie,re.day=re.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},re.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")},re.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},re.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")},re.hour=re.hours=it,re.minute=re.minutes=Se,re.second=re.seconds=Ve,re.millisecond=re.milliseconds=qe,re.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Wt(this);if("string"==typeof e){if(null===(e=Gt(ue,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Wt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Xt(this,Vt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},re.utc=function(e){return this.utcOffset(0,e)},re.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},re.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Gt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},re.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60==0)},re.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},re.isLocal=function(){return!!this.isValid()&&!this._isUTC},re.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},re.isUtc=jt,re.isUTC=jt,re.zoneAbbr=function(){return this._isUTC?"UTC":""},re.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},re.dates=i("dates accessor is deprecated. Use date instead.",ie),re.months=i("months accessor is deprecated. Use month instead",Ne),re.years=i("years accessor is deprecated. Use year instead",Fe),re.zone=i("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()}),re.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=At(t))._a?(e=(t._isUTC?d:It)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<n;a++)(i&&e[a]!==t[a]||!i&&H(e[a])!==H(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=M.prototype;function fi(e,t,i,n){var r=mt(),t=d().set(n,t);return r[i](t,e)}function pi(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fi(e,t,i,"month");for(var n=[],r=0;r<12;r++)n[r]=fi(e,r,i,"month");return n}function gi(e,t,i,n){t=("boolean"==typeof e||(i=t=e,e=!1),u(t)&&(i=t,t=void 0),t||"");var r,o=mt(),a=e?o._week.dow:0,s=[];if(null!=i)return fi(t,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=fi(t,(r+a)%7,n,"day");return s}K.calendar=function(e,t,i){return C(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=hi,K.postformat=hi,K.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return C(r)?r(e,t,i,n):r.replace(/%d/i,e)},K.pastFuture=function(e,t){return C(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,i;for(i in e)h(e,i)&&(C(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,t){for(var i,n=this._eras||mt("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=f(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=f(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},K.erasParse=function(e,t,i){var n,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if(0<=[o,a,s].indexOf(e))return l[n]},K.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*i},K.erasAbbrRegex=function(e){return h(this,"_erasAbbrRegex")||li.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return h(this,"_erasNameRegex")||li.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return h(this,"_erasNarrowRegex")||li.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[De.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,i){var n,r;if(this._monthsParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=ve.call(this._shortMonthsParse,e))?r:null:-1!==(r=ve.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=ve.call(this._shortMonthsParse,e))||-1!==(r=ve.call(this._longMonthsParse,e))?r:null:-1!==(r=ve.call(this._longMonthsParse,e))||-1!==(r=ve.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},K.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=ke),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return je(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?He(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,i){var n,r;if(this._weekdaysParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=ve.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=ve.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=ve.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=ve.call(this._weekdaysParse,e))||-1!==(r=ve.call(this._shortWeekdaysParse,e))||-1!==(r=ve.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=ve.call(this._shortWeekdaysParse,e))||-1!==(r=ve.call(this._weekdaysParse,e))||-1!==(r=ve.call(this._minWeekdaysParse,e))?r:null:-1!==(r=ve.call(this._minWeekdaysParse,e))||-1!==(r=ve.call(this._weekdaysParse,e))||-1!==(r=ve.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ct("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=i("moment.lang is deprecated. Use moment.locale instead.",ct),f.langData=i("moment.langData is deprecated. Use moment.localeData instead.",mt);var yi=Math.abs;function vi(e,t,i,n){i=Vt(t,i);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function wi(e){return e<0?Math.floor(e):Math.ceil(e)}function _i(e){return 4800*e/146097}function bi(e){return 146097*e/4800}function xi(e){return function(){return this.as(e)}}oe=xi("ms"),Q=xi("s"),Z=xi("m"),X=xi("h"),ne=xi("d"),J=xi("w"),Jt=xi("M"),kt=xi("Q"),Dt=xi("y");function Ti(e){return function(){return this.isValid()?this._data[e]:NaN}}ce=Ti("milliseconds"),it=Ti("seconds"),Se=Ti("minutes"),Ve=Ti("hours"),qe=Ti("days"),ie=Ti("months"),Fe=Ti("years");var Ei=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Li(e,t,i,n){var r=Vt(e).abs(),o=Ei(r.as("s")),a=Ei(r.as("m")),s=Ei(r.as("h")),l=Ei(r.as("d")),u=Ei(r.as("M")),c=Ei(r.as("w")),r=Ei(r.as("y")),l=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||a<=1&&["m"]||a<i.m&&["mm",a]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return(l=(l=null!=i.w?l||c<=1&&["w"]||c<i.w&&["ww",c]:l)||u<=1&&["M"]||u<i.M&&["MM",u]||r<=1&&["y"]||["yy",r])[2]=t,l[3]=0<+e,l[4]=n,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,l)}var Mi=Math.abs;function Ai(e){return(0<e)-(e<0)||+e}function Si(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,o,a,s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),c=this.asSeconds();return c?(e=B(s/60),t=B(e/60),s%=60,e%=60,i=B(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(c)?"-":"",o=Ai(this._days)!==Ai(c)?"-":"",a=Ai(this._milliseconds)!==Ai(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"}K=Nt.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=yi(this._milliseconds),this._days=yi(this._days),this._months=yi(this._months),e.milliseconds=yi(e.milliseconds),e.seconds=yi(e.seconds),e.minutes=yi(e.minutes),e.hours=yi(e.hours),e.months=yi(e.months),e.years=yi(e.years),this},K.add=function(e,t){return vi(this,e,t,1)},K.subtract=function(e,t){return vi(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+_i(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(bi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},K.asMilliseconds=oe,K.asSeconds=Q,K.asMinutes=Z,K.asHours=X,K.asDays=ne,K.asWeeks=J,K.asMonths=Jt,K.asQuarters=kt,K.asYears=Dt,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},K._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*wi(bi(i)+t),i=t=0),n.milliseconds=e%1e3,e=B(e/1e3),n.seconds=e%60,e=B(e/60),n.minutes=e%60,e=B(e/60),n.hours=e%24,t+=B(e/24),i+=e=B(_i(t)),t-=wi(bi(e)),e=B(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},K.clone=function(){return Vt(this)},K.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=ce,K.seconds=it,K.minutes=Se,K.hours=Ve,K.days=qe,K.weeks=function(){return B(this.days()/7)},K.months=ie,K.years=Fe,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=Ci;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ci,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),n=Li(this,!i,n,t=this.localeData()),i&&(n=t.pastFuture(+this,n)),t.postformat(n)},K.toISOString=Si,K.toString=Si,K.toJSON=Si,K.locale=ti,K.localeData=ii,K.toIsoString=i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Si),K.lang=te,O("X",0,0,"unix"),O("x",0,0,"valueOf"),de("x",se),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,i){i._d=new Date(H(e))}),f.version="2.29.1",e=It,f.fn=re,f.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=d,f.unix=function(e){return It(1e3*e)},f.months=function(e,t){return pi(e,t,"months")},f.isDate=r,f.locale=ct,f.invalid=g,f.duration=Vt,f.isMoment=b,f.weekdays=function(e,t,i){return gi(e,t,i,"weekdays")},f.parseZone=function(){return It.apply(null,arguments).parseZone()},f.localeData=mt,f.isDuration=Rt,f.monthsShort=function(e,t){return pi(e,t,"monthsShort")},f.weekdaysMin=function(e,t,i){return gi(e,t,i,"weekdaysMin")},f.defineLocale=dt,f.updateLocale=function(e,t){var i,n;return null!=t?(n=rt,null!=ot[e]&&null!=ot[e].parentLocale?ot[e].set(L(ot[e]._config,t)):(t=L(n=null!=(i=ut(e))?i._config:n,t),null==i&&(t.abbr=e),(t=new M(t)).parentLocale=ot[e],ot[e]=t),ct(e)):null!=ot[e]&&(null!=ot[e].parentLocale?(ot[e]=ot[e].parentLocale,e===ct()&&ct(e)):null!=ot[e]&&delete ot[e]),ot[e]},f.locales=function(){return A(ot)},f.weekdaysShort=function(e,t,i){return gi(e,t,i,"weekdaysShort")},f.normalizeUnits=U,f.relativeTimeRounding=function(e){return void 0===e?Ei:"function"==typeof e&&(Ei=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==Ci[e]&&(void 0===t?Ci[e]:(Ci[e]=t,"s"===e&&(Ci.ss=t-1),!0))},f.calendarFormat=function(e,t){return(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},f.prototype=re,f.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"},f}(),Fn.exports);function $n(e,{delay:t=0,duration:i=400,easing:n=p}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function Wn(i){let n,t,r;return{c(){n=K("div"),n.innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',ne(n,"class","ModalWindow"),ne(n,"part","ModalWindow"),ne(n,"id","Modal")},m(e,t){X(e,n,t),i[3](n),r=!0},p(e,t){i=e},i(e){r||(I(()=>{t=t||j(n,$n,{transitionDuration:i[1]},!0),t.run(1)}),r=!0)},o(e){t=t||j(n,$n,{transitionDuration:i[1]},!1),t.run(0),r=!1},d(e){e&&J(n),i[3](null),e&&t&&t.end()}}}function jn(e){let i,n,r=e[0]&&Wn(e);return{c(){i=K("div"),r&&r.c(),this.c=z},m(e,t){X(e,i,t),r&&r.m(i,null),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&G(r,1)):(r=Wn(e),r.c(),G(r,1),r.m(i,null)):r&&(U={r:0,c:[],p:U},$(r,1,1,()=>{r=null}),U.r||q(U.c),U=U.p)},i(e){n||(G(r),n=!0)},o(e){$(r),n=!1},d(e){e&&J(i),r&&r.d()}}}function Bn(e,t,i){let n,{show:r=!1}=t,{duration:o=350}=t;const a=e=>{"ModalClosed"==e.data.type&&i(0,r=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return Y(()=>(window.addEventListener("message",a,!1),()=>{window.removeEventListener("message",a)})),e.$$set=e=>{"show"in e&&i(0,r=e.show),"duration"in e&&i(1,o=e.duration)},[r,o,void 0,function(e){s[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends H{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'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Bn,jn,i,{show:0,duration:1}),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["show","duration"]}get show(){return this.$$.ctx[0]}set show(e){this.$set({show:e}),k()}get duration(){return this.$$.ctx[1]}set duration(e){this.$set({duration:e}),k()}});const Hn={en:{modalText:{cancel:"Cancel",confirm:"Confirm"}},ro:{modalText:{cancel:"Anulează",confirm:"Confirmă"}},es:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}},pt:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}}};function Vn(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g,y=i[1]("modalText.cancel")+"",v=i[1]("modalText.confirm")+"",w=!i[2]&&function(i){let n,r,o;return{c(){n=K("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',ne(n,"class","ModalCloseBtn"),ne(n,"part","ModalCloseBtn"),ne(n,"role","button")},m(e,t){X(e,n,t),r||(o=te(n,"click",i[3]),r=!0)},p:z,d(e){e&&J(n),r=!1,o()}}}(i);return{c(){n=K("div"),w&&w.c(),r=ee(),o=K("div"),a=K("div"),s=Q(i[0]),l=ee(),u=K("div"),c=K("button"),d=Q(y),m=ee(),h=K("button"),f=Q(v),this.c=z,ne(a,"class","GamingLimitsConfirmationContent"),ne(a,"part","GamingLimitsConfirmationContent"),ne(c,"class","GamingLimitsCancelButton"),ne(c,"part","GamingLimitsCancelButton"),ne(h,"class","GamingLimitsConfirmButton"),ne(h,"part","GamingLimitsConfirmButton"),ne(u,"class","GamingLimitsConfirmationControlArea"),ne(u,"part","GamingLimitsConfirmationControlArea"),ne(o,"class","GamingLimitsConfirmationContainer "+(i[2]?"GamingLimitsConfirmationContainerMobile":"")),ne(o,"part","GamingLimitsConfirmationContainer "+(i[2]?"GamingLimitsConfirmationContainerMobile":"")),ne(n,"class","GamingLimitsConfirmationWrapper "+(i[2]?"GamingLimitsConfirmationMobileWrapper":"")),ne(n,"part","GamingLimitsConfirmationWrapper "+(i[2]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){X(e,n,t),w&&w.m(n,null),Z(n,r),Z(n,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(c,d),Z(u,m),Z(u,h),Z(h,f),p||(g=[te(c,"click",i[5]),te(h,"click",i[4])],p=!0)},p(e,[t]){e[2]||w.p(e,t),1&t&&oe(s,e[0]),2&t&&y!==(y=e[1]("modalText.cancel")+"")&&oe(d,y),2&t&&v!==(v=e[1]("modalText.confirm")+"")&&oe(f,v)},i:z,o:z,d(e){e&&J(n),w&&w.d(),p=!1,q(g)}}}function zn(t,e,i){let n;N(t,Mn,e=>i(1,n=e));let{modaltext:r="Are you sure that you want to perform this action?"}=e,{modalsource:o=""}=e,{lang:a="en"}=e;Object.keys(Hn).forEach(e=>{sn(e,Hn[e])});let s=window.navigator.userAgent,l="PC"!==An(s),u={},c="";const d=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(u=e.data.removeData,e=e.data.removeName,c="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};Y(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));return t.$$set=e=>{"modaltext"in e&&i(0,r=e.modaltext),"modalsource"in e&&i(6,o=e.modalsource),"lang"in e&&i(7,a=e.lang)},t.$$.update=()=>{var e;193&t.$$.dirty&&r&&o&&a&&(e=a,yn.set(e))},[r,n,l,()=>{window.postMessage({type:"ModalClosed"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:u,name:c},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a]}function qn(e,t,i){const n=e.slice();return n[44]=t[i],n[45]=t,n[46]=i,n}function Zn(e,t,i){const n=e.slice();return n[47]=t[i],n}function Xn(e,t,i){const n=e.slice();return n[44]=t[i],n[46]=i,n}function Jn(e){let i,n,r,o=e[16]("editText.success")+"";return{c(){i=K("div"),n=K("p"),r=Q(o),ne(i,"class","AccountEditLimitSuccessfulChangeContainer"),ne(i,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(n,r)},p(e,t){65536&t[0]&&o!==(o=e[16]("editText.success")+"")&&oe(r,o)},d(e){e&&J(i)}}}function Kn(t){let r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=er(Xn(t,o,e));return{c(){r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();ne(r,"class","AccountEditLimitSuccessfulChangeContainer"),ne(r,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,r,t);for(let e=0;e<a.length;e+=1)a[e].m(r,null)},p(t,i){if(102400&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var n=Xn(t,o,e);a[e]?a[e].p(n,i):(a[e]=er(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&J(r),b(a,e)}}}function Qn(e){let i,n,r,o,a=e[16]("editText.remove")+"",s=(e[44].expiryDate?Gn(e[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("p"),n=Q(a),r=ee(),o=Q(s)},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o)},p(e,t){65536&t[0]&&a!==(a=e[16]("editText.remove")+"")&&oe(n,a),4096&t[0]&&s!==(s=(e[44].expiryDate?Gn(e[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&oe(o,s)},d(e){e&&J(i)}}}function er(e){let i,n=e[44].period==e[15][e[46]].periodName&&Qn(e);return{c(){n&&n.c(),i=x()},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,t){e[44].period==e[15][e[46]].periodName?n?n.p(e,t):(n=Qn(e),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&J(i)}}}function tr(t){let i,r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=cr(qn(t,o,e));return{c(){i=K("div"),r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();ne(r,"class","AccountEditLimitsContainer"),ne(r,"part","AccountEditLimitsContainer"),ne(i,"class","AccountEditContent"),ne(i,"part","AccountEditContent")},m(e,t){X(e,i,t),Z(i,r);for(let e=0;e<a.length;e+=1)a[e].m(r,null)},p(t,i){if(4709144&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var n=qn(t,o,e);a[e]?a[e].p(n,i):(a[e]=cr(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&J(i),b(a,e)}}}function ir(i){let n,r,o,a,s,l,u,c,d,m,h=i[16]("editText.noLimit")+"",f=i[18][i[46]].values,p=[];for(let e=0;e<f.length;e+=1)p[e]=nr(Zn(i,f,e));function g(){i[23].call(n,i[46])}let y="Custom"===i[15][i[46]].amount&&rr(i),v=!0===i[44].isModified&&ur(i);return{c(){n=K("select"),r=K("option"),o=Q(h);for(let e=0;e<p.length;e+=1)p[e].c();s=ee(),l=K("div"),y&&y.c(),u=ee(),v&&v.c(),c=x(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,ne(n,"class","AccountEditField "+(i[17]?"TimeoutSelectMobile":"")),ne(n,"part","AccountEditField "+(i[17]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[44].isModified,void 0===i[15][i[46]].amount&&I(g),ne(l,"class","AccountEditLimitsInputContainer"),ne(l,"part","AccountEditLimitsInputContainer")},m(e,t){X(e,n,t),Z(n,r),Z(r,o);for(let e=0;e<p.length;e+=1)p[e].m(n,null);T(n,i[15][i[46]].amount),X(e,s,t),X(e,l,t),y&&y.m(l,null),X(e,u,t),v&&v.m(e,t),X(e,c,t),d||(m=[te(n,"change",g),te(n,"change",function(){w(i[22](i[15][i[46]],i[46],!1,i[14]))&&i[22](i[15][i[46]],i[46],!1,i[14]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,65536&t[0]&&h!==(h=i[16]("editText.noLimit")+"")&&oe(o,h),262168&t[0]){let e;for(f=i[18][i[46]].values,e=0;e<f.length;e+=1){const o=Zn(i,f,e);p[e]?p[e].p(o,t):(p[e]=nr(o),p[e].c(),p[e].m(n,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=f.length}4096&t[0]&&a!==(a=!0===i[44].isModified)&&(n.disabled=a),294912&t[0]&&T(n,i[15][i[46]].amount),"Custom"===i[15][i[46]].amount?y?y.p(i,t):(y=rr(i),y.c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[44].isModified?v?v.p(i,t):(v=ur(i),v.c(),v.m(c.parentNode,c)):v&&(v.d(1),v=null)},d(e){e&&J(n),b(p,e),e&&J(s),e&&J(l),y&&y.d(),e&&J(u),v&&v.d(e),e&&J(c),d=!1,q(m)}}}function nr(e){let i,n,r,t=e[47]+"",o="No limit"!==e[47]&&"Custom"!==e[47]&&function(){let i,n=("Time Limit"!==e[3]?e[4]:" minutes")+"";return{c(){i=Q(n)},m(e,t){X(e,i,t)},p(e,t){24&t[0]&&n!==(n=("Time Limit"!==e[3]?e[4]:" minutes")+"")&&oe(i,n)},d(e){e&&J(i)}}}();return{c(){i=K("option"),n=Q(t),r=ee(),o&&o.c(),i.__value=e[47],i.value=i.__value},m(e,t){X(e,i,t),Z(i,n),Z(i,r),o&&o.m(i,null)},p(e,t){"No limit"!==e[47]&&"Custom"!==e[47]&&o.p(e,t)},d(e){e&&J(i),o&&o.d()}}}function rr(e){let i;function n(e){return"Deposit Limit"===e[3]?ar:or}let r=n(e),o=r(e);return{c(){o.c(),i=x()},m(e,t){o.m(e,t),X(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&J(i)}}}function or(i){let n,r,o,a,s,l;function u(){i[25].call(n,i[46])}let c=1==i[11][i[46]]&&sr(i);return{c(){n=K("input"),o=ee(),a=K("p"),c&&c.c(),ne(n,"type","number"),ne(n,"class","AccountEditField AccountEditFieldCustom"),ne(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[44].isModified,ne(a,"class","AccountEditWarningText"),ne(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),h(n,i[15][i[46]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[22](i[15][i[46]],i[46],!0,i[14]))&&i[22](i[15][i[46]],i[46],!0,i[14]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,4096&t[0]&&r!==(r=!0===i[44].isModified)&&(n.disabled=r),294912&t[0]&&R(n.value)!==i[15][i[46]].value&&h(n,i[15][i[46]].value),1==i[11][i[46]]?c?c.p(i,t):(c=sr(i),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&J(n),e&&J(o),e&&J(a),c&&c.d(),s=!1,q(l)}}}function ar(i){let n,r,o,a,s,l;function u(){i[24].call(n,i[46])}let c=1==i[11][i[46]]&&lr(i);return{c(){n=K("input"),o=ee(),a=K("p"),c&&c.c(),ne(n,"type","number"),ne(n,"class","AccountEditField AccountEditFieldCustom"),ne(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[44].isModified,ne(a,"class","AccountEditWarningText"),ne(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),h(n,i[15][i[46]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[22](i[15][i[46]],i[46],!1,i[14]))&&i[22](i[15][i[46]],i[46],!1,i[14]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,4096&t[0]&&r!==(r=!0===i[44].isModified)&&(n.disabled=r),294912&t[0]&&R(n.value)!==i[15][i[46]].value&&h(n,i[15][i[46]].value),1==i[11][i[46]]?c?c.p(i,t):(c=lr(i),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&J(n),e&&J(o),e&&J(a),c&&c.d(),s=!1,q(l)}}}function sr(e){let i,n,r=e[16]("editText.invalidInputMessageTime",{values:{minTime:e[8],maxTime:e[9]}})+"";return{c(){i=K("p"),n=Q(r),ne(i,"class","InvalidInput"),ne(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){66304&t[0]&&r!==(r=e[16]("editText.invalidInputMessageTime",{values:{minTime:e[8],maxTime:e[9]}})+"")&&oe(n,r)},d(e){e&&J(i)}}}function lr(e){let i,n,r=e[16]("editText.invalidInputMessageLimit")+"";return{c(){i=K("p"),n=Q(r),ne(i,"class","InvalidInput"),ne(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){65536&t[0]&&r!==(r=e[16]("editText.invalidInputMessageLimit")+"")&&oe(n,r)},d(e){e&&J(i)}}}function ur(e){let i,n,r,o,a,s,l,u,c,d,m,h,f,p,g,y,v=e[16]("editText.expirationDate")+"",w=(e[44].expiryDate?Gn(e[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[16]("editText.changedLimitTextBefore")+"",b=(0<e[44].updateAmount?e[44].updateAmount:0)+"",x=(void 0!==e[44].minutes?" minutes":e[4])+"",T=e[16]("editText.changedLimitTextAfter")+"";return{c(){i=K("p"),n=Q(v),r=ee(),o=K("span"),a=Q(w),s=ee(),l=K("div"),u=K("p"),c=K("span"),c.textContent="i",d=K("span"),m=Q(_),h=ee(),f=Q(b),p=ee(),g=Q(x),y=Q(T),ne(i,"class","AccountEditLimitsExpiryDate"),ne(i,"part","AccountEditLimitsExpiryDate"),ne(c,"class","AccountEditLimitChangePeriodIcon"),ne(c,"part","AccountEditLimitChangePeriodIcon"),ne(l,"class","AccountEditLimitsPeriodChangeContainer"),ne(l,"part","AccountEditLimitsPeriodChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o),Z(o,a),X(e,s,t),X(e,l,t),Z(l,u),Z(u,c),Z(u,d),Z(d,m),Z(d,h),Z(d,f),Z(d,p),Z(d,g),Z(d,y)},p(e,t){65536&t[0]&&v!==(v=e[16]("editText.expirationDate")+"")&&oe(n,v),4096&t[0]&&w!==(w=(e[44].expiryDate?Gn(e[44].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&oe(a,w),65536&t[0]&&_!==(_=e[16]("editText.changedLimitTextBefore")+"")&&oe(m,_),4096&t[0]&&b!==(b=(0<e[44].updateAmount?e[44].updateAmount:0)+"")&&oe(f,b),4112&t[0]&&x!==(x=(void 0!==e[44].minutes?" minutes":e[4])+"")&&oe(g,x),65536&t[0]&&T!==(T=e[16]("editText.changedLimitTextAfter")+"")&&oe(y,T)},d(e){e&&J(i),e&&J(s),e&&J(l)}}}function cr(e){let i,n,r,o,a,s=e[44].period+"",l=e[44].period==e[15][e[46]].periodName&&ir(e);return{c(){i=K("div"),n=K("p"),r=Q(s),o=ee(),l&&l.c(),a=ee(),ne(n,"class","AccountEditLimitsTitle"),ne(n,"part","AccountEditLimitsTitle"),ne(i,"class","AccountEditLimitsBox"),ne(i,"part","AccountEditLimitsBox")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(i,o),l&&l.m(i,null),Z(i,a)},p(e,t){4096&t[0]&&s!==(s=e[44].period+"")&&oe(r,s),e[44].period==e[15][e[46]].periodName?l?l.p(e,t):(l=ir(e),l.c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&J(i),l&&l.d()}}}function dr(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g,y,v,w,_,b,x,T,E,C,L,M,A,S,I,D,k,P,O,N,R,Y,F,U,G=i[16]("editText.back")+"",$=(i[0]?i[3]:"")+"",W=i[16]("editText.save")+"",j=i[17]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g=i[16]("editText.back")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),m=K("h2"),h=Q(g),ne(c,"class","aaa"),ne(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ne(c,"transform","translate(15 15) rotate(180)"),ne(u,"transform","translate(20 158)"),ne(l,"transform","translate(-20 -158)"),ne(r,"xmlns","http://www.w3.org/2000/svg"),ne(r,"width","15"),ne(r,"height","15"),ne(r,"viewBox","0 0 15 15"),ne(m,"class","MyAccountCategoryTitleMobile"),ne(m,"part","MyAccountCategoryTitleMobile"),ne(n,"class","MenuReturnButton"),ne(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,m),Z(m,h),f||(p=te(n,"click",i[20]),f=!0)},p(e,t){65536&t[0]&&g!==(g=e[16]("editText.back")+"")&&oe(h,g)},d(e){e&&J(n),f=!1,p()}}}(i),B=i[1]&&Jn(i),H=i[2]&&Kn(i),V=i[7]&&tr(i);return{c(){n=K("div"),j&&j.c(),r=ee(),o=K("div"),a=t("svg"),s=t("defs"),l=t("style"),u=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),c=t("g"),d=t("g"),m=t("path"),h=ee(),f=K("h2"),p=Q(G),g=ee(),y=K("div"),v=K("h6"),w=Q($),_=ee(),b=K("div"),x=K("span"),x.textContent="i",T=ee(),E=K("player-account-gaming-limits-popup"),C=ee(),B&&B.c(),L=ee(),H&&H.c(),M=ee(),V&&V.c(),A=ee(),S=K("div"),I=K("button"),D=Q(W),N=ee(),R=K("player-account-modal"),Y=K("player-account-gaming-limits-confirmation-modal"),this.c=z,ne(m,"class","aaa"),ne(m,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ne(m,"transform","translate(15 15) rotate(180)"),ne(d,"transform","translate(20 158)"),ne(c,"transform","translate(-20 -158)"),ne(a,"xmlns","http://www.w3.org/2000/svg"),ne(a,"width","15"),ne(a,"height","15"),ne(a,"viewBox","0 0 15 15"),ne(f,"class","MyAccountCategoryTitle "+(i[17]?"MyAccountCategoryTitleNone":"")),ne(f,"part","MyAccountCategoryTitle "+(i[17]?"MyAccountCategoryTitleNone":"")),ne(o,"class","MenuReturnButton "+(i[17]?"MyAccountCategoryTitleNone":"")),ne(o,"part","MenuReturnButton "+(i[17]?"MyAccountCategoryTitleNone":"")),ne(x,"class","AccountEditLimitsIcon"),ne(x,"part","AccountEditLimitsIcon"),re(E,"showpopup",i[6]),re(E,"lang",i[5]),ne(b,"class","AccountEditLimitsIconWrapper"),ne(b,"part","AccountEditLimitsIconWrapper"),ne(y,"class","AccountEditLimitsHeader"),ne(y,"part","AccountEditLimitsHeader"),ne(I,"class",k="AccountEditLimitsSaveButton "+(i[13]?"":"AccountEditLimitsButtonDisabled")),ne(I,"part",P="AccountEditLimitsSaveButton "+(i[13]?"":"AccountEditLimitsButtonDisabled")),I.disabled=O=!i[13],ne(S,"class","AccountEditLimitsControlArea"),ne(S,"part","AccountEditLimitsControlArea"),ne(n,"class","AccountEditLimitsWrapper "+(i[17]?"AccountEditLimitsMobileWrapper":"")),re(Y,"modaltext",i[10]),re(Y,"modalsource","groupEdit"),re(Y,"lang",i[5])},m(e,t){X(e,n,t),j&&j.m(n,null),Z(n,r),Z(n,o),Z(o,a),Z(a,s),Z(s,l),Z(l,u),Z(a,c),Z(c,d),Z(d,m),Z(o,h),Z(o,f),Z(f,p),Z(n,g),Z(n,y),Z(y,v),Z(v,w),Z(y,_),Z(y,b),Z(b,x),Z(b,T),Z(b,E),Z(n,C),B&&B.m(n,null),Z(n,L),H&&H.m(n,null),Z(n,M),V&&V.m(n,null),Z(n,A),Z(n,S),Z(S,I),Z(I,D),X(e,N,t),X(e,R,t),Z(R,Y),F||(U=[te(o,"click",i[20]),te(x,"click",ie(i[19])),te(I,"click",i[26])],F=!0)},p(e,t){e[17]&&j.p(e,t),65536&t[0]&&G!==(G=e[16]("editText.back")+"")&&oe(p,G),9&t[0]&&$!==($=(e[0]?e[3]:"")+"")&&oe(w,$),64&t[0]&&re(E,"showpopup",e[6]),32&t[0]&&re(E,"lang",e[5]),e[1]?B?B.p(e,t):(B=Jn(e),B.c(),B.m(n,L)):B&&(B.d(1),B=null),e[2]?H?H.p(e,t):(H=Kn(e),H.c(),H.m(n,M)):H&&(H.d(1),H=null),e[7]?V?V.p(e,t):(V=tr(e),V.c(),V.m(n,A)):V&&(V.d(1),V=null),65536&t[0]&&W!==(W=e[16]("editText.save")+"")&&oe(D,W),8192&t[0]&&k!==(k="AccountEditLimitsSaveButton "+(e[13]?"":"AccountEditLimitsButtonDisabled"))&&ne(I,"class",k),8192&t[0]&&P!==(P="AccountEditLimitsSaveButton "+(e[13]?"":"AccountEditLimitsButtonDisabled"))&&ne(I,"part",P),8192&t[0]&&O!==(O=!e[13])&&(I.disabled=O),1024&t[0]&&re(Y,"modaltext",e[10]),32&t[0]&&re(Y,"lang",e[5])},i:z,o:z,d(e){e&&J(n),j&&j.d(),B&&B.d(),H&&H.d(),V&&V.d(),e&&J(N),e&&J(R),F=!1,q(U)}}}function mr(e,t,o){let i;N(e,Mn,e=>o(16,i=e));let{limitsdata:n=[]}=t,{showsuccessnotification:r=!1}=t,{showdeletenotification:a=!1}=t,{limitname:s=""}=t,{playercurrency:l=""}=t,{lang:u="en"}=t;Object.keys(Yn).forEach(e=>{sn(e,Yn[e])});let c=!1,d=!0,m=!1,h=0,f=0,p="",g=window.navigator.userAgent,y="PC"!==An(g),v=new Array(3).fill(0),w={},_=[],b=!1,x=[];const T={amount:/^[0-9]{0,7}$/,time:/^[1-9]\d*$/};let E=[{periodName:"Daily",amount:"No limit",value:0},{periodName:"Weekly",amount:"No limit",value:0},{periodName:"Monthly",amount:"No limit",value:0}],C=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],L=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],M=[{periodName:"Daily",values:["10000","20000","50000","Custom"]},{periodName:"Weekly",values:["10000","50000","100000","Custom"]},{periodName:"Monthly",values:["50000","100000","200000","Custom"]}],A=[{periodName:"Daily",values:["500","1000","1430","Custom"]},{periodName:"Weekly",values:["5000","7000","10000","Custom"]},{periodName:"Monthly",values:["20000","30000","43000","Custom"]}];const S=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),I=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},D=(i,e)=>{let n=JSON.parse(JSON.stringify(e));E.forEach(t=>{n.forEach(e=>{t.periodName==i.periodName&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.periodName&&(e.amount=t.value)})})},k=()=>{x.forEach(e=>{var t=e;_.forEach(e=>{t.period===e.periodName&&("Time Limit"===s&&(o(8,h=60),"Daily"===t.periodName?o(9,f=1440):"Weekly"==t.periodName?o(9,f=10080):o(9,f=43200)),-1<e.values.indexOf(t.amount)&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount)))})}),w.forEach(t=>{_.forEach(e=>{t.period===e.periodName&&((e,t,i)=>{let n=e.values;t.amount&&"No limit"!==t.amount?n.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.periodName===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.periodName===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.periodName===t.period&&(e.amount=t.amount,e.value=0)})})(e,t,E)})})},P=()=>{var e=u;yn.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",o(10,p=i("editText.changeLimitsText",{values:{limit:e}})),o(14,x=JSON.parse(JSON.stringify(n))),o(12,w=JSON.parse(JSON.stringify(n))),_="Wagering Limit"===s?L:"Loss Limit"===s?M:"Deposit Limit"===s?C:"Time Limit"===s?A:[],k()},O=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":o(6,c=!1);break;case"GamingLimitsConfirmChanges":m=!0,m&&("Time Limit"===s?E.forEach(t=>{w.forEach(e=>{e.period===t.periodName&&(e.minutes=t.value)})}):E.forEach(t=>{w.forEach(e=>{e.period===t.periodName&&(e.amount=t.value,e.currency=l)})}),t={},t={[S.get(s)]:[...w]},window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:S.get(s)},window.location.href),o(13,b=!1));break;case"CancelGamingLimitsChanges":o(7,d=!1),setTimeout(()=>{o(7,d=!0)},10),P(),o(13,b=!1),m=!1}var t};return Y(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)})),e.$$set=e=>{"limitsdata"in e&&o(0,n=e.limitsdata),"showsuccessnotification"in e&&o(1,r=e.showsuccessnotification),"showdeletenotification"in e&&o(2,a=e.showdeletenotification),"limitname"in e&&o(3,s=e.limitname),"playercurrency"in e&&o(4,l=e.playercurrency),"lang"in e&&o(5,u=e.lang)},e.$$.update=()=>{6&e.$$.dirty[0]&&r&&a&&P(),33&e.$$.dirty[0]&&n&&u&&P()},[n,r,a,s,l,u,c,d,h,f,p,v,w,b,x,E,i,y,C,()=>{o(6,c=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},I,(e,t,i,n)=>{var r;"Custom"===e.amount?"Time Limit"==s?(o(8,h=60),"Daily"===e.periodName?o(9,f=1440):"Weekly"==e.periodName?o(9,f=10080):o(9,f=43200),e.value&&T.time.test(e.value)&&e.value>h&&e.value<=f?(o(11,v[t]=0,v),r=n[t],e.periodName==r.period&&e.value==r.amount?(o(13,b=!1),D(e,n)):o(13,b=!0)):(o(11,v[t]=1,v),o(13,b=!1))):e.value&&T.amount.test(e.value)?(o(11,v[t]=0,v),e.periodName==n[t].period&&e.value==n[t].amount?(o(13,b=!!b),D(e,n)):o(13,b=!0),E.forEach(e=>{0==e.value&&o(13,b=!1)})):(o(11,v[t]=1,v),o(13,b=!1)):(e.periodName==n[t].period?(D(e,n),o(13,b=e.value!=n[t].amount)):o(13,b=!0),E.forEach(e=>{0==e.value&&o(13,b=!1)}))},function(e){E[e].amount=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),o(15,E),o(18,C)},function(e){E[e].value=R(this.value),o(15,E),o(18,C)},function(e){E[e].value=R(this.value),o(15,E),o(18,C)},()=>I()]}function hr(e,t,i){const n=e.slice();return n[33]=t[i],n[35]=i,n}function fr(e,t,i){const n=e.slice();return n[33]=t[i],n[35]=i,n}function pr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=br(hr(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=x()},m(t,i){for(let e=0;e<a.length;e+=1)a[e].m(t,i);X(t,r,i)},p(t,i){if(210975&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=hr(t,o,e);a[e]?a[e].p(n,i):(a[e]=br(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){b(a,e),e&&J(r)}}}function gr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Sr(fr(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=x()},m(t,i){for(let e=0;e<a.length;e+=1)a[e].m(t,i);X(t,r,i)},p(t,i){if(210971&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=fr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Sr(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){b(a,e),e&&J(r)}}}function yr(e){let i,n,r=e[11]("cardText.notAvailable")+"";return{c(){i=K("div"),n=Q(r),ne(i,"class","InfoCardRowValue"),ne(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){2048&t[0]&&r!==(r=e[11]("cardText.notAvailable")+"")&&oe(n,r)},d(e){e&&J(i)}}}function vr(e){let i,n,r=(e[33]?(Gn(e[33].expiryDate).year()>e[13].year()+30?e[13].add(5,"years"):Gn(e[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=Q(r),ne(i,"class","InfoCardRowValue"),ne(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[33]?(Gn(e[33].expiryDate).year()>e[13].year()+30?e[13].add(5,"years"):Gn(e[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&oe(n,r)},d(e){e&&J(i)}}}function wr(i){let n,r,o,a,s,l,u,c;function d(){return i[20](i[35])}return{c(){n=K("div"),r=K("span"),r.textContent="i",o=ee(),a=K("player-account-gaming-limits-popup"),ne(r,"class","InfoCardIcon"),ne(r,"part","InfoCardIcon"),re(a,"showpopup",s=i[4][i[35]+1]),re(a,"iteminfoamount",l=i[33].updateAmount),re(a,"playercurrency",i[2]),re(a,"lang",i[3]),ne(n,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),ne(n,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),u||(c=te(r,"click",ie(d)),u=!0)},p(e,t){i=e,16&t[0]&&s!==(s=i[4][i[35]+1])&&re(a,"showpopup",s),1&t[0]&&l!==(l=i[33].updateAmount)&&re(a,"iteminfoamount",l),4&t[0]&&re(a,"playercurrency",i[2]),8&t[0]&&re(a,"lang",i[3])},d(e){e&&J(n),u=!1,c()}}}function _r(i){let n,r,o;return{c(){n=K("div"),n.innerHTML="<span></span>",ne(n,"class","InfoCardRemoveIcon"),ne(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[16](i[33],i[1]))&&i[16](i[33],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&J(n),r=!1,o()}}}function br(e){let i,n,r,o,a,s,l,u,c,d,m,h,f,p,g,y,v,w,_,b=(e[33]?e[33].period:"")+"",x=(e[33]?e[33].amount:0)+"",T=(e[33]?e[33].currency:"")+"",E=e[11]("cardText.expirationDate")+"";function C(e){return e[33].expiryDate?vr:yr}let L=C(e),M=L(e);function A(e,t){return(null==w||2049&t[0])&&(w=!(e[33].amount===e[11]("cardText.noLimit")||e[33].isModified)),w?_r:"No limit"!=e[33].amount&&e[33].isModified?wr:void 0}let S=A(e,[-1]),I=S&&S(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=Q(b),s=ee(),l=K("div"),u=Q(x),c=ee(),d=K("span"),m=Q(T),h=ee(),f=K("div"),p=K("div"),g=Q(E),y=ee(),M.c(),v=ee(),I&&I.c(),_=ee(),ne(o,"class","InfoCardRowTitle"),ne(o,"part","InfoCardRowTitle"),ne(d,"class","InfoCardCurrency"),ne(d,"part","InfoCardCurrency"),ne(l,"class","InfoCardRowValue"),ne(l,"part","InfoCardRowValue"),ne(r,"class","InfoCardRow InfoMainRow"),ne(r,"part","InfoCardRow InfoMainRow"),ne(p,"class","InfoCardRowTitle"),ne(p,"part","InfoCardRowTitle"),ne(f,"class","InfoCardRow"),ne(f,"part","InfoCardRow"),ne(n,"class","InfoCardRowContainer"),ne(n,"part","InfoCardRowContainer"),ne(i,"class","InfoCardBox InfoCardMultipleItems"),ne(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),Z(l,u),Z(l,c),Z(l,d),Z(d,m),Z(n,h),Z(n,f),Z(f,p),Z(p,g),Z(f,y),M.m(f,null),Z(i,v),I&&I.m(i,null),Z(i,_)},p(e,t){1&t[0]&&b!==(b=(e[33]?e[33].period:"")+"")&&oe(a,b),1&t[0]&&x!==(x=(e[33]?e[33].amount:0)+"")&&oe(u,x),1&t[0]&&T!==(T=(e[33]?e[33].currency:"")+"")&&oe(m,T),2048&t[0]&&E!==(E=e[11]("cardText.expirationDate")+"")&&oe(g,E),L===(L=C(e))&&M?M.p(e,t):(M.d(1),M=L(e),M&&(M.c(),M.m(f,null))),S===(S=A(e,t))&&I?I.p(e,t):(I&&I.d(1),I=S&&S(e),I&&(I.c(),I.m(i,_)))},d(e){e&&J(i),M.d(),I&&I.d()}}}function xr(e){let i,n,r=e[11]("cardText.noLimit")+"";return{c(){i=K("span"),n=Q(r),ne(i,"class","InfoCardCurrency"),ne(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){2048&t[0]&&r!==(r=e[11]("cardText.noLimit")+"")&&oe(n,r)},d(e){e&&J(i)}}}function Tr(e){let i,n,r,o=(e[33]?e[33].amount:0)+"",a="No limit"!=e[33].amount&&Er(e);return{c(){i=Q(o),n=ee(),a&&a.c(),r=x()},m(e,t){X(e,i,t),X(e,n,t),a&&a.m(e,t),X(e,r,t)},p(e,t){1&t[0]&&o!==(o=(e[33]?e[33].amount:0)+"")&&oe(i,o),"No limit"!=e[33].amount?a?a.p(e,t):(a=Er(e),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(e){e&&J(i),e&&J(n),a&&a.d(e),e&&J(r)}}}function Er(e){let i,n,r=e[11]("cardText.minutes")+"";return{c(){i=K("span"),n=Q(r),ne(i,"class","InfoCardCurrency"),ne(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){2048&t[0]&&r!==(r=e[11]("cardText.minutes")+"")&&oe(n,r)},d(e){e&&J(i)}}}function Cr(e){let i,n,r=e[11]("cardText.notAvailable")+"";return{c(){i=K("div"),n=Q(r),ne(i,"class","InfoCardRowValue"),ne(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){2048&t[0]&&r!==(r=e[11]("cardText.notAvailable")+"")&&oe(n,r)},d(e){e&&J(i)}}}function Lr(e){let i,n,r=(e[33]?(Gn(e[33].expiryDate).year()>e[13].year()+30?e[13].add(5,"years"):Gn(e[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=Q(r),ne(i,"class","InfoCardRowValue"),ne(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[33]?(Gn(e[33].expiryDate).year()>e[13].year()+30?e[13].add(5,"years"):Gn(e[33].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&oe(n,r)},d(e){e&&J(i)}}}function Mr(i){let n,r,o,a,s,l,u,c;function d(){return i[19](i[35])}return{c(){n=K("div"),r=K("span"),r.textContent="i",o=ee(),a=K("player-account-gaming-limits-popup"),ne(r,"class","InfoCardIcon"),ne(r,"part","InfoCardIcon"),re(a,"showpopup",s=i[4][i[35]+1]),re(a,"iteminfoamount",l=i[33].updateMinutes),re(a,"playercurrency","minutes"),re(a,"lang",i[3]),ne(n,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),ne(n,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),u||(c=te(r,"click",ie(d)),u=!0)},p(e,t){i=e,16&t[0]&&s!==(s=i[4][i[35]+1])&&re(a,"showpopup",s),1&t[0]&&l!==(l=i[33].updateMinutes)&&re(a,"iteminfoamount",l),8&t[0]&&re(a,"lang",i[3])},d(e){e&&J(n),u=!1,c()}}}function Ar(i){let n,r,o;return{c(){n=K("div"),n.innerHTML="<span></span>",ne(n,"class","InfoCardRemoveIcon"),ne(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[16](i[33],i[1]))&&i[16](i[33],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&J(n),r=!1,o()}}}function Sr(e){let i,n,r,o,a,s,l,u,c,d,m,h,f,p,g,y=(e[33]?e[33].period:"")+"",v=e[11]("cardText.expirationDate")+"";function w(e){return 0!==e[33].amount?Tr:xr}let _=w(e),b=_(e);function x(e){return e[33].expiryDate?Lr:Cr}let T=x(e),E=T(e);function C(e,t){return(null==p||2049&t[0])&&(p=!(e[33].amount===e[11]("cardText.noLimit")||e[33].isModified)),p?Ar:"No limit"!=e[33].amount&&e[33].isModified?Mr:void 0}let L=C(e,[-1]),M=L&&L(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=Q(y),s=ee(),l=K("div"),b.c(),u=ee(),c=K("div"),d=K("div"),m=Q(v),h=ee(),E.c(),f=ee(),M&&M.c(),g=ee(),ne(o,"class","InfoCardRowTitle"),ne(o,"part","InfoCardRowTitle"),ne(l,"class","InfoCardRowValue"),ne(l,"part","InfoCardRowValue"),ne(r,"class","InfoCardRow InfoMainRow"),ne(r,"part","InfoCardRow InfoMainRow"),ne(d,"class","InfoCardRowTitle"),ne(d,"part","InfoCardRowTitle"),ne(c,"class","InfoCardRow"),ne(c,"part","InfoCardRow"),ne(n,"class","InfoCardRowContainer"),ne(n,"part","InfoCardRowContainer"),ne(i,"class","InfoCardBox InfoCardMultipleItems"),ne(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),b.m(l,null),Z(n,u),Z(n,c),Z(c,d),Z(d,m),Z(c,h),E.m(c,null),Z(i,f),M&&M.m(i,null),Z(i,g)},p(e,t){1&t[0]&&y!==(y=(e[33]?e[33].period:"")+"")&&oe(a,y),_===(_=w(e))&&b?b.p(e,t):(b.d(1),b=_(e),b&&(b.c(),b.m(l,null))),2048&t[0]&&v!==(v=e[11]("cardText.expirationDate")+"")&&oe(m,v),T===(T=x(e))&&E?E.p(e,t):(E.d(1),E=T(e),E&&(E.c(),E.m(c,null))),L===(L=C(e,t))&&M?M.p(e,t):(M&&M.d(1),M=L&&L(e),M&&(M.c(),M.m(i,g)))},d(e){e&&J(i),b.d(),E.d(),M&&M.d()}}}function Ir(i){let n,r,o,a,s=i[11]("cardText.removeLimits")+"";return{c(){n=K("button"),r=Q(s),ne(n,"class","InfoCardRemoveButton"),ne(n,"part","InfoCardRemoveButton")},m(e,t){X(e,n,t),Z(n,r),o||(a=te(n,"click",i[22]),o=!0)},p(e,t){2048&t[0]&&s!==(s=e[11]("cardText.removeLimits")+"")&&oe(r,s)},d(e){e&&J(n),o=!1,a()}}}function Dr(e){let i,n,r;return{c(){i=K("player-account-modal"),n=K("player-account-gaming-limits-confirmation-modal"),re(n,"modaltext",r=e[6]?e[8]:e[9]),re(n,"modalsource","infoCard"),re(n,"lang",e[3])},m(e,t){X(e,i,t),Z(i,n)},p(e,t){832&t[0]&&r!==(r=e[6]?e[8]:e[9])&&re(n,"modaltext",r),8&t[0]&&re(n,"lang",e[3])},d(e){e&&J(i)}}}function kr(e){let i,n=function(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g,y,v,w,_,b,x,T,E,C,L=(i[0]?i[1]:"")+"",M=i[11]("cardText.edit")+"";function A(e){return"Time Limit"===e[1]?gr:pr}let S=A(i),I=S(i),D=!i[5]&&!i[0].isModified&&i[10]&&Ir(i),k=i[7]&&Dr(i);return{c(){n=K("div"),r=K("div"),o=K("div"),a=K("h5"),s=Q(L),l=ee(),u=K("div"),c=K("span"),c.textContent="i",d=ee(),m=K("player-account-gaming-limits-popup"),f=ee(),p=K("div"),g=K("div"),y=K("div"),I.c(),v=ee(),w=K("div"),_=K("button"),b=Q(M),x=ee(),D&&D.c(),T=ee(),k&&k.c(),ne(c,"class","InfoCardIcon"),ne(c,"part","InfoCardIcon"),re(m,"showpopup",h=i[4][0]),re(m,"lang",i[3]),ne(u,"class","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),ne(u,"part","InfoCardIconWrapper "+(i[12]?"InfoCardIconMobileWrapper":"")),ne(o,"class","InfoCardHeader "+(i[12]?"InfoCardMobileHeader":"")),ne(o,"part","InfoCardHeader "+(i[12]?"InfoCardMobileHeader":"")),ne(y,"class","InfoCardTableRow"),ne(y,"part","InfoCardTableRow"),ne(g,"class","InfoCardTableWrapper"),ne(g,"part","InfoCardTableWrapper"),ne(_,"class","InfoCardEditButton"),ne(_,"part","InfoCardEditButton"),ne(w,"class","InfoCardControlArea"),ne(w,"part","InfoCardControlArea"),ne(p,"class","InfoCard"),ne(p,"part","InfoCard"),ne(r,"class","InfoCardWrapper"),ne(r,"part","InfoCardWrapper"),ne(n,"class","InfoCardSection"),ne(n,"part","InfoCardSection")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(u,d),Z(u,m),Z(r,f),Z(r,p),Z(p,g),Z(g,y),I.m(y,null),Z(p,v),Z(p,w),Z(w,_),Z(_,b),Z(w,x),D&&D.m(w,null),Z(n,T),k&&k.m(n,null),E||(C=[te(c,"click",ie(i[18])),te(_,"click",i[21])],E=!0)},p(e,t){3&t[0]&&L!==(L=(e[0]?e[1]:"")+"")&&oe(s,L),16&t[0]&&h!==(h=e[4][0])&&re(m,"showpopup",h),8&t[0]&&re(m,"lang",e[3]),S===(S=A(e))&&I?I.p(e,t):(I.d(1),I=S(e),I&&(I.c(),I.m(y,null))),2048&t[0]&&M!==(M=e[11]("cardText.edit")+"")&&oe(b,M),e[5]||e[0].isModified||!e[10]?D&&(D.d(1),D=null):D?D.p(e,t):(D=Ir(e),D.c(),D.m(w,null)),e[7]?k?k.p(e,t):(k=Dr(e),k.c(),k.m(n,null)):k&&(k.d(1),k=null)},d(e){e&&J(n),I.d(),D&&D.d(),k&&k.d(),E=!1,q(C)}}}(e);return{c(){n.c(),i=x(),this.c=z},m(e,t){n.m(e,t),X(e,i,t)},p(e,t){n.p(e,t)},i:z,o:z,d(e){n.d(e),e&&J(i)}}}function Pr(e,t,n){let o;N(e,Mn,e=>n(11,o=e));let{limitsdata:i=""}=t,{limitname:r=""}=t,{playercurrency:a=""}=t,{lang:s="en"}=t;Object.keys(In).forEach(e=>{sn(e,In[e])});let l=new Array(5).fill(0),u=[o("cardText.daily"),o("cardText.weekly"),o("cardText.monthly")],c=!0,d=!0,m=!1,h=window.navigator.userAgent,f="PC"!==An(h),p="",g="",y=!0,v=Gn();const w=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:r},window.location.href)},_=e=>{n(7,m=!0),n(6,d=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:r},window.location.href)},b=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(4,l[e]=!0,l)},50)},x=(e,t,i,n)=>{var r=n===o("cardText.time")?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:o("cardText.noLimit"),currency:"",isModified:!1,expiryDate:""};e.splice(t,0,r)},T=(e,t)=>e.period===o("cardText.weekly")&&t.period===o("cardText.daily")||e.period===o("cardText.monthly")&&t.period===o("cardText.daily")||e.period===o("cardText.monthly")&&t.period===o("cardText.weekly")?1:e.period===o("cardText.daily")&&t.period===o("cardText.weekly")||e.period===o("cardText.daily")&&t.period===o("cardText.monthly")||e.period===o("cardText.weekly")&&t.period===o("cardText.monthly")?-1:0,E=()=>{var e=s;yn.set(e),e=r===o("cardText.timeLimit")?o("cardText.timeLimitLower"):r===o("cardText.depositLimit")?o("cardText.depositLimitLower"):r===o("cardText.wageringLimit")?o("cardText.wageringLimitLower"):o("cardText.lossLimitLower"),n(8,p=o("cardText.removeLimitsText",{values:{limit:e}})),n(9,g=o("cardText.removeLimitText",{values:{limit:e}})),i.forEach(e=>{e.isModified&&n(10,y=!1)}),i.sort(T),(i=>{const t=u;u.forEach(t=>{i.indexOf(t),i.find(e=>e.period===t)&&(u=u.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&e.amount!==o("cardText.noLimit")&&n(5,c=!1)})}),u.forEach(e=>{i.name===o("cardText.timeLimit")?x(i,t.indexOf(e),e,o("cardText.time")):x(i,t.indexOf(e),e,o("cardText.currency"))})})(i)},C=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(4,l=new Array(5).fill(0));break;case"ModalClosed":n(7,m=!1),n(6,d=!1)}};return Y(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),e.$$set=e=>{"limitsdata"in e&&n(0,i=e.limitsdata),"limitname"in e&&n(1,r=e.limitname),"playercurrency"in e&&n(2,a=e.playercurrency),"lang"in e&&n(3,s=e.lang)},e.$$.update=()=>{11&e.$$.dirty[0]&&i&&r&&s&&E()},[i,r,a,s,l,c,d,m,p,g,y,o,f,v,w,_,(e,t)=>{n(7,m=!0),n(6,d=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},b,()=>b(0),e=>b(e+1),e=>b(e+1),()=>w(i),()=>_(i)]}function Or(e){let i;return{c(){i=K("player-account-gaming-limits-group-edit"),re(i,"limitsdata",e[8]),re(i,"limitname",e[9]),re(i,"showsuccessnotification",e[6]),re(i,"showdeletenotification",e[5]),re(i,"playercurrency",e[0]),re(i,"lang",e[7])},m(e,t){X(e,i,t)},p(e,t){256&t&&re(i,"limitsdata",e[8]),512&t&&re(i,"limitname",e[9]),64&t&&re(i,"showsuccessnotification",e[6]),32&t&&re(i,"showdeletenotification",e[5]),1&t&&re(i,"playercurrency",e[0]),128&t&&re(i,"lang",e[7])},d(e){e&&J(i)}}}function Nr(e){let i,n,r,o,a,s,l,u,c,d,m,h,f,p=e[11]("gamingLimits.gamingLimitsText")+"",g=e[12]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,f,p,g=i[11]("gamingLimits.gamingLimitsText")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),m=K("h2"),h=Q(g),ne(c,"class","aaa"),ne(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ne(c,"transform","translate(15 15) rotate(180)"),ne(u,"transform","translate(20 158)"),ne(l,"transform","translate(-20 -158)"),ne(r,"xmlns","http://www.w3.org/2000/svg"),ne(r,"width","15"),ne(r,"height","15"),ne(r,"viewBox","0 0 15 15"),ne(m,"class","PlayerGamingLimitsTitleMobile"),ne(m,"part","PlayerGamingLimitsTitleMobile"),ne(n,"class","MenuReturnButton"),ne(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,m),Z(m,h),f||(p=te(n,"click",i[19]),f=!0)},p(e,t){2048&t&&g!==(g=e[11]("gamingLimits.gamingLimitsText")+"")&&oe(h,g)},d(e){e&&J(n),f=!1,p()}}}(e);return{c(){i=K("div"),g&&g.c(),n=ee(),r=K("h2"),o=Q(p),a=ee(),s=K("div"),l=K("player-account-gaming-limits-info-card"),u=ee(),c=K("player-account-gaming-limits-info-card"),d=ee(),m=K("player-account-gaming-limits-info-card"),h=ee(),f=K("player-account-gaming-limits-info-card"),ne(r,"class","PlayerGamingLimitsTitle "+(e[12]?"PlayerGamingLimitsTitleNone":"")),ne(r,"part","PlayerGamingLimitsTitle "+(e[12]?"PlayerGamingLimitsTitleNone":"")),re(l,"limitsdata",e[1]),re(l,"limitname",e[13]),re(l,"playercurrency",e[0]),re(l,"lang",e[7]),re(c,"limitsdata",e[2]),re(c,"limitname",e[14]),re(c,"playercurrency",e[0]),re(c,"lang",e[7]),re(m,"limitsdata",e[3]),re(m,"limitname",e[15]),re(m,"playercurrency",e[0]),re(m,"lang",e[7]),re(f,"limitsdata",e[4]),re(f,"limitname",e[16]),re(f,"playercurrency",e[0]),re(f,"lang",e[7]),ne(s,"class","PlayerAccountGamingLimitsContainer"),ne(s,"part","PlayerAccountGamingLimitsContainer"),ne(i,"class","PlayerAccountGamingLimitsWrapper "+(e[12]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[17].matches&&e[12]?"PlayerAccountTabletGamingLimitsWrapper":"")),ne(i,"part","PlayerAccountGamingLimitsWrapper "+(e[12]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[17].matches&&e[12]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){X(e,i,t),g&&g.m(i,null),Z(i,n),Z(i,r),Z(r,o),Z(i,a),Z(i,s),Z(s,l),Z(s,u),Z(s,c),Z(s,d),Z(s,m),Z(s,h),Z(s,f)},p(e,t){e[12]&&g.p(e,t),2048&t&&p!==(p=e[11]("gamingLimits.gamingLimitsText")+"")&&oe(o,p),2&t&&re(l,"limitsdata",e[1]),1&t&&re(l,"playercurrency",e[0]),128&t&&re(l,"lang",e[7]),4&t&&re(c,"limitsdata",e[2]),1&t&&re(c,"playercurrency",e[0]),128&t&&re(c,"lang",e[7]),8&t&&re(m,"limitsdata",e[3]),1&t&&re(m,"playercurrency",e[0]),128&t&&re(m,"lang",e[7]),16&t&&re(f,"limitsdata",e[4]),1&t&&re(f,"playercurrency",e[0]),128&t&&re(f,"lang",e[7])},d(e){e&&J(i),g&&g.d()}}}function Rr(e){let i;function n(e){return e[10]?Nr:Or}let r=n(e),o=r(e);return{c(){o.c(),i=x(),this.c=z},m(e,t){o.m(e,t),X(e,i,t)},p(e,[t]){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i.parentNode,i)))},i:z,o:z,d(e){o.d(e),e&&J(i)}}}function Yr(t,e,i){let n;N(t,Mn,e=>i(11,n=e));let{depositlimit:r=""}=e,{wageringlimit:o=""}=e,{losslimit:a=""}=e,{timelimit:s=""}=e,{showdeletenotification:l=!1}=e,{showsuccessnotification:u=!1}=e,{lang:c="en"}=e,{playercurrency:d=""}=e;Object.keys(Sn).forEach(e=>{sn(e,Sn[e])});let m,h=window.navigator.userAgent,f="PC"!==An(h),p="",g=!0,y=n("gamingLimits.depositLimit"),v=n("gamingLimits.wageringLimit"),w=n("gamingLimits.lossLimit"),_=n("gamingLimits.timeLimit");const b=window.matchMedia("(min-width: 768px)"),x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},T=e=>{if(e.data)switch(e.data.type){case"EditPlayerAccountGamingLimits":i(8,m=e.data.edit),i(9,p=e.data.name),i(10,g=!1);break;case"PlayerAccountBackToLimitsView":i(10,g=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(0,d=t.currency)}};return Y(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"depositlimit"in e&&i(1,r=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(5,l=e.showdeletenotification),"showsuccessnotification"in e&&i(6,u=e.showsuccessnotification),"lang"in e&&i(7,c=e.lang),"playercurrency"in e&&i(0,d=e.playercurrency)},t.$$.update=()=>{var e;144&t.$$.dirty&&s&&y&&v&&w&&_&&c&&(e=c,yn.set(e),S())},[d,r,o,a,s,l,u,c,m,p,g,n,f,y,v,w,_,b,x,()=>x()]}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends H{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'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, #FD2839);margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},zn,Vn,i,{modaltext:0,modalsource:6,lang:7}),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["modaltext","modalsource","lang"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$set({modaltext:e}),k()}get modalsource(){return this.$$.ctx[6]}set modalsource(e){this.$set({modalsource:e}),k()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),k()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends H{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'}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-color-primary, #D0046C)}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-color-primary-50, #FBECF4);border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-color-primary, #D0046C);cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},mr,dr,i,{limitsdata:0,showsuccessnotification:1,showdeletenotification:2,limitname:3,playercurrency:4,lang:5},[-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","limitname","playercurrency","lang"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$set({limitsdata:e}),k()}get showsuccessnotification(){return this.$$.ctx[1]}set showsuccessnotification(e){this.$set({showsuccessnotification:e}),k()}get showdeletenotification(){return this.$$.ctx[2]}set showdeletenotification(e){this.$set({showdeletenotification:e}),k()}get limitname(){return this.$$.ctx[3]}set limitname(e){this.$set({limitname:e}),k()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$set({playercurrency:e}),k()}get lang(){return this.$$.ctx[5]}set lang(e){this.$set({lang:e}),k()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends H{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'}.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, #FD2839);border:1px solid var(--emfe-w-color-secondary, #FD2839)}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:\"\\274c\";font-size:7px;color:var(--emfe-w-color-secondary, #FD2839);line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Pr,kr,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3},[-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$set({limitsdata:e}),k()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$set({limitname:e}),k()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$set({playercurrency:e}),k()}get lang(){return this.$$.ctx[3]}set lang(e){this.$set({lang:e}),k()}});class Fr extends H{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'}.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-color-primary, #D0046C);padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}</style>",B(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Yr,Rr,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:5,showsuccessnotification:6,lang:7,playercurrency:0}),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),k()))}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(e){this.$set({depositlimit:e}),k()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$set({wageringlimit:e}),k()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$set({losslimit:e}),k()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$set({timelimit:e}),k()}get showdeletenotification(){return this.$$.ctx[5]}set showdeletenotification(e){this.$set({showdeletenotification:e}),k()}get showsuccessnotification(){return this.$$.ctx[6]}set showsuccessnotification(e){this.$set({showsuccessnotification:e}),k()}get lang(){return this.$$.ctx[7]}set lang(e){this.$set({lang:e}),k()}get playercurrency(){return this.$$.ctx[0]}set playercurrency(e){this.$set({playercurrency:e}),k()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",Fr),Fr});
|
|
2
2
|
//# sourceMappingURL=player-account-gaming-limits.js.map
|