@everymatrix/cashier-header 1.38.0 → 1.39.0

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.
@@ -90,7 +90,7 @@ function j(e,t,r){var n={};return r.isMergeableObject(e)&&F(e).forEach((function
90
90
  })(e,i)||(x(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return V;var r=t.customMerge(e);return"function"==typeof r?r:V}(i,r)(e[i],t[i],r):n[i]=$(t[i],r))})),n}function V(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||k,r.isMergeableObject=r.isMergeableObject||G,
91
91
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
92
92
  // implementations can use it. The caller may not replace it.
93
- r.cloneUnlessOtherwiseSpecified=$;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):j(e,t,r):$(t,r)}V.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return V(e,r,t)}),{})};var X=V,K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},K(e,t)};function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Y,z,W,Q=function(){return Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function J(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
93
+ r.cloneUnlessOtherwiseSpecified=$;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):j(e,t,r):$(t,r)}V.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return V(e,r,t)}),{})};var X=V,K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},K(e,t)};function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Z,z,W,Q=function(){return Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function J(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
94
94
  /**
95
95
  * Type Guards
96
96
  */
@@ -156,7 +156,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
156
156
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
157
157
  e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
158
158
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
159
- e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Y||(Y={})),function(e){
159
+ e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Z||(Z={})),function(e){
160
160
  /**
161
161
  * Raw text
162
162
  */
@@ -316,7 +316,7 @@ if(Ue){
316
316
  // Native
317
317
  var Xe=Ve("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ge=function(e,t){var r;return Xe.lastIndex=t,null!==(r=Xe.exec(e)[1])&&void 0!==r?r:""}}else
318
318
  // IE11
319
- Ge=function(e,t){for(var r=[];;){var n=Fe(e,t);if(void 0===n||Ye(n)||ze(n))break;r.push(n),t+=n>=65536?2:1}return $e.apply(void 0,r)};var Ke=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Y.UNMATCHED_CLOSING_TAG,Ce(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:z.pound,location:Ce(s,this.clonePosition())})}}}return{val:n,err:null}},
319
+ Ge=function(e,t){for(var r=[];;){var n=Fe(e,t);if(void 0===n||Ze(n)||ze(n))break;r.push(n),t+=n>=65536?2:1}return $e.apply(void 0,r)};var Ke=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Z.UNMATCHED_CLOSING_TAG,Ce(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Ye(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:z.pound,location:Ce(s,this.clonePosition())})}}}return{val:n,err:null}},
320
320
  /**
321
321
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
322
322
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -340,12 +340,12 @@ var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
340
340
  // Self closing tag
341
341
  return{val:{type:z.literal,value:"<".concat(n,"/>"),location:Ce(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
342
342
  // Expecting a close tag
343
- if(this.bumpIf("</")){if(this.isEOF()||!Ze(this.char()))return this.error(Y.INVALID_TAG,Ce(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(Y.UNMATCHED_CLOSING_TAG,Ce(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:z.tag,value:n,children:o,location:Ce(r,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,Ce(s,this.clonePosition())))}return this.error(Y.UNCLOSED_TAG,Ce(r,this.clonePosition()))}return this.error(Y.INVALID_TAG,Ce(r,this.clonePosition()))},
343
+ if(this.bumpIf("</")){if(this.isEOF()||!Ye(this.char()))return this.error(Z.INVALID_TAG,Ce(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(Z.UNMATCHED_CLOSING_TAG,Ce(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:z.tag,value:n,children:o,location:Ce(r,this.clonePosition())},err:null}:this.error(Z.INVALID_TAG,Ce(s,this.clonePosition())))}return this.error(Z.UNCLOSED_TAG,Ce(r,this.clonePosition()))}return this.error(Z.INVALID_TAG,Ce(r,this.clonePosition()))},
344
344
  /**
345
345
  * This method assumes that the caller has peeked ahead for the first tag character.
346
346
  */
347
347
  e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
