@everymatrix/casino-search 1.13.7 → 1.13.9

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.
@@ -4651,7 +4651,7 @@
4651
4651
  */
4652
4652
  var o = IntlMessageFormat;
4653
4653
 
4654
- const i={},r=(e,n,t)=>t?(n in i||(i[n]={}),e in i[n]||(i[n][e]=t),t):t,s=(e,n)=>{if(null==n)return;if(n in i&&e in i[n])return i[n][e];const t=E(n);for(let o=0;o<t.length;o++){const i=c(t[o],e);if(i)return r(e,n,i)}};let l;const a=writable({});function u(e){return e in l}function c(e,n){if(!u(e))return null;const t=function(e){return l[e]||null}(e);return function(e,n){if(null==n)return;if(n in e)return e[n];const t=n.split(".");let o=e;for(let e=0;e<t.length;e++)if("object"==typeof o){if(e>0){const n=t.slice(e,t.length).join(".");if(n in o){o=o[n];break}}o=o[t[e]];}else o=void 0;return o}(t,n)}function m(e,...n){delete i[e],a.update((o=>(o[e]=cjs.all([o[e]||{},...n]),o)));}derived([a],(([e])=>Object.keys(e)));a.subscribe((e=>l=e));const d={};function g(e){return d[e]}function h(e){return null!=e&&E(e).some((e=>{var n;return null===(n=g(e))||void 0===n?void 0:n.size}))}function w(e,n){const t=Promise.all(n.map((n=>(function(e,n){d[e].delete(n),0===d[e].size&&delete d[e];}(e,n),n().then((e=>e.default||e))))));return t.then((n=>m(e,...n)))}const p={};function b(e){if(!h(e))return e in p?p[e]:Promise.resolve();const n=function(e){return E(e).map((e=>{const n=g(e);return [e,n?[...n]:[]]})).filter((([,e])=>e.length>0))}(e);return p[e]=Promise.all(n.map((([e,n])=>w(e,n)))).then((()=>{if(h(e))return b(e);delete p[e];})),p[e]}const M={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function j(){return M}const $=writable(!1);let k;const T=writable(null);function L(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=L(e);return n?[...new Set([...t,...L(n)])]:t}function D(){return null!=k?k:void 0}T.subscribe((e=>{k=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e);}));const x={...T,set:e=>{if(e&&function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&h(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>$.set(!0)),n):$.set(!0),b(e).then((()=>{T.set(e);})).finally((()=>{clearTimeout(t),$.set(!1);}))}return T.set(e)}},Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=C("number",n)),new Intl.NumberFormat(e,t)})),J=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=C("date",n):0===Object.keys(t).length&&(t=C("date","short")),new Intl.DateTimeFormat(e,t)})),U=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=C("time",n):0===Object.keys(t).length&&(t=C("time","short")),new Intl.DateTimeFormat(e,t)})),V=({locale:e=D(),...n}={})=>G({locale:e,...n}),_=({locale:e=D(),...n}={})=>J({locale:e,...n}),q=({locale:e=D(),...n}={})=>U({locale:e,...n}),B=Z(((e,n=D())=>new o(e,n,j().formats,{ignoreTag:j().ignoreTag}))),H=(e,n={})=>{var t,o,i,r;let l=n;"object"==typeof e&&(l=e,e=l.id);const{values:a,locale:u=D(),default:c}=l;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let m=s(e,u);if(m){if("string"!=typeof m)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof m}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),m}else m=null!==(r=null!==(i=null===(o=(t=j()).handleMissingMessage)||void 0===o?void 0:o.call(t,{locale:u,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==r?r:e;if(!a)return m;let f=m;try{f=B(m,u).format(a);}catch(n){n instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return f},K=(e,n)=>q(n).format(e),Q=(e,n)=>_(n).format(e),R=(e,n)=>V(n).format(e),W=(e,n=D())=>s(e,n),X=derived([x,a],(()=>H));derived([x],(()=>K));derived([x],(()=>Q));derived([x],(()=>R));derived([x,a],(()=>W));
4654
+ const i={},r=(e,n,t)=>t?(n in i||(i[n]={}),e in i[n]||(i[n][e]=t),t):t,s=(e,n)=>{if(null==n)return;if(n in i&&e in i[n])return i[n][e];const t=E(n);for(let o=0;o<t.length;o++){const i=c(t[o],e);if(i)return r(e,n,i)}};let l;const a=writable({});function u(e){return e in l}function c(e,n){if(!u(e))return null;const t=function(e){return l[e]||null}(e);return function(e,n){if(null==n)return;if(n in e)return e[n];const t=n.split(".");let o=e;for(let e=0;e<t.length;e++)if("object"==typeof o){if(e>0){const n=t.slice(e,t.length).join(".");if(n in o){o=o[n];break}}o=o[t[e]];}else o=void 0;return o}(t,n)}function m(e,...n){delete i[e],a.update((o=>(o[e]=cjs.all([o[e]||{},...n]),o)));}derived([a],(([e])=>Object.keys(e)));a.subscribe((e=>l=e));const d={};function g$1(e){return d[e]}function h(e){return null!=e&&E(e).some((e=>{var n;return null===(n=g$1(e))||void 0===n?void 0:n.size}))}function w(e,n){const t=Promise.all(n.map((n=>(function(e,n){d[e].delete(n),0===d[e].size&&delete d[e];}(e,n),n().then((e=>e.default||e))))));return t.then((n=>m(e,...n)))}const p={};function b(e){if(!h(e))return e in p?p[e]:Promise.resolve();const n=function(e){return E(e).map((e=>{const n=g$1(e);return [e,n?[...n]:[]]})).filter((([,e])=>e.length>0))}(e);return p[e]=Promise.all(n.map((([e,n])=>w(e,n)))).then((()=>{if(h(e))return b(e);delete p[e];})),p[e]}const M={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function j(){return M}const $=writable(!1);let k;const T=writable(null);function L(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=L(e);return n?[...new Set([...t,...L(n)])]:t}function D(){return null!=k?k:void 0}T.subscribe((e=>{k=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e);}));const x={...T,set:e=>{if(e&&function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&h(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>$.set(!0)),n):$.set(!0),b(e).then((()=>{T.set(e);})).finally((()=>{clearTimeout(t),$.set(!1);}))}return T.set(e)}},Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=C("number",n)),new Intl.NumberFormat(e,t)})),J=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=C("date",n):0===Object.keys(t).length&&(t=C("date","short")),new Intl.DateTimeFormat(e,t)})),U=Z((({locale:e,format:n,...t})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=C("time",n):0===Object.keys(t).length&&(t=C("time","short")),new Intl.DateTimeFormat(e,t)})),V=({locale:e=D(),...n}={})=>G({locale:e,...n}),_=({locale:e=D(),...n}={})=>J({locale:e,...n}),q=({locale:e=D(),...n}={})=>U({locale:e,...n}),B=Z(((e,n=D())=>new o(e,n,j().formats,{ignoreTag:j().ignoreTag}))),H=(e,n={})=>{var t,o,i,r;let l=n;"object"==typeof e&&(l=e,e=l.id);const{values:a,locale:u=D(),default:c}=l;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let m=s(e,u);if(m){if("string"!=typeof m)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof m}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),m}else m=null!==(r=null!==(i=null===(o=(t=j()).handleMissingMessage)||void 0===o?void 0:o.call(t,{locale:u,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==r?r:e;if(!a)return m;let f=m;try{f=B(m,u).format(a);}catch(n){n instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return f},K=(e,n)=>q(n).format(e),Q=(e,n)=>_(n).format(e),R=(e,n)=>V(n).format(e),W=(e,n=D())=>s(e,n),X=derived([x,a],(()=>H));derived([x],(()=>K));derived([x],(()=>Q));derived([x],(()=>R));derived([x,a],(()=>W));
4655
4655
 
4656
4656
  function addNewMessages$1(lang, dict) {
4657
4657
  m(lang, dict);
@@ -4811,17 +4811,20 @@
4811
4811
  }
4812
4812
  };
4813
4813
 
4814
- var global$1 =
4814
+ /* eslint-disable no-prototype-builtins */
4815
+ var g =
4815
4816
  (typeof globalThis !== 'undefined' && globalThis) ||
4816
4817
  (typeof self !== 'undefined' && self) ||
4817
- (typeof global$1 !== 'undefined' && global$1);
4818
+ // eslint-disable-next-line no-undef
4819
+ (typeof global !== 'undefined' && global) ||
4820
+ {};
4818
4821
 
4819
4822
  var support = {
4820
- searchParams: 'URLSearchParams' in global$1,
4821
- iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
4823
+ searchParams: 'URLSearchParams' in g,
4824
+ iterable: 'Symbol' in g && 'iterator' in Symbol,
4822
4825
  blob:
4823
- 'FileReader' in global$1 &&
4824
- 'Blob' in global$1 &&
4826
+ 'FileReader' in g &&
4827
+ 'Blob' in g &&
4825
4828
  (function() {
4826
4829
  try {
4827
4830
  new Blob();
@@ -4830,8 +4833,8 @@
4830
4833
  return false
4831
4834
  }
4832
4835
  })(),
4833
- formData: 'FormData' in global$1,
4834
- arrayBuffer: 'ArrayBuffer' in global$1
4836
+ formData: 'FormData' in g,
4837
+ arrayBuffer: 'ArrayBuffer' in g
4835
4838
  };
4836
4839
 
4837
4840
  function isDataView(obj) {
@@ -4902,6 +4905,9 @@
4902
4905
  }, this);
4903
4906
  } else if (Array.isArray(headers)) {
4904
4907
  headers.forEach(function(header) {
4908
+ if (header.length != 2) {
4909
+ throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length)
4910
+ }
4905
4911
  this.append(header[0], header[1]);
4906
4912
  }, this);
4907
4913
  } else if (headers) {
@@ -4972,6 +4978,7 @@
4972
4978
  }
