@everymatrix/casino-search-nd 1.94.112 → 1.94.113

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.
Files changed (24) hide show
  1. package/components/{CasinoGameThumbnailNd-y7qe8yhS.js → CasinoGameThumbnailNd-BD8y_MWa.js} +2 -2
  2. package/components/{CasinoGameThumbnailNd-DPs-j2Ti.cjs → CasinoGameThumbnailNd-C5asPdU6.cjs} +1 -1
  3. package/components/{CasinoGameThumbnailNd-CD6sfeOZ.js → CasinoGameThumbnailNd-Nbxhn0ZX.js} +2 -2
  4. package/components/{CasinoSearchNd-Db_jglBj.cjs → CasinoSearchNd-B9l6GKdq.cjs} +1 -1
  5. package/components/{CasinoSearchNd-B6PnLSCU.js → CasinoSearchNd-DBI7J_hw.js} +1 -1
  6. package/components/{CasinoSearchNd-CfQr4Jqi.js → CasinoSearchNd-X1yAXD7J.js} +1 -1
  7. package/es2015/casino-search-nd.cjs +1 -1
  8. package/es2015/casino-search-nd.js +1 -1
  9. package/esnext/casino-search-nd.js +1 -1
  10. package/package.json +1 -1
  11. package/stencil/index-97d17652-BeQGJyxy.js +532 -0
  12. package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-Ce2P8K1l.js} +176 -170
  13. package/stencil/index-97d17652-QrAXVnlo.cjs +1 -0
  14. package/stencil/{ui-image-BX-FBhad.cjs → ui-image-DYxxHglY.cjs} +1 -1
  15. package/stencil/{ui-image-Ch-GHki1.js → ui-image-Du28hUkG.js} +1 -1
  16. package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Kp-i1Epn.js} +1 -1
  17. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CEPR_2Zl.js} +1 -1
  18. package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-CynWE8qT.cjs} +1 -1
  19. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-DdUCzkcr.js} +1 -1
  20. package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-C0sJC5CL.cjs} +1 -1
  21. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-Do1rIyeJ.js} +2 -2
  22. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-N1zHirfP.js} +2 -2
  23. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  24. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
