@everymatrix/casino-footer-v2 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/casino-footer-v2.js
CHANGED
@@ -27,7 +27,7 @@ for(;C<O.length;){const e=O[C];C++,L(e),R(e.$$)}for(L(null),O.length=0,C=0;P.len
|
|
27
27
|
// subsequent updates...
|
28
28
|
for(let e=0;e<$.length;e+=1){const t=$[e];B.has(t)||(
|
29
29
|
// ...so guard against infinite loops
|
30
|
-
B.add(t),t())}$.length=0}while(O.length);for(;A.length;)A.pop()();F=!1,B.clear(),L(e)}function R(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}const
|
30
|
+
B.add(t),t())}$.length=0}while(O.length);for(;A.length;)A.pop()();F=!1,B.clear(),L(e)}function R(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}const Y=new Set;const U="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function G(e,t){-1===e.$$.dirty[0]&&(O.push(e),F||(F=!0,H.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function j(o,s,l,u,c,h,d,f=[-1]){const m=a;L(o);const g=o.$$={fragment:null,ctx:null,
|
31
31
|
// state
|
32
32
|
props:h,update:e,not_equal:c,bound:n(),
|
33
33
|
// lifecycle
|
@@ -39,7 +39,7 @@ g.fragment=!!u&&u(g.ctx),s.target){if(s.hydrate){const e=function(e){return Arra
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
40
40
|
g.fragment&&g.fragment.l(e),e.forEach(p)}else
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
42
|
-
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(
|
42
|
+
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(Y.delete(b),b.i(_))),function(e,n,o,s){const{fragment:a,on_mount:l,on_destroy:u,after_update:c}=e.$$;a&&a.m(n,o),s||
|
43
43
|
// onMount happens before the initial afterUpdate
|
44
44
|
I((()=>{const n=l.map(t).filter(i);u?u.push(...n):
|
45
45
|
// Edge case - component was destroyed immediately,
|
@@ -120,19 +120,19 @@ function Ae(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
120
120
|
*/
|
121
121
|
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:xe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Le&&xe&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Ce(e.buffer),
|
122
122
|
// IE 10-11 can't handle a DataView body.
|
123
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):Le&&(ArrayBuffer.prototype.isPrototypeOf(e)||Oe(e))?this._bodyArrayBuffer=Ce(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):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},xe&&(this.blob=function(){var e=Fe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Fe(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Be)}),this.text=function(){var e,t,n,r=Fe(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Ie(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Me&&(this.formData=function(){return this.text().then(
|
123
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):Le&&(ArrayBuffer.prototype.isPrototypeOf(e)||Oe(e))?this._bodyArrayBuffer=Ce(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):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},xe&&(this.blob=function(){var e=Fe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Fe(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Be)}),this.text=function(){var e,t,n,r=Fe(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Ie(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Me&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
124
124
|
// HTTP methods whose capitalization should be normalized
|
125
|
-
He.prototype.append=function(e,t){e=Pe(e),t=$e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},He.prototype.delete=function(e){delete this.map[Pe(e)]},He.prototype.get=function(e){return e=Pe(e),this.has(e)?this.map[e]:null},He.prototype.has=function(e){return this.map.hasOwnProperty(Pe(e))},He.prototype.set=function(e,t){this.map[Pe(e)]=$e(t)},He.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},He.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Ae(e)},He.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ae(e)},He.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Ae(e)},Se&&(He.prototype[Symbol.iterator]=He.prototype.entries);var Re=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function
|
125
|
+
He.prototype.append=function(e,t){e=Pe(e),t=$e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},He.prototype.delete=function(e){delete this.map[Pe(e)]},He.prototype.get=function(e){return e=Pe(e),this.has(e)?this.map[e]:null},He.prototype.has=function(e){return this.map.hasOwnProperty(Pe(e))},He.prototype.set=function(e,t){this.map[Pe(e)]=$e(t)},He.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},He.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Ae(e)},He.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ae(e)},He.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Ae(e)},Se&&(He.prototype[Symbol.iterator]=He.prototype.entries);var Re=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ye(e,t){if(!(this instanceof Ye))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof Ye){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new He(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 He(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Re.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
126
126
|
// Search for a '_' parameter in the query string
|
127
127
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
128
128
|
// If it already exists then set the value with the current time
|
129
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
129
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ue(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Ge(e,t){if(!(this instanceof Ge))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=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new He(t.headers),this.url=t.url||"",this._initBody(e)}Ye.prototype.clone=function(){return new Ye(this,{body:this._bodyInit})},Ne.call(Ye.prototype),Ne.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new He(this.headers),url:this.url})},Ge.error=function(){var e=new Ge(null,{status:0,statusText:""});return e.type="error",e};var je=[301,302,303,307,308];Ge.redirect=function(e,t){if(-1===je.indexOf(t))throw new RangeError("Invalid status code");return new Ge(null,{status:t,headers:{location:e}})};var Ve=Ee.DOMException;try{new Ve}catch(e){(Ve=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Ve.prototype.constructor=Ve}function We(e,t){return new Promise((function(n,r){var i=new Ye(e,t);if(i.signal&&i.signal.aborted)return r(new Ve("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new He,
|
130
130
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
131
131
|
// https://github.com/github/fetch/issues/748
|
132
132
|
// https://github.com/zloirock/core-js/issues/751
|
133
133
|
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 n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new Ge(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Ve("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Ee.location.href?Ee.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(xe?o.responseType="blob":Le&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof He?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,$e(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
134
134
|
// DONE (success or failure)
|
135
|
-
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}We.polyfill=!0,Ee.fetch||(Ee.fetch=We,Ee.Headers=He,Ee.Request=
|
135
|
+
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}We.polyfill=!0,Ee.fetch||(Ee.fetch=We,Ee.Headers=He,Ee.Request=Ye,Ee.Response=Ge);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ze(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
136
136
|
// the whatwg-fetch polyfill installs the fetch() function
|
137
137
|
// on the global object (window or self)
|
138
138
|
|
@@ -175,13 +175,13 @@ const e=!$t.length;for(const e of i)e[1](),$t.push(e,t);if(e){for(let e=0;e<$t.l
|
|
175
175
|
*/
|
176
176
|
var c}var Ft=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===It}(e)}
|
177
177
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
178
|
-
(e)};var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?
|
178
|
+
(e)};var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ut((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ct(e,t,n){return e.concat(t).map((function(e){return Bt(e,n)}))}function Nt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Rt(e,t){try{return t in e}catch(e){return!1}}
|
179
179
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
180
|
-
function
|
181
|
-
})(e,i)||(Rt(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return
|
180
|
+
function Yt(e,t,n){var r={};return n.isMergeableObject(e)&&Nt(e).forEach((function(t){r[t]=Bt(e[t],n)})),Nt(t).forEach((function(i){(function(e,t){return Rt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
181
|
+
})(e,i)||(Rt(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return Ut;var n=t.customMerge(e);return"function"==typeof n?n:Ut}(i,n)(e[i],t[i],n):r[i]=Bt(t[i],n))})),r}function Ut(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ct,n.isMergeableObject=n.isMergeableObject||Ft,
|
182
182
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
183
183
|
// implementations can use it. The caller may not replace it.
|
184
|
-
n.cloneUnlessOtherwiseSpecified=Bt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):
|
184
|
+
n.cloneUnlessOtherwiseSpecified=Bt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Yt(e,t,n):Bt(t,n)}Ut.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ut(e,n,t)}),{})};var Gt=Ut,jt=function(e,t){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jt(e,t)};function Vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Wt,zt,Zt,Xt=function(){return Xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xt.apply(this,arguments)};function Kt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
185
185
|
/**
|
186
186
|
* Type Guards
|
187
187
|
*/
|
@@ -395,9 +395,9 @@ function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r
|
|
395
395
|
On?Object.fromEntries:// Ponyfill
|
396
396
|
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},Rn=Pn?// Native
|
397
397
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
398
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
398
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Yn=$n?// Native
|
399
399
|
function(e){return e.trimStart()}:// Ponyfill
|
400
|
-
function(e){return e.replace(Sn,"")},
|
400
|
+
function(e){return e.replace(Sn,"")},Un=An?// Native
|
401
401
|
function(e){return e.trimEnd()}:// Ponyfill
|
402
402
|
function(e){return e.replace(xn,"")};
|
403
403
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
@@ -484,11 +484,11 @@ return this.error(Wt.EXPECT_ARGUMENT_TYPE,Mn(o,a));case"number":case"date":case"
|
|
484
484
|
// Parse this range:
|
485
485
|
// {name, number, style}
|
486
486
|
// ^-------^
|
487
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=
|
487
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=Un(y.val)).length)return this.error(Wt.EXPECT_ARGUMENT_STYLE,Mn(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Mn(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var c=Mn(r,this.clonePosition());
|
488
488
|
// Extract style or skeleton
|
489
489
|
if(l&&Bn(null==l?void 0:l.style,"::",0)){
|
490
490
|
// Skeleton starts with `::`.
|
491
|
-
var h=
|
491
|
+
var h=Yn(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:zt.number,value:n,location:c,style:y.val},err:null};if(0===h.length)return this.error(Wt.EXPECT_DATE_TIME_SKELETON,c);var d=h;
|
492
492
|
// Get "best match" pattern only if locale is passed, if not, let it
|
493
493
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
494
494
|
// for unsupported patterns.
|
@@ -675,7 +675,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
675
675
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
676
676
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
677
677
|
PERFORMANCE OF THIS SOFTWARE.
|
678
|
-
***************************************************************************** */function $r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const Ar={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Hr(){return Ar}const Fr=At(!1);let Ir;const Br=At(null);function Cr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Nr(e,t=Hr().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Rr(){return null!=Ir?Ir:void 0}Br.subscribe((e=>{Ir=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const
|
678
|
+
***************************************************************************** */function $r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const Ar={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Hr(){return Ar}const Fr=At(!1);let Ir;const Br=At(null);function Cr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Nr(e,t=Hr().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Rr(){return null!=Ir?Ir:void 0}Br.subscribe((e=>{Ir=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Yr=Object.assign(Object.assign({},Br),{set:e=>{if(e&&function(e){if(null==e)return;const t=Nr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Tr(n))return n}}(e)&&Dr(e)){const{loadingDelay:t}=Hr();let n;return"undefined"!=typeof window&&null!=Rr()&&t?n=window.setTimeout((()=>Fr.set(!0)),t):Fr.set(!0),Pr(e).then((()=>{Br.set(e)})).finally((()=>{clearTimeout(n),Fr.set(!1)}))}return Br.set(e)}}),Ur=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Gr=(e,t)=>{const{formats:n}=Hr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},jr=Ur((e=>{var{locale:t,format:n}=e,r=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Gr("number",n)),new Intl.NumberFormat(t,r)})),Vr=Ur((e=>{var{locale:t,format:n}=e,r=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Gr("date",n):0===Object.keys(r).length&&(r=Gr("date","short")),new Intl.DateTimeFormat(t,r)})),Wr=Ur((e=>{var{locale:t,format:n}=e,r=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Gr("time",n):0===Object.keys(r).length&&(r=Gr("time","short")),new Intl.DateTimeFormat(t,r)})),zr=Ur(((e,t=Rr())=>new br(e,t,Hr().formats,{ignoreTag:Hr().ignoreTag}))),Zr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Rr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=wr(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(r=(n=Hr()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!a)return c;let h=c;try{h=zr(c,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Xr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=$r(e,["locale"]);return Wr(Object.assign({locale:t},n))})(t).format(e),Kr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=$r(e,["locale"]);return Vr(Object.assign({locale:t},n))})(t).format(e),qr=(e,t)=>((e={})=>{var{locale:t=Rr()}=e,n=$r(e,["locale"]);return jr(Object.assign({locale:t},n))})(t).format(e),Jr=(e,t=Rr())=>wr(e,t),Qr=Ht([Yr,Er],(()=>Zr));Ht([Yr],(()=>Xr)),Ht([Yr],(()=>Kr)),Ht([Yr],(()=>qr)),Ht([Yr,Er],(()=>Jr)),window.emWidgets={topic:(e,t=0)=>{if(-1==Ot.indexOf(e)){let n=new Dt(t);Pt[e]=n,Ot.push(e)}return Pt[e]}};
|
679
679
|
/**
|
680
680
|
* @name isMobile
|
681
681
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
@@ -693,13 +693,13 @@ const ei=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/i
|
|
693
693
|
/*button_binding*/t[11](i),
|
694
694
|
/*div1_binding*/t[12](n)},p(e,[t]){/*customtext, $_*/33&t&&a!==(a=/*customtext*/(e[0]||/*$_*/e[5]("panicButton.panicButtonString"))+"")&&T(o,a),/*panicLoading*/16&t&&x(i,"PanicButtonAnimation",/*panicLoading*/e[4]),/*alternativestyling*/2&t&&s!==(s=/*alternativestyling*/"true"==e[1]?"PanicButtonV2":"")&&k(n,"class",s)},i:e,o:e,d(e){e&&p(n)
|
695
695
|
/*button_binding*/,t[11](null),
|
696
|
-
/*div1_binding*/t[12](null)}}}function ii(e,t,n){let r;c(e,Qr,(e=>n(5,r=e)));let i,o,s,{lang:a="en"}=t,{customtext:l=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{alternativestyling:d=""}=t,{
|
696
|
+
/*div1_binding*/t[12](null)}}}function ii(e,t,n){let r;c(e,Qr,(e=>n(5,r=e)));let i,o,s,{lang:a="en"}=t,{customtext:l=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{alternativestyling:d=""}=t,{translationurl:f=""}=t,p=!1,m=0,g=window.navigator.userAgent;Object.keys(ni).forEach((e=>{ti(e,ni[e])}));const y=()=>{m=0,n(4,p=!0),s=setInterval((()=>{m++,m>=2&&(window.postMessage({type:"PanicButtonClicked"},window.location.href),clearInterval(s),
|
697
697
|
//Analytics event
|
698
698
|
"function"==typeof gtag&>ag("event","PanicButtonClicked",{context:"PanicButton"}))}),1e3)},b=()=>{n(4,p=!1),clearInterval(s)};return D((()=>()=>{n(4,p=!1),null==i||i.removeEventListener("mousedown",y),null==i||i.removeEventListener("touchstart",y),
|
699
699
|
// on mouseup stop interval count
|
700
|
-
null==i||i.removeEventListener("mouseup",b),null==i||i.removeEventListener("touchend",b)})),e.$$set=e=>{"lang"in e&&n(7,a=e.lang),"customtext"in e&&n(0,l=e.customtext),"clientstyling"in e&&n(8,u=e.clientstyling),"clientstylingurl"in e&&n(9,h=e.clientstylingurl),"alternativestyling"in e&&n(1,d=e.alternativestyling),"
|
700
|
+
null==i||i.removeEventListener("mouseup",b),null==i||i.removeEventListener("touchend",b)})),e.$$set=e=>{"lang"in e&&n(7,a=e.lang),"customtext"in e&&n(0,l=e.customtext),"clientstyling"in e&&n(8,u=e.clientstyling),"clientstylingurl"in e&&n(9,h=e.clientstylingurl),"alternativestyling"in e&&n(1,d=e.alternativestyling),"translationurl"in e&&n(10,f=e.translationurl)},e.$$.update=()=>{var t;/*panicButton*/4&e.$$.dirty&&i&&(null==i||i.addEventListener("mousedown",y,!1),null==i||i.addEventListener("touchstart",y,!1),
|
701
701
|
// on mouseup stop interval count
|
702
|
-
null==i||i.addEventListener("mouseup",b,!1),null==i||i.addEventListener("touchend",b,!1)),/*lang*/128&e.$$.dirty&&a&&(t=a,
|
702
|
+
null==i||i.addEventListener("mouseup",b,!1),null==i||i.addEventListener("touchend",b,!1)),/*lang*/128&e.$$.dirty&&a&&(t=a,Yr.set(t)),/*clientstyling, customStylingContainer*/264&e.$$.dirty&&u&&o&&(()=>{let e=document.createElement("style");e.innerHTML=u,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/520&e.$$.dirty&&h&&o&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&f&&fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ti(t,e[t])}))})).catch((e=>{console.log(e)}))},[l,d,i,o,p,r,g,a,u,h,f,function(e){P[e?"unshift":"push"]((()=>{i=e,n(2,i)}))},function(e){P[e?"unshift":"push"]((()=>{o=e,n(3,o)}))}]}!customElements.get("panic-button")&&customElements.define("panic-button",class extends V{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid #D0046C;background-color:#D0046C;font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid #D0046C;background-color:#D0046C;width:100% !important;height:30px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:#D0046C;width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid #F57F17;background-color:#F57F17;width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid #F57F17;background-color:#F57F17;font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:#F57F17;width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}</style>",j(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},ii,ri,o,{lang:7,customtext:0,clientstyling:8,clientstylingurl:9,alternativestyling:1,translationurl:10},null),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["lang","customtext","clientstyling","clientstylingurl","alternativestyling","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),N()}get customtext(){return this.$$.ctx[0]}set customtext(e){this.$$set({customtext:e}),N()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get alternativestyling(){return this.$$.ctx[1]}set alternativestyling(e){this.$$set({alternativestyling:e}),N()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),N()}});var oi=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return ze(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
703
703
|
// This is done to register the method called with moment()
|
704
704
|
// without creating circular dependencies.
|
705
705
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
@@ -726,9 +726,9 @@ r[n]=f({},r[n]));return r}function $(e){null!=e&&this.set(e)}r.suppressDeprecati
|
|
726
726
|
// padded: ['MM', 2]
|
727
727
|
// ordinal: 'Mo'
|
728
728
|
// callback: function () { this.month() + 1 }
|
729
|
-
function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function
|
729
|
+
function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(I);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=Y(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}
|
730
730
|
// format date using native date object
|
731
|
-
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),C[t]=C[t]||
|
731
|
+
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),C[t]=C[t]||U(t),C[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;n>=0&&B.test(e);)e=e.replace(B,r),B.lastIndex=0,n-=1;return e}var V={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"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",K=/\d{1,2}/;function q(e){return this._ordinal.replace("%d",e)}var J={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"};function Q(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)a(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function ae(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function he(e,t){return function(n){return null!=n?(fe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
732
732
|
// MOMENTS
|
733
733
|
function pe(e){return D(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=re(e)]))return this[e](t);return this}var ge,ye=/\d/,// 0 - 9
|
734
734
|
be=/\d\d/,// 00 - 99
|
@@ -750,9 +750,9 @@ $e=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
750
750
|
// includes scottish gaelic two word and hyphenated months
|
751
751
|
Ae=/[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 He(e,t,n){ge[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Fe(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ie(e))}
|
752
752
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
753
|
-
function Ie(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ce={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ce[e[n]]=i}function Re(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function
|
753
|
+
function Ie(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ce={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ce[e[n]]=i}function Re(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ye(e,t,n){null!=t&&a(Ce,e)&&Ce[e](t,n._a,n,e)}var Ue,Ge=0,je=1,Ve=2,We=3,Ze=4,Xe=5,Ke=6,qe=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
754
754
|
// FORMATTING
|
755
|
-
|
755
|
+
Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
756
756
|
// I know
|
757
757
|
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
758
758
|
// ALIASES
|
@@ -766,7 +766,7 @@ null!=i?t[je]=i:g(n).invalidMonth=e}));
|
|
766
766
|
// LOCALES
|
767
767
|
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ae,ot=Ae;function st(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
768
768
|
// this is not used
|
769
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=
|
769
|
+
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ue.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,s))||-1!==(i=Ue.call(this._longMonthsParse,s))?i:null:-1!==(i=Ue.call(this._longMonthsParse,s))||-1!==(i=Ue.call(this._shortMonthsParse,s))?i:null}function ut(e,t,n){var r,i,o;if(this._monthsParseExact)return lt.call(this,e,t,n);
|
770
770
|
// TODO: add sorting
|
771
771
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
772
772
|
// see sorting in computeMonthsParse
|
@@ -840,7 +840,7 @@ se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
840
840
|
// PARSING
|
841
841
|
He("d",ke),He("e",ke),He("E",ke),He("dd",(function(e,t){return t.weekdaysMinRegex(e)})),He("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),He("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
842
842
|
// if we didn't get a weekday name, mark the date as invalid
|
843
|
-
null!=i?t.d=i:g(n).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=Ae,Ct=Ae,Nt=Ae;function Rt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function
|
843
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=Ae,Ct=Ae,Nt=Ae;function Rt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Yt(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._shortWeekdaysParse,s))||-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,s))||-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,s))||-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
844
844
|
// test the regex
|
845
845
|
if(
|
846
846
|
// make the regex if we don't have it already
|
@@ -930,7 +930,7 @@ Ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|J
|
|
930
930
|
// date from iso format
|
931
931
|
function On(e){var t,n,r,i,o,s,a=e._i,l=kn.exec(a)||En.exec(a),u=Sn.length,c=xn.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(xn[t][1].exec(l[3])){
|
932
932
|
// match[2] should be 'T' or space
|
933
|
-
o=(l[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),
|
933
|
+
o=(l[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function Pn(e,t,n,r,i,o){var s=[$n(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function $n(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){
|
934
934
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
935
935
|
return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hn(e,t,n){return!e||Ft.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Fn(e,t,n){if(e)return Dn[e];if(t)
|
936
936
|
// the only allowed military tz is Z
|
@@ -957,7 +957,7 @@ function Rn(e){var t,n,r,i,o,s=[];if(!e._d){
|
|
957
957
|
// * if year is given, don't default anything
|
958
958
|
for(r=Nn(e),
|
959
959
|
//compute day of the year from weeks and weekdays
|
960
|
-
e._w&&null==e._a[Ve]&&null==e._a[je]&&
|
960
|
+
e._w&&null==e._a[Ve]&&null==e._a[je]&&Yn(e),
|
961
961
|
//if the day of the year is set, figure out what it is
|
962
962
|
null!=e._dayOfYear&&(o=Cn(e._a[Ge],r[Ge]),(e._dayOfYear>gt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[je]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
963
963
|
// Zero out whatever was not defaulted, including time
|
@@ -968,7 +968,7 @@ for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
968
968
|
// with parseZone.
|
969
969
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[We]=24),
|
970
970
|
// check for mismatching day of week
|
971
|
-
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function
|
971
|
+
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
|
972
972
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
973
973
|
// how we interpret now (local, utc, fixed offset). So create
|
974
974
|
// a now version of current config (take local/utc/offset flags, and
|
@@ -984,13 +984,13 @@ i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
|
|
984
984
|
i=o),r<1||r>Tt(n,o,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(a=kt(n,r,i,o,s),e._a[Ge]=a.year,e._dayOfYear=a.dayOfYear)}
|
985
985
|
// constant that refers to the ISO standard
|
986
986
|
// date from string and format string
|
987
|
-
function
|
987
|
+
function Un(e){
|
988
988
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
989
989
|
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;
|
990
990
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
991
991
|
var t,n,i,o,s,a,l,u=""+e._i,c=u.length,h=0;for(l=(i=j(e._f,e._locale).match(I)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(Fe(o,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),
|
992
992
|
// don't parse if it's not a known token
|
993
|
-
N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),
|
993
|
+
N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ye(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);
|
994
994
|
// add remaining unparsed input length to the string
|
995
995
|
g(e).charsLeftOver=c-h,u.length>0&&g(e).unusedInput.push(u),
|
996
996
|
// clear _12h flag if hour is <= 12
|
@@ -1002,13 +1002,13 @@ a=g(e).era)&&(e._a[Ge]=e._locale.erasConvertYear(a,e._a[Ge])),Rn(e),wn(e)}else I
|
|
1002
1002
|
// Fallback
|
1003
1003
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
1004
1004
|
// date from string and array of format strings
|
1005
|
-
function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],
|
1005
|
+
function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),y(t)&&(s=!0),
|
1006
1006
|
// if there is any input that was not parsed add a penalty for that format
|
1007
1007
|
o+=g(t).charsLeftOver,
|
1008
1008
|
//or tokens
|
1009
1009
|
o+=10*g(t).unusedTokens.length,g(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));f(e,n||t)}function Vn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Rn(e)}}function Wn(e){var t=new k(wn(zn(e)));return t._nextDay&&(
|
1010
1010
|
// Adding is smart enough around DST
|
1011
|
-
t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||_n(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new k(wn(t)):(h(t)?e._d=t:o(n)?jn(e):n?
|
1011
|
+
t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||_n(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new k(wn(t)):(h(t)?e._d=t:o(n)?jn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;u(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Bn(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Rn(e)):s(t)?Vn(e):c(t)?
|
1012
1012
|
// from milliseconds
|
1013
1013
|
e._d=new Date(t):r.createFromInputFallback(e)}function Xn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),
|
1014
1014
|
// object construction must be done this way.
|
@@ -1023,7 +1023,7 @@ r.RFC_2822=function(){};var qn=S("moment().min is deprecated, use moment.max ins
|
|
1023
1023
|
// first element is an array of moment objects.
|
1024
1024
|
function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
1025
1025
|
// TODO: Use [].sort instead?
|
1026
|
-
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===
|
1026
|
+
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===Ue.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
1027
1027
|
parseFloat(e[rr[n]])!==ce(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Dr(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ir(t),
|
1028
1028
|
// representation for dateAddRemove
|
1029
1029
|
this._milliseconds=+c+1e3*u+// 1000
|
@@ -1089,9 +1089,9 @@ function Ar(e,t){return function(n,r){var i;
|
|
1089
1089
|
//invert the arguments, but complain about it
|
1090
1090
|
return null===r||isNaN(+r)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Hr(this,Dr(n,r),e),this}}function Hr(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Dr.fn=ar.prototype,Dr.invalid=sr;var Fr=Ar(1,"add"),Ir=Ar(-1,"subtract");function Br(e){return"string"==typeof e||e instanceof String}
|
1091
1091
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
1092
|
-
function Cr(e){return E(e)||h(e)||Br(e)||c(e)||Rr(e)||Nr(e)||null==e}function Nr(e){var t,n,r=s(e)&&!l(e),i=!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"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Rr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Br(e)})).length),t&&n}function
|
1092
|
+
function Cr(e){return E(e)||h(e)||Br(e)||c(e)||Rr(e)||Nr(e)||null==e}function Nr(e){var t,n,r=s(e)&&!l(e),i=!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"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Rr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Br(e)})).length),t&&n}function Yr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){
|
1093
1093
|
// Support for single parameter, formats only overload to the calendar function
|
1094
|
-
1===arguments.length&&(arguments[0]?Cr(arguments[0])?(e=arguments[0],t=void 0):
|
1094
|
+
1===arguments.length&&(arguments[0]?Cr(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
1095
1095
|
// We want to compare the start of today, vs this.
|
1096
1096
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
1097
1097
|
var n=e||Kn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Kn(n)))}function jr(){return new k(this)}function Vr(e,t){var n=E(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=E(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=E(e)?e:Kn(e),o=E(t)?t:Kn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Zr(e,t){var n,r=E(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;// 1000
|
@@ -1140,7 +1140,7 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
1140
1140
|
// truncate time
|
1141
1141
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Fi(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
|
1142
1142
|
// truncate time
|
1143
|
-
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ii(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Bi(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ci(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Ri(e,t){return t.erasNameRegex(e)}function
|
1143
|
+
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ii(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Bi(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ci(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Ri(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||Le}function Gi(){var e,t,n=[],r=[],i=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Be(s[e].name)),n.push(Be(s[e].abbr)),i.push(Be(s[e].narrow)),o.push(Be(s[e].name)),o.push(Be(s[e].abbr)),o.push(Be(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
1144
1144
|
// FORMATTING
|
1145
1145
|
function ji(e,t){R(0,[e,e.length],0,t)}
|
1146
1146
|
// MOMENTS
|
@@ -1149,7 +1149,7 @@ function Vi(e){return qi.call(this,e,this.week(),this.weekday(),this.localeData(
|
|
1149
1149
|
// MOMENTS
|
1150
1150
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
1151
1151
|
// FORMATTING
|
1152
|
-
R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),He("N",Ni),He("NN",Ni),He("NNN",Ni),He("NNNN",Ri),He("NNNNN",
|
1152
|
+
R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),He("N",Ni),He("NN",Ni),He("NNN",Ni),He("NNNN",Ri),He("NNNNN",Yi),Ne(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),He("y",Le),He("yy",Le),He("yyy",Le),He("yyyy",Le),He("yo",Ui),Ne(["y","yy","yyy","yyyy"],Ge),Ne(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ge]=n._locale.eraYearOrdinalParse(e,i):t[Ge]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
|
1153
1153
|
// ALIASES
|
1154
1154
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
1155
1155
|
// PRIORITY
|
@@ -1222,7 +1222,7 @@ R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var uo=k.prototype;function co(e){r
|
|
1222
1222
|
// (true, 5)
|
1223
1223
|
// (true, fmt, 5)
|
1224
1224
|
// (true, fmt)
|
1225
|
-
function yo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function bo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function vo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=H,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=q,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=O,po.eras=Di,po.erasParse=Oi,po.erasConvertYear=Pi,po.erasAbbrRegex=Bi,po.erasNameRegex=Ii,po.erasNarrowRegex=Ci,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=St,po.firstDayOfYear=Lt,po.firstDayOfWeek=Mt,po.weekdays=Rt,po.weekdaysMin=
|
1225
|
+
function yo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=_n(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function bo(e,t){return go(e,t,"months")}function _o(e,t){return go(e,t,"monthsShort")}function vo(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=H,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=q,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=O,po.eras=Di,po.erasParse=Oi,po.erasConvertYear=Pi,po.erasAbbrRegex=Bi,po.erasNameRegex=Ii,po.erasNarrowRegex=Ci,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=St,po.firstDayOfYear=Lt,po.firstDayOfWeek=Mt,po.weekdays=Rt,po.weekdaysMin=Ut,po.weekdaysShort=Yt,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=Kt,po.isPM=nn,po.meridiem=sn,gn("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===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
1226
1226
|
// Side effect imports
|
1227
1227
|
r.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",_n);var Eo=Math.abs;function To(){var e=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),e.milliseconds=Eo(e.milliseconds),e.seconds=Eo(e.seconds),e.minutes=Eo(e.minutes),e.hours=Eo(e.hours),e.months=Eo(e.months),e.years=Eo(e.years),this}function So(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
1228
1228
|
// supports only 2.0-style add(1, 's') or add(duration)
|
@@ -1249,7 +1249,7 @@ t=this._days+Math.round(Po(this._months)),e){case"week":return t/7+r/6048e5;case
|
|
1249
1249
|
// Math.floor prevents floating point math errors here
|
1250
1250
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
1251
1251
|
// TODO: Use this.as('ms')?
|
1252
|
-
function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ho(e){return function(){return this.as(e)}}var Fo=Ho("ms"),Io=Ho("s"),Bo=Ho("m"),Co=Ho("h"),No=Ho("d"),Ro=Ho("w"),
|
1252
|
+
function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ho(e){return function(){return this.as(e)}}var Fo=Ho("ms"),Io=Ho("s"),Bo=Ho("m"),Co=Ho("h"),No=Ho("d"),Ro=Ho("w"),Yo=Ho("M"),Uo=Ho("Q"),Go=Ho("y");function jo(){return Dr(this)}function Vo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Wo("milliseconds"),Zo=Wo("seconds"),Xo=Wo("minutes"),Ko=Wo("hours"),qo=Wo("days"),Jo=Wo("months"),Qo=Wo("years");function es(){return ue(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
1253
1253
|
s:45,// seconds to minute
|
1254
1254
|
m:45,// minutes to hour
|
1255
1255
|
h:22,// hours to day
|
@@ -1275,13 +1275,13 @@ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
|
|
1275
1275
|
// 12 months -> 1 year
|
1276
1276
|
n=ue(c/12),c%=12,
|
1277
1277
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
1278
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=xo,hs.subtract=Mo,hs.as=$o,hs.asMilliseconds=Fo,hs.asSeconds=Io,hs.asMinutes=Bo,hs.asHours=Co,hs.asDays=No,hs.asWeeks=Ro,hs.asMonths=
|
1278
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=xo,hs.subtract=Mo,hs.as=$o,hs.asMilliseconds=Fo,hs.asSeconds=Io,hs.asMinutes=Bo,hs.asHours=Co,hs.asDays=No,hs.asWeeks=Ro,hs.asMonths=Yo,hs.asQuarters=Uo,hs.asYears=Go,hs.valueOf=Ao,hs._bubble=Do,hs.clone=jo,hs.get=Vo,hs.milliseconds=zo,hs.seconds=Zo,hs.minutes=Xo,hs.hours=Ko,hs.days=qo,hs.weeks=es,hs.months=Jo,hs.years=Qo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ai,hs.localeData=ui,hs.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=li,
|
1279
1279
|
// FORMATTING
|
1280
1280
|
R("X",0,0,"unix"),R("x",0,0,"valueOf"),
|
1281
1281
|
// PARSING
|
1282
1282
|
He("x",De),He("X",$e),Ne("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ne("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
1283
1283
|
//! moment.js
|
1284
|
-
r.version="2.29.3",i(Kn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=bo,r.isDate=h,r.locale=gn,r.invalid=b,r.duration=Dr,r.isMoment=E,r.weekdays=vo,r.parseZone=ho,r.localeData=_n,r.isDuration=lr,r.monthsShort=_o,r.weekdaysMin=ko,r.defineLocale=yn,r.updateLocale=bn,r.locales=vn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=
|
1284
|
+
r.version="2.29.3",i(Kn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=bo,r.isDate=h,r.locale=gn,r.invalid=b,r.duration=Dr,r.isMoment=E,r.weekdays=vo,r.parseZone=ho,r.localeData=_n,r.isDuration=lr,r.monthsShort=_o,r.weekdaysMin=ko,r.defineLocale=yn,r.updateLocale=bn,r.locales=vn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Ur,r.prototype=uo,
|
1285
1285
|
// currently HTML5 input type only supports 24-hour formats
|
1286
1286
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
1287
1287
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
@@ -1291,7 +1291,7 @@ TIME:"HH:mm",// <input type="time" />
|
|
1291
1291
|
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
|
1292
1292
|
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
1293
1293
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
1294
|
-
MONTH:"YYYY-MM"},r}()}));function si(e,t){xr(e,t)}const ai={en:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},de:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"}},fr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},ro:{casinoFooter:{timeText:"Ora",sessionTimer:"online de",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},es:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},pt:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},hr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata"}},sl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde, da bi vzeli 24 urni premor"}},pl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"}}},{document:li}=
|
1294
|
+
MONTH:"YYYY-MM"},r}()}));function si(e,t){xr(e,t)}const ai={en:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},de:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"}},fr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},ro:{casinoFooter:{timeText:"Ora",sessionTimer:"online de",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},es:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},pt:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Hold button for 3 seconds to take 24-hour timeout"}},hr:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde kako biste aktivirali vremensko ograničenje od 24 sata"}},sl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Držite gumb 3 sekunde, da bi vzeli 24 urni premor"}},pl:{casinoFooter:{timeText:"Time",sessionTimer:"logged in for",panicButton:"Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"}}},{document:li}=U;
|
1295
1295
|
/* src/CasinoFooterV2.svelte generated by Svelte v3.48.0 */function ui(e,t,n){const r=e.slice();return r[81]=t[n],r}function ci(e,t,n){const r=e.slice();return r[84]=t[n],r}function hi(e,t,n){const r=e.slice();return r[87]=t[n],r}
|
1296
1296
|
// (291:2) {#if headScript}
|
1297
1297
|
function di(e){let t,n;return{c(){t=g("script"),l(t.src,n=/*licenseScriptSrc*/e[24])||k(t,"src",n)},m(e,n){f(e,t,n)},p(e,r){/*licenseScriptSrc*/16777216&r[0]&&!l(t.src,n=/*licenseScriptSrc*/e[24])&&k(t,"src",n)},d(e){e&&p(t)}}}
|
@@ -1345,13 +1345,13 @@ function Ai(e){let t,n,r,i=/*operatorLanguage*/e[84]+"";return{c(){t=g("option")
|
|
1345
1345
|
function Hi(e){let t,n,r,i,o,s,a,u,c,h=/*language*/e[81].name+"";return{c(){t=g("li"),n=g("img"),i=g("a"),o=g("span"),s=b(h),k(n,"class","LanguageFlag"),l(n.src,r=/*language*/e[81].flag_icon_editable)||k(n,"src",r),k(i,"href","javascript:void(0)"),k(t,"class","OverlayLanguageOption"),k(t,"data-lang",a=/*language*/e[81].code)},m(r,a){f(r,t,a),d(t,n),d(t,i),d(i,o),d(o,s),u||(c=w(t,"click",/*overlayOptionTrigger*/e[38]),u=!0)},p(e,i){/*languages*/64&i[0]&&!l(n.src,r=/*language*/e[81].flag_icon_editable)&&k(n,"src",r),/*languages*/64&i[0]&&h!==(h=/*language*/e[81].name+"")&&T(s,h),/*languages*/64&i[0]&&a!==(a=/*language*/e[81].code)&&k(t,"data-lang",a)},d(e){e&&p(t),u=!1,c()}}}
|
1346
1346
|
// (476:6) {#if copyright}
|
1347
1347
|
function Fi(e){let t,n,r,o;return{c(){t=g("div"),k(t,"class","CopyrightAreaRights CopyrightArea")},m(i,s){f(i,t,s),r||(o=h(n=/*setContent*/e[35].call(null,t,/*copyright*/e[19])),r=!0)},p(e,t){n&&i(n.update)&&/*copyright*/524288&t[0]&&n.update.call(null,/*copyright*/e[19])},d(e){e&&p(t),r=!1,o()}}}function Ii(t){let n,r,i,o=/*headScript*/t[23]&&di(t);function s(e,t){/*hasErrors*/
|
1348
|
-
return e[21]?mi:/*isLoading*/e[22]?pi:fi}let a=s(t),l=a(t);return{c(){o&&o.c(),n=g("link"),r=_(),l.c(),i=v(),this.c=e,k(n,"href","https://fonts.googleapis.com/css?family=Roboto Condensed"),k(n,"rel","stylesheet"),k(n,"type","text/css")},m(e,t){o&&o.m(li.head,null),d(li.head,n),f(e,r,t),l.m(e,t),f(e,i,t)},p(e,t){/*headScript*/e[23]?o?o.p(e,t):(o=di(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(i.parentNode,i)))},i:e,o:e,d(e){o&&o.d(e),p(n),e&&p(r),l.d(e),e&&p(i)}}}function Bi(e,t,n){let r;c(e,Qr,(e=>n(68,r=e)));let i,o,s,a,l,u,h,{endpoint:d=""}=t,{lang:f="en"}=t,{env:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{
|
1348
|
+
return e[21]?mi:/*isLoading*/e[22]?pi:fi}let a=s(t),l=a(t);return{c(){o&&o.c(),n=g("link"),r=_(),l.c(),i=v(),this.c=e,k(n,"href","https://fonts.googleapis.com/css?family=Roboto Condensed"),k(n,"rel","stylesheet"),k(n,"type","text/css")},m(e,t){o&&o.m(li.head,null),d(li.head,n),f(e,r,t),l.m(e,t),f(e,i,t)},p(e,t){/*headScript*/e[23]?o?o.p(e,t):(o=di(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(i.parentNode,i)))},i:e,o:e,d(e){o&&o.d(e),p(n),e&&p(r),l.d(e),e&&p(i)}}}function Bi(e,t,n){let r;c(e,Qr,(e=>n(68,r=e)));let i,o,s,a,l,u,h,{endpoint:d=""}=t,{lang:f="en"}=t,{env:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,{clockenabled:b=""}=t,{clocksecondsenabled:_=""}=t,{clockcustomformat:v=""}=t,{clocktext:w="Time:"}=t,{languageselectorenabled:k="true"}=t,{languageslist:E="en, ro"}=t,{languagedisplaytype:T="name"}=t,{session:S=""}=t,{userid:x=""}=t,{userendpoint:M=""}=t,{panicbuttonenabled:L="true"}=t,{sessiontimerenabled:O="true"}=t,{grouplink:$="true"}=t,{baseurl:A=""}=t,H=window.navigator.userAgent,F=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(H),I="",B=[],C="",N=[],R="",Y=[],U="",G=[],j="",V=[],W="",z=[],Z="",X="",K=!1,q=!1,J=!1,Q="",ee="",te=!1,ne="hr",re=[],ie=[],oe="",se="",ae=!1,le="",ue=document.createElement("p"),ce=document.createElement("p");!function({withLocale:e,translations:t}){Yr.subscribe((n=>{null==n&&(Er.set(t),Yr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
1349
1349
|
/*dictionary.set(translations);
|
1350
1350
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(ai).forEach((e=>{si(e,ai[e])}));let he=r("casinoFooter.panicButton");const de=()=>{(function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),Ze(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))})(M,S).then((e=>{e.Guid,e.UserID,n(26,te=!0),fe(e)}),(e=>{n(26,te=!1),console.error("Error while checking the session - ",e)}))},fe=e=>{
|
1351
1351
|
// using Date instead of moment because they recommend in their docs to stop using it for new projects
|
1352
|
-
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ue.innerHTML=` ${r("casinoFooter.sessionTimer")} ${le}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=v?v:`hh:mm${"true"===_?":ss":""} (UTC Z)`;o=oi().format(e),ce.innerHTML=` ${w} ${o}`},me=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:ne},window.location.href)},ge=()=>{let e=!1;re.forEach(((t,r)=>{if(t.code==ne.toLowerCase()){let r="";switch(e=!0,n(31,se=t.flag_icon_editable),T){case"name":r=t.name;break;case"translatedName":r=t.translated_name;break;default:r=t.code}n(30,oe=r)}})),e||n(30,oe=ne)},ye=()=>{var e;e=f,
|
1352
|
+
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ue.innerHTML=` ${r("casinoFooter.sessionTimer")} ${le}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=v?v:`hh:mm${"true"===_?":ss":""} (UTC Z)`;o=oi().format(e),ce.innerHTML=` ${w} ${o}`},me=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:ne},window.location.href)},ge=()=>{let e=!1;re.forEach(((t,r)=>{if(t.code==ne.toLowerCase()){let r="";switch(e=!0,n(31,se=t.flag_icon_editable),T){case"name":r=t.name;break;case"translatedName":r=t.translated_name;break;default:r=t.code}n(30,oe=r)}})),e||n(30,oe=ne)},ye=()=>{var e;e=f,Yr.set(e),n(33,he=r("casinoFooter.panicButton"))};D((()=>()=>{clearInterval(l),clearInterval(u)}));return e.$$set=e=>{"endpoint"in e&&n(39,d=e.endpoint),"lang"in e&&n(0,f=e.lang),"env"in e&&n(40,p=e.env),"clientstyling"in e&&n(1,m=e.clientstyling),"clientstylingurl"in e&&n(2,g=e.clientstylingurl),"translationurl"in e&&n(41,y=e.translationurl),"clockenabled"in e&&n(42,b=e.clockenabled),"clocksecondsenabled"in e&&n(43,_=e.clocksecondsenabled),"clockcustomformat"in e&&n(44,v=e.clockcustomformat),"clocktext"in e&&n(45,w=e.clocktext),"languageselectorenabled"in e&&n(3,k=e.languageselectorenabled),"languageslist"in e&&n(46,E=e.languageslist),"languagedisplaytype"in e&&n(47,T=e.languagedisplaytype),"session"in e&&n(48,S=e.session),"userid"in e&&n(49,x=e.userid),"userendpoint"in e&&n(50,M=e.userendpoint),"panicbuttonenabled"in e&&n(4,L=e.panicbuttonenabled),"sessiontimerenabled"in e&&n(51,O=e.sessiontimerenabled),"grouplink"in e&&n(52,$=e.grouplink),"baseurl"in e&&n(5,A=e.baseurl)},e.$$.update=()=>{/*lang*/1&e.$$.dirty[0]&&f&&ye(),/*languageslist*/32768&e.$$.dirty[1]&&E&&(n(28,ie=E.replace(/ /g,"").split(",")),n(28,ie=ie.map((e=>e.toUpperCase())))),/*session, userid, userendpoint*/917504&e.$$.dirty[1]&&S&&x&&M&&de(),/*lang*/1&e.$$.dirty[0]|/*endpoint, env*/768&e.$$.dirty[1]&&d&&f&&p&&(()=>{let e=new URL(`${d}/${f}/footer-raw-data`);e.searchParams.append("env",p);let t=ei(H);t&&("PC"===t?e.searchParams.append("device","dk"):"iPad"===t||"iPhone"===t?e.searchParams.append("device","ios"):e.searchParams.append("device","mtWeb")),"true"==$&&e.searchParams.append("helpLinks_groupby","helpLinkCategory"),n(22,q=!0),fetch(e.href).then((e=>e.json())).then((e=>{let t,r,o;n(22,q=!1),i=e,n(8,({gameVendorsLinksTitle:I,gameVendorsRepeater:B,paymentLinksTitle:C,paymentMethodsRepeater:N,sponsorsLinksTitle:R,sponsorsRepeater:Y,helpLinksTitle:U,helpLinksRepeater:G,licensesLinksTitle:j,licensesRepeater:V,socialLinksTitle:W,socialLinksRepeater:z,copyright:Z,licenseDesc:X,licenseHeadScriptSrc:t,licenseScriptBody:r,licenseEvent:o,language:re}=i),I,n(9,B),n(10,C),n(11,N),n(12,R),n(13,Y),n(14,G),n(15,j),n(16,V),n(17,W),n(18,z),n(19,Z),n(20,X),n(6,re)),re&&(n(32,ae=!0),ge()),(null==t?void 0:t.length)>0&&(n(23,J=!0),n(24,Q=t)),(null==r?void 0:r.length)>0&&n(25,ee=r),window.postMessage({type:o},window.location.href),window.postMessage({type:"FooterData",gameVendorsRepeater:B,paymentMethodsRepeater:N,sponsorsRepeater:Y,helpLinksRepeater:G,licensesRepeater:V,socialLinksRepeater:z},window.location.href)})).catch((e=>{n(21,K=!0),n(22,q=!1),console.error(e)}))})(),/*translationurl*/1024&e.$$.dirty[1]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{si(t,e[t])}))})).catch((e=>{console.log(e)})),/*clockenabled, clocksecondsenabled, clockcustomformat*/14336&e.$$.dirty[1]&&"false"!==b&&_&&v&&pe(),/*clockenabled, clocksecondsenabled*/6144&e.$$.dirty[1]&&"false"!==b&&_&&(s="true"==_?1e3:6e4)&&(l=setInterval((()=>{pe()}),s)),/*lang, languages*/65&e.$$.dirty[0]&&f&&n(27,ne=f)&&re&&re.length>0&&ge(),/*clientstyling, customStylingContainer*/130&e.$$.dirty[0]&&m&&h&&(()=>{let e=document.createElement("style");e.innerHTML=m,h.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/132&e.$$.dirty[0]&&g&&h&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{h.appendChild(t)}),1)}))})()},[f,m,g,k,L,A,re,h,I,B,C,N,R,Y,G,j,V,W,z,Z,X,K,q,J,Q,ee,te,ne,ie,a,oe,se,ae,he,F,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n),
|
1353
1353
|
//Add clock
|
1354
1354
|
"true"===b&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ce),
|
1355
1355
|
//Add session timer
|
1356
|
-
"true"==O&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ue)},me,()=>{a.classList.toggle("hidden")},e=>{let t=e.target.closest(".OverlayLanguageOption");n(27,ne=t.getAttribute("data-lang")),me(),ge(),a.classList.toggle("hidden")},d,p,y,b,_,v,w,E,T,S,x,M,O,$,function(){ne=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n(27,ne),n(0,f),n(6,re),n(28,ie)},()=>me(),function(e){P[e?"unshift":"push"]((()=>{a=e,n(29,a)}))},function(e){P[e?"unshift":"push"]((()=>{h=e,n(7,h)}))}]}class Ci extends V{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, Roboto, Helvetica}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);text-align:center}.Footer{position:relative;background-color:#E8E9EB;display:flex;padding:21px 12px;flex-direction:row}.FooterSideMobile{margin-top:44px}.FooterSide{justify-content:center;height:100%;display:flex;flex-direction:column;background-color:#E8E9EB}.FooterSide .FooterTitle{font-family:'Roboto Condensed';font-weight:500;font-size:12px;color:#111;text-transform:uppercase;margin:21px 12px}.FooterGrid{font-weight:400;height:100%;display:flex;max-width:1200px;margin:auto;background-color:#E8E9EB;flex-direction:column;align-items:center;justify-content:center}.FooterGrid .GridRow{display:flex;flex-flow:row wrap;width:100%;align-items:flex-start;justify-content:center;align-items:center;padding:20px 0;text-align:left;max-width:1100px}.FooterGrid .GridRow p{display:inline;font-family:'Roboto';font-style:normal;font-weight:300;font-size:12px;color:#111}.FooterGrid .GridRow .LicenseDesc{flex:1;max-width:575px;line-height:1.3;display:flex;flex-direction:column;align-items:flex-start}.FooterGrid .GridRow .LicenseDesc .DetailedLicenses{font-size:10px;color:var(--emfe-w-color-gray-150, #828282)}.FooterGrid .CopyrightAreaRights{margin-top:10px}.FooterGrid .CopyrightTextArea p,.FooterGrid .CopyrightArea p{margin:0;color:var(--emfe-w-color-gray-150, #828282);font-size:9px}@media only screen and (max-width: 768px){.Footer{display:flex;flex-direction:column}.FooterSide{position:relative;margin-left:14px}.FooterGrid{padding:0}.FooterGrid:last-child{padding-bottom:50px}.GridRow{border-bottom:1px solid rgba(0, 0, 0, 0.05);gap:15px}.GridRow:last-child{border:none}}.ItemLanguage{display:none}#LanguageList{padding:0;margin:0}.LanguageSelectorContainer{position:relative}.LanguageSelectorOverlay{position:relative;font-size:12px}.DrawerButton{height:30px;width:150px;background:inherit;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-evenly;align-items:center;border-radius:0px;border:0;position:relative}.LanguageDrawer{position:absolute;background:#E8E9EB;width:150px;bottom:30px;padding:6px 0;left:7px}.LanguageDrawer.hidden{display:none}.LanguageFlag{margin-right:8px;background:black;border-radius:50%;width:16px;height:16px}.OverlayLanguageOption{justify-content:center;list-style:none;position:relative;height:35px;padding:0;justify-content:space-between;display:flex;flex-direction:row}.OverlayLanguageOption img{position:absolute;z-index:0;cursor:pointer;top:6px;left:12px}.OverlayLanguageOption a{text-decoration:none;color:black;display:inline-block;width:150px}.OverlayLanguageOption a span{width:100%;display:flex;justify-content:center;margin:4px 0}</style>",j(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},Bi,Ii,o,{endpoint:39,lang:0,env:40,clientstyling:1,clientstylingurl:2,
|
1356
|
+
"true"==O&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ue)},me,()=>{a.classList.toggle("hidden")},e=>{let t=e.target.closest(".OverlayLanguageOption");n(27,ne=t.getAttribute("data-lang")),me(),ge(),a.classList.toggle("hidden")},d,p,y,b,_,v,w,E,T,S,x,M,O,$,function(){ne=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n(27,ne),n(0,f),n(6,re),n(28,ie)},()=>me(),function(e){P[e?"unshift":"push"]((()=>{a=e,n(29,a)}))},function(e){P[e?"unshift":"push"]((()=>{h=e,n(7,h)}))}]}class Ci extends V{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, Roboto, Helvetica}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);text-align:center}.Footer{position:relative;background-color:#E8E9EB;display:flex;padding:21px 12px;flex-direction:row}.FooterSideMobile{margin-top:44px}.FooterSide{justify-content:center;height:100%;display:flex;flex-direction:column;background-color:#E8E9EB}.FooterSide .FooterTitle{font-family:'Roboto Condensed';font-weight:500;font-size:12px;color:#111;text-transform:uppercase;margin:21px 12px}.FooterGrid{font-weight:400;height:100%;display:flex;max-width:1200px;margin:auto;background-color:#E8E9EB;flex-direction:column;align-items:center;justify-content:center}.FooterGrid .GridRow{display:flex;flex-flow:row wrap;width:100%;align-items:flex-start;justify-content:center;align-items:center;padding:20px 0;text-align:left;max-width:1100px}.FooterGrid .GridRow p{display:inline;font-family:'Roboto';font-style:normal;font-weight:300;font-size:12px;color:#111}.FooterGrid .GridRow .LicenseDesc{flex:1;max-width:575px;line-height:1.3;display:flex;flex-direction:column;align-items:flex-start}.FooterGrid .GridRow .LicenseDesc .DetailedLicenses{font-size:10px;color:var(--emfe-w-color-gray-150, #828282)}.FooterGrid .CopyrightAreaRights{margin-top:10px}.FooterGrid .CopyrightTextArea p,.FooterGrid .CopyrightArea p{margin:0;color:var(--emfe-w-color-gray-150, #828282);font-size:9px}@media only screen and (max-width: 768px){.Footer{display:flex;flex-direction:column}.FooterSide{position:relative;margin-left:14px;margin-top:66px}.FooterGrid{padding:0}.FooterGrid:last-child{padding-bottom:50px}.GridRow{border-bottom:1px solid rgba(0, 0, 0, 0.05);gap:15px}.GridRow:last-child{border:none}}.ItemLanguage{display:none}#LanguageList{padding:0;margin:0}.LanguageSelectorContainer{position:relative}.LanguageSelectorOverlay{position:relative;font-size:12px}.DrawerButton{height:30px;width:150px;background:inherit;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-evenly;align-items:center;border-radius:0px;border:0;position:relative}.LanguageDrawer{position:absolute;background:#E8E9EB;width:150px;bottom:30px;padding:6px 0;left:7px}.LanguageDrawer.hidden{display:none}.LanguageFlag{margin-right:8px;background:black;border-radius:50%;width:16px;height:16px}.OverlayLanguageOption{justify-content:center;list-style:none;position:relative;height:35px;padding:0;justify-content:space-between;display:flex;flex-direction:row}.OverlayLanguageOption img{position:absolute;z-index:0;cursor:pointer;top:6px;left:12px}.OverlayLanguageOption a{text-decoration:none;color:black;display:inline-block;width:150px}.OverlayLanguageOption a span{width:100%;display:flex;justify-content:center;margin:4px 0}</style>",j(this,{target:this.shadowRoot,props:M(this.attributes),customElement:!0},Bi,Ii,o,{endpoint:39,lang:0,env:40,clientstyling:1,clientstylingurl:2,translationurl:41,clockenabled:42,clocksecondsenabled:43,clockcustomformat:44,clocktext:45,languageselectorenabled:3,languageslist:46,languagedisplaytype:47,session:48,userid:49,userendpoint:50,panicbuttonenabled:4,sessiontimerenabled:51,grouplink:52,baseurl:5},null,[-1,-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","lang","env","clientstyling","clientstylingurl","translationurl","clockenabled","clocksecondsenabled","clockcustomformat","clocktext","languageselectorenabled","languageslist","languagedisplaytype","session","userid","userendpoint","panicbuttonenabled","sessiontimerenabled","grouplink","baseurl"]}get endpoint(){return this.$$.ctx[39]}set endpoint(e){this.$$set({endpoint:e}),N()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),N()}get env(){return this.$$.ctx[40]}set env(e){this.$$set({env:e}),N()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[41]}set translationurl(e){this.$$set({translationurl:e}),N()}get clockenabled(){return this.$$.ctx[42]}set clockenabled(e){this.$$set({clockenabled:e}),N()}get clocksecondsenabled(){return this.$$.ctx[43]}set clocksecondsenabled(e){this.$$set({clocksecondsenabled:e}),N()}get clockcustomformat(){return this.$$.ctx[44]}set clockcustomformat(e){this.$$set({clockcustomformat:e}),N()}get clocktext(){return this.$$.ctx[45]}set clocktext(e){this.$$set({clocktext:e}),N()}get languageselectorenabled(){return this.$$.ctx[3]}set languageselectorenabled(e){this.$$set({languageselectorenabled:e}),N()}get languageslist(){return this.$$.ctx[46]}set languageslist(e){this.$$set({languageslist:e}),N()}get languagedisplaytype(){return this.$$.ctx[47]}set languagedisplaytype(e){this.$$set({languagedisplaytype:e}),N()}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),N()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),N()}get userendpoint(){return this.$$.ctx[50]}set userendpoint(e){this.$$set({userendpoint:e}),N()}get panicbuttonenabled(){return this.$$.ctx[4]}set panicbuttonenabled(e){this.$$set({panicbuttonenabled:e}),N()}get sessiontimerenabled(){return this.$$.ctx[51]}set sessiontimerenabled(e){this.$$set({sessiontimerenabled:e}),N()}get grouplink(){return this.$$.ctx[52]}set grouplink(e){this.$$set({grouplink:e}),N()}get baseurl(){return this.$$.ctx[5]}set baseurl(e){this.$$set({baseurl:e}),N()}}return!customElements.get("casino-footer-v2")&&customElements.define("casino-footer-v2",Ci),Ci}));
|
1357
1357
|
//# sourceMappingURL=casino-footer-v2.js.map
|