4973
4979
 
4974
4980
  function consumed(body) {
4981
+ if (body._noBody) return
4975
4982
  if (body.bodyUsed) {
4976
4983
  return Promise.reject(new TypeError('Already read'))
4977
4984
  }
@@ -4999,7 +5006,9 @@
4999
5006
  function readBlobAsText(blob) {
5000
5007
  var reader = new FileReader();
5001
5008
  var promise = fileReaderReady(reader);
5002
- reader.readAsText(blob);
5009
+ var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
5010
+ var encoding = match ? match[1] : 'utf-8';
5011
+ reader.readAsText(blob, encoding);
5003
5012
  return promise
5004
5013
  }
5005
5014
 
@@ -5037,9 +5046,11 @@
5037
5046
  semantic of setting Request.bodyUsed in the constructor before
5038
5047
  _initBody is called.
5039
5048
  */
5049
+ // eslint-disable-next-line no-self-assign
5040
5050
  this.bodyUsed = this.bodyUsed;
5041
5051
  this._bodyInit = body;
5042
5052
  if (!body) {
5053
+ this._noBody = true;
5043
5054
  this._bodyText = '';
5044
5055
  } else if (typeof body === 'string') {
5045
5056
  this._bodyText = body;
@@ -5087,28 +5098,29 @@
5087
5098
  return Promise.resolve(new Blob([this._bodyText]))
5088
5099
  }
5089
5100
  };
