gc_i18n 1.0.5 → 1.0.7

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,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):(Q=typeof globalThis<"u"?globalThis:Q||self,Q.gc_i18n=C(Q.iview,Q.Vue,Q._,Q.Axios))})(this,function(Q,C,H,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:{}},mr=Ze.exports,tn;function hr(){return tn||(tn=1,function(e,t){(function(n,r){e.exports=r()})(mr,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 r(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 s(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){r(this,o),this.sourceStr=m,this.subCombos=o.parseComboStr(m),this.keyNames=this.subCombos.reduce(function(l,u){return l.concat(u)},[])}return s(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),O=0;O<E.length;O+=1){var R=E[O],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 O=l[p];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(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 I=function(){function o(m){r(this,o),this.localeName=m,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return s(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 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,_){r(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 s(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 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 O=this._listeners[p],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(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 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($){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 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,p){return(p.keyCombo?p.keyCombo.keyNames.length:0)-(E.keyCombo?E.keyCombo.keyNames.length:0)}).forEach(function(E){for(var p=-1,O=0;O<u.length;O+=1)(u[O]===null&&E.keyCombo===null||u[O]!==null&&u[O].isEqual(E.keyCombo))&&(p=O);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),O=this._getGroupedListeners(),R=function($){var de=O[$],_e=de[0].keyCombo;if(_e===null||_e.check(p)&&E.some(function(je){return _e.keyNames.includes(je)})){for(var Ae=0;Ae<de.length;Ae+=1){var se=de[Ae];!se.executingHandler&&se.pressHandler&&!se.preventRepeat&&(se.executingHandler=!0,se.pressHandler.call(u,l),se.executingHandler=!1,(_||se.preventRepeatByDefault)&&(se.preventRepeat=!0,_=!1)),u._appliedListeners.indexOf(se)===-1&&u._appliedListeners.push(se)}if(_e)for(var ve=0;ve<_e.keyNames.length;ve+=1){var Ke=p.indexOf(_e.keyNames[ve]);Ke!==-1&&(p.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 k(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,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(p,["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",k),S.Keyboard=P,S.Locale=I,S.KeyCombo=y,S})}(Ze)),Ze.exports}var pr=hr();const gr=en(pr);/*!
1
+ (function(J,L){typeof exports=="object"&&typeof module<"u"?module.exports=L(require("view-ui-plus"),require("vue"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["view-ui-plus","vue","lodash-es","axios"],L):(J=typeof globalThis<"u"?globalThis:J||self,J.gc_i18n=L(J.iview,J.Vue,J._,J.Axios))})(this,function(J,L,Q,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:{}},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(je){return _e.keyNames.includes(je)})){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
3
  * shared v11.1.1
4
4
  * (c) 2025 kazuya kawaguchi
5
5
  * Released under the MIT License.
6
- */const oe=typeof window<"u";let ae,Le;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)},Le=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Er=/\{([0-9a-zA-Z]+)\}/g;function ze(e,...t){return t.length===1&&K(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Er,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const ce=(e,t=!1)=>t?Symbol.for(e):Symbol(e),br=(e,t,n)=>yr({l:e,k:t,s:n}),yr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Z=e=>typeof e=="number"&&isFinite(e),Nr=e=>dt(e)==="[object Date]",Pe=e=>dt(e)==="[object RegExp]",et=e=>F(e)&&Object.keys(e).length===0,z=Object.assign,vr=Object.create,W=(e=null)=>vr(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 rn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Tr=Object.prototype.hasOwnProperty;function le(e,t){return Tr.call(e,t)}const j=Array.isArray,G=e=>typeof e=="function",A=e=>typeof e=="string",U=e=>typeof e=="boolean",K=e=>e!==null&&typeof e=="object",Lr=e=>K(e)&&G(e.then)&&G(e.catch),sn=Object.prototype.toString,dt=e=>sn.call(e),F=e=>dt(e)==="[object Object]",Cr=e=>e==null?"":j(e)||F(e)&&e.toString===sn?JSON.stringify(e,null,2):String(e);function _t(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const an=2;function Or(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let i=0;i<r.length;i++)if(a+=r[i].length+1,a>=t){for(let c=i-an;c<=i+an||n>a;c++){if(c<0||c>=r.length)continue;const f=c+1;s.push(`${f}${" ".repeat(3-String(f).length)}| ${r[c]}`);const g=r[c].length;if(c===i){const N=t-(a-g)+1,v=Math.max(1,n>a?g-N:n-t);s.push(" | "+" ".repeat(N)+"^".repeat(v))}else if(c>i){if(n>a){const N=Math.max(Math.min(n-a,g),1);s.push(" | "+"^".repeat(N))}a+=g+1}}break}return s.join(`
7
- `)}function ge(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const on={};function mt(e){on[e]||(on[e]=!0,ge(e))}function ht(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const tt=e=>!K(e)||j(e);function nt(e,t){if(tt(e)||tt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(K(r[s])&&!K(a[s])&&(a[s]=Array.isArray(r[s])?[]:W()),tt(a[s])||tt(r[s])?a[s]=r[s]:n.push({src:r[s],des:a[s]}))})}}/*!
6
+ */const oe=typeof window<"u";let ae,Le;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)},Le=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Es=/\{([0-9a-zA-Z]+)\}/g;function ze(e,...t){return t.length===1&&K(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]",et=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 Ts=Object.prototype.hasOwnProperty;function le(e,t){return Ts.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",k=e=>typeof e=="string",U=e=>typeof e=="boolean",K=e=>e!==null&&typeof e=="object",Ls=e=>K(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?"":H(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 tt=e=>!K(e)||H(e);function nt(e,t){if(tt(e)||tt(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])?[]:W()),tt(a[r])||tt(s[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]}))})}}/*!
8
8
  * message-compiler v11.1.1
9
9
  * (c) 2025 kazuya kawaguchi
10
10
  * Released under the MIT License.
11
- */function Ir(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},Ar=17,kr={[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:r,messages:a,args:s}=n,i=process.env.NODE_ENV!=="production"?ze((a||kr)[e]||"",...s||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=r,c}function Sr(e){throw e}const Dr=/<\/?[\w\s="/.':;#-\/]+>/,Pr=e=>Dr.test(e),me=" ",Rr="\r",te=`
12
- `,Mr="\u2028",wr="\u2029";function Fr(e){const t=e;let n=0,r=1,a=1,s=0;const i=p=>t[p]===Rr&&t[p+1]===te,c=p=>t[p]===te,f=p=>t[p]===wr,g=p=>t[p]===Mr,N=p=>i(p)||c(p)||f(p)||g(p),v=()=>n,y=()=>r,I=()=>a,P=()=>s,k=p=>i(p)||f(p)||g(p)?te:t[p],S=()=>k(n),o=()=>k(n+s);function m(){return s=0,N(n)&&(r++,a=0),i(n)&&n++,n++,a++,t[n]}function l(){return i(n+s)&&s++,s++,t[n+s]}function u(){n=0,r=1,a=1,s=0}function _(p=0){s=p}function E(){const p=n+s;for(;p!==n;)m();s=0}return{index:v,line:y,column:I,peekOffset:P,charAt:k,currentChar:S,currentPeek:o,next:m,peek:l,reset:u,resetPeek:_,skipToPeek:E}}const Ee=void 0,Kr=".",ln="'",Ur="tokenizer";function Vr(e,t={}){const n=t.location!==!1,r=Fr(e),a=()=>r.index(),s=()=>Ir(r.line(),r.column(),r.index()),i=s(),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 X=g();if(h.column+=T,h.offset+=T,N){const q=n?pt(X.startLoc,h):null,V=Re(d,q,{domain:Ur,args:D});N(V)}}function y(d,h,T){d.endLoc=s(),d.currentType=h;const D={type:h};return n&&(D.loc=pt(d.startLoc,d.endLoc)),T!=null&&(D.value=T),D}const I=d=>y(d,13);function P(d,h){return d.currentChar()===h?(d.next(),h):(v(M.EXPECTED_TOKEN,s(),0,h),"")}function k(d){let h="";for(;d.currentPeek()===me||d.currentPeek()===te;)h+=d.currentPeek(),d.peek();return h}function S(d){const h=k(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:T}=h;if(T!==2)return!1;k(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:T}=h;if(T!==2)return!1;k(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),X=m(D);return d.resetPeek(),X}function _(d,h){const{currentType:T}=h;if(T!==2)return!1;k(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:T}=h;if(T!==7)return!1;k(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function p(d,h){const{currentType:T}=h;if(T!==8)return!1;k(d);const D=o(d.currentPeek());return d.resetPeek(),D}function O(d,h){const{currentType:T}=h;if(!(T===7||T===11))return!1;k(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 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){k(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function Y(d,h=!0){const T=(X=!1,q="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?X:V==="|"?!(q===me||q===te):V===me?(d.peek(),T(!0,me)):V===te?(d.peek(),T(!0,te)):!0},D=T();return h&&d.resetPeek(),D}function $(d,h){const T=d.currentChar();return T===Ee?Ee:h(T)?(d.next(),T):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 se(d){return $(d,Ae)}function ve(d){const h=d.charCodeAt(0);return h>=48&&h<=57}function Ke(d){return $(d,ve)}function je(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function pe(d){return $(d,je)}function Xe(d){let h="",T="";for(;h=Ke(d);)T+=h;return T}function Gt(d){let h="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===me||T===te)if(Y(d))h+=T,d.next();else{if(w(d))break;h+=T,d.next()}else h+=T,d.next()}return h}function Bt(d){S(d);let h="",T="";for(;h=se(d);)T+=h;return d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,s(),0),T}function Yt(d){S(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${Xe(d)}`):h+=Xe(d),d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,s(),0),h}function Ht(d){return d!==ln&&d!==te}function dr(d){S(d),P(d,"'");let h="",T="";for(;h=$(d,Ht);)h==="\\"?T+=jt(d):T+=h;const D=d.currentChar();return D===te||D===Ee?(v(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),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 ut(d,h,4);case"U":return ut(d,h,6);default:return v(M.UNKNOWN_ESCAPE_SEQUENCE,s(),0,h),""}}function ut(d,h,T){P(d,h);let D="";for(let X=0;X<T;X++){const q=pe(d);if(!q){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),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="",T="";for(;h=$(d,Xt);)T+=h;return T}function Jt(d){let h="",T="";for(;h=_e(d);)T+=h;return T}function Qt(d){const h=T=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===me?T:(T+=D,d.next(),h(T))};return h("")}function qe(d){S(d);const h=P(d,"|");return S(d),h}function Je(d,h){let T=null;switch(d.currentChar()){case"{":return h.braceNest>=1&&v(M.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),d.next(),T=y(h,2,"{"),S(d),h.braceNest++,T;case"}":return h.braceNest>0&&h.currentType===2&&v(M.EMPTY_PLACEHOLDER,s(),0),d.next(),T=y(h,3,"}"),h.braceNest--,h.braceNest>0&&S(d),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),T;case"@":return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,s(),0),T=ke(d,h)||I(h),h.braceNest=0,T;default:{let X=!0,q=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,s(),0),T=y(h,1,qe(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,s(),0),h.braceNest=0,Qe(d,h);if(X=l(d,h))return T=y(h,4,Bt(d)),S(d),T;if(q=u(d,h))return T=y(h,5,Yt(d)),S(d),T;if(V=_(d,h))return T=y(h,6,dr(d)),S(d),T;if(!X&&!q&&!V)return T=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,T.value),S(d),T;break}}return T}function ke(d,h){const{currentType:T}=h;let D=null;const X=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(X===te||X===me)&&v(M.INVALID_LINKED_FORMAT,s(),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,qe(d)),h.braceNest=0,h.inLinked=!1,D):E(d,h)||O(d,h)?(S(d),ke(d,h)):p(d,h)?(S(d),y(h,11,Jt(d))):R(d,h)?(S(d),X==="{"?Je(d,h)||D:y(h,10,Qt(d))):(T===7&&v(M.INVALID_LINKED_FORMAT,s(),0),h.braceNest=0,h.inLinked=!1,Qe(d,h))}}function Qe(d,h){let T={type:13};if(h.braceNest>0)return Je(d,h)||I(h);if(h.inLinked)return ke(d,h)||I(h);switch(d.currentChar()){case"{":return Je(d,h)||I(h);case"}":return v(M.UNBALANCED_CLOSING_BRACE,s(),0),d.next(),y(h,3,"}");case"@":return ke(d,h)||I(h);default:{if(w(d))return T=y(h,1,qe(d)),h.braceNest=0,h.inLinked=!1,T;if(Y(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=s(),r.currentChar()===Ee?y(f,13):Qe(r,f)}return{nextToken:Zt,currentOffset:a,currentPosition:s,context:g}}const xr="parser",$r=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Wr(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Gr(e={}){const t=e.location!==!1,{onError:n}=e;function r(o,m,l,u,..._){const E=o.currentPosition();if(E.offset+=u,E.column+=u,n){const p=t?pt(l,E):null,O=Re(m,p,{domain:xr,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 s(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,s(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(),s(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(),s(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($r,Wr),o.nextToken(),s(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?(r(o,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,l.lastStartLoc,0),E.value="",s(E,u,_),{nextConsumeToken:m,node:E}):(m.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,ue(m)),E.value=m.value||"",s(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,s(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&&r(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&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=v(o,u.value||"");break;case 4:u.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=f(o,u.value||"");break;case 5:u.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=c(o,u.value||"");break;case 6:u.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=g(o,u.value||"");break;default:{r(o,M.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const _=o.context(),E=a(7,_.offset,_.startLoc);return E.value="",s(E,_.offset,_.startLoc),l.key=E,s(l,_.offset,_.startLoc),{nextConsumeToken:u,node:l}}}return s(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&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(i(o,R.value||""));break;case 5:R.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(c(o,R.value||""));break;case 4:R.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(f(o,R.value||""));break;case 6:R.value==null&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(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(),O=m.currentType===1?m.lastEndLoc:o.currentPosition();return s(_,p,O),_}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 O=I(o);E||(E=O.items.length===0),p.cases.push(O)}while(_.currentType!==13);return E&&r(o,M.MUST_HAVE_MESSAGES_IN_PLURAL,l,0),s(p,o.currentOffset(),o.currentPosition()),p}function k(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=Vr(o,z({},e)),l=m.context(),u=a(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=o),u.body=k(m),e.onCacheKey&&(u.cacheKey=e.onCacheKey(o)),l.currentType!==13&&r(m,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,o[l.offset]||""),s(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 Br(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function cn(e,t){for(let n=0;n<e.length;n++)gt(e[n],t)}function gt(e,t){switch(e.type){case 1:cn(e.cases,t),t.helper("plural");break;case 2:cn(e.items,t);break;case 6:{gt(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 Yr(e,t={}){const n=Br(e);n.helper("normalize"),e.body&&gt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Hr(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=_t(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const jr="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 r=0;r<n.length;r++)Me(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Me(n[r]);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:jr,args:[e.type]})}delete e.type}const Xr="parser";function qr(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,s=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(k,S){i.code+=k}function g(k,S=!0){const o=S?r:"";f(a?o+" ".repeat(k):o)}function N(k=!0){const S=++i.indentLevel;k&&g(S)}function v(k=!0){const S=--i.indentLevel;k&&g(S)}function y(){g(i.indentLevel)}return{context:c,push:f,indent:N,deindent:v,newline:y,helper:k=>`_${k}`,needIndent:()=>i.needIndent}}function Jr(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 Qr(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(we(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Zr(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s<a&&(we(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function zr(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:zr(e,t);break;case 1:Zr(e,t);break;case 2:Qr(e,t);break;case 6:Jr(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:Xr,args:[t.type]})}}const es=(e,t={})=>{const n=A(t.mode)?t.mode:"normal",r=A(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
13
- `,s=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=qr(e,{filename:r,breakLineCode:a,needIndent:s});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),i.length>0&&(c.push(`const { ${_t(i.map(N=>`${N}: _${N}`),", ")} } = ctx`),c.newline()),c.push("return "),we(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:f,map:g}=c.context();return{ast:e,code:f,map:g?g.toJSON():void 0}};function ts(e,t={}){const n=z({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,c=Gr(n).parse(e);return r?(s&&Hr(c),a&&Me(c),{ast:c,code:""}):(Yr(c,n),es(c,n))}/*!
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"?ze((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,Ks=".",ln="'",Us="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,T,...D){const j=p();if(h.column+=T,h.offset+=T,N){const X=n?Et(j.startLoc,h):null,V=Re(d,X,{domain:Us,args:D});N(V)}}function y(d,h,T){d.endLoc=r(),d.currentType=h;const D={type:h};return n&&(D.loc=Et(d.startLoc,d.endLoc)),T!=null&&(D.value=T),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:T}=h;if(T!==2)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:T}=h;if(T!==2)return!1;A(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),j=m(D);return d.resetPeek(),j}function _(d,h){const{currentType:T}=h;if(T!==2)return!1;A(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:T}=h;if(T!==7)return!1;A(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function g(d,h){const{currentType:T}=h;if(T!==8)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function O(d,h){const{currentType:T}=h;if(!(T===7||T===11))return!1;A(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 X=d.currentPeek();return X==="{"?o(d.peek()):X==="@"||X==="|"||X===":"||X==="."||X===me||!X?!1:X===te?(d.peek(),D()):Y(d,!1)},j=D();return d.resetPeek(),j}function w(d){A(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function Y(d,h=!0){const T=(j=!1,X="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?j:V==="|"?!(X===me||X===te):V===me?(d.peek(),T(!0,me)):V===te?(d.peek(),T(!0,te)):!0},D=T();return h&&d.resetPeek(),D}function $(d,h){const T=d.currentChar();return T===Ee?Ee:h(T)?(d.next(),T):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 je(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function ge(d){return $(d,je)}function Xe(d){let h="",T="";for(;h=Ke(d);)T+=h;return T}function Bt(d){let h="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===me||T===te)if(Y(d))h+=T,d.next();else{if(w(d))break;h+=T,d.next()}else h+=T,d.next()}return h}function Gt(d){S(d);let h="",T="";for(;h=re(d);)T+=h;return d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T}function Yt(d){S(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${Xe(d)}`):h+=Xe(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="",T="";for(;h=$(d,Ht);)h==="\\"?T+=jt(d):T+=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,"'")),T):(P(d,"'"),T)}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,T){P(d,h);let D="";for(let j=0;j<T;j++){const X=ge(d);if(!X){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${h}${D}${d.currentChar()}`);break}D+=X}return`\\${h}${D}`}function Xt(d){return d!=="{"&&d!=="}"&&d!==me&&d!==te}function qt(d){S(d);let h="",T="";for(;h=$(d,Xt);)T+=h;return T}function Jt(d){let h="",T="";for(;h=_e(d);)T+=h;return T}function Qt(d){const h=T=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===me?T:(T+=D,d.next(),h(T))};return h("")}function qe(d){S(d);const h=P(d,"|");return S(d),h}function Je(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,"{"),S(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&&S(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)||I(h),h.braceNest=0,T;default:{let j=!0,X=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T=y(h,1,qe(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,Qe(d,h);if(j=l(d,h))return T=y(h,4,Gt(d)),S(d),T;if(X=u(d,h))return T=y(h,5,Yt(d)),S(d),T;if(V=_(d,h))return T=y(h,6,ds(d)),S(d),T;if(!j&&!X&&!V)return T=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,T.value),S(d),T;break}}return T}function ke(d,h){const{currentType:T}=h;let D=null;const j=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(j===te||j===me)&&v(M.INVALID_LINKED_FORMAT,r(),0),j){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,qe(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),j==="{"?Je(d,h)||D:y(h,10,Qt(d))):(T===7&&v(M.INVALID_LINKED_FORMAT,r(),0),h.braceNest=0,h.inLinked=!1,Qe(d,h))}}function Qe(d,h){let T={type:13};if(h.braceNest>0)return Je(d,h)||I(h);if(h.inLinked)return ke(d,h)||I(h);switch(d.currentChar()){case"{":return Je(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 T=y(h,1,qe(d)),h.braceNest=0,h.inLinked=!1,T;if(Y(d))return y(h,0,Bt(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()===Ee?y(f,13):Qe(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
14
  * core-base v11.1.1
15
15
  * (c) 2025 kazuya kawaguchi
16
16
  * Released under the MIT License.
17
- */function ns(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Et(e){return n=>rs(n,e)}function rs(e,t){const n=as(t);if(n==null)throw Ve(0);if(yt(n)===1){const s=os(n);return e.plural(s.reduce((i,c)=>[...i,fn(e,c)],[]))}else return fn(e,n)}const ss=["b","body"];function as(e){return be(e,ss)}const is=["c","cases"];function os(e){return be(e,is,[])}function fn(e,t){const n=cs(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=fs(t).reduce((a,s)=>[...a,bt(e,s)],[]);return e.normalize(r)}}const ls=["s","static"];function cs(e){return be(e,ls)}const us=["i","items"];function fs(e){return be(e,us,[])}function bt(e,t){const n=yt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const r=t;if(le(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(le(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ve(n)}case 5:{const r=t;if(le(r,"i")&&Z(r.i))return e.interpolate(e.list(r.i));if(le(r,"index")&&Z(r.index))return e.interpolate(e.list(r.index));throw Ve(n)}case 6:{const r=t,a=hs(r),s=gs(r);return e.linked(bt(e,s),a?bt(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 ds=["t","type"];function yt(e){return be(e,ds)}const _s=["v","value"];function rt(e,t){const n=be(e,_s);if(n)return n;throw Ve(t)}const ms=["m","modifier"];function hs(e){return be(e,ms)}const ps=["k","key"];function gs(e){const t=be(e,ps);if(t)return t;throw Ve(6)}function be(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(le(e,a)&&e[a]!=null)return e[a]}return n}function Ve(e){return new Error(`unhandled node type: ${e}`)}const Es="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function bs(e,t){t&&Pr(e)&&ge(ze(Es,{source:e}))}const ys=e=>e;let st=W();function ye(e){return K(e)&&yt(e)===0&&(le(e,"b")||le(e,"body"))}function Ns(e,t={}){let n=!1;const r=t.onError||Sr;return t.onError=a=>{n=!0,r(a)},{...ts(e,t),detectError:n}}function vs(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&A(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&bs(e,n);const a=(t.onCacheKey||ys)(e),s=st[a];if(s)return s;const{ast:i,detectError:c}=Ns(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=Et(i);return c?f:st[a]=f}else{if(process.env.NODE_ENV!=="production"&&!ye(e))return ge(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=st[n];return r||(st[n]=Et(e))}else return Et(e)}}let xe=null;function Ts(e){xe=e}function Ls(e,t,n){xe&&xe.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cs=Os("function:translate");function Os(e){return t=>xe&&xe.emit(e,t)}const ee={INVALID_ARGUMENT:Ar,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},Is=24;function he(e){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:As}:void 0)}const As={[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 Nt(e,t){return t.locale!=null?dn(t.locale):dn(e.locale)}let vt;function dn(e){if(A(e))return e;if(G(e)){if(e.resolvedOnce&&vt!=null)return vt;if(e.constructor.name==="Function"){const t=e();if(Lr(t))throw he(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return vt=t}else throw he(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw he(ee.NOT_SUPPORT_LOCALE_TYPE)}function ks(e,t,n){return[...new Set([n,...j(t)?t:K(t)?Object.keys(t):A(t)?[t]:[n]])]}function _n(e,t,n){const r=A(n)?n:$e,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;j(i);)i=mn(s,i,t);const c=j(t)||!F(t)?t:t.default?t.default:null;i=A(c)?[c]:c,j(i)&&mn(s,i,!1),a.__localeChainCache.set(r,s)}return s}function mn(e,t,n){let r=!0;for(let a=0;a<t.length&&U(r);a++){const s=t[a];A(s)&&(r=Ss(e,t[a],n))}return r}function Ss(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=Ds(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Ds(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(j(n)||F(n))&&n[a]&&(r=n[a])}return r}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 Ps=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rs(e){return Ps.test(e)}function Ms(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 ws(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 Fs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rs(t)?Ms(t):"*"+t}function Ks(e){const t=[];let n=-1,r=0,a=0,s,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--,r=4,y[0]();else{if(a=0,i===void 0||(i=Fs(i),i===!1))return!1;y[1]()}};function I(){const P=e[n+1];if(r===5&&P==="'"||r===6&&P==='"')return n++,c="\\"+P,y[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(f=ws(s),v=Ne[r],g=v[f]||v.l||8,g===8||(r=g[0],g[1]!==void 0&&(N=y[g[1]],N&&(c=s,N()===!1))))return;if(r===7)return t}}const hn=new Map;function Us(e,t){return K(e)?e[t]:null}function Vs(e,t){if(!K(e))return null;let n=hn.get(t);if(n||(n=Ks(t),n&&hn.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const i=a[n[s]];if(i===void 0||G(a))return null;a=i,s++}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},xs=8,$s={[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 ze($s[e],...t)}const Ws="11.1.1",at=-1,$e="en-US",it="",pn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Gs(){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)?pn(e):t==="vnode"&&K(e)&&"__v_isVNode"in e?pn(e.children):e}}let gn;function Bs(e){gn=e}let En;function Ys(e){En=e}let bn;function Hs(e){bn=e}let yn=null;const js=e=>{yn=e},Xs=()=>yn;let Nn=null;const vn=e=>{Nn=e},qs=()=>Nn;let Tn=0;function Js(e={}){const t=G(e.onWarn)?e.onWarn:ge,n=A(e.version)?e.version:Ws,r=A(e.locale)||G(e.locale)?e.locale:$e,a=G(r)?$e:r,s=j(e.fallbackLocale)||F(e.fallbackLocale)||A(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=F(e.messages)?e.messages:Tt(a),c=F(e.datetimeFormats)?e.datetimeFormats:Tt(a),f=F(e.numberFormats)?e.numberFormats:Tt(a),g=z(W(),e.modifiers,Gs()),N=e.pluralRules||W(),v=G(e.missing)?e.missing:null,y=U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=U(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,k=!!e.unresolving,S=G(e.postTranslation)?e.postTranslation:null,o=F(e.processor)?e.processor:null,m=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,l=!!e.escapeParameter,u=G(e.messageCompiler)?e.messageCompiler:gn;process.env.NODE_ENV!=="production"&&G(e.messageCompiler)&&mt(Oe(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=G(e.messageResolver)?e.messageResolver:En||Us,E=G(e.localeFallbacker)?e.localeFallbacker:bn||ks,p=K(e.fallbackContext)?e.fallbackContext:void 0,O=e,R=K(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,w=K(O.__numberFormatters)?O.__numberFormatters:new Map,Y=K(O.__meta)?O.__meta:{};Tn++;const $={version:n,cid:Tn,locale:r,fallbackLocale:s,messages:i,modifiers:g,pluralRules:N,missing:v,missingWarn:y,fallbackWarn:I,fallbackFormat:P,unresolving:k,postTranslation:S,processor:o,warnHtmlMessage:m,escapeParameter:l,messageCompiler:u,messageResolver:_,localeFallbacker:E,fallbackContext:p,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__)&&Ls($,n,Y),$}const Tt=e=>({[e]:W()});function ot(e,t){return e instanceof RegExp?e.test(t):e}function Ln(e,t){return e instanceof RegExp?e.test(t):e}function Lt(e,t,n,r,a){const{missing:s,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(s!==null){const c=s(e,n,t,a);return A(c)?c:t}else return process.env.NODE_ENV!=="production"&&Ln(r,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function We(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Cn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qs(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Cn(e,t[r]))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:r,fallbackLocale:a,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.dateTimeFormat)return s(Oe(ne.CANNOT_FORMAT_DATE)),it;const[f,g,N,v]=Ct(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,k=Nt(e,N),S=i(e,a,k);if(!A(f)||f==="")return new Intl.DateTimeFormat(k,v).format(g);let o={},m,l=null,u=k,_=null;const E="datetime format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&k!==m&&ot(I,f)&&s(Oe(ne.FALLBACK_TO_DATE_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&k!==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;Lt(e,f,m,y,E),u=_}if(!F(l)||!A(m))return r?at:f;let p=`${m}__${f}`;et(v)||(p=`${p}__${JSON.stringify(v)}`);let O=c.get(p);return O||(O=new Intl.DateTimeFormat(m,z({},l,v)),c.set(p,O)),P?O.formatToParts(g):O.format(g)}const kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ct(...e){const[t,n,r,a]=e,s=W();let i=W(),c;if(A(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw he(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 he(ee.INVALID_ISO_DATE_ARGUMENT)}}else if(Nr(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 A(n)?s.key=n:F(n)&&Object.keys(n).forEach(f=>{kn.includes(f)?i[f]=n[f]:s[f]=n[f]}),A(r)?s.locale=r:F(r)&&(i=r),F(a)&&(i=a),[s.key||"",c,s,i]}function Sn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Dn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.numberFormat)return s(Oe(ne.CANNOT_FORMAT_NUMBER)),it;const[f,g,N,v]=Ot(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,k=Nt(e,N),S=i(e,a,k);if(!A(f)||f==="")return new Intl.NumberFormat(k,v).format(g);let o={},m,l=null,u=k,_=null;const E="number format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&k!==m&&ot(I,f)&&s(Oe(ne.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&k!==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;Lt(e,f,m,y,E),u=_}if(!F(l)||!A(m))return r?at:f;let p=`${m}__${f}`;et(v)||(p=`${p}__${JSON.stringify(v)}`);let O=c.get(p);return O||(O=new Intl.NumberFormat(m,z({},l,v)),c.set(p,O)),P?O.formatToParts(g):O.format(g)}const Pn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ot(...e){const[t,n,r,a]=e,s=W();let i=W();if(!Z(t))throw he(ee.INVALID_ARGUMENT);const c=t;return A(n)?s.key=n:F(n)&&Object.keys(n).forEach(f=>{Pn.includes(f)?i[f]=n[f]:s[f]=n[f]}),A(r)?s.locale=r:F(r)&&(i=r),F(a)&&(i=a),[s.key||"",c,s,i]}function Rn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const Zs=e=>e,zs=e=>"",ea="text",ta=e=>e.length===0?"":_t(e),na=Cr;function Mn(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 sa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function aa(e={}){const t=e.locale,n=ra(e),r=K(e.pluralRules)&&A(t)&&G(e.pluralRules[t])?e.pluralRules[t]:Mn,a=K(e.pluralRules)&&A(t)&&G(e.pluralRules[t])?Mn:void 0,s=o=>o[r(n,o.length,a)],i=e.list||[],c=o=>i[o],f=e.named||W();Z(e.pluralIndex)&&sa(n,f);const g=o=>f[o];function N(o,m){const l=G(e.messages)?e.messages(o,!!m):K(e.messages)?e.messages[o]:!1;return l||(e.parent?e.parent.message(o):zs)}const v=o=>e.modifiers?e.modifiers[o]:Zs,y=F(e.processor)&&G(e.processor.normalize)?e.processor.normalize:ta,I=F(e.processor)&&G(e.processor.interpolate)?e.processor.interpolate:na,P=F(e.processor)&&A(e.processor.type)?e.processor.type:ea,S={list:c,named:g,plural:s,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)(S),O=_==="vnode"&&j(p)&&E?p[0]:p;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=>G(e);function Fn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:i,messages:c}=e,[f,g]=It(...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,I=!!g.resolvedMessage,P=A(g.default)||U(g.default)?U(g.default)?s?f:()=>f:g.default:n?s?f:()=>f:null,k=n||P!=null&&(A(P)||G(P)),S=Nt(e,g);y&&ia(g);let[o,m,l]=I?[f,S,c[S]||W()]:Kn(e,f,S,i,v,N),u=o,_=f;if(!I&&!(A(u)||ye(u)||ie(u))&&k&&(u=P,_=u),!I&&(!(A(u)||ye(u)||ie(u))||!A(m)))return a?at:f;if(process.env.NODE_ENV!=="production"&&A(u)&&e.messageCompiler==null)return ge(`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},O=ie(u)?u:Un(e,f,m,u,_,p);if(E)return u;const R=ua(e,m,l,g),w=aa(R),Y=oa(e,O,w),$=r?r(Y,f):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:A(f)?f:ie(u)?u.key:"",locale:m||(ie(u)?u.locale:""),format:A(u)?u:ie(u)?u.source:"",message:$};de.meta=z({},e.__meta,Xs()||{}),Cs(de)}return $}function ia(e){j(e.list)?e.list=e.list.map(t=>A(t)?rn(t):t):K(e.named)&&Object.keys(e.named).forEach(t=>{A(e.named[t])&&(e.named[t]=rn(e.named[t]))})}function Kn(e,t,n,r,a,s){const{messages:i,onWarn:c,messageResolver:f,localeFallbacker:g}=e,N=g(e,r,n);let v=W(),y,I=null,P=n,k=null;const S="translate";for(let o=0;o<N.length;o++){if(y=k=N[o],process.env.NODE_ENV!=="production"&&n!==y&&!Cn(n,y)&&ot(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:k,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&&Le&&(ae(u),Le("intlify message resolve",l,u))}if(A(I)||ye(I)||ie(I))break;if(!Qs(y,N)){const _=Lt(e,t,y,s,S);_!==t&&(I=_)}P=k}return[I,y,v]}function Un(e,t,n,r,a,s){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ie(r)){const y=r;return y.locale=y.locale||n,y.key=y.key||t,y}if(i==null){const y=()=>r;return y.locale=n,y.key=t,y}let f=null,g,N;process.env.NODE_ENV!=="production"&&oe&&(f=window.performance.now(),g="intlify-message-compilation-start",N="intlify-message-compilation-end",ae&&ae(g));const v=i(r,la(e,n,a,r,c,s));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:r,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=r,v}function oa(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&oe&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="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&&r&&f.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-r,groupId:`translate:${t.key}`}),a&&s&&ae&&Le&&(ae(s),Le("intlify message evaluation",a,s))}return i}function It(...e){const[t,n,r]=e,a=W();if(!A(t)&&!Z(t)&&!ie(t)&&!ye(t))throw he(ee.INVALID_ARGUMENT);const s=Z(t)?String(t):(ie(t),t);return Z(n)?a.plural=n:A(n)?a.default=n:F(n)&&!et(n)?a.named=n:j(n)&&(a.list=n),Z(r)?a.plural=r:A(r)?a.default=r:F(r)&&z(a,r),[s,a]}function la(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(s&&s(i),process.env.NODE_ENV!=="production"){const c=ca(r),f=`Message compilation error: ${i.message}`,g=i.location&&c&&Or(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=>br(t,n,i)}}function ca(e){if(A(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ua(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:i,fallbackLocale:c,fallbackWarn:f,missingWarn:g,fallbackContext:N}=e,y={locale:t,modifiers:a,pluralRules:s,messages:(I,P)=>{let k=i(n,I);if(k==null&&(N||P)){const[,,S]=Kn(N||e,I,t,c,f,g);k=i(S,I)}if(A(k)||ye(k)){let S=!1;const m=Un(e,I,t,k,I,()=>{S=!0});return S?wn:m}else return ie(k)?k:wn}};return e.processor&&(y.processor=e.processor),r.list&&(y.list=r.list),r.named&&(y.named=r.named),Z(r.plural)&&(y.pluralIndex=r.plural),y}ns();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,At;function ha(){var e;return Fe!==void 0||(typeof window<"u"&&window.performance?(Fe=!0,At=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fe=!0,At=globalThis.perf_hooks.performance):Fe=!1),Fe}function pa(){return ha()?At.now():Date.now()}class ga{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const c=t.settings[i];r[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(s,c)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}s=i},now(){return pa()}},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(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 Ea(e,t){const n=e,r=Vn(),a=fa(),s=da&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(_a,e,t);else{const i=s?new ga(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
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 Ve(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 st(t,n);case 9:return st(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 Ve(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 Ve(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 st(t,n);case 8:return st(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 st(e,t){const n=be(e,_r);if(n)return n;throw Ve(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 Ve(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 Ve(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(ze(Er,{source:e}))}const yr=e=>e;let rt=W();function ye(e){return K(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=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&br(e,n);const a=(t.onCacheKey||yr)(e),r=rt[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:rt[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=rt[n];return s||(rt[n]=yt(e))}else return yt(e)}}let xe=null;function Tr(e){xe=e}function Lr(e,t,n){xe&&xe.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cr=Or("function:translate");function Or(e){return t=>xe&&xe.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 Tt(e,t){return t.locale!=null?dn(t.locale):dn(e.locale)}let Lt;function dn(e){if(k(e))return e;if(B(e)){if(e.resolvedOnce&&Lt!=null)return Lt;if(e.constructor.name==="Function"){const t=e();if(Ls(t))throw he(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lt=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,...H(t)?t:K(t)?Object.keys(t):k(t)?[t]:[n]])]}function _n(e,t,n){const s=k(n)?n:$e,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;H(i);)i=mn(r,i,t);const c=H(t)||!F(t)?t:t.default?t.default:null;i=k(c)?[c]:c,H(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&&U(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),(H(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 Kr(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 Ur(e,t){return K(e)?e[t]:null}function Vr(e,t){if(!K(e))return null;let n=hn.get(t);if(n||(n=Kr(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 ze($r[e],...t)}const Wr="11.1.1",at=-1,$e="en-US",it="",gn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Br(){return{upper:(e,t)=>t==="text"&&k(e)?e.toUpperCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&k(e)?e.toLowerCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&k(e)?gn(e):t==="vnode"&&K(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 Tn=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:$e,a=B(s)?$e:s,r=H(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=U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=U(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=U(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||Ur,E=B(e.localeFallbacker)?e.localeFallbacker:bn||kr,g=K(e.fallbackContext)?e.fallbackContext:void 0,O=e,R=K(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,w=K(O.__numberFormatters)?O.__numberFormatters:new Map,Y=K(O.__meta)?O.__meta:{};Tn++;const $={version:n,cid:Tn,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__)&&Lr($,n,Y),$}const Ct=e=>({[e]:W()});function ot(e,t){return e instanceof RegExp?e.test(t):e}function Ln(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"&&Ln(s,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function We(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)),it;const[f,p,N,v]=It(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Tt(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&&ot(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?at:f;let g=`${m}__${f}`;et(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)),it;const[f,p,N,v]=At(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Tt(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&&ot(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?at:f;let g=`${m}__${f}`;et(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=K(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Mn,a=K(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):K(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?K(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"&&H(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=U(p.missingWarn)?p.missingWarn:e.missingWarn,v=U(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=U(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,P=k(p.default)||U(p.default)?U(p.default)?r?f:()=>f:p.default:n?r?f:()=>f:null,A=n||P!=null&&(k(P)||B(P)),S=Tt(e,p);y&&ia(p);let[o,m,l]=I?[f,S,c[S]||W()]:Kn(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?at: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:Un(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){H(e.list)?e.list=e.list.map(t=>k(t)?sn(t):t):K(e.named)&&Object.keys(e.named).forEach(t=>{k(e.named[t])&&(e.named[t]=sn(e.named[t]))})}function Kn(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)&&ot(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&&Le&&(ae(u),Le("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 Un(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&&Le&&(ae(N),Le("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&&Le&&(ae(r),Le("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)&&!et(n)?a.named=n:H(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]=Kn(N||e,I,t,c,f,p);A=i(S,I)}if(k(A)||ye(A)){let S=!1;const m=Un(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
19
  * vue-i18n v11.1.1
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 B={UNEXPECTED_RETURN_TYPE:Is,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 re(e,...t){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Na,args:t}:void 0)}const Na={[B.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[B.INVALID_ARGUMENT]:"Invalid argument",[B.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[B.NOT_INSTALLED]:"Need to install with `app.use` function",[B.UNEXPECTED_ERROR]:"Unexpected error",[B.REQUIRED_VALUE]:"Required in value: {0}",[B.INVALID_VALUE]:"Invalid value",[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[B.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[B.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=ce("__translateVNode"),St=ce("__datetimeParts"),Dt=ce("__numberParts"),Ie=ce("__enableEmitter"),Ge=ce("__disableEmitter"),xn=ce("__setPluralRules"),$n=ce("__injectWithOption"),Pt=ce("__dispose"),fe={FALLBACK_TO_ROOT:xs,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 Be(e,...t){return ze(va[e],...t)}function Ye(e){if(!K(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))K(e[t])&&Ye(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let i=0;i<r;i++){if(n[i]in a||(a[n[i]]=W()),!K(a[n[i]])){process.env.NODE_ENV!=="production"&&ge(Be(fe.IGNORE_OBJ_FLATTEN,{key:n[i]})),s=!0;break}a=a[n[i]]}s||(a[n[r]]=e[t],delete e[t]),K(a[n[r]])&&Ye(a[n[r]])}return e}function Rt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,i=F(n)?n:j(r)?W():{[e]:W()};if(j(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:g}=c;f?(i[f]=i[f]||W(),nt(g,i[f])):nt(g,i)}else A(c)&&nt(JSON.parse(c),i)}),a==null&&s)for(const c in i)le(i,c)&&Ye(i[c]);return i}function Wn(e){return e.type}function Gn(e,t,n){let r=K(t.messages)?t.messages:W();"__i18nGlobal"in n&&(r=Rt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(K(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(K(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Bn(e){return C.createVNode(C.Text,null,e,0)}const Yn="__INTLIFY_META__",Hn=()=>[],Ta=()=>!1;let jn=0;function Xn(e){return(t,n,r,a)=>e(n,r,C.getCurrentInstance()||void 0,a)}const La=()=>{const e=C.getCurrentInstance();let t=null;return e&&(t=Wn(e)[Yn])?{[Yn]:t}:null};function Mt(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,s=oe?C.ref:C.shallowRef;let i=U(e.inheritLocale)?e.inheritLocale:!0;const c=s(t&&i?t.locale.value:A(e.locale)?e.locale:$e),f=s(t&&i?t.fallbackLocale.value:A(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),g=s(Rt(c.value,e)),N=s(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),v=s(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=t?t.missingWarn:U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:U(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,S=G(e.missing)?e.missing:null,o=G(e.missing)?Xn(e.missing):null,m=G(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=(()=>{r&&vn(null);const b={version:ba,locale:c.value,fallbackLocale:f.value,messages:g.value,modifiers:_,pluralRules:E,missing:o===null?void 0:o,missingWarn:y,fallbackWarn:I,fallbackFormat:k,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=Js(b);return r&&vn(L),L})(),We(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}}),Y=C.computed({get:()=>f.value,set:b=>{p.fallbackLocale=b,f.value=b,We(p,c.value,b)}}),$=C.computed(()=>g.value),de=C.computed(()=>N.value),_e=C.computed(()=>v.value);function Ae(){return G(m)?m:null}function se(b){m=b,p.postTranslation=b}function ve(){return S}function Ke(b){b!==null&&(o=Xn(b)),S=b,p.missing=o}function je(b,L){return b!=="translate"||!L.resolvedMessage}const pe=(b,L,x,J,Se,ft)=>{R();let Ue;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(p.fallbackContext=t?qs():void 0),Ue=b(p)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(p.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ue)&&Ue===at||x==="translate exists"&&!Ue){const[De,yi]=L();if(process.env.NODE_ENV!=="production"&&t&&A(De)&&je(x,yi)&&(P&&(ot(I,De)||Ln(y,De))&&ge(Be(fe.FALLBACK_TO_ROOT,{key:De,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:_r}=p;_r&&P&&_r.emit("fallback",{type:x,key:De,to:"global",groupId:`${x}:${De}`})}return t&&P?J(t):Se(De)}else{if(ft(Ue))return Ue;throw re(B.UNEXPECTED_RETURN_TYPE)}};function Xe(...b){return pe(L=>Reflect.apply(Fn,null,[L,...b]),()=>It(...b),"translate",L=>Reflect.apply(L.t,L,[...b]),L=>L,L=>A(L))}function Gt(...b){const[L,x,J]=b;if(J&&!K(J))throw re(B.INVALID_ARGUMENT);return Xe(L,x,z({resolvedMessage:!0},J||{}))}function Bt(...b){return pe(L=>Reflect.apply(An,null,[L,...b]),()=>Ct(...b),"datetime format",L=>Reflect.apply(L.d,L,[...b]),()=>it,L=>A(L))}function Yt(...b){return pe(L=>Reflect.apply(Dn,null,[L,...b]),()=>Ot(...b),"number format",L=>Reflect.apply(L.n,L,[...b]),()=>it,L=>A(L))}function Ht(b){return b.map(L=>A(L)||Z(L)||U(L)?Bn(String(L)):L)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function ut(...b){return pe(L=>{let x;const J=L;try{J.processor=jt,x=Reflect.apply(Fn,null,[J,...b])}finally{J.processor=null}return x},()=>It(...b),"translate",L=>L[kt](...b),L=>[Bn(L)],L=>j(L))}function Xt(...b){return pe(L=>Reflect.apply(Dn,null,[L,...b]),()=>Ot(...b),"number format",L=>L[Dt](...b),Hn,L=>A(L)||j(L))}function qt(...b){return pe(L=>Reflect.apply(An,null,[L,...b]),()=>Ct(...b),"datetime format",L=>L[St](...b),Hn,L=>A(L)||j(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,J=ke(x),Se=p.messageResolver(J,b);return ye(Se)||ie(Se)||A(Se)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,L]),Ta,x=>U(x))}function qe(b){let L=null;const x=_n(p,f.value,c.value);for(let J=0;J<x.length;J++){const Se=g.value[x[J]]||{},ft=p.messageResolver(Se,b);if(ft!=null){L=ft;break}}return L}function Je(b){const L=qe(b);return L??(t?t.tm(b)||{}:{})}function ke(b){return g.value[b]||{}}function Qe(b,L){if(a){const x={[b]:L};for(const J in x)le(x,J)&&Ye(x[J]);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 J in x)le(x,J)&&Ye(x[J]);L=x[b],nt(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,Sn(p,b,L)}function T(b,L){N.value[b]=z(N.value[b]||{},L),p.datetimeFormats=N.value,Sn(p,b,L)}function D(b){return v.value[b]||{}}function X(b,L){v.value[b]=L,p.numberFormats=v.value,Rn(p,b,L)}function q(b,L){v.value[b]=z(v.value[b]||{},L),p.numberFormats=v.value,Rn(p,b,L)}jn++,t&&oe&&(C.watch(t.locale,b=>{i&&(c.value=b,p.locale=b,We(p,c.value,f.value))}),C.watch(t.fallbackLocale,b=>{i&&(f.value=b,p.fallbackLocale=b,We(p,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,We(p,c.value,f.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:$,get modifiers(){return _},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return y},set missingWarn(b){y=b,p.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(b){I=b,p.fallbackWarn=I},get fallbackRoot(){return P},set fallbackRoot(b){P=b},get fallbackFormat(){return k},set fallbackFormat(b){k=b,p.fallbackFormat=k},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:Xe,getLocaleMessage:ke,setLocaleMessage:Qe,mergeLocaleMessage:Zt,getPostTranslationHandler:Ae,setPostTranslationHandler:se,getMissingHandler:ve,setMissingHandler:Ke,[xn]:Jt};return V.datetimeFormats=de,V.numberFormats=_e,V.rt=Gt,V.te=Qt,V.tm=Je,V.d=Bt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=T,V.getNumberFormat=D,V.setNumberFormat=X,V.mergeNumberFormat=q,V[$n]=n,V[kt]=ut,V[St]=qt,V[Dt]=Xt,process.env.NODE_ENV!=="production"&&(V[Ie]=b=>{p.__v_emitter=b},V[Ge]=()=>{p.__v_emitter=void 0}),V}const qn="vue-i18n: composer properties",wt={"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 Ft;async function Ia(e,t){return new Promise((n,r)=>{try{Ea({id:"vue-devtools-plugin-vue-i18n",label:wt["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=>{Ft=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:wt["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 s=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(!s.has(i.app)){const[c]=await a.getComponentInstances(i.app);s.set(i.app,c)}a.highlightElement(s.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"&&Ka(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:wt["vue-i18n-timeline"],color:Oa["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function Jn(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Aa(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){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:Kt(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 Kt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];G(r)&&"source"in r?t[n]=Pa(r):ye(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:K(r)?t[n]=Kt(r):t[n]=r}),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[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Jn(r)} Scope`})}}function Ma(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;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(r=>r.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",r=[{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]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:Kt(e.messages.value)}];t[a]=s;{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 He(e,t){if(Ft){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ft.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 Ka(e,t){const n=Zn(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&A(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(A(e.state.value)||j(e.state.value)||K(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ua(e){const t=A(e.locale)?e.locale:$e,n=A(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=G(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||Pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=U(e.silentFallbackWarn)||Pe(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=G(e.postTranslation)?e.postTranslation:void 0,v=A(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,I=U(e.sync)?e.sync:!0;let P=e.messages;if(F(e.sharedMessages)){const _=e.sharedMessages;P=Object.keys(_).reduce((p,O)=>{const R=p[O]||(p[O]={});return z(R,_[O]),p},P||{})}const{__i18n:k,__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:r,missingWarn:a,fallbackWarn:s,fallbackRoot:i,fallbackFormat:c,modifiers:f,pluralRules:g,postTranslation:N,warnHtmlMessage:v,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:I,__i18n:k,__root:S,__injectWithOption:o}}function Ut(e={}){const t=Mt(Ua(e)),{__extender:n}=e,r={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,s){return t.te(a,s)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,s){t.setLocaleMessage(a,s)},mergeLocaleMessage(a,s){t.mergeLocaleMessage(a,s)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,s){t.setDateTimeFormat(a,s)},mergeDateTimeFormat(a,s){t.mergeDateTimeFormat(a,s)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,s){t.setNumberFormat(a,s)},mergeNumberFormat(a,s){t.mergeNumberFormat(a,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const s=t;s[Ie]&&s[Ie](a)},r.__disableEmitter=()=>{const a=t;a[Ge]&&a[Ge]()}),r}function Va(e,t,n){return{beforeCreate(){const r=C.getCurrentInstance();if(!r)throw re(B.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=zn(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Ut(s);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=Ut({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Gn(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=ht();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",He)}},unmounted(){const r=C.getCurrentInstance();if(!r)throw re(B.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",He),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(r),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=Rt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Vt={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((r,a)=>[...r,...a.type===C.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},W())}function er(){return C.Fragment}const tr=C.defineComponent({name:"i18n-t",props:z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Z(e)||!isNaN(e)}},Vt),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(v=>v!=="_"),i=W();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=A(e.plural)?+e.plural:e.plural);const c=xa(t,s),f=a[kt](e.keypath,c,i),g=z(W(),r),N=A(e.tag)||K(e.tag)?e.tag:er();return C.h(N,g,f)}}});function $a(e){return j(e)&&!A(e[0])}function nr(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const i={part:!0};let c=W();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,I)=>n.includes(I)?z(W(),y,{[I]:e.format[I]}):y,W()));const f=r(e.value,i,c);let g=[i.key];j(f)?g=f.map((y,I)=>{const P=a[y.type],k=P?P({[y.type]:y.value,index:I,parts:f}):[y.value];return $a(k)&&(k[0].key=`${y.type}-${I}`),k}):A(f)&&(g=[f]);const N=z(W(),s),v=A(e.tag)||K(e.tag)?e.tag:er();return C.h(v,N,g)}}const rr=C.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},Vt),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return nr(e,t,Pn,(...r)=>n[Dt](...r))}});function Wa(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ga(e){const t=i=>{process.env.NODE_ENV!=="production"&&mt(Be(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:f}=i;if(!c||!c.$)throw re(B.UNEXPECTED_ERROR);const g=Wa(e,c.$),N=sr(f);return[Reflect.apply(g.t,g,[...ar(N)]),g]};return{created:(i,c)=>{const[f,g]=t(c);oe&&e.global===g&&(i.__i18nWatcher=C.watch(g.locale,()=>{c.instance&&c.instance.$forceUpdate()})),i.__composer=g,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,g=sr(c);i.textContent=Reflect.apply(f.t,f,[...ar(g)])}},getSSRProps:i=>{const[c]=t(i);return{textContent:c}}}}function sr(e){if(A(e))return{path:e};if(F(e)){if(!("path"in e))throw re(B.REQUIRED_VALUE,"path");return e}else throw re(B.INVALID_VALUE)}function ar(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,i={},c=r||{};return A(n)&&(i.locale=n),Z(a)&&(i.plural=a),Z(s)&&(i.plural=s),[t,c,i]}function Ba(e,t,...n){const r=F(n[0])?n[0]:{};(U(r.globalInstall)?r.globalInstall:!0)&&([tr.name,"I18nT"].forEach(s=>e.component(s,tr)),[rr.name,"I18nN"].forEach(s=>e.component(s,rr)),[or.name,"I18nD"].forEach(s=>e.component(s,or))),e.directive("t",Ga(t))}const Ya=ce("global-vue-i18n");function Ha(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&mt(Be(fe.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,s]=ja(e,t),i=ce(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(v){return r.get(v)||null}function f(v,y){r.set(v,y)}function g(v){r.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 k=y[0];N.__composerExtend=k.__composerExtend,N.__vueI18nExtend=k.__vueI18nExtend}let I=null;!t&&n&&(I=ti(v,N.global)),__VUE_I18N_FULL_INSTALL__&&Ba(v,N,...y),__VUE_I18N_LEGACY_API__&&t&&v.mixin(Va(s,s.__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 re(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const S=ht();if(t){const o=s;o.__enableEmitter&&o.__enableEmitter(S)}else{const o=s;o[Ie]&&o[Ie](S)}S.on("*",He)}},get global(){return s},dispose(){a.stop()},__instances:r,__getInstance:c,__setInstance:f,__deleteInstance:g};return N}function xt(e={}){const t=C.getCurrentInstance();if(t==null)throw re(B.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(B.NOT_INSTALLED);const n=Xa(t),r=Ja(n),a=Wn(t),s=qa(e,a);if(s==="global")return Gn(r,e,a),r;if(s==="parent"){let f=Qa(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&ge(Be(fe.NOT_FOUND_PARENT_SCOPE)),f=r),f}const i=n;let c=i.__getInstance(t);if(c==null){const f=z({},e);"__i18n"in a&&(f.__i18n=a.__i18n),r&&(f.__root=r),c=Mt(f),i.__composerExtend&&(c[Pt]=i.__composerExtend(c)),za(i,t,c),i.__setInstance(t,c)}return c}function ja(e,t){const n=C.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ut(e)):n.run(()=>Mt(e));if(r==null)throw re(B.UNEXPECTED_ERROR);return[n,r]}function Xa(e){const t=C.inject(e.isCE?Ya:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?B.NOT_INSTALLED_WITH_PROVIDE:B.UNEXPECTED_ERROR);return t}function qa(e,t){return et(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 r=null;const a=t.root;let s=Za(t,n);for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(s);c!=null&&(r=c.__composer,n&&r&&!r[$n]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function Za(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function za(e,t,n){let r=null;C.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=ht();const a=n;a[Ie]&&a[Ie](r),r.on("*",He)}},t),C.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",He),a[Ge]&&a[Ge](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=a[Pt];s&&(s(),delete a[Pt])},t)}const ei=["locale","fallbackLocale","availableLocales"],ir=["t","rt","d","n","tm","te"];function ti(e,t){const n=Object.create(null);return ei.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw re(B.UNEXPECTED_ERROR);const i=C.isRef(s.value)?{get(){return s.value.value},set(c){s.value.value=c}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,ir.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw re(B.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,ir.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const or=C.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Vt),setup(e,t){const n=e.i18n||xt({useScope:e.scope,__useComponent:!0});return nr(e,t,kn,(...r)=>n[St](...r))}});if(ya(),Bs(vs),Ys(Vs),Hs(_n),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ce();e.__INTLIFY__=!0,Ts(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var lt={exports:{}};/*! store2 - v2.14.4 - 2024-12-26
24
- * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var $t=lt.exports,lr;function ni(){return lr||(lr=1,function(e){(function(t,n){var r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(s,i){for(var c in s)i.hasOwnProperty(c)||Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(s,c));return i},stringify:function(s,i){return s===void 0||typeof s=="function"?s+"":JSON.stringify(s,i||r.replace)},parse:function(s,i){try{return JSON.parse(s,i||r.revive)}catch{return s}},fn:function(s,i){r.storeAPI[s]=i;for(var c in r.apis)r.apis[c][s]=i},get:function(s,i){return s.getItem(i)},set:function(s,i,c){s.setItem(i,c)},remove:function(s,i){s.removeItem(i)},key:function(s,i){return s.key(i)},length:function(s){return s.length},clear:function(s){s.clear()},Store:function(s,i,c){var f=r.inherit(r.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=s;try{var g="__store2_test";i.setItem(g,"ok"),f._area=i,i.removeItem(g)}catch{f._area=r.storage("fake")}return f._ns=c||"",r.areas[s]||(r.areas[s]=f._area),r.apis[f._ns+f._id]||(r.apis[f._ns+f._id]=f),f},storeAPI:{area:function(s,i){var c=this[s];return(!c||!c.area)&&(c=r.Store(s,i,this._ns),this[s]||(this[s]=c)),c},namespace:function(s,i,c){if(c=c||this._delim||r.nsdelim,!s)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var f=s,g=this[f];if((!g||!g.namespace)&&(g=r.Store(this._id,this._area,this._ns+f+c),g._delim=c,this[f]||(this[f]=g),!i))for(var N in r.areas)g.area(N,r.areas[N]);return g},isFake:function(s){return s?(this._real=this._area,this._area=r.storage("fake")):s===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(s){return this._area.has?this._area.has(this._in(s)):this._in(s)in this._area},size:function(){return this.keys().length},each:function(s,i){for(var c=0,f=r.length(this._area);c<f;c++){var g=this._out(r.key(this._area,c));if(g!==void 0&&s.call(this,g,this.get(g),i)===!1)break;f>r.length(this._area)&&(f--,c--)}return i||this},keys:function(s){return this.each(function(i,c,f){f.push(i)},s||[])},get:function(s,i){var c=r.get(this._area,this._in(s)),f;return typeof i=="function"&&(f=i,i=null),c!==null?r.parse(c,f):i??c},getAll:function(s){return this.each(function(i,c,f){f[i]=c},s||{})},transact:function(s,i,c){var f=this.get(s,c),g=i(f);return this.set(s,g===void 0?f:g),this},set:function(s,i,c){var f=this.get(s),g;return f!=null&&c===!1?i:(typeof c=="function"&&(g=c,c=void 0),r.set(this._area,this._in(s),r.stringify(i,g),c)||f)},setAll:function(s,i){var c,f;for(var g in s)f=s[g],this.set(g,f,i)!==f&&(c=!0);return c},add:function(s,i,c){var f=this.get(s);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 r.set(this._area,this._in(s),r.stringify(i,c)),i},remove:function(s,i){var c=this.get(s,i);return r.remove(this._area,this._in(s)),c},clear:function(){return this._ns?this.each(function(s){r.remove(this._area,this._in(s))},1):r.clear(this._area),this},clearAll:function(){var s=this._area;for(var i in r.areas)r.areas.hasOwnProperty(i)&&(this._area=r.areas[i],this.clear());return this._area=s,this},_in:function(s){return typeof s!="string"&&(s=r.stringify(s)),this._ns?this._ns+s:s},_out:function(s){return this._ns?s&&s.indexOf(this._ns)===0?s.substring(this._ns.length):void 0:s}},storage:function(s){return r.inherit(r.storageAPI,{items:{},name:s})},storageAPI:{length:0,has:function(s){return this.items.hasOwnProperty(s)},key:function(s){var i=0;for(var c in this.items)if(this.has(c)&&s===i++)return c},setItem:function(s,i){this.has(s)||this.length++,this.items[s]=i},removeItem:function(s){this.has(s)&&(delete this.items[s],this.length--)},getItem:function(s){return this.has(s)?this.items[s]:null},clear:function(){for(var s in this.items)this.removeItem(s)}}},a=r.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=r,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",r.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(r.conflict=t.store),t.store=a)})($t,$t&&$t.define)}(lt)),lt.exports}var ri=ni();const Wt=en(ri),si=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},ai=(e,t)=>(t.forEach(n=>{const r=H.find(e,{key:n.key});r?H.merge(r,n):e.push(n)}),e),ct="https://test.ihotel.cn",cr=async e=>Te.get(ct+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:e}}),ur=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:r,token:a})=>new Promise(async(s,i)=>{const c=ct+"/i18n-web/kv_translate/kv_translates",f=r?c+"?lastPullDate="+r:c,g=await Te({url:f,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:a}});g&&g.result==0?s(g.retVal):s(g)}),ii=async(e,t)=>Te({url:ct+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),oi=async(e,t)=>Te({url:ct+"/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(r,a)=>{const s=Wt.namespace(`i18n_${e}`),i={appCode:e,language:t,token:n},c=s.get(t);if(!c||!c.lastPullDate){const f=await ur(i);f&&(s.set(t,f),r(f.translatesDTOs))}else{const{lastPullDate:f}=c,g=await ur({...i,lastPullDate:f});if(g){const N=H.get(c,"translatesDTOs");if(H.isEmpty(g.translatesDTOs))r(N);else{const v=ai(N,g.translatesDTOs),y={lastPullDate:g.lastPullDate,translatesDTOs:v};Wt.namespace(`i18n_${e}`).set(t,y,":"),r(v)}}}}),ci={data(){return{isModalVisible:!1,searchText:"",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:(r,{row:a,index:s})=>{const i=a[n];return C.createVNode(C.resolveComponent("Input"),{modelValue:i,onOnChange:c=>{this.data.datas[s][n]=c.target.value}},null)}})}),e}},props:{appCode:String,name:String,setLanguage:Function,token:String},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal(){this.isModalVisible||(this.isModalVisible=!0,this.init())},findShallowStringDiff(e,t){const{appCode:n,dictKey:r,page:a,unitCode:s}=e,i=[];return H.forIn(e,(c,f)=>{H.isEqual(c,t[f])||i.push({appCode:n,key:r,page:a,unitCode:s,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 s=t[a],i=H.find(this.initialData.datas,{dictKey:s.dictKey}),c=this.findShallowStringDiff(s,i);n=H.concat(n,c)}const r=await oi({appCode:this.appCode,language:this.language,data:n},this.token);r&&r.result===0&&(Q.Message.success(e||r.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 cr(this.token);e&&e.result==0?(this.languages=e.retVal,this.search()):Q.Message.error("获取语言失败,出错了")}}},fr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},ui={class:"extra"},fi={class:"gc_i18n_page"},di={style:{display:"flex"}};function _i(e,t,n,r,a,s){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[2]||(t[2]=I=>a.isModalVisible=I),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:C.withCtx(()=>[C.createVNode(g,{type:"card",class:"gc_i18n_tabs"},{extra:C.withCtx(()=>[C.createElementVNode("div",ui,[C.createVNode(f,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:a.searchText,"onUpdate:modelValue":t[0]||(t[0]=I=>a.searchText=I),clearable:"",onOnEnter:s.search,onOnClear:s.search},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:C.withCtx(()=>[C.createVNode(c,{label:"当前页面"},{default:C.withCtx(()=>[C.createVNode(i,{border:"",height:550,columns:s.columns,data:a.data.datas},null,8,["columns","data"])]),_:1})]),_:1}),C.createElementVNode("div",fi,[C.createElementVNode("div",di,[C.createVNode(N,{modelValue:s.firstResult,"onUpdate:modelValue":t[1]||(t[1]=I=>s.firstResult=I),total:a.data.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:s.changePage},null,8,["modelValue","total","onOnChange"]),C.createElementVNode("div",null,"共 "+C.toDisplayString(a.data.totalRows)+" 项数据",1)]),C.createElementVNode("div",null,[C.createVNode(v,{style:{"margin-right":"10px"},onClick:s.closeModal},{default:C.withCtx(()=>t[3]||(t[3]=[C.createTextVNode("关闭")])),_:1},8,["onClick"]),C.createVNode(v,{type:"primary",onClick:s.saveData},{default:C.withCtx(()=>t[4]||(t[4]=[C.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const mi=fr(ci,[["render",_i]]),hi={name:"LangChange",data(){return{languages:[],language:""}},props:{more:{type:Boolean,default:!1}},async mounted(){this.language=navigator.language||"zh-CN";const e=await cr();e&&e.result===0&&(this.languages=e.retVal)}},pi={key:0};function gi(e,t,n,r,a,s){const i=C.resolveComponent("Option"),c=C.resolveComponent("Select");return C.openBlock(),C.createElementBlock("div",null,[n.more?(C.openBlock(),C.createElementBlock("div",pi,t[1]||(t[1]=[C.createElementVNode("span",null,"切换语种",-1)]))):(C.openBlock(),C.createBlock(c,{key:1,modelValue:a.language,"onUpdate:modelValue":t[0]||(t[0]=f=>a.language=f)},{default:C.withCtx(()=>[C.createVNode(i,{value:"zh-CN"},{default:C.withCtx(()=>t[2]||(t[2]=[C.createTextVNode("中文")])),_:1})]),_:1},8,["modelValue"]))])}const Ei=fr(hi,[["render",gi]]);Q.Message.config({duration:3}),Te.defaults.timeout=6e4,Te.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>(Q.Message.error({content:"请求超时!"}),Promise.resolve(e))),Te.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 bi{constructor(t={}){const{router:n,appCode:r,messages:a,token:s}=t;this.token=s||Wt.get("token"),this.appCode=r,this.router=n,this.locale=navigator.language||"zh-CN",this.modalLoad=!1,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)=>{var v,y;const g=H.toUpper((y=(v=n==null?void 0:n.currentRoute)==null?void 0:v.value)==null?void 0:y.name),N=i(c);if(N===c&&g){const I=`${g}.${c}`,P=i(I);return P!==I?P:f&&H.has(f,"comment")?H.get(f,"comment"):c}return N},this.i18n.global.changeLocal=c=>{this.setLanguage(c||this.locale)},n.beforeEach((c,f,g)=>{const{language:N,token:v}=c.query;v&&this.setToken(v),this.setLanguage(N),g()}),n.afterEach((c,f)=>{C.nextTick(()=>{this.configInstance?this.configInstance.closeModal():this.createModal(c.name)})})}setToken(t){this.token=t}async setLanguage(t="zh-CN"){const n=await li({appCode:this.appCode,language:t,token:this.token});if(n){const r=si(n);this.i18n.global.setLocaleMessage(t,H.assign({},H.get(this.messages,t),r))}this.locale=t,this.i18n.global.locale.value=t}createModal(t){this.modalLoad=!0,this.configInstance=C.createApp(mi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:t}).use(Q).mount(document.createElement("div")),gr.bind("shift > t",n=>{this.configInstance.openModal()})}install(t,{router:n}){t.use(this.i18n),t.use(Q),t.component("LangChange",Ei)}}return bi});
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"),Be=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 Ge(e,...t){return ze(va[e],...t)}function Ye(e){if(!K(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))K(e[t])&&Ye(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()),!K(a[n[i]])){process.env.NODE_ENV!=="production"&&pe(Ge(fe.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[s]]=e[t],delete e[t]),K(a[n[s]])&&Ye(a[n[s]])}return e}function wt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,i=F(n)?n:H(s)?W():{[e]:W()};if(H(s)&&s.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:p}=c;f?(i[f]=i[f]||W(),nt(p,i[f])):nt(p,i)}else k(c)&&nt(JSON.parse(c),i)}),a==null&&r)for(const c in i)le(i,c)&&Ye(i[c]);return i}function Wn(e){return e.type}function Bn(e,t,n){let s=K(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(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 Gn(e){return L.createVNode(L.Text,null,e,0)}const Yn="__INTLIFY_META__",Hn=()=>[],Ta=()=>!1;let jn=0;function Xn(e){return(t,n,s,a)=>e(n,s,L.getCurrentInstance()||void 0,a)}const La=()=>{const e=L.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?L.ref:L.shallowRef;let i=U(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:k(e.locale)?e.locale:$e),f=r(t&&i?t.fallbackLocale.value:k(e.fallbackLocale)||H(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:U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:U(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:U(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: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,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})(),We(g,c.value,f.value);function R(){return[c.value,f.value,p.value,N.value,v.value]}const w=L.computed({get:()=>c.value,set:b=>{g.locale=b,c.value=b}}),Y=L.computed({get:()=>f.value,set:b=>{g.fallbackLocale=b,f.value=b,We(g,c.value,b)}}),$=L.computed(()=>p.value),de=L.computed(()=>N.value),_e=L.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 je(b,C){return b!=="translate"||!C.resolvedMessage}const ge=(b,C,x,q,Se,_t)=>{R();let Ue;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=t?qr():void 0),Ue=b(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ue)&&Ue===at||x==="translate exists"&&!Ue){const[De,vi]=C();if(process.env.NODE_ENV!=="production"&&t&&k(De)&&je(x,vi)&&(P&&(ot(I,De)||Ln(y,De))&&pe(Ge(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?q(t):Se(De)}else{if(_t(Ue))return Ue;throw se(G.UNEXPECTED_RETURN_TYPE)}};function Xe(...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,q]=b;if(q&&!K(q))throw se(G.INVALID_ARGUMENT);return Xe(C,x,z({resolvedMessage:!0},q||{}))}function Gt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>it,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]),()=>it,C=>k(C))}function Ht(b){return b.map(C=>k(C)||Z(C)||U(C)?Gn(String(C)):C)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function dt(...b){return ge(C=>{let x;const q=C;try{q.processor=jt,x=Reflect.apply(Fn,null,[q,...b])}finally{q.processor=null}return x},()=>kt(...b),"translate",C=>C[Dt](...b),C=>[Gn(C)],C=>H(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)||H(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)||H(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,q=ke(x),Se=g.messageResolver(q,b);return ye(Se)||ie(Se)||k(Se)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,C]),Ta,x=>U(x))}function qe(b){let C=null;const x=_n(g,f.value,c.value);for(let q=0;q<x.length;q++){const Se=p.value[x[q]]||{},_t=g.messageResolver(Se,b);if(_t!=null){C=_t;break}}return C}function Je(b){const C=qe(b);return C??(t?t.tm(b)||{}:{})}function ke(b){return p.value[b]||{}}function Qe(b,C){if(a){const x={[b]:C};for(const q in x)le(x,q)&&Ye(x[q]);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 q in x)le(x,q)&&Ye(x[q]);C=x[b],nt(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 T(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 j(b,C){v.value[b]=C,g.numberFormats=v.value,Rn(g,b,C)}function X(b,C){v.value[b]=z(v.value[b]||{},C),g.numberFormats=v.value,Rn(g,b,C)}jn++,t&&oe&&(L.watch(t.locale,b=>{i&&(c.value=b,g.locale=b,We(g,c.value,f.value))}),L.watch(t.fallbackLocale,b=>{i&&(f.value=b,g.fallbackLocale=b,We(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,We(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:Xe,getLocaleMessage:ke,setLocaleMessage:Qe,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=Je,V.d=Gt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=T,V.getNumberFormat=D,V.setNumberFormat=j,V.mergeNumberFormat=X,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[Be]=()=>{g.__v_emitter=void 0}),V}const qn="vue-i18n: composer properties",Kt={"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 Ut;async function Ia(e,t){return new Promise((n,s)=>{try{Ea({id:"vue-devtools-plugin-vue-i18n",label:Kt["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=>{Ut=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:Kt["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"&&Ka(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Kt["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:K(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 He(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.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 Ka(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)||H(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 Ua(e){const t=k(e.locale)?e.locale:$e,n=k(e.fallbackLocale)||H(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=B(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||Pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=U(e.silentFallbackWarn)||Pe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=U(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=U(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(Ua(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 Va(e,t,n){return{beforeCreate(){const s=L.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("*",He)}},unmounted(){const s=L.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("*",He),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===L.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},W())}function es(){return L.Fragment}const ts=L.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||lt({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)||K(e.tag)?e.tag:es();return L.h(N,p,f)}}});function $a(e){return H(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:K(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];H(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)||K(e.tag)?e.tag:es();return L.h(v,N,p)}}const ss=L.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||lt({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(Ge(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=L.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]:{};(U(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__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&gt(Ge(fe.DEPRECATE_LEGACY_MODE));const n=U(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("*",He)}},get global(){return r},dispose(){a.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:p};return N}function lt(e={}){const t=L.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(Ge(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=L.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=L.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 et(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;L.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("*",He)}},t),L.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",He),a[Be]&&a[Be](),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=L.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=L.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||lt({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,Tr(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,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)}(ct)),ct.exports}var si=ni();const ut=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=Q.find(e,{key:n.key});s?Q.merge(s,n):e.push(n)}),e),ft="https://test.ihotel.cn",cs=async e=>Te.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 Te({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)=>Te({url:ft+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),oi=async(e,t)=>Te({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=ut.namespace(`i18n_${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=Q.get(c,"translatesDTOs");if(Q.isEmpty(p.translatesDTOs))s(N);else{const v=ai(N,p.translatesDTOs),y={lastPullDate:p.lastPullDate,translatesDTOs:v};ut.namespace(`i18n_${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 Q.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 L.createVNode(L.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 Q.forIn(e,(c,f)=>{Q.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=Q.differenceWith(this.data.datas,this.initialData.datas,Q.isEqual);let n=[];for(let a=0;a<t.length;a++){const r=t[a],i=Q.find(this.initialData.datas,{dictKey:r.dictKey}),c=this.findShallowStringDiff(r,i);n=Q.concat(n,c)}const s=await oi({appCode:this.appCode,language:this.language,data:n},this.token);s&&s.result===0&&(J.Message.success(e||s.msg),this.setLanguage(),this.initialData.datas=Q.cloneDeep(this.data.datas))},async saveNoEqual(){Q.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?Q.toUpper(this.name):"HOME",commaSeparatedLangs:Q.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},n=await ii(t,this.token);n&&(this.initialData=Q.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()):J.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=L.resolveComponent("Table"),c=L.resolveComponent("TabPane"),f=L.resolveComponent("Input"),p=L.resolveComponent("Tabs"),N=L.resolveComponent("Page"),v=L.resolveComponent("Button"),y=L.resolveComponent("Modal");return L.openBlock(),L.createBlock(y,{modelValue:a.isModalVisible,"onUpdate:modelValue":t[2]||(t[2]=I=>a.isModalVisible=I),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:L.withCtx(()=>[L.createVNode(p,{type:"card",class:"gc_i18n_tabs"},{extra:L.withCtx(()=>[L.createElementVNode("div",ui,[L.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:L.withCtx(()=>[L.createVNode(c,{label:"当前页面"},{default:L.withCtx(()=>[L.createVNode(i,{border:"",height:550,columns:r.columns,data:a.data.datas},null,8,["columns","data"])]),_:1})]),_:1}),L.createElementVNode("div",fi,[L.createElementVNode("div",di,[L.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"]),L.createElementVNode("div",null,"共 "+L.toDisplayString(a.data.totalRows)+" 项数据",1)]),L.createElementVNode("div",null,[L.createVNode(v,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:L.withCtx(()=>t[3]||(t[3]=[L.createTextVNode("关闭")])),_:1},8,["onClick"]),L.createVNode(v,{type:"primary",onClick:r.saveData},{default:L.withCtx(()=>t[4]||(t[4]=[L.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const mi=fs(ci,[["render",_i]]),hi={setup(){const{changeLocal:e,locale:t}=lt();return{changeLocal:e,locale:t}},name:"LangChange",data(){return{languages:[]}},props:{token:String,simple:{type:Boolean,default:!1}},methods:{toggle(){const e=Q.find(this.languages,t=>t.code!==this.locale);this.changeLocal(e.code)}},async mounted(){this.language=ut.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=L.resolveComponent("Option"),c=L.resolveComponent("Select");return a.languages&&a.languages.length>0?(L.openBlock(),L.createElementBlock("div",gi,[a.languages.length===1?(L.openBlock(),L.createElementBlock("div",pi,[L.createElementVNode("span",null,L.toDisplayString(a.languages[0].name),1)])):a.languages.length===2?(L.openBlock(),L.createElementBlock("div",Ei,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.languages,f=>(L.openBlock(),L.createElementBlock("span",{class:L.normalizeClass(["item",f.code==s.locale?"active":"hide"]),onClick:t[0]||(t[0]=(...p)=>r.toggle&&r.toggle(...p))},L.toDisplayString(f.name),3))),256))])):(L.openBlock(),L.createBlock(c,{key:2,modelValue:s.locale,onOnChange:s.changeLocal},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.languages,f=>(L.openBlock(),L.createBlock(i,{value:f.code,label:f.name},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(f.name),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue","onOnChange"]))])):L.createCommentVNode("",!0)}const yi=fs(hi,[["render",bi],["__scopeId","data-v-681259c1"]]);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.data},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 Ni{constructor(t={}){const{router:n,appCode:s,messages:a,token:r}=t;this.token=r||ut.get("token"),this.appCode=s,this.router=n,this.locale=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=Q.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),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,Q.assign({},Q.get(this.messages,t),r))}this.locale=t,this.i18n.global.locale.value=t,n(!0)})}createModal(t){this.modalLoad=!0,this.configInstance=L.createApp(mi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:this.name}).use(J).mount(document.createElement("div"))}Language(){return{setup:()=>({token:this.token}),components:{LanguageTPL:yi},template:"<LanguageTPL :token='token'></LanguageTPL>"}}install(t,n={}){t.use(J,{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});