import{c as a,u as n}from"./c.743a15a1.js";import{eV as t}from"./main-85e087f9.js";import{l as r}from"./c.ebda878e.js";var e=a((function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseUnicodeLocaleId=n.parseUnicodeLanguageId=n.isUnicodeVariantSubtag=n.isUnicodeScriptSubtag=n.isUnicodeRegionSubtag=n.isStructurallyValidLanguageTag=n.isUnicodeLanguageSubtag=n.SEPARATOR=void 0;var r=/^[a-z0-9]{1,8}$/i,e=/^[a-z0-9]{2,8}$/i,L=/^[a-z0-9]{3,8}$/i,i=/^[a-z0-9][a-z]$/i,u=/^[a-z0-9]{3,8}$/i,Z=/^[a-z]{4}$/i,d=/^[0-9a-svwyz]$/i,o=/^([a-z]{2}|[0-9]{3})$/i,s=/^([a-z0-9]{5,8}|[0-9][a-z0-9]{3})$/i,l=/^([a-z]{2,3}|[a-z]{5,8})$/i,g=/^[a-z][0-9]$/i;function b(a){return l.test(a)}function c(a){return o.test(a)}function m(a){return Z.test(a)}function k(a){return s.test(a)}function h(a){"string"==typeof a&&(a=a.split(n.SEPARATOR));var t,r,e=a.shift();if(!e)throw new RangeError("Missing unicode_language_subtag");if("root"===e)return{lang:"root",variants:[]};if(!b(e))throw new RangeError("Malformed unicode_language_subtag");a.length&&m(a[0])&&(t=a.shift()),a.length&&c(a[0])&&(r=a.shift());for(var L={};a.length&&k(a[0]);){var i=a.shift();if(i in L)throw new RangeError('Duplicate variant "'.concat(i,'"'));L[i]=1}return{lang:e,script:t,region:r,variants:Object.keys(L)}}function p(a){for(var n,t=[];a.length&&(n=f(a));)t.push(n);if(t.length)return{type:"u",keywords:t,attributes:[]};for(var r=[];a.length&&L.test(a[0]);)r.push(a.shift());for(;a.length&&(n=f(a));)t.push(n);if(t.length||r.length)return{type:"u",attributes:r,keywords:t};throw new RangeError("Malformed unicode_extension")}function f(a){var t;if(i.test(a[0])){t=a.shift();for(var r=[];a.length&&u.test(a[0]);)r.push(a.shift());var e="";return r.length&&(e=r.join(n.SEPARATOR)),[t,e]}}function y(a){var t;try{t=h(a)}catch(a){}for(var r=[];a.length&&g.test(a[0]);){for(var e=a.shift(),i=[];a.length&&L.test(a[0]);)i.push(a.shift());if(!i.length)throw new RangeError('Missing tvalue for tkey "'.concat(e,'"'));r.push([e,i.join(n.SEPARATOR)])}if(r.length)return{type:"t",fields:r,lang:t};throw new RangeError("Malformed transformed_extension")}function A(a){for(var t=[];a.length&&r.test(a[0]);)t.push(a.shift());if(t.length)return{type:"x",value:t.join(n.SEPARATOR)};throw new RangeError("Malformed private_use_extension")}function v(a){for(var t=[];a.length&&e.test(a[0]);)t.push(a.shift());return t.length?t.join(n.SEPARATOR):""}n.SEPARATOR="-",n.isUnicodeLanguageSubtag=b,n.isStructurallyValidLanguageTag=function(a){try{h(a.split(n.SEPARATOR))}catch(a){return!1}return!0},n.isUnicodeRegionSubtag=c,n.isUnicodeScriptSubtag=m,n.isUnicodeVariantSubtag=k,n.parseUnicodeLanguageId=h,n.parseUnicodeLocaleId=function(a){var r=a.split(n.SEPARATOR),e=h(r);return(0,t.__assign)({lang:e},function(a){if(!a.length)return{extensions:[]};var n,t,r,e=[],L={};do{var i=a.shift();switch(i){case"u":case"U":if(n)throw new RangeError("There can only be 1 -u- extension");n=p(a),e.push(n);break;case"t":case"T":if(t)throw new RangeError("There can only be 1 -t- extension");t=y(a),e.push(t);break;case"x":case"X":if(r)throw new RangeError("There can only be 1 -x- extension");r=A(a),e.push(r);break;default:if(!d.test(i))throw new RangeError("Malformed extension type");if(i in L)throw new RangeError("There can only be 1 -".concat(i,"- extension"));var u={type:i,value:v(a)};L[u.type]=u,e.push(u)}}while(a.length);return{extensions:e}}(r))}}));n(e),e.parseUnicodeLocaleId,e.parseUnicodeLanguageId,e.isUnicodeVariantSubtag,e.isUnicodeScriptSubtag,e.isUnicodeRegionSubtag,e.isStructurallyValidLanguageTag,e.isUnicodeLanguageSubtag,e.SEPARATOR;var L=a((function(a,n){function r(a){return a?(0,t.__spreadArray)([a.lang,a.script,a.region],a.variants||[],!0).filter(Boolean).join("-"):""}Object.defineProperty(n,"__esModule",{value:!0}),n.emitUnicodeLocaleId=n.emitUnicodeLanguageId=void 0,n.emitUnicodeLanguageId=r,n.emitUnicodeLocaleId=function(a){for(var n=a.lang,e=a.extensions,L=[r(n)],i=0,u=e;in[0]?1:0}function d(a,n){return a.typen.type?1:0}function o(a,n){for(var r=(0,t.__spreadArray)([],a,!0),e=0,L=n;e-1&&(k=f)}}k&&(n.region=k),n.region=n.region.toUpperCase()}if(n.script&&(n.script=n.script[0].toUpperCase()+n.script.slice(1).toLowerCase(),i.scriptAlias[n.script]&&(n.script=i.scriptAlias[n.script])),n.variants.length){for(var y=0;y-1&&(u.caseFirst=p.kf),Z.indexOf("kn")>-1&&(u.numeric=(0,r.SameValue)(p.kn,"true")),u.numberingSystem=p.nu}return a.prototype.maximize=function(){var n=(0,e.default)(this).locale;try{return new a(Z(n))}catch(t){return new a(n)}},a.prototype.minimize=function(){var n=(0,e.default)(this).locale;try{return new a(function(a){var n=Z(a);if(!n)return a;n=(0,o.emitUnicodeLanguageId)((0,t.__assign)((0,t.__assign)({},(0,o.parseUnicodeLanguageId)(n)),{variants:[]}));var r=(0,o.parseUnicodeLocaleId)(a),e=r.lang,L=e.lang,i=e.script,d=e.region,s=e.variants;return Z((0,o.emitUnicodeLanguageId)({lang:L,variants:[]}))===n?(0,o.emitUnicodeLocaleId)((0,t.__assign)((0,t.__assign)({},r),{lang:u(L,void 0,void 0,s)})):d&&Z((0,o.emitUnicodeLanguageId)({lang:L,region:d,variants:[]}))===n?(0,o.emitUnicodeLocaleId)((0,t.__assign)((0,t.__assign)({},r),{lang:u(L,void 0,d,s)})):i&&Z((0,o.emitUnicodeLanguageId)({lang:L,script:i,variants:[]}))===n?(0,o.emitUnicodeLocaleId)((0,t.__assign)((0,t.__assign)({},r),{lang:u(L,i,void 0,s)})):a}(n))}catch(t){return new a(n)}},a.prototype.toString=function(){return(0,e.default)(this).locale},Object.defineProperty(a.prototype,"baseName",{get:function(){var a=(0,e.default)(this).locale;return(0,o.emitUnicodeLanguageId)((0,o.parseUnicodeLanguageId)(a))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"calendar",{get:function(){return(0,e.default)(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"collation",{get:function(){return(0,e.default)(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hourCycle",{get:function(){return(0,e.default)(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"caseFirst",{get:function(){return(0,e.default)(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"numeric",{get:function(){return(0,e.default)(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"numberingSystem",{get:function(){return(0,e.default)(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"language",{get:function(){var a=(0,e.default)(this).locale;return(0,o.parseUnicodeLanguageId)(a).lang},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"script",{get:function(){var a=(0,e.default)(this).locale;return(0,o.parseUnicodeLanguageId)(a).script},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"region",{get:function(){var a=(0,e.default)(this).locale;return(0,o.parseUnicodeLanguageId)(a).region},enumerable:!1,configurable:!0}),a.relevantExtensionKeys=L,a}();n.Locale=d;try{"undefined"!=typeof Symbol&&Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(a){}n.default=d}));n(l),l.Locale;var g=a((function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(a){return!0}}()}}));n(g),g.shouldPolyfill;var b=a((function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),(0,g.shouldPolyfill)()&&Object.defineProperty(Intl,"Locale",{value:l.Locale,writable:!0,enumerable:!1,configurable:!0})})),c=n(b);export{b as __moduleExports,c as default};