5101
+ }
5090
5102
 
5091
- this.arrayBuffer = function() {
5092
- if (this._bodyArrayBuffer) {
5093
- var isConsumed = consumed(this);
5094
- if (isConsumed) {
5095
- return isConsumed
5096
- }
5097
- if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
5098
- return Promise.resolve(
5099
- this._bodyArrayBuffer.buffer.slice(
5100
- this._bodyArrayBuffer.byteOffset,
5101
- this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
5102
- )
5103
+ this.arrayBuffer = function() {
5104
+ if (this._bodyArrayBuffer) {
5105
+ var isConsumed = consumed(this);
5106
+ if (isConsumed) {
5107
+ return isConsumed
5108
+ } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
5109
+ return Promise.resolve(
5110
+ this._bodyArrayBuffer.buffer.slice(
5111
+ this._bodyArrayBuffer.byteOffset,
5112
+ this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
5103
5113
  )
5104
- } else {
5105
- return Promise.resolve(this._bodyArrayBuffer)
5106
- }
5114
+ )
5107
5115
  } else {
5108
- return this.blob().then(readBlobAsArrayBuffer)
5116
+ return Promise.resolve(this._bodyArrayBuffer)
5109
5117
  }
5110
- };
5111
- }
5118
+ } else if (support.blob) {
5119
+ return this.blob().then(readBlobAsArrayBuffer)
5120
+ } else {
5121
+ throw new Error('could not read as ArrayBuffer')
5122
+ }
5123
+ };
5112
5124
 
5113
5125
  this.text = function() {
5114
5126
  var rejected = consumed(this);
@@ -5141,7 +5153,7 @@
5141
5153
  }
5142
5154
 
5143
5155
  // HTTP methods whose capitalization should be normalized
5144
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
5156
+ var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'];
5145
5157
 
5146
5158
  function normalizeMethod(method) {
5147
5159
  var upcased = method.toUpperCase();
@@ -5182,7 +5194,12 @@
5182
5194
  }
5183
5195
  this.method = normalizeMethod(options.method || this.method || 'GET');
5184
5196
  this.mode = options.mode || this.mode || null;
5185
- this.signal = options.signal || this.signal;
5197
+ this.signal = options.signal || this.signal || (function () {
5198
+ if ('AbortController' in g) {
5199
+ var ctrl = new AbortController();
5200
+ return ctrl.signal;
5201
+ }
5202
+ }());
5186
5203
  this.referrer = null;
5187
5204
 
5188
5205
  if ((this.method === 'GET' || this.method === 'HEAD') && body) {
@@ -5244,7 +5261,11 @@
5244
5261
  var key = parts.shift().trim();
5245
5262
  if (key) {
5246
5263
  var value = parts.join(':').trim();
5247
- headers.append(key, value);
5264
+ try {
5265
+ headers.append(key, value);
5266
+ } catch (error) {
5267
+ console.warn('Response ' + error.message);
5268
+ }
5248
5269
  }
5249
5270
  });
5250
5271
  return headers
@@ -5262,6 +5283,9 @@
5262
5283
 
5263
5284
  this.type = 'default';
5264
5285
  this.status = options.status === undefined ? 200 : options.status;
5286
+ if (this.status < 200 || this.status > 599) {
5287
+ throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].")
5288
+ }
5265
5289
  this.ok = this.status >= 200 && this.status < 300;
5266
5290
  this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
5267
5291
  this.headers = new Headers(options.headers);
@@ -5281,7 +5305,8 @@
5281
5305
  };
5282
5306
 
5283
5307
  Response.error = function() {
5284
- var response = new Response(null, {status: 0, statusText: ''});
5308
+ var response = new Response(null, {status: 200, statusText: ''});
5309
+ response.status = 0;
5285
5310
  response.type = 'error';
5286
5311
  return response
5287
5312
  };
@@ -5296,7 +5321,7 @@
5296
5321
  return new Response(null, {status: status, headers: {location: url}})
5297
5322
  };
5298
5323
 
5299
- var DOMException = global$1.DOMException;
5324
+ var DOMException = g.DOMException;
5300
5325
  try {
5301
5326
  new DOMException();
5302
5327
  } catch (err) {
@@ -5325,10 +5350,15 @@
5325
5350
  }
5326
5351
 
5327
5352
  xhr.onload = function() {
5353
+ var responseHeaders = xhr.getAllResponseHeaders();
5354
+ var setCookie = xhr.getResponseHeader('set-cookie');
5355
+ if (setCookie) {
5356
+ responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', '));
5357
+ }
5328
5358
  var options = {
5329
5359
  status: xhr.status,
5330
5360
  statusText: xhr.statusText,
5331
- headers: parseHeaders(xhr.getAllResponseHeaders() || '')
5361
+ headers: parseHeaders(responseHeaders || '')
5332
5362
  };
5333
5363
  options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
5334
5364
  var body = 'response' in xhr ? xhr.response : xhr.responseText;
@@ -5357,7 +5387,7 @@
5357
5387
 
5358
5388
  function fixUrl(url) {
5359
5389
  try {
5360
- return url === '' && global$1.location.href ? global$1.location.href : url
5390
+ return url === '' && g.location.href ? g.location.href : url
5361
5391
  } catch (e) {
5362
5392
  return url
5363
5393
  }
@@ -5375,18 +5405,23 @@
5375
5405
  if (support.blob) {
5376
5406
  xhr.responseType = 'blob';
5377
5407
  } else if (
5378
- support.arrayBuffer &&
5379
- request.headers.get('Content-Type') &&
5380
- request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
5408
+ support.arrayBuffer
5381
5409
  ) {
5382
5410
  xhr.responseType = 'arraybuffer';
5383
5411
  }
5384
5412
  }
5385
5413
 
5386
- if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
5414
+ if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) {
5415
+ var names = [];
5387
5416
  Object.getOwnPropertyNames(init.headers).forEach(function(name) {
5417
+ names.push(normalizeName(name));
5388
5418
  xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
5389
5419
  });
5420
+ request.headers.forEach(function(value, name) {
5421
+ if (names.indexOf(name) === -1) {
5422
+ xhr.setRequestHeader(name, value);
5423
+ }
5424
+ });
5390
5425
  } else {
5391
5426
  request.headers.forEach(function(value, name) {
5392
5427
  xhr.setRequestHeader(name, value);
@@ -5410,11 +5445,11 @@
5410
5445
 
5411
5446
  fetch$1.polyfill = true;
5412
5447
 
5413
- if (!global$1.fetch) {
5414
- global$1.fetch = fetch$1;
5415
- global$1.Headers = Headers;
5416
- global$1.Request = Request;
5417
- global$1.Response = Response;
5448
+ if (!g.fetch) {
5449
+ g.fetch = fetch$1;
5450
+ g.Headers = Headers;
5451
+ g.Request = Request;
5452
+ g.Response = Response;
5418
5453
  }
5419
5454
 
5420
5455
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};