1(self.webpackChunkappsheet_app=self.webpackChunkappsheet_app||[]).push([["vendors-node_modules_lingui_core_dist_index_cjs"],{39271:function(e,t){var r,n,s;n=[],void 0===(s="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function s(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function o(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(e){return new RegExp("|"+e).exec("").length-1}function a(e){return"("+e+")"}function l(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function c(e){if("string"==typeof e)return"(?:"+o(e)+")";if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function f(e,t){for(var r=e.length,n=0;;){var s=e.lastIndexOf("\n",r-1);if(-1===s)break;if(r=s,++n===t)break;if(0===r)break}var o=n<t?0:r+1;return e.substring(o).split("\n")}function h(e){for(var t=Object.getOwnPropertyNames(e),r=[],n=0;n<t.length;n++){var o=t[n],i=e[o],a=[].concat(i);if("include"!==o){var l=[];a.forEach((function(e){s(e)?(l.length&&r.push(p(o,l)),r.push(p(o,e)),l=[]):l.push(e)})),l.length&&r.push(p(o,l))}else for(var c=0;c<a.length;c++)r.push({include:a[c]})}return r}function d(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(n.include)for(var s=[].concat(n.include),o=0;o<s.length;o++)t.push({include:s[o]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));t.push(p(n.type,n))}}return t}function p(t,r){if(s(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var o={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var i in r)e.call(r,i)&&(o[i]=r[i]);if("string"==typeof o.type&&t!==o.type)throw new Error("Type transform cannot be a string (type '"+o.type+"' for token '"+t+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),o}function y(e){return Array.isArray(e)?d(e):h(e)}var g=p("error",{lineBreaks:!0,shouldThrow:!0});function m(e,t){for(var s=null,o=Object.create(null),u=!0,f=null,h=[],d=[],p=0;p<e.length;p++)e[p].fallback&&(u=!1);for(p=0;p<e.length;p++){var y=e[p];if(y.include)throw new Error("Inheritance is not allowed in stateless lexers");if(y.error||y.fallback){if(s)throw!y.fallback==!s.fallback?new Error("Multiple "+(y.fallback?"fallback":"error")+" rules not allowed (for token '"+y.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+y.defaultType+"')");s=y}var m=y.match.slice();if(u)for(;m.length&&"string"==typeof m[0]&&1===m[0].length;)o[m.shift().charCodeAt(0)]=y;if(y.pop||y.push||y.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+y.defaultType+"')");if(y.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+y.defaultType+"')")}if(0!==m.length){u=!1,h.push(y);for(var w=0;w<m.length;w++){var v=m[w];if(n(v))if(null===f)f=v.unicode;else if(f!==v.unicode&&!1===y.fallback)throw new Error("If one rule is /u then all must be")}var k=l(m.map(c)),x=new RegExp(k);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(i(k)>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: ⦠) instead");if(!y.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);d.push(a(k))}}var b=s&&s.fallback,_=r&&!b?"ym":"gm",E=r||b?"":"|";return!0===f&&(_+="u"),{regexp:new RegExp(l(d)+E,_),groups:h,fast:o,error:s||g}}function w(e){var t=m(y(e));return new b({start:t},"start")}function v(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");
1if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}function k(e,t){var r=e.$all?y(e.$all):[];delete e.$all;var n=Object.getOwnPropertyNames(e);t||(t=n[0]);for(var s=Object.create(null),o=0;o<n.length;o++)s[g=n[o]]=y(e[g]).concat(r);for(o=0;o<n.length;o++)for(var i=s[g=n[o]],a=Object.create(null),l=0;l<i.length;l++){var c=i[l];if(c.include){var u=[l,1];if(c.include!==g&&!a[c.include]){a[c.include]=!0;var f=s[c.include];if(!f)throw new Error("Cannot include nonexistent state '"+c.include+"' (in state '"+g+"')");for(var h=0;h<f.length;h++){var d=f[h];-1===i.indexOf(d)&&u.push(d)}}i.splice.apply(i,u),l--}}var p=Object.create(null);for(o=0;o<n.length;o++){var g;p[g=n[o]]=m(s[g],!0)}for(o=0;o<n.length;o++){var w=n[o],k=p[w],x=k.groups;for(l=0;l<x.length;l++)v(x[l],w,p);var _=Object.getOwnPropertyNames(k.fast);for(l=0;l<_.length;l++)v(k.fast[_[l]],w,p)}return new b(p,t)}function x(e){for(var t="undefined"!=typeof Map,r=t?new Map:Object.create(null),n=Object.getOwnPropertyNames(e),s=0;s<n.length;s++){var o=n[s],i=e[o];(Array.isArray(i)?i:[i]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+o+"')");t?r.set(e,o):r[e]=o}))}return function(e){return t?r.get(e):r[e]}}var b=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};b.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},b.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},b.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},b.prototype.popState=function(){this.setState(this.stack.pop())},b.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var _=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function E(){return this.value}if(b.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r<t;r++)if(void 0!==e[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},b.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var r=this.buffer;if(e!==r.length){if(i=this.fast[r.charCodeAt(e)])return this._token(i,r.charAt(e),e);var n=this.re;n.lastIndex=e;var s=_(n,r),o=this.error;if(null==s)return this._token(o,r.slice(e,r.length),e);var i=this._getGroup(s),a=s[0];return o.fallback&&s.index!==e?(this.queuedGroup=i,this.queuedText=a,this._token(o,r.slice(e,s.index),e)):this._token(i,a,e)}},b.prototype._token=function(e,t,r){var n=0;if(e.lineBreaks){var s=/\n/g,o=1;if("\n"===t)n=1;else for(;s.exec(t);)n++,o=s.lastIndex}var i={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:E,offset:r,lineBreaks:n,line:this.line,col:this.col},a=t.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-o+1:this.col+=a,e.shouldThrow)throw new Error(this.formatError(i,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),i},"undefined"!=typeof Symbol&&Symbol.iterator){var O=function(e){this.lexer=e};O.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},O.prototype[Symbol.iterator]=function(){return this},b.prototype[Symbol.iterator]=function(){return new O(this)}}return b.prototype.formatError=function(e,t){if(null==e){var r=this.buffer.slice(this.index);e={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=2,s=Math.max(e.line-n,1),o=e.line+n,i=String(o).length,a=f(this.buffer,this.line-e.line+n+1).slice(0,5),l=[];l.push(t+" at line "+e.line+" col "+e.col+":"),l.push("");for(var c=0;c<a.length;c++){var h=a[c],d=s+c;l.push(u(String(d),i)+" "+h),d===e.line&&l.push(u("",i+e.col+1)+"^")}return l.join("\n")},b.prototype.clone=function(){return new b(this.states,this.state)},b.prototype.has=function(e){return!0},{compile:w,states:k,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:x}})?r.apply(t,n):r)||(e.exports=s)},28498:(e,t)=>
1{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},493012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;const n=r(28498);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function o(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return n.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return n.errorMessages}});const i=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function l(e,t=!1){return e.replace(a,(function(e,r,a,l,c,u,f,h,d){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=s(e,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==l)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(l);if(void 0!==c)return o(c,u);if(void 0!==f)return o(f);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(h,!t);if(void 0!==d)return p=d,i.get(p)||p;var p;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.unraw=l,t.default=l},623583:(e,t,r)=>{"use strict";const n=r(493012),s=(r(346206),e=>"string"==typeof e),o=new Map,i="en";function a(e){return[...Array.isArray(e)?e:[e],i]}function l(e,t,r){const n=a(e);let o;if(r||(r="default"),"string"==typeof r)switch(o={day:"numeric",month:"short",year:"numeric"},r){case"full":o.weekday="long";case"long":o.month="long";break;case"short":o.month="numeric"}else o=r;return h((()=>d("date",n,r)),(()=>new Intl.DateTimeFormat(n,o))).format(s(t)?new Date(t):t)}function c(e,t,r){let n;if(r||(r="default"),"string"==typeof r)switch(n={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}else n=r;return l(e,t,n)}function u(e,t,r){const n=a(e);return h((()=>d("number",n,r)),(()=>new Intl.NumberFormat(n,r))).format(t)}function f(e,t,r,{offset:n=0,...s}){const o=a(e),i=t?h((()=>d("plural-ordinal",o)),(()=>new Intl.PluralRules(o,{type:"ordinal"}))):h((()=>d("plural-cardinal",o)),(()=>new Intl.PluralRules(o,{type:"cardinal"})));return s[r]??s[i.select(r-n)]??s.other}function h(e,t){const r=e();let n=o.get(r);return n||(n=t(),o.set(r,n)),n}function d(e,t,r){return`${e}-${t.join("-")}-${JSON.stringify(r)}`}const p={__proto__:null,date:l,defaultLocale:i,number:u,plural:f,time:c},y=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,g="%__lingui_octothorpe__%",m=(e,t)=>t[e]??t.other;function w(e,t,r){return(o={},i)=>{const a=((e,t,r={})=>{const n=t||e,s=e=>"object"==typeof e?e:r[e],o=(e,t)=>{const o=Object.keys(r).length?s("number"):void 0,i=u(n,e,o);return t.replace(new RegExp(g,"g"),i)};return{plural:(e,t)=>{const{offset:r=0}=t,s=f(n,!1,e,t);return o(e-r,s)},selectordinal:(e,t)=>{const{offset:r=0}=t,s=f(n,!0,e,t);return o(e-r,s)},select:m,number:(e,t)=>u(n,e,s(t)||{style:t}),date:(e,t)=>
1l(n,e,s(t)||t),time:(e,t)=>c(n,e,s(t)||t)}})(t,r,i),h=(e,t=!1)=>Array.isArray(e)?e.reduce(((e,r)=>{if("#"===r&&t)return e+g;if(s(r))return e+r;const[n,i,l]=r;let c,u={};if("plural"===i||"selectordinal"===i||"select"===i?Object.entries(l).forEach((([e,t])=>{u[e]=h(t,"plural"===i||"selectordinal"===i)})):u=l,i){c=(0,a[i])(o[n],u)}else c=o[n];return null==c?e:e+c}),""):e,d=h(e);return s(d)&&y.test(d)?n.unraw(d):s(d)?d:d?String(d):""}}var v=Object.defineProperty,k=(e,t,r)=>(((e,t,r)=>{t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class x{constructor(){k(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){const r=this._getListeners(e);if(!r)return;const n=r.indexOf(t);~n&&r.splice(n,1)}emit(e,...t){const r=this._getListeners(e);r&&r.map((e=>e.apply(this,t)))}_getListeners(e){const t=this._events[e];return!!Array.isArray(t)&&t}}var b=Object.defineProperty,_=(e,t,r)=>(((e,t,r)=>{t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class E extends x{constructor(e){super(),_(this,"_locale",""),_(this,"_locales"),_(this,"_localeData",{}),_(this,"_messages",{}),_(this,"_missing"),_(this,"_messageCompiler"),_(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??i,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){const r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){"string"==typeof e?this._loadLocaleData(e,t):Object.keys(e).forEach((t=>this._loadLocaleData(t,e[t]))),this.emit("change")}_load(e,t){const r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach((([e,t])=>this._load(e,t))),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let n=r?.message;e||(e=""),s(e)||(t=e.values||t,n=e.message,e=e.id);const o=this.messages[e],i=void 0===o,a=this._missing;if(a&&i)return"function"==typeof a?a(this._locale,e):a;i&&this.emit("missing",{id:e,locale:this._locale});let l=o||n||e;return s(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:\n\n> ${l}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`)),s(l)&&y.test(l)?JSON.parse(`"${l}"`):s(l)?l:w(l,this._locale,this._locales)(t,r?.formats)}date(e,t){return l(this._locales||this._locale,e,t)}number(e,t){return u(this._locales||this._locale,e,t)}}function O(e={}){return new E(e)}const S=O();t.I18n=E,t.formats=p,t.i18n=S,t.setupI18n=O},346206:(e,t,r)=>{"use strict";const n=r(897564);class s extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const o=e=>e<4?"short":4===e?"long":"narrow",i=e=>e%2==0?"2-digit":"numeric";function a(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function l(e,t){const{char:r,desc:n,width:s}=e;return"d"===r?i(s):void t(`${n} is not supported`)}function c(e,t){const{char:r,desc:n,width:i}=e;if(("c"===r||"e"===r)&&i<3){t(`Numeric value is not supported for ${n}; falling back to weekday:short`,s.WARNING)}return o(i)}function u(e,t){const{char:r,desc:n,width:s}=e;switch(r){case"v":case"z":return 4===s?"long":"short";case"V":return 4===s?"long":void t(`${n} is not supported with width ${s}`);case"X":return void t(`${n} is not supported`)}return"short"}function f(e,t){switch(e.field){case"era":return{era:o(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:i(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,s.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:a(e,t)};case"day":return{day:l(e,t)};case"weekday":return{weekday:c(e,t)};case"period":return;case"hour":return function(e){const t=i(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:i(e.width)};case"sec":return{second:i(e.width)};case"tz":return{timeZoneName:u(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}
1const h={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},d=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function p(e,t){const r=e[t];if(!r)return null;if(d(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const s=h[r];if(!s)return{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n};return{char:r,field:s.field,desc:s.desc,width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const s=e[++t];if(++n,void 0===s)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===s){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=s}}(e,t);let n=r,s=1;for(;;){const o=e[++t];if(!o||d(o)||"'"===o)return{char:r,str:n,width:s};n+=o,s+=1}}function y(e,t){return e.filter((e=>"content"!==e.type)).length?e.map((e=>{if("content"===e.type)return t(e.value);if("octothorpe"===e.type)return"#";if("argument"===e.type)return[e.arg];if("function"===e.type){const t=e?.param?.[0];if("date"===e.key&&t){const r=function(e,t){if(/^::/.test(e)){const r=function(e){const t=[];let r=0;for(;;){const n=p(e,r);if(!n)return t;
1t.push(n),r+=n.width}}(e.substring(2));return function(e,t,r=e=>{throw e}){const n={timeZone:t},o=[];for(const t of e){const{error:e,field:i,str:a}=t;if(e){const n=new s(e.message,t);n.stack=e.stack,r(n)}a&&r(new s(`Ignoring string part: ${a}`,t,s.WARNING)),i&&(-1===o.indexOf(i)?o.push(i):r(new s(`Duplicate ${i} token`,t)));const l=f(t,((e,n)=>r(new s(e,t,n))));l&&Object.assign(n,l)}return n}(r,void 0,t)}return e}(t.value.trim(),(e=>{throw new Error(`Unable to compile date expression: ${e.message}`)}));return[e.arg,e.key,r]}return t?[e.arg,e.key,t.value.trim()]:[e.arg,e.key]}const r=e.pluralOffset,n={};return e.cases.forEach((({key:e,tokens:r})=>{const s="="===e[0]?e.slice(1):e;n[s]=y(r,t)})),[e.arg,e.type,{offset:r,...n}]})):e.map((e=>t(e.value)))}function g(e,t=e=>e){return y(n.parse(e),t)}t.compileMessage=function(e,t=e=>e){try{return g(e,t)}catch(t){return console.error(`${t.message} \n\nMessage: ${e}`),[e]}},t.compileMessageOrThrow=g},375545:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;const s=n(r(39271));t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^']|'')*'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=s.default.states(t.states)},897564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseError=void 0,t.parse=function(e,t={}){return new c(e,t).parse()};const n=r(375545),s=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),o=e=>"plural"===e||"select"===e||"selectordinal"===e;const i=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class l extends Error{constructor(e,t){super(n.lexer.formatError(e,t))}}t.ParseError=l;class c{constructor(e,t){var r,s,o,i;this.lexer=n.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:a,this.ordinalKeys=null!==(s=null==t?void 0:t.ordinal)&&void 0!==s?s:a,this.strict=null!==(o=null==t?void 0:t.strict)&&void 0!==o&&o,this.strictPluralKeys=null===(i=null==t?void 0:t.strictPluralKeys)||void 0===i||i}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new l(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r)){throw new l(e,`The ${t} case ${r} is not valid in this locale`)}}}parseSelect({value:e},t,r,n){const o={type:n,arg:e,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new l(e,"Unexpected plural offset for select");if(o.cases.length>0)throw new l(e,"Plural offset must be set before cases");o.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),o.cases.push({key:e.value,tokens:this.parseBody(t),ctx:s(e)});break;case"end":return o;default:throw new l(e,`Unexpected lexer token: ${e.type}`)}throw new l(null,"Unexpected message end")}parseArgToken(e,t){const r=s(e),n=this.lexer.next();if(!n)throw new l(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!i.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new l(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new l(null,"Unexpected message end");if("end"!==t.type)throw new l(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,o(n.value.toLowerCase()))throw new l(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(o(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new l(n,e)}let s=this.parseBody(!this.strict&&t);return this.strict&&s.length>0&&(s=function(e,t){let r="",n="";for(const s of t){const t=s.ctx.text;switch(n+=t,s.type){case"content":r+=s.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new l(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,s)),{type:"function",arg:e.value,key:n.value,param:s,ctx:r}}case"select":if(o(n.value))return this.parseSelect(e,t,r,n.value);throw new l(n,`Unexpected select type ${n.value}`);default:throw new l(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const o of this.lexer)if("argument"===o.type)n&&(n=null),r.push(this.parseArgToken(o,e));else if("octothorpe"===o.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:s(o)});else{if("end"===o.type&&!t)return r;{let t=o.value;if(!e&&"quoted"===o.type&&"#"===t[0]){if(t.includes("{")){throw new l(o,`Unsupported escape pattern: ${t}`)}t=o.text}n?(n.value+=t,n.ctx.text+=o.text,n.ctx.lineBreaks+=o.lineBreaks):(n={type:"content",value:t,ctx:s(o)},r.push(n))}}if(t)return r;throw new l(null,"Unexpected message end")}}}}]); 2//# sourceMappingURL=/cloud-sources/prod/eb8d1a30a0281f50c2468c6ddd5084ec6ca8d44c145573be391929bc20fecd77.map/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.