348
- for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ce(r,this.clonePosition());return{val:{type:z.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Ze(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
348
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ce(r,this.clonePosition());return{val:{type:z.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Ye(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
349
349
  /** See `parseTag` function docs. */},
350
350
  /**
351
351
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
@@ -368,9 +368,9 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
368
368
  this.bump();break}t.push(39),
369
369
  // Bump one more time because we need to skip 2 characters.
370
370
  this.bump()}else t.push(r);this.bump()}return $e.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),$e(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
371
- this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Y.EMPTY_ARGUMENT,Ce(r,this.clonePosition()));
371
+ this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Z.EMPTY_ARGUMENT,Ce(r,this.clonePosition()));
372
372
  // argument name
373
- var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Y.MALFORMED_ARGUMENT,Ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));switch(this.char()){
373
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Z.MALFORMED_ARGUMENT,Ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));switch(this.char()){
374
374
  // Simple argument: `{name}`
375
375
  case 125/* `}` */:// `}`
376
376
  return this.bump(),{val:{type:z.argument,
@@ -378,7 +378,7 @@ return this.bump(),{val:{type:z.argument,
378
378
  value:n,location:Ce(r,this.clonePosition())},err:null};
379
379
  // Argument with options: `{name, format, ...}`
380
380
  case 44/* `,` */:return this.bump(),// `,`
381
- this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Y.MALFORMED_ARGUMENT,Ce(r,this.clonePosition()))}},
381
+ this.bumpSpace(),this.isEOF()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Z.MALFORMED_ARGUMENT,Ce(r,this.clonePosition()))}},
382
382
  /**
383
383
  * Advance the parser until the end of the identifier, if it is currently on
384
384
  * an identifier character. Return an empty string otherwise.
@@ -389,15 +389,15 @@ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=th
389
389
  // ^---^
390
390
  switch(s){case"":
391
391
  // Expecting a style string number, date, time, plural, selectordinal, or select.
392
- return this.error(Y.EXPECT_ARGUMENT_TYPE,Ce(o,a));case"number":case"date":case"time":
392
+ return this.error(Z.EXPECT_ARGUMENT_TYPE,Ce(o,a));case"number":case"date":case"time":
393
393
  // Parse this range:
394
394
  // {name, number, style}
395
395
  // ^-------^
396
- this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=je(d.val)).length)return this.error(Y.EXPECT_ARGUMENT_STYLE,Ce(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ce(l,this.clonePosition())}}if((E=this.tryParseArgumentClose(n)).err)return E;var c=Ce(n,this.clonePosition());
396
+ this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=je(d.val)).length)return this.error(Z.EXPECT_ARGUMENT_STYLE,Ce(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ce(l,this.clonePosition())}}if((E=this.tryParseArgumentClose(n)).err)return E;var c=Ce(n,this.clonePosition());
397
397
  // Extract style or skeleton
398
398
  if(h&&De(null==h?void 0:h.style,"::",0)){
399
399
  // Skeleton starts with `::`.
400
- var u=xe(h.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(u,h.styleLocation)).err?d:{val:{type:z.number,value:r,location:c,style:d.val},err:null};if(0===u.length)return this.error(Y.EXPECT_DATE_TIME_SKELETON,c);var f=u;
400
+ var u=xe(h.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(u,h.styleLocation)).err?d:{val:{type:z.number,value:r,location:c,style:d.val},err:null};if(0===u.length)return this.error(Z.EXPECT_DATE_TIME_SKELETON,c);var f=u;
401
401
  // Get "best match" pattern only if locale is passed, if not, let it
402
402
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
403
403
  // for unsupported patterns.
@@ -407,27 +407,27 @@ return{val:{type:"number"===s?z.number:"date"===s?z.date:z.time,value:r,location
407
407
  // Parse this range:
408
408
  // {name, plural, options}
409
409
  // ^---------^
410
- var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,Ce(m,Q({},m)));this.bumpSpace();
410
+ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Z.EXPECT_SELECT_ARGUMENT_OPTIONS,Ce(m,Q({},m)));this.bumpSpace();
411
411
  // Parse offset:
412
412
  // {name, plural, offset:1, options}
413
413
  // ^-----^
414
414
  // or the first option:
415
415
  // {name, plural, one {...} other {...}}
416
416
  // ^--^
417
- var g=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ce(this.clonePosition(),this.clonePosition()));var d;if(this.bumpSpace(),(d=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;
417
+ var g=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ce(this.clonePosition(),this.clonePosition()));var d;if(this.bumpSpace(),(d=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;
418
418
  // Parse another identifier for option parsing
419
- this.bumpSpace(),g=this.parseIdentifierIfPossible(),b=d.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Ce(n,this.clonePosition());return"select"===s?{val:{type:z.select,value:r,options:ke(y.val),location:v},err:null}:{val:{type:z.plural,value:r,options:ke(y.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Y.INVALID_ARGUMENT_TYPE,Ce(o,a))}},e.prototype.tryParseArgumentClose=function(e){
419
+ this.bumpSpace(),g=this.parseIdentifierIfPossible(),b=d.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Ce(n,this.clonePosition());return"select"===s?{val:{type:z.select,value:r,options:ke(y.val),location:v},err:null}:{val:{type:z.plural,value:r,options:ke(y.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Z.INVALID_ARGUMENT_TYPE,Ce(o,a))}},e.prototype.tryParseArgumentClose=function(e){
420
420
  // Parse: {value, number, ::currency/GBP }
421
- return this.isEOF()||125/* `}` */!==this.char()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
421
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
422
422
  /**
423
423
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
424
424
  */
425
425
  e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
426
426
  // Treat apostrophe as quoting but include it in the style part.
427
427
  // Find the end of the quoted literal text.
428
- this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ce(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");
428
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ce(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");
429
429
  // Parse the skeleton
430
- for(var t=[],r=0,n=e.split(pe).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(Y.INVALID_NUMBER_SKELETON,t)}return{val:{type:W.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Te(r):{}},err:null}},
430
+ for(var t=[],r=0,n=e.split(pe).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(Z.INVALID_NUMBER_SKELETON,t)}return{val:{type:W.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Te(r):{}},err:null}},
431
431
  /**
432
432
  * @param nesting_level The current nesting level of messages.
433
433
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -444,17 +444,17 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
444
444
  // ^--^
445
445
  for(var i,o=!1,s=[],a=new Set,h=n.value,l=n.location;;){if(0===h.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
446
446
  // Try parse `={number}` selector
447
- var u=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ce(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}
447
+ var u=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ce(c,this.clonePosition()),h=this.message.slice(c.offset,this.offset())}
448
448
  // Duplicate selector clauses
449
- if(a.has(h))return this.error("select"===t?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===h&&(o=!0),
449
+ if(a.has(h))return this.error("select"===t?Z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===h&&(o=!0),
450
450
  // Parse:
451
451
  // one {one apple}
452
452
  // ^----------^
453
- this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ce(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([h,{value:p.val,location:Ce(f,this.clonePosition())}]),
453
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ce(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([h,{value:p.val,location:Ce(f,this.clonePosition())}]),
454
454
  // Keep track of the existing selectors
455
455
  a.add(h),
456
456
  // Prep next selector clause.
457
- this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Y.MISSING_OTHER_CLAUSE,Ce(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=Ce(n,this.clonePosition());return i?Re(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(){
457
+ this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?Z.EXPECT_SELECT_ARGUMENT_SELECTOR:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Z.MISSING_OTHER_CLAUSE,Ce(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=Ce(n,this.clonePosition());return i?Re(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(){
458
458
  // This is much faster than `Object.assign` or spread.
459
459
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
460
460
  /**
@@ -484,7 +484,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t
484
484
  */
485
485
  e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
486
486
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
487
- e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ye(this.char());)this.bump()},
487
+ e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ze(this.char());)this.bump()},
488
488
  /**
489
489
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
490
490
  * If the input has been exhausted, then this returns null.
@@ -494,16 +494,16 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
494
494
  * This check if codepoint is alphabet (lower & uppercase)
495
495
  * @param codepoint
496
496
  * @returns
497
- */function Ze(e){return e>=97&&e<=122||e>=65&&e<=90}
497
+ */function Ye(e){return e>=97&&e<=122||e>=65&&e<=90}
498
498
  /**
499
499
  * Code point equivalent of regex `\p{White_Space}`.
500
500
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
501
501
  */
