@everymatrix/general-player-sms-verification-form 1.12.7 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t){e.appendChild(t)}function c(e,t,r){e.insertBefore(t,r||null)}function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t){e.appendChild(t)}function c(e,t,r){e.insertBefore(t,r||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e){return document.createElement(e)}function u(e){return document.createTextNode(e)}function f(){return u(" ")}function p(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function m(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function d(e,t){t=""+t,e.data!==t&&(e.data=t)}function g(e,t){e.value=null==t?"":t}function b(e){const t={};for(const r of e)t[r.name]=r.value;return t}let E;function y(e){E=e}
|
|
2
2
|
/**
|
|
3
3
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
4
4
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -49,17 +49,17 @@ L.add(t),t())}_.length=0}while(T.length);for(;B.length;)B.pop()();S=!1,L.clear()
|
|
|
49
49
|
*/const N=new Set;function M(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];_.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),_=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(T.push(e),S||(S=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function O(o,s,a,c,
|
|
52
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(T.push(e),S||(S=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function O(o,s,a,c,l,u,f,p=[-1]){const m=E;y(o);const d=o.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
|
-
props:u,update:e,not_equal:
|
|
54
|
+
props:u,update:e,not_equal:l,bound:r(),
|
|
55
55
|
// lifecycle
|
|
56
56
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
|
|
57
57
|
// everything else
|
|
58
|
-
callbacks:r(),dirty:p,skip_bound:!1,root:s.target||m.$$.root};f&&f(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return d.ctx&&
|
|
58
|
+
callbacks:r(),dirty:p,skip_bound:!1,root:s.target||m.$$.root};f&&f(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return d.ctx&&l(d.ctx[e],d.ctx[e]=n)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](n),g&&R(o,e)),t})):[],d.update(),g=!0,n(d.before_update),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
60
|
d.fragment=!!c&&c(d.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
|
-
d.fragment&&d.fragment.l(e),e.forEach(
|
|
62
|
+
d.fragment&&d.fragment.l(e),e.forEach(h)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
64
|
d.fragment&&d.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(N.delete(b),b.i(v))),function(e,r,o,s){const{fragment:a,after_update:c}=e.$$;a&&a.m(r,o),s||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
@@ -80,19 +80,19 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
80
80
|
/**
|
|
81
81
|
* Creates a `Readable` store that allows reading by subscription.
|
|
82
82
|
* @param value initial value
|
|
83
|
-
* @param {StartStopNotifier}
|
|
83
|
+
* @param {StartStopNotifier} [start]
|
|
84
84
|
*/
|
|
85
85
|
/**
|
|
86
86
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
87
87
|
* @param {*=}value initial value
|
|
88
|
-
* @param {StartStopNotifier=}
|
|
88
|
+
* @param {StartStopNotifier=} start
|
|
89
89
|
*/
|
|
90
90
|
function D(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
91
|
-
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const c=[o,a];return i.add(c),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(c),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const a=!Array.isArray(t),c=a?[t]:t,
|
|
91
|
+
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const c=[o,a];return i.add(c),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(c),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const a=!Array.isArray(t),c=a?[t]:t,h=r.length<2;return l=t=>{let o=!1;const l=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(a?l[0]:l,t);h?t(n):f=i(n)?n:e},m=c.map(((e,t)=>s(e,(e=>{l[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f(),
|
|
92
92
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
93
93
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
94
94
|
// invoke this derived store.
|
|
95
|
-
o=!1}},{subscribe:D(o,
|
|
95
|
+
o=!1}},{subscribe:D(o,l).subscribe};var l}var $=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===k}(e)}
|
|
96
96
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
97
97
|
(e)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?z((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function V(e,t,r){return e.concat(t).map((function(e){return x(e,r)}))}function j(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function X(e,t){try{return t in e}catch(e){return!1}}
|
|
98
98
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
@@ -104,9 +104,9 @@ r.cloneUnlessOtherwiseSpecified=x;var n=Array.isArray(t);return n===Array.isArra
|
|
|
104
104
|
/**
|
|
105
105
|
* Type Guards
|
|
106
106
|
*/
|
|
107
|
-
function re(e){return e.type===q.literal}function ne(e){return e.type===q.argument}function ie(e){return e.type===q.number}function oe(e){return e.type===q.date}function se(e){return e.type===q.time}function ae(e){return e.type===q.select}function ce(e){return e.type===q.plural}function
|
|
107
|
+
function re(e){return e.type===q.literal}function ne(e){return e.type===q.argument}function ie(e){return e.type===q.number}function oe(e){return e.type===q.date}function se(e){return e.type===q.time}function ae(e){return e.type===q.select}function ce(e){return e.type===q.plural}function he(e){return e.type===q.pound}function le(e){return e.type===q.tag}function ue(e){return!(!e||"object"!=typeof e||e.type!==Q.number)}function fe(e){return!(!e||"object"!=typeof e||e.type!==Q.dateTime)}
|
|
108
108
|
// @generated from regex-gen.ts
|
|
109
|
-
|
|
109
|
+
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
110
110
|
/** Argument is unclosed (e.g. `{0`) */
|
|
111
111
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
|
|
112
112
|
/** Argument is empty (e.g. `{}`). */
|
|
@@ -403,17 +403,17 @@ return this.error(J.EXPECT_ARGUMENT_TYPE,we(o,a));case"number":case"date":case"t
|
|
|
403
403
|
// Parse this range:
|
|
404
404
|
// {name, number, style}
|
|
405
405
|
// ^-------^
|
|
406
|
-
this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var
|
|
406
|
+
this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Ke(b.val)).length)return this.error(J.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:we(h,this.clonePosition())}}if((E=this.tryParseArgumentClose(n)).err)return E;var l=we(n,this.clonePosition());
|
|
407
407
|
// Extract style or skeleton
|
|
408
408
|
if(c&&ke(null==c?void 0:c.style,"::",0)){
|
|
409
409
|
// Skeleton starts with `::`.
|
|
410
|
-
var u=Xe(c.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?b:{val:{type:q.number,value:r,location:
|
|
410
|
+
var u=Xe(c.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?b:{val:{type:q.number,value:r,location:l,style:b.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,l);var f=u;
|
|
411
411
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
412
412
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
413
413
|
// for unsupported patterns.
|
|
414
|
-
this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),c=Le(t);for("H"!=c&&"k"!=c||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(u,this.locale));var p={type:Q.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?de(f):{}};return{val:{type:"date"===s?q.date:q.time,value:r,location:
|
|
414
|
+
this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),c=Le(t);for("H"!=c&&"k"!=c||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(u,this.locale));var p={type:Q.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?de(f):{}};return{val:{type:"date"===s?q.date:q.time,value:r,location:l,style:p},err:null}}
|
|
415
415
|
// Regular style or no style.
|
|
416
|
-
return{val:{type:"number"===s?q.number:"date"===s?q.date:q.time,value:r,location:
|
|
416
|
+
return{val:{type:"number"===s?q.number:"date"===s?q.date:q.time,value:r,location:l,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
417
417
|
// Parse this range:
|
|
418
418
|
// {name, plural, options}
|
|
419
419
|
// ^---------^
|
|
@@ -437,7 +437,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
437
437
|
// Find the end of the quoted literal text.
|
|
438
438
|
this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(J.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(r,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
439
439
|
// Parse the skeleton
|
|
440
|
-
for(var t=e.split(ge).filter((function(e){return e.length>0})),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),c=0,
|
|
440
|
+
for(var t=e.split(ge).filter((function(e){return e.length>0})),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),c=0,h=a;c<h.length;c++)if(0===h[c].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(e)}catch(e){return this.error(J.INVALID_NUMBER_SKELETON,t)}return{val:{type:Q.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},
|
|
441
441
|
/**
|
|
442
442
|
* @param nesting_level The current nesting level of messages.
|
|
443
443
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -452,11 +452,11 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
|
|
|
452
452
|
// Parse:
|
|
453
453
|
// one {one apple}
|
|
454
454
|
// ^--^
|
|
455
|
-
for(var i,o=!1,s=[],a=new Set,c=n.value,
|
|
455
|
+
for(var i,o=!1,s=[],a=new Set,c=n.value,h=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
456
456
|
// Try parse `={number}` selector
|
|
457
|
-
var u=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_SELECTOR,J.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;
|
|
457
|
+
var u=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_SELECTOR,J.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=we(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}
|
|
458
458
|
// Duplicate selector clauses
|
|
459
|
-
if(a.has(c))return this.error("select"===t?J.DUPLICATE_SELECT_ARGUMENT_SELECTOR:J.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
459
|
+
if(a.has(c))return this.error("select"===t?J.DUPLICATE_SELECT_ARGUMENT_SELECTOR:J.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===c&&(o=!0),
|
|
460
460
|
// Parse:
|
|
461
461
|
// one {one apple}
|
|
462
462
|
// ^----------^
|
|
@@ -464,7 +464,7 @@ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.err
|
|
|
464
464
|
// Keep track of the existing selectors
|
|
465
465
|
a.add(c),
|
|
466
466
|
// Prep next selector clause.
|
|
467
|
-
this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,
|
|
467
|
+
this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,h=i.location}return 0===s.length?this.error("select"===t?J.EXPECT_SELECT_ARGUMENT_SELECTOR:J.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(J.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=we(n,this.clonePosition());return i?De(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
468
468
|
// This is much faster than `Object.assign` or spread.
|
|
469
469
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
470
470
|
/**
|
|
@@ -512,7 +512,7 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
512
512
|
/**
|
|
513
513
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
514
514
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
515
|
-
*/function Qe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function et(e){e.forEach((function(e){if(delete e.location,ae(e)||ce(e))for(var t in e.options)delete e.options[t].location,et(e.options[t].value);else ie(e)&&ue(e.style)||(oe(e)||se(e))&&fe(e.style)?delete e.style.location:
|
|
515
|
+
*/function Qe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function et(e){e.forEach((function(e){if(delete e.location,ae(e)||ce(e))for(var t in e.options)delete e.options[t].location,et(e.options[t].value);else ie(e)&&ue(e.style)||(oe(e)||se(e))&&fe(e.style)?delete e.style.location:le(e)&&et(e.children)}))}function tt(e,t){void 0===t&&(t={}),t=ee({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ze(e,t).parse();if(r.err){var n=SyntaxError(J[r.err.kind]);
|
|
516
516
|
// @ts-expect-error Assign to error object
|
|
517
517
|
throw n.location=r.err.location,
|
|
518
518
|
// @ts-expect-error Assign to error object
|
|
@@ -520,7 +520,7 @@ n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||et(r
|
|
|
520
520
|
|
|
521
521
|
// Main
|
|
522
522
|
|
|
523
|
-
function rt(e,t){var r=t&&t.cache?t.cache:
|
|
523
|
+
function rt(e,t){var r=t&&t.cache?t.cache:lt,n=t&&t.serializer?t.serializer:at;return(t&&t.strategy?t.strategy:st)(e,{cache:r,serializer:n})}
|
|
524
524
|
|
|
525
525
|
// Strategy
|
|
526
526
|
|
|
@@ -530,7 +530,7 @@ var at=function(){return JSON.stringify(arguments)};
|
|
|
530
530
|
|
|
531
531
|
// Cache
|
|
532
532
|
|
|
533
|
-
function ct(){this.cache=Object.create(null)}ct.prototype.get=function(e){return this.cache[e]},ct.prototype.set=function(e,t){this.cache[e]=t};var lt
|
|
533
|
+
function ct(){this.cache=Object.create(null)}ct.prototype.get=function(e){return this.cache[e]},ct.prototype.set=function(e,t){this.cache[e]=t};var ht,lt={create:function(){
|
|
534
534
|
// @ts-ignore
|
|
535
535
|
return new ct}},ut={variadic:function(e,t){return ot(e,this,it,t.cache.create(),t.serializer)},monadic:function(e,t){return ot(e,this,nt,t.cache.create(),t.serializer)}};!function(e){
|
|
536
536
|
// When we have a placeholder but no value to format
|
|
@@ -538,24 +538,24 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
538
538
|
// When value supplied is invalid
|
|
539
539
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
540
540
|
// When we need specific Intl API but it's not available
|
|
541
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(
|
|
541
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var ft,pt=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return W(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),mt=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,i)||this}return W(t,e),t}(pt),dt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return W(t,e),t}(pt),gt=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return W(t,e),t}(pt);function bt(e){return"function"==typeof e}
|
|
542
542
|
// TODO(skeleton): add skeleton support
|
|
543
543
|
function Et(e,t,r,n,i,o,
|
|
544
544
|
// For debugging
|
|
545
545
|
s){
|
|
546
546
|
// Hot path for straight simple msg translations
|
|
547
|
-
if(1===e.length&&re(e[0]))return[{type:ft.literal,value:e[0].value}];for(var a=[],c=0,
|
|
547
|
+
if(1===e.length&&re(e[0]))return[{type:ft.literal,value:e[0].value}];for(var a=[],c=0,h=e;c<h.length;c++){var l=h[c];
|
|
548
548
|
// Exit early for string parts.
|
|
549
|
-
if(re(
|
|
549
|
+
if(re(l))a.push({type:ft.literal,value:l.value});else
|
|
550
550
|
// TODO: should this part be literal type?
|
|
551
551
|
// Replace `#` in plural rules with the actual numeric value.
|
|
552
|
-
if(
|
|
552
|
+
if(he(l))"number"==typeof o&&a.push({type:ft.literal,value:r.getNumberFormat(t).format(o)});else{var u=l.value;
|
|
553
553
|
// Enforce that all required values are provided by the caller.
|
|
554
|
-
if(!i||!(u in i))throw new gt(u,s);var f=i[u];if(ne(
|
|
554
|
+
if(!i||!(u in i))throw new gt(u,s);var f=i[u];if(ne(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?ft.literal:ft.object,value:f});else
|
|
555
555
|
// Recursively format plural and select parts' option — which can be a
|
|
556
556
|
// nested pattern structure. The choosing of the option to use is
|
|
557
557
|
// abstracted-by and delegated-to the part helper object.
|
|
558
|
-
if(oe(
|
|
558
|
+
if(oe(l)){var p="string"==typeof l.style?n.date[l.style]:fe(l.style)?l.style.parsedOptions:void 0;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(se(l)){p="string"==typeof l.style?n.time[l.style]:fe(l.style)?l.style.parsedOptions:n.time.medium;a.push({type:ft.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ie(l)){(p="string"==typeof l.style?n.number[l.style]:ue(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:ft.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(le(l)){var m=l.children,d=l.value,g=i[d];if(!bt(g))throw new dt(d,"function",s);var b=g(Et(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?ft.literal:ft.object,value:e}})))}if(ae(l)){if(!(E=l.options[f]||l.options.other))throw new mt(l.value,f,Object.keys(l.options),s);a.push.apply(a,Et(E.value,t,r,n,i))}else if(ce(l)){var E;if(!(E=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));E=l.options[y]||l.options.other}if(!E)throw new mt(l.value,f,Object.keys(l.options),s);a.push.apply(a,Et(E.value,t,r,n,i,f-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ft.literal&&t.type===ft.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
|
|
559
559
|
/*
|
|
560
560
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
561
561
|
Copyrights licensed under the New BSD License.
|
|
@@ -580,22 +580,22 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
580
580
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
581
581
|
Copyrights licensed under the New BSD License.
|
|
582
582
|
See the accompanying LICENSE file for terms.
|
|
583
|
-
*/const _t={},Bt=(e,t,r)=>r?(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in _t&&e in _t[t])return _t[t][e];const r=xt(t);for(let n=0;n<r.length;n++){const i=Ct(r[n],e);if(i)return Bt(e,t,i)}};let St;const Pt=D({});function Lt(e){return e in St}function Ct(e,t){if(!Lt(e))return null;const r=function(e){return St[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function It(e,...t){delete _t[e],Pt.update((r=>(r[e]=Y.all([r[e]||{},...t]),r)))}F([Pt],(([e])=>Object.keys(e))),Pt.subscribe((e=>St=e));const wt={};function Nt(e){return wt[e]}function Mt(e){return null!=e&&xt(e).some((e=>{var t;return null===(t=Nt(e))||void 0===t?void 0:t.size}))}const Rt={};function Ot(e){if(!Mt(e))return e in Rt?Rt[e]:Promise.resolve();const t=function(e){return xt(e).map((e=>{const t=Nt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Rt[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>It(e,...t)))}(e,t)))).then((()=>{if(Mt(e))return Ot(e);delete Rt[e]})),Rt[e]}const Ut={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 Gt(){return Ut}const Dt=D(!1);let Ft;const $t=D(null);function kt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function xt(e,t=Gt().fallbackLocale){const r=kt(e);return t?[...new Set([...r,...kt(t)])]:r}function Vt(){return null!=Ft?Ft:void 0}$t.subscribe((e=>{Ft=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const jt={...$t,set:e=>{if(e&&function(e){if(null==e)return;const t=xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Mt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{$t.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return $t.set(e)}},Xt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Kt=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Kt("number",t)),new Intl.NumberFormat(e,r)})),Yt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Kt("date",t):0===Object.keys(r).length&&(r=Kt("date","short")),new Intl.DateTimeFormat(e,r)})),Zt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Kt("time",t):0===Object.keys(r).length&&(r=Kt("time","short")),new Intl.DateTimeFormat(e,r)})),Wt=Xt(((e,t=Vt())=>new Ht(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Vt(),default:
|
|
584
|
-
/* src/GeneralPlayerSmsVerificationForm.svelte generated by Svelte v3.
|
|
583
|
+
*/const _t={},Bt=(e,t,r)=>r?(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in _t&&e in _t[t])return _t[t][e];const r=xt(t);for(let n=0;n<r.length;n++){const i=Ct(r[n],e);if(i)return Bt(e,t,i)}};let St;const Pt=D({});function Lt(e){return e in St}function Ct(e,t){if(!Lt(e))return null;const r=function(e){return St[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function It(e,...t){delete _t[e],Pt.update((r=>(r[e]=Y.all([r[e]||{},...t]),r)))}F([Pt],(([e])=>Object.keys(e))),Pt.subscribe((e=>St=e));const wt={};function Nt(e){return wt[e]}function Mt(e){return null!=e&&xt(e).some((e=>{var t;return null===(t=Nt(e))||void 0===t?void 0:t.size}))}const Rt={};function Ot(e){if(!Mt(e))return e in Rt?Rt[e]:Promise.resolve();const t=function(e){return xt(e).map((e=>{const t=Nt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Rt[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>It(e,...t)))}(e,t)))).then((()=>{if(Mt(e))return Ot(e);delete Rt[e]})),Rt[e]}const Ut={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 Gt(){return Ut}const Dt=D(!1);let Ft;const $t=D(null);function kt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function xt(e,t=Gt().fallbackLocale){const r=kt(e);return t?[...new Set([...r,...kt(t)])]:r}function Vt(){return null!=Ft?Ft:void 0}$t.subscribe((e=>{Ft=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const jt={...$t,set:e=>{if(e&&function(e){if(null==e)return;const t=xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Mt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{$t.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return $t.set(e)}},Xt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Kt=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=Kt("number",t)),new Intl.NumberFormat(e,r)})),Yt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=Kt("date",t):0===Object.keys(r).length&&(r=Kt("date","short")),new Intl.DateTimeFormat(e,r)})),Zt=Xt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=Kt("time",t):0===Object.keys(r).length&&(r=Kt("time","short")),new Intl.DateTimeFormat(e,r)})),Wt=Xt(((e,t=Vt())=>new Ht(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Vt(),default:h}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=At(e,c);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!==(o=null!==(i=null===(n=(r=Gt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:c,id:e,defaultValue:h}))&&void 0!==i?i:h)&&void 0!==o?o:e;if(!a)return l;let u=l;try{u=Wt(l,c).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},qt=(e,t)=>(({locale:e=Vt(),...t}={})=>Zt({locale:e,...t}))(t).format(e),Qt=(e,t)=>(({locale:e=Vt(),...t}={})=>Yt({locale:e,...t}))(t).format(e),er=(e,t)=>(({locale:e=Vt(),...t}={})=>zt({locale:e,...t}))(t).format(e),tr=(e,t=Vt())=>At(e,t),rr=F([jt,Pt],(()=>Jt));function nr(e,t){It(e,t)}F([jt],(()=>qt)),F([jt],(()=>Qt)),F([jt],(()=>er)),F([jt,Pt],(()=>tr));const ir={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Activate Account",resend:"Resend"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"}};
|
|
584
|
+
/* src/GeneralPlayerSmsVerificationForm.svelte generated by Svelte v3.59.2 */function or(e){let t,r=/*$_*/e[5]("errorTitle")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("errorTitle")+"")&&d(t,r)},d(e){e&&h(t)}}}
|
|
585
585
|
// (155:4) {#if isSmsValid}
|
|
586
|
-
function sr(e){let t,r=/*$_*/e[5]("title")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("title")+"")&&d(t,r)},d(e){e&&
|
|
586
|
+
function sr(e){let t,r=/*$_*/e[5]("title")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("title")+"")&&d(t,r)},d(e){e&&h(t)}}}
|
|
587
587
|
// (168:4) {#if !isSmsValid}
|
|
588
|
-
function ar(e){let t,r,n=/*$_*/e[5]("smsCodeError")+"";return{c(){t=
|
|
588
|
+
function ar(e){let t,r,n=/*$_*/e[5]("smsCodeError")+"";return{c(){t=l("p"),r=u(n),m(t,"class","InvalidInput"),m(t,"part","InvalidInput")},m(e,n){c(e,t,n),a(t,r)},p(e,t){/*$_*/32&t&&n!==(n=/*$_*/e[5]("smsCodeError")+"")&&d(r,n)},d(e){e&&h(t)}}}
|
|
589
589
|
// (173:2) {#if timer}
|
|
590
|
-
function cr(e){let t,r,n=/*$_*/e[5]("resendMessage")+"";return{c(){t=
|
|
590
|
+
function cr(e){let t,r,n=/*$_*/e[5]("resendMessage")+"";return{c(){t=l("p"),r=u(n),m(t,"class","SmsVerificationResendMessage"),m(t,"part","SmsVerificationResendMessage")},m(e,n){c(e,t,n),a(t,r)},p(e,t){/*$_*/32&t&&n!==(n=/*$_*/e[5]("resendMessage")+"")&&d(r,n)},d(e){e&&h(t)}}}
|
|
591
591
|
// (188:19) {#if timer}
|
|
592
|
-
function
|
|
593
|
-
return e[2]?sr:or}let $=F(t),k=$(t),x=!/*isSmsValid*/t[2]&&ar(t),V=/*timer*/t[3]&&cr(t),j=/*timer*/t[3]&&
|
|
594
|
-
/*div1_binding*/,t[19](r),R||(O=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(L,"click",/*activateUser*/t[6]),p(w,"click",/*resendCode*/t[7])],R=!0)},p(e,[t]){$===($=F(e))&&k?k.p(e,t):(k.d(1),k=$(e),k&&(k.c(),k.m(i,null))),/*$_*/32&t&&U!==(U=/*$_*/e[5]("code")+"")&&d(E,U),/*smsCode*/2&t&&H.value!==/*smsCode*/e[1]&&g(H,/*smsCode*/e[1]),/*isSmsValid*/e[2]?x&&(x.d(1),x=null):x?x.p(e,t):(x=ar(e),x.c(),x.m(s,null)),/*isSmsValid*/4&t&&B!==(B="Field SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"class",B),/*isSmsValid*/4&t&&A!==(A="SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"part",A),/*timer*/e[3]?V?V.p(e,t):(V=cr(e),V.c(),V.m(r,P)):V&&(V.d(1),V=null),/*$_*/32&t&&G!==(G=/*$_*/e[5]("activate")+"")&&d(C,G),/*$_*/32&t&&D!==(D=/*$_*/e[5]("resend")+"")&&d(N,D),/*timer*/e[3]?j?j.p(e,t):(j=
|
|
595
|
-
/*div1_binding*/,t[19](null),R=!1,n(O)}}}function ur(e,t,r){let n;var i,o;i=rr,o=e=>r(5,n=e),e.$$.on_destroy.push(s(i,o));let a,c,
|
|
592
|
+
function hr(e){let t,r,n,i,o,s=/*secondsLeft*/e[4]<10?"0":"";return{c(){t=l("span"),r=u("(0:"),n=u(s),i=u(/*secondsLeft*/e[4]),o=u(")"),m(t,"class","SmsVerificationResendTimer")},m(e,s){c(e,t,s),a(t,r),a(t,n),a(t,i),a(t,o)},p(e,t){/*secondsLeft*/16&t&&s!==(s=/*secondsLeft*/e[4]<10?"0":"")&&d(n,s),/*secondsLeft*/16&t&&d(i,/*secondsLeft*/e[4])},d(e){e&&h(t)}}}function lr(t){let r,i,o,s,b,E,y,v,T,H,_,B,A,S,P,L,C,I,w,N,M,R,O,U=/*$_*/t[5]("code")+"",G=/*$_*/t[5]("activate")+"",D=/*$_*/t[5]("resend")+"";function F(e,t){/*isSmsValid*/
|
|
593
|
+
return e[2]?sr:or}let $=F(t),k=$(t),x=!/*isSmsValid*/t[2]&&ar(t),V=/*timer*/t[3]&&cr(t),j=/*timer*/t[3]&&hr(t);return{c(){r=l("div"),i=l("h3"),k.c(),o=f(),s=l("div"),b=l("label"),E=u(U),y=u(":"),v=l("span"),v.textContent="*",T=f(),H=l("input"),_=f(),x&&x.c(),S=f(),V&&V.c(),P=f(),L=l("button"),C=u(G),I=f(),w=l("button"),N=u(D),M=f(),j&&j.c(),this.c=e,m(i,"class","Title"),m(i,"part","Title"),m(v,"class","FormRequired"),m(v,"part","FormRequired"),m(b,"for","SmsCode"),m(H,"type","text"),m(H,"id","SmsCode"),m(H,"inputmode","numeric"),m(H,"pattern","[0-9]*"),m(H,"maxlength","6"),m(s,"class",B="Field SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(s,"part",A="SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(L,"class","Button SmsVerificationValidate"),m(L,"part","SmsVerificationValidate"),m(w,"class","Button SmsVerificationResend"),m(w,"part","SmsVerificationResend"),w.disabled=/*timer*/t[3],m(r,"class","Container SmsVerificationContainer"),m(r,"part","SmsVerificationContainer")},m(e,n){c(e,r,n),a(r,i),k.m(i,null),a(r,o),a(r,s),a(s,b),a(b,E),a(b,y),a(b,v),a(s,T),a(s,H),g(H,/*smsCode*/t[1]),a(s,_),x&&x.m(s,null),a(r,S),V&&V.m(r,null),a(r,P),a(r,L),a(L,C),a(r,I),a(r,w),a(w,N),a(w,M),j&&j.m(w,null)
|
|
594
|
+
/*div1_binding*/,t[19](r),R||(O=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(L,"click",/*activateUser*/t[6]),p(w,"click",/*resendCode*/t[7])],R=!0)},p(e,[t]){$===($=F(e))&&k?k.p(e,t):(k.d(1),k=$(e),k&&(k.c(),k.m(i,null))),/*$_*/32&t&&U!==(U=/*$_*/e[5]("code")+"")&&d(E,U),/*smsCode*/2&t&&H.value!==/*smsCode*/e[1]&&g(H,/*smsCode*/e[1]),/*isSmsValid*/e[2]?x&&(x.d(1),x=null):x?x.p(e,t):(x=ar(e),x.c(),x.m(s,null)),/*isSmsValid*/4&t&&B!==(B="Field SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"class",B),/*isSmsValid*/4&t&&A!==(A="SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"part",A),/*timer*/e[3]?V?V.p(e,t):(V=cr(e),V.c(),V.m(r,P)):V&&(V.d(1),V=null),/*$_*/32&t&&G!==(G=/*$_*/e[5]("activate")+"")&&d(C,G),/*$_*/32&t&&D!==(D=/*$_*/e[5]("resend")+"")&&d(N,D),/*timer*/e[3]?j?j.p(e,t):(j=hr(e),j.c(),j.m(w,null)):j&&(j.d(1),j=null),/*timer*/8&t&&(w.disabled=/*timer*/e[3])},i:e,o:e,d(e){e&&h(r),k.d(),x&&x.d(),V&&V.d(),j&&j.d()
|
|
595
|
+
/*div1_binding*/,t[19](null),R=!1,n(O)}}}function ur(e,t,r){let n;var i,o;i=rr,o=e=>r(5,n=e),e.$$.on_destroy.push(s(i,o));let a,c,h,{endpoint:l=""}=t,{tokenid:u=""}=t,{playerid:f=""}=t,{smstemplate:p="Please use this code {0} to activate your accout"}=t,{number:m=""}=t,{clientstyling:d=""}=t,{clientstylingurl:g=""}=t,{translationurl:b=""}=t,E=!0,y=!1,T=+localStorage.getItem("smsTimer")||0,_=Date.now()/1e3-T,B=60-Math.floor(_);const A={numeric:/^[0-9]{0,6}$/};!function({withLocale:e,translations:t}){jt.subscribe((r=>{null==r&&(Pt.set(t),jt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
596
596
|
/*dictionary.set(translations);
|
|
597
597
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(ir).forEach((e=>{nr(e,ir[e])}));const S=()=>{B>0?r(4,B--,B):(clearInterval(c),r(3,c=!1),r(4,B=60))},P=()=>{_<60&&r(3,c=setInterval((()=>{S()}),1e3))},L=e=>{A.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};v((()=>{if(!f||!m){
|
|
598
598
|
/* fix for when trying to log in after registeration & mail confirmation (without sms confirmation),
|
|
599
599
|
upon switching between sms validation and register, the playerid and phone number would be lost */
|
|
600
|
-
let e=JSON.parse(localStorage.getItem("playerData"));r(10,f=e.playerid),r(11,m=e.number)}P()}));return e.$$set=e=>{"endpoint"in e&&r(12,
|
|
600
|
+
let e=JSON.parse(localStorage.getItem("playerData"));r(10,f=e.playerid),r(11,m=e.number)}P()}));return e.$$set=e=>{"endpoint"in e&&r(12,l=e.endpoint),"tokenid"in e&&r(9,u=e.tokenid),"playerid"in e&&r(10,f=e.playerid),"smstemplate"in e&&r(13,p=e.smstemplate),"number"in e&&r(11,m=e.number),"clientstyling"in e&&r(14,d=e.clientstyling),"clientstylingurl"in e&&r(15,g=e.clientstylingurl),"translationurl"in e&&r(16,b=e.translationurl)},e.$$.update=()=>{e.$$.dirty,/*clientstyling, customStylingContainer*/16385&e.$$.dirty&&d&&h&&(()=>{let e=document.createElement("style");e.innerHTML=d,h.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32769&e.$$.dirty&&g&&h&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{h.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*translationurl*/65536&e.$$.dirty&&b&&fetch(b).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{nr(t,e[t])}))})).catch((e=>{console.log(e)}))},[h,a,E,c,B,n,async()=>{try{if(!(await fetch(`${l}/player/${f}/activateSMS?tokenId=${u}&validationCode=${a}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),r(2,E=!1),new Error("Could not activate user");r(2,E=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href)}catch(e){console.log(e)}},async()=>{localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),P();try{const e=await fetch(`${l}/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:f,messageTemplate:p,destination:m})}),t=await e.json();if(!e.ok)throw y=!0,new Error("Failed to fetch");r(9,u=t.id),y=!1,S()}catch(e){y=!0,console.error(e)}},L,u,f,m,l,p,d,g,b,function(){a=this.value,r(1,a)},e=>L(e),function(e){H[e?"unshift":"push"]((()=>{h=e,r(0,h)}))}]}class fr extends U{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-primary, #D0046C)}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.Button{color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000)}",this.shadowRoot.appendChild(t),O(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},ur,lr,o,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","tokenid","playerid","smstemplate","number","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),I()}get tokenid(){return this.$$.ctx[9]}set tokenid(e){this.$$set({tokenid:e}),I()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),I()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(e){this.$$set({smstemplate:e}),I()}get number(){return this.$$.ctx[11]}set number(e){this.$$set({number:e}),I()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("general-player-sms-verification-form")&&customElements.define("general-player-sms-verification-form",fr),fr}));
|
|
601
601
|
//# sourceMappingURL=general-player-sms-verification-form.js.map
|