@@ -15,4 +15,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */var Wt=function(e,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Wt(e,t)};function je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function $t(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Yt(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}function ie(e){return typeof e=="function"}function Ln(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ht=Ln(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
17
17
  `+r.map(function(n,a){return a+1+") "+n.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Xt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var dt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$t(o),u=s.next();!u.done;u=s.next()){var l=u.value;l.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ie(c))try{c()}catch(v){i=v instanceof Ht?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=$t(h),m=d.next();!m.done;m=d.next()){var p=m.value;try{Cr(p)}catch(v){i=i!=null?i:[],v instanceof Ht?i=Yt(Yt([],Vt(i)),Vt(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}}if(i)throw new Ht(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Cr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Xt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Xt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Nn=dt.EMPTY;function In(e){return e instanceof dt||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Cr(e){ie(e)?e():e.unsubscribe()}var Ho={Promise:void 0},Mo={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Yt([e,t],Vt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ao(e){Mo.setTimeout(function(){throw e})}function Pr(){}function Ke(e){e()}var Rn=function(e){je(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,In(r)&&r.add(n)):n.destination=No,n}return t.create=function(r,n,a){return new qt(r,n,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(dt),Bo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ze(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ze(n)}else ze(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ze(r)}},e}(),qt=function(e){je(t,e);function t(r,n,a){var i=e.call(this)||this,o;return ie(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:o=r,i.destination=new Bo(o),i}return t}(Rn);function ze(e){Ao(e)}function Lo(e){throw e}var No={closed:!0,next:Pr,error:Lo,complete:Pr},Io=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ro(e){return e}function Do(e){return e.length===0?Ro:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Or=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var a=this,i=Uo(t)?t:new qt(t,r,n);return Ke(function(){var o=a,s=o.operator,u=o.source;i.add(s?s.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Hr(r),new r(function(a,i){var o=new qt({next:function(s){try{t(s)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Io]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Do(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Hr(t),new t(function(n,a){var i;r.subscribe(function(o){return i=o},function(o){return a(o)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Hr(e){var t;return(t=e!=null?e:Ho.Promise)!==null&&t!==void 0?t:Promise}function ko(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Uo(e){return e&&e instanceof Rn||ko(e)&&In(e)}var Fo=Ln(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Dn=function(e){je(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Mr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fo},t.prototype.next=function(r){var n=this;Ke(function(){var a,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=$t(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;Ke(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,a=this,i=a.hasError,o=a.isStopped,s=a.observers;return i||o?Nn:(this.currentObservers=null,s.push(r),new dt(function(){n.currentObservers=null,Xt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,i=n.thrownError,o=n.isStopped;a?r.error(i):o&&r.complete()},t.prototype.asObservable=function(){var r=new Or;return r.source=this,r},t.create=function(r,n){return new Mr(r,n)},t}(Or),Mr=function(e){je(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:Nn},t}(Dn),kn={now:function(){return(kn.delegate||Date).now()},delegate:void 0},Go=function(e){je(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=kn);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,a=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,u=n._windowTime;a||(i.push(r),!o&&i.push(s.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,i=a._infiniteTimeWindow,o=a._buffer,s=o.slice(),u=0;u<s.length&&!r.closed;u+=i?1:2)r.next(s[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,i=r._buffer,o=r._infiniteTimeWindow,s=(o?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!o){for(var u=a.now(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},t}(Dn);const Ar=[],Br={},jo=(e,t=0)=>{if(Ar.indexOf(e)==-1){const r=new Go(t);Br[e]=r,Ar.push(e)}return Br[e]};window.emWidgets={topic:jo};const Wo=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)),at=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const $o=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-DPs-j2Ti.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function it(e){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(e)}function de(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function V(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function X(e){V(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||it(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Vo(e,t){V(2,arguments);var r=X(e).getTime(),n=de(t);return new Date(r+n)}var Yo={};function mt(){return Yo}function Xo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qo(e){return V(1,arguments),e instanceof Date||it(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zo(e){if(V(1,arguments),!qo(e)&&typeof e!="number")return!1;var t=X(e);return!isNaN(Number(t))}function Lr(e,t){return V(2,arguments),X(e).getTime()-X(t).getTime()}function Qo(e,t){V(2,arguments);var r=de(t);return Vo(e,-r)}var Zo=864e5;function Jo(e){V(1,arguments);var t=X(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/Zo)+1}function ot(e){V(1,arguments);var t=1,r=X(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Un(e){V(1,arguments);var t=X(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=ot(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=ot(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Ko(e){V(1,arguments);var t=Un(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ot(r);return n}var es=6048e5;function ts(e){V(1,arguments);var t=X(e),r=ot(t).getTime()-Ko(t).getTime();return Math.round(r/es)+1}function st(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=X(e),m=d.getUTCDay(),p=(m<h?7:0)+m-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function Fn(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=X(e),h=c.getUTCFullYear(),d=mt(),m=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,m),p.setUTCHours(0,0,0,0);var v=st(p,t),g=new Date(0);g.setUTCFullYear(h,0,m),g.setUTCHours(0,0,0,0);var A=st(g,t);return c.getTime()>=v.getTime()?h+1:c.getTime()>=A.getTime()?h:h-1}function rs(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Fn(e,t),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var p=st(m,t);return p}var ns=6048e5;function as(e,t){V(1,arguments);var r=X(e),n=st(r,t).getTime()-rs(r,t).getTime();return Math.round(n/ns)+1}function C(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var oe={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return C(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):C(n+1,2)},d:function(t,r){return C(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return C(t.getUTCHours()%12||12,r.length)},H:function(t,r){return C(t.getUTCHours(),r.length)},m:function(t,r){return C(t.getUTCMinutes(),r.length)},s:function(t,r){return C(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return C(i,r.length)}},_e={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},is={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oe.y(t,r)},Y:function(t,r,n,a){var i=Fn(t,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return C(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):C(o,r.length)},R:function(t,r){var n=Un(t);return C(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return C(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return C(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return C(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return oe.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return C(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=as(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):C(i,r.length)},I:function(t,r,n){var a=ts(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):C(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):oe.d(t,r)},D:function(t,r,n){var a=Jo(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):C(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return C(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return C(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=_e.noon:a===0?i=_e.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=_e.evening:a>=12?i=_e.afternoon:a>=4?i=_e.morning:i=_e.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oe.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oe.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oe.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oe.s(t,r)},S:function(t,r){return oe.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Ir(o);case"XXXX":case"XX":return he(o);case"XXXXX":case"XXX":default:return he(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Ir(o);case"xxxx":case"xx":return he(o);case"xxxxx":case"xxx":default:return he(o,":")}},O:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Nr(o,":");case"OOOO":default:return"GMT"+he(o,":")}},z:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Nr(o,":");case"zzzz":default:return"GMT"+he(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return C(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return C(o,r.length)}};function Nr(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t;return r+String(a)+o+C(i,2)}function Ir(e,t){if(e%60===0){var r=e>0?"-":"+";return r+C(Math.abs(e)/60,2)}return he(e,t)}function he(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=C(Math.floor(a/60),2),o=C(a%60,2);return n+i+r+o}var Rr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},os=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Rr(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Rr(a,r)).replace("{{time}}",Gn(i,r))},ss={p:Gn,P:os},us=["D","DD"],ls=["YY","YYYY"];function cs(e){return us.indexOf(e)!==-1}function hs(e){return ls.indexOf(e)!==-1}function Dr(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ds=function(t,r,n){var a,i=fs[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Mt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ms={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ps={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vs={date:Mt({formats:ms,defaultWidth:"full"}),time:Mt({formats:gs,defaultWidth:"full"}),dateTime:Mt({formats:ps,defaultWidth:"full"})},bs={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ys=function(t,r,n,a){return bs[t]};function Ne(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var _s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ws={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ss={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Es={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xs={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ts={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cs=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ps={ordinalNumber:Cs,era:Ne({values:_s,defaultWidth:"wide"}),quarter:Ne({values:ws,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ne({values:Ss,defaultWidth:"wide"}),day:Ne({values:Es,defaultWidth:"wide"}),dayPeriod:Ne({values:xs,defaultWidth:"wide",formattingValues:Ts,defaultFormattingWidth:"wide"})};function Ie(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Hs(s,function(h){return h.test(o)}):Os(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function Os(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Hs(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ms(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var As=/^(\d+)(th|st|nd|rd)?/i,Bs=/\d+/i,Ls={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ns={any:[/^b/i,/^(a|c)/i]},Is={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rs={any:[/1/i,/2/i,/3/i,/4/i]},Ds={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ks={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Us={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Fs={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gs={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},js={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ws={ordinalNumber:Ms({matchPattern:As,parsePattern:Bs,valueCallback:function(t){return parseInt(t,10)}}),era:Ie({matchPatterns:Ls,defaultMatchWidth:"wide",parsePatterns:Ns,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:Is,defaultMatchWidth:"wide",parsePatterns:Rs,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ie({matchPatterns:Ds,defaultMatchWidth:"wide",parsePatterns:ks,defaultParseWidth:"any"}),day:Ie({matchPatterns:Us,defaultMatchWidth:"wide",parsePatterns:Fs,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:Gs,defaultMatchWidth:"any",parsePatterns:js,defaultParseWidth:"any"})},$s={code:"en-US",formatDistance:ds,formatLong:vs,formatRelative:ys,localize:Ps,match:Ws,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ys=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xs=/^'([^]*?)'?$/,qs=/''/g,zs=/[a-zA-Z]/;function Qs(e,t,r){var n,a,i,o,s,u,l,c,h,d,m,p,v,g;V(2,arguments);var A=String(t),O=mt(),H=(n=(a=void 0)!==null&&a!==void 0?a:O.locale)!==null&&n!==void 0?n:$s,F=de((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(l=O.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=de((h=(d=(m=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&m!==void 0?m:O.weekStartsOn)!==null&&d!==void 0?d:(v=O.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&h!==void 0?h:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var G=X(e);if(!zo(G))throw new RangeError("Invalid time value");var T=Xo(G),B=Qo(G,T),w={firstWeekContainsDate:F,weekStartsOn:x,locale:H,_originalDate:G},M=A.match(Ys).map(function(k){var Z=k[0];if(Z==="p"||Z==="P"){var z=ss[Z];return z(k,H.formatLong)}return k}).join("").match(Vs).map(function(k){if(k==="''")return"'";var Z=k[0];if(Z==="'")return Zs(k);var z=is[Z];if(z)return hs(k)&&Dr(k,t,String(e)),cs(k)&&Dr(k,t,String(e)),z(B,k,H.localize,w);if(Z.match(zs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return k}).join("");return M}function Zs(e){var t=e.match(Xs);return t?t[1].replace(qs,"'"):e}function Js(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()>n.getTime()}function Ks(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()<n.getTime()}function jn(e,t,r){return window.emMessageBus&&(t=window.emMessageBus.subscribe(e,r)),t}function eu(e){Qr(e,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function kr(e,t,r){const n=e.slice();return n[68]=t[r],n}function Ur(e){let t,r=e[22]("cancel")+"",n,a,i,o;return{c(){t=N("small"),n=re(r),_(t,"class",a="SearchCancelButton "+(e[17]?"NotVisible":""))},m(s,u){$(s,t,u),P(t,n),i||(o=fe(t,"click",e[43]),i=!0)},p(s,u){u[0]&4194304&&r!==(r=s[22]("cancel")+"")&&ue(n,r),u[0]&131072&&a!==(a="SearchCancelButton "+(s[17]?"NotVisible":""))&&_(t,"class",a)},d(s){s&&W(t),i=!1,o()}}}function tu(e){let t,r,n,a;function i(c,h){if(c[18]==!0&&c[15].length<2)return au;if(c[14].length!=0)return nu}let o=i(e),s=o&&o(e),u=e[17]===!1&&Wr(e),l=e[15].length>=2&&e[14].length==0&&Vr(e);return{c(){s&&s.c(),t=J(),r=N("div"),u&&u.c(),n=J(),l&&l.c(),_(r,"class",a="SearchResultsContainer "+(e[18]==!0?"":"NotVisible"))},m(c,h){s&&s.m(c,h),$(c,t,h),$(c,r,h),u&&u.m(r,null),P(r,n),l&&l.m(r,null)},p(c,h){o===(o=i(c))&&s?s.p(c,h):(s&&s.d(1),s=o&&o(c),s&&(s.c(),s.m(t.parentNode,t))),c[17]===!1?u?u.p(c,h):(u=Wr(c),u.c(),u.m(r,n)):u&&(u.d(1),u=null),c[15].length>=2&&c[14].length==0?l?l.p(c,h):(l=Vr(c),l.c(),l.m(r,null)):l&&(l.d(1),l=null),h[0]&262144&&a!==(a="SearchResultsContainer "+(c[18]==!0?"":"NotVisible"))&&_(r,"class",a)},d(c){c&&(W(t),W(r)),s&&s.d(c),u&&u.d(),l&&l.d()}}}function ru(e){let t,r=e[22]("loading")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","LoadingContent")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("loading")+"")&&ue(n,r)},d(a){a&&W(t)}}}function nu(e){let t,r=e[22]("searchResult")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("searchResult")+"")&&ue(n,r)},d(a){a&&W(t)}}}function au(e){let t,r,n=e[14].length!==0&&Fr(e),a=e[14].length==0&&Gr(e);return{c(){n&&n.c(),t=J(),a&&a.c(),r=Zt()},m(i,o){n&&n.m(i,o),$(i,t,o),a&&a.m(i,o),$(i,r,o)},p(i,o){i[14].length!==0?n?n.p(i,o):(n=Fr(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),i[14].length==0?a?a.p(i,o):(a=Gr(i),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(i){i&&(W(t),W(r)),n&&n.d(i),a&&a.d(i)}}}function Fr(e){let t,r=e[22]("recentSearch")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("recentSearch")+"")&&ue(n,r)},d(a){a&&W(t)}}}function Gr(e){let t,r,n,a=e[22]("noRecentSearches")+"",i,o,s=e[11]==="true"&&jr();return{c(){t=N("div"),s&&s.c(),r=J(),n=N("p"),i=re(a),_(n,"class","SearchMessage"),_(t,"class",o="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(u,l){$(u,t,l),s&&s.m(t,null),P(t,r),P(t,n),P(n,i)},p(u,l){u[11]==="true"?s||(s=jr(),s.c(),s.m(t,r)):s&&(s.d(1),s=null),l[0]&4194304&&a!==(a=u[22]("noRecentSearches")+"")&&ue(i,a),l[0]&2048&&o!==(o="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&_(t,"class",o)},d(u){u&&W(t),s&&s.d()}}}function jr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',_(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function Wr(e){let t=[],r=new Map,n,a=Lt(e[14]);const i=o=>o[68].id;for(let o=0;o<a.length;o+=1){let s=kr(e,a,o),u=i(s);r.set(u,t[o]=$r(u,s))}return{c(){for(let o=0;o<t.length;o+=1)t[o].c();n=Zt()},m(o,s){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(o,s);$(o,n,s)},p(o,s){s[0]&154162175&&(a=Lt(o[14]),t=Aa(t,s,i,1,o,a,r,n.parentNode,Ma,$r,n,kr))},d(o){o&&W(n);for(let s=0;s<t.length;s+=1)t[s].d(o)}}}function $r(e,t){let r,n,a,i,o,s,u,l,c,h,d,m,p;return{key:e,first:null,c(){var v,g;r=N("casino-game-thumbnail-nd"),b(r,"endpoint",t[0]),b(r,"session",t[20]),b(r,"userid",t[21]),b(r,"favorites",t[9]),b(r,"lang",t[1]),b(r,"gamethumbnail",n=t[68].thumbnail),b(r,"icon",a=t[24]((v=t[68])==null?void 0:v.icons)),b(r,"gamename",i=t[68].name),b(r,"gamevendor",o=t[68].vendor.name),b(r,"gameLaunchUrl",s=t[68].launchUrl),b(r,"gameisnew",u=t[68].isNew),b(r,"gametag",l=((g=t[68].advancedTags)==null?void 0:g.length)>0&&t[27](t[68].advancedTags)),b(r,"gamecellsize",c=t[68].cellSize),b(r,"gameid",h=t[68].id),b(r,"showgamename",t[7]),b(r,"gamefunmode",d=t[68].hasFunMode),b(r,"gamefavorite",m=t[68].isFavorite),b(r,"livelobbyendpoint",p=t[68].details?t[68].launchUrl:""),b(r,"integratedgameframedesktop",t[5]),b(r,"integratedgameframemobile",t[6]),b(r,"clientstyling",t[3]),b(r,"clientstylingurl",t[4]),b(r,"gamepagemodalurl",t[8]),b(r,"mbsource",t[2]),b(r,"allowsingleclickgameentry",t[12]),this.first=r},m(v,g){$(v,r,g)},p(v,g){var A,O;t=v,g[0]&1&&b(r,"endpoint",t[0]),g[0]&1048576&&b(r,"session",t[20]),g[0]&2097152&&b(r,"userid",t[21]),g[0]&512&&b(r,"favorites",t[9]),g[0]&2&&b(r,"lang",t[1]),g[0]&16384&&n!==(n=t[68].thumbnail)&&b(r,"gamethumbnail",n),g[0]&16384&&a!==(a=t[24]((A=t[68])==null?void 0:A.icons))&&b(r,"icon",a),g[0]&16384&&i!==(i=t[68].name)&&b(r,"gamename",i),g[0]&16384&&o!==(o=t[68].vendor.name)&&b(r,"gamevendor",o),g[0]&16384&&s!==(s=t[68].launchUrl)&&b(r,"gameLaunchUrl",s),g[0]&16384&&u!==(u=t[68].isNew)&&b(r,"gameisnew",u),g[0]&16384&&l!==(l=((O=t[68].advancedTags)==null?void 0:O.length)>0&&t[27](t[68].advancedTags))&&b(r,"gametag",l),g[0]&16384&&c!==(c=t[68].cellSize)&&b(r,"gamecellsize",c),g[0]&16384&&h!==(h=t[68].id)&&b(r,"gameid",h),g[0]&128&&b(r,"showgamename",t[7]),g[0]&16384&&d!==(d=t[68].hasFunMode)&&b(r,"gamefunmode",d),g[0]&16384&&m!==(m=t[68].isFavorite)&&b(r,"gamefavorite",m),g[0]&16384&&p!==(p=t[68].details?t[68].launchUrl:"")&&b(r,"livelobbyendpoint",p),g[0]&32&&b(r,"integratedgameframedesktop",t[5]),g[0]&64&&b(r,"integratedgameframemobile",t[6]),g[0]&8&&b(r,"clientstyling",t[3]),g[0]&16&&b(r,"clientstylingurl",t[4]),g[0]&256&&b(r,"gamepagemodalurl",t[8]),g[0]&4&&b(r,"mbsource",t[2]),g[0]&4096&&b(r,"allowsingleclickgameentry",t[12])},d(v){v&&W(r)}}}function Vr(e){let t,r,n,a=e[22]("notFound")+"",i,o,s,u=e[22]("notFoundText")+"",l,c,h=e[11]==="true"&&Yr();return{c(){t=N("div"),h&&h.c(),r=J(),n=N("p"),i=re(a),o=J(),s=N("p"),l=re(u),_(n,"class","SearchMessage"),_(t,"class",c="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(d,m){$(d,t,m),h&&h.m(t,null),P(t,r),P(t,n),P(n,i),P(t,o),P(t,s),P(s,l)},p(d,m){d[11]==="true"?h||(h=Yr(),h.c(),h.m(t,r)):h&&(h.d(1),h=null),m[0]&4194304&&a!==(a=d[22]("notFound")+"")&&ue(i,a),m[0]&4194304&&u!==(u=d[22]("notFoundText")+"")&&ue(l,u),m[0]&2048&&c!==(c="ResultsContainerError "+(d[11]=="true"?"WithIcon":""))&&_(t,"class",c)},d(d){d&&W(t),h&&h.d()}}}function Yr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',_(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function iu(e){let t,r,n,a,i,o,s,u,l,c,h,d,m,p,v,g,A,O,H,F,x=e[10]==="true"&&Ur(e);function G(w,M){return w[19]?ru:tu}let T=G(e),B=T(e);return{c(){t=N("div"),r=N("div"),n=N("div"),a=N("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=J(),o=N("input"),u=J(),l=N("span"),c=et("svg"),h=et("path"),m=J(),x&&x.c(),v=J(),g=N("div"),O=J(),B.c(),_(a,"class","SearchIcon"),_(o,"class","SearchInput"),_(o,"type","search"),_(o,"placeholder",s=e[22]("placeHolderSearchGames")),_(o,"maxlength",Wn),_(h,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),_(h,"stroke","#717171"),_(h,"stroke-width","2"),_(h,"stroke-linecap","round"),_(h,"stroke-linejoin","round"),_(c,"width","11"),_(c,"height","11"),_(c,"fill","none"),_(c,"xmlns","http://www.w3.org/2000/svg"),_(l,"class",d="SearchClearButton "+(e[10]!="true"?"WithoutCancel":"")+" "+(e[15].length!=0?"":"NotVisible")),_(n,"class",p="Search "+(e[17]?"":"SearchAnimation")),_(r,"class","SearchWrap"),_(g,"class",A=e[10]!="true"?"OverlayCancel":""),_(t,"class",(at(e[23])!=="PC"?"":"Desktop")+" CasinoSearch")},m(w,M){$(w,t,M),P(t,r),P(r,n),P(n,a),P(n,i),P(n,o),hr(o,e[15]),e[41](o),P(n,u),P(n,l),P(l,c),P(c,h),P(n,m),x&&x.m(n,null),P(t,v),P(t,g),P(t,O),B.m(t,null),e[44](t),H||(F=[fe(o,"input",e[40]),fe(o,"focus",e[25]),fe(o,"input",e[30]),fe(l,"click",e[42]),fe(g,"click",e[26])],H=!0)},p(w,M){M[0]&4194304&&s!==(s=w[22]("placeHolderSearchGames"))&&_(o,"placeholder",s),M[0]&32768&&o.value!==w[15]&&hr(o,w[15]),M[0]&33792&&d!==(d="SearchClearButton "+(w[10]!="true"?"WithoutCancel":"")+" "+(w[15].length!=0?"":"NotVisible"))&&_(l,"class",d),w[10]==="true"?x?x.p(w,M):(x=Ur(w),x.c(),x.m(n,null)):x&&(x.d(1),x=null),M[0]&131072&&p!==(p="Search "+(w[17]?"":"SearchAnimation"))&&_(n,"class",p),M[0]&1024&&A!==(A=w[10]!="true"?"OverlayCancel":"")&&_(g,"class",A),T===(T=G(w))&&B?B.p(w,M):(B.d(1),B=T(w),B&&(B.c(),B.m(t,null)))},i:K,o:K,d(w){w&&W(t),e[41](null),x&&x.d(),B.d(),e[44](null),H=!1,me(F)}}}let Wn=50;function ou(e,t,r){let n;zr(e,Hn,f=>r(22,n=f));let{endpoint:a=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:s=""}=t,{lang:u="en"}=t,{mbsource:l}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:d="false"}=t,{integratedgameframemobile:m="false"}=t,{showgamename:p=""}=t,{gamepagemodalurl:v="true"}=t,{translationurl:g=""}=t,{showfavorites:A=""}=t,{cancelbutton:O="true"}=t,{notfoundicon:H="false"}=t,{controlchannel:F="casino-search"}=t,{allowedorigins:x=window.location.origin}=t,{requiredicon:G="false"}=t,{allowsingleclickgameentry:T="false"}=t;const B=()=>(x||"").split(",").map(f=>f.trim()).filter(Boolean);let w=window.navigator.userAgent,M=[],k=[],Z={},z="",le,We=!0,ne=!1,ee=!1,ae,Me,Vn,$e=!1,Ve,Ye,tr=[];const gt=f=>{Object.keys(f).forEach(y=>{xo(y,f[y])})},Yn=()=>{fetch(g).then(y=>y.json()).then(y=>{gt(y)}).catch(y=>{console.log(y)})};gt(Co);const rr=f=>{var y;f.data&&f.data.type=="SearchedItemClicked"&&ra(f.data.gameId),f.data.type=="UserSessionID"&&(r(20,Ve=f.data.session),r(21,Ye=f.data.userid),r(39,$e=!0)),f.data.type=="CategoryChange"&&Be();try{const I=f.origin===window.location.origin,R=B();if(!(I||R.length>0&&R.includes(f.origin))||!f.data||f.data.channel!==F)return;switch(f.data.type){case"OpenSearch":vt();break;case"CloseSearch":nr();break;case"ToggleSearch":qn();break;case"SetSearchQuery":zn(String((y=f.data.value)!=null?y:""));break}}catch(I){}},Xn=f=>G!=="true"?void 0:Object.values(f!=null?f:{}).pop(),pt=()=>{if(r(17,We=!1),r(18,ne=!0),a&&i&&u&&z.length<2){r(14,M=[]);let f=localStorage.getItem("searchedGamesWds_casino"),y=[];f&&(y=f.split(","));let I=[],R=0,j=y.length;if(j>0){for(R=0;R<j;R++){let Q=new URL(`${a}/v1/casino/games/${y[R]}`);Q.searchParams.append("language",u),Q.searchParams.append("datasource",i),Q.searchParams.append("platform",at(w)),I.push(Jn(Q,y[R]))}Promise.all(I).then(Q=>{Q=Q.filter(function(ce){return!!ce}),r(14,M=Q.map(ce=>(ce.isFavorite=ar(ce.id),ce))),M.length?Ae("searchSuccess","SearchWidget"):Ae("searchFail","SearchWidget")}).catch(Q=>{Ae("searchError","SearchWidget")})}}or(ne),Ae("searchAttempt","SearchWidget"),Ae("SearchInitialized","SearchWidget")};function vt(){ne||(pt(),requestAnimationFrame(()=>le==null?void 0:le.focus()),ve({type:"SearchOpen"}))}function nr(){ne&&(Be(),ve({type:"SearchClose"}))}function qn(){ne?nr():vt()}function zn(f){r(15,z=(f!=null?f:"").slice(0,Wn)),ne||vt(),sr()}const Ae=(f,y)=>{typeof gtag=="function"&&gtag("event",f,{context:y})},Qn=()=>{O!="true"&&Be()},Zn=f=>new Promise((y,I)=>{r(19,ee=!0),fetch(f.href).then(R=>R.json()).then(R=>{r(19,ee=!1),y(R)}).catch(R=>{r(19,ee=!1),console.error(R);try{ve({type:"SearchError",message:String(R)})}catch(j){}I(R)})}),Jn=(f,y)=>new Promise((I,R)=>{r(19,ee=!0),y&&Object.keys(Z).indexOf(y)>=0?(r(19,ee=!1),I(Z[y])):fetch(f).then(j=>j.json()).then(j=>{r(19,ee=!1),j.error||(Z[j[0].gameId]=j[0]),I(j[0])}).catch(j=>{r(19,ee=!1),console.error(j);try{ve({type:"SearchError",message:String(j)})}catch(Q){}R(j)})}),Kn=()=>{const f=new URL(`${a}/v1/player/${Ye}/favorites/`);r(19,ee=!0);let y={method:"GET",headers:{"X-SessionID":Ve}};fetch(f.href,y).then(I=>I.json()).then(I=>{r(19,ee=!1),tr=I.items.map(R=>R.id)})},ea=()=>{r(39,$e=!0),r(20,Ve=o),r(21,Ye=s)},ar=f=>tr.findIndex(y=>y==f)!==-1,ta=f=>{if((f==null?void 0:f.length)===0)return"";let y,I=99999999999,R;const j=new Date(Date.now());return f.forEach((Q,ce)=>{const ca=new Date(Q.schedules[0].startTime),bt=new Date(Q.schedules[0].endTime);Lr(new Date(bt),new Date(j))<I&&(I=Lr(new Date(bt),new Date(j)),R=ce),Js(new Date(j),new Date(ca))&&Ks(new Date(j),new Date(bt))&&(y=f[R].name)}),y},ra=f=>{if(k=localStorage.getItem("searchedGamesWds_casino"),k?k=k.split(","):k=[],k.indexOf(f)===-1){let y;k.unshift(f),y=k.join(","),localStorage.setItem("searchedGamesWds_casino",y)}},Be=()=>{r(15,z=""),r(17,We=!0),r(19,ee=!1),r(14,M=[]),r(18,ne=!1),or(ne)},ir=()=>{r(15,z=""),le.focus()},or=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href),ve({type:f?"SearchOpen":"SearchClose"})};function ve(f){try{const y=_t({channel:F},f);window.postMessage(y,window.location.href)}catch(y){}}const na=()=>{To(u)},sr=()=>wt(this,null,function*(){if(z.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",i),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",at(w)),f.searchParams.append("language",u),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${z}`),Zn(f).then(y=>{if(y.error)throw y.error;r(14,M=y.items.map(I=>(I.isFavorite=ar(I.id),I)));try{ve({type:"SearchResults",count:M.length})}catch(I){}}).catch(y=>{console.error(y),r(14,M=[])})}else We||pt()}),aa=$o(sr,500);Zr(()=>(window.addEventListener("message",rr,!1),()=>{Me&&Me.unsubscribe(),window.removeEventListener("message",rr)}));function ia(){z=this.value,r(15,z)}function oa(f){ke[f?"unshift":"push"](()=>{le=f,r(16,le)})}const sa=()=>ir(),ua=()=>Be();function la(f){ke[f?"unshift":"push"](()=>{ae=f,r(13,ae)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(31,i=f.datasource),"session"in f&&r(32,o=f.session),"userid"in f&&r(33,s=f.userid),"lang"in f&&r(1,u=f.lang),"mbsource"in f&&r(2,l=f.mbsource),"clientstyling"in f&&r(3,c=f.clientstyling),"clientstylingurl"in f&&r(4,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(5,d=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(6,m=f.integratedgameframemobile),"showgamename"in f&&r(7,p=f.showgamename),"gamepagemodalurl"in f&&r(8,v=f.gamepagemodalurl),"translationurl"in f&&r(34,g=f.translationurl),"showfavorites"in f&&r(9,A=f.showfavorites),"cancelbutton"in f&&r(10,O=f.cancelbutton),"notfoundicon"in f&&r(11,H=f.notfoundicon),"controlchannel"in f&&r(35,F=f.controlchannel),"allowedorigins"in f&&r(36,x=f.allowedorigins),"requiredicon"in f&&r(37,G=f.requiredicon),"allowsingleclickgameentry"in f&&r(12,T=f.allowsingleclickgameentry)},e.$$.update=()=>{e.$$.dirty[0]&2&&u&&na(),e.$$.dirty[1]&8&&g&&Yn(),e.$$.dirty[1]&6&&o&&s&&ea(),e.$$.dirty[0]&512|e.$$.dirty[1]&256&&A&&$e&&Kn(),e.$$.dirty[0]&8200&&c&&ae&&Mn(ae,c),e.$$.dirty[0]&8208&&h&&ae&&An(ae,h),e.$$.dirty[0]&8196|e.$$.dirty[1]&128&&l&&ae&&r(38,Me=Bn(ae,`${l}.Style`,Me,!0)),e.$$.dirty[0]&4|e.$$.dirty[1]&8&&l&&!g&&jn(`${l}.Translation`,Vn,gt)},[a,u,l,c,h,d,m,p,v,A,O,H,T,ae,M,z,le,We,ne,ee,Ve,Ye,n,w,Xn,pt,Qn,ta,Be,ir,aa,i,o,s,g,F,x,G,Me,$e,ia,oa,sa,ua,la]}class $n extends an{constructor(t){super(),tn(this,t,ou,iu,Qt,{endpoint:0,datasource:31,session:32,userid:33,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:34,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:35,allowedorigins:36,requiredicon:37,allowsingleclickgameentry:12},eu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),D()}get datasource(){return this.$$.ctx[31]}set datasource(t){this.$$set({datasource:t}),D()}get session(){return this.$$.ctx[32]}set session(t){this.$$set({session:t}),D()}get userid(){return this.$$.ctx[33]}set userid(t){this.$$set({userid:t}),D()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),D()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),D()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),D()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),D()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),D()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),D()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),D()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),D()}get translationurl(){return this.$$.ctx[34]}set translationurl(t){this.$$set({translationurl:t}),D()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),D()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),D()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),D()}get controlchannel(){return this.$$.ctx[35]}set controlchannel(t){this.$$set({controlchannel:t}),D()}get allowedorigins(){return this.$$.ctx[36]}set allowedorigins(t){this.$$set({allowedorigins:t}),D()}get requiredicon(){return this.$$.ctx[37]}set requiredicon(t){this.$$set({requiredicon:t}),D()}get allowsingleclickgameentry(){return this.$$.ctx[12]}set allowsingleclickgameentry(t){this.$$set({allowsingleclickgameentry:t}),D()}}nn($n,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{},allowsingleclickgameentry:{}},[],[],!0);const su=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"}));exports.$format=Hn;exports.$locale=pe;exports.CasinoSearchNd_ce=su;exports.HtmlTag=Ea;exports.SvelteComponent=an;exports.addMessages=Kt;exports.append=P;exports.append_styles=Qr;exports.attr=_;exports.binding_callbacks=ke;exports.component_subscribe=zr;exports.create_custom_element=nn;exports.destroy_each=_a;exports.detach=W;exports.element=N;exports.empty=Zt;exports.ensure_array_like=Lt;exports.flush=D;exports.format=Qs;exports.getDevice=at;exports.getStreamTranslations=jn;exports.init=tn;exports.insert=$;exports.isMobile=Wo;exports.listen=fe;exports.noop=K;exports.onMount=Zr;exports.safe_not_equal=Qt;exports.setClientStyling=Mn;exports.setClientStylingURL=An;exports.setStreamStyling=Bn;exports.set_custom_element_data=b;exports.set_data=ue;exports.space=J;exports.src_url_equal=pa;exports.svg_element=et;exports.text=re;exports.tick=Ca;exports.toggle_class=Sa;
18
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Xt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var dt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$t(o),u=s.next();!u.done;u=s.next()){var l=u.value;l.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ie(c))try{c()}catch(v){i=v instanceof Ht?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=$t(h),m=d.next();!m.done;m=d.next()){var p=m.value;try{Cr(p)}catch(v){i=i!=null?i:[],v instanceof Ht?i=Yt(Yt([],Vt(i)),Vt(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}}if(i)throw new Ht(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Cr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Xt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Xt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Nn=dt.EMPTY;function In(e){return e instanceof dt||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Cr(e){ie(e)?e():e.unsubscribe()}var Ho={Promise:void 0},Mo={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Yt([e,t],Vt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ao(e){Mo.setTimeout(function(){throw e})}function Pr(){}function Ke(e){e()}var Rn=function(e){je(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,In(r)&&r.add(n)):n.destination=No,n}return t.create=function(r,n,a){return new qt(r,n,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(dt),Bo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ze(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ze(n)}else ze(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ze(r)}},e}(),qt=function(e){je(t,e);function t(r,n,a){var i=e.call(this)||this,o;return ie(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:a!=null?a:void 0}:o=r,i.destination=new Bo(o),i}return t}(Rn);function ze(e){Ao(e)}function Lo(e){throw e}var No={closed:!0,next:Pr,error:Lo,complete:Pr},Io=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ro(e){return e}function Do(e){return e.length===0?Ro:e.length===1?e[0]:function(r){return e.reduce(function(n,a){return a(n)},r)}}var Or=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var a=this,i=Uo(t)?t:new qt(t,r,n);return Ke(function(){var o=a,s=o.operator,u=o.source;i.add(s?s.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Hr(r),new r(function(a,i){var o=new qt({next:function(s){try{t(s)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Io]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Do(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Hr(t),new t(function(n,a){var i;r.subscribe(function(o){return i=o},function(o){return a(o)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Hr(e){var t;return(t=e!=null?e:Ho.Promise)!==null&&t!==void 0?t:Promise}function ko(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Uo(e){return e&&e instanceof Rn||ko(e)&&In(e)}var Fo=Ln(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Dn=function(e){je(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Mr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fo},t.prototype.next=function(r){var n=this;Ke(function(){var a,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=$t(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var n=this;Ke(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var a=n.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,a=this,i=a.hasError,o=a.isStopped,s=a.observers;return i||o?Nn:(this.currentObservers=null,s.push(r),new dt(function(){n.currentObservers=null,Xt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,i=n.thrownError,o=n.isStopped;a?r.error(i):o&&r.complete()},t.prototype.asObservable=function(){var r=new Or;return r.source=this,r},t.create=function(r,n){return new Mr(r,n)},t}(Or),Mr=function(e){je(t,e);function t(r,n){var a=e.call(this)||this;return a.destination=r,a.source=n,a}return t.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},t.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:Nn},t}(Dn),kn={now:function(){return(kn.delegate||Date).now()},delegate:void 0},Go=function(e){je(t,e);function t(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=kn);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,a=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,u=n._windowTime;a||(i.push(r),!o&&i.push(s.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,i=a._infiniteTimeWindow,o=a._buffer,s=o.slice(),u=0;u<s.length&&!r.closed;u+=i?1:2)r.next(s[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,a=r._timestampProvider,i=r._buffer,o=r._infiniteTimeWindow,s=(o?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!o){for(var u=a.now(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},t}(Dn);const Ar=[],Br={},jo=(e,t=0)=>{if(Ar.indexOf(e)==-1){const r=new Go(t);Br[e]=r,Ar.push(e)}return Br[e]};window.emWidgets={topic:jo};const Wo=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)),at=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const $o=(e,t)=>function(...r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{e.apply(this,r)},t)};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-C5asPdU6.cjs")).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function it(e){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(e)}function de(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function V(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function X(e){V(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||it(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Vo(e,t){V(2,arguments);var r=X(e).getTime(),n=de(t);return new Date(r+n)}var Yo={};function mt(){return Yo}function Xo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qo(e){return V(1,arguments),e instanceof Date||it(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zo(e){if(V(1,arguments),!qo(e)&&typeof e!="number")return!1;var t=X(e);return!isNaN(Number(t))}function Lr(e,t){return V(2,arguments),X(e).getTime()-X(t).getTime()}function Qo(e,t){V(2,arguments);var r=de(t);return Vo(e,-r)}var Zo=864e5;function Jo(e){V(1,arguments);var t=X(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/Zo)+1}function ot(e){V(1,arguments);var t=1,r=X(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Un(e){V(1,arguments);var t=X(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=ot(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=ot(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Ko(e){V(1,arguments);var t=Un(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ot(r);return n}var es=6048e5;function ts(e){V(1,arguments);var t=X(e),r=ot(t).getTime()-Ko(t).getTime();return Math.round(r/es)+1}function st(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=X(e),m=d.getUTCDay(),p=(m<h?7:0)+m-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function Fn(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=X(e),h=c.getUTCFullYear(),d=mt(),m=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,m),p.setUTCHours(0,0,0,0);var v=st(p,t),g=new Date(0);g.setUTCFullYear(h,0,m),g.setUTCHours(0,0,0,0);var A=st(g,t);return c.getTime()>=v.getTime()?h+1:c.getTime()>=A.getTime()?h:h-1}function rs(e,t){var r,n,a,i,o,s,u,l;V(1,arguments);var c=mt(),h=de((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Fn(e,t),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var p=st(m,t);return p}var ns=6048e5;function as(e,t){V(1,arguments);var r=X(e),n=st(r,t).getTime()-rs(r,t).getTime();return Math.round(n/ns)+1}function C(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var oe={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return C(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):C(n+1,2)},d:function(t,r){return C(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return C(t.getUTCHours()%12||12,r.length)},H:function(t,r){return C(t.getUTCHours(),r.length)},m:function(t,r){return C(t.getUTCMinutes(),r.length)},s:function(t,r){return C(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return C(i,r.length)}},_e={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},is={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return oe.y(t,r)},Y:function(t,r,n,a){var i=Fn(t,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return C(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):C(o,r.length)},R:function(t,r){var n=Un(t);return C(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return C(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return C(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return C(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return oe.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return C(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=as(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):C(i,r.length)},I:function(t,r,n){var a=ts(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):C(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):oe.d(t,r)},D:function(t,r,n){var a=Jo(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):C(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return C(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return C(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=_e.noon:a===0?i=_e.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=_e.evening:a>=12?i=_e.afternoon:a>=4?i=_e.morning:i=_e.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return oe.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oe.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):C(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oe.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oe.s(t,r)},S:function(t,r){return oe.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Ir(o);case"XXXX":case"XX":return he(o);case"XXXXX":case"XXX":default:return he(o,":")}},x:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return Ir(o);case"xxxx":case"xx":return he(o);case"xxxxx":case"xxx":default:return he(o,":")}},O:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Nr(o,":");case"OOOO":default:return"GMT"+he(o,":")}},z:function(t,r,n,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Nr(o,":");case"zzzz":default:return"GMT"+he(o,":")}},t:function(t,r,n,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return C(o,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,o=i.getTime();return C(o,r.length)}};function Nr(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t;return r+String(a)+o+C(i,2)}function Ir(e,t){if(e%60===0){var r=e>0?"-":"+";return r+C(Math.abs(e)/60,2)}return he(e,t)}function he(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=C(Math.floor(a/60),2),o=C(a%60,2);return n+i+r+o}var Rr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},os=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return Rr(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Rr(a,r)).replace("{{time}}",Gn(i,r))},ss={p:Gn,P:os},us=["D","DD"],ls=["YY","YYYY"];function cs(e){return us.indexOf(e)!==-1}function hs(e){return ls.indexOf(e)!==-1}function Dr(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ds=function(t,r,n){var a,i=fs[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Mt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ms={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ps={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vs={date:Mt({formats:ms,defaultWidth:"full"}),time:Mt({formats:gs,defaultWidth:"full"}),dateTime:Mt({formats:ps,defaultWidth:"full"})},bs={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ys=function(t,r,n,a){return bs[t]};function Ne(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var _s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ws={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ss={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Es={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xs={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ts={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cs=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ps={ordinalNumber:Cs,era:Ne({values:_s,defaultWidth:"wide"}),quarter:Ne({values:ws,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ne({values:Ss,defaultWidth:"wide"}),day:Ne({values:Es,defaultWidth:"wide"}),dayPeriod:Ne({values:xs,defaultWidth:"wide",formattingValues:Ts,defaultFormattingWidth:"wide"})};function Ie(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Hs(s,function(h){return h.test(o)}):Os(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function Os(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Hs(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ms(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var As=/^(\d+)(th|st|nd|rd)?/i,Bs=/\d+/i,Ls={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ns={any:[/^b/i,/^(a|c)/i]},Is={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rs={any:[/1/i,/2/i,/3/i,/4/i]},Ds={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ks={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Us={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Fs={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gs={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},js={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ws={ordinalNumber:Ms({matchPattern:As,parsePattern:Bs,valueCallback:function(t){return parseInt(t,10)}}),era:Ie({matchPatterns:Ls,defaultMatchWidth:"wide",parsePatterns:Ns,defaultParseWidth:"any"}),quarter:Ie({matchPatterns:Is,defaultMatchWidth:"wide",parsePatterns:Rs,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ie({matchPatterns:Ds,defaultMatchWidth:"wide",parsePatterns:ks,defaultParseWidth:"any"}),day:Ie({matchPatterns:Us,defaultMatchWidth:"wide",parsePatterns:Fs,defaultParseWidth:"any"}),dayPeriod:Ie({matchPatterns:Gs,defaultMatchWidth:"any",parsePatterns:js,defaultParseWidth:"any"})},$s={code:"en-US",formatDistance:ds,formatLong:vs,formatRelative:ys,localize:Ps,match:Ws,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ys=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xs=/^'([^]*?)'?$/,qs=/''/g,zs=/[a-zA-Z]/;function Qs(e,t,r){var n,a,i,o,s,u,l,c,h,d,m,p,v,g;V(2,arguments);var A=String(t),O=mt(),H=(n=(a=void 0)!==null&&a!==void 0?a:O.locale)!==null&&n!==void 0?n:$s,F=de((i=(o=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&o!==void 0?o:(l=O.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=de((h=(d=(m=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&m!==void 0?m:O.weekStartsOn)!==null&&d!==void 0?d:(v=O.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&h!==void 0?h:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var G=X(e);if(!zo(G))throw new RangeError("Invalid time value");var T=Xo(G),B=Qo(G,T),w={firstWeekContainsDate:F,weekStartsOn:x,locale:H,_originalDate:G},M=A.match(Ys).map(function(k){var Z=k[0];if(Z==="p"||Z==="P"){var z=ss[Z];return z(k,H.formatLong)}return k}).join("").match(Vs).map(function(k){if(k==="''")return"'";var Z=k[0];if(Z==="'")return Zs(k);var z=is[Z];if(z)return hs(k)&&Dr(k,t,String(e)),cs(k)&&Dr(k,t,String(e)),z(B,k,H.localize,w);if(Z.match(zs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return k}).join("");return M}function Zs(e){var t=e.match(Xs);return t?t[1].replace(qs,"'"):e}function Js(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()>n.getTime()}function Ks(e,t){V(2,arguments);var r=X(e),n=X(t);return r.getTime()<n.getTime()}function jn(e,t,r){return window.emMessageBus&&(t=window.emMessageBus.subscribe(e,r)),t}function eu(e){Qr(e,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function kr(e,t,r){const n=e.slice();return n[68]=t[r],n}function Ur(e){let t,r=e[22]("cancel")+"",n,a,i,o;return{c(){t=N("small"),n=re(r),_(t,"class",a="SearchCancelButton "+(e[17]?"NotVisible":""))},m(s,u){$(s,t,u),P(t,n),i||(o=fe(t,"click",e[43]),i=!0)},p(s,u){u[0]&4194304&&r!==(r=s[22]("cancel")+"")&&ue(n,r),u[0]&131072&&a!==(a="SearchCancelButton "+(s[17]?"NotVisible":""))&&_(t,"class",a)},d(s){s&&W(t),i=!1,o()}}}function tu(e){let t,r,n,a;function i(c,h){if(c[18]==!0&&c[15].length<2)return au;if(c[14].length!=0)return nu}let o=i(e),s=o&&o(e),u=e[17]===!1&&Wr(e),l=e[15].length>=2&&e[14].length==0&&Vr(e);return{c(){s&&s.c(),t=J(),r=N("div"),u&&u.c(),n=J(),l&&l.c(),_(r,"class",a="SearchResultsContainer "+(e[18]==!0?"":"NotVisible"))},m(c,h){s&&s.m(c,h),$(c,t,h),$(c,r,h),u&&u.m(r,null),P(r,n),l&&l.m(r,null)},p(c,h){o===(o=i(c))&&s?s.p(c,h):(s&&s.d(1),s=o&&o(c),s&&(s.c(),s.m(t.parentNode,t))),c[17]===!1?u?u.p(c,h):(u=Wr(c),u.c(),u.m(r,n)):u&&(u.d(1),u=null),c[15].length>=2&&c[14].length==0?l?l.p(c,h):(l=Vr(c),l.c(),l.m(r,null)):l&&(l.d(1),l=null),h[0]&262144&&a!==(a="SearchResultsContainer "+(c[18]==!0?"":"NotVisible"))&&_(r,"class",a)},d(c){c&&(W(t),W(r)),s&&s.d(c),u&&u.d(),l&&l.d()}}}function ru(e){let t,r=e[22]("loading")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","LoadingContent")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("loading")+"")&&ue(n,r)},d(a){a&&W(t)}}}function nu(e){let t,r=e[22]("searchResult")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("searchResult")+"")&&ue(n,r)},d(a){a&&W(t)}}}function au(e){let t,r,n=e[14].length!==0&&Fr(e),a=e[14].length==0&&Gr(e);return{c(){n&&n.c(),t=J(),a&&a.c(),r=Zt()},m(i,o){n&&n.m(i,o),$(i,t,o),a&&a.m(i,o),$(i,r,o)},p(i,o){i[14].length!==0?n?n.p(i,o):(n=Fr(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),i[14].length==0?a?a.p(i,o):(a=Gr(i),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(i){i&&(W(t),W(r)),n&&n.d(i),a&&a.d(i)}}}function Fr(e){let t,r=e[22]("recentSearch")+"",n;return{c(){t=N("p"),n=re(r),_(t,"class","SearchMessage")},m(a,i){$(a,t,i),P(t,n)},p(a,i){i[0]&4194304&&r!==(r=a[22]("recentSearch")+"")&&ue(n,r)},d(a){a&&W(t)}}}function Gr(e){let t,r,n,a=e[22]("noRecentSearches")+"",i,o,s=e[11]==="true"&&jr();return{c(){t=N("div"),s&&s.c(),r=J(),n=N("p"),i=re(a),_(n,"class","SearchMessage"),_(t,"class",o="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(u,l){$(u,t,l),s&&s.m(t,null),P(t,r),P(t,n),P(n,i)},p(u,l){u[11]==="true"?s||(s=jr(),s.c(),s.m(t,r)):s&&(s.d(1),s=null),l[0]&4194304&&a!==(a=u[22]("noRecentSearches")+"")&&ue(i,a),l[0]&2048&&o!==(o="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&_(t,"class",o)},d(u){u&&W(t),s&&s.d()}}}function jr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',_(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function Wr(e){let t=[],r=new Map,n,a=Lt(e[14]);const i=o=>o[68].id;for(let o=0;o<a.length;o+=1){let s=kr(e,a,o),u=i(s);r.set(u,t[o]=$r(u,s))}return{c(){for(let o=0;o<t.length;o+=1)t[o].c();n=Zt()},m(o,s){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(o,s);$(o,n,s)},p(o,s){s[0]&154162175&&(a=Lt(o[14]),t=Aa(t,s,i,1,o,a,r,n.parentNode,Ma,$r,n,kr))},d(o){o&&W(n);for(let s=0;s<t.length;s+=1)t[s].d(o)}}}function $r(e,t){let r,n,a,i,o,s,u,l,c,h,d,m,p;return{key:e,first:null,c(){var v,g;r=N("casino-game-thumbnail-nd"),b(r,"endpoint",t[0]),b(r,"session",t[20]),b(r,"userid",t[21]),b(r,"favorites",t[9]),b(r,"lang",t[1]),b(r,"gamethumbnail",n=t[68].thumbnail),b(r,"icon",a=t[24]((v=t[68])==null?void 0:v.icons)),b(r,"gamename",i=t[68].name),b(r,"gamevendor",o=t[68].vendor.name),b(r,"gameLaunchUrl",s=t[68].launchUrl),b(r,"gameisnew",u=t[68].isNew),b(r,"gametag",l=((g=t[68].advancedTags)==null?void 0:g.length)>0&&t[27](t[68].advancedTags)),b(r,"gamecellsize",c=t[68].cellSize),b(r,"gameid",h=t[68].id),b(r,"showgamename",t[7]),b(r,"gamefunmode",d=t[68].hasFunMode),b(r,"gamefavorite",m=t[68].isFavorite),b(r,"livelobbyendpoint",p=t[68].details?t[68].launchUrl:""),b(r,"integratedgameframedesktop",t[5]),b(r,"integratedgameframemobile",t[6]),b(r,"clientstyling",t[3]),b(r,"clientstylingurl",t[4]),b(r,"gamepagemodalurl",t[8]),b(r,"mbsource",t[2]),b(r,"allowsingleclickgameentry",t[12]),this.first=r},m(v,g){$(v,r,g)},p(v,g){var A,O;t=v,g[0]&1&&b(r,"endpoint",t[0]),g[0]&1048576&&b(r,"session",t[20]),g[0]&2097152&&b(r,"userid",t[21]),g[0]&512&&b(r,"favorites",t[9]),g[0]&2&&b(r,"lang",t[1]),g[0]&16384&&n!==(n=t[68].thumbnail)&&b(r,"gamethumbnail",n),g[0]&16384&&a!==(a=t[24]((A=t[68])==null?void 0:A.icons))&&b(r,"icon",a),g[0]&16384&&i!==(i=t[68].name)&&b(r,"gamename",i),g[0]&16384&&o!==(o=t[68].vendor.name)&&b(r,"gamevendor",o),g[0]&16384&&s!==(s=t[68].launchUrl)&&b(r,"gameLaunchUrl",s),g[0]&16384&&u!==(u=t[68].isNew)&&b(r,"gameisnew",u),g[0]&16384&&l!==(l=((O=t[68].advancedTags)==null?void 0:O.length)>0&&t[27](t[68].advancedTags))&&b(r,"gametag",l),g[0]&16384&&c!==(c=t[68].cellSize)&&b(r,"gamecellsize",c),g[0]&16384&&h!==(h=t[68].id)&&b(r,"gameid",h),g[0]&128&&b(r,"showgamename",t[7]),g[0]&16384&&d!==(d=t[68].hasFunMode)&&b(r,"gamefunmode",d),g[0]&16384&&m!==(m=t[68].isFavorite)&&b(r,"gamefavorite",m),g[0]&16384&&p!==(p=t[68].details?t[68].launchUrl:"")&&b(r,"livelobbyendpoint",p),g[0]&32&&b(r,"integratedgameframedesktop",t[5]),g[0]&64&&b(r,"integratedgameframemobile",t[6]),g[0]&8&&b(r,"clientstyling",t[3]),g[0]&16&&b(r,"clientstylingurl",t[4]),g[0]&256&&b(r,"gamepagemodalurl",t[8]),g[0]&4&&b(r,"mbsource",t[2]),g[0]&4096&&b(r,"allowsingleclickgameentry",t[12])},d(v){v&&W(r)}}}function Vr(e){let t,r,n,a=e[22]("notFound")+"",i,o,s,u=e[22]("notFoundText")+"",l,c,h=e[11]==="true"&&Yr();return{c(){t=N("div"),h&&h.c(),r=J(),n=N("p"),i=re(a),o=J(),s=N("p"),l=re(u),_(n,"class","SearchMessage"),_(t,"class",c="ResultsContainerError "+(e[11]=="true"?"WithIcon":""))},m(d,m){$(d,t,m),h&&h.m(t,null),P(t,r),P(t,n),P(n,i),P(t,o),P(t,s),P(s,l)},p(d,m){d[11]==="true"?h||(h=Yr(),h.c(),h.m(t,r)):h&&(h.d(1),h=null),m[0]&4194304&&a!==(a=d[22]("notFound")+"")&&ue(i,a),m[0]&4194304&&u!==(u=d[22]("notFoundText")+"")&&ue(l,u),m[0]&2048&&c!==(c="ResultsContainerError "+(d[11]=="true"?"WithIcon":""))&&_(t,"class",c)},d(d){d&&W(t),h&&h.d()}}}function Yr(e){let t;return{c(){t=N("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',_(t,"class","SearchErrorIcon")},m(r,n){$(r,t,n)},d(r){r&&W(t)}}}function iu(e){let t,r,n,a,i,o,s,u,l,c,h,d,m,p,v,g,A,O,H,F,x=e[10]==="true"&&Ur(e);function G(w,M){return w[19]?ru:tu}let T=G(e),B=T(e);return{c(){t=N("div"),r=N("div"),n=N("div"),a=N("div"),a.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=J(),o=N("input"),u=J(),l=N("span"),c=et("svg"),h=et("path"),m=J(),x&&x.c(),v=J(),g=N("div"),O=J(),B.c(),_(a,"class","SearchIcon"),_(o,"class","SearchInput"),_(o,"type","search"),_(o,"placeholder",s=e[22]("placeHolderSearchGames")),_(o,"maxlength",Wn),_(h,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),_(h,"stroke","#717171"),_(h,"stroke-width","2"),_(h,"stroke-linecap","round"),_(h,"stroke-linejoin","round"),_(c,"width","11"),_(c,"height","11"),_(c,"fill","none"),_(c,"xmlns","http://www.w3.org/2000/svg"),_(l,"class",d="SearchClearButton "+(e[10]!="true"?"WithoutCancel":"")+" "+(e[15].length!=0?"":"NotVisible")),_(n,"class",p="Search "+(e[17]?"":"SearchAnimation")),_(r,"class","SearchWrap"),_(g,"class",A=e[10]!="true"?"OverlayCancel":""),_(t,"class",(at(e[23])!=="PC"?"":"Desktop")+" CasinoSearch")},m(w,M){$(w,t,M),P(t,r),P(r,n),P(n,a),P(n,i),P(n,o),hr(o,e[15]),e[41](o),P(n,u),P(n,l),P(l,c),P(c,h),P(n,m),x&&x.m(n,null),P(t,v),P(t,g),P(t,O),B.m(t,null),e[44](t),H||(F=[fe(o,"input",e[40]),fe(o,"focus",e[25]),fe(o,"input",e[30]),fe(l,"click",e[42]),fe(g,"click",e[26])],H=!0)},p(w,M){M[0]&4194304&&s!==(s=w[22]("placeHolderSearchGames"))&&_(o,"placeholder",s),M[0]&32768&&o.value!==w[15]&&hr(o,w[15]),M[0]&33792&&d!==(d="SearchClearButton "+(w[10]!="true"?"WithoutCancel":"")+" "+(w[15].length!=0?"":"NotVisible"))&&_(l,"class",d),w[10]==="true"?x?x.p(w,M):(x=Ur(w),x.c(),x.m(n,null)):x&&(x.d(1),x=null),M[0]&131072&&p!==(p="Search "+(w[17]?"":"SearchAnimation"))&&_(n,"class",p),M[0]&1024&&A!==(A=w[10]!="true"?"OverlayCancel":"")&&_(g,"class",A),T===(T=G(w))&&B?B.p(w,M):(B.d(1),B=T(w),B&&(B.c(),B.m(t,null)))},i:K,o:K,d(w){w&&W(t),e[41](null),x&&x.d(),B.d(),e[44](null),H=!1,me(F)}}}let Wn=50;function ou(e,t,r){let n;zr(e,Hn,f=>r(22,n=f));let{endpoint:a=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:s=""}=t,{lang:u="en"}=t,{mbsource:l}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:d="false"}=t,{integratedgameframemobile:m="false"}=t,{showgamename:p=""}=t,{gamepagemodalurl:v="true"}=t,{translationurl:g=""}=t,{showfavorites:A=""}=t,{cancelbutton:O="true"}=t,{notfoundicon:H="false"}=t,{controlchannel:F="casino-search"}=t,{allowedorigins:x=window.location.origin}=t,{requiredicon:G="false"}=t,{allowsingleclickgameentry:T="false"}=t;const B=()=>(x||"").split(",").map(f=>f.trim()).filter(Boolean);let w=window.navigator.userAgent,M=[],k=[],Z={},z="",le,We=!0,ne=!1,ee=!1,ae,Me,Vn,$e=!1,Ve,Ye,tr=[];const gt=f=>{Object.keys(f).forEach(y=>{xo(y,f[y])})},Yn=()=>{fetch(g).then(y=>y.json()).then(y=>{gt(y)}).catch(y=>{console.log(y)})};gt(Co);const rr=f=>{var y;f.data&&f.data.type=="SearchedItemClicked"&&ra(f.data.gameId),f.data.type=="UserSessionID"&&(r(20,Ve=f.data.session),r(21,Ye=f.data.userid),r(39,$e=!0)),f.data.type=="CategoryChange"&&Be();try{const I=f.origin===window.location.origin,R=B();if(!(I||R.length>0&&R.includes(f.origin))||!f.data||f.data.channel!==F)return;switch(f.data.type){case"OpenSearch":vt();break;case"CloseSearch":nr();break;case"ToggleSearch":qn();break;case"SetSearchQuery":zn(String((y=f.data.value)!=null?y:""));break}}catch(I){}},Xn=f=>G!=="true"?void 0:Object.values(f!=null?f:{}).pop(),pt=()=>{if(r(17,We=!1),r(18,ne=!0),a&&i&&u&&z.length<2){r(14,M=[]);let f=localStorage.getItem("searchedGamesWds_casino"),y=[];f&&(y=f.split(","));let I=[],R=0,j=y.length;if(j>0){for(R=0;R<j;R++){let Q=new URL(`${a}/v1/casino/games/${y[R]}`);Q.searchParams.append("language",u),Q.searchParams.append("datasource",i),Q.searchParams.append("platform",at(w)),I.push(Jn(Q,y[R]))}Promise.all(I).then(Q=>{Q=Q.filter(function(ce){return!!ce}),r(14,M=Q.map(ce=>(ce.isFavorite=ar(ce.id),ce))),M.length?Ae("searchSuccess","SearchWidget"):Ae("searchFail","SearchWidget")}).catch(Q=>{Ae("searchError","SearchWidget")})}}or(ne),Ae("searchAttempt","SearchWidget"),Ae("SearchInitialized","SearchWidget")};function vt(){ne||(pt(),requestAnimationFrame(()=>le==null?void 0:le.focus()),ve({type:"SearchOpen"}))}function nr(){ne&&(Be(),ve({type:"SearchClose"}))}function qn(){ne?nr():vt()}function zn(f){r(15,z=(f!=null?f:"").slice(0,Wn)),ne||vt(),sr()}const Ae=(f,y)=>{typeof gtag=="function"&&gtag("event",f,{context:y})},Qn=()=>{O!="true"&&Be()},Zn=f=>new Promise((y,I)=>{r(19,ee=!0),fetch(f.href).then(R=>R.json()).then(R=>{r(19,ee=!1),y(R)}).catch(R=>{r(19,ee=!1),console.error(R);try{ve({type:"SearchError",message:String(R)})}catch(j){}I(R)})}),Jn=(f,y)=>new Promise((I,R)=>{r(19,ee=!0),y&&Object.keys(Z).indexOf(y)>=0?(r(19,ee=!1),I(Z[y])):fetch(f).then(j=>j.json()).then(j=>{r(19,ee=!1),j.error||(Z[j[0].gameId]=j[0]),I(j[0])}).catch(j=>{r(19,ee=!1),console.error(j);try{ve({type:"SearchError",message:String(j)})}catch(Q){}R(j)})}),Kn=()=>{const f=new URL(`${a}/v1/player/${Ye}/favorites/`);r(19,ee=!0);let y={method:"GET",headers:{"X-SessionID":Ve}};fetch(f.href,y).then(I=>I.json()).then(I=>{r(19,ee=!1),tr=I.items.map(R=>R.id)})},ea=()=>{r(39,$e=!0),r(20,Ve=o),r(21,Ye=s)},ar=f=>tr.findIndex(y=>y==f)!==-1,ta=f=>{if((f==null?void 0:f.length)===0)return"";let y,I=99999999999,R;const j=new Date(Date.now());return f.forEach((Q,ce)=>{const ca=new Date(Q.schedules[0].startTime),bt=new Date(Q.schedules[0].endTime);Lr(new Date(bt),new Date(j))<I&&(I=Lr(new Date(bt),new Date(j)),R=ce),Js(new Date(j),new Date(ca))&&Ks(new Date(j),new Date(bt))&&(y=f[R].name)}),y},ra=f=>{if(k=localStorage.getItem("searchedGamesWds_casino"),k?k=k.split(","):k=[],k.indexOf(f)===-1){let y;k.unshift(f),y=k.join(","),localStorage.setItem("searchedGamesWds_casino",y)}},Be=()=>{r(15,z=""),r(17,We=!0),r(19,ee=!1),r(14,M=[]),r(18,ne=!1),or(ne)},ir=()=>{r(15,z=""),le.focus()},or=f=>{window.postMessage({type:f===!0?"searchActive":"searchCancelled",searchStatus:f},window.location.href),ve({type:f?"SearchOpen":"SearchClose"})};function ve(f){try{const y=_t({channel:F},f);window.postMessage(y,window.location.href)}catch(y){}}const na=()=>{To(u)},sr=()=>wt(this,null,function*(){if(z.length>=2){const f=new URL(`${a}/v1/casino/games`);f.searchParams.append("datasource",i),f.searchParams.append("expand","vendor"),f.searchParams.append("platform",at(w)),f.searchParams.append("language",u),f.searchParams.append("pagination","offset=0,limit=30"),f.searchParams.append("filter",`name=${z}`),Zn(f).then(y=>{if(y.error)throw y.error;r(14,M=y.items.map(I=>(I.isFavorite=ar(I.id),I)));try{ve({type:"SearchResults",count:M.length})}catch(I){}}).catch(y=>{console.error(y),r(14,M=[])})}else We||pt()}),aa=$o(sr,500);Zr(()=>(window.addEventListener("message",rr,!1),()=>{Me&&Me.unsubscribe(),window.removeEventListener("message",rr)}));function ia(){z=this.value,r(15,z)}function oa(f){ke[f?"unshift":"push"](()=>{le=f,r(16,le)})}const sa=()=>ir(),ua=()=>Be();function la(f){ke[f?"unshift":"push"](()=>{ae=f,r(13,ae)})}return e.$$set=f=>{"endpoint"in f&&r(0,a=f.endpoint),"datasource"in f&&r(31,i=f.datasource),"session"in f&&r(32,o=f.session),"userid"in f&&r(33,s=f.userid),"lang"in f&&r(1,u=f.lang),"mbsource"in f&&r(2,l=f.mbsource),"clientstyling"in f&&r(3,c=f.clientstyling),"clientstylingurl"in f&&r(4,h=f.clientstylingurl),"integratedgameframedesktop"in f&&r(5,d=f.integratedgameframedesktop),"integratedgameframemobile"in f&&r(6,m=f.integratedgameframemobile),"showgamename"in f&&r(7,p=f.showgamename),"gamepagemodalurl"in f&&r(8,v=f.gamepagemodalurl),"translationurl"in f&&r(34,g=f.translationurl),"showfavorites"in f&&r(9,A=f.showfavorites),"cancelbutton"in f&&r(10,O=f.cancelbutton),"notfoundicon"in f&&r(11,H=f.notfoundicon),"controlchannel"in f&&r(35,F=f.controlchannel),"allowedorigins"in f&&r(36,x=f.allowedorigins),"requiredicon"in f&&r(37,G=f.requiredicon),"allowsingleclickgameentry"in f&&r(12,T=f.allowsingleclickgameentry)},e.$$.update=()=>{e.$$.dirty[0]&2&&u&&na(),e.$$.dirty[1]&8&&g&&Yn(),e.$$.dirty[1]&6&&o&&s&&ea(),e.$$.dirty[0]&512|e.$$.dirty[1]&256&&A&&$e&&Kn(),e.$$.dirty[0]&8200&&c&&ae&&Mn(ae,c),e.$$.dirty[0]&8208&&h&&ae&&An(ae,h),e.$$.dirty[0]&8196|e.$$.dirty[1]&128&&l&&ae&&r(38,Me=Bn(ae,`${l}.Style`,Me,!0)),e.$$.dirty[0]&4|e.$$.dirty[1]&8&&l&&!g&&jn(`${l}.Translation`,Vn,gt)},[a,u,l,c,h,d,m,p,v,A,O,H,T,ae,M,z,le,We,ne,ee,Ve,Ye,n,w,Xn,pt,Qn,ta,Be,ir,aa,i,o,s,g,F,x,G,Me,$e,ia,oa,sa,ua,la]}class $n extends an{constructor(t){super(),tn(this,t,ou,iu,Qt,{endpoint:0,datasource:31,session:32,userid:33,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:34,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:35,allowedorigins:36,requiredicon:37,allowsingleclickgameentry:12},eu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),D()}get datasource(){return this.$$.ctx[31]}set datasource(t){this.$$set({datasource:t}),D()}get session(){return this.$$.ctx[32]}set session(t){this.$$set({session:t}),D()}get userid(){return this.$$.ctx[33]}set userid(t){this.$$set({userid:t}),D()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),D()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),D()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),D()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),D()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),D()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),D()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),D()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),D()}get translationurl(){return this.$$.ctx[34]}set translationurl(t){this.$$set({translationurl:t}),D()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),D()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),D()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),D()}get controlchannel(){return this.$$.ctx[35]}set controlchannel(t){this.$$set({controlchannel:t}),D()}get allowedorigins(){return this.$$.ctx[36]}set allowedorigins(t){this.$$set({allowedorigins:t}),D()}get requiredicon(){return this.$$.ctx[37]}set requiredicon(t){this.$$set({requiredicon:t}),D()}get allowsingleclickgameentry(){return this.$$.ctx[12]}set allowsingleclickgameentry(t){this.$$set({allowsingleclickgameentry:t}),D()}}nn($n,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{},allowsingleclickgameentry:{}},[],[],!0);const su=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"}));exports.$format=Hn;exports.$locale=pe;exports.CasinoSearchNd_ce=su;exports.HtmlTag=Ea;exports.SvelteComponent=an;exports.addMessages=Kt;exports.append=P;exports.append_styles=Qr;exports.attr=_;exports.binding_callbacks=ke;exports.component_subscribe=zr;exports.create_custom_element=nn;exports.destroy_each=_a;exports.detach=W;exports.element=N;exports.empty=Zt;exports.ensure_array_like=Lt;exports.flush=D;exports.format=Qs;exports.getDevice=at;exports.getStreamTranslations=jn;exports.init=tn;exports.insert=$;exports.isMobile=Wo;exports.listen=fe;exports.noop=K;exports.onMount=Zr;exports.safe_not_equal=Qt;exports.setClientStyling=Mn;exports.setClientStylingURL=An;exports.setStreamStyling=Bn;exports.set_custom_element_data=b;exports.set_data=ue;exports.space=J;exports.src_url_equal=pa;exports.svg_element=et;exports.text=re;exports.tick=Ca;exports.toggle_class=Sa;
@@ -4604,7 +4604,7 @@ if (typeof window < "u") {
4604
4604
  }
4605
4605
  };
4606
4606
  };
4607
- customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-CD6sfeOZ.js").then(({ default: t }) => {
4607
+ customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-Nbxhn0ZX.js").then(({ default: t }) => {
4608
4608
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", t.element);
4609
4609
  });
4610
4610
  }
@@ -4641,7 +4641,7 @@ if (typeof window != "undefined") {
4641
4641
  }
4642
4642
  };
4643
4643
  };
4644
- customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-y7qe8yhS.js").then(({ default: t }) => {
4644
+ customElements.define = e(customElements.define), import("./CasinoGameThumbnailNd-BD8y_MWa.js").then(({ default: t }) => {
4645
4645
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", t.element);
4646
4646
  });
4647
4647
  }
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-Db_jglBj.cjs")).then(e=>e.CasinoSearchNd_ce).then(({default:e})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-B9l6GKdq.cjs")).then(e=>e.CasinoSearchNd_ce).then(({default:e})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoSearchNd-CfQr4Jqi.js").then((e) => e.K).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoSearchNd-X1yAXD7J.js").then((e) => e.K).then(({ default: e }) => {
14
14
  !customElements.get("casino-search-nd") && customElements.define("casino-search-nd", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { K as s } from "../components/CasinoSearchNd-B6PnLSCU.js";
1
+ import { K as s } from "../components/CasinoSearchNd-DBI7J_hw.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-search-nd",
3
- "version": "1.94.112",
3
+ "version": "1.94.113",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-search-nd.cjs",
6
6
  "module": "esnext/casino-search-nd.js",