502
- function Ye(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
502
+ function Ze(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
503
503
  /**
504
504
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
505
505
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
506
- */function ze(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 We(e){e.forEach((function(e){if(delete e.location,ie(e)||oe(e))for(var t in e.options)delete e.options[t].location,We(e.options[t].value);else te(e)&&he(e.style)||(re(e)||ne(e))&&le(e.style)?delete e.style.location:ae(e)&&We(e.children)}))}function Qe(e,t){void 0===t&&(t={}),t=Q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ke(e,t).parse();if(r.err){var n=SyntaxError(Y[r.err.kind]);
506
+ */function ze(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 We(e){e.forEach((function(e){if(delete e.location,ie(e)||oe(e))for(var t in e.options)delete e.options[t].location,We(e.options[t].value);else te(e)&&he(e.style)||(re(e)||ne(e))&&le(e.style)?delete e.style.location:ae(e)&&We(e.children)}))}function Qe(e,t){void 0===t&&(t={}),t=Q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ke(e,t).parse();if(r.err){var n=SyntaxError(Z[r.err.kind]);
507
507
  // @ts-expect-error Assign to error object
508
508
  throw n.location=r.err.location,
509
509
  // @ts-expect-error Assign to error object
@@ -529,7 +529,7 @@ e.MISSING_VALUE="MISSING_VALUE",
529
529
  // When value supplied is invalid
530
530
  e.INVALID_VALUE="INVALID_VALUE",
531
531
  // When we need specific Intl API but it's not available
532
- e.MISSING_INTL_API="MISSING_INTL_API"}(ot||(ot={}));var ht,lt=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return Z(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ct=/** @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('", "'),'"'),ot.INVALID_VALUE,i)||this}return Z(t,e),t}(lt),ut=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ot.INVALID_VALUE,n)||this}return Z(t,e),t}(lt),ft=/** @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,'"'),ot.MISSING_VALUE,r)||this}return Z(t,e),t}(lt);function pt(e){return"function"==typeof e}
532
+ e.MISSING_INTL_API="MISSING_INTL_API"}(ot||(ot={}));var ht,lt=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return Y(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ct=/** @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('", "'),'"'),ot.INVALID_VALUE,i)||this}return Y(t,e),t}(lt),ut=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ot.INVALID_VALUE,n)||this}return Y(t,e),t}(lt),ft=/** @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,'"'),ot.MISSING_VALUE,r)||this}return Y(t,e),t}(lt);function pt(e){return"function"==typeof e}
533
533
  // TODO(skeleton): add skeleton support
534
534
  function mt(e,t,r,n,i,o,
535
535
  // For debugging
@@ -566,10 +566,10 @@ this.formats=gt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
566
566
  // Default format options used as the prototype of the `formats` provided to the
567
567
  // constructor. These are used when constructing the internal Intl.NumberFormat
568
568
  // and Intl.DateTimeFormat instances.
569
- e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Et={},yt=(e,t,r)=>r?(t in Et||(Et[t]={}),e in Et[t]||(Et[t][e]=r),r):r,vt=(e,t)=>{if(null==t)return;if(t in Et&&e in Et[t])return Et[t][e];const r=zt(t);for(let n=0;n<r.length;n++){const i=_t(r[n],e);if(i)return yt(e,t,i)}};let Ht;const Tt=R({});function Bt(e){return e in Ht}function _t(e,t){if(!Bt(e))return null;const r=function(e){return Ht[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 At(e,...t){delete Et[e],Tt.update((r=>(r[e]=X.all([r[e]||{},...t]),r)))}U([Tt],(([e])=>Object.keys(e))),Tt.subscribe((e=>Ht=e));const Lt={};function wt(e){return Lt[e]}function Ct(e){return null!=e&&zt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function Pt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Lt[e].delete(t),0===Lt[e].size&&delete Lt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>At(e,...t)))}const St={};function Ot(e){if(!Ct(e))return e in St?St[e]:Promise.resolve();const t=function(e){return zt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return St[e]=Promise.all(t.map((([e,t])=>Pt(e,t)))).then((()=>{if(Ct(e))return Ot(e);delete St[e]})),St[e]}var Nt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;function Rt({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${zt(e).join('", "')}".${Ct(Wt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}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=R(!1);var $t=Object.defineProperty,kt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Kt;const Zt=R(null);function Yt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function zt(e,t=Gt().fallbackLocale){const r=Yt(e);return t?[...new Set([...r,...Yt(t)])]:r}function Wt(){return null!=Kt?Kt:void 0}Zt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(Jt=((e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Xt(e,r,t[r]);if(xt)for(var r of xt(t))Vt.call(t,r)&&Xt(e,r,t[r]);return e})({},Zt),kt(Jt,Ft({set:e=>{if(e&&function(e){if(null==e)return;const t=zt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Bt(r))return r}}(e)&&Ct(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Wt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return Zt.set(e)}})));var Jt;const qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var er=Object.defineProperty,tr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))rr.call(t,r)&&ir(e,r,t[r]);if(tr)for(var r of tr(t))nr.call(t,r)&&ir(e,r,t[r]);return e},sr=(e,t)=>{var r={};for(var n in e)rr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tr)for(var n of tr(e))t.indexOf(n)<0&&nr.call(e,n)&&(r[n]=e[n]);return r};const ar=(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.`)},hr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ar("number",n)),new Intl.NumberFormat(r,i)})),lr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ar("date",n):0===Object.keys(i).length&&(i=ar("date","short")),new Intl.DateTimeFormat(r,i)})),cr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ar("time",n):0===Object.keys(i).length&&(i=ar("time","short")),new Intl.DateTimeFormat(r,i)})),ur=qt((
569
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Et={},yt=(e,t,r)=>r?(t in Et||(Et[t]={}),e in Et[t]||(Et[t][e]=r),r):r,vt=(e,t)=>{if(null==t)return;if(t in Et&&e in Et[t])return Et[t][e];const r=zt(t);for(let n=0;n<r.length;n++){const i=_t(r[n],e);if(i)return yt(e,t,i)}};let Ht;const Tt=R({});function Bt(e){return e in Ht}function _t(e,t){if(!Bt(e))return null;const r=function(e){return Ht[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 At(e,...t){delete Et[e],Tt.update((r=>(r[e]=X.all([r[e]||{},...t]),r)))}U([Tt],(([e])=>Object.keys(e))),Tt.subscribe((e=>Ht=e));const Lt={};function wt(e){return Lt[e]}function Ct(e){return null!=e&&zt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function Pt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Lt[e].delete(t),0===Lt[e].size&&delete Lt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>At(e,...t)))}const St={};function Ot(e){if(!Ct(e))return e in St?St[e]:Promise.resolve();const t=function(e){return zt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return St[e]=Promise.all(t.map((([e,t])=>Pt(e,t)))).then((()=>{if(Ct(e))return Ot(e);delete St[e]})),St[e]}var Nt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;function Rt({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${zt(e).join('", "')}".${Ct(Wt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}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=R(!1);var $t=Object.defineProperty,kt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,r)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Kt;const Yt=R(null);function Zt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function zt(e,t=Gt().fallbackLocale){const r=Zt(e);return t?[...new Set([...r,...Zt(t)])]:r}function Wt(){return null!=Kt?Kt:void 0}Yt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(Jt=((e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Xt(e,r,t[r]);if(xt)for(var r of xt(t))Vt.call(t,r)&&Xt(e,r,t[r]);return e})({},Yt),kt(Jt,Ft({set:e=>{if(e&&function(e){if(null==e)return;const t=zt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Bt(r))return r}}(e)&&Ct(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Wt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{Yt.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return Yt.set(e)}})));var Jt;const qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var er=Object.defineProperty,tr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))rr.call(t,r)&&ir(e,r,t[r]);if(tr)for(var r of tr(t))nr.call(t,r)&&ir(e,r,t[r]);return e},sr=(e,t)=>{var r={};for(var n in e)rr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tr)for(var n of tr(e))t.indexOf(n)<0&&nr.call(e,n)&&(r[n]=e[n]);return r};const ar=(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.`)},hr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ar("number",n)),new Intl.NumberFormat(r,i)})),lr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ar("date",n):0===Object.keys(i).length&&(i=ar("date","short")),new Intl.DateTimeFormat(r,i)})),cr=qt((e=>{var t=e,{locale:r,format:n}=t,i=sr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ar("time",n):0===Object.keys(i).length&&(i=ar("time","short")),new Intl.DateTimeFormat(r,i)})),ur=qt((
570
570
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
- (e,t=Wt())=>new dt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=vt(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),br=(e,t=Wt())=>vt(e,t),dr=U([Qt,Tt],(()=>fr));function Er(e,t){At(e,t)}U([Qt],(()=>pr)),U([Qt],(()=>mr)),U([Qt],(()=>gr)),U([Qt,Tt],(()=>br)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)It.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Nt)for(var n of Nt(e))t.indexOf(n)<0&&Mt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{dt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Rt:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ut,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Ut.formats.number,r.number),"date"in r&&Object.assign(Ut.formats.date,r.date),"time"in r&&Object.assign(Ut.formats.time,r.time)),Qt.set(i)}({fallbackLocale:"en"});const yr={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};
571
+ (e,t=Wt())=>new dt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),fr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Wt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=vt(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Gt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=ur(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return cr(or({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return lr(or({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,n=sr(t,["locale"]);return hr(or({locale:r},n))})(t).format(e),br=(e,t=Wt())=>vt(e,t),dr=U([Qt,Tt],(()=>fr));function Er(e,t){At(e,t)}U([Qt],(()=>pr)),U([Qt],(()=>mr)),U([Qt],(()=>gr)),U([Qt,Tt],(()=>br)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)It.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Nt)for(var n of Nt(e))t.indexOf(n)<0&&Mt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{dt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Rt:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ut,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Ut.formats.number,r.number),"date"in r&&Object.assign(Ut.formats.date,r.date),"time"in r&&Object.assign(Ut.formats.time,r.time)),Qt.set(i)}({fallbackLocale:"en"});const yr={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Yatır",withdraw:"Çek"}}};
572
572
  /* src/CashierHeader.svelte generated by Svelte v3.59.2 */function vr(t){let r,n,i;return{c(){r=c("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',m(r,"class","CashierHeaderLeftButton")},m(e,o){h(e,r,o),n||(i=p(r,"click",/*back*/t[5]),n=!0)},p:e,d(e){e&&l(r),n=!1,i()}}}function Hr(t){let r,n,i,o,s,g,b,d,E,y,v,H=/*$_*/t[3](/*titleText*/t[2])+"",T=/*backButton*/t[1]&&vr(t);return{c(){r=c("div"),n=c("slot"),T&&T.c(),i=f(),o=c("slot"),s=c("span"),g=u(H),b=f(),d=c("slot"),E=c("span"),E.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',this.c=e,m(n,"name","leftButton"),m(s,"class","CashierHeaderTitle"),m(o,"name","title"),m(E,"class","CashierHeaderRightButton"),m(d,"name","rightButton"),m(r,"class","CashierHeader")},m(e,l){h(e,r,l),a(r,n),T&&T.m(n,null),a(r,i),a(r,o),a(o,s),a(s,g),a(r,b),a(r,d),a(d,E),
573
573
  /*div_binding*/t[12](r),y||(v=p(E,"click",/*close*/t[4]),y=!0)},p(e,[t]){/*backButton*/e[1]?T?T.p(e,t):(T=vr(e),T.c(),T.m(n,null)):T&&(T.d(1),T=null),/*$_, titleText*/12&t&&H!==(H=/*$_*/e[3](/*titleText*/e[2])+"")&&function(e,t){t=""+t,e.data!==t&&(e.data=t)}(g,H)},i:e,o:e,d(e){e&&l(r),T&&T.d()
574
- /*div_binding*/,t[12](null),y=!1,v()}}}function Tr(e,t,r){let n;var i,o;i=dr,o=e=>r(3,n=e),e.$$.on_destroy.push(s(i,o));let a,h,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{showbackbutton:f=""}=t,{title:p=""}=t,{lang:m="en"}=t,g=!1;Object.keys(yr).forEach((e=>{Er(e,yr[e])}));const b=()=>{var e;e=m,Qt.set(e)};return e.$$set=e=>{"clientstyling"in e&&r(6,l=e.clientstyling),"clientstylingurl"in e&&r(7,c=e.clientstylingurl),"translationurl"in e&&r(8,u=e.translationurl),"showbackbutton"in e&&r(9,f=e.showbackbutton),"title"in e&&r(10,p=e.title),"lang"in e&&r(11,m=e.lang)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&m&&b(),/*clientstyling, customStylingContainer*/65&e.$$.dirty&&l&&a&&(()=>{let e=document.createElement("style");e.innerHTML=l,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/129&e.$$.dirty&&c&&a&&(()=>{let e=new URL(c),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/256&e.$$.dirty&&u&&u&&fetch(u).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*showbackbutton*/512&e.$$.dirty&&f&&r(1,g=!!f&&"false"!==f),/*lang, title*/3072&e.$$.dirty&&m&&p&&r(2,h=p||"header.general")},[a,g,h,n,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},l,c,u,f,p,m,function(e){y[e?"unshift":"push"]((()=>{a=e,r(0,a)}))}]}class Br extends I{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeader .CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeader .CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeader .CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeader .CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}.CashierHeader .CashierHeaderRightButton .close-button svg path{fill:var(--mmw--color-grey-10, #111)}",this.shadowRoot.appendChild(t),N(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},Tr,Hr,o,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["clientstyling","clientstylingurl","translationurl","showbackbutton","title","lang"]}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),w()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),w()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),w()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),w()}}return!customElements.get("cashier-header")&&customElements.define("cashier-header",Br),Br}));
574
+ /*div_binding*/,t[12](null),y=!1,v()}}}function Tr(e,t,r){let n;var i,o;i=dr,o=e=>r(3,n=e),e.$$.on_destroy.push(s(i,o));let a,h,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{showbackbutton:f=""}=t,{title:p="header.general"}=t,{lang:m="en"}=t,g=!1;Object.keys(yr).forEach((e=>{Er(e,yr[e])}));const b=()=>{var e;e=m,Qt.set(e)};return e.$$set=e=>{"clientstyling"in e&&r(6,l=e.clientstyling),"clientstylingurl"in e&&r(7,c=e.clientstylingurl),"translationurl"in e&&r(8,u=e.translationurl),"showbackbutton"in e&&r(9,f=e.showbackbutton),"title"in e&&r(10,p=e.title),"lang"in e&&r(11,m=e.lang)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&m&&b(),/*lang, title*/3072&e.$$.dirty&&m&&p&&r(2,h=p||"header.general"),/*clientstyling, customStylingContainer*/65&e.$$.dirty&&l&&a&&(()=>{let e=document.createElement("style");e.innerHTML=l,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/129&e.$$.dirty&&c&&a&&(()=>{let e=new URL(c),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/256&e.$$.dirty&&u&&u&&fetch(u).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*showbackbutton*/512&e.$$.dirty&&f&&r(1,g=!!f&&"false"!==f)},[a,g,h,n,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},l,c,u,f,p,m,function(e){y[e?"unshift":"push"]((()=>{a=e,r(0,a)}))}]}class Br extends I{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeader .CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeader .CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeader .CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeader .CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}.CashierHeader .CashierHeaderRightButton .close-button svg path{fill:var(--mmw--color-grey-10, #111)}",this.shadowRoot.appendChild(t),N(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},Tr,Hr,o,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},null),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["clientstyling","clientstylingurl","translationurl","showbackbutton","title","lang"]}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),w()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),w()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),w()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),w()}}return!customElements.get("cashier-header")&&customElements.define("cashier-header",Br),Br}));
575
575
  //# sourceMappingURL=cashier-header.js.map