gc_i18n 1.0.8 → 1.1.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.
@@ -1,24 +1,24 @@
1
- (function(Q,T){typeof exports=="object"&&typeof module<"u"?module.exports=T(require("view-ui-plus"),require("vue"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["view-ui-plus","vue","lodash-es","axios"],T):(Q=typeof globalThis<"u"?globalThis:Q||self,Q.gc_i18n=T(Q.iview,Q.Vue,Q._,Q.Axios))})(this,function(Q,T,H,Le){"use strict";var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},ms=ze.exports,tn;function hs(){return tn||(tn=1,function(e,t){(function(n,s){e.exports=s()})(ms,function(){function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(o)}function s(o,m){if(!(o instanceof m))throw new TypeError("Cannot call a class as a function")}function a(o,m){for(var l=0;l<m.length;l++){var u=m[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function r(o,m,l){return m&&a(o.prototype,m),o}function i(o){return c(o)||f(o)||p(o)||v()}function c(o){if(Array.isArray(o))return N(o)}function f(o){if(typeof Symbol<"u"&&Symbol.iterator in Object(o))return Array.from(o)}function p(o,m){if(o){if(typeof o=="string")return N(o,m);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return N(o,m)}}function N(o,m){(m==null||m>o.length)&&(m=o.length);for(var l=0,u=new Array(m);l<m;l++)u[l]=o[l];return u}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=function(){function o(m){s(this,o),this.sourceStr=m,this.subCombos=o.parseComboStr(m),this.keyNames=this.subCombos.reduce(function(l,u){return l.concat(u)},[])}return r(o,[{key:"check",value:function(l){for(var u=0,_=0;_<this.subCombos.length;_+=1)if(u=this._checkSubCombo(this.subCombos[_],u,l),u===-1)return!1;return!0}},{key:"isEqual",value:function(l){if(!l||typeof l!="string"&&n(l)!=="object"||(typeof l=="string"&&(l=new o(l)),this.subCombos.length!==l.subCombos.length))return!1;for(var u=0;u<this.subCombos.length;u+=1)if(this.subCombos[u].length!==l.subCombos[u].length)return!1;for(var _=0;_<this.subCombos.length;_+=1){for(var E=this.subCombos[_],g=l.subCombos[_].slice(0),O=0;O<E.length;O+=1){var R=E[O],w=g.indexOf(R);w>-1&&g.splice(w,1)}if(g.length!==0)return!1}return!0}},{key:"_checkSubCombo",value:function(l,u,_){l=l.slice(0),_=_.slice(u);for(var E=u,g=0;g<l.length;g+=1){var O=l[g];if(O[0]==="\\"){var R=O.slice(1);(R===o.comboDeliminator||R===o.keyDeliminator)&&(O=R)}var w=_.indexOf(O);if(w>-1&&(l.splice(g,1),g-=1,w>E&&(E=w),l.length===0))return E}return-1}}]),o}();y.comboDeliminator=">",y.keyDeliminator="+",y.parseComboStr=function(o){for(var m=y._splitStr(o,y.comboDeliminator),l=[],u=0;u<m.length;u+=1)l.push(y._splitStr(m[u],y.keyDeliminator));return l},y._splitStr=function(o,m){for(var l=o,u=m,_="",E=[],g=0;g<l.length;g+=1)g>0&&l[g]===u&&l[g-1]!=="\\"&&(E.push(_.trim()),_="",g+=1),_+=l[g];return _&&E.push(_.trim()),E};var I=function(){function o(m){s(this,o),this.localeName=m,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(o,[{key:"bindKeyCode",value:function(l,u){typeof u=="string"&&(u=[u]),this._keyMap[l]=u}},{key:"bindMacro",value:function(l,u){typeof u=="string"&&(u=[u]);var _=null;typeof u=="function"&&(_=u,u=null);var E={keyCombo:new y(l),keyNames:u,handler:_};this._macros.push(E)}},{key:"getKeyCodes",value:function(l){var u=[];for(var _ in this._keyMap){var E=this._keyMap[_].indexOf(l);E>-1&&u.push(_|0)}return u}},{key:"getKeyNames",value:function(l){return this._keyMap[l]||[]}},{key:"setKillKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.setKillKey(u[_]);return}this._killKeyCodes.push(l)}},{key:"pressKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.pressKey(u[_]);return}this.activeTargetKeys.length=0;for(var E=this.getKeyNames(l),g=0;g<E.length;g+=1)this.activeTargetKeys.push(E[g]),this.pressedKeys.indexOf(E[g])===-1&&this.pressedKeys.push(E[g]);this._applyMacros()}},{key:"releaseKey",value:function(l){if(typeof l=="string")for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.releaseKey(u[_]);else{var E=this.getKeyNames(l),g=this._killKeyCodes.indexOf(l);if(g!==-1)this.pressedKeys.length=0;else for(var O=0;O<E.length;O+=1){var R=this.pressedKeys.indexOf(E[O]);R>-1&&this.pressedKeys.splice(R,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var l=this._macros.slice(0),u=0;u<l.length;u+=1){var _=l[u];if(_.keyCombo.check(this.pressedKeys)){_.handler&&(_.keyNames=_.handler(this.pressedKeys));for(var E=0;E<_.keyNames.length;E+=1)this.pressedKeys.indexOf(_.keyNames[E])===-1&&this.pressedKeys.push(_.keyNames[E]);this._appliedMacros.push(_)}}}},{key:"_clearMacros",value:function(){for(var l=0;l<this._appliedMacros.length;l+=1){var u=this._appliedMacros[l];if(!u.keyCombo.check(this.pressedKeys)){for(var _=0;_<u.keyNames.length;_+=1){var E=this.pressedKeys.indexOf(u.keyNames[_]);E>-1&&this.pressedKeys.splice(E,1)}u.handler&&(u.keyNames=null),this._appliedMacros.splice(l,1),l-=1}}}}]),o}(),P=function(){function o(m,l,u,_){s(this,o),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:m,targetElement:l,targetPlatform:u,targetUserAgent:_},this.setContext("global")}return r(o,[{key:"setLocale",value:function(l,u){var _=null;return typeof l=="string"?u?(_=new I(l),u(_,this._targetPlatform,this._targetUserAgent)):_=this._locales[l]||null:(_=l,l=_._localeName),this._locale=_,this._locales[l]=_,_&&(this._locale.pressedKeys=_.pressedKeys),this}},{key:"getLocale",value:function(l){return l||(l=this._locale.localeName),this._locales[l]||null}},{key:"bind",value:function(l,u,_,E){if((l===null||typeof l=="function")&&(E=_,_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var g=0;g<l.length;g+=1)this.bind(l[g],u,_);return this}return this._listeners.push({keyCombo:l?new y(l):null,pressHandler:u||null,releaseHandler:_||null,preventRepeat:!1,preventRepeatByDefault:E||!1,executingHandler:!1}),this}},{key:"addListener",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"on",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"bindPress",value:function(l,u,_){return this.bind(l,u,null,_)}},{key:"bindRelease",value:function(l,u){return this.bind(l,null,u,preventRepeatByDefault)}},{key:"unbind",value:function(l,u,_){if((l===null||typeof l=="function")&&(_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var E=0;E<l.length;E+=1)this.unbind(l[E],u,_);return this}for(var g=0;g<this._listeners.length;g+=1){var O=this._listeners[g],R=!l&&!O.keyCombo||O.keyCombo&&O.keyCombo.isEqual(l),w=!u&&!_||!u&&!O.pressHandler||u===O.pressHandler,Y=!u&&!_||!_&&!O.releaseHandler||_===O.releaseHandler;R&&w&&Y&&(this._listeners.splice(g,1),g-=1)}return this}},{key:"removeListener",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"off",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"setContext",value:function(l){if(this._locale&&this.releaseAllKeys(),!this._contexts[l]){var u=this._contexts.global;this._contexts[l]={listeners:[],targetWindow:u.targetWindow,targetElement:u.targetElement,targetPlatform:u.targetPlatform,targetUserAgent:u.targetUserAgent}}var _=this._contexts[l];return this._currentContext=l,this._listeners=_.listeners,this.stop(),this.watch(_.targetWindow,_.targetElement,_.targetPlatform,_.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(l,u){var _=this.getContext();return this.setContext(l),u(),this.setContext(_),this}},{key:"watch",value:function(l,u,_,E){var g=this;this.stop();var O=typeof globalThis<"u"?globalThis:typeof zt<"u"?zt:typeof window<"u"?window:{};if(!l){if(!O.addEventListener&&!O.attachEvent){if(this._currentContext==="global")return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}l=O}if(typeof l.nodeType=="number"&&(E=_,_=u,u=l,l=O),!l.addEventListener&&!l.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!l.addEventListener;var R=l.navigator&&l.navigator.userAgent||"",w=l.navigator&&l.navigator.platform||"";u&&u!==null||(u=l.document),_&&_!==null||(_=w),E&&E!==null||(E=R),this._targetKeyDownBinding=function($){g.pressKey($.keyCode,$),g._handleCommandBug($,w)},this._targetKeyUpBinding=function($){g.releaseKey($.keyCode,$)},this._targetResetBinding=function($){g.releaseAllKeys($)},this._bindEvent(u,"keydown",this._targetKeyDownBinding),this._bindEvent(u,"keyup",this._targetKeyUpBinding),this._bindEvent(l,"focus",this._targetResetBinding),this._bindEvent(l,"blur",this._targetResetBinding),this._targetElement=u,this._targetWindow=l,this._targetPlatform=_,this._targetUserAgent=E;var Y=this._contexts[this._currentContext];return Y.targetWindow=this._targetWindow,Y.targetElement=this._targetElement,Y.targetPlatform=this._targetPlatform,Y.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(!(!this._targetElement||!this._targetWindow))return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(l),this._applyBindings(u),this}},{key:"releaseKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(l),this._clearBindings(u),this}},{key:"releaseAllKeys",value:function(l){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(l),this}},{key:"pause",value:function(){return this._paused?this:(this._locale&&this.releaseAllKeys(),this._paused=!0,this)}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(l,u,_){return this._isModernBrowser?l.addEventListener(u,_,!1):l.attachEvent("on"+u,_)}},{key:"_unbindEvent",value:function(l,u,_){return this._isModernBrowser?l.removeEventListener(u,_,!1):l.detachEvent("on"+u,_)}},{key:"_getGroupedListeners",value:function(){var l=[],u=[],_=this._listeners;return this._currentContext!=="global"&&(_=[].concat(i(_),i(this._contexts.global.listeners))),_.sort(function(E,g){return(g.keyCombo?g.keyCombo.keyNames.length:0)-(E.keyCombo?E.keyCombo.keyNames.length:0)}).forEach(function(E){for(var g=-1,O=0;O<u.length;O+=1)(u[O]===null&&E.keyCombo===null||u[O]!==null&&u[O].isEqual(E.keyCombo))&&(g=O);g===-1&&(g=u.length,u.push(E.keyCombo)),l[g]||(l[g]=[]),l[g].push(E)}),l}},{key:"_applyBindings",value:function(l){var u=this,_=!1;l||(l={}),l.preventRepeat=function(){_=!0},l.pressedKeys=this._locale.pressedKeys.slice(0);for(var E=this._locale.activeTargetKeys,g=this._locale.pressedKeys.slice(0),O=this._getGroupedListeners(),R=function($){var de=O[$],_e=de[0].keyCombo;if(_e===null||_e.check(g)&&E.some(function(Xe){return _e.keyNames.includes(Xe)})){for(var Ae=0;Ae<de.length;Ae+=1){var re=de[Ae];!re.executingHandler&&re.pressHandler&&!re.preventRepeat&&(re.executingHandler=!0,re.pressHandler.call(u,l),re.executingHandler=!1,(_||re.preventRepeatByDefault)&&(re.preventRepeat=!0,_=!1)),u._appliedListeners.indexOf(re)===-1&&u._appliedListeners.push(re)}if(_e)for(var ve=0;ve<_e.keyNames.length;ve+=1){var Ke=g.indexOf(_e.keyNames[ve]);Ke!==-1&&(g.splice(Ke,1),ve-=1)}}},w=0;w<O.length;w+=1)R(w)}},{key:"_clearBindings",value:function(l){l||(l={}),l.pressedKeys=this._locale.pressedKeys.slice(0);for(var u=0;u<this._appliedListeners.length;u+=1){var _=this._appliedListeners[u],E=_.keyCombo;(E===null||!E.check(this._locale.pressedKeys))&&(_.preventRepeat=!1,(E!==null||l.pressedKeys.length===0)&&(this._appliedListeners.splice(u,1),u-=1),!_.executingHandler&&_.releaseHandler&&(_.executingHandler=!0,_.releaseHandler.call(this,l),_.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(l,u){var _=["shift","ctrl","alt","capslock","tab","command"];u.match("Mac")&&this._locale.pressedKeys.includes("command")&&!_.includes(this._locale.getKeyNames(l.keyCode)[0])&&this._targetKeyUpBinding(l)}}]),o}();function A(o,m,l){o.bindKeyCode(3,["cancel"]),o.bindKeyCode(8,["backspace"]),o.bindKeyCode(9,["tab"]),o.bindKeyCode(12,["clear"]),o.bindKeyCode(13,["enter"]),o.bindKeyCode(16,["shift"]),o.bindKeyCode(17,["ctrl"]),o.bindKeyCode(18,["alt","menu"]),o.bindKeyCode(19,["pause","break"]),o.bindKeyCode(20,["capslock"]),o.bindKeyCode(27,["escape","esc"]),o.bindKeyCode(32,["space","spacebar"]),o.bindKeyCode(33,["pageup"]),o.bindKeyCode(34,["pagedown"]),o.bindKeyCode(35,["end"]),o.bindKeyCode(36,["home"]),o.bindKeyCode(37,["left"]),o.bindKeyCode(38,["up"]),o.bindKeyCode(39,["right"]),o.bindKeyCode(40,["down"]),o.bindKeyCode(41,["select"]),o.bindKeyCode(42,["printscreen"]),o.bindKeyCode(43,["execute"]),o.bindKeyCode(44,["snapshot"]),o.bindKeyCode(45,["insert","ins"]),o.bindKeyCode(46,["delete","del"]),o.bindKeyCode(47,["help"]),o.bindKeyCode(145,["scrolllock","scroll"]),o.bindKeyCode(188,["comma",","]),o.bindKeyCode(190,["period","."]),o.bindKeyCode(191,["slash","forwardslash","/"]),o.bindKeyCode(192,["graveaccent","`"]),o.bindKeyCode(219,["openbracket","["]),o.bindKeyCode(220,["backslash","\\"]),o.bindKeyCode(221,["closebracket","]"]),o.bindKeyCode(222,["apostrophe","'"]),o.bindKeyCode(48,["zero","0"]),o.bindKeyCode(49,["one","1"]),o.bindKeyCode(50,["two","2"]),o.bindKeyCode(51,["three","3"]),o.bindKeyCode(52,["four","4"]),o.bindKeyCode(53,["five","5"]),o.bindKeyCode(54,["six","6"]),o.bindKeyCode(55,["seven","7"]),o.bindKeyCode(56,["eight","8"]),o.bindKeyCode(57,["nine","9"]),o.bindKeyCode(96,["numzero","num0"]),o.bindKeyCode(97,["numone","num1"]),o.bindKeyCode(98,["numtwo","num2"]),o.bindKeyCode(99,["numthree","num3"]),o.bindKeyCode(100,["numfour","num4"]),o.bindKeyCode(101,["numfive","num5"]),o.bindKeyCode(102,["numsix","num6"]),o.bindKeyCode(103,["numseven","num7"]),o.bindKeyCode(104,["numeight","num8"]),o.bindKeyCode(105,["numnine","num9"]),o.bindKeyCode(106,["nummultiply","num*"]),o.bindKeyCode(107,["numadd","num+"]),o.bindKeyCode(108,["numenter"]),o.bindKeyCode(109,["numsubtract","num-"]),o.bindKeyCode(110,["numdecimal","num."]),o.bindKeyCode(111,["numdivide","num/"]),o.bindKeyCode(144,["numlock","num"]),o.bindKeyCode(112,["f1"]),o.bindKeyCode(113,["f2"]),o.bindKeyCode(114,["f3"]),o.bindKeyCode(115,["f4"]),o.bindKeyCode(116,["f5"]),o.bindKeyCode(117,["f6"]),o.bindKeyCode(118,["f7"]),o.bindKeyCode(119,["f8"]),o.bindKeyCode(120,["f9"]),o.bindKeyCode(121,["f10"]),o.bindKeyCode(122,["f11"]),o.bindKeyCode(123,["f12"]),o.bindKeyCode(124,["f13"]),o.bindKeyCode(125,["f14"]),o.bindKeyCode(126,["f15"]),o.bindKeyCode(127,["f16"]),o.bindKeyCode(128,["f17"]),o.bindKeyCode(129,["f18"]),o.bindKeyCode(130,["f19"]),o.bindKeyCode(131,["f20"]),o.bindKeyCode(132,["f21"]),o.bindKeyCode(133,["f22"]),o.bindKeyCode(134,["f23"]),o.bindKeyCode(135,["f24"]),o.bindMacro("shift + `",["tilde","~"]),o.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),o.bindMacro("shift + 2",["at","@"]),o.bindMacro("shift + 3",["number","#"]),o.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),o.bindMacro("shift + 5",["percent","%"]),o.bindMacro("shift + 6",["caret","^"]),o.bindMacro("shift + 7",["ampersand","and","&"]),o.bindMacro("shift + 8",["asterisk","*"]),o.bindMacro("shift + 9",["openparen","("]),o.bindMacro("shift + 0",["closeparen",")"]),o.bindMacro("shift + -",["underscore","_"]),o.bindMacro("shift + =",["plus","+"]),o.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),o.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),o.bindMacro("shift + \\",["verticalbar","|"]),o.bindMacro("shift + ;",["colon",":"]),o.bindMacro("shift + '",["quotationmark","'"]),o.bindMacro("shift + !,",["openanglebracket","<"]),o.bindMacro("shift + .",["closeanglebracket",">"]),o.bindMacro("shift + /",["questionmark","?"]),m.match("Mac")?o.bindMacro("command",["mod","modifier"]):o.bindMacro("ctrl",["mod","modifier"]);for(var u=65;u<=90;u+=1){var _=String.fromCharCode(u+32),E=String.fromCharCode(u);o.bindKeyCode(u,_),o.bindMacro("shift + "+_,E),o.bindMacro("capslock + "+_,E)}var g=l.match("Firefox")?59:186,O=l.match("Firefox")?173:189,R=l.match("Firefox")?61:187,w,Y;m.match("Mac")&&(l.match("Safari")||l.match("Chrome"))?(w=91,Y=93):m.match("Mac")&&l.match("Opera")?(w=17,Y=17):m.match("Mac")&&l.match("Firefox")&&(w=224,Y=224),o.bindKeyCode(g,["semicolon",";"]),o.bindKeyCode(O,["dash","-"]),o.bindKeyCode(R,["equal","equalsign","="]),o.bindKeyCode(w,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),o.bindKeyCode(Y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),o.setKillKey("command")}var S=new P;return S.setLocale("us",A),S.Keyboard=P,S.Locale=I,S.KeyCombo=y,S})}(ze)),ze.exports}var gs=hs();const ps=en(gs);/*!
3
- * shared v11.1.1
1
+ (function(j,C){typeof exports=="object"&&typeof module<"u"?module.exports=C(require("view-ui-plus"),require("vue"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["view-ui-plus","vue","lodash-es","axios"],C):(j=typeof globalThis<"u"?globalThis:j||self,j.gc_i18n=C(j.iview,j.Vue,j._,j.Axios))})(this,function(j,C,W,Te){"use strict";var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},Ts=ze.exports,tn;function Ls(){return tn||(tn=1,function(e,t){(function(n,s){e.exports=s()})(Ts,function(){function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(o)}function s(o,m){if(!(o instanceof m))throw new TypeError("Cannot call a class as a function")}function a(o,m){for(var l=0;l<m.length;l++){var u=m[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function r(o,m,l){return m&&a(o.prototype,m),o}function i(o){return c(o)||f(o)||g(o)||v()}function c(o){if(Array.isArray(o))return N(o)}function f(o){if(typeof Symbol<"u"&&Symbol.iterator in Object(o))return Array.from(o)}function g(o,m){if(o){if(typeof o=="string")return N(o,m);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return N(o,m)}}function N(o,m){(m==null||m>o.length)&&(m=o.length);for(var l=0,u=new Array(m);l<m;l++)u[l]=o[l];return u}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=function(){function o(m){s(this,o),this.sourceStr=m,this.subCombos=o.parseComboStr(m),this.keyNames=this.subCombos.reduce(function(l,u){return l.concat(u)},[])}return r(o,[{key:"check",value:function(l){for(var u=0,_=0;_<this.subCombos.length;_+=1)if(u=this._checkSubCombo(this.subCombos[_],u,l),u===-1)return!1;return!0}},{key:"isEqual",value:function(l){if(!l||typeof l!="string"&&n(l)!=="object"||(typeof l=="string"&&(l=new o(l)),this.subCombos.length!==l.subCombos.length))return!1;for(var u=0;u<this.subCombos.length;u+=1)if(this.subCombos[u].length!==l.subCombos[u].length)return!1;for(var _=0;_<this.subCombos.length;_+=1){for(var E=this.subCombos[_],p=l.subCombos[_].slice(0),I=0;I<E.length;I+=1){var R=E[I],w=p.indexOf(R);w>-1&&p.splice(w,1)}if(p.length!==0)return!1}return!0}},{key:"_checkSubCombo",value:function(l,u,_){l=l.slice(0),_=_.slice(u);for(var E=u,p=0;p<l.length;p+=1){var I=l[p];if(I[0]==="\\"){var R=I.slice(1);(R===o.comboDeliminator||R===o.keyDeliminator)&&(I=R)}var w=_.indexOf(I);if(w>-1&&(l.splice(p,1),p-=1,w>E&&(E=w),l.length===0))return E}return-1}}]),o}();y.comboDeliminator=">",y.keyDeliminator="+",y.parseComboStr=function(o){for(var m=y._splitStr(o,y.comboDeliminator),l=[],u=0;u<m.length;u+=1)l.push(y._splitStr(m[u],y.keyDeliminator));return l},y._splitStr=function(o,m){for(var l=o,u=m,_="",E=[],p=0;p<l.length;p+=1)p>0&&l[p]===u&&l[p-1]!=="\\"&&(E.push(_.trim()),_="",p+=1),_+=l[p];return _&&E.push(_.trim()),E};var O=function(){function o(m){s(this,o),this.localeName=m,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(o,[{key:"bindKeyCode",value:function(l,u){typeof u=="string"&&(u=[u]),this._keyMap[l]=u}},{key:"bindMacro",value:function(l,u){typeof u=="string"&&(u=[u]);var _=null;typeof u=="function"&&(_=u,u=null);var E={keyCombo:new y(l),keyNames:u,handler:_};this._macros.push(E)}},{key:"getKeyCodes",value:function(l){var u=[];for(var _ in this._keyMap){var E=this._keyMap[_].indexOf(l);E>-1&&u.push(_|0)}return u}},{key:"getKeyNames",value:function(l){return this._keyMap[l]||[]}},{key:"setKillKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.setKillKey(u[_]);return}this._killKeyCodes.push(l)}},{key:"pressKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.pressKey(u[_]);return}this.activeTargetKeys.length=0;for(var E=this.getKeyNames(l),p=0;p<E.length;p+=1)this.activeTargetKeys.push(E[p]),this.pressedKeys.indexOf(E[p])===-1&&this.pressedKeys.push(E[p]);this._applyMacros()}},{key:"releaseKey",value:function(l){if(typeof l=="string")for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.releaseKey(u[_]);else{var E=this.getKeyNames(l),p=this._killKeyCodes.indexOf(l);if(p!==-1)this.pressedKeys.length=0;else for(var I=0;I<E.length;I+=1){var R=this.pressedKeys.indexOf(E[I]);R>-1&&this.pressedKeys.splice(R,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var l=this._macros.slice(0),u=0;u<l.length;u+=1){var _=l[u];if(_.keyCombo.check(this.pressedKeys)){_.handler&&(_.keyNames=_.handler(this.pressedKeys));for(var E=0;E<_.keyNames.length;E+=1)this.pressedKeys.indexOf(_.keyNames[E])===-1&&this.pressedKeys.push(_.keyNames[E]);this._appliedMacros.push(_)}}}},{key:"_clearMacros",value:function(){for(var l=0;l<this._appliedMacros.length;l+=1){var u=this._appliedMacros[l];if(!u.keyCombo.check(this.pressedKeys)){for(var _=0;_<u.keyNames.length;_+=1){var E=this.pressedKeys.indexOf(u.keyNames[_]);E>-1&&this.pressedKeys.splice(E,1)}u.handler&&(u.keyNames=null),this._appliedMacros.splice(l,1),l-=1}}}}]),o}(),P=function(){function o(m,l,u,_){s(this,o),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:m,targetElement:l,targetPlatform:u,targetUserAgent:_},this.setContext("global")}return r(o,[{key:"setLocale",value:function(l,u){var _=null;return typeof l=="string"?u?(_=new O(l),u(_,this._targetPlatform,this._targetUserAgent)):_=this._locales[l]||null:(_=l,l=_._localeName),this._locale=_,this._locales[l]=_,_&&(this._locale.pressedKeys=_.pressedKeys),this}},{key:"getLocale",value:function(l){return l||(l=this._locale.localeName),this._locales[l]||null}},{key:"bind",value:function(l,u,_,E){if((l===null||typeof l=="function")&&(E=_,_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var p=0;p<l.length;p+=1)this.bind(l[p],u,_);return this}return this._listeners.push({keyCombo:l?new y(l):null,pressHandler:u||null,releaseHandler:_||null,preventRepeat:!1,preventRepeatByDefault:E||!1,executingHandler:!1}),this}},{key:"addListener",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"on",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"bindPress",value:function(l,u,_){return this.bind(l,u,null,_)}},{key:"bindRelease",value:function(l,u){return this.bind(l,null,u,preventRepeatByDefault)}},{key:"unbind",value:function(l,u,_){if((l===null||typeof l=="function")&&(_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var E=0;E<l.length;E+=1)this.unbind(l[E],u,_);return this}for(var p=0;p<this._listeners.length;p+=1){var I=this._listeners[p],R=!l&&!I.keyCombo||I.keyCombo&&I.keyCombo.isEqual(l),w=!u&&!_||!u&&!I.pressHandler||u===I.pressHandler,H=!u&&!_||!_&&!I.releaseHandler||_===I.releaseHandler;R&&w&&H&&(this._listeners.splice(p,1),p-=1)}return this}},{key:"removeListener",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"off",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"setContext",value:function(l){if(this._locale&&this.releaseAllKeys(),!this._contexts[l]){var u=this._contexts.global;this._contexts[l]={listeners:[],targetWindow:u.targetWindow,targetElement:u.targetElement,targetPlatform:u.targetPlatform,targetUserAgent:u.targetUserAgent}}var _=this._contexts[l];return this._currentContext=l,this._listeners=_.listeners,this.stop(),this.watch(_.targetWindow,_.targetElement,_.targetPlatform,_.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(l,u){var _=this.getContext();return this.setContext(l),u(),this.setContext(_),this}},{key:"watch",value:function(l,u,_,E){var p=this;this.stop();var I=typeof globalThis<"u"?globalThis:typeof zt<"u"?zt:typeof window<"u"?window:{};if(!l){if(!I.addEventListener&&!I.attachEvent){if(this._currentContext==="global")return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}l=I}if(typeof l.nodeType=="number"&&(E=_,_=u,u=l,l=I),!l.addEventListener&&!l.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!l.addEventListener;var R=l.navigator&&l.navigator.userAgent||"",w=l.navigator&&l.navigator.platform||"";u&&u!==null||(u=l.document),_&&_!==null||(_=w),E&&E!==null||(E=R),this._targetKeyDownBinding=function($){p.pressKey($.keyCode,$),p._handleCommandBug($,w)},this._targetKeyUpBinding=function($){p.releaseKey($.keyCode,$)},this._targetResetBinding=function($){p.releaseAllKeys($)},this._bindEvent(u,"keydown",this._targetKeyDownBinding),this._bindEvent(u,"keyup",this._targetKeyUpBinding),this._bindEvent(l,"focus",this._targetResetBinding),this._bindEvent(l,"blur",this._targetResetBinding),this._targetElement=u,this._targetWindow=l,this._targetPlatform=_,this._targetUserAgent=E;var H=this._contexts[this._currentContext];return H.targetWindow=this._targetWindow,H.targetElement=this._targetElement,H.targetPlatform=this._targetPlatform,H.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(!(!this._targetElement||!this._targetWindow))return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(l),this._applyBindings(u),this}},{key:"releaseKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(l),this._clearBindings(u),this}},{key:"releaseAllKeys",value:function(l){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(l),this}},{key:"pause",value:function(){return this._paused?this:(this._locale&&this.releaseAllKeys(),this._paused=!0,this)}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(l,u,_){return this._isModernBrowser?l.addEventListener(u,_,!1):l.attachEvent("on"+u,_)}},{key:"_unbindEvent",value:function(l,u,_){return this._isModernBrowser?l.removeEventListener(u,_,!1):l.detachEvent("on"+u,_)}},{key:"_getGroupedListeners",value:function(){var l=[],u=[],_=this._listeners;return this._currentContext!=="global"&&(_=[].concat(i(_),i(this._contexts.global.listeners))),_.sort(function(E,p){return(p.keyCombo?p.keyCombo.keyNames.length:0)-(E.keyCombo?E.keyCombo.keyNames.length:0)}).forEach(function(E){for(var p=-1,I=0;I<u.length;I+=1)(u[I]===null&&E.keyCombo===null||u[I]!==null&&u[I].isEqual(E.keyCombo))&&(p=I);p===-1&&(p=u.length,u.push(E.keyCombo)),l[p]||(l[p]=[]),l[p].push(E)}),l}},{key:"_applyBindings",value:function(l){var u=this,_=!1;l||(l={}),l.preventRepeat=function(){_=!0},l.pressedKeys=this._locale.pressedKeys.slice(0);for(var E=this._locale.activeTargetKeys,p=this._locale.pressedKeys.slice(0),I=this._getGroupedListeners(),R=function($){var _e=I[$],me=_e[0].keyCombo;if(me===null||me.check(p)&&E.some(function(Xe){return me.keyNames.includes(Xe)})){for(var Se=0;Se<_e.length;Se+=1){var re=_e[Se];!re.executingHandler&&re.pressHandler&&!re.preventRepeat&&(re.executingHandler=!0,re.pressHandler.call(u,l),re.executingHandler=!1,(_||re.preventRepeatByDefault)&&(re.preventRepeat=!0,_=!1)),u._appliedListeners.indexOf(re)===-1&&u._appliedListeners.push(re)}if(me)for(var ve=0;ve<me.keyNames.length;ve+=1){var Ue=p.indexOf(me.keyNames[ve]);Ue!==-1&&(p.splice(Ue,1),ve-=1)}}},w=0;w<I.length;w+=1)R(w)}},{key:"_clearBindings",value:function(l){l||(l={}),l.pressedKeys=this._locale.pressedKeys.slice(0);for(var u=0;u<this._appliedListeners.length;u+=1){var _=this._appliedListeners[u],E=_.keyCombo;(E===null||!E.check(this._locale.pressedKeys))&&(_.preventRepeat=!1,(E!==null||l.pressedKeys.length===0)&&(this._appliedListeners.splice(u,1),u-=1),!_.executingHandler&&_.releaseHandler&&(_.executingHandler=!0,_.releaseHandler.call(this,l),_.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(l,u){var _=["shift","ctrl","alt","capslock","tab","command"];u.match("Mac")&&this._locale.pressedKeys.includes("command")&&!_.includes(this._locale.getKeyNames(l.keyCode)[0])&&this._targetKeyUpBinding(l)}}]),o}();function S(o,m,l){o.bindKeyCode(3,["cancel"]),o.bindKeyCode(8,["backspace"]),o.bindKeyCode(9,["tab"]),o.bindKeyCode(12,["clear"]),o.bindKeyCode(13,["enter"]),o.bindKeyCode(16,["shift"]),o.bindKeyCode(17,["ctrl"]),o.bindKeyCode(18,["alt","menu"]),o.bindKeyCode(19,["pause","break"]),o.bindKeyCode(20,["capslock"]),o.bindKeyCode(27,["escape","esc"]),o.bindKeyCode(32,["space","spacebar"]),o.bindKeyCode(33,["pageup"]),o.bindKeyCode(34,["pagedown"]),o.bindKeyCode(35,["end"]),o.bindKeyCode(36,["home"]),o.bindKeyCode(37,["left"]),o.bindKeyCode(38,["up"]),o.bindKeyCode(39,["right"]),o.bindKeyCode(40,["down"]),o.bindKeyCode(41,["select"]),o.bindKeyCode(42,["printscreen"]),o.bindKeyCode(43,["execute"]),o.bindKeyCode(44,["snapshot"]),o.bindKeyCode(45,["insert","ins"]),o.bindKeyCode(46,["delete","del"]),o.bindKeyCode(47,["help"]),o.bindKeyCode(145,["scrolllock","scroll"]),o.bindKeyCode(188,["comma",","]),o.bindKeyCode(190,["period","."]),o.bindKeyCode(191,["slash","forwardslash","/"]),o.bindKeyCode(192,["graveaccent","`"]),o.bindKeyCode(219,["openbracket","["]),o.bindKeyCode(220,["backslash","\\"]),o.bindKeyCode(221,["closebracket","]"]),o.bindKeyCode(222,["apostrophe","'"]),o.bindKeyCode(48,["zero","0"]),o.bindKeyCode(49,["one","1"]),o.bindKeyCode(50,["two","2"]),o.bindKeyCode(51,["three","3"]),o.bindKeyCode(52,["four","4"]),o.bindKeyCode(53,["five","5"]),o.bindKeyCode(54,["six","6"]),o.bindKeyCode(55,["seven","7"]),o.bindKeyCode(56,["eight","8"]),o.bindKeyCode(57,["nine","9"]),o.bindKeyCode(96,["numzero","num0"]),o.bindKeyCode(97,["numone","num1"]),o.bindKeyCode(98,["numtwo","num2"]),o.bindKeyCode(99,["numthree","num3"]),o.bindKeyCode(100,["numfour","num4"]),o.bindKeyCode(101,["numfive","num5"]),o.bindKeyCode(102,["numsix","num6"]),o.bindKeyCode(103,["numseven","num7"]),o.bindKeyCode(104,["numeight","num8"]),o.bindKeyCode(105,["numnine","num9"]),o.bindKeyCode(106,["nummultiply","num*"]),o.bindKeyCode(107,["numadd","num+"]),o.bindKeyCode(108,["numenter"]),o.bindKeyCode(109,["numsubtract","num-"]),o.bindKeyCode(110,["numdecimal","num."]),o.bindKeyCode(111,["numdivide","num/"]),o.bindKeyCode(144,["numlock","num"]),o.bindKeyCode(112,["f1"]),o.bindKeyCode(113,["f2"]),o.bindKeyCode(114,["f3"]),o.bindKeyCode(115,["f4"]),o.bindKeyCode(116,["f5"]),o.bindKeyCode(117,["f6"]),o.bindKeyCode(118,["f7"]),o.bindKeyCode(119,["f8"]),o.bindKeyCode(120,["f9"]),o.bindKeyCode(121,["f10"]),o.bindKeyCode(122,["f11"]),o.bindKeyCode(123,["f12"]),o.bindKeyCode(124,["f13"]),o.bindKeyCode(125,["f14"]),o.bindKeyCode(126,["f15"]),o.bindKeyCode(127,["f16"]),o.bindKeyCode(128,["f17"]),o.bindKeyCode(129,["f18"]),o.bindKeyCode(130,["f19"]),o.bindKeyCode(131,["f20"]),o.bindKeyCode(132,["f21"]),o.bindKeyCode(133,["f22"]),o.bindKeyCode(134,["f23"]),o.bindKeyCode(135,["f24"]),o.bindMacro("shift + `",["tilde","~"]),o.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),o.bindMacro("shift + 2",["at","@"]),o.bindMacro("shift + 3",["number","#"]),o.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),o.bindMacro("shift + 5",["percent","%"]),o.bindMacro("shift + 6",["caret","^"]),o.bindMacro("shift + 7",["ampersand","and","&"]),o.bindMacro("shift + 8",["asterisk","*"]),o.bindMacro("shift + 9",["openparen","("]),o.bindMacro("shift + 0",["closeparen",")"]),o.bindMacro("shift + -",["underscore","_"]),o.bindMacro("shift + =",["plus","+"]),o.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),o.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),o.bindMacro("shift + \\",["verticalbar","|"]),o.bindMacro("shift + ;",["colon",":"]),o.bindMacro("shift + '",["quotationmark","'"]),o.bindMacro("shift + !,",["openanglebracket","<"]),o.bindMacro("shift + .",["closeanglebracket",">"]),o.bindMacro("shift + /",["questionmark","?"]),m.match("Mac")?o.bindMacro("command",["mod","modifier"]):o.bindMacro("ctrl",["mod","modifier"]);for(var u=65;u<=90;u+=1){var _=String.fromCharCode(u+32),E=String.fromCharCode(u);o.bindKeyCode(u,_),o.bindMacro("shift + "+_,E),o.bindMacro("capslock + "+_,E)}var p=l.match("Firefox")?59:186,I=l.match("Firefox")?173:189,R=l.match("Firefox")?61:187,w,H;m.match("Mac")&&(l.match("Safari")||l.match("Chrome"))?(w=91,H=93):m.match("Mac")&&l.match("Opera")?(w=17,H=17):m.match("Mac")&&l.match("Firefox")&&(w=224,H=224),o.bindKeyCode(p,["semicolon",";"]),o.bindKeyCode(I,["dash","-"]),o.bindKeyCode(R,["equal","equalsign","="]),o.bindKeyCode(w,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),o.bindKeyCode(H,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),o.setKillKey("command")}var k=new P;return k.setLocale("us",S),k.Keyboard=P,k.Locale=O,k.KeyCombo=y,k})}(ze)),ze.exports}var Cs=Ls();const Os=en(Cs);/*!
3
+ * shared v11.1.3
4
4
  * (c) 2025 kazuya kawaguchi
5
5
  * Released under the MIT License.
6
- */const oe=typeof window<"u";let ae,Te;if(process.env.NODE_ENV!=="production"){const e=oe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ae=t=>{e.mark(t)},Te=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Es=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&U(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Es,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ce=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bs=(e,t,n)=>ys({l:e,k:t,s:n}),ys=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Z=e=>typeof e=="number"&&isFinite(e),Ns=e=>mt(e)==="[object Date]",Pe=e=>mt(e)==="[object RegExp]",tt=e=>F(e)&&Object.keys(e).length===0,z=Object.assign,vs=Object.create,W=(e=null)=>vs(e);let nn;const Ce=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function sn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ls=Object.prototype.hasOwnProperty;function le(e,t){return Ls.call(e,t)}const j=Array.isArray,B=e=>typeof e=="function",k=e=>typeof e=="string",K=e=>typeof e=="boolean",U=e=>e!==null&&typeof e=="object",Ts=e=>U(e)&&B(e.then)&&B(e.catch),rn=Object.prototype.toString,mt=e=>rn.call(e),F=e=>mt(e)==="[object Object]",Cs=e=>e==null?"":j(e)||F(e)&&e.toString===rn?JSON.stringify(e,null,2):String(e);function ht(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const an=2;function Os(e,t=0,n=e.length){const s=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<s.length;i++)if(a+=s[i].length+1,a>=t){for(let c=i-an;c<=i+an||n>a;c++){if(c<0||c>=s.length)continue;const f=c+1;r.push(`${f}${" ".repeat(3-String(f).length)}| ${s[c]}`);const p=s[c].length;if(c===i){const N=t-(a-p)+1,v=Math.max(1,n>a?p-N:n-t);r.push(" | "+" ".repeat(N)+"^".repeat(v))}else if(c>i){if(n>a){const N=Math.max(Math.min(n-a,p),1);r.push(" | "+"^".repeat(N))}a+=p+1}}break}return r.join(`
7
- `)}function pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const on={};function gt(e){on[e]||(on[e]=!0,pe(e))}function pt(){const e=new Map;return{events:e,on(n,s){const a=e.get(n);a&&a.push(s)||e.set(n,[s])},off(n,s){const a=e.get(n);a&&a.splice(a.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(a=>a(s)),(e.get("*")||[]).slice().map(a=>a(n,s))}}}const nt=e=>!U(e)||j(e);function st(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:a}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(U(s[r])&&!U(a[r])&&(a[r]=Array.isArray(s[r])?[]:W()),nt(a[r])||nt(s[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]}))})}}/*!
8
- * message-compiler v11.1.1
6
+ */const le=typeof window<"u";let ae,Le;if(process.env.NODE_ENV!=="production"){const e=le&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ae=t=>{e.mark(t)},Le=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Is=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&K(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Is,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ue=(e,t=!1)=>t?Symbol.for(e):Symbol(e),As=(e,t,n)=>Ss({l:e,k:t,s:n}),Ss=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Z=e=>typeof e=="number"&&isFinite(e),ks=e=>_t(e)==="[object Date]",Re=e=>_t(e)==="[object RegExp]",tt=e=>F(e)&&Object.keys(e).length===0,z=Object.assign,Ds=Object.create,G=(e=null)=>Ds(e);let nn;const Ce=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:G());function sn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ps=Object.prototype.hasOwnProperty;function ce(e,t){return Ps.call(e,t)}const X=Array.isArray,B=e=>typeof e=="function",A=e=>typeof e=="string",U=e=>typeof e=="boolean",K=e=>e!==null&&typeof e=="object",Rs=e=>K(e)&&B(e.then)&&B(e.catch),rn=Object.prototype.toString,_t=e=>rn.call(e),F=e=>_t(e)==="[object Object]",Ms=e=>e==null?"":X(e)||F(e)&&e.toString===rn?JSON.stringify(e,null,2):String(e);function mt(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const an=2;function ws(e,t=0,n=e.length){const s=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<s.length;i++)if(a+=s[i].length+1,a>=t){for(let c=i-an;c<=i+an||n>a;c++){if(c<0||c>=s.length)continue;const f=c+1;r.push(`${f}${" ".repeat(3-String(f).length)}| ${s[c]}`);const g=s[c].length;if(c===i){const N=t-(a-g)+1,v=Math.max(1,n>a?g-N:n-t);r.push(" | "+" ".repeat(N)+"^".repeat(v))}else if(c>i){if(n>a){const N=Math.max(Math.min(n-a,g),1);r.push(" | "+"^".repeat(N))}a+=g+1}}break}return r.join(`
7
+ `)}function Ee(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const on={};function ht(e){on[e]||(on[e]=!0,Ee(e))}function gt(){const e=new Map;return{events:e,on(n,s){const a=e.get(n);a&&a.push(s)||e.set(n,[s])},off(n,s){const a=e.get(n);a&&a.splice(a.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(a=>a(s)),(e.get("*")||[]).slice().map(a=>a(n,s))}}}const nt=e=>!K(e)||X(e);function st(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:a}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(K(s[r])&&!K(a[r])&&(a[r]=Array.isArray(s[r])?[]:G()),nt(a[r])||nt(s[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]}))})}}/*!
8
+ * message-compiler v11.1.3
9
9
  * (c) 2025 kazuya kawaguchi
10
10
  * Released under the MIT License.
11
- */function Is(e,t,n){return{line:e,column:t,offset:n}}function Et(e,t,n){return{start:e,end:t}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},As=17,ks={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Re(e,t,n={}){const{domain:s,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?et((a||ks)[e]||"",...r||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=s,c}function Ss(e){throw e}const Ds=/<\/?[\w\s="/.':;#-\/]+>/,Ps=e=>Ds.test(e),me=" ",Rs="\r",te=`
12
- `,Ms="\u2028",ws="\u2029";function Fs(e){const t=e;let n=0,s=1,a=1,r=0;const i=g=>t[g]===Rs&&t[g+1]===te,c=g=>t[g]===te,f=g=>t[g]===ws,p=g=>t[g]===Ms,N=g=>i(g)||c(g)||f(g)||p(g),v=()=>n,y=()=>s,I=()=>a,P=()=>r,A=g=>i(g)||f(g)||p(g)?te:t[g],S=()=>A(n),o=()=>A(n+r);function m(){return r=0,N(n)&&(s++,a=0),i(n)&&n++,n++,a++,t[n]}function l(){return i(n+r)&&r++,r++,t[n+r]}function u(){n=0,s=1,a=1,r=0}function _(g=0){r=g}function E(){const g=n+r;for(;g!==n;)m();r=0}return{index:v,line:y,column:I,peekOffset:P,charAt:A,currentChar:S,currentPeek:o,next:m,peek:l,reset:u,resetPeek:_,skipToPeek:E}}const Ee=void 0,Us=".",ln="'",Ks="tokenizer";function Vs(e,t={}){const n=t.location!==!1,s=Fs(e),a=()=>s.index(),r=()=>Is(s.line(),s.column(),s.index()),i=r(),c=a(),f={currentType:13,offset:c,startLoc:i,endLoc:i,lastType:13,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},p=()=>f,{onError:N}=t;function v(d,h,L,...D){const X=p();if(h.column+=L,h.offset+=L,N){const q=n?Et(X.startLoc,h):null,V=Re(d,q,{domain:Ks,args:D});N(V)}}function y(d,h,L){d.endLoc=r(),d.currentType=h;const D={type:h};return n&&(D.loc=Et(d.startLoc,d.endLoc)),L!=null&&(D.value=L),D}const I=d=>y(d,13);function P(d,h){return d.currentChar()===h?(d.next(),h):(v(M.EXPECTED_TOKEN,r(),0,h),"")}function A(d){let h="";for(;d.currentPeek()===me||d.currentPeek()===te;)h+=d.currentPeek(),d.peek();return h}function S(d){const h=A(d);return d.skipToPeek(),h}function o(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function m(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=48&&h<=57}function l(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),X=m(D);return d.resetPeek(),X}function _(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:L}=h;if(L!==7)return!1;A(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function g(d,h){const{currentType:L}=h;if(L!==8)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function O(d,h){const{currentType:L}=h;if(!(L===7||L===11))return!1;A(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function R(d,h){const{currentType:L}=h;if(L!==9)return!1;const D=()=>{const q=d.currentPeek();return q==="{"?o(d.peek()):q==="@"||q==="|"||q===":"||q==="."||q===me||!q?!1:q===te?(d.peek(),D()):Y(d,!1)},X=D();return d.resetPeek(),X}function w(d){A(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function Y(d,h=!0){const L=(X=!1,q="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?X:V==="|"?!(q===me||q===te):V===me?(d.peek(),L(!0,me)):V===te?(d.peek(),L(!0,te)):!0},D=L();return h&&d.resetPeek(),D}function $(d,h){const L=d.currentChar();return L===Ee?Ee:h(L)?(d.next(),L):null}function de(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function _e(d){return $(d,de)}function Ae(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function re(d){return $(d,Ae)}function ve(d){const h=d.charCodeAt(0);return h>=48&&h<=57}function Ke(d){return $(d,ve)}function Xe(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function ge(d){return $(d,Xe)}function qe(d){let h="",L="";for(;h=Ke(d);)L+=h;return L}function Bt(d){let h="";for(;;){const L=d.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===me||L===te)if(Y(d))h+=L,d.next();else{if(w(d))break;h+=L,d.next()}else h+=L,d.next()}return h}function Gt(d){S(d);let h="",L="";for(;h=re(d);)L+=h;return d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L}function Yt(d){S(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${qe(d)}`):h+=qe(d),d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h}function Ht(d){return d!==ln&&d!==te}function ds(d){S(d),P(d,"'");let h="",L="";for(;h=$(d,Ht);)h==="\\"?L+=jt(d):L+=h;const D=d.currentChar();return D===te||D===Ee?(v(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===te&&(d.next(),P(d,"'")),L):(P(d,"'"),L)}function jt(d){const h=d.currentChar();switch(h){case"\\":case"'":return d.next(),`\\${h}`;case"u":return dt(d,h,4);case"U":return dt(d,h,6);default:return v(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,h),""}}function dt(d,h,L){P(d,h);let D="";for(let X=0;X<L;X++){const q=ge(d);if(!q){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${h}${D}${d.currentChar()}`);break}D+=q}return`\\${h}${D}`}function Xt(d){return d!=="{"&&d!=="}"&&d!==me&&d!==te}function qt(d){S(d);let h="",L="";for(;h=$(d,Xt);)L+=h;return L}function Jt(d){let h="",L="";for(;h=_e(d);)L+=h;return L}function Qt(d){const h=L=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===me?L:(L+=D,d.next(),h(L))};return h("")}function Je(d){S(d);const h=P(d,"|");return S(d),h}function Qe(d,h){let L=null;switch(d.currentChar()){case"{":return h.braceNest>=1&&v(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),L=y(h,2,"{"),S(d),h.braceNest++,L;case"}":return h.braceNest>0&&h.currentType===2&&v(M.EMPTY_PLACEHOLDER,r(),0),d.next(),L=y(h,3,"}"),h.braceNest--,h.braceNest>0&&S(d),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),L;case"@":return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=ke(d,h)||I(h),h.braceNest=0,L;default:{let X=!0,q=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,L;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h.braceNest=0,Ze(d,h);if(X=l(d,h))return L=y(h,4,Gt(d)),S(d),L;if(q=u(d,h))return L=y(h,5,Yt(d)),S(d),L;if(V=_(d,h))return L=y(h,6,ds(d)),S(d),L;if(!X&&!q&&!V)return L=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),S(d),L;break}}return L}function ke(d,h){const{currentType:L}=h;let D=null;const X=d.currentChar();switch((L===7||L===8||L===11||L===9)&&(X===te||X===me)&&v(M.INVALID_LINKED_FORMAT,r(),0),X){case"@":return d.next(),D=y(h,7,"@"),h.inLinked=!0,D;case".":return S(d),d.next(),y(h,8,".");case":":return S(d),d.next(),y(h,9,":");default:return w(d)?(D=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,D):E(d,h)||O(d,h)?(S(d),ke(d,h)):g(d,h)?(S(d),y(h,11,Jt(d))):R(d,h)?(S(d),X==="{"?Qe(d,h)||D:y(h,10,Qt(d))):(L===7&&v(M.INVALID_LINKED_FORMAT,r(),0),h.braceNest=0,h.inLinked=!1,Ze(d,h))}}function Ze(d,h){let L={type:13};if(h.braceNest>0)return Qe(d,h)||I(h);if(h.inLinked)return ke(d,h)||I(h);switch(d.currentChar()){case"{":return Qe(d,h)||I(h);case"}":return v(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),y(h,3,"}");case"@":return ke(d,h)||I(h);default:{if(w(d))return L=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,L;if(Y(d))return y(h,0,Bt(d));break}}return L}function Zt(){const{currentType:d,offset:h,startLoc:L,endLoc:D}=f;return f.lastType=d,f.lastOffset=h,f.lastStartLoc=L,f.lastEndLoc=D,f.offset=a(),f.startLoc=r(),s.currentChar()===Ee?y(f,13):Ze(s,f)}return{nextToken:Zt,currentOffset:a,currentPosition:r,context:p}}const xs="parser",$s=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ws(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Bs(e={}){const t=e.location!==!1,{onError:n}=e;function s(o,m,l,u,..._){const E=o.currentPosition();if(E.offset+=u,E.column+=u,n){const g=t?Et(l,E):null,O=Re(m,g,{domain:xs,args:_});n(O)}}function a(o,m,l){const u={type:o};return t&&(u.start=m,u.end=m,u.loc={start:l,end:l}),u}function r(o,m,l,u){t&&(o.end=m,o.loc&&(o.loc.end=l))}function i(o,m){const l=o.context(),u=a(3,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function c(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(5,u,_);return E.index=parseInt(m,10),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function f(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(4,u,_);return E.key=m,o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function p(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(9,u,_);return E.value=m.replace($s,Ws),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function N(o){const m=o.nextToken(),l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(8,u,_);return m.type!==11?(s(o,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,l.lastStartLoc,0),E.value="",r(E,u,_),{nextConsumeToken:m,node:E}):(m.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,ue(m)),E.value=m.value||"",r(E,o.currentOffset(),o.currentPosition()),{node:E})}function v(o,m){const l=o.context(),u=a(7,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function y(o){const m=o.context(),l=a(6,m.offset,m.startLoc);let u=o.nextToken();if(u.type===8){const _=N(o);l.modifier=_.node,u=_.nextConsumeToken||o.nextToken()}switch(u.type!==9&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),u=o.nextToken(),u.type===2&&(u=o.nextToken()),u.type){case 10:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=v(o,u.value||"");break;case 4:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=f(o,u.value||"");break;case 5:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=c(o,u.value||"");break;case 6:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=p(o,u.value||"");break;default:{s(o,M.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const _=o.context(),E=a(7,_.offset,_.startLoc);return E.value="",r(E,_.offset,_.startLoc),l.key=E,r(l,_.offset,_.startLoc),{nextConsumeToken:u,node:l}}}return r(l,o.currentOffset(),o.currentPosition()),{node:l}}function I(o){const m=o.context(),l=m.currentType===1?o.currentOffset():m.offset,u=m.currentType===1?m.endLoc:m.startLoc,_=a(2,l,u);_.items=[];let E=null;do{const R=E||o.nextToken();switch(E=null,R.type){case 0:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(i(o,R.value||""));break;case 5:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(c(o,R.value||""));break;case 4:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(f(o,R.value||""));break;case 6:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(p(o,R.value||""));break;case 7:{const w=y(o);_.items.push(w.node),E=w.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:o.currentOffset(),O=m.currentType===1?m.lastEndLoc:o.currentPosition();return r(_,g,O),_}function P(o,m,l,u){const _=o.context();let E=u.items.length===0;const g=a(1,m,l);g.cases=[],g.cases.push(u);do{const O=I(o);E||(E=O.items.length===0),g.cases.push(O)}while(_.currentType!==13);return E&&s(o,M.MUST_HAVE_MESSAGES_IN_PLURAL,l,0),r(g,o.currentOffset(),o.currentPosition()),g}function A(o){const m=o.context(),{offset:l,startLoc:u}=m,_=I(o);return m.currentType===13?_:P(o,l,u,_)}function S(o){const m=Vs(o,z({},e)),l=m.context(),u=a(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=o),u.body=A(m),e.onCacheKey&&(u.cacheKey=e.onCacheKey(o)),l.currentType!==13&&s(m,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,o[l.offset]||""),r(u,m.currentOffset(),m.currentPosition()),u}return{parse:S}}function ue(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Gs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function cn(e,t){for(let n=0;n<e.length;n++)bt(e[n],t)}function bt(e,t){switch(e.type){case 1:cn(e.cases,t),t.helper("plural");break;case 2:cn(e.items,t);break;case 6:{bt(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Ys(e,t={}){const n=Gs(e);n.helper("normalize"),e.body&&bt(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Hs(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ht(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const js="minifier";function Me(e){switch(e.t=e.type,e.type){case 0:{const t=e;Me(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Me(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Me(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Me(t.key),t.k=t.key,delete t.key,t.modifier&&(Me(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:js,args:[e.type]})}delete e.type}const Xs="parser";function qs(e,t){const{filename:n,breakLineCode:s,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(A,S){i.code+=A}function p(A,S=!0){const o=S?s:"";f(a?o+" ".repeat(A):o)}function N(A=!0){const S=++i.indentLevel;A&&p(S)}function v(A=!0){const S=--i.indentLevel;A&&p(S)}function y(){p(i.indentLevel)}return{context:c,push:f,indent:N,deindent:v,newline:y,helper:A=>`_${A}`,needIndent:()=>i.needIndent}}function Js(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),we(e,t.key),t.modifier?(e.push(", "),we(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Qs(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const a=t.items.length;for(let r=0;r<a&&(we(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Zs(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const a=t.cases.length;for(let r=0;r<a&&(we(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function zs(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:zs(e,t);break;case 1:Zs(e,t);break;case 2:Qs(e,t);break;case 6:Js(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Xs,args:[t.type]})}}const er=(e,t={})=>{const n=k(t.mode)?t.mode:"normal",s=k(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
13
- `,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=qs(e,{filename:s,breakLineCode:a,needIndent:r});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(r),i.length>0&&(c.push(`const { ${ht(i.map(N=>`${N}: _${N}`),", ")} } = ctx`),c.newline()),c.push("return "),we(c,e),c.deindent(r),c.push("}"),delete e.helpers;const{code:f,map:p}=c.context();return{ast:e,code:f,map:p?p.toJSON():void 0}};function tr(e,t={}){const n=z({},t),s=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,c=Bs(n).parse(e);return s?(r&&Hs(c),a&&Me(c),{ast:c,code:""}):(Ys(c,n),er(c,n))}/*!
14
- * core-base v11.1.1
11
+ */function Fs(e,t,n){return{line:e,column:t,offset:n}}function pt(e,t,n){return{start:e,end:t}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Ks=17,Us={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Me(e,t,n={}){const{domain:s,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?et((a||Us)[e]||"",...r||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=s,c}function Vs(e){throw e}const xs=/<\/?[\w\s="/.':;#-\/]+>/,$s=e=>xs.test(e),he=" ",Ws="\r",te=`
12
+ `,Gs="\u2028",Bs="\u2029";function Ys(e){const t=e;let n=0,s=1,a=1,r=0;const i=p=>t[p]===Ws&&t[p+1]===te,c=p=>t[p]===te,f=p=>t[p]===Bs,g=p=>t[p]===Gs,N=p=>i(p)||c(p)||f(p)||g(p),v=()=>n,y=()=>s,O=()=>a,P=()=>r,S=p=>i(p)||f(p)||g(p)?te:t[p],k=()=>S(n),o=()=>S(n+r);function m(){return r=0,N(n)&&(s++,a=0),i(n)&&n++,n++,a++,t[n]}function l(){return i(n+r)&&r++,r++,t[n+r]}function u(){n=0,s=1,a=1,r=0}function _(p=0){r=p}function E(){const p=n+r;for(;p!==n;)m();r=0}return{index:v,line:y,column:O,peekOffset:P,charAt:S,currentChar:k,currentPeek:o,next:m,peek:l,reset:u,resetPeek:_,skipToPeek:E}}const be=void 0,Hs=".",ln="'",js="tokenizer";function Xs(e,t={}){const n=t.location!==!1,s=Ys(e),a=()=>s.index(),r=()=>Fs(s.line(),s.column(),s.index()),i=r(),c=a(),f={currentType:13,offset:c,startLoc:i,endLoc:i,lastType:13,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},g=()=>f,{onError:N}=t;function v(d,h,T,...D){const q=g();if(h.column+=T,h.offset+=T,N){const J=n?pt(q.startLoc,h):null,V=Me(d,J,{domain:js,args:D});N(V)}}function y(d,h,T){d.endLoc=r(),d.currentType=h;const D={type:h};return n&&(D.loc=pt(d.startLoc,d.endLoc)),T!=null&&(D.value=T),D}const O=d=>y(d,13);function P(d,h){return d.currentChar()===h?(d.next(),h):(v(M.EXPECTED_TOKEN,r(),0,h),"")}function S(d){let h="";for(;d.currentPeek()===he||d.currentPeek()===te;)h+=d.currentPeek(),d.peek();return h}function k(d){const h=S(d);return d.skipToPeek(),h}function o(d){if(d===be)return!1;const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function m(d){if(d===be)return!1;const h=d.charCodeAt(0);return h>=48&&h<=57}function l(d,h){const{currentType:T}=h;if(T!==2)return!1;S(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:T}=h;if(T!==2)return!1;S(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),q=m(D);return d.resetPeek(),q}function _(d,h){const{currentType:T}=h;if(T!==2)return!1;S(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:T}=h;if(T!==7)return!1;S(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function p(d,h){const{currentType:T}=h;if(T!==8)return!1;S(d);const D=o(d.currentPeek());return d.resetPeek(),D}function I(d,h){const{currentType:T}=h;if(!(T===7||T===11))return!1;S(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function R(d,h){const{currentType:T}=h;if(T!==9)return!1;const D=()=>{const J=d.currentPeek();return J==="{"?o(d.peek()):J==="@"||J==="|"||J===":"||J==="."||J===he||!J?!1:J===te?(d.peek(),D()):H(d,!1)},q=D();return d.resetPeek(),q}function w(d){S(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function H(d,h=!0){const T=(q=!1,J="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?q:V==="|"?!(J===he||J===te):V===he?(d.peek(),T(!0,he)):V===te?(d.peek(),T(!0,te)):!0},D=T();return h&&d.resetPeek(),D}function $(d,h){const T=d.currentChar();return T===be?be:h(T)?(d.next(),T):null}function _e(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function me(d){return $(d,_e)}function Se(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function re(d){return $(d,Se)}function ve(d){const h=d.charCodeAt(0);return h>=48&&h<=57}function Ue(d){return $(d,ve)}function Xe(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function pe(d){return $(d,Xe)}function qe(d){let h="",T="";for(;h=Ue(d);)T+=h;return T}function Gt(d){let h="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===he||T===te)if(H(d))h+=T,d.next();else{if(w(d))break;h+=T,d.next()}else h+=T,d.next()}return h}function Bt(d){k(d);let h="",T="";for(;h=re(d);)T+=h;return d.currentChar()===be&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T}function Yt(d){k(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${qe(d)}`):h+=qe(d),d.currentChar()===be&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h}function Ht(d){return d!==ln&&d!==te}function Ns(d){k(d),P(d,"'");let h="",T="";for(;h=$(d,Ht);)h==="\\"?T+=jt(d):T+=h;const D=d.currentChar();return D===te||D===be?(v(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===te&&(d.next(),P(d,"'")),T):(P(d,"'"),T)}function jt(d){const h=d.currentChar();switch(h){case"\\":case"'":return d.next(),`\\${h}`;case"u":return ft(d,h,4);case"U":return ft(d,h,6);default:return v(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,h),""}}function ft(d,h,T){P(d,h);let D="";for(let q=0;q<T;q++){const J=pe(d);if(!J){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${h}${D}${d.currentChar()}`);break}D+=J}return`\\${h}${D}`}function Xt(d){return d!=="{"&&d!=="}"&&d!==he&&d!==te}function qt(d){k(d);let h="",T="";for(;h=$(d,Xt);)T+=h;return T}function Jt(d){let h="",T="";for(;h=me(d);)T+=h;return T}function Qt(d){const h=T=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===he?T:(T+=D,d.next(),h(T))};return h("")}function Je(d){k(d);const h=P(d,"|");return k(d),h}function Qe(d,h){let T=null;switch(d.currentChar()){case"{":return h.braceNest>=1&&v(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),T=y(h,2,"{"),k(d),h.braceNest++,T;case"}":return h.braceNest>0&&h.currentType===2&&v(M.EMPTY_PLACEHOLDER,r(),0),d.next(),T=y(h,3,"}"),h.braceNest--,h.braceNest>0&&k(d),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),T;case"@":return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T=ke(d,h)||O(h),h.braceNest=0,T;default:{let q=!0,J=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,T;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h.braceNest=0,Ze(d,h);if(q=l(d,h))return T=y(h,4,Bt(d)),k(d),T;if(J=u(d,h))return T=y(h,5,Yt(d)),k(d),T;if(V=_(d,h))return T=y(h,6,Ns(d)),k(d),T;if(!q&&!J&&!V)return T=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,T.value),k(d),T;break}}return T}function ke(d,h){const{currentType:T}=h;let D=null;const q=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(q===te||q===he)&&v(M.INVALID_LINKED_FORMAT,r(),0),q){case"@":return d.next(),D=y(h,7,"@"),h.inLinked=!0,D;case".":return k(d),d.next(),y(h,8,".");case":":return k(d),d.next(),y(h,9,":");default:return w(d)?(D=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,D):E(d,h)||I(d,h)?(k(d),ke(d,h)):p(d,h)?(k(d),y(h,11,Jt(d))):R(d,h)?(k(d),q==="{"?Qe(d,h)||D:y(h,10,Qt(d))):(T===7&&v(M.INVALID_LINKED_FORMAT,r(),0),h.braceNest=0,h.inLinked=!1,Ze(d,h))}}function Ze(d,h){let T={type:13};if(h.braceNest>0)return Qe(d,h)||O(h);if(h.inLinked)return ke(d,h)||O(h);switch(d.currentChar()){case"{":return Qe(d,h)||O(h);case"}":return v(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),y(h,3,"}");case"@":return ke(d,h)||O(h);default:{if(w(d))return T=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,T;if(H(d))return y(h,0,Gt(d));break}}return T}function Zt(){const{currentType:d,offset:h,startLoc:T,endLoc:D}=f;return f.lastType=d,f.lastOffset=h,f.lastStartLoc=T,f.lastEndLoc=D,f.offset=a(),f.startLoc=r(),s.currentChar()===be?y(f,13):Ze(s,f)}return{nextToken:Zt,currentOffset:a,currentPosition:r,context:g}}const qs="parser",Js=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Zs(e={}){const t=e.location!==!1,{onError:n}=e;function s(o,m,l,u,..._){const E=o.currentPosition();if(E.offset+=u,E.column+=u,n){const p=t?pt(l,E):null,I=Me(m,p,{domain:qs,args:_});n(I)}}function a(o,m,l){const u={type:o};return t&&(u.start=m,u.end=m,u.loc={start:l,end:l}),u}function r(o,m,l,u){t&&(o.end=m,o.loc&&(o.loc.end=l))}function i(o,m){const l=o.context(),u=a(3,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function c(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(5,u,_);return E.index=parseInt(m,10),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function f(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(4,u,_);return E.key=m,o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function g(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(9,u,_);return E.value=m.replace(Js,Qs),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function N(o){const m=o.nextToken(),l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(8,u,_);return m.type!==11?(s(o,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,l.lastStartLoc,0),E.value="",r(E,u,_),{nextConsumeToken:m,node:E}):(m.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,fe(m)),E.value=m.value||"",r(E,o.currentOffset(),o.currentPosition()),{node:E})}function v(o,m){const l=o.context(),u=a(7,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function y(o){const m=o.context(),l=a(6,m.offset,m.startLoc);let u=o.nextToken();if(u.type===8){const _=N(o);l.modifier=_.node,u=_.nextConsumeToken||o.nextToken()}switch(u.type!==9&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(u)),u=o.nextToken(),u.type===2&&(u=o.nextToken()),u.type){case 10:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(u)),l.key=v(o,u.value||"");break;case 4:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(u)),l.key=f(o,u.value||"");break;case 5:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(u)),l.key=c(o,u.value||"");break;case 6:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(u)),l.key=g(o,u.value||"");break;default:{s(o,M.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const _=o.context(),E=a(7,_.offset,_.startLoc);return E.value="",r(E,_.offset,_.startLoc),l.key=E,r(l,_.offset,_.startLoc),{nextConsumeToken:u,node:l}}}return r(l,o.currentOffset(),o.currentPosition()),{node:l}}function O(o){const m=o.context(),l=m.currentType===1?o.currentOffset():m.offset,u=m.currentType===1?m.endLoc:m.startLoc,_=a(2,l,u);_.items=[];let E=null;do{const R=E||o.nextToken();switch(E=null,R.type){case 0:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(R)),_.items.push(i(o,R.value||""));break;case 5:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(R)),_.items.push(c(o,R.value||""));break;case 4:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(R)),_.items.push(f(o,R.value||""));break;case 6:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,fe(R)),_.items.push(g(o,R.value||""));break;case 7:{const w=y(o);_.items.push(w.node),E=w.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const p=m.currentType===1?m.lastOffset:o.currentOffset(),I=m.currentType===1?m.lastEndLoc:o.currentPosition();return r(_,p,I),_}function P(o,m,l,u){const _=o.context();let E=u.items.length===0;const p=a(1,m,l);p.cases=[],p.cases.push(u);do{const I=O(o);E||(E=I.items.length===0),p.cases.push(I)}while(_.currentType!==13);return E&&s(o,M.MUST_HAVE_MESSAGES_IN_PLURAL,l,0),r(p,o.currentOffset(),o.currentPosition()),p}function S(o){const m=o.context(),{offset:l,startLoc:u}=m,_=O(o);return m.currentType===13?_:P(o,l,u,_)}function k(o){const m=Xs(o,z({},e)),l=m.context(),u=a(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=o),u.body=S(m),e.onCacheKey&&(u.cacheKey=e.onCacheKey(o)),l.currentType!==13&&s(m,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,o[l.offset]||""),r(u,m.currentOffset(),m.currentPosition()),u}return{parse:k}}function fe(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function zs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function cn(e,t){for(let n=0;n<e.length;n++)Et(e[n],t)}function Et(e,t){switch(e.type){case 1:cn(e.cases,t),t.helper("plural");break;case 2:cn(e.items,t);break;case 6:{Et(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function er(e,t={}){const n=zs(e);n.helper("normalize"),e.body&&Et(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function tr(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=mt(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const nr="minifier";function we(e){switch(e.t=e.type,e.type){case 0:{const t=e;we(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)we(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)we(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;we(t.key),t.k=t.key,delete t.key,t.modifier&&(we(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Me(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:nr,args:[e.type]})}delete e.type}const sr="parser";function rr(e,t){const{filename:n,breakLineCode:s,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(S,k){i.code+=S}function g(S,k=!0){const o=k?s:"";f(a?o+" ".repeat(S):o)}function N(S=!0){const k=++i.indentLevel;S&&g(k)}function v(S=!0){const k=--i.indentLevel;S&&g(k)}function y(){g(i.indentLevel)}return{context:c,push:f,indent:N,deindent:v,newline:y,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function ar(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Fe(e,t.key),t.modifier?(e.push(", "),Fe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ir(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const a=t.items.length;for(let r=0;r<a&&(Fe(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function or(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const a=t.cases.length;for(let r=0;r<a&&(Fe(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function lr(e,t){t.body?Fe(e,t.body):e.push("null")}function Fe(e,t){const{helper:n}=e;switch(t.type){case 0:lr(e,t);break;case 1:or(e,t);break;case 2:ir(e,t);break;case 6:ar(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Me(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:sr,args:[t.type]})}}const cr=(e,t={})=>{const n=A(t.mode)?t.mode:"normal",s=A(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
13
+ `,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=rr(e,{filename:s,breakLineCode:a,needIndent:r});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(r),i.length>0&&(c.push(`const { ${mt(i.map(N=>`${N}: _${N}`),", ")} } = ctx`),c.newline()),c.push("return "),Fe(c,e),c.deindent(r),c.push("}"),delete e.helpers;const{code:f,map:g}=c.context();return{ast:e,code:f,map:g?g.toJSON():void 0}};function ur(e,t={}){const n=z({},t),s=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,c=Zs(n).parse(e);return s?(r&&tr(c),a&&we(c),{ast:c,code:""}):(er(c,n),cr(c,n))}/*!
14
+ * core-base v11.1.3
15
15
  * (c) 2025 kazuya kawaguchi
16
16
  * Released under the MIT License.
17
- */function nr(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yt(e){return n=>sr(n,e)}function sr(e,t){const n=ar(t);if(n==null)throw xe(0);if(vt(n)===1){const r=or(n);return e.plural(r.reduce((i,c)=>[...i,fn(e,c)],[]))}else return fn(e,n)}const rr=["b","body"];function ar(e){return be(e,rr)}const ir=["c","cases"];function or(e){return be(e,ir,[])}function fn(e,t){const n=cr(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=fr(t).reduce((a,r)=>[...a,Nt(e,r)],[]);return e.normalize(s)}}const lr=["s","static"];function cr(e){return be(e,lr)}const ur=["i","items"];function fr(e){return be(e,ur,[])}function Nt(e,t){const n=vt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const s=t;if(le(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(le(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw xe(n)}case 5:{const s=t;if(le(s,"i")&&Z(s.i))return e.interpolate(e.list(s.i));if(le(s,"index")&&Z(s.index))return e.interpolate(e.list(s.index));throw xe(n)}case 6:{const s=t,a=hr(s),r=pr(s);return e.linked(Nt(e,r),a?Nt(e,a):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const dr=["t","type"];function vt(e){return be(e,dr)}const _r=["v","value"];function rt(e,t){const n=be(e,_r);if(n)return n;throw xe(t)}const mr=["m","modifier"];function hr(e){return be(e,mr)}const gr=["k","key"];function pr(e){const t=be(e,gr);if(t)return t;throw xe(6)}function be(e,t,n){for(let s=0;s<t.length;s++){const a=t[s];if(le(e,a)&&e[a]!=null)return e[a]}return n}function xe(e){return new Error(`unhandled node type: ${e}`)}const Er="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function br(e,t){t&&Ps(e)&&pe(et(Er,{source:e}))}const yr=e=>e;let at=W();function ye(e){return U(e)&&vt(e)===0&&(le(e,"b")||le(e,"body"))}function Nr(e,t={}){let n=!1;const s=t.onError||Ss;return t.onError=a=>{n=!0,s(a)},{...tr(e,t),detectError:n}}function vr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&br(e,n);const a=(t.onCacheKey||yr)(e),r=at[a];if(r)return r;const{ast:i,detectError:c}=Nr(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=yt(i);return c?f:at[a]=f}else{if(process.env.NODE_ENV!=="production"&&!ye(e))return pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const s=at[n];return s||(at[n]=yt(e))}else return yt(e)}}let $e=null;function Lr(e){$e=e}function Tr(e,t,n){$e&&$e.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cr=Or("function:translate");function Or(e){return t=>$e&&$e.emit(e,t)}const ee={INVALID_ARGUMENT:As,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ir=24;function he(e){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Ar}:void 0)}const Ar={[ee.INVALID_ARGUMENT]:"Invalid arguments",[ee.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ee.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ee.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ee.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Lt(e,t){return t.locale!=null?dn(t.locale):dn(e.locale)}let Tt;function dn(e){if(k(e))return e;if(B(e)){if(e.resolvedOnce&&Tt!=null)return Tt;if(e.constructor.name==="Function"){const t=e();if(Ts(t))throw he(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Tt=t}else throw he(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw he(ee.NOT_SUPPORT_LOCALE_TYPE)}function kr(e,t,n){return[...new Set([n,...j(t)?t:U(t)?Object.keys(t):k(t)?[t]:[n]])]}function _n(e,t,n){const s=k(n)?n:We,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;j(i);)i=mn(r,i,t);const c=j(t)||!F(t)?t:t.default?t.default:null;i=k(c)?[c]:c,j(i)&&mn(r,i,!1),a.__localeChainCache.set(s,r)}return r}function mn(e,t,n){let s=!0;for(let a=0;a<t.length&&K(s);a++){const r=t[a];k(r)&&(s=Sr(e,t[a],n))}return s}function Sr(e,t,n){let s;const a=t.split("-");do{const r=a.join("-");s=Dr(e,r,n),a.splice(-1,1)}while(a.length&&s===!0);return s}function Dr(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(j(n)||F(n))&&n[a]&&(s=n[a])}return s}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Pr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rr(e){return Pr.test(e)}function Mr(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function wr(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Fr(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rr(t)?Mr(t):"*"+t}function Ur(e){const t=[];let n=-1,s=0,a=0,r,i,c,f,p,N,v;const y=[];y[0]=()=>{i===void 0?i=c:i+=c},y[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,s=4,y[0]();else{if(a=0,i===void 0||(i=Fr(i),i===!1))return!1;y[1]()}};function I(){const P=e[n+1];if(s===5&&P==="'"||s===6&&P==='"')return n++,c="\\"+P,y[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&I())){if(f=wr(r),v=Ne[s],p=v[f]||v.l||8,p===8||(s=p[0],p[1]!==void 0&&(N=y[p[1]],N&&(c=r,N()===!1))))return;if(s===7)return t}}const hn=new Map;function Kr(e,t){return U(e)?e[t]:null}function Vr(e,t){if(!U(e))return null;let n=hn.get(t);if(n||(n=Ur(t),n&&hn.set(t,n)),!n)return null;const s=n.length;let a=e,r=0;for(;r<s;){const i=a[n[r]];if(i===void 0||B(a))return null;a=i,r++}return a}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},xr=8,$r={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return et($r[e],...t)}const Wr="11.1.1",it=-1,We="en-US",ot="",gn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Br(){return{upper:(e,t)=>t==="text"&&k(e)?e.toUpperCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&k(e)?e.toLowerCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&k(e)?gn(e):t==="vnode"&&U(e)&&"__v_isVNode"in e?gn(e.children):e}}let pn;function Gr(e){pn=e}let En;function Yr(e){En=e}let bn;function Hr(e){bn=e}let yn=null;const jr=e=>{yn=e},Xr=()=>yn;let Nn=null;const vn=e=>{Nn=e},qr=()=>Nn;let Ln=0;function Jr(e={}){const t=B(e.onWarn)?e.onWarn:pe,n=k(e.version)?e.version:Wr,s=k(e.locale)||B(e.locale)?e.locale:We,a=B(s)?We:s,r=j(e.fallbackLocale)||F(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=F(e.messages)?e.messages:Ct(a),c=F(e.datetimeFormats)?e.datetimeFormats:Ct(a),f=F(e.numberFormats)?e.numberFormats:Ct(a),p=z(W(),e.modifiers,Br()),N=e.pluralRules||W(),v=B(e.missing)?e.missing:null,y=K(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=K(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,A=!!e.unresolving,S=B(e.postTranslation)?e.postTranslation:null,o=F(e.processor)?e.processor:null,m=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,l=!!e.escapeParameter,u=B(e.messageCompiler)?e.messageCompiler:pn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&gt(Oe(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=B(e.messageResolver)?e.messageResolver:En||Kr,E=B(e.localeFallbacker)?e.localeFallbacker:bn||kr,g=U(e.fallbackContext)?e.fallbackContext:void 0,O=e,R=U(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,w=U(O.__numberFormatters)?O.__numberFormatters:new Map,Y=U(O.__meta)?O.__meta:{};Ln++;const $={version:n,cid:Ln,locale:s,fallbackLocale:r,messages:i,modifiers:p,pluralRules:N,missing:v,missingWarn:y,fallbackWarn:I,fallbackFormat:P,unresolving:A,postTranslation:S,processor:o,warnHtmlMessage:m,escapeParameter:l,messageCompiler:u,messageResolver:_,localeFallbacker:E,fallbackContext:g,onWarn:t,__meta:Y};return $.datetimeFormats=c,$.numberFormats=f,$.__datetimeFormatters=R,$.__numberFormatters=w,process.env.NODE_ENV!=="production"&&($.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Tr($,n,Y),$}const Ct=e=>({[e]:W()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Tn(e,t){return e instanceof RegExp?e.test(t):e}function Ot(e,t,n,s,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const c=r(e,n,t,a);return k(c)?c:t}else return process.env.NODE_ENV!=="production"&&Tn(s,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Cn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qr(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Cn(e,t[s]))return!0;return!1}const On=typeof Intl<"u",In={dateTimeFormat:On&&typeof Intl.DateTimeFormat<"u",numberFormat:On&&typeof Intl.NumberFormat<"u"};function An(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.dateTimeFormat)return r(Oe(ne.CANNOT_FORMAT_DATE)),ot;const[f,p,N,v]=It(...t),y=K(N.missingWarn)?N.missingWarn:e.missingWarn,I=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Lt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.DateTimeFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="datetime format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&lt(I,f)&&r(Oe(ne.FALLBACK_TO_DATE_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?it:f;let g=`${m}__${f}`;tt(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.DateTimeFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function It(...e){const[t,n,s,a]=e,r=W();let i=W(),c;if(k(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw he(ee.INVALID_ISO_DATE_ARGUMENT);const p=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();c=new Date(p);try{c.toISOString()}catch{throw he(ee.INVALID_ISO_DATE_ARGUMENT)}}else if(Ns(t)){if(isNaN(t.getTime()))throw he(ee.INVALID_DATE_ARGUMENT);c=t}else if(Z(t))c=t;else throw he(ee.INVALID_ARGUMENT);return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{kn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Sn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Dn(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.numberFormat)return r(Oe(ne.CANNOT_FORMAT_NUMBER)),ot;const[f,p,N,v]=At(...t),y=K(N.missingWarn)?N.missingWarn:e.missingWarn,I=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Lt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.NumberFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="number format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&lt(I,f)&&r(Oe(ne.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?it:f;let g=`${m}__${f}`;tt(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.NumberFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const Pn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,s,a]=e,r=W();let i=W();if(!Z(t))throw he(ee.INVALID_ARGUMENT);const c=t;return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{Pn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Rn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}const Zr=e=>e,zr=e=>"",ea="text",ta=e=>e.length===0?"":ht(e),na=Cs;function Mn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sa(e){const t=Z(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Z(e.named.count)||Z(e.named.n))?Z(e.named.count)?e.named.count:Z(e.named.n)?e.named.n:t:t}function ra(e,t){t.count||(t.count=e),t.n||(t.n=e)}function aa(e={}){const t=e.locale,n=sa(e),s=U(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Mn,a=U(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?Mn:void 0,r=o=>o[s(n,o.length,a)],i=e.list||[],c=o=>i[o],f=e.named||W();Z(e.pluralIndex)&&ra(n,f);const p=o=>f[o];function N(o,m){const l=B(e.messages)?e.messages(o,!!m):U(e.messages)?e.messages[o]:!1;return l||(e.parent?e.parent.message(o):zr)}const v=o=>e.modifiers?e.modifiers[o]:Zr,y=F(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ta,I=F(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:na,P=F(e.processor)&&k(e.processor.type)?e.processor.type:ea,S={list:c,named:p,plural:r,linked:(o,...m)=>{const[l,u]=m;let _="text",E="";m.length===1?U(l)?(E=l.modifier||E,_=l.type||_):k(l)&&(E=l||E):m.length===2&&(k(l)&&(E=l||E),k(u)&&(_=u||_));const g=N(o,!0)(S),O=_==="vnode"&&j(g)&&E?g[0]:g;return E?v(E)(O,_):O},message:N,type:P,interpolate:I,normalize:y,values:z(W(),i,f)};return S}const wn=()=>"",ie=e=>B(e);function Fn(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:c}=e,[f,p]=kt(...t),N=K(p.missingWarn)?p.missingWarn:e.missingWarn,v=K(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=K(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,P=k(p.default)||K(p.default)?K(p.default)?r?f:()=>f:p.default:n?r?f:()=>f:null,A=n||P!=null&&(k(P)||B(P)),S=Lt(e,p);y&&ia(p);let[o,m,l]=I?[f,S,c[S]||W()]:Un(e,f,S,i,v,N),u=o,_=f;if(!I&&!(k(u)||ye(u)||ie(u))&&A&&(u=P,_=u),!I&&(!(k(u)||ye(u)||ie(u))||!k(m)))return a?it:f;if(process.env.NODE_ENV!=="production"&&k(u)&&e.messageCompiler==null)return pe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let E=!1;const g=()=>{E=!0},O=ie(u)?u:Kn(e,f,m,u,_,g);if(E)return u;const R=ua(e,m,l,p),w=aa(R),Y=oa(e,O,w),$=s?s(Y,f):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:k(f)?f:ie(u)?u.key:"",locale:m||(ie(u)?u.locale:""),format:k(u)?u:ie(u)?u.source:"",message:$};de.meta=z({},e.__meta,Xr()||{}),Cr(de)}return $}function ia(e){j(e.list)?e.list=e.list.map(t=>k(t)?sn(t):t):U(e.named)&&Object.keys(e.named).forEach(t=>{k(e.named[t])&&(e.named[t]=sn(e.named[t]))})}function Un(e,t,n,s,a,r){const{messages:i,onWarn:c,messageResolver:f,localeFallbacker:p}=e,N=p(e,s,n);let v=W(),y,I=null,P=n,A=null;const S="translate";for(let o=0;o<N.length;o++){if(y=A=N[o],process.env.NODE_ENV!=="production"&&n!==y&&!Cn(n,y)&&lt(a,t)&&c(Oe(ne.FALLBACK_TO_TRANSLATE,{key:t,target:y})),process.env.NODE_ENV!=="production"&&n!==y){const _=e.__v_emitter;_&&_.emit("fallback",{type:S,key:t,from:P,to:A,groupId:`${S}:${t}`})}v=i[y]||W();let m=null,l,u;if(process.env.NODE_ENV!=="production"&&oe&&(m=window.performance.now(),l="intlify-message-resolve-start",u="intlify-message-resolve-end",ae&&ae(l)),(I=f(v,t))===null&&(I=v[t]),process.env.NODE_ENV!=="production"&&oe){const _=window.performance.now(),E=e.__v_emitter;E&&m&&I&&E.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:_-m,groupId:`${S}:${t}`}),l&&u&&ae&&Te&&(ae(u),Te("intlify message resolve",l,u))}if(k(I)||ye(I)||ie(I))break;if(!Qr(y,N)){const _=Ot(e,t,y,r,S);_!==t&&(I=_)}P=A}return[I,y,v]}function Kn(e,t,n,s,a,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ie(s)){const y=s;return y.locale=y.locale||n,y.key=y.key||t,y}if(i==null){const y=()=>s;return y.locale=n,y.key=t,y}let f=null,p,N;process.env.NODE_ENV!=="production"&&oe&&(f=window.performance.now(),p="intlify-message-compilation-start",N="intlify-message-compilation-end",ae&&ae(p));const v=i(s,la(e,n,a,s,c,r));if(process.env.NODE_ENV!=="production"&&oe){const y=window.performance.now(),I=e.__v_emitter;I&&f&&I.emit("message-compilation",{type:"message-compilation",message:s,time:y-f,groupId:`translate:${t}`}),p&&N&&ae&&Te&&(ae(N),Te("intlify message compilation",p,N))}return v.locale=n,v.key=t,v.source=s,v}function oa(e,t,n){let s=null,a,r;process.env.NODE_ENV!=="production"&&oe&&(s=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ae&&ae(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&oe){const c=window.performance.now(),f=e.__v_emitter;f&&s&&f.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-s,groupId:`translate:${t.key}`}),a&&r&&ae&&Te&&(ae(r),Te("intlify message evaluation",a,r))}return i}function kt(...e){const[t,n,s]=e,a=W();if(!k(t)&&!Z(t)&&!ie(t)&&!ye(t))throw he(ee.INVALID_ARGUMENT);const r=Z(t)?String(t):(ie(t),t);return Z(n)?a.plural=n:k(n)?a.default=n:F(n)&&!tt(n)?a.named=n:j(n)&&(a.list=n),Z(s)?a.plural=s:k(s)?a.default=s:F(s)&&z(a,s),[r,a]}function la(e,t,n,s,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=ca(s),f=`Message compilation error: ${i.message}`,p=i.location&&c&&Os(c,i.location.start.offset,i.location.end.offset),N=e.__v_emitter;N&&c&&N.emit("compile-error",{message:c,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${f}
18
- ${p}`:f)}else throw i},onCacheKey:i=>bs(t,n,i)}}function ca(e){if(k(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ua(e,t,n,s){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:f,missingWarn:p,fallbackContext:N}=e,y={locale:t,modifiers:a,pluralRules:r,messages:(I,P)=>{let A=i(n,I);if(A==null&&(N||P)){const[,,S]=Un(N||e,I,t,c,f,p);A=i(S,I)}if(k(A)||ye(A)){let S=!1;const m=Kn(e,I,t,A,I,()=>{S=!0});return S?wn:m}else return ie(A)?A:wn}};return e.processor&&(y.processor=e.processor),s.list&&(y.list=s.list),s.named&&(y.named=s.named),Z(s.plural)&&(y.pluralIndex=s.plural),y}nr();function fa(){return Vn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Vn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const da=typeof Proxy=="function",_a="devtools-plugin:setup",ma="plugin:settings:set";let Fe,St;function ha(){var e;return Fe!==void 0||(typeof window<"u"&&window.performance?(Fe=!0,St=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fe=!0,St=globalThis.perf_hooks.performance):Fe=!1),Fe}function ga(){return ha()?St.now():Date.now()}class pa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const c=t.settings[i];s[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(r,c)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}r=i},now(){return ga()}},n&&n.on(ma,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...f)=>{this.onQueue.push({method:c,args:f})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...f)=>(this.targetQueue.push({method:c,args:f,resolve:()=>{}}),this.fallbacks[c](...f)):(...f)=>new Promise(p=>{this.targetQueue.push({method:c,args:f,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ea(e,t){const n=e,s=Vn(),a=fa(),r=da&&n.enableEarlyProxy;if(a&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(_a,e,t);else{const i=r?new pa(n,a):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
19
- * vue-i18n v11.1.1
17
+ */function fr(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ie(e){return K(e)&&bt(e)===0&&(ce(e,"b")||ce(e,"body"))}const fn=["b","body"];function dr(e){return ye(e,fn)}const dn=["c","cases"];function _r(e){return ye(e,dn,[])}const _n=["s","static"];function mr(e){return ye(e,_n)}const mn=["i","items"];function hr(e){return ye(e,mn,[])}const hn=["t","type"];function bt(e){return ye(e,hn)}const gn=["v","value"];function rt(e,t){const n=ye(e,gn);if(n!=null)return n;throw xe(t)}const pn=["m","modifier"];function gr(e){return ye(e,pn)}const En=["k","key"];function pr(e){const t=ye(e,En);if(t)return t;throw xe(6)}function ye(e,t,n){for(let s=0;s<t.length;s++){const a=t[s];if(ce(e,a)&&e[a]!=null)return e[a]}return n}const bn=[...fn,...dn,..._n,...mn,...En,...pn,...gn,...hn];function xe(e){return new Error(`unhandled node type: ${e}`)}function yt(e){return n=>Er(n,e)}function Er(e,t){const n=dr(t);if(n==null)throw xe(0);if(bt(n)===1){const r=_r(n);return e.plural(r.reduce((i,c)=>[...i,yn(e,c)],[]))}else return yn(e,n)}function yn(e,t){const n=mr(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=hr(t).reduce((a,r)=>[...a,Nt(e,r)],[]);return e.normalize(s)}}function Nt(e,t){const n=bt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const s=t;if(ce(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(ce(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw xe(n)}case 5:{const s=t;if(ce(s,"i")&&Z(s.i))return e.interpolate(e.list(s.i));if(ce(s,"index")&&Z(s.index))return e.interpolate(e.list(s.index));throw xe(n)}case 6:{const s=t,a=gr(s),r=pr(s);return e.linked(Nt(e,r),a?Nt(e,a):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const br="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function yr(e,t){t&&$s(e)&&Ee(et(br,{source:e}))}const Nr=e=>e;let at=G();function vr(e,t={}){let n=!1;const s=t.onError||Vs;return t.onError=a=>{n=!0,s(a)},{...ur(e,t),detectError:n}}function Tr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&A(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&yr(e,n);const a=(t.onCacheKey||Nr)(e),r=at[a];if(r)return r;const{ast:i,detectError:c}=vr(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=yt(i);return c?f:at[a]=f}else{if(process.env.NODE_ENV!=="production"&&!ie(e))return Ee(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const s=at[n];return s||(at[n]=yt(e))}else return yt(e)}}let $e=null;function Lr(e){$e=e}function Cr(e,t,n){$e&&$e.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Or=Ir("function:translate");function Ir(e){return t=>$e&&$e.emit(e,t)}const ee={INVALID_ARGUMENT:Ks,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ar=24;function ge(e){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:Sr}:void 0)}const Sr={[ee.INVALID_ARGUMENT]:"Invalid arguments",[ee.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ee.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ee.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ee.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function vt(e,t){return t.locale!=null?Nn(t.locale):Nn(e.locale)}let Tt;function Nn(e){if(A(e))return e;if(B(e)){if(e.resolvedOnce&&Tt!=null)return Tt;if(e.constructor.name==="Function"){const t=e();if(Rs(t))throw ge(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Tt=t}else throw ge(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ge(ee.NOT_SUPPORT_LOCALE_TYPE)}function kr(e,t,n){return[...new Set([n,...X(t)?t:K(t)?Object.keys(t):A(t)?[t]:[n]])]}function vn(e,t,n){const s=A(n)?n:We,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;X(i);)i=Tn(r,i,t);const c=X(t)||!F(t)?t:t.default?t.default:null;i=A(c)?[c]:c,X(i)&&Tn(r,i,!1),a.__localeChainCache.set(s,r)}return r}function Tn(e,t,n){let s=!0;for(let a=0;a<t.length&&U(s);a++){const r=t[a];A(r)&&(s=Dr(e,t[a],n))}return s}function Dr(e,t,n){let s;const a=t.split("-");do{const r=a.join("-");s=Pr(e,r,n),a.splice(-1,1)}while(a.length&&s===!0);return s}function Pr(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(X(n)||F(n))&&n[a]&&(s=n[a])}return s}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Rr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Mr(e){return Rr.test(e)}function wr(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Fr(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Kr(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Mr(t)?wr(t):"*"+t}function Ur(e){const t=[];let n=-1,s=0,a=0,r,i,c,f,g,N,v;const y=[];y[0]=()=>{i===void 0?i=c:i+=c},y[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,s=4,y[0]();else{if(a=0,i===void 0||(i=Kr(i),i===!1))return!1;y[1]()}};function O(){const P=e[n+1];if(s===5&&P==="'"||s===6&&P==='"')return n++,c="\\"+P,y[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&O())){if(f=Fr(r),v=Ne[s],g=v[f]||v.l||8,g===8||(s=g[0],g[1]!==void 0&&(N=y[g[1]],N&&(c=r,N()===!1))))return;if(s===7)return t}}const Ln=new Map;function Vr(e,t){return K(e)?e[t]:null}function xr(e,t){if(!K(e))return null;let n=Ln.get(t);if(n||(n=Ur(t),n&&Ln.set(t,n)),!n)return null;const s=n.length;let a=e,r=0;for(;r<s;){const i=n[r];if(bn.includes(i)&&ie(a))return null;const c=a[i];if(c===void 0||B(a))return null;a=c,r++}return a}const ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},$r=8,Wr={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return et(Wr[e],...t)}const Gr="11.1.3",it=-1,We="en-US",ot="",Cn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Br(){return{upper:(e,t)=>t==="text"&&A(e)?e.toUpperCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&A(e)?e.toLowerCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&A(e)?Cn(e):t==="vnode"&&K(e)&&"__v_isVNode"in e?Cn(e.children):e}}let On;function Yr(e){On=e}let In;function Hr(e){In=e}let An;function jr(e){An=e}let Sn=null;const Xr=e=>{Sn=e},qr=()=>Sn;let kn=null;const Dn=e=>{kn=e},Jr=()=>kn;let Pn=0;function Qr(e={}){const t=B(e.onWarn)?e.onWarn:Ee,n=A(e.version)?e.version:Gr,s=A(e.locale)||B(e.locale)?e.locale:We,a=B(s)?We:s,r=X(e.fallbackLocale)||F(e.fallbackLocale)||A(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=F(e.messages)?e.messages:Lt(a),c=F(e.datetimeFormats)?e.datetimeFormats:Lt(a),f=F(e.numberFormats)?e.numberFormats:Lt(a),g=z(G(),e.modifiers,Br()),N=e.pluralRules||G(),v=B(e.missing)?e.missing:null,y=U(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,O=U(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,S=!!e.unresolving,k=B(e.postTranslation)?e.postTranslation:null,o=F(e.processor)?e.processor:null,m=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,l=!!e.escapeParameter,u=B(e.messageCompiler)?e.messageCompiler:On;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&ht(Oe(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=B(e.messageResolver)?e.messageResolver:In||Vr,E=B(e.localeFallbacker)?e.localeFallbacker:An||kr,p=K(e.fallbackContext)?e.fallbackContext:void 0,I=e,R=K(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,w=K(I.__numberFormatters)?I.__numberFormatters:new Map,H=K(I.__meta)?I.__meta:{};Pn++;const $={version:n,cid:Pn,locale:s,fallbackLocale:r,messages:i,modifiers:g,pluralRules:N,missing:v,missingWarn:y,fallbackWarn:O,fallbackFormat:P,unresolving:S,postTranslation:k,processor:o,warnHtmlMessage:m,escapeParameter:l,messageCompiler:u,messageResolver:_,localeFallbacker:E,fallbackContext:p,onWarn:t,__meta:H};return $.datetimeFormats=c,$.numberFormats=f,$.__datetimeFormatters=R,$.__numberFormatters=w,process.env.NODE_ENV!=="production"&&($.__v_emitter=I.__v_emitter!=null?I.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Cr($,n,H),$}const Lt=e=>({[e]:G()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Rn(e,t){return e instanceof RegExp?e.test(t):e}function Ct(e,t,n,s,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const c=r(e,n,t,a);return A(c)?c:t}else return process.env.NODE_ENV!=="production"&&Rn(s,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function Ge(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Mn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Zr(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Mn(e,t[s]))return!0;return!1}const wn=typeof Intl<"u",Fn={dateTimeFormat:wn&&typeof Intl.DateTimeFormat<"u",numberFormat:wn&&typeof Intl.NumberFormat<"u"};function Kn(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!Fn.dateTimeFormat)return r(Oe(ne.CANNOT_FORMAT_DATE)),ot;const[f,g,N,v]=Ot(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,O=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,S=vt(e,N),k=i(e,a,S);if(!A(f)||f==="")return new Intl.DateTimeFormat(S,v).format(g);let o={},m,l=null,u=S,_=null;const E="datetime format";for(let R=0;R<k.length;R++){if(m=_=k[R],process.env.NODE_ENV!=="production"&&S!==m&&lt(O,f)&&r(Oe(ne.FALLBACK_TO_DATE_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&S!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ct(e,f,m,y,E),u=_}if(!F(l)||!A(m))return s?it:f;let p=`${m}__${f}`;tt(v)||(p=`${p}__${JSON.stringify(v)}`);let I=c.get(p);return I||(I=new Intl.DateTimeFormat(m,z({},l,v)),c.set(p,I)),P?I.formatToParts(g):I.format(g)}const Un=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ot(...e){const[t,n,s,a]=e,r=G();let i=G(),c;if(A(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw ge(ee.INVALID_ISO_DATE_ARGUMENT);const g=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();c=new Date(g);try{c.toISOString()}catch{throw ge(ee.INVALID_ISO_DATE_ARGUMENT)}}else if(ks(t)){if(isNaN(t.getTime()))throw ge(ee.INVALID_DATE_ARGUMENT);c=t}else if(Z(t))c=t;else throw ge(ee.INVALID_ARGUMENT);return A(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{Un.includes(f)?i[f]=n[f]:r[f]=n[f]}),A(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Vn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function xn(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!Fn.numberFormat)return r(Oe(ne.CANNOT_FORMAT_NUMBER)),ot;const[f,g,N,v]=It(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,O=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,S=vt(e,N),k=i(e,a,S);if(!A(f)||f==="")return new Intl.NumberFormat(S,v).format(g);let o={},m,l=null,u=S,_=null;const E="number format";for(let R=0;R<k.length;R++){if(m=_=k[R],process.env.NODE_ENV!=="production"&&S!==m&&lt(O,f)&&r(Oe(ne.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&S!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ct(e,f,m,y,E),u=_}if(!F(l)||!A(m))return s?it:f;let p=`${m}__${f}`;tt(v)||(p=`${p}__${JSON.stringify(v)}`);let I=c.get(p);return I||(I=new Intl.NumberFormat(m,z({},l,v)),c.set(p,I)),P?I.formatToParts(g):I.format(g)}const $n=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function It(...e){const[t,n,s,a]=e,r=G();let i=G();if(!Z(t))throw ge(ee.INVALID_ARGUMENT);const c=t;return A(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{$n.includes(f)?i[f]=n[f]:r[f]=n[f]}),A(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Wn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}const zr=e=>e,ea=e=>"",ta="text",na=e=>e.length===0?"":mt(e),sa=Ms;function Gn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ra(e){const t=Z(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Z(e.named.count)||Z(e.named.n))?Z(e.named.count)?e.named.count:Z(e.named.n)?e.named.n:t:t}function aa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ia(e={}){const t=e.locale,n=ra(e),s=K(e.pluralRules)&&A(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Gn,a=K(e.pluralRules)&&A(t)&&B(e.pluralRules[t])?Gn:void 0,r=o=>o[s(n,o.length,a)],i=e.list||[],c=o=>i[o],f=e.named||G();Z(e.pluralIndex)&&aa(n,f);const g=o=>f[o];function N(o,m){const l=B(e.messages)?e.messages(o,!!m):K(e.messages)?e.messages[o]:!1;return l||(e.parent?e.parent.message(o):ea)}const v=o=>e.modifiers?e.modifiers[o]:zr,y=F(e.processor)&&B(e.processor.normalize)?e.processor.normalize:na,O=F(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:sa,P=F(e.processor)&&A(e.processor.type)?e.processor.type:ta,k={list:c,named:g,plural:r,linked:(o,...m)=>{const[l,u]=m;let _="text",E="";m.length===1?K(l)?(E=l.modifier||E,_=l.type||_):A(l)&&(E=l||E):m.length===2&&(A(l)&&(E=l||E),A(u)&&(_=u||_));const p=N(o,!0)(k),I=_==="vnode"&&X(p)&&E?p[0]:p;return E?v(E)(I,_):I},message:N,type:P,interpolate:O,normalize:y,values:z(G(),i,f)};return k}const Bn=()=>"",oe=e=>B(e);function Yn(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:c}=e,[f,g]=At(...t),N=U(g.missingWarn)?g.missingWarn:e.missingWarn,v=U(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,y=U(g.escapeParameter)?g.escapeParameter:e.escapeParameter,O=!!g.resolvedMessage,P=A(g.default)||U(g.default)?U(g.default)?r?f:()=>f:g.default:n?r?f:()=>f:null,S=n||P!=null&&(A(P)||B(P)),k=vt(e,g);y&&oa(g);let[o,m,l]=O?[f,k,c[k]||G()]:Hn(e,f,k,i,v,N),u=o,_=f;if(!O&&!(A(u)||ie(u)||oe(u))&&S&&(u=P,_=u),!O&&(!(A(u)||ie(u)||oe(u))||!A(m)))return a?it:f;if(process.env.NODE_ENV!=="production"&&A(u)&&e.messageCompiler==null)return Ee(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let E=!1;const p=()=>{E=!0},I=oe(u)?u:jn(e,f,m,u,_,p);if(E)return u;const R=fa(e,m,l,g),w=ia(R),H=la(e,I,w),$=s?s(H,f):H;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const _e={timestamp:Date.now(),key:A(f)?f:oe(u)?u.key:"",locale:m||(oe(u)?u.locale:""),format:A(u)?u:oe(u)?u.source:"",message:$};_e.meta=z({},e.__meta,qr()||{}),Or(_e)}return $}function oa(e){X(e.list)?e.list=e.list.map(t=>A(t)?sn(t):t):K(e.named)&&Object.keys(e.named).forEach(t=>{A(e.named[t])&&(e.named[t]=sn(e.named[t]))})}function Hn(e,t,n,s,a,r){const{messages:i,onWarn:c,messageResolver:f,localeFallbacker:g}=e,N=g(e,s,n);let v=G(),y,O=null,P=n,S=null;const k="translate";for(let o=0;o<N.length;o++){if(y=S=N[o],process.env.NODE_ENV!=="production"&&n!==y&&!Mn(n,y)&&lt(a,t)&&c(Oe(ne.FALLBACK_TO_TRANSLATE,{key:t,target:y})),process.env.NODE_ENV!=="production"&&n!==y){const _=e.__v_emitter;_&&_.emit("fallback",{type:k,key:t,from:P,to:S,groupId:`${k}:${t}`})}v=i[y]||G();let m=null,l,u;if(process.env.NODE_ENV!=="production"&&le&&(m=window.performance.now(),l="intlify-message-resolve-start",u="intlify-message-resolve-end",ae&&ae(l)),(O=f(v,t))===null&&(O=v[t]),process.env.NODE_ENV!=="production"&&le){const _=window.performance.now(),E=e.__v_emitter;E&&m&&O&&E.emit("message-resolve",{type:"message-resolve",key:t,message:O,time:_-m,groupId:`${k}:${t}`}),l&&u&&ae&&Le&&(ae(u),Le("intlify message resolve",l,u))}if(A(O)||ie(O)||oe(O))break;if(!Zr(y,N)){const _=Ct(e,t,y,r,k);_!==t&&(O=_)}P=S}return[O,y,v]}function jn(e,t,n,s,a,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(oe(s)){const y=s;return y.locale=y.locale||n,y.key=y.key||t,y}if(i==null){const y=()=>s;return y.locale=n,y.key=t,y}let f=null,g,N;process.env.NODE_ENV!=="production"&&le&&(f=window.performance.now(),g="intlify-message-compilation-start",N="intlify-message-compilation-end",ae&&ae(g));const v=i(s,ca(e,n,a,s,c,r));if(process.env.NODE_ENV!=="production"&&le){const y=window.performance.now(),O=e.__v_emitter;O&&f&&O.emit("message-compilation",{type:"message-compilation",message:s,time:y-f,groupId:`translate:${t}`}),g&&N&&ae&&Le&&(ae(N),Le("intlify message compilation",g,N))}return v.locale=n,v.key=t,v.source=s,v}function la(e,t,n){let s=null,a,r;process.env.NODE_ENV!=="production"&&le&&(s=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ae&&ae(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&le){const c=window.performance.now(),f=e.__v_emitter;f&&s&&f.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-s,groupId:`translate:${t.key}`}),a&&r&&ae&&Le&&(ae(r),Le("intlify message evaluation",a,r))}return i}function At(...e){const[t,n,s]=e,a=G();if(!A(t)&&!Z(t)&&!oe(t)&&!ie(t))throw ge(ee.INVALID_ARGUMENT);const r=Z(t)?String(t):(oe(t),t);return Z(n)?a.plural=n:A(n)?a.default=n:F(n)&&!tt(n)?a.named=n:X(n)&&(a.list=n),Z(s)?a.plural=s:A(s)?a.default=s:F(s)&&z(a,s),[r,a]}function ca(e,t,n,s,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=ua(s),f=`Message compilation error: ${i.message}`,g=i.location&&c&&ws(c,i.location.start.offset,i.location.end.offset),N=e.__v_emitter;N&&c&&N.emit("compile-error",{message:c,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(g?`${f}
18
+ ${g}`:f)}else throw i},onCacheKey:i=>As(t,n,i)}}function ua(e){if(A(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function fa(e,t,n,s){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:f,missingWarn:g,fallbackContext:N}=e,y={locale:t,modifiers:a,pluralRules:r,messages:(O,P)=>{let S=i(n,O);if(S==null&&(N||P)){const[,,k]=Hn(N||e,O,t,c,f,g);S=i(k,O)}if(A(S)||ie(S)){let k=!1;const m=jn(e,O,t,S,O,()=>{k=!0});return k?Bn:m}else return oe(S)?S:Bn}};return e.processor&&(y.processor=e.processor),s.list&&(y.list=s.list),s.named&&(y.named=s.named),Z(s.plural)&&(y.pluralIndex=s.plural),y}fr();function da(){return Xn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Xn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const _a=typeof Proxy=="function",ma="devtools-plugin:setup",ha="plugin:settings:set";let Ke,St;function ga(){var e;return Ke!==void 0||(typeof window<"u"&&window.performance?(Ke=!0,St=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ke=!0,St=globalThis.perf_hooks.performance):Ke=!1),Ke}function pa(){return ga()?St.now():Date.now()}class Ea{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const c=t.settings[i];s[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(r,c)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}r=i},now(){return pa()}},n&&n.on(ha,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...f)=>{this.onQueue.push({method:c,args:f})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...f)=>(this.targetQueue.push({method:c,args:f,resolve:()=>{}}),this.fallbacks[c](...f)):(...f)=>new Promise(g=>{this.targetQueue.push({method:c,args:f,resolve:g})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ba(e,t){const n=e,s=Xn(),a=da(),r=_a&&n.enableEarlyProxy;if(a&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(ma,e,t);else{const i=r?new Ea(n,a):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
19
+ * vue-i18n v11.1.3
20
20
  * (c) 2025 kazuya kawaguchi
21
21
  * Released under the MIT License.
22
- */const ba="11.1.1";function ya(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ce().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ce().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1)}const G={UNEXPECTED_RETURN_TYPE:Ir,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function se(e,...t){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Na,args:t}:void 0)}const Na={[G.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[G.INVALID_ARGUMENT]:"Invalid argument",[G.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[G.NOT_INSTALLED]:"Need to install with `app.use` function",[G.UNEXPECTED_ERROR]:"Unexpected error",[G.REQUIRED_VALUE]:"Required in value: {0}",[G.INVALID_VALUE]:"Invalid value",[G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[G.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Dt=ce("__translateVNode"),Pt=ce("__datetimeParts"),Rt=ce("__numberParts"),Ie=ce("__enableEmitter"),Ge=ce("__disableEmitter"),xn=ce("__setPluralRules"),$n=ce("__injectWithOption"),Mt=ce("__dispose"),fe={FALLBACK_TO_ROOT:xr,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},va={[fe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[fe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[fe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[fe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
23
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ye(e,...t){return et(va[e],...t)}function He(e){if(!U(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))U(e[t])&&He(e[t]);else{const n=t.split("."),s=n.length-1;let a=e,r=!1;for(let i=0;i<s;i++){if(n[i]in a||(a[n[i]]=W()),!U(a[n[i]])){process.env.NODE_ENV!=="production"&&pe(Ye(fe.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[s]]=e[t],delete e[t]),U(a[n[s]])&&He(a[n[s]])}return e}function wt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,i=F(n)?n:j(s)?W():{[e]:W()};if(j(s)&&s.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:p}=c;f?(i[f]=i[f]||W(),st(p,i[f])):st(p,i)}else k(c)&&st(JSON.parse(c),i)}),a==null&&r)for(const c in i)le(i,c)&&He(i[c]);return i}function Wn(e){return e.type}function Bn(e,t,n){let s=U(t.messages)?t.messages:W();"__i18nGlobal"in n&&(s=wt(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(U(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(U(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Gn(e){return T.createVNode(T.Text,null,e,0)}const Yn="__INTLIFY_META__",Hn=()=>[],La=()=>!1;let jn=0;function Xn(e){return(t,n,s,a)=>e(n,s,T.getCurrentInstance()||void 0,a)}const Ta=()=>{const e=T.getCurrentInstance();let t=null;return e&&(t=Wn(e)[Yn])?{[Yn]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,a=e.flatJson,r=oe?T.ref:T.shallowRef;let i=K(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:k(e.locale)?e.locale:We),f=r(t&&i?t.fallbackLocale.value:k(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=r(wt(c.value,e)),N=r(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),v=r(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=t?t.missingWarn:K(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:K(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,S=B(e.missing)?e.missing:null,o=B(e.missing)?Xn(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,l=t?t.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const _=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,g;g=(()=>{s&&vn(null);const b={version:ba,locale:c.value,fallbackLocale:f.value,messages:p.value,modifiers:_,pluralRules:E,missing:o===null?void 0:o,missingWarn:y,fallbackWarn:I,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:l,escapeParameter:u,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=N.value,b.numberFormats=v.value,b.__datetimeFormatters=F(g)?g.__datetimeFormatters:void 0,b.__numberFormatters=F(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=F(g)?g.__v_emitter:void 0);const C=Jr(b);return s&&vn(C),C})(),Be(g,c.value,f.value);function R(){return[c.value,f.value,p.value,N.value,v.value]}const w=T.computed({get:()=>c.value,set:b=>{g.locale=b,c.value=b}}),Y=T.computed({get:()=>f.value,set:b=>{g.fallbackLocale=b,f.value=b,Be(g,c.value,b)}}),$=T.computed(()=>p.value),de=T.computed(()=>N.value),_e=T.computed(()=>v.value);function Ae(){return B(m)?m:null}function re(b){m=b,g.postTranslation=b}function ve(){return S}function Ke(b){b!==null&&(o=Xn(b)),S=b,g.missing=o}function Xe(b,C){return b!=="translate"||!C.resolvedMessage}const ge=(b,C,x,J,Se,_t)=>{R();let Ve;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=t?qr():void 0),Ve=b(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ve)&&Ve===it||x==="translate exists"&&!Ve){const[De,vi]=C();if(process.env.NODE_ENV!=="production"&&t&&k(De)&&Xe(x,vi)&&(P&&(lt(I,De)||Tn(y,De))&&pe(Ye(fe.FALLBACK_TO_ROOT,{key:De,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:_s}=g;_s&&P&&_s.emit("fallback",{type:x,key:De,to:"global",groupId:`${x}:${De}`})}return t&&P?J(t):Se(De)}else{if(_t(Ve))return Ve;throw se(G.UNEXPECTED_RETURN_TYPE)}};function qe(...b){return ge(C=>Reflect.apply(Fn,null,[C,...b]),()=>kt(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>k(C))}function Bt(...b){const[C,x,J]=b;if(J&&!U(J))throw se(G.INVALID_ARGUMENT);return qe(C,x,z({resolvedMessage:!0},J||{}))}function Gt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>ot,C=>k(C))}function Yt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>ot,C=>k(C))}function Ht(b){return b.map(C=>k(C)||Z(C)||K(C)?Gn(String(C)):C)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function dt(...b){return ge(C=>{let x;const J=C;try{J.processor=jt,x=Reflect.apply(Fn,null,[J,...b])}finally{J.processor=null}return x},()=>kt(...b),"translate",C=>C[Dt](...b),C=>[Gn(C)],C=>j(C))}function Xt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>C[Rt](...b),Hn,C=>k(C)||j(C))}function qt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>C[Pt](...b),Hn,C=>k(C)||j(C))}function Jt(b){E=b,g.pluralRules=E}function Qt(b,C){return ge(()=>{if(!b)return!1;const x=k(C)?C:c.value,J=ke(x),Se=g.messageResolver(J,b);return ye(Se)||ie(Se)||k(Se)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,C]),La,x=>K(x))}function Je(b){let C=null;const x=_n(g,f.value,c.value);for(let J=0;J<x.length;J++){const Se=p.value[x[J]]||{},_t=g.messageResolver(Se,b);if(_t!=null){C=_t;break}}return C}function Qe(b){const C=Je(b);return C??(t?t.tm(b)||{}:{})}function ke(b){return p.value[b]||{}}function Ze(b,C){if(a){const x={[b]:C};for(const J in x)le(x,J)&&He(x[J]);C=x[b]}p.value[b]=C,g.messages=p.value}function Zt(b,C){p.value[b]=p.value[b]||{};const x={[b]:C};if(a)for(const J in x)le(x,J)&&He(x[J]);C=x[b],st(C,p.value[b]),g.messages=p.value}function d(b){return N.value[b]||{}}function h(b,C){N.value[b]=C,g.datetimeFormats=N.value,Sn(g,b,C)}function L(b,C){N.value[b]=z(N.value[b]||{},C),g.datetimeFormats=N.value,Sn(g,b,C)}function D(b){return v.value[b]||{}}function X(b,C){v.value[b]=C,g.numberFormats=v.value,Rn(g,b,C)}function q(b,C){v.value[b]=z(v.value[b]||{},C),g.numberFormats=v.value,Rn(g,b,C)}jn++,t&&oe&&(T.watch(t.locale,b=>{i&&(c.value=b,g.locale=b,Be(g,c.value,f.value))}),T.watch(t.fallbackLocale,b=>{i&&(f.value=b,g.fallbackLocale=b,Be(g,c.value,f.value))}));const V={id:jn,locale:w,fallbackLocale:Y,get inheritLocale(){return i},set inheritLocale(b){i=b,b&&t&&(c.value=t.locale.value,f.value=t.fallbackLocale.value,Be(g,c.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:$,get modifiers(){return _},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(b){y=b,g.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(b){I=b,g.fallbackWarn=I},get fallbackRoot(){return P},set fallbackRoot(b){P=b},get fallbackFormat(){return A},set fallbackFormat(b){A=b,g.fallbackFormat=A},get warnHtmlMessage(){return l},set warnHtmlMessage(b){l=b,g.warnHtmlMessage=b},get escapeParameter(){return u},set escapeParameter(b){u=b,g.escapeParameter=b},t:qe,getLocaleMessage:ke,setLocaleMessage:Ze,mergeLocaleMessage:Zt,getPostTranslationHandler:Ae,setPostTranslationHandler:re,getMissingHandler:ve,setMissingHandler:Ke,[xn]:Jt};return V.datetimeFormats=de,V.numberFormats=_e,V.rt=Bt,V.te=Qt,V.tm=Qe,V.d=Gt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=L,V.getNumberFormat=D,V.setNumberFormat=X,V.mergeNumberFormat=q,V[$n]=n,V[Dt]=dt,V[Pt]=qt,V[Rt]=Xt,process.env.NODE_ENV!=="production"&&(V[Ie]=b=>{g.__v_emitter=b},V[Ge]=()=>{g.__v_emitter=void 0}),V}const qn="vue-i18n: composer properties",Ut={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ca={"vue-i18n-resource-inspector":"Search for scopes ..."},Oa={"vue-i18n-timeline":16764185};let Kt;async function Ia(e,t){return new Promise((n,s)=>{try{Ea({id:"vue-devtools-plugin-vue-i18n",label:Ut["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qn],app:e},a=>{Kt=a,a.on.visitComponentTree(({componentInstance:i,treeNode:c})=>{Aa(i,c,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:c})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&Qn(c,i.vnode.el.__VUE_I18N__):Qn(c,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Ut["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ca["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ra(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),wa(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[c]=await a.getComponentInstances(i.app);r.set(i.app,c)}a.highlightElement(r.get(i.app))}else{const c=Ma(i.nodeId,t);c&&a.highlightElement(c)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ua(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Ut["vue-i18n-timeline"],color:Oa["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),s(!1)}})}function Jn(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Aa(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const a={label:`i18n (${Jn(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Qn(e,t){const n=qn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Vt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Vt(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];B(s)&&"source"in s?t[n]=Pa(s):ye(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:U(s)?t[n]=Vt(s):t[n]=s}),t}const ka={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Sa(e){return e.replace(/[<>"&]/g,Da)}function Da(e){return ka[e]||e}function Pa(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Sa(e.source)}")`:"(?)"}`}}}function Ra(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Jn(s)} Scope`})}}function Ma(e,t){let n=null;if(e!=="global"){for(const[s,a]of t.__instances.entries())if(a.id.toString()===e){n=s;break}}return n}function Zn(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function wa(e,t){const n=Zn(e.nodeId,t);return n&&(e.state=Fa(n)),null}function Fa(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:Vt(e.messages.value)}];t[a]=r;{const i="Datetime formats info",c=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=c;const f="Datetime formats info",p=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=p}return t}function je(e,t){if(Kt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Kt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ua(e,t){const n=Zn(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&k(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(k(e.state.value)||j(e.state.value)||U(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ka(e){const t=k(e.locale)?e.locale:We,n=k(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=B(e.missing)?e.missing:void 0,a=K(e.silentTranslationWarn)||Pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=K(e.silentFallbackWarn)||Pe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=K(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,f=F(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,N=B(e.postTranslation)?e.postTranslation:void 0,v=k(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,I=K(e.sync)?e.sync:!0;let P=e.messages;if(F(e.sharedMessages)){const _=e.sharedMessages;P=Object.keys(_).reduce((g,O)=>{const R=g[O]||(g[O]={});return z(R,_[O]),g},P||{})}const{__i18n:A,__root:S,__injectWithOption:o}=e,m=e.datetimeFormats,l=e.numberFormats,u=e.flatJson;return{locale:t,fallbackLocale:n,messages:P,flatJson:u,datetimeFormats:m,numberFormats:l,missing:s,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:c,modifiers:f,pluralRules:p,postTranslation:N,warnHtmlMessage:v,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:I,__i18n:A,__root:S,__injectWithOption:o}}function xt(e={}){const t=Ft(Ka(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return K(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=K(a)?!a:a},get silentFallbackWarn(){return K(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=K(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return s.__extender=n,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=a=>{const r=t;r[Ie]&&r[Ie](a)},s.__disableEmitter=()=>{const a=t;a[Ge]&&a[Ge]()}),s}function Va(e,t,n){return{beforeCreate(){const s=T.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=zn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=xt(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=zn(e,a);else{this.$i18n=xt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Bn(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const a=this.__v_emitter=pt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",je)}},unmounted(){const s=T.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",je),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(s),delete this.$i18n}}}function zn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[xn](t.pluralizationRules||e.pluralizationRules);const n=wt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const $t={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>[...s,...a.type===T.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},W())}function es(){return T.Fragment}const ts=T.defineComponent({name:"i18n-t",props:z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Z(e)||!isNaN(e)}},$t),setup(e,t){const{slots:n,attrs:s}=t,a=e.i18n||ct({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(v=>v!=="_"),i=W();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=k(e.plural)?+e.plural:e.plural);const c=xa(t,r),f=a[Dt](e.keypath,c,i),p=z(W(),s),N=k(e.tag)||U(e.tag)?e.tag:es();return T.h(N,p,f)}}});function $a(e){return j(e)&&!k(e[0])}function ns(e,t,n,s){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let c=W();e.locale&&(i.locale=e.locale),k(e.format)?i.key=e.format:U(e.format)&&(k(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((y,I)=>n.includes(I)?z(W(),y,{[I]:e.format[I]}):y,W()));const f=s(e.value,i,c);let p=[i.key];j(f)?p=f.map((y,I)=>{const P=a[y.type],A=P?P({[y.type]:y.value,index:I,parts:f}):[y.value];return $a(A)&&(A[0].key=`${y.type}-${I}`),A}):k(f)&&(p=[f]);const N=z(W(),r),v=k(e.tag)||U(e.tag)?e.tag:es();return T.h(v,N,p)}}const ss=T.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return ns(e,t,Pn,(...s)=>n[Rt](...s))}});function Wa(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Ba(e){const t=i=>{process.env.NODE_ENV!=="production"&&gt(Ye(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:f}=i;if(!c||!c.$)throw se(G.UNEXPECTED_ERROR);const p=Wa(e,c.$),N=rs(f);return[Reflect.apply(p.t,p,[...as(N)]),p]};return{created:(i,c)=>{const[f,p]=t(c);oe&&e.global===p&&(i.__i18nWatcher=T.watch(p.locale,()=>{c.instance&&c.instance.$forceUpdate()})),i.__composer=p,i.textContent=f},unmounted:i=>{oe&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:c})=>{if(i.__composer){const f=i.__composer,p=rs(c);i.textContent=Reflect.apply(f.t,f,[...as(p)])}},getSSRProps:i=>{const[c]=t(i);return{textContent:c}}}}function rs(e){if(k(e))return{path:e};if(F(e)){if(!("path"in e))throw se(G.REQUIRED_VALUE,"path");return e}else throw se(G.INVALID_VALUE)}function as(e){const{path:t,locale:n,args:s,choice:a,plural:r}=e,i={},c=s||{};return k(n)&&(i.locale=n),Z(a)&&(i.plural=a),Z(r)&&(i.plural=r),[t,c,i]}function Ga(e,t,...n){const s=F(n[0])?n[0]:{};(K(s.globalInstall)?s.globalInstall:!0)&&([ts.name,"I18nT"].forEach(r=>e.component(r,ts)),[ss.name,"I18nN"].forEach(r=>e.component(r,ss)),[os.name,"I18nD"].forEach(r=>e.component(r,os))),e.directive("t",Ba(t))}const Ya=ce("global-vue-i18n");function Ha(e={}){const t=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&gt(Ye(fe.DEPRECATE_LEGACY_MODE));const n=K(e.globalInjection)?e.globalInjection:!0,s=new Map,[a,r]=ja(e,t),i=ce(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(v){return s.get(v)||null}function f(v,y){s.set(v,y)}function p(v){s.delete(v)}const N={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(v,...y){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=N),v.__VUE_I18N_SYMBOL__=i,v.provide(v.__VUE_I18N_SYMBOL__,N),F(y[0])){const A=y[0];N.__composerExtend=A.__composerExtend,N.__vueI18nExtend=A.__vueI18nExtend}let I=null;!t&&n&&(I=ti(v,N.global)),__VUE_I18N_FULL_INSTALL__&&Ga(v,N,...y),__VUE_I18N_LEGACY_API__&&t&&v.mixin(Va(r,r.__composer,N));const P=v.unmount;if(v.unmount=()=>{I&&I(),N.dispose(),P()},process.env.NODE_ENV!=="production"){if(!await Ia(v,N))throw se(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const S=pt();if(t){const o=r;o.__enableEmitter&&o.__enableEmitter(S)}else{const o=r;o[Ie]&&o[Ie](S)}S.on("*",je)}},get global(){return r},dispose(){a.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:p};return N}function ct(e={}){const t=T.getCurrentInstance();if(t==null)throw se(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(G.NOT_INSTALLED);const n=Xa(t),s=Ja(n),a=Wn(t),r=qa(e,a);if(r==="global")return Bn(s,e,a),s;if(r==="parent"){let f=Qa(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&pe(Ye(fe.NOT_FOUND_PARENT_SCOPE)),f=s),f}const i=n;let c=i.__getInstance(t);if(c==null){const f=z({},e);"__i18n"in a&&(f.__i18n=a.__i18n),s&&(f.__root=s),c=Ft(f),i.__composerExtend&&(c[Mt]=i.__composerExtend(c)),za(i,t,c),i.__setInstance(t,c)}return c}function ja(e,t){const n=T.effectScope(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>xt(e)):n.run(()=>Ft(e));if(s==null)throw se(G.UNEXPECTED_ERROR);return[n,s]}function Xa(e){const t=T.inject(e.isCE?Ya:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}function qa(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ja(e){return e.mode==="composition"?e.global:e.global.__composer}function Qa(e,t,n=!1){let s=null;const a=t.root;let r=Za(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(s=c.__composer,n&&s&&!s[$n]&&(s=null))}if(s!=null||a===r)break;r=r.parent}return s}function Za(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function za(e,t,n){let s=null;T.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=pt();const a=n;a[Ie]&&a[Ie](s),s.on("*",je)}},t),T.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",je),a[Ge]&&a[Ge](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[Mt];r&&(r(),delete a[Mt])},t)}const ei=["locale","fallbackLocale","availableLocales"],is=["t","rt","d","n","tm","te"];function ti(e,t){const n=Object.create(null);return ei.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw se(G.UNEXPECTED_ERROR);const i=T.isRef(r.value)?{get(){return r.value.value},set(c){r.value.value=c}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,is.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw se(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,is.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const os=T.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return ns(e,t,kn,(...s)=>n[Pt](...s))}});if(ya(),Gr(vr),Yr(Vr),Hr(_n),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ce();e.__INTLIFY__=!0,Lr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var ut={exports:{}};/*! store2 - v2.14.4 - 2024-12-26
24
- * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var Wt=ut.exports,ls;function ni(){return ls||(ls=1,function(e){(function(t,n){var s={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(r,i){for(var c in r)i.hasOwnProperty(c)||Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(r,c));return i},stringify:function(r,i){return r===void 0||typeof r=="function"?r+"":JSON.stringify(r,i||s.replace)},parse:function(r,i){try{return JSON.parse(r,i||s.revive)}catch{return r}},fn:function(r,i){s.storeAPI[r]=i;for(var c in s.apis)s.apis[c][r]=i},get:function(r,i){return r.getItem(i)},set:function(r,i,c){r.setItem(i,c)},remove:function(r,i){r.removeItem(i)},key:function(r,i){return r.key(i)},length:function(r){return r.length},clear:function(r){r.clear()},Store:function(r,i,c){var f=s.inherit(s.storeAPI,function(N,v,y){return arguments.length===0?f.getAll():typeof v=="function"?f.transact(N,v,y):v!==void 0?f.set(N,v,y):typeof N=="string"||typeof N=="number"?f.get(N):typeof N=="function"?f.each(N):N?f.setAll(N,v):f.clear()});f._id=r;try{var p="__store2_test";i.setItem(p,"ok"),f._area=i,i.removeItem(p)}catch{f._area=s.storage("fake")}return f._ns=c||"",s.areas[r]||(s.areas[r]=f._area),s.apis[f._ns+f._id]||(s.apis[f._ns+f._id]=f),f},storeAPI:{area:function(r,i){var c=this[r];return(!c||!c.area)&&(c=s.Store(r,i,this._ns),this[r]||(this[r]=c)),c},namespace:function(r,i,c){if(c=c||this._delim||s.nsdelim,!r)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var f=r,p=this[f];if((!p||!p.namespace)&&(p=s.Store(this._id,this._area,this._ns+f+c),p._delim=c,this[f]||(this[f]=p),!i))for(var N in s.areas)p.area(N,s.areas[N]);return p},isFake:function(r){return r?(this._real=this._area,this._area=s.storage("fake")):r===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(r){return this._area.has?this._area.has(this._in(r)):this._in(r)in this._area},size:function(){return this.keys().length},each:function(r,i){for(var c=0,f=s.length(this._area);c<f;c++){var p=this._out(s.key(this._area,c));if(p!==void 0&&r.call(this,p,this.get(p),i)===!1)break;f>s.length(this._area)&&(f--,c--)}return i||this},keys:function(r){return this.each(function(i,c,f){f.push(i)},r||[])},get:function(r,i){var c=s.get(this._area,this._in(r)),f;return typeof i=="function"&&(f=i,i=null),c!==null?s.parse(c,f):i??c},getAll:function(r){return this.each(function(i,c,f){f[i]=c},r||{})},transact:function(r,i,c){var f=this.get(r,c),p=i(f);return this.set(r,p===void 0?f:p),this},set:function(r,i,c){var f=this.get(r),p;return f!=null&&c===!1?i:(typeof c=="function"&&(p=c,c=void 0),s.set(this._area,this._in(r),s.stringify(i,p),c)||f)},setAll:function(r,i){var c,f;for(var p in r)f=r[p],this.set(p,f,i)!==f&&(c=!0);return c},add:function(r,i,c){var f=this.get(r);if(f instanceof Array)i=f.concat(i);else if(f!==null){var p=typeof f;if(p===typeof i&&p==="object"){for(var N in i)f[N]=i[N];i=f}else i=f+i}return s.set(this._area,this._in(r),s.stringify(i,c)),i},remove:function(r,i){var c=this.get(r,i);return s.remove(this._area,this._in(r)),c},clear:function(){return this._ns?this.each(function(r){s.remove(this._area,this._in(r))},1):s.clear(this._area),this},clearAll:function(){var r=this._area;for(var i in s.areas)s.areas.hasOwnProperty(i)&&(this._area=s.areas[i],this.clear());return this._area=r,this},_in:function(r){return typeof r!="string"&&(r=s.stringify(r)),this._ns?this._ns+r:r},_out:function(r){return this._ns?r&&r.indexOf(this._ns)===0?r.substring(this._ns.length):void 0:r}},storage:function(r){return s.inherit(s.storageAPI,{items:{},name:r})},storageAPI:{length:0,has:function(r){return this.items.hasOwnProperty(r)},key:function(r){var i=0;for(var c in this.items)if(this.has(c)&&r===i++)return c},setItem:function(r,i){this.has(r)||this.length++,this.items[r]=i},removeItem:function(r){this.has(r)&&(delete this.items[r],this.length--)},getItem:function(r){return this.has(r)?this.items[r]:null},clear:function(){for(var r in this.items)this.removeItem(r)}}},a=s.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=s,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",s.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(s.conflict=t.store),t.store=a)})(Wt,Wt&&Wt.define)}(ut)),ut.exports}var si=ni();const Ue=en(si),ri=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},ai=(e,t)=>(t.forEach(n=>{const s=H.find(e,{key:n.key});s?H.merge(s,n):e.push(n)}),e),ft="https://test.ihotel.cn",cs=async e=>Le.get(ft+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:e}}),us=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:s,token:a})=>new Promise(async(r,i)=>{const c=ft+"/i18n-web/kv_translate/kv_translates",f=s?c+"?lastPullDate="+s:c,p=await Le({url:f,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:a}});p&&p.result==0?r(p.retVal):r(p)}),ii=async(e,t)=>Le({url:ft+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),oi=async(e,t)=>Le({url:ft+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),li=async({appCode:e,language:t="zh-CN",token:n})=>new Promise(async(s,a)=>{const r=Ue.namespace(`I18N_${H.toUpper(e)}`),i={appCode:e,language:t,token:n},c=r.get(t);if(!c||!c.lastPullDate){const f=await us(i);f&&(r.set(t,f),s(f.translatesDTOs))}else{const{lastPullDate:f}=c,p=await us({...i,lastPullDate:f});if(p){const N=H.get(c,"translatesDTOs");if(H.isEmpty(p.translatesDTOs))s(N);else{const v=ai(N,p.translatesDTOs),y={lastPullDate:p.lastPullDate,translatesDTOs:v};Ue.namespace(`I18N_${H.toUpper(e)}`).set(t,y,":"),s(v)}}}}),ci={data(){return{isModalVisible:!1,searchText:"",name:"",languages:[],data:[]}},computed:{firstResult(){return this.data.firstResult/this.data.pageSize+1},columns(){let e=[{title:"关键字",fixed:"left",width:200,key:"dictKey"}];return H.map(this.languages,t=>{const n=t.code;return e.push({title:t.name,key:n,width:200,render:(s,{row:a,index:r})=>{const i=a[n];return T.createVNode(T.resolveComponent("Input"),{modelValue:i,onOnChange:c=>{this.data.datas[r][n]=c.target.value}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e,t){const{appCode:n,dictKey:s,page:a,unitCode:r}=e,i=[];return H.forIn(e,(c,f)=>{H.isEqual(c,t[f])||i.push({appCode:n,key:s,page:a,unitCode:r,lang:f,value:c})}),i},async saveData({msg:e=""}){const t=H.differenceWith(this.data.datas,this.initialData.datas,H.isEqual);let n=[];for(let a=0;a<t.length;a++){const r=t[a],i=H.find(this.initialData.datas,{dictKey:r.dictKey}),c=this.findShallowStringDiff(r,i);n=H.concat(n,c)}const s=await oi({appCode:this.appCode,language:this.language,data:n},this.token);s&&s.result===0&&(Q.Message.success(e||s.msg),this.setLanguage(),this.initialData.datas=H.cloneDeep(this.data.datas))},async saveNoEqual(){H.isEqual(this.initialData,this.data)||this.saveData({msg:"已为您自动保存"})},changePage(e){this.saveNoEqual(),this.search({firstResult:(e-1)*this.data.pageSize})},async search(e){const t={appCode:this.appCode,searchBlur:this.searchText,page:this.name?H.toUpper(this.name):"HOME",commaSeparatedLangs:H.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},n=await ii(t,this.token);n&&(this.initialData=H.cloneDeep(n.retVal),this.data=n.retVal)},async init(){const e=await cs(this.token);e&&e.result==0?(this.languages=e.retVal,this.search()):Q.Message.error("获取语言失败,出错了")}}},fs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},ui={class:"extra"},fi={class:"gc_i18n_page"},di={style:{display:"flex"}};function _i(e,t,n,s,a,r){const i=T.resolveComponent("Table"),c=T.resolveComponent("TabPane"),f=T.resolveComponent("Input"),p=T.resolveComponent("Tabs"),N=T.resolveComponent("Page"),v=T.resolveComponent("Button"),y=T.resolveComponent("Modal");return T.openBlock(),T.createBlock(y,{modelValue:a.isModalVisible,"onUpdate:modelValue":t[2]||(t[2]=I=>a.isModalVisible=I),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:T.withCtx(()=>[T.createVNode(p,{type:"card",class:"gc_i18n_tabs"},{extra:T.withCtx(()=>[T.createElementVNode("div",ui,[T.createVNode(f,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:a.searchText,"onUpdate:modelValue":t[0]||(t[0]=I=>a.searchText=I),clearable:"",onOnEnter:r.search,onOnClear:r.search},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:T.withCtx(()=>[T.createVNode(c,{label:"当前页面"},{default:T.withCtx(()=>[T.createVNode(i,{border:"",height:550,columns:r.columns,data:a.data.datas},null,8,["columns","data"])]),_:1})]),_:1}),T.createElementVNode("div",fi,[T.createElementVNode("div",di,[T.createVNode(N,{modelValue:r.firstResult,"onUpdate:modelValue":t[1]||(t[1]=I=>r.firstResult=I),total:a.data.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"]),T.createElementVNode("div",null,"共 "+T.toDisplayString(a.data.totalRows)+" 项数据",1)]),T.createElementVNode("div",null,[T.createVNode(v,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:T.withCtx(()=>t[3]||(t[3]=[T.createTextVNode("关闭")])),_:1},8,["onClick"]),T.createVNode(v,{type:"primary",onClick:r.saveData},{default:T.withCtx(()=>t[4]||(t[4]=[T.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const mi=fs(ci,[["render",_i]]),hi={setup(){const{changeLocal:e,locale:t}=ct();return{changeLocal:e,locale:t}},name:"LangChange",data(){return{languages:[]}},props:{token:String,simple:{type:Boolean,default:!1}},methods:{toggle(){const e=H.find(this.languages,t=>t.code!==this.locale);this.changeLocal(e.code)}},async mounted(){this.language=Ue.get("I18N_LANGUAGE")||navigator.language;const e=await cs(this.token);e&&e.result===0&&(this.languages=e.retVal)}},gi={key:0,class:"gc_i18n_language"},pi={key:0},Ei={key:1,class:"two"};function bi(e,t,n,s,a,r){const i=T.resolveComponent("Option"),c=T.resolveComponent("Select");return a.languages&&a.languages.length>0?(T.openBlock(),T.createElementBlock("div",gi,[a.languages.length===1?(T.openBlock(),T.createElementBlock("div",pi,[T.createElementVNode("span",null,T.toDisplayString(a.languages[0].name),1)])):a.languages.length===2?(T.openBlock(),T.createElementBlock("div",Ei,[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(a.languages,f=>(T.openBlock(),T.createElementBlock("span",{class:T.normalizeClass(["item",f.code==s.locale?"active":"hide"]),onClick:t[0]||(t[0]=(...p)=>r.toggle&&r.toggle(...p))},T.toDisplayString(f.name),3))),256))])):(T.openBlock(),T.createBlock(c,{key:2,modelValue:s.locale,onOnChange:s.changeLocal},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(a.languages,f=>(T.openBlock(),T.createBlock(i,{value:f.code,label:f.name},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(f.name),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue","onOnChange"]))])):T.createCommentVNode("",!0)}const yi=fs(hi,[["render",bi],["__scopeId","data-v-e5d838d1"]]);Q.Message.config({duration:3}),Le.defaults.timeout=6e4,Le.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>(Q.Message.error({content:"请求超时!"}),Promise.resolve(e))),Le.interceptors.response.use(e=>{const{nomsg:t}=e.config.headers;return e.status&&e.status!=200?t||Q.Message.error({content:e.data.message||"未知错误"}):e.data.success=!0,e.data},e=>(e.response?e.response.status==504||e.response.status==404?Q.Message.error({content:"服务器被吃了⊙﹏⊙∥"}):e.response.status==403?Q.Message.error({content:"权限不足,请联系管理员!"}):Q.Message.error({content:`${e.response.status}:${e.response.statusText||e.response.error}`}):e.code==="ECONNABORTED"&&e.message.indexOf("timeout")!==-1?Q.Message.error({content:"请求超时!"}):Q.Message.error({content:e.message||"未知错误!"}),Promise.resolve(e)));class Ni{constructor(t={}){const{router:n,appCode:s,messages:a,token:r}=t;this.token=r||Ue.get("token"),this.appCode=s,this.router=n,this.locale=Ue.get("I18N_LANGUAGE")||navigator.language||"zh-CN",this.modalLoad=!1,this.name="",this.messages=a||{},this.i18n=Ha({locale:"zh-CN",globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const i=this.i18n.global.t;this.i18n.global.t=(c,f,p)=>{var y,I;const N=H.toUpper((I=(y=n==null?void 0:n.currentRoute)==null?void 0:y.value)==null?void 0:I.name),v=i(c);if(v===c&&N){const P=`${N}.${c}`,A=i(P,f);return A!==P?A:p?(console.log(`找不到"${c}",使用"${p}"`),p):c}return v},this.i18n.global.changeLocale=c=>{this.setLanguage(c||this.locale)},this.createModal(),n.beforeEach(async(c,f,p)=>{const{language:N,token:v}=c.query;this.configInstance&&this.configInstance.closeModal(),this.name=c.name,v&&this.setToken(v),await this.setLanguage(N||this.locale),p()}),ps.bind("shift > t",c=>{this.configInstance.openModal({name:this.name})})}setToken(t){this.token=t}async setLanguage(t="zh-CN"){return new Promise(async(n,s)=>{const a=await li({appCode:this.appCode,language:t,token:this.token});if(a){const r=ri(a);this.i18n.global.setLocaleMessage(t,H.assign({},H.get(this.messages,t),r))}this.locale=t,this.i18n.global.locale.value=t,Ue.set("I18N_LANGUAGE",t),n(!0)})}createModal(t){this.modalLoad=!0,this.configInstance=T.createApp(mi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:this.name}).use(Q).mount(document.createElement("div"))}Language(){return{setup:()=>({token:this.token}),components:{LanguageTPL:yi},template:"<LanguageTPL :token='token'></LanguageTPL>"}}install(t,n={}){t.use(Q,{i18n:this.i18n}),t.config.globalProperties.$t=this.i18n.global.t,t.config.globalProperties.$i18n=this.i18n,t.component("Language",this.Language()),t.use(this.i18n)}}return Ni});
22
+ */const ya="11.1.3";function Na(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ce().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ce().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1)}const Y={UNEXPECTED_RETURN_TYPE:Ar,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function se(e,...t){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:va,args:t}:void 0)}const va={[Y.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Y.INVALID_ARGUMENT]:"Invalid argument",[Y.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Y.NOT_INSTALLED]:"Need to install with `app.use` function",[Y.UNEXPECTED_ERROR]:"Unexpected error",[Y.REQUIRED_VALUE]:"Required in value: {0}",[Y.INVALID_VALUE]:"Invalid value",[Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Y.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},kt=ue("__translateVNode"),Dt=ue("__datetimeParts"),Pt=ue("__numberParts"),Ie=ue("__enableEmitter"),Be=ue("__disableEmitter"),qn=ue("__setPluralRules"),Jn=ue("__injectWithOption"),Rt=ue("__dispose"),de={FALLBACK_TO_ROOT:$r,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},Ta={[de.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[de.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[de.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[de.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
23
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ye(e,...t){return et(Ta[e],...t)}function He(e){if(!K(e)||ie(e))return e;for(const t in e)if(ce(e,t))if(!t.includes("."))K(e[t])&&He(e[t]);else{const n=t.split("."),s=n.length-1;let a=e,r=!1;for(let i=0;i<s;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in a||(a[n[i]]=G()),!K(a[n[i]])){process.env.NODE_ENV!=="production"&&Ee(Ye(de.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}if(r||(ie(a)?bn.includes(n[s])||delete e[t]:(a[n[s]]=e[t],delete e[t])),!ie(a)){const i=a[n[s]];K(i)&&He(i)}}return e}function Mt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,i=F(n)?n:X(s)?G():{[e]:G()};if(X(s)&&s.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:g}=c;f?(i[f]=i[f]||G(),st(g,i[f])):st(g,i)}else A(c)&&st(JSON.parse(c),i)}),a==null&&r)for(const c in i)ce(i,c)&&He(i[c]);return i}function Qn(e){return e.type}function Zn(e,t,n){let s=K(t.messages)?t.messages:G();"__i18nGlobal"in n&&(s=Mt(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(K(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(K(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function zn(e){return C.createVNode(C.Text,null,e,0)}const es="__INTLIFY_META__",ts=()=>[],La=()=>!1;let ns=0;function ss(e){return(t,n,s,a)=>e(n,s,C.getCurrentInstance()||void 0,a)}const Ca=()=>{const e=C.getCurrentInstance();let t=null;return e&&(t=Qn(e)[es])?{[es]:t}:null};function wt(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,a=e.flatJson,r=le?C.ref:C.shallowRef;let i=U(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:A(e.locale)?e.locale:We),f=r(t&&i?t.fallbackLocale.value:A(e.fallbackLocale)||X(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),g=r(Mt(c.value,e)),N=r(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),v=r(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=t?t.missingWarn:U(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,O=t?t.fallbackWarn:U(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,k=B(e.missing)?e.missing:null,o=B(e.missing)?ss(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,l=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const _=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,p;p=(()=>{s&&Dn(null);const b={version:ya,locale:c.value,fallbackLocale:f.value,messages:g.value,modifiers:_,pluralRules:E,missing:o===null?void 0:o,missingWarn:y,fallbackWarn:O,fallbackFormat:S,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:l,escapeParameter:u,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=N.value,b.numberFormats=v.value,b.__datetimeFormatters=F(p)?p.__datetimeFormatters:void 0,b.__numberFormatters=F(p)?p.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=F(p)?p.__v_emitter:void 0);const L=Qr(b);return s&&Dn(L),L})(),Ge(p,c.value,f.value);function R(){return[c.value,f.value,g.value,N.value,v.value]}const w=C.computed({get:()=>c.value,set:b=>{p.locale=b,c.value=b}}),H=C.computed({get:()=>f.value,set:b=>{p.fallbackLocale=b,f.value=b,Ge(p,c.value,b)}}),$=C.computed(()=>g.value),_e=C.computed(()=>N.value),me=C.computed(()=>v.value);function Se(){return B(m)?m:null}function re(b){m=b,p.postTranslation=b}function ve(){return k}function Ue(b){b!==null&&(o=ss(b)),k=b,p.missing=o}function Xe(b,L){return b!=="translate"||!L.resolvedMessage}const pe=(b,L,x,Q,De,dt)=>{R();let Ve;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(p.fallbackContext=t?Jr():void 0),Ve=b(p)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(p.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ve)&&Ve===it||x==="translate exists"&&!Ve){const[Pe,Ei]=L();if(process.env.NODE_ENV!=="production"&&t&&A(Pe)&&Xe(x,Ei)&&(P&&(lt(O,Pe)||Rn(y,Pe))&&Ee(Ye(de.FALLBACK_TO_ROOT,{key:Pe,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:vs}=p;vs&&P&&vs.emit("fallback",{type:x,key:Pe,to:"global",groupId:`${x}:${Pe}`})}return t&&P?Q(t):De(Pe)}else{if(dt(Ve))return Ve;throw se(Y.UNEXPECTED_RETURN_TYPE)}};function qe(...b){return pe(L=>Reflect.apply(Yn,null,[L,...b]),()=>At(...b),"translate",L=>Reflect.apply(L.t,L,[...b]),L=>L,L=>A(L))}function Gt(...b){const[L,x,Q]=b;if(Q&&!K(Q))throw se(Y.INVALID_ARGUMENT);return qe(L,x,z({resolvedMessage:!0},Q||{}))}function Bt(...b){return pe(L=>Reflect.apply(Kn,null,[L,...b]),()=>Ot(...b),"datetime format",L=>Reflect.apply(L.d,L,[...b]),()=>ot,L=>A(L))}function Yt(...b){return pe(L=>Reflect.apply(xn,null,[L,...b]),()=>It(...b),"number format",L=>Reflect.apply(L.n,L,[...b]),()=>ot,L=>A(L))}function Ht(b){return b.map(L=>A(L)||Z(L)||U(L)?zn(String(L)):L)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function ft(...b){return pe(L=>{let x;const Q=L;try{Q.processor=jt,x=Reflect.apply(Yn,null,[Q,...b])}finally{Q.processor=null}return x},()=>At(...b),"translate",L=>L[kt](...b),L=>[zn(L)],L=>X(L))}function Xt(...b){return pe(L=>Reflect.apply(xn,null,[L,...b]),()=>It(...b),"number format",L=>L[Pt](...b),ts,L=>A(L)||X(L))}function qt(...b){return pe(L=>Reflect.apply(Kn,null,[L,...b]),()=>Ot(...b),"datetime format",L=>L[Dt](...b),ts,L=>A(L)||X(L))}function Jt(b){E=b,p.pluralRules=E}function Qt(b,L){return pe(()=>{if(!b)return!1;const x=A(L)?L:c.value,Q=ke(x),De=p.messageResolver(Q,b);return ie(De)||oe(De)||A(De)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,L]),La,x=>U(x))}function Je(b){let L=null;const x=vn(p,f.value,c.value);for(let Q=0;Q<x.length;Q++){const De=g.value[x[Q]]||{},dt=p.messageResolver(De,b);if(dt!=null){L=dt;break}}return L}function Qe(b){const L=Je(b);return L??(t?t.tm(b)||{}:{})}function ke(b){return g.value[b]||{}}function Ze(b,L){if(a){const x={[b]:L};for(const Q in x)ce(x,Q)&&He(x[Q]);L=x[b]}g.value[b]=L,p.messages=g.value}function Zt(b,L){g.value[b]=g.value[b]||{};const x={[b]:L};if(a)for(const Q in x)ce(x,Q)&&He(x[Q]);L=x[b],st(L,g.value[b]),p.messages=g.value}function d(b){return N.value[b]||{}}function h(b,L){N.value[b]=L,p.datetimeFormats=N.value,Vn(p,b,L)}function T(b,L){N.value[b]=z(N.value[b]||{},L),p.datetimeFormats=N.value,Vn(p,b,L)}function D(b){return v.value[b]||{}}function q(b,L){v.value[b]=L,p.numberFormats=v.value,Wn(p,b,L)}function J(b,L){v.value[b]=z(v.value[b]||{},L),p.numberFormats=v.value,Wn(p,b,L)}ns++,t&&le&&(C.watch(t.locale,b=>{i&&(c.value=b,p.locale=b,Ge(p,c.value,f.value))}),C.watch(t.fallbackLocale,b=>{i&&(f.value=b,p.fallbackLocale=b,Ge(p,c.value,f.value))}));const V={id:ns,locale:w,fallbackLocale:H,get inheritLocale(){return i},set inheritLocale(b){i=b,b&&t&&(c.value=t.locale.value,f.value=t.fallbackLocale.value,Ge(p,c.value,f.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:$,get modifiers(){return _},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(b){y=b,p.missingWarn=y},get fallbackWarn(){return O},set fallbackWarn(b){O=b,p.fallbackWarn=O},get fallbackRoot(){return P},set fallbackRoot(b){P=b},get fallbackFormat(){return S},set fallbackFormat(b){S=b,p.fallbackFormat=S},get warnHtmlMessage(){return l},set warnHtmlMessage(b){l=b,p.warnHtmlMessage=b},get escapeParameter(){return u},set escapeParameter(b){u=b,p.escapeParameter=b},t:qe,getLocaleMessage:ke,setLocaleMessage:Ze,mergeLocaleMessage:Zt,getPostTranslationHandler:Se,setPostTranslationHandler:re,getMissingHandler:ve,setMissingHandler:Ue,[qn]:Jt};return V.datetimeFormats=_e,V.numberFormats=me,V.rt=Gt,V.te=Qt,V.tm=Qe,V.d=Bt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=T,V.getNumberFormat=D,V.setNumberFormat=q,V.mergeNumberFormat=J,V[Jn]=n,V[kt]=ft,V[Dt]=qt,V[Pt]=Xt,process.env.NODE_ENV!=="production"&&(V[Ie]=b=>{p.__v_emitter=b},V[Be]=()=>{p.__v_emitter=void 0}),V}const rs="vue-i18n: composer properties",Ft={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Oa={"vue-i18n-resource-inspector":"Search for scopes ..."},Ia={"vue-i18n-timeline":16764185};let Kt;async function Aa(e,t){return new Promise((n,s)=>{try{ba({id:"vue-devtools-plugin-vue-i18n",label:Ft["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[rs],app:e},a=>{Kt=a,a.on.visitComponentTree(({componentInstance:i,treeNode:c})=>{Sa(i,c,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:c})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&is(c,i.vnode.el.__VUE_I18N__):is(c,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Ft["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Oa["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ma(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Fa(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[c]=await a.getComponentInstances(i.app);r.set(i.app,c)}a.highlightElement(r.get(i.app))}else{const c=wa(i.nodeId,t);c&&a.highlightElement(c)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ua(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Ft["vue-i18n-timeline"],color:Ia["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),s(!1)}})}function as(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Sa(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const a={label:`i18n (${as(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function is(e,t){const n=rs;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Ut(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Ut(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];B(s)&&"source"in s?t[n]=Ra(s):ie(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:K(s)?t[n]=Ut(s):t[n]=s}),t}const ka={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Da(e){return e.replace(/[<>"&]/g,Pa)}function Pa(e){return ka[e]||e}function Ra(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Da(e.source)}")`:"(?)"}`}}}function Ma(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${as(s)} Scope`})}}function wa(e,t){let n=null;if(e!=="global"){for(const[s,a]of t.__instances.entries())if(a.id.toString()===e){n=s;break}}return n}function os(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Fa(e,t){const n=os(e.nodeId,t);return n&&(e.state=Ka(n)),null}function Ka(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:Ut(e.messages.value)}];t[a]=r;{const i="Datetime formats info",c=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=c;const f="Datetime formats info",g=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=g}return t}function je(e,t){if(Kt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Kt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ua(e,t){const n=os(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&A(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(A(e.state.value)||X(e.state.value)||K(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Va(e){const t=A(e.locale)?e.locale:We,n=A(e.fallbackLocale)||X(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=B(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||Re(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=U(e.silentFallbackWarn)||Re(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=U(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,f=F(e.modifiers)?e.modifiers:{},g=e.pluralizationRules,N=B(e.postTranslation)?e.postTranslation:void 0,v=A(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,O=U(e.sync)?e.sync:!0;let P=e.messages;if(F(e.sharedMessages)){const _=e.sharedMessages;P=Object.keys(_).reduce((p,I)=>{const R=p[I]||(p[I]={});return z(R,_[I]),p},P||{})}const{__i18n:S,__root:k,__injectWithOption:o}=e,m=e.datetimeFormats,l=e.numberFormats,u=e.flatJson;return{locale:t,fallbackLocale:n,messages:P,flatJson:u,datetimeFormats:m,numberFormats:l,missing:s,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:c,modifiers:f,pluralRules:g,postTranslation:N,warnHtmlMessage:v,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:O,__i18n:S,__root:k,__injectWithOption:o}}function Vt(e={}){const t=wt(Va(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=U(a)?!a:a},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=U(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return s.__extender=n,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=a=>{const r=t;r[Ie]&&r[Ie](a)},s.__disableEmitter=()=>{const a=t;a[Be]&&a[Be]()}),s}function xa(e,t,n){return{beforeCreate(){const s=C.getCurrentInstance();if(!s)throw se(Y.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=ls(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Vt(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=ls(e,a);else{this.$i18n=Vt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Zn(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const a=this.__v_emitter=gt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",je)}},unmounted(){const s=C.getCurrentInstance();if(!s)throw se(Y.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",je),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(s),delete this.$i18n}}}function ls(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[qn](t.pluralizationRules||e.pluralizationRules);const n=Mt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const xt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function $a({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>[...s,...a.type===C.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},G())}function cs(){return C.Fragment}const us=C.defineComponent({name:"i18n-t",props:z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Z(e)||!isNaN(e)}},xt),setup(e,t){const{slots:n,attrs:s}=t,a=e.i18n||$t({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(v=>v!=="_"),i=G();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=A(e.plural)?+e.plural:e.plural);const c=$a(t,r),f=a[kt](e.keypath,c,i),g=z(G(),s),N=A(e.tag)||K(e.tag)?e.tag:cs();return C.h(N,g,f)}}});function Wa(e){return X(e)&&!A(e[0])}function fs(e,t,n,s){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let c=G();e.locale&&(i.locale=e.locale),A(e.format)?i.key=e.format:K(e.format)&&(A(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((y,O)=>n.includes(O)?z(G(),y,{[O]:e.format[O]}):y,G()));const f=s(e.value,i,c);let g=[i.key];X(f)?g=f.map((y,O)=>{const P=a[y.type],S=P?P({[y.type]:y.value,index:O,parts:f}):[y.value];return Wa(S)&&(S[0].key=`${y.type}-${O}`),S}):A(f)&&(g=[f]);const N=z(G(),r),v=A(e.tag)||K(e.tag)?e.tag:cs();return C.h(v,N,g)}}const ds=C.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||$t({useScope:e.scope,__useComponent:!0});return fs(e,t,$n,(...s)=>n[Pt](...s))}});function Ga(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Ba(e){const t=i=>{process.env.NODE_ENV!=="production"&&ht(Ye(de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:f}=i;if(!c||!c.$)throw se(Y.UNEXPECTED_ERROR);const g=Ga(e,c.$),N=_s(f);return[Reflect.apply(g.t,g,[...ms(N)]),g]};return{created:(i,c)=>{const[f,g]=t(c);le&&e.global===g&&(i.__i18nWatcher=C.watch(g.locale,()=>{c.instance&&c.instance.$forceUpdate()})),i.__composer=g,i.textContent=f},unmounted:i=>{le&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:c})=>{if(i.__composer){const f=i.__composer,g=_s(c);i.textContent=Reflect.apply(f.t,f,[...ms(g)])}},getSSRProps:i=>{const[c]=t(i);return{textContent:c}}}}function _s(e){if(A(e))return{path:e};if(F(e)){if(!("path"in e))throw se(Y.REQUIRED_VALUE,"path");return e}else throw se(Y.INVALID_VALUE)}function ms(e){const{path:t,locale:n,args:s,choice:a,plural:r}=e,i={},c=s||{};return A(n)&&(i.locale=n),Z(a)&&(i.plural=a),Z(r)&&(i.plural=r),[t,c,i]}function Ya(e,t,...n){const s=F(n[0])?n[0]:{};(U(s.globalInstall)?s.globalInstall:!0)&&([us.name,"I18nT"].forEach(r=>e.component(r,us)),[ds.name,"I18nN"].forEach(r=>e.component(r,ds)),[gs.name,"I18nD"].forEach(r=>e.component(r,gs))),e.directive("t",Ba(t))}const Ha=ue("global-vue-i18n");function ja(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&ht(Ye(de.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,s=new Map,[a,r]=Xa(e,t),i=ue(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(v){return s.get(v)||null}function f(v,y){s.set(v,y)}function g(v){s.delete(v)}const N={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(v,...y){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=N),v.__VUE_I18N_SYMBOL__=i,v.provide(v.__VUE_I18N_SYMBOL__,N),F(y[0])){const S=y[0];N.__composerExtend=S.__composerExtend,N.__vueI18nExtend=S.__vueI18nExtend}let O=null;!t&&n&&(O=ni(v,N.global)),__VUE_I18N_FULL_INSTALL__&&Ya(v,N,...y),__VUE_I18N_LEGACY_API__&&t&&v.mixin(xa(r,r.__composer,N));const P=v.unmount;if(v.unmount=()=>{O&&O(),N.dispose(),P()},process.env.NODE_ENV!=="production"){if(!await Aa(v,N))throw se(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=gt();if(t){const o=r;o.__enableEmitter&&o.__enableEmitter(k)}else{const o=r;o[Ie]&&o[Ie](k)}k.on("*",je)}},get global(){return r},dispose(){a.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:g};return N}function $t(e={}){const t=C.getCurrentInstance();if(t==null)throw se(Y.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(Y.NOT_INSTALLED);const n=qa(t),s=Qa(n),a=Qn(t),r=Ja(e,a);if(r==="global")return Zn(s,e,a),s;if(r==="parent"){let f=Za(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&Ee(Ye(de.NOT_FOUND_PARENT_SCOPE)),f=s),f}const i=n;let c=i.__getInstance(t);if(c==null){const f=z({},e);"__i18n"in a&&(f.__i18n=a.__i18n),s&&(f.__root=s),c=wt(f),i.__composerExtend&&(c[Rt]=i.__composerExtend(c)),ei(i,t,c),i.__setInstance(t,c)}return c}function Xa(e,t){const n=C.effectScope(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Vt(e)):n.run(()=>wt(e));if(s==null)throw se(Y.UNEXPECTED_ERROR);return[n,s]}function qa(e){const t=C.inject(e.isCE?Ha:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?Y.NOT_INSTALLED_WITH_PROVIDE:Y.UNEXPECTED_ERROR);return t}function Ja(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Qa(e){return e.mode==="composition"?e.global:e.global.__composer}function Za(e,t,n=!1){let s=null;const a=t.root;let r=za(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(s=c.__composer,n&&s&&!s[Jn]&&(s=null))}if(s!=null||a===r)break;r=r.parent}return s}function za(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function ei(e,t,n){let s=null;C.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=gt();const a=n;a[Ie]&&a[Ie](s),s.on("*",je)}},t),C.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",je),a[Be]&&a[Be](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[Rt];r&&(r(),delete a[Rt])},t)}const ti=["locale","fallbackLocale","availableLocales"],hs=["t","rt","d","n","tm","te"];function ni(e,t){const n=Object.create(null);return ti.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw se(Y.UNEXPECTED_ERROR);const i=C.isRef(r.value)?{get(){return r.value.value},set(c){r.value.value=c}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,hs.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw se(Y.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,hs.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const gs=C.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xt),setup(e,t){const n=e.i18n||$t({useScope:e.scope,__useComponent:!0});return fs(e,t,Un,(...s)=>n[Dt](...s))}});if(Na(),Yr(Tr),Hr(xr),jr(vn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ce();e.__INTLIFY__=!0,Lr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var ct={exports:{}};/*! store2 - v2.14.4 - 2024-12-26
24
+ * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var Wt=ct.exports,ps;function si(){return ps||(ps=1,function(e){(function(t,n){var s={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(r,i){for(var c in r)i.hasOwnProperty(c)||Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(r,c));return i},stringify:function(r,i){return r===void 0||typeof r=="function"?r+"":JSON.stringify(r,i||s.replace)},parse:function(r,i){try{return JSON.parse(r,i||s.revive)}catch{return r}},fn:function(r,i){s.storeAPI[r]=i;for(var c in s.apis)s.apis[c][r]=i},get:function(r,i){return r.getItem(i)},set:function(r,i,c){r.setItem(i,c)},remove:function(r,i){r.removeItem(i)},key:function(r,i){return r.key(i)},length:function(r){return r.length},clear:function(r){r.clear()},Store:function(r,i,c){var f=s.inherit(s.storeAPI,function(N,v,y){return arguments.length===0?f.getAll():typeof v=="function"?f.transact(N,v,y):v!==void 0?f.set(N,v,y):typeof N=="string"||typeof N=="number"?f.get(N):typeof N=="function"?f.each(N):N?f.setAll(N,v):f.clear()});f._id=r;try{var g="__store2_test";i.setItem(g,"ok"),f._area=i,i.removeItem(g)}catch{f._area=s.storage("fake")}return f._ns=c||"",s.areas[r]||(s.areas[r]=f._area),s.apis[f._ns+f._id]||(s.apis[f._ns+f._id]=f),f},storeAPI:{area:function(r,i){var c=this[r];return(!c||!c.area)&&(c=s.Store(r,i,this._ns),this[r]||(this[r]=c)),c},namespace:function(r,i,c){if(c=c||this._delim||s.nsdelim,!r)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var f=r,g=this[f];if((!g||!g.namespace)&&(g=s.Store(this._id,this._area,this._ns+f+c),g._delim=c,this[f]||(this[f]=g),!i))for(var N in s.areas)g.area(N,s.areas[N]);return g},isFake:function(r){return r?(this._real=this._area,this._area=s.storage("fake")):r===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(r){return this._area.has?this._area.has(this._in(r)):this._in(r)in this._area},size:function(){return this.keys().length},each:function(r,i){for(var c=0,f=s.length(this._area);c<f;c++){var g=this._out(s.key(this._area,c));if(g!==void 0&&r.call(this,g,this.get(g),i)===!1)break;f>s.length(this._area)&&(f--,c--)}return i||this},keys:function(r){return this.each(function(i,c,f){f.push(i)},r||[])},get:function(r,i){var c=s.get(this._area,this._in(r)),f;return typeof i=="function"&&(f=i,i=null),c!==null?s.parse(c,f):i??c},getAll:function(r){return this.each(function(i,c,f){f[i]=c},r||{})},transact:function(r,i,c){var f=this.get(r,c),g=i(f);return this.set(r,g===void 0?f:g),this},set:function(r,i,c){var f=this.get(r),g;return f!=null&&c===!1?i:(typeof c=="function"&&(g=c,c=void 0),s.set(this._area,this._in(r),s.stringify(i,g),c)||f)},setAll:function(r,i){var c,f;for(var g in r)f=r[g],this.set(g,f,i)!==f&&(c=!0);return c},add:function(r,i,c){var f=this.get(r);if(f instanceof Array)i=f.concat(i);else if(f!==null){var g=typeof f;if(g===typeof i&&g==="object"){for(var N in i)f[N]=i[N];i=f}else i=f+i}return s.set(this._area,this._in(r),s.stringify(i,c)),i},remove:function(r,i){var c=this.get(r,i);return s.remove(this._area,this._in(r)),c},clear:function(){return this._ns?this.each(function(r){s.remove(this._area,this._in(r))},1):s.clear(this._area),this},clearAll:function(){var r=this._area;for(var i in s.areas)s.areas.hasOwnProperty(i)&&(this._area=s.areas[i],this.clear());return this._area=r,this},_in:function(r){return typeof r!="string"&&(r=s.stringify(r)),this._ns?this._ns+r:r},_out:function(r){return this._ns?r&&r.indexOf(this._ns)===0?r.substring(this._ns.length):void 0:r}},storage:function(r){return s.inherit(s.storageAPI,{items:{},name:r})},storageAPI:{length:0,has:function(r){return this.items.hasOwnProperty(r)},key:function(r){var i=0;for(var c in this.items)if(this.has(c)&&r===i++)return c},setItem:function(r,i){this.has(r)||this.length++,this.items[r]=i},removeItem:function(r){this.has(r)&&(delete this.items[r],this.length--)},getItem:function(r){return this.has(r)?this.items[r]:null},clear:function(){for(var r in this.items)this.removeItem(r)}}},a=s.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=s,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",s.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(s.conflict=t.store),t.store=a)})(Wt,Wt&&Wt.define)}(ct)),ct.exports}var ri=si();const Ae=en(ri),ai=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},ii=(e,t)=>(t.forEach(n=>{const s=W.find(e,{key:n.key});s?W.merge(s,n):e.push(n)}),e),ut="https://test.ihotel.cn",oi=async e=>Te.get(ut+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:e}}),Es=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:s,token:a})=>new Promise(async(r,i)=>{const c=ut+"/i18n-web/kv_translate/kv_translates",f=s?c+"?lastPullDate="+s:c,g=await Te({url:f,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:a}});g.data&&g.data.result==0?r(g.data.retVal):r(g)}),bs=async(e,t)=>Te({url:ut+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),li=async(e,t)=>Te({url:ut+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),ci=async({appCode:e,language:t="zh-CN",token:n})=>new Promise(async(s,a)=>{const r=Ae.namespace(`I18N_${W.toUpper(e)}`),i={appCode:e,language:t,token:n},c=r.get(t);if(!c||!c.lastPullDate){const f=await Es(i);f&&(r.set(t,f),s(f.translatesDTOs))}else{const{lastPullDate:f}=c,g=await Es({...i,lastPullDate:f});if(g){const N=W.get(c,"translatesDTOs");if(W.isEmpty(g.translatesDTOs))s(N);else{const v=ii(N,g.translatesDTOs),y={lastPullDate:g.lastPullDate,translatesDTOs:v};Ae.namespace(`I18N_${W.toUpper(e)}`).set(t,y,":"),s(v)}}}}),ui={data(){return{isModalVisible:!1,searchText:"",name:"",type:"pageData",languages:[],mySaveData:[],pageData:[],pageDataShow:[],page:{pageSize:10,firstResult:0},data:[]}},computed:{firstResult(){return this.page.firstResult/this.page.pageSize+1},columns(){let e=this.type==="pageData"?[{title:"字典键",width:150,key:"dictKey"},{title:"状态",width:90,key:"icon",fixed:"left",render:(t,{row:n})=>n.localhost?C.createVNode("span",{style:{color:"red"}},[C.createVNode("span",{style:{marginRight:"2px"}},[C.createTextVNode("本地")]),C.createVNode(C.resolveComponent("Tooltip"),{content:"该字段未在翻译数据库中",placement:"top",transfer:!0},{default:()=>[C.createVNode(C.resolveComponent("Icon"),{type:"ios-alert-outline"},null)]})]):C.createVNode("span",{style:{color:"green"}},[C.createTextVNode("正常")])}]:[{title:"页面",fixed:"left",width:150,key:"page",render:(t,{row:n})=>t("span",{},n.page==="common"?"全局":n.page)}];return W.map(this.languages,t=>{const n=t.code;return e.push({title:t.name,fixed:t.name==="中文"?"left":"",key:n,render:(s,{row:a,index:r})=>{const i=a[n];return C.createVNode(C.resolveComponent("Input"),{modelValue:i,onOnChange:c=>{const f=c.target.value;this.type==="pageData"?this.pageData[r][n]=f:this.data[r]={...this.data[r],[n]:f};const{dictKey:g,page:N}=a,v=W.findIndex(this.mySaveData,{key:g,lang:t.code});console.log("page",N),g&&v===-1?this.mySaveData.push({page:N||this.name,key:g,lang:t.code,value:f}):this.mySaveData[v].value=f,W.findIndex(this.mySaveData,{key:g,page:this.name,lang:"zh-CN"})==-1&&a["zh-CN"]===g&&this.mySaveData.push({page:this.name,key:g,lang:"zh-CN",value:W.get(W.find(this.initialData,{dictKey:g}),"zh-CN",g)}),console.log(" this.mySaveData",this.mySaveData)}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String,translationKeys:Array},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e){return W.find(e,["_isEdit",!0])},async saveData({msg:e="保存成功"},t=!0){console.log("this.mySaveData",this.mySaveData);const n=await li({appCode:this.appCode,data:this.mySaveData},this.token);n&&n.data.result===0?(j.Message.success({content:e||n.data.msg}),this.setLanguage(),this.initialData=W.cloneDeep(this.data.datas),t&&this.closeModal(),this.mySaveData=[]):j.Message.error({content:n.data.msg||"保存失败"})},async saveNoEqual(){W.isEmpty(this.mySaveData)||this.saveData({msg:"已为您自动保存"},!1)},changePage(e){this.saveNoEqual(),this.type==="pageData"?this.getPageData(e):this.search({firstResult:(e-1)*this.page.pageSize})},async getPageData(e=1){const t=await bs({appCode:this.appCode,searchBlur:this.searchText,commaSeparatedKeys:this.translationKeys.toString(),commaSeparatedLangs:W.map(this.languages,"code").toString(),firstResult:0,pageSize:99999},this.token);if(t){let n=[];W.forEach(this.translationKeys,s=>{const a=W.find(t.data.retVal.datas,{dictKey:s,page:this.name});if(a)n.push(a);else{const r=W.find(t.data.retVal.datas,{dictKey:s,page:"common"});r?n.push(r):n.push({dictKey:s,page:this.name,"zh-CN":s,localhost:!0})}}),this.pageData=W.cloneDeep(n),this.pageDataShow=n.slice((e-1)*this.page.pageSize,e*this.page.pageSize)}},async search(e,t){const n=await bs({appCode:this.appCode,searchBlur:this.searchText,commaSeparatedLangs:W.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},this.token);n&&(this.initialData=W.cloneDeep(n.data.retVal.datas),this.data=W.cloneDeep(n.data.retVal.datas),this.page={firstResult:n.data.retVal.firstResult,pageSize:n.data.retVal.pageSize,totalRows:n.data.retVal.totalRows})},changeTab(e){this.type=e,e==="data"?this.search():this.getPageData()},async init(){const e=await oi(this.token);e&&e.data.result==0?(this.languages=e.data.retVal,this.getPageData()):j.Message.error("获取语言失败,出错了")}}},fi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},di={key:0,class:"extra"},_i={class:"gc_i18n_page"},mi={style:{display:"flex"}};function hi(e,t,n,s,a,r){const i=C.resolveComponent("Table"),c=C.resolveComponent("TabPane"),f=C.resolveComponent("Input"),g=C.resolveComponent("Tabs"),N=C.resolveComponent("Page"),v=C.resolveComponent("Button"),y=C.resolveComponent("Modal");return C.openBlock(),C.createBlock(y,{modelValue:a.isModalVisible,"onUpdate:modelValue":t[4]||(t[4]=O=>a.isModalVisible=O),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:C.withCtx(()=>[C.createVNode(g,{modelValue:a.type,"onUpdate:modelValue":t[1]||(t[1]=O=>a.type=O),type:"card",class:"gc_i18n_tabs",onOnClick:r.changeTab},{extra:C.withCtx(()=>[a.type==="data"?(C.openBlock(),C.createElementBlock("div",di,[C.createVNode(f,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:a.searchText,"onUpdate:modelValue":t[0]||(t[0]=O=>a.searchText=O),clearable:"",onOnEnter:r.search,onOnClear:r.search},null,8,["modelValue","onOnEnter","onOnClear"])])):C.createCommentVNode("",!0)]),default:C.withCtx(()=>[C.createVNode(c,{name:"pageData",label:"当前页面"},{default:C.withCtx(()=>[C.createVNode(i,{border:"",height:380,columns:r.columns,data:a.pageDataShow},null,8,["columns","data"])]),_:1}),C.createVNode(c,{name:"data",label:"当前应用"},{default:C.withCtx(()=>[C.createVNode(i,{border:"",height:380,columns:r.columns,data:a.data},null,8,["columns","data"])]),_:1})]),_:1},8,["modelValue","onOnClick"]),C.createElementVNode("div",_i,[C.createElementVNode("div",mi,[a.type==="pageData"?(C.openBlock(),C.createBlock(N,{key:0,modelValue:r.firstResult,"onUpdate:modelValue":t[2]||(t[2]=O=>r.firstResult=O),total:n.translationKeys.length,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"])):(C.openBlock(),C.createBlock(N,{key:1,modelValue:r.firstResult,"onUpdate:modelValue":t[3]||(t[3]=O=>r.firstResult=O),total:a.page.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"])),C.createElementVNode("div",null," 共 "+C.toDisplayString(a.type==="pageData"?n.translationKeys.length:a.page.totalRows)+" 项数据 ",1)]),C.createElementVNode("div",null,[C.createVNode(v,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:C.withCtx(()=>t[5]||(t[5]=[C.createTextVNode("关闭")])),_:1},8,["onClick"]),C.createVNode(v,{type:"primary",onClick:r.saveData},{default:C.withCtx(()=>t[6]||(t[6]=[C.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const gi=fi(ui,[["render",hi]]);function ys(e){const t=[],n=/(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;if(e.template){let s;for(;(s=n.exec(e.template))!==null;)t.push(s[2])}if(e.render){const s=e.render.toString();let a;for(;(a=n.exec(s))!==null;)t.push(a[2])}if(e.setup){const s=e.setup.toString();let a;for(;(a=n.exec(s))!==null;)t.push(a[2])}if(e.methods)for(const s in e.methods){const a=e.methods[s].toString();let r;for(;(r=n.exec(a))!==null;)t.push(r[2])}if(e.components)for(const s in e.components){const a=e.components[s];t.push(...ys(a))}return[...new Set(t)]}j.Message.config({duration:3}),Te.defaults.timeout=6e4,Te.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>(j.Message.error({content:"请求超时!"}),Promise.resolve(e))),Te.interceptors.response.use(e=>{const{nomsg:t}=e.config.headers;return e.status&&e.status!=200?t||j.Message.error({content:e.data.message||"未知错误"}):e.data.success=!0,e},e=>(e.response?e.response.status==504||e.response.status==404?j.Message.error({content:"服务器被吃了⊙﹏⊙∥"}):e.response.status==403?j.Message.error({content:"权限不足,请联系管理员!"}):j.Message.error({content:`${e.response.status}:${e.response.statusText||e.response.error}`}):e.code==="ECONNABORTED"&&e.message.indexOf("timeout")!==-1?j.Message.error({content:"请求超时!"}):j.Message.error({content:e.message||"未知错误!"}),Promise.resolve(e)));class pi{constructor(t={}){const{router:n,appCode:s,messages:a,token:r,locale:i}=t;this.token=r||Ae.get("token"),this.appCode=s,this.router=n,this.locale=Ae.get("I18N_LANGUAGE")||navigator.language||"zh-CN",this.modalLoad=!1,this.name="",this.messages=a||{},this.translationKeys=[],this.initRouterGuards(),this.initI18n(t),this.router.isReady().then(async()=>{await this.setLanguage(this.locale),this.createModal()}).catch(c=>{console.error("路由首次加载出错:",c)}),Os.bind("shift > t",c=>{this.configInstance.openModal({name:this.name})}),this.setupLanguageChangeListener()}setupLanguageChangeListener(){"onlanguagechange"in window&&window.addEventListener("languagechange",()=>{const t=navigator.language;t!==this.locale&&this.setLanguage(t)})}initRouterGuards(){this.router.beforeEach(async(t,n,s)=>{const{language:a,token:r}=t.query;if(this.configInstance&&this.configInstance.closeModal(),this.name=t.name,r&&this.setToken(r),t.matched.length>0){let i=t.matched[0].components.default;if(typeof i=="function"&&i.toString().includes("import("))try{i=await i(),i=i.default}catch(c){console.error("加载异步组件时出错:",c),s();return}this.translationKeys=ys(i)}s()})}initI18n(t){this.i18n=ja({locale:this.locale,globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const n=this.i18n.global.t;globalThis.$deepScan=function(s){return s},globalThis.$t=this.i18n.global.t=(s,a,r)=>{var f,g,N;const i=W.toUpper((N=(g=(f=this.router)==null?void 0:f.currentRoute)==null?void 0:g.value)==null?void 0:N.name),c=n(s,a);if((c===s||c===a)&&i){const v=`${i}.${s}`,y=n(v,a);if(y!==v&&y!==a)return y;{const O=`common.${s}`,P=n(O,a);return P!==O?P:r?(console.log(`找不到"${s}",使用"${r}"`),r):s}}return c},globalThis.$$t=(s,a,r)=>{const i=Ae.namespace(`I18N_${W.toUpper(this.appCode)}`),c=W.get(i.get(this.locale),"translatesDTOs"),f=W.find(c,g=>`common.${s}`===g.key);return W.get(f,"value",a)},globalThis.$changeLocale=this.changeLocale=this.i18n.global.changeLocale=async s=>{await this.setLanguage(s||this.locale)}}setToken(t){this.token=t}getLanguage(t){return Ae.get("I18N_TEST.zh-TW")}async setLanguage(t){return new Promise(async(n,s)=>{const a=await ci({appCode:this.appCode,language:t||this.locale,token:this.token});if(a){const r=ai(a),i=W.assign({},W.get(this.messages,t),r);this.i18n.global.setLocaleMessage(t,i)}this.locale=t,this.i18n.global.locale.value=t,Ae.set("I18N_LANGUAGE",t),n(!0)})}createModal(t){this.modalLoad=!0,this.configInstance=C.createApp(gi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:this.name,translationKeys:this.translationKeys}).use(j).mount(document.createElement("div"))}install(t,n={}){t.use(j,{i18n:this.i18n}),t.use(this.i18n)}}return pi});