@opendesign-plus-test/composables 0.0.1-rc.4 → 0.0.1-rc.6
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.
- package/dist/analytics/useAnalytics.d.ts +12 -0
- package/dist/core/useCheckbox.d.ts +9 -0
- package/dist/core/useLogin.d.ts +65 -0
- package/dist/core/useMdRender.d.ts +2 -2
- package/dist/core/useScrollBottom.d.ts +4 -0
- package/dist/core/useTheme.d.ts +30 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +657 -2905
- package/dist/index.umd.cjs +9 -26
- package/dist/login/loginStore.d.ts +18 -0
- package/package.json +2 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
(function(j,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue"),require("markdown-it-async"),require("markdown-it-anchor"),require("shiki"),require("@opensig/opendesign"),require("@vueuse/core"),require("js-cookie")):typeof define=="function"&&define.amd?define(["exports","vue","markdown-it-async","markdown-it-anchor","shiki","@opensig/opendesign","@vueuse/core","js-cookie"],v):(j=typeof globalThis<"u"?globalThis:j||self,v(j.OpenDesignPlusComposables={},j.Vue,j.MarkdownItAsync,j.markdownItAnchor,j.shiki,j.OpenDesign,j.VueUse,j.Cookies))})(this,(function(j,v,Qn,Zn,Ue,Ut,zn,Vt){"use strict";function eu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const $t=eu(v),tu=new Set(Object.keys(Ue.bundledLanguages));async function nu(e={}){const{anchor:t=!0,anchorType:n="vitepress",copy:u=!0,wrapMarkdownBodyDiv:a=!0,theme:r={},...i}=e,c=typeof(r==null?void 0:r.light)=="string"&&r.light in Ue.bundledThemes?r.light:"light-plus",l=typeof(r==null?void 0:r.dark)=="string"&&r.dark in Ue.bundledThemes?r.dark:"dark-plus",A=new Set(["text"]);v.onBeforeUnmount(()=>{g&&g.dispose()});const g=await Ue.createHighlighter({themes:[c,l],langs:["text"]}),N=Qn({async highlight(d,L){return tu.has(L)||(L="text"),A.has(L)||(await g.loadLanguage(L),A.add(L)),g.codeToHtml(d,{lang:L,themes:{light:c,dark:l}})},...i});if(t&&N.use(Zn,{slugify:d=>n==="github"?uu(d):ru(d)}),u){const d=N.renderer.rules.fence;N.renderer.rules.fence=(...L)=>{var E;const[y,h]=L,b=y[h],D=N.utils.escapeHtml(b.content||"");return`<div class="language-${((E=b.info)==null?void 0:E.trim())||""}"><div class="copy" data-clipboard-text="${D}"></div>`+d(...L)+"</div>"}}if(a){const d=N.render;N.render=(y,h)=>`<div class="markdown-body">${d.call(N,y,h)}</div>`;const L=N.renderInline;N.renderInline=(y,h)=>`<div class="markdown-body">${L.call(N,y,h)}</div>`}return{shiki:g,markdwon:N}}function uu(e){const t=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u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A4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uF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uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;return`user-content-${e.toLowerCase().replace(t,"").replace(/ /g,"-")}`}function ru(e){return e.normalize("NFKD").replace(/[\u0300-\u036F]/g,"").replace(/[\u0000-\u001f]/g,"").replace(/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase()}var Wt=(e=>(e.Phone="phone",e.PadV="pad_v",e.PadH="pad_h",e.Laptop="laptop",e))(Wt||{});const be={phone:600,pad_v:840,pad_h:1200,laptop:1440},au={lt:(e,t)=>e<t,le:(e,t)=>e<=t,eq:(e,t)=>e===t,ne:(e,t)=>e!==t,ge:(e,t)=>e>=t,gt:(e,t)=>e>t},su=()=>{const e=v.reactive({width:1440,height:0}),t=v.ref("laptop"),n=C=>(typeof C>"u"&&(C=e.width),C<be.phone?"phone":C<be.pad_v?"pad_v":C<be.pad_h?"pad_h":"laptop"),u=(C="eq",_)=>{const T=e.width,O=be[_],m=au[C];return m(T,O)},a=v.computed(()=>u("le","phone")),r=v.computed(()=>u("gt","phone")),i=v.computed(()=>u("gt","phone")&&u("le","pad_h")),c=v.computed(()=>u("le","pad_h")),l=v.computed(()=>u("gt","pad_h")),A=v.computed(()=>u("gt","phone")&&u("le","pad_v")),g=v.computed(()=>u("le","pad_v")),N=v.computed(()=>u("gt","pad_v")),d=v.computed(()=>u("gt","pad_v")&&u("le","pad_h")),L=v.computed(()=>u("gt","pad_h")&&u("le","laptop")),y=v.computed(()=>u("le","laptop")),h=v.computed(()=>u("gt","laptop")),b=v.computed(()=>u("gt","phone")&&u("le","laptop")),D=v.computed(()=>u("gt","pad_v")&&u("le","laptop")),E=()=>{const{innerWidth:C,innerHeight:_}=window;e.width=C,e.height=_,t.value=n()};return v.onMounted(()=>{typeof window<"u"&&(window.addEventListener("resize",E),E(),v.nextTick(()=>E()))}),v.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",E)}),{getSize:n,current:t,size:e,isPhone:a,gtPhone:r,isPad:i,lePad:c,gtPad:l,isPadV:A,lePadV:g,gtPadV:N,isPadH:d,isLaptop:L,leLaptop:y,gtLaptop:h,isPadToLaptop:b,isPadVToLaptop:D}};/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/function Cu(e,t,n){return{line:e,column:t,offset:n}}function ut(e,t,n){return{start:e,end:t}}const P={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},pu=17,Nu={[P.EXPECTED_TOKEN]:"Expected token: '{0}'",[P.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[P.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[P.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[P.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[P.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[P.EMPTY_PLACEHOLDER]:"Empty placeholder",[P.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[P.INVALID_LINKED_FORMAT]:"Invalid linked format",[P.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[P.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[P.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[P.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[P.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Le(e,t,n={}){const{domain:u,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?Ve((a||Nu)[e]||"",...r||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=u,c}function gu(e){throw e}const Lu=/<\/?[\w\s="/.':;#-\/]+>/,Tu=e=>Lu.test(e),oe=" ",Ou="\r",Z=`
|
|
11
|
-
`,hu="\u2028",Iu="\u2029";function bu(e){const t=e;let n=0,u=1,a=1,r=0;const i=m=>t[m]===Ou&&t[m+1]===Z,c=m=>t[m]===Z,l=m=>t[m]===Iu,A=m=>t[m]===hu,g=m=>i(m)||c(m)||l(m)||A(m),N=()=>n,d=()=>u,L=()=>a,y=()=>r,h=m=>i(m)||l(m)||A(m)?Z:t[m],b=()=>h(n),D=()=>h(n+r);function E(){return r=0,g(n)&&(u++,a=0),i(n)&&n++,n++,a++,t[n]}function C(){return i(n+r)&&r++,r++,t[n+r]}function _(){n=0,u=1,a=1,r=0}function T(m=0){r=m}function O(){const m=n+r;for(;m!==n;)E();r=0}return{index:N,line:d,column:L,peekOffset:y,charAt:h,currentChar:b,currentPeek:D,next:E,peek:C,reset:_,resetPeek:T,skipToPeek:O}}const fe=void 0,Su=".",Xt="'",vu="tokenizer";function yu(e,t={}){const n=t.location!==!1,u=bu(e),a=()=>u.index(),r=()=>Cu(u.line(),u.column(),u.index()),i=r(),c=a(),l={currentType:13,offset:c,startLoc:i,endLoc:i,lastType:13,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},A=()=>l,{onError:g}=t;function N(s,o,F,...S){const W=A();if(o.column+=F,o.offset+=F,g){const H=n?ut(W.startLoc,o):null,M=Le(s,H,{domain:vu,args:S});g(M)}}function d(s,o,F){s.endLoc=r(),s.currentType=o;const S={type:o};return n&&(S.loc=ut(s.startLoc,s.endLoc)),F!=null&&(S.value=F),S}const L=s=>d(s,13);function y(s,o){return s.currentChar()===o?(s.next(),o):(N(P.EXPECTED_TOKEN,r(),0,o),"")}function h(s){let o="";for(;s.currentPeek()===oe||s.currentPeek()===Z;)o+=s.currentPeek(),s.peek();return o}function b(s){const o=h(s);return s.skipToPeek(),o}function D(s){if(s===fe)return!1;const o=s.charCodeAt(0);return o>=97&&o<=122||o>=65&&o<=90||o===95}function E(s){if(s===fe)return!1;const o=s.charCodeAt(0);return o>=48&&o<=57}function C(s,o){const{currentType:F}=o;if(F!==2)return!1;h(s);const S=D(s.currentPeek());return s.resetPeek(),S}function _(s,o){const{currentType:F}=o;if(F!==2)return!1;h(s);const S=s.currentPeek()==="-"?s.peek():s.currentPeek(),W=E(S);return s.resetPeek(),W}function T(s,o){const{currentType:F}=o;if(F!==2)return!1;h(s);const S=s.currentPeek()===Xt;return s.resetPeek(),S}function O(s,o){const{currentType:F}=o;if(F!==7)return!1;h(s);const S=s.currentPeek()===".";return s.resetPeek(),S}function m(s,o){const{currentType:F}=o;if(F!==8)return!1;h(s);const S=D(s.currentPeek());return s.resetPeek(),S}function k(s,o){const{currentType:F}=o;if(!(F===7||F===11))return!1;h(s);const S=s.currentPeek()===":";return s.resetPeek(),S}function U(s,o){const{currentType:F}=o;if(F!==9)return!1;const S=()=>{const H=s.currentPeek();return H==="{"?D(s.peek()):H==="@"||H==="|"||H===":"||H==="."||H===oe||!H?!1:H===Z?(s.peek(),S()):ae(s,!1)},W=S();return s.resetPeek(),W}function X(s){h(s);const o=s.currentPeek()==="|";return s.resetPeek(),o}function ae(s,o=!0){const F=(W=!1,H="")=>{const M=s.currentPeek();return M==="{"||M==="@"||!M?W:M==="|"?!(H===oe||H===Z):M===oe?(s.peek(),F(!0,oe)):M===Z?(s.peek(),F(!0,Z)):!0},S=F();return o&&s.resetPeek(),S}function G(s,o){const F=s.currentChar();return F===fe?fe:o(F)?(s.next(),F):null}function he(s){const o=s.charCodeAt(0);return o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===95||o===36}function Lt(s){return G(s,he)}function Tt(s){const o=s.charCodeAt(0);return o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===95||o===36||o===45}function Ot(s){return G(s,Tt)}function ht(s){const o=s.charCodeAt(0);return o>=48&&o<=57}function It(s){return G(s,ht)}function bt(s){const o=s.charCodeAt(0);return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function _e(s){return G(s,bt)}function Re(s){let o="",F="";for(;o=It(s);)F+=o;return F}function St(s){let o="";for(;;){const F=s.currentChar();if(F==="{"||F==="}"||F==="@"||F==="|"||!F)break;if(F===oe||F===Z)if(ae(s))o+=F,s.next();else{if(X(s))break;o+=F,s.next()}else o+=F,s.next()}return o}function vt(s){b(s);let o="",F="";for(;o=Ot(s);)F+=o;const S=s.currentChar();if(S&&S!=="}"&&S!==fe&&S!==oe&&S!==Z&&S!==" "){const W=ze(s);return N(P.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,F+W),F+W}return s.currentChar()===fe&&N(P.UNTERMINATED_CLOSING_BRACE,r(),0),F}function yt(s){b(s);let o="";return s.currentChar()==="-"?(s.next(),o+=`-${Re(s)}`):o+=Re(s),s.currentChar()===fe&&N(P.UNTERMINATED_CLOSING_BRACE,r(),0),o}function Pt(s){return s!==Xt&&s!==Z}function qn(s){b(s),y(s,"'");let o="",F="";for(;o=G(s,Pt);)o==="\\"?F+=kt(s):F+=o;const S=s.currentChar();return S===Z||S===fe?(N(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),S===Z&&(s.next(),y(s,"'")),F):(y(s,"'"),F)}function kt(s){const o=s.currentChar();switch(o){case"\\":case"'":return s.next(),`\\${o}`;case"u":return Ze(s,o,4);case"U":return Ze(s,o,6);default:return N(P.UNKNOWN_ESCAPE_SEQUENCE,r(),0,o),""}}function Ze(s,o,F){y(s,o);let S="";for(let W=0;W<F;W++){const H=_e(s);if(!H){N(P.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${o}${S}${s.currentChar()}`);break}S+=H}return`\\${o}${S}`}function Rt(s){return s!=="{"&&s!=="}"&&s!==oe&&s!==Z}function ze(s){b(s);let o="",F="";for(;o=G(s,Rt);)F+=o;return F}function Bt(s){let o="",F="";for(;o=Lt(s);)F+=o;return F}function Mt(s){const o=F=>{const S=s.currentChar();return S==="{"||S==="@"||S==="|"||S==="("||S===")"||!S||S===oe?F:(F+=S,s.next(),o(F))};return o("")}function Be(s){b(s);const o=y(s,"|");return b(s),o}function Me(s,o){let F=null;switch(s.currentChar()){case"{":return o.braceNest>=1&&N(P.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),s.next(),F=d(o,2,"{"),b(s),o.braceNest++,F;case"}":return o.braceNest>0&&o.currentType===2&&N(P.EMPTY_PLACEHOLDER,r(),0),s.next(),F=d(o,3,"}"),o.braceNest--,o.braceNest>0&&b(s),o.inLinked&&o.braceNest===0&&(o.inLinked=!1),F;case"@":return o.braceNest>0&&N(P.UNTERMINATED_CLOSING_BRACE,r(),0),F=pe(s,o)||L(o),o.braceNest=0,F;default:{let W=!0,H=!0,M=!0;if(X(s))return o.braceNest>0&&N(P.UNTERMINATED_CLOSING_BRACE,r(),0),F=d(o,1,Be(s)),o.braceNest=0,o.inLinked=!1,F;if(o.braceNest>0&&(o.currentType===4||o.currentType===5||o.currentType===6))return N(P.UNTERMINATED_CLOSING_BRACE,r(),0),o.braceNest=0,we(s,o);if(W=C(s,o))return F=d(o,4,vt(s)),b(s),F;if(H=_(s,o))return F=d(o,5,yt(s)),b(s),F;if(M=T(s,o))return F=d(o,6,qn(s)),b(s),F;if(!W&&!H&&!M)return F=d(o,12,ze(s)),N(P.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,F.value),b(s),F;break}}return F}function pe(s,o){const{currentType:F}=o;let S=null;const W=s.currentChar();switch((F===7||F===8||F===11||F===9)&&(W===Z||W===oe)&&N(P.INVALID_LINKED_FORMAT,r(),0),W){case"@":return s.next(),S=d(o,7,"@"),o.inLinked=!0,S;case".":return b(s),s.next(),d(o,8,".");case":":return b(s),s.next(),d(o,9,":");default:return X(s)?(S=d(o,1,Be(s)),o.braceNest=0,o.inLinked=!1,S):O(s,o)||k(s,o)?(b(s),pe(s,o)):m(s,o)?(b(s),d(o,11,Bt(s))):U(s,o)?(b(s),W==="{"?Me(s,o)||S:d(o,10,Mt(s))):(F===7&&N(P.INVALID_LINKED_FORMAT,r(),0),o.braceNest=0,o.inLinked=!1,we(s,o))}}function we(s,o){let F={type:13};if(o.braceNest>0)return Me(s,o)||L(o);if(o.inLinked)return pe(s,o)||L(o);switch(s.currentChar()){case"{":return Me(s,o)||L(o);case"}":return N(P.UNBALANCED_CLOSING_BRACE,r(),0),s.next(),d(o,3,"}");case"@":return pe(s,o)||L(o);default:{if(X(s))return F=d(o,1,Be(s)),o.braceNest=0,o.inLinked=!1,F;if(ae(s))return d(o,0,St(s));break}}return F}function wt(){const{currentType:s,offset:o,startLoc:F,endLoc:S}=l;return l.lastType=s,l.lastOffset=o,l.lastStartLoc=F,l.lastEndLoc=S,l.offset=a(),l.startLoc=r(),u.currentChar()===fe?d(l,13):we(u,l)}return{nextToken:wt,currentOffset:a,currentPosition:r,context:A}}const Pu="parser",ku=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ru(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const u=parseInt(t||n,16);return u<=55295||u>=57344?String.fromCodePoint(u):"�"}}}function Bu(e={}){const t=e.location!==!1,{onError:n}=e;function u(D,E,C,_,...T){const O=D.currentPosition();if(O.offset+=_,O.column+=_,n){const m=t?ut(C,O):null,k=Le(E,m,{domain:Pu,args:T});n(k)}}function a(D,E,C){const _={type:D};return t&&(_.start=E,_.end=E,_.loc={start:C,end:C}),_}function r(D,E,C,_){t&&(D.end=E,D.loc&&(D.loc.end=C))}function i(D,E){const C=D.context(),_=a(3,C.offset,C.startLoc);return _.value=E,r(_,D.currentOffset(),D.currentPosition()),_}function c(D,E){const C=D.context(),{lastOffset:_,lastStartLoc:T}=C,O=a(5,_,T);return O.index=parseInt(E,10),D.nextToken(),r(O,D.currentOffset(),D.currentPosition()),O}function l(D,E){const C=D.context(),{lastOffset:_,lastStartLoc:T}=C,O=a(4,_,T);return O.key=E,D.nextToken(),r(O,D.currentOffset(),D.currentPosition()),O}function A(D,E){const C=D.context(),{lastOffset:_,lastStartLoc:T}=C,O=a(9,_,T);return O.value=E.replace(ku,Ru),D.nextToken(),r(O,D.currentOffset(),D.currentPosition()),O}function g(D){const E=D.nextToken(),C=D.context(),{lastOffset:_,lastStartLoc:T}=C,O=a(8,_,T);return E.type!==11?(u(D,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),O.value="",r(O,_,T),{nextConsumeToken:E,node:O}):(E.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,ie(E)),O.value=E.value||"",r(O,D.currentOffset(),D.currentPosition()),{node:O})}function N(D,E){const C=D.context(),_=a(7,C.offset,C.startLoc);return _.value=E,r(_,D.currentOffset(),D.currentPosition()),_}function d(D){const E=D.context(),C=a(6,E.offset,E.startLoc);let _=D.nextToken();if(_.type===8){const T=g(D);C.modifier=T.node,_=T.nextConsumeToken||D.nextToken()}switch(_.type!==9&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(_)),_=D.nextToken(),_.type===2&&(_=D.nextToken()),_.type){case 10:_.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(_)),C.key=N(D,_.value||"");break;case 4:_.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(_)),C.key=l(D,_.value||"");break;case 5:_.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(_)),C.key=c(D,_.value||"");break;case 6:_.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(_)),C.key=A(D,_.value||"");break;default:{u(D,P.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const T=D.context(),O=a(7,T.offset,T.startLoc);return O.value="",r(O,T.offset,T.startLoc),C.key=O,r(C,T.offset,T.startLoc),{nextConsumeToken:_,node:C}}}return r(C,D.currentOffset(),D.currentPosition()),{node:C}}function L(D){const E=D.context(),C=E.currentType===1?D.currentOffset():E.offset,_=E.currentType===1?E.endLoc:E.startLoc,T=a(2,C,_);T.items=[];let O=null;do{const U=O||D.nextToken();switch(O=null,U.type){case 0:U.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(U)),T.items.push(i(D,U.value||""));break;case 5:U.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(U)),T.items.push(c(D,U.value||""));break;case 4:U.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(U)),T.items.push(l(D,U.value||""));break;case 6:U.value==null&&u(D,P.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ie(U)),T.items.push(A(D,U.value||""));break;case 7:{const X=d(D);T.items.push(X.node),O=X.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const m=E.currentType===1?E.lastOffset:D.currentOffset(),k=E.currentType===1?E.lastEndLoc:D.currentPosition();return r(T,m,k),T}function y(D,E,C,_){const T=D.context();let O=_.items.length===0;const m=a(1,E,C);m.cases=[],m.cases.push(_);do{const k=L(D);O||(O=k.items.length===0),m.cases.push(k)}while(T.currentType!==13);return O&&u(D,P.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),r(m,D.currentOffset(),D.currentPosition()),m}function h(D){const E=D.context(),{offset:C,startLoc:_}=E,T=L(D);return E.currentType===13?T:y(D,C,_,T)}function b(D){const E=yu(D,J({},e)),C=E.context(),_=a(0,C.offset,C.startLoc);return t&&_.loc&&(_.loc.source=D),_.body=h(E),e.onCacheKey&&(_.cacheKey=e.onCacheKey(D)),C.currentType!==13&&u(E,P.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,D[C.offset]||""),r(_,E.currentOffset(),E.currentPosition()),_}return{parse:b}}function ie(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 Mu(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function qt(e,t){for(let n=0;n<e.length;n++)rt(e[n],t)}function rt(e,t){switch(e.type){case 1:qt(e.cases,t),t.helper("plural");break;case 2:qt(e.items,t);break;case 6:{rt(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 wu(e,t={}){const n=Mu(e);n.helper("normalize"),e.body&&rt(e.body,n);const u=n.context();e.helpers=Array.from(u.helpers)}function Uu(e){const t=e.body;return t.type===2?Jt(t):t.cases.forEach(n=>Jt(n)),e}function Jt(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 u=e.items[n];if(!(u.type===3||u.type===9)||u.value==null)break;t.push(u.value)}if(t.length===e.items.length){e.static=nt(t);for(let n=0;n<e.items.length;n++){const u=e.items[n];(u.type===3||u.type===9)&&delete u.value}}}}const Vu="minifier";function Te(e){switch(e.t=e.type,e.type){case 0:{const t=e;Te(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let u=0;u<n.length;u++)Te(n[u]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let u=0;u<n.length;u++)Te(n[u]);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;Te(t.key),t.k=t.key,delete t.key,t.modifier&&(Te(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 Le(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Vu,args:[e.type]})}delete e.type}const $u="parser";function Wu(e,t){const{filename:n,breakLineCode:u,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:u,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const c=()=>i;function l(h,b){i.code+=h}function A(h,b=!0){const D=b?u:"";l(a?D+" ".repeat(h):D)}function g(h=!0){const b=++i.indentLevel;h&&A(b)}function N(h=!0){const b=--i.indentLevel;h&&A(b)}function d(){A(i.indentLevel)}return{context:c,push:l,indent:g,deindent:N,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function Gu(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Oe(e,t.key),t.modifier?(e.push(", "),Oe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function xu(e,t){const{helper:n,needIndent:u}=e;e.push(`${n("normalize")}([`),e.indent(u());const a=t.items.length;for(let r=0;r<a&&(Oe(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(u()),e.push("])")}function Yu(e,t){const{helper:n,needIndent:u}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(u());const a=t.cases.length;for(let r=0;r<a&&(Oe(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(u()),e.push("])")}}function Hu(e,t){t.body?Oe(e,t.body):e.push("null")}function Oe(e,t){const{helper:n}=e;switch(t.type){case 0:Hu(e,t);break;case 1:Yu(e,t);break;case 2:xu(e,t);break;case 6:Gu(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 Le(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:$u,args:[t.type]})}}const Ku=(e,t={})=>{const n=I(t.mode)?t.mode:"normal",u=I(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
-
`,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=Wu(e,{filename:u,breakLineCode:a,needIndent:r});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(r),i.length>0&&(c.push(`const { ${nt(i.map(g=>`${g}: _${g}`),", ")} } = ctx`),c.newline()),c.push("return "),Oe(c,e),c.deindent(r),c.push("}"),delete e.helpers;const{code:l,map:A}=c.context();return{ast:e,code:l,map:A?A.toJSON():void 0}};function ju(e,t={}){const n=J({},t),u=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,c=Bu(n).parse(e);return u?(r&&Uu(c),a&&Te(c),{ast:c,code:""}):(wu(c,n),Ku(c,n))}/*!
|
|
13
|
-
* core-base v11.2.1
|
|
14
|
-
* (c) 2025 kazuya kawaguchi
|
|
15
|
-
* Released under the MIT License.
|
|
16
|
-
*/function Xu(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function re(e){return R(e)&&at(e)===0&&(ue(e,"b")||ue(e,"body"))}const Qt=["b","body"];function qu(e){return de(e,Qt)}const Zt=["c","cases"];function Ju(e){return de(e,Zt,[])}const zt=["s","static"];function Qu(e){return de(e,zt)}const en=["i","items"];function Zu(e){return de(e,en,[])}const tn=["t","type"];function at(e){return de(e,tn)}const nn=["v","value"];function Ye(e,t){const n=de(e,nn);if(n!=null)return n;throw Se(t)}const un=["m","modifier"];function zu(e){return de(e,un)}const rn=["k","key"];function er(e){const t=de(e,rn);if(t)return t;throw Se(6)}function de(e,t,n){for(let u=0;u<t.length;u++){const a=t[u];if(ue(e,a)&&e[a]!=null)return e[a]}return n}const an=[...Qt,...Zt,...zt,...en,...rn,...un,...nn,...tn];function Se(e){return new Error(`unhandled node type: ${e}`)}function st(e){return n=>tr(n,e)}function tr(e,t){const n=qu(t);if(n==null)throw Se(0);if(at(n)===1){const r=Ju(n);return e.plural(r.reduce((i,c)=>[...i,sn(e,c)],[]))}else return sn(e,n)}function sn(e,t){const n=Qu(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const u=Zu(t).reduce((a,r)=>[...a,ot(e,r)],[]);return e.normalize(u)}}function ot(e,t){const n=at(t);switch(n){case 3:return Ye(t,n);case 9:return Ye(t,n);case 4:{const u=t;if(ue(u,"k")&&u.k)return e.interpolate(e.named(u.k));if(ue(u,"key")&&u.key)return e.interpolate(e.named(u.key));throw Se(n)}case 5:{const u=t;if(ue(u,"i")&&q(u.i))return e.interpolate(e.list(u.i));if(ue(u,"index")&&q(u.index))return e.interpolate(e.list(u.index));throw Se(n)}case 6:{const u=t,a=zu(u),r=er(u);return e.linked(ot(e,r),a?ot(e,a):void 0,e.type)}case 7:return Ye(t,n);case 8:return Ye(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const nr="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function ur(e,t){t&&Tu(e)&&se(Ve(nr,{source:e}))}const rr=e=>e;let He=V();function ar(e,t={}){let n=!1;const u=t.onError||gu;return t.onError=a=>{n=!0,u(a)},{...ju(e,t),detectError:n}}function sr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){const n=Y(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&ur(e,n);const a=(t.onCacheKey||rr)(e),r=He[a];if(r)return r;const{ast:i,detectError:c}=ar(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=st(i);return c?l:He[a]=l}else{if(process.env.NODE_ENV!=="production"&&!re(e))return se(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const u=He[n];return u||(He[n]=st(e))}else return st(e)}}let ve=null;function or(e){ve=e}function ir(e,t,n){ve&&ve.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const lr=cr("function:translate");function cr(e){return t=>ve&&ve.emit(e,t)}const z={INVALID_ARGUMENT:pu,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},Dr=24;function Ee(e){return Le(e,null,process.env.NODE_ENV!=="production"?{messages:fr}:void 0)}const fr={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function it(e,t){return t.locale!=null?on(t.locale):on(e.locale)}let lt;function on(e){if(I(e))return e;if($(e)){if(e.resolvedOnce&<!=null)return lt;if(e.constructor.name==="Function"){const t=e();if(du(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return lt=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Er(e,t,n){return[...new Set([n,...x(t)?t:R(t)?Object.keys(t):I(t)?[t]:[n]])]}function ln(e,t,n){const u=I(n)?n:je,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(u);if(!r){r=[];let i=[n];for(;x(i);)i=cn(r,i,t);const c=x(t)||!B(t)?t:t.default?t.default:null;i=I(c)?[c]:c,x(i)&&cn(r,i,!1),a.__localeChainCache.set(u,r)}return r}function cn(e,t,n){let u=!0;for(let a=0;a<t.length&&Y(u);a++){const r=t[a];I(r)&&(u=_r(e,t[a],n))}return u}function _r(e,t,n){let u;const a=t.split("-");do{const r=a.join("-");u=dr(e,r,n),a.splice(-1,1)}while(a.length&&u===!0);return u}function dr(e,t,n){let u=!1;if(!e.includes(t)&&(u=!0,t)){u=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(x(n)||B(n))&&n[a]&&(u=n[a])}return u}const Fe=[];Fe[0]={w:[0],i:[3,0],"[":[4],o:[7]},Fe[1]={w:[1],".":[2],"[":[4],o:[7]},Fe[2]={w:[2],i:[3,0],0:[3,0]},Fe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Fe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Fe[5]={"'":[4,0],o:8,l:[5,0]},Fe[6]={'"':[4,0],o:8,l:[6,0]};const Fr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mr(e){return Fr.test(e)}function Ar(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 Cr(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 pr(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:mr(t)?Ar(t):"*"+t}function Nr(e){const t=[];let n=-1,u=0,a=0,r,i,c,l,A,g,N;const d=[];d[0]=()=>{i===void 0?i=c:i+=c},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,u=4,d[0]();else{if(a=0,i===void 0||(i=pr(i),i===!1))return!1;d[1]()}};function L(){const y=e[n+1];if(u===5&&y==="'"||u===6&&y==='"')return n++,c="\\"+y,d[0](),!0}for(;u!==null;)if(n++,r=e[n],!(r==="\\"&&L())){if(l=Cr(r),N=Fe[u],A=N[l]||N.l||8,A===8||(u=A[0],A[1]!==void 0&&(g=d[A[1]],g&&(c=r,g()===!1))))return;if(u===7)return t}}const Dn=new Map;function gr(e,t){return R(e)?e[t]:null}function Lr(e,t){if(!R(e))return null;let n=Dn.get(t);if(n||(n=Nr(t),n&&Dn.set(t,n)),!n)return null;const u=n.length;let a=e,r=0;for(;r<u;){const i=n[r];if(an.includes(i)&&re(a))return null;const c=a[i];if(c===void 0||$(a))return null;a=c,r++}return a}const ee={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},Tr=8,Or={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.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 Ce(e,...t){return Ve(Or[e],...t)}const hr="11.2.1",Ke=-1,je="en-US",Xe="",fn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ir(){return{upper:(e,t)=>t==="text"&&I(e)?e.toUpperCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&I(e)?e.toLowerCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&I(e)?fn(e):t==="vnode"&&R(e)&&"__v_isVNode"in e?fn(e.children):e}}let En;function br(e){En=e}let _n;function Sr(e){_n=e}let dn;function vr(e){dn=e}let Fn=null;const yr=e=>{Fn=e},Pr=()=>Fn;let mn=null;const An=e=>{mn=e},kr=()=>mn;let Cn=0;function Rr(e={}){const t=$(e.onWarn)?e.onWarn:se,n=I(e.version)?e.version:hr,u=I(e.locale)||$(e.locale)?e.locale:je,a=$(u)?je:u,r=x(e.fallbackLocale)||B(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=B(e.messages)?e.messages:ct(a),c=B(e.datetimeFormats)?e.datetimeFormats:ct(a),l=B(e.numberFormats)?e.numberFormats:ct(a),A=J(V(),e.modifiers,Ir()),g=e.pluralRules||V(),N=$(e.missing)?e.missing:null,d=Y(e.missingWarn)||$e(e.missingWarn)?e.missingWarn:!0,L=Y(e.fallbackWarn)||$e(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,h=!!e.unresolving,b=$(e.postTranslation)?e.postTranslation:null,D=B(e.processor)?e.processor:null,E=Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,_=$(e.messageCompiler)?e.messageCompiler:En;process.env.NODE_ENV!=="production"&&$(e.messageCompiler)&&ou(Ce(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const T=$(e.messageResolver)?e.messageResolver:_n||gr,O=$(e.localeFallbacker)?e.localeFallbacker:dn||Er,m=R(e.fallbackContext)?e.fallbackContext:void 0,k=e,U=R(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,X=R(k.__numberFormatters)?k.__numberFormatters:new Map,ae=R(k.__meta)?k.__meta:{};Cn++;const G={version:n,cid:Cn,locale:u,fallbackLocale:r,messages:i,modifiers:A,pluralRules:g,missing:N,missingWarn:d,fallbackWarn:L,fallbackFormat:y,unresolving:h,postTranslation:b,processor:D,warnHtmlMessage:E,escapeParameter:C,messageCompiler:_,messageResolver:T,localeFallbacker:O,fallbackContext:m,onWarn:t,__meta:ae};return G.datetimeFormats=c,G.numberFormats=l,G.__datetimeFormatters=U,G.__numberFormatters=X,process.env.NODE_ENV!=="production"&&(G.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ir(G,n,ae),G}const ct=e=>({[e]:V()});function qe(e,t){return e instanceof RegExp?e.test(t):e}function pn(e,t){return e instanceof RegExp?e.test(t):e}function Dt(e,t,n,u,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 I(c)?c:t}else return process.env.NODE_ENV!=="production"&&pn(u,t)&&i(Ce(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function ye(e,t,n){const u=e;u.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Nn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Br(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let u=n+1;u<t.length;u++)if(Nn(e,t[u]))return!0;return!1}const gn=typeof Intl<"u",Ln={dateTimeFormat:gn&&typeof Intl.DateTimeFormat<"u",numberFormat:gn&&typeof Intl.NumberFormat<"u"};function Tn(e,...t){const{datetimeFormats:n,unresolving:u,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!Ln.dateTimeFormat)return r(Ce(ee.CANNOT_FORMAT_DATE)),Xe;const[l,A,g,N]=ft(...t),d=Y(g.missingWarn)?g.missingWarn:e.missingWarn,L=Y(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,y=!!g.part,h=it(e,g),b=i(e,a,h);if(!I(l)||l==="")return new Intl.DateTimeFormat(h,N).format(A);let D={},E,C=null,_=h,T=null;const O="datetime format";for(let U=0;U<b.length;U++){if(E=T=b[U],process.env.NODE_ENV!=="production"&&h!==E&&qe(L,l)&&r(Ce(ee.FALLBACK_TO_DATE_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&h!==E){const X=e.__v_emitter;X&&X.emit("fallback",{type:O,key:l,from:_,to:T,groupId:`${O}:${l}`})}if(D=n[E]||{},C=D[l],B(C))break;Dt(e,l,E,d,O),_=T}if(!B(C)||!I(E))return u?Ke:l;let m=`${E}__${l}`;We(N)||(m=`${m}__${JSON.stringify(N)}`);let k=c.get(m);return k||(k=new Intl.DateTimeFormat(E,J({},C,N)),c.set(m,k)),y?k.formatToParts(A):k.format(A)}const On=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ft(...e){const[t,n,u,a]=e,r=V();let i=V(),c;if(I(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const A=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();c=new Date(A);try{c.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Du(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);c=t}else if(q(t))c=t;else throw Ee(z.INVALID_ARGUMENT);return I(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{On.includes(l)?i[l]=n[l]:r[l]=n[l]}),I(u)?r.locale=u:B(u)&&(i=u),B(a)&&(i=a),[r.key||"",c,r,i]}function hn(e,t,n){const u=e;for(const a in n){const r=`${t}__${a}`;u.__datetimeFormatters.has(r)&&u.__datetimeFormatters.delete(r)}}function In(e,...t){const{numberFormats:n,unresolving:u,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!Ln.numberFormat)return r(Ce(ee.CANNOT_FORMAT_NUMBER)),Xe;const[l,A,g,N]=Et(...t),d=Y(g.missingWarn)?g.missingWarn:e.missingWarn,L=Y(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,y=!!g.part,h=it(e,g),b=i(e,a,h);if(!I(l)||l==="")return new Intl.NumberFormat(h,N).format(A);let D={},E,C=null,_=h,T=null;const O="number format";for(let U=0;U<b.length;U++){if(E=T=b[U],process.env.NODE_ENV!=="production"&&h!==E&&qe(L,l)&&r(Ce(ee.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&h!==E){const X=e.__v_emitter;X&&X.emit("fallback",{type:O,key:l,from:_,to:T,groupId:`${O}:${l}`})}if(D=n[E]||{},C=D[l],B(C))break;Dt(e,l,E,d,O),_=T}if(!B(C)||!I(E))return u?Ke:l;let m=`${E}__${l}`;We(N)||(m=`${m}__${JSON.stringify(N)}`);let k=c.get(m);return k||(k=new Intl.NumberFormat(E,J({},C,N)),c.set(m,k)),y?k.formatToParts(A):k.format(A)}const bn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Et(...e){const[t,n,u,a]=e,r=V();let i=V();if(!q(t))throw Ee(z.INVALID_ARGUMENT);const c=t;return I(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{bn.includes(l)?i[l]=n[l]:r[l]=n[l]}),I(u)?r.locale=u:B(u)&&(i=u),B(a)&&(i=a),[r.key||"",c,r,i]}function Sn(e,t,n){const u=e;for(const a in n){const r=`${t}__${a}`;u.__numberFormatters.has(r)&&u.__numberFormatters.delete(r)}}const Mr=e=>e,wr=e=>"",Ur="text",Vr=e=>e.length===0?"":nt(e),$r=Fu;function vn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Wr(e){const t=q(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(q(e.named.count)||q(e.named.n))?q(e.named.count)?e.named.count:q(e.named.n)?e.named.n:t:t}function Gr(e,t){t.count||(t.count=e),t.n||(t.n=e)}function xr(e={}){const t=e.locale,n=Wr(e),u=R(e.pluralRules)&&I(t)&&$(e.pluralRules[t])?e.pluralRules[t]:vn,a=R(e.pluralRules)&&I(t)&&$(e.pluralRules[t])?vn:void 0,r=D=>D[u(n,D.length,a)],i=e.list||[],c=D=>i[D],l=e.named||V();q(e.pluralIndex)&&Gr(n,l);const A=D=>l[D];function g(D,E){const C=$(e.messages)?e.messages(D,!!E):R(e.messages)?e.messages[D]:!1;return C||(e.parent?e.parent.message(D):wr)}const N=D=>e.modifiers?e.modifiers[D]:Mr,d=B(e.processor)&&$(e.processor.normalize)?e.processor.normalize:Vr,L=B(e.processor)&&$(e.processor.interpolate)?e.processor.interpolate:$r,y=B(e.processor)&&I(e.processor.type)?e.processor.type:Ur,b={list:c,named:A,plural:r,linked:(D,...E)=>{const[C,_]=E;let T="text",O="";E.length===1?R(C)?(O=C.modifier||O,T=C.type||T):I(C)&&(O=C||O):E.length===2&&(I(C)&&(O=C||O),I(_)&&(T=_||T));const m=g(D,!0)(b),k=T==="vnode"&&x(m)&&O?m[0]:m;return O?N(O)(k,T):k},message:g,type:y,interpolate:L,normalize:d,values:J(V(),i,l)};return b}const yn=()=>"",ne=e=>$(e);function Pn(e,...t){const{fallbackFormat:n,postTranslation:u,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:c}=e,[l,A]=_t(...t),g=Y(A.missingWarn)?A.missingWarn:e.missingWarn,N=Y(A.fallbackWarn)?A.fallbackWarn:e.fallbackWarn,d=Y(A.escapeParameter)?A.escapeParameter:e.escapeParameter,L=!!A.resolvedMessage,y=I(A.default)||Y(A.default)?Y(A.default)?r?l:()=>l:A.default:n?r?l:()=>l:null,h=n||y!=null&&(I(y)||$(y)),b=it(e,A);d&&Yr(A);let[D,E,C]=L?[l,b,c[b]||V()]:kn(e,l,b,i,N,g),_=D,T=l;if(!L&&!(I(_)||re(_)||ne(_))&&h&&(_=y,T=_),!L&&(!(I(_)||re(_)||ne(_))||!I(E)))return a?Ke:l;if(process.env.NODE_ENV!=="production"&&I(_)&&e.messageCompiler==null)return se(`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 '${l}'.`),l;let O=!1;const m=()=>{O=!0},k=ne(_)?_:Rn(e,l,E,_,T,m);if(O)return _;const U=Xr(e,E,C,A),X=xr(U),ae=Hr(e,k,X);let G=u?u(ae,l):ae;if(d&&I(G)&&(G=Eu(G)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:I(l)?l:ne(_)?_.key:"",locale:E||(ne(_)?_.locale:""),format:I(_)?_:ne(_)?_.source:"",message:G};he.meta=J({},e.__meta,Pr()||{}),lr(he)}return G}function Yr(e){x(e.list)?e.list=e.list.map(t=>I(t)?Yt(t):t):R(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=Yt(e.named[t]))})}function kn(e,t,n,u,a,r){const{messages:i,onWarn:c,messageResolver:l,localeFallbacker:A}=e,g=A(e,u,n);let N=V(),d,L=null,y=n,h=null;const b="translate";for(let D=0;D<g.length;D++){if(d=h=g[D],process.env.NODE_ENV!=="production"&&n!==d&&!Nn(n,d)&&qe(a,t)&&c(Ce(ee.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const T=e.__v_emitter;T&&T.emit("fallback",{type:b,key:t,from:y,to:h,groupId:`${b}:${t}`})}N=i[d]||V();let E=null,C,_;if(process.env.NODE_ENV!=="production"&&ce&&(E=window.performance.now(),C="intlify-message-resolve-start",_="intlify-message-resolve-end",te&&te(C)),(L=l(N,t))===null&&(L=N[t]),process.env.NODE_ENV!=="production"&&ce){const T=window.performance.now(),O=e.__v_emitter;O&&E&&L&&O.emit("message-resolve",{type:"message-resolve",key:t,message:L,time:T-E,groupId:`${b}:${t}`}),C&&_&&te&&me&&(te(_),me("intlify message resolve",C,_))}if(I(L)||re(L)||ne(L))break;if(!Br(d,g)){const T=Dt(e,t,d,r,b);T!==t&&(L=T)}y=h}return[L,d,N]}function Rn(e,t,n,u,a,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ne(u)){const d=u;return d.locale=d.locale||n,d.key=d.key||t,d}if(i==null){const d=(()=>u);return d.locale=n,d.key=t,d}let l=null,A,g;process.env.NODE_ENV!=="production"&&ce&&(l=window.performance.now(),A="intlify-message-compilation-start",g="intlify-message-compilation-end",te&&te(A));const N=i(u,Kr(e,n,a,u,c,r));if(process.env.NODE_ENV!=="production"&&ce){const d=window.performance.now(),L=e.__v_emitter;L&&l&&L.emit("message-compilation",{type:"message-compilation",message:u,time:d-l,groupId:`translate:${t}`}),A&&g&&te&&me&&(te(g),me("intlify message compilation",A,g))}return N.locale=n,N.key=t,N.source=u,N}function Hr(e,t,n){let u=null,a,r;process.env.NODE_ENV!=="production"&&ce&&(u=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",te&&te(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&ce){const c=window.performance.now(),l=e.__v_emitter;l&&u&&l.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-u,groupId:`translate:${t.key}`}),a&&r&&te&&me&&(te(r),me("intlify message evaluation",a,r))}return i}function _t(...e){const[t,n,u]=e,a=V();if(!I(t)&&!q(t)&&!ne(t)&&!re(t))throw Ee(z.INVALID_ARGUMENT);const r=q(t)?String(t):(ne(t),t);return q(n)?a.plural=n:I(n)?a.default=n:B(n)&&!We(n)?a.named=n:x(n)&&(a.list=n),q(u)?a.plural=u:I(u)?a.default=u:B(u)&&J(a,u),[r,a]}function Kr(e,t,n,u,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=jr(u),l=`Message compilation error: ${i.message}`,A=i.location&&c&&mu(c,i.location.start.offset,i.location.end.offset),g=e.__v_emitter;g&&c&&g.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(A?`${l}
|
|
17
|
-
${A}`:l)}else throw i},onCacheKey:i=>lu(t,n,i)}}function jr(e){if(I(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Xr(e,t,n,u){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:l,missingWarn:A,fallbackContext:g}=e,d={locale:t,modifiers:a,pluralRules:r,messages:(L,y)=>{let h=i(n,L);if(h==null&&(g||y)){const[,,b]=kn(g||e,L,t,c,l,A);h=i(b,L)}if(I(h)||re(h)){let b=!1;const E=Rn(e,L,t,h,L,()=>{b=!0});return b?yn:E}else return ne(h)?h:yn}};return e.processor&&(d.processor=e.processor),u.list&&(d.list=u.list),u.named&&(d.named=u.named),q(u.plural)&&(d.pluralIndex=u.plural),d}Xu();/*!
|
|
18
|
-
* vue-i18n v11.2.1
|
|
19
|
-
* (c) 2025 kazuya kawaguchi
|
|
20
|
-
* Released under the MIT License.
|
|
21
|
-
*/const qr="11.2.1";function Jr(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ae().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ae().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ae().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1)}const Q={UNEXPECTED_RETURN_TYPE:Dr,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 Pe(e,...t){return Le(e,null,process.env.NODE_ENV!=="production"?{messages:Qr,args:t}:void 0)}const Qr={[Q.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Q.INVALID_ARGUMENT]:"Invalid argument",[Q.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Q.NOT_INSTALLED]:"Need to install with `app.use` function",[Q.UNEXPECTED_ERROR]:"Unexpected error",[Q.REQUIRED_VALUE]:"Required in value: {0}",[Q.INVALID_VALUE]:"Invalid value",[Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Q.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Q.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Q.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=De("__translateVNode"),Ft=De("__datetimeParts"),mt=De("__numberParts"),At=De("__enableEmitter"),Ct=De("__disableEmitter"),Zr=De("__setPluralRules"),Bn=De("__injectWithOption"),pt=De("__dispose"),le={FALLBACK_TO_ROOT:Tr,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},zr={[le.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[le.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[le.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[le.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
22
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[le.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[le.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Je(e,...t){return Ve(zr[e],...t)}function ke(e){if(!R(e)||re(e))return e;for(const t in e)if(ue(e,t))if(!t.includes("."))R(e[t])&&ke(e[t]);else{const n=t.split("."),u=n.length-1;let a=e,r=!1;for(let i=0;i<u;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in a||(a[n[i]]=V()),!R(a[n[i]])){process.env.NODE_ENV!=="production"&&se(Je(le.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}if(r||(re(a)?an.includes(n[u])||delete e[t]:(a[n[u]]=e[t],delete e[t])),!re(a)){const i=a[n[u]];R(i)&&ke(i)}}return e}function Mn(e,t){const{messages:n,__i18n:u,messageResolver:a,flatJson:r}=t,i=B(n)?n:x(u)?V():{[e]:V()};if(x(u)&&u.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:l,resource:A}=c;l?(i[l]=i[l]||V(),xe(A,i[l])):xe(A,i)}else I(c)&&xe(JSON.parse(c),i)}),a==null&&r)for(const c in i)ue(i,c)&&ke(i[c]);return i}function wn(e){return e.type}function ea(e,t,n){let u=R(t.messages)?t.messages:V();"__i18nGlobal"in n&&(u=Mn(e.locale.value,{messages:u,__i18n:n.__i18nGlobal}));const a=Object.keys(u);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,u[r])});{if(R(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(R(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Un(e){return v.createVNode(v.Text,null,e,0)}function Nt(){return $t.currentInstance||$t.getCurrentInstance()}const Vn="__INTLIFY_META__",$n=()=>[],ta=()=>!1;let Wn=0;function Gn(e){return((t,n,u,a)=>e(n,u,Nt()||void 0,a))}const na=()=>{const e=Nt();let t=null;return e&&(t=wn(e)[Vn])?{[Vn]:t}:null};function ua(e={}){const{__root:t,__injectWithOption:n}=e,u=t===void 0,a=e.flatJson,r=ce?v.ref:v.shallowRef;let i=Y(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:I(e.locale)?e.locale:je),l=r(t&&i?t.fallbackLocale.value:I(e.fallbackLocale)||x(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),A=r(Mn(c.value,e)),g=r(B(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),N=r(B(e.numberFormats)?e.numberFormats:{[c.value]:{}});let d=t?t.missingWarn:Y(e.missingWarn)||$e(e.missingWarn)?e.missingWarn:!0,L=t?t.fallbackWarn:Y(e.fallbackWarn)||$e(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:Y(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,b=$(e.missing)?e.missing:null,D=$(e.missing)?Gn(e.missing):null,E=$(e.postTranslation)?e.postTranslation:null,C=t?t.warnHtmlMessage:Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const T=t?t.modifiers:B(e.modifiers)?e.modifiers:{};let O=e.pluralRules||t&&t.pluralRules,m;m=(()=>{u&&An(null);const f={version:qr,locale:c.value,fallbackLocale:l.value,messages:A.value,modifiers:T,pluralRules:O,missing:D===null?void 0:D,missingWarn:d,fallbackWarn:L,fallbackFormat:h,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:C,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};f.datetimeFormats=g.value,f.numberFormats=N.value,f.__datetimeFormatters=B(m)?m.__datetimeFormatters:void 0,f.__numberFormatters=B(m)?m.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(f.__v_emitter=B(m)?m.__v_emitter:void 0);const p=Rr(f);return u&&An(p),p})(),ye(m,c.value,l.value);function U(){return[c.value,l.value,A.value,g.value,N.value]}const X=v.computed({get:()=>c.value,set:f=>{m.locale=f,c.value=f}}),ae=v.computed({get:()=>l.value,set:f=>{m.fallbackLocale=f,l.value=f,ye(m,c.value,f)}}),G=v.computed(()=>A.value),he=v.computed(()=>g.value),Lt=v.computed(()=>N.value);function Tt(){return $(E)?E:null}function Ot(f){E=f,m.postTranslation=f}function ht(){return b}function It(f){f!==null&&(D=Gn(f)),b=f,m.missing=D}function bt(f,p){return f!=="translate"||!p.resolvedMessage}const _e=(f,p,w,K,Ne,et)=>{U();let Ie;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(m.fallbackContext=t?kr():void 0),Ie=f(m)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(m.fallbackContext=void 0)}if(w!=="translate exists"&&q(Ie)&&Ie===Ke||w==="translate exists"&&!Ie){const[ge,Aa]=p();if(process.env.NODE_ENV!=="production"&&t&&I(ge)&&bt(w,Aa)&&(y&&(qe(L,ge)||pn(d,ge))&&se(Je(le.FALLBACK_TO_ROOT,{key:ge,type:w})),process.env.NODE_ENV!=="production")){const{__v_emitter:Jn}=m;Jn&&y&&Jn.emit("fallback",{type:w,key:ge,to:"global",groupId:`${w}:${ge}`})}return t&&y?K(t):Ne(ge)}else{if(et(Ie))return Ie;throw Pe(Q.UNEXPECTED_RETURN_TYPE)}};function Re(...f){return _e(p=>Reflect.apply(Pn,null,[p,...f]),()=>_t(...f),"translate",p=>Reflect.apply(p.t,p,[...f]),p=>p,p=>I(p))}function St(...f){const[p,w,K]=f;if(K&&!R(K))throw Pe(Q.INVALID_ARGUMENT);return Re(p,w,J({resolvedMessage:!0},K||{}))}function vt(...f){return _e(p=>Reflect.apply(Tn,null,[p,...f]),()=>ft(...f),"datetime format",p=>Reflect.apply(p.d,p,[...f]),()=>Xe,p=>I(p)||x(p))}function yt(...f){return _e(p=>Reflect.apply(In,null,[p,...f]),()=>Et(...f),"number format",p=>Reflect.apply(p.n,p,[...f]),()=>Xe,p=>I(p)||x(p))}function Pt(f){return f.map(p=>I(p)||q(p)||Y(p)?Un(String(p)):p)}const kt={normalize:Pt,interpolate:f=>f,type:"vnode"};function Ze(...f){return _e(p=>{let w;const K=p;try{K.processor=kt,w=Reflect.apply(Pn,null,[K,...f])}finally{K.processor=null}return w},()=>_t(...f),"translate",p=>p[dt](...f),p=>[Un(p)],p=>x(p))}function Rt(...f){return _e(p=>Reflect.apply(In,null,[p,...f]),()=>Et(...f),"number format",p=>p[mt](...f),$n,p=>I(p)||x(p))}function ze(...f){return _e(p=>Reflect.apply(Tn,null,[p,...f]),()=>ft(...f),"datetime format",p=>p[Ft](...f),$n,p=>I(p)||x(p))}function Bt(f){O=f,m.pluralRules=O}function Mt(f,p){return _e(()=>{if(!f)return!1;const w=I(p)?p:c.value,K=pe(w),Ne=m.messageResolver(K,f);return re(Ne)||ne(Ne)||I(Ne)},()=>[f],"translate exists",w=>Reflect.apply(w.te,w,[f,p]),ta,w=>Y(w))}function Be(f){let p=null;const w=ln(m,l.value,c.value);for(let K=0;K<w.length;K++){const Ne=A.value[w[K]]||{},et=m.messageResolver(Ne,f);if(et!=null){p=et;break}}return p}function Me(f){const p=Be(f);return p??(t?t.tm(f)||{}:{})}function pe(f){return A.value[f]||{}}function we(f,p){if(a){const w={[f]:p};for(const K in w)ue(w,K)&&ke(w[K]);p=w[f]}A.value[f]=p,m.messages=A.value}function wt(f,p){A.value[f]=A.value[f]||{};const w={[f]:p};if(a)for(const K in w)ue(w,K)&&ke(w[K]);p=w[f],xe(p,A.value[f]),m.messages=A.value}function s(f){return g.value[f]||{}}function o(f,p){g.value[f]=p,m.datetimeFormats=g.value,hn(m,f,p)}function F(f,p){g.value[f]=J(g.value[f]||{},p),m.datetimeFormats=g.value,hn(m,f,p)}function S(f){return N.value[f]||{}}function W(f,p){N.value[f]=p,m.numberFormats=N.value,Sn(m,f,p)}function H(f,p){N.value[f]=J(N.value[f]||{},p),m.numberFormats=N.value,Sn(m,f,p)}Wn++,t&&ce&&(v.watch(t.locale,f=>{i&&(c.value=f,m.locale=f,ye(m,c.value,l.value))}),v.watch(t.fallbackLocale,f=>{i&&(l.value=f,m.fallbackLocale=f,ye(m,c.value,l.value))}));const M={id:Wn,locale:X,fallbackLocale:ae,get inheritLocale(){return i},set inheritLocale(f){i=f,f&&t&&(c.value=t.locale.value,l.value=t.fallbackLocale.value,ye(m,c.value,l.value))},get availableLocales(){return Object.keys(A.value).sort()},messages:G,get modifiers(){return T},get pluralRules(){return O||{}},get isGlobal(){return u},get missingWarn(){return d},set missingWarn(f){d=f,m.missingWarn=d},get fallbackWarn(){return L},set fallbackWarn(f){L=f,m.fallbackWarn=L},get fallbackRoot(){return y},set fallbackRoot(f){y=f},get fallbackFormat(){return h},set fallbackFormat(f){h=f,m.fallbackFormat=h},get warnHtmlMessage(){return C},set warnHtmlMessage(f){C=f,m.warnHtmlMessage=f},get escapeParameter(){return _},set escapeParameter(f){_=f,m.escapeParameter=f},t:Re,getLocaleMessage:pe,setLocaleMessage:we,mergeLocaleMessage:wt,getPostTranslationHandler:Tt,setPostTranslationHandler:Ot,getMissingHandler:ht,setMissingHandler:It,[Zr]:Bt};return M.datetimeFormats=he,M.numberFormats=Lt,M.rt=St,M.te=Mt,M.tm=Me,M.d=vt,M.n=yt,M.getDateTimeFormat=s,M.setDateTimeFormat=o,M.mergeDateTimeFormat=F,M.getNumberFormat=S,M.setNumberFormat=W,M.mergeNumberFormat=H,M[Bn]=n,M[dt]=Ze,M[Ft]=ze,M[mt]=Rt,process.env.NODE_ENV!=="production"&&(M[At]=f=>{m.__v_emitter=f},M[Ct]=()=>{m.__v_emitter=void 0}),M}function xn(e,t){}const gt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ra({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((u,a)=>[...u,...a.type===v.Fragment?a.children:[a]],[]):t.reduce((n,u)=>{const a=e[u];return a&&(n[u]=a()),n},V())}function Yn(){return v.Fragment}J({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>q(e)||!isNaN(e)}},gt);function aa(e){return x(e)&&!I(e[0])}function Hn(e,t,n,u){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let c=V();e.locale&&(i.locale=e.locale),I(e.format)?i.key=e.format:R(e.format)&&(I(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((d,L)=>n.includes(L)?J(V(),d,{[L]:e.format[L]}):d,V()));const l=u(e.value,i,c);let A=[i.key];x(l)?A=l.map((d,L)=>{const y=a[d.type],h=y?y({[d.type]:d.value,index:L,parts:l}):[d.value];return aa(h)&&(h[0].key=`${d.type}-${L}`),h}):I(l)&&(A=[l]);const g=J(V(),r),N=I(e.tag)||R(e.tag)?e.tag:Yn();return v.h(N,g,A)}}J({value:{type:Number,required:!0},format:{type:[String,Object]}},gt);const sa=De("global-vue-i18n");function Qe(e={}){const t=Nt();if(t==null)throw Pe(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Pe(Q.NOT_INSTALLED);const n=oa(t),u=la(n),a=wn(t),r=ia(e,a);if(r==="global")return ea(u,e,a),u;if(r==="parent"){let l=ca(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&se(Je(le.NOT_FOUND_PARENT_SCOPE)),l=u),l}const i=n;let c=i.__getInstance(t);if(c==null){const l=J({},e);"__i18n"in a&&(l.__i18n=a.__i18n),u&&(l.__root=u),c=ua(l),i.__composerExtend&&(c[pt]=i.__composerExtend(c)),fa(i,t,c),i.__setInstance(t,c)}else process.env.NODE_ENV!=="production"&&r==="local"&&se(Je(le.DUPLICATE_USE_I18N_CALLING));return c}function oa(e){const t=v.inject(e.isCE?sa:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Pe(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function ia(e,t){return We(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function la(e){return e.mode==="composition"?e.global:e.global.__composer}function ca(e,t,n=!1){let u=null;const a=t.root;let r=Da(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")u=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(u=c.__composer,n&&u&&!u[Bn]&&(u=null))}if(u!=null||a===r)break;r=r.parent}return u}function Da(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function fa(e,t,n){let u=null;v.onMounted(()=>{if(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){t.__VUE_I18N__=n,u=Au();const a=n;a[At]&&a[At](u),u.on("*",xn)}},t),v.onUnmounted(()=>{const a=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(u&&u.off("*",xn),a[Ct]&&a[Ct](),delete t.__VUE_I18N__),e.__deleteInstance(t);const r=a[pt];r&&(r(),delete a[pt])},t)}if(J({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gt),Jr(),br(sr),Sr(Lr),vr(ln),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ae();e.__INTLIFY__=!0,or(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ea=()=>{const{t:e,locale:t}=Qe(),n=v.getCurrentInstance(),u=v.computed(()=>t.value==="zh"),a=v.computed(()=>t.value==="en");return v.watch(()=>t.value,i=>{Ut.isClient&&(document.documentElement.lang=i,localStorage.setItem("locale",i))},{immediate:!0}),{t:e,$t:e,locale:t,isZh:u,isEn:a,changeLocale:async i=>{var l;const c=Ut.isUndefined(i)?u.value?"en":"zh":i;t.value!==c&&(t.value=c,await v.nextTick(),(l=n==null?void 0:n.proxy)!=null&&l.$forceUpdate&&n.proxy.$forceUpdate())}}},_a=`
|
|
23
|
-
[警告] useTheme 缺少参数 storageKey 和 cookieDomain,解决方法:
|
|
24
|
-
1. 在项目入口处调用 initTheme 初始化主题,后续调用 useTheme 不必再传值;
|
|
25
|
-
2. 调用 useTheme 时传入 storageKey 和 cookieDomain 参数
|
|
26
|
-
`.trim();let Kn,jn;function da(e,t){Kn=e,jn=t;const{isDark:n}=Xn();n.value&&(document.documentElement.getAttribute("data-o-theme")!=="dark"&&document.documentElement.setAttribute("data-o-theme","dark"),document.documentElement.classList.contains("dark")||document.documentElement.classList.add("dark"))}function Xn(e,t){const n=e||Kn,u=t||jn;let a;typeof window<"u"&&n&&(a=Vt.get(n));const r=zn.useColorMode({initialValue:a,storageKey:n||null,attribute:"data-o-theme",modes:{light:"light",dark:"dark"}}),i=v.computed(()=>r.value),c=v.computed(()=>r.value==="light"),l=v.computed(()=>r.value==="dark"),A=N=>{const d=N==="dark"?"dark":"light";n&&u?Vt.set(n,d,{domain:u}):console.warn(_a),r.value=d,typeof window<"u"&&(d==="dark"?document.documentElement.classList.add("dark"):(document.documentElement.classList.remove("dark"),document.documentElement.classList.length===0&&document.documentElement.removeAttribute("class")))};return{theme:i,isLight:c,isDark:l,setTheme:A,toggleTheme:()=>{A(i.value==="light"?"dark":"light")}}}async function Fa(e){try{return navigator.clipboard?(await navigator.clipboard.writeText(e),!0):ma(e)}catch{return!1}}function ma(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();try{const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return document.body.removeChild(t),!1}}j.ScreenConfig=be,j.Size=Wt,j.initTheme=da,j.useClipboard=Fa,j.useLocale=Ea,j.useMdRender=nu,j.useScreen=su,j.useTheme=Xn,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(E,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("vue"),require("markdown-it-async"),require("markdown-it-anchor"),require("shiki"),require("vue-i18n"),require("@opensig/opendesign"),require("js-cookie")):typeof define=="function"&&define.amd?define(["exports","vue","markdown-it-async","markdown-it-anchor","shiki","vue-i18n","@opensig/opendesign","js-cookie"],D):(E=typeof globalThis<"u"?globalThis:E||self,D(E.OpenDesignPlusComposables={},E.Vue,E.MarkdownItAsync,E.markdownItAnchor,E.shiki,E.VueI18n,E.OpenDesign,E.Cookies))})(this,(function(E,D,P,bu,M,Ou,ru,q){"use strict";var ee=Object.defineProperty;var te=(E,D,P)=>D in E?ee(E,D,{enumerable:!0,configurable:!0,writable:!0,value:P}):E[D]=P;var K=(E,D,P)=>te(E,typeof D!="symbol"?D+"":D,P);const Nu=new Set(Object.keys(M.bundledLanguages));async function wu(u={}){const{anchor:t=!0,anchorType:n="vitepress",copy:e=!0,wrapMarkdownBodyDiv:o=!0,theme:r={},...c}=u,i=typeof(r==null?void 0:r.light)=="string"&&r.light in M.bundledThemes?r.light:"light-plus",d=typeof(r==null?void 0:r.dark)=="string"&&r.dark in M.bundledThemes?r.dark:"dark-plus",C=new Set(["text"]);D.onBeforeUnmount(()=>{l&&l.dispose()});const l=await M.createHighlighter({themes:[i,d],langs:["text"]}),A=P({async highlight(h,f){return Nu.has(f)||(f="text"),C.has(f)||(await l.loadLanguage(f),C.add(f)),l.codeToHtml(h,{lang:f,themes:{light:i,dark:d}})},...c});if(t&&A.use(bu,{slugify:h=>n==="github"?vu(h):Lu(h)}),e){const h=A.renderer.rules.fence;A.renderer.rules.fence=(...f)=>{var y;const[p,_]=f,m=p[_],g=A.utils.escapeHtml(m.content||"");return`<div class="language-${((y=m.info)==null?void 0:y.trim())||""}"><div class="copy" data-clipboard-text="${g}"></div>`+h(...f)+"</div>"}}if(o){const h=A.render;A.render=(p,_)=>`<div class="markdown-body">${h.call(A,p,_)}</div>`;const f=A.renderInline;A.renderInline=(p,_)=>`<div class="markdown-body">${f.call(A,p,_)}</div>`}return{shiki:l,markdwon:A}}function vu(u){const t=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\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\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFB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F]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;return`user-content-${u.toLowerCase().replace(t,"").replace(/ /g,"-")}`}function Lu(u){return u.normalize("NFKD").replace(/[\u0300-\u036F]/g,"").replace(/[\u0000-\u001f]/g,"").replace(/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase()}var cu=(u=>(u.Phone="phone",u.PadV="pad_v",u.PadH="pad_h",u.Laptop="laptop",u))(cu||{});const I={phone:600,pad_v:840,pad_h:1200,laptop:1440},Su={lt:(u,t)=>u<t,le:(u,t)=>u<=t,eq:(u,t)=>u===t,ne:(u,t)=>u!==t,ge:(u,t)=>u>=t,gt:(u,t)=>u>t},ku=()=>{const u=D.reactive({width:1440,height:0}),t=D.ref("laptop"),n=w=>(typeof w>"u"&&(w=u.width),w<I.phone?"phone":w<I.pad_v?"pad_v":w<I.pad_h?"pad_h":"laptop"),e=(w="eq",V)=>{const T=u.width,Q=I[V],a=Su[w];return a(T,Q)},o=D.computed(()=>e("le","phone")),r=D.computed(()=>e("gt","phone")),c=D.computed(()=>e("gt","phone")&&e("le","pad_h")),i=D.computed(()=>e("le","pad_h")),d=D.computed(()=>e("gt","pad_h")),C=D.computed(()=>e("gt","phone")&&e("le","pad_v")),l=D.computed(()=>e("le","pad_v")),A=D.computed(()=>e("gt","pad_v")),h=D.computed(()=>e("gt","pad_v")&&e("le","pad_h")),f=D.computed(()=>e("gt","pad_h")&&e("le","laptop")),p=D.computed(()=>e("le","laptop")),_=D.computed(()=>e("gt","laptop")),m=D.computed(()=>e("gt","phone")&&e("le","laptop")),g=D.computed(()=>e("gt","pad_v")&&e("le","laptop")),y=()=>{const{innerWidth:w,innerHeight:V}=window;u.width=w,u.height=V,t.value=n()};return D.onMounted(()=>{typeof window<"u"&&(window.addEventListener("resize",y),y(),D.nextTick(()=>y()))}),D.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",y)}),{getSize:n,current:t,size:u,isPhone:o,gtPhone:r,isPad:c,lePad:i,gtPad:d,isPadV:C,lePadV:l,gtPadV:A,isPadH:h,isLaptop:f,leLaptop:p,gtLaptop:_,isPadToLaptop:m,isPadVToLaptop:g}},Vu=()=>{const{t:u,locale:t}=Ou.useI18n(),n=D.getCurrentInstance(),e=D.computed(()=>t.value==="zh"),o=D.computed(()=>t.value==="en");return D.watch(()=>t.value,c=>{ru.isClient&&(document.documentElement.lang=c,localStorage.setItem("locale",c))},{immediate:!0}),{t:u,$t:u,locale:t,isZh:e,isEn:o,changeLocale:async c=>{var d;const i=ru.isUndefined(c)?e.value?"en":"zh":c;t.value!==i&&(t.value=i,await D.nextTick(),(d=n==null?void 0:n.proxy)!=null&&d.$forceUpdate&&n.proxy.$forceUpdate())}}},Pu="[警告] 请在项目中注入主题配置项:app.use(createTheme(options))",Ru="[警告] 缺少参数 cookieKey 和 cookieDomain,请在 createTheme 传入 cookieKey 和 cookieDomain 参数",iu=Symbol("theme"),au=Symbol("isLight"),Eu=Symbol("isDark"),lu=Symbol("setTheme"),Cu=Symbol("toggleTheme");function ju(u){const{cookieKey:t,cookieDomain:n,lightValue:e="light",darkValue:o="dark",attribute:r="data-o-theme",attributeLightValue:c=e,attributeDarkValue:i=o,classLightValue:d=e,classDarkValue:C=o}=u||{},l=D.ref(e),A=D.computed(()=>l.value===e),h=D.computed(()=>l.value===o),f=D.computed(()=>l.value),p=(m,g=!0)=>{const y=m===o?o:e;l.value=y,!(typeof window>"u")&&(y===o?(document.documentElement.setAttribute(r,i),document.documentElement.classList.add(C),document.documentElement.classList.remove(d)):(document.documentElement.setAttribute(r,c),document.documentElement.classList.add(d),document.documentElement.classList.remove(C)),g&&(t&&n?q.set(t,y,{domain:n}):console.warn(Ru)))},_=()=>{p(f.value===o?e:o)};return{install(m){if(m.provide(iu,f),m.provide(au,A),m.provide(Eu,h),m.provide(lu,p),m.provide(Cu,_),typeof window>"u")return;let g;t&&(g=q.get(t)),g||(g=window.matchMedia("(prefers-color-scheme: dark)").matches?o:e),p(g===o?o:e,!1)}}}function xu(){const u=D.inject(iu);return u||console.warn(Pu),{theme:u,isLight:D.inject(au),isDark:D.inject(Eu),setTheme:D.inject(lu),toggleTheme:D.inject(Cu)}}async function Tu(u){try{return navigator.clipboard?(await navigator.clipboard.writeText(u),!0):Iu(u)}catch{return!1}}function Iu(u){const t=document.createElement("textarea");t.value=u,t.style.top="0",t.style.left="0",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();try{const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return document.body.removeChild(t),!1}}class ${constructor(t){K(this,"prev",null);K(this,"next",null);K(this,"data",null);this.data=t}removeSelf(){this.data=null,this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=null,this.next=null}}class $u{constructor(){K(this,"dummyHead",new $(null))}shift(t){const n=new $(t),e=this.dummyHead.next;return n.prev=this.dummyHead,this.dummyHead.next=n,e&&(n.next=e,e.prev=n),n}remove(t){t.removeSelf()}clear(){let t=this.dummyHead.next;for(;t;){const n=t.next;t.removeSelf(),t=n}this.dummyHead.next=null}}const du=Symbol(),z=Symbol(),Y=async(u,...t)=>typeof u=="function"?await u(...t):D.unref(u),G=u=>typeof u=="object"&&u!==null,Z=u=>typeof u.event=="string"&&G(u.properties);function X(u,t){let n,e;if(t!=null&&t.catchBubble)n=new $u,e=n.shift(async o=>{var r,c;if(G(o))if(o[z]){const i=await Y(u);if(!Z(i))return;delete o[z];const d={...i,properties:{...i.properties,...o}};(r=window.__OA_REPORT__)==null||r.call(window,d.event,d.properties)}else Z(o)&&((c=window.__OA_REPORT__)==null||c.call(window,o.event,o.properties))}),D.provide((t==null?void 0:t.key)??du,n);else if(t!=null&&t.bubble){if(n=D.inject((t==null?void 0:t.key)??du),!n)return;e=n.shift(async o=>{var r,c,i,d;if(G(o))if(o[z]){const C=await Y(u);if(!G(C))return;const l={...C,...o};(c=(r=e.next)==null?void 0:r.data)==null||c.call(r,l)}else(d=(i=e.next)==null?void 0:i.data)==null||d.call(i,{...o,[z]:!0})})}else e=o=>{var r;Z(o)&&((r=window.__OA_REPORT__)==null||r.call(window,o.event,o.properties))};return D.onUnmounted(()=>{n=null,e instanceof $&&e.removeSelf(),e=null}),e}function Uu(u,t,n){if(!D.isRef(u)&&typeof u!="function")return;const e=X(t,n);D.watch(u,async(o,r)=>{var i;const c=await Y(t,o,r);e instanceof $?(i=e.data)==null||i.call(e,c):typeof e=="function"&&e(c)})}const Au=new WeakSet;function Hu(u,t,n,e){const o=D.computed(()=>D.unref(u)),r=X(n,{...e,key:t}),c=async i=>{var C;if(e!=null&&e.bubble&&Au.has(i))return;Au.add(i);const d=await Y(n,i);typeof d=="object"&&d!==null&&(r instanceof $?(C=r.data)==null||C.call(r,d):typeof r=="function"&&r(d))};D.onMounted(()=>{var i;return(i=o.value)==null?void 0:i.addEventListener(t,c)}),D.onBeforeUnmount(()=>{var i;return(i=o.value)==null?void 0:i.removeEventListener(t,c)})}function Wu(u,t){X(u,t)}/*!
|
|
2
|
+
* pinia v3.0.4
|
|
3
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const R=typeof window<"u";let L;const J=u=>L=u;process.env.NODE_ENV;const uu=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function S(u){return u&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Object]"&&typeof u.toJSON!="function"}var U;(function(u){u.direct="direct",u.patchObject="patch object",u.patchFunction="patch function"})(U||(U={}));function fu(u,t){for(const n in t){const e=t[n];if(!(n in u))continue;const o=u[n];S(o)&&S(e)&&!D.isRef(e)&&!D.isReactive(e)?u[n]=fu(o,e):u[n]=e}return u}const Bu=()=>{};function hu(u,t,n,e=Bu){u.add(t);const o=()=>{u.delete(t)&&e()};return!n&&D.getCurrentScope()&&D.onScopeDispose(o),o}function j(u,...t){u.forEach(n=>{n(...t)})}const Ku=u=>u(),pu=Symbol(),eu=Symbol();function tu(u,t){u instanceof Map&&t instanceof Map?t.forEach((n,e)=>u.set(e,n)):u instanceof Set&&t instanceof Set&&t.forEach(u.add,u);for(const n in t){if(!t.hasOwnProperty(n))continue;const e=t[n],o=u[n];S(o)&&S(e)&&u.hasOwnProperty(n)&&!D.isRef(e)&&!D.isReactive(e)?u[n]=tu(o,e):u[n]=e}return u}const Mu=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function qu(u){return!S(u)||!Object.prototype.hasOwnProperty.call(u,Mu)}const{assign:b}=Object;function mu(u){return!!(D.isRef(u)&&u.effect)}function _u(u,t,n,e){const{state:o,actions:r,getters:c}=t,i=n.state.value[u];let d;function C(){!i&&(process.env.NODE_ENV==="production"||!e)&&(n.state.value[u]=o?o():{});const l=process.env.NODE_ENV!=="production"&&e?D.toRefs(D.ref(o?o():{}).value):D.toRefs(n.state.value[u]);return b(l,r,Object.keys(c||{}).reduce((A,h)=>(process.env.NODE_ENV!=="production"&&h in l&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${u}".`),A[h]=D.markRaw(D.computed(()=>{J(n);const f=n._s.get(u);return c[h].call(f,f)})),A),{}))}return d=Du(u,C,t,n,e,!0),d}function Du(u,t,n={},e,o,r){let c;const i=b({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!e._e.active)throw new Error("Pinia destroyed");const d={deep:!0};process.env.NODE_ENV!=="production"&&(d.onTrigger=s=>{C?f=s:C==!1&&!a._hotUpdating&&(Array.isArray(f)?f.push(s):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let C,l,A=new Set,h=new Set,f;const p=e.state.value[u];!r&&!p&&(process.env.NODE_ENV==="production"||!o)&&(e.state.value[u]={});const _=D.ref({});let m;function g(s){let F;C=l=!1,process.env.NODE_ENV!=="production"&&(f=[]),typeof s=="function"?(s(e.state.value[u]),F={type:U.patchFunction,storeId:u,events:f}):(tu(e.state.value[u],s),F={type:U.patchObject,payload:s,storeId:u,events:f});const B=m=Symbol();D.nextTick().then(()=>{m===B&&(C=!0)}),l=!0,j(A,F,e.state.value[u])}const y=r?function(){const{state:F}=n,B=F?F():{};this.$patch(O=>{b(O,B)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${u}" is built using the setup syntax and does not implement $reset().`)}:Bu;function w(){c.stop(),A.clear(),h.clear(),e._s.delete(u)}const V=(s,F="")=>{if(pu in s)return s[eu]=F,s;const B=function(){J(e);const O=Array.from(arguments),H=new Set,su=new Set;function Xu(N){H.add(N)}function ue(N){su.add(N)}j(h,{args:O,name:B[eu],store:a,after:Xu,onError:ue});let W;try{W=s.apply(this&&this.$id===u?this:a,O)}catch(N){throw j(su,N),N}return W instanceof Promise?W.then(N=>(j(H,N),N)).catch(N=>(j(su,N),Promise.reject(N))):(j(H,W),W)};return B[pu]=!0,B[eu]=F,B},T=D.markRaw({actions:{},getters:{},state:[],hotState:_}),Q={_p:e,$id:u,$onAction:hu.bind(null,h),$patch:g,$reset:y,$subscribe(s,F={}){const B=hu(A,s,F.detached,()=>O()),O=c.run(()=>D.watch(()=>e.state.value[u],H=>{(F.flush==="sync"?l:C)&&s({storeId:u,type:U.direct,events:f},H)},b({},d,F)));return B},$dispose:w},a=D.reactive(process.env.NODE_ENV!=="production"||(process.env.NODE_ENV!=="production"||typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__)&&process.env.NODE_ENV!=="test"&&R?b({_hmrPayload:T,_customProperties:D.markRaw(new Set)},Q):Q);e._s.set(u,a);const v=(e._a&&e._a.runWithContext||Ku)(()=>e._e.run(()=>(c=D.effectScope()).run(()=>t({action:V}))));for(const s in v){const F=v[s];if(D.isRef(F)&&!mu(F)||D.isReactive(F))process.env.NODE_ENV!=="production"&&o?_.value[s]=D.toRef(v,s):r||(p&&qu(F)&&(D.isRef(F)?F.value=p[s]:tu(F,p[s])),e.state.value[u][s]=F),process.env.NODE_ENV!=="production"&&T.state.push(s);else if(typeof F=="function"){const B=process.env.NODE_ENV!=="production"&&o?F:V(F,s);v[s]=B,process.env.NODE_ENV!=="production"&&(T.actions[s]=F),i.actions[s]=F}else process.env.NODE_ENV!=="production"&&mu(F)&&(T.getters[s]=r?n.getters[s]:F,R&&(v._getters||(v._getters=D.markRaw([]))).push(s))}if(b(a,v),b(D.toRaw(a),v),Object.defineProperty(a,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?_.value:e.state.value[u],set:s=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");g(F=>{b(F,s)})}}),process.env.NODE_ENV!=="production"&&(a._hotUpdate=D.markRaw(s=>{a._hotUpdating=!0,s._hmrPayload.state.forEach(F=>{if(F in a.$state){const B=s.$state[F],O=a.$state[F];typeof B=="object"&&S(B)&&S(O)?fu(B,O):s.$state[F]=O}a[F]=D.toRef(s.$state,F)}),Object.keys(a.$state).forEach(F=>{F in s.$state||delete a[F]}),C=!1,l=!1,e.state.value[u]=D.toRef(s._hmrPayload,"hotState"),l=!0,D.nextTick().then(()=>{C=!0});for(const F in s._hmrPayload.actions){const B=s[F];a[F]=V(B,F)}for(const F in s._hmrPayload.getters){const B=s._hmrPayload.getters[F],O=r?D.computed(()=>(J(e),B.call(a,a))):B;a[F]=O}Object.keys(a._hmrPayload.getters).forEach(F=>{F in s._hmrPayload.getters||delete a[F]}),Object.keys(a._hmrPayload.actions).forEach(F=>{F in s._hmrPayload.actions||delete a[F]}),a._hmrPayload=s._hmrPayload,a._getters=s._getters,a._hotUpdating=!1})),(process.env.NODE_ENV!=="production"||typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__)&&process.env.NODE_ENV!=="test"&&R){const s={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(F=>{Object.defineProperty(a,F,b({value:a[F]},s))})}return e._p.forEach(s=>{if((process.env.NODE_ENV!=="production"||typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__)&&process.env.NODE_ENV!=="test"&&R){const F=c.run(()=>s({store:a,app:e._a,pinia:e,options:i}));Object.keys(F||{}).forEach(B=>a._customProperties.add(B)),b(a,F)}else b(a,c.run(()=>s({store:a,app:e._a,pinia:e,options:i})))}),process.env.NODE_ENV!=="production"&&a.$state&&typeof a.$state=="object"&&typeof a.$state.constructor=="function"&&!a.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
6
|
+
state: () => new MyClass()
|
|
7
|
+
Found in store "${a.$id}".`),p&&r&&n.hydrate&&n.hydrate(a.$state,p),C=!0,l=!0,a}/*! #__NO_SIDE_EFFECTS__ */function zu(u,t,n){let e;const o=typeof t=="function";e=o?n:t;function r(c,i){const d=D.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&L&&L._testing?null:c)||(d?D.inject(uu,null):null),c&&J(c),process.env.NODE_ENV!=="production"&&!L)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
8
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
9
|
+
This will fail in production.`);c=L,c._s.has(u)||(o?Du(u,t,e,c):_u(u,e,c),process.env.NODE_ENV!=="production"&&(r._pinia=c));const C=c._s.get(u);if(process.env.NODE_ENV!=="production"&&i){const l="__hot:"+u,A=o?Du(l,t,e,c,!0):_u(l,b({},e),c,!0);i._hotUpdate(A),delete c.state.value[l],c._s.delete(l)}if(process.env.NODE_ENV!=="production"&&R){const l=D.getCurrentInstance();if(l&&l.proxy&&!i){const A=l.proxy,h="_pStores"in A?A._pStores:A._pStores={};h[u]=C}}return C}return r.$id=u,r}const gu=zu("login",{state:()=>({loginStatus:k.NOT}),actions:{setLoginStatus(u){this.loginStatus=u}},getters:{isLoginFailed(){return this.loginStatus===k.FAILED},isLoginNot(){return this.loginStatus===k.NOT},isLoggingIn(){return this.loginStatus===k.DOING},isLogined(){return this.loginStatus===k.DONE}}});var k=(u=>(u[u.FAILED=-1]="FAILED",u[u.NOT=0]="NOT",u[u.DOING=1]="DOING",u[u.DONE=2]="DONE",u))(k||{});const nu={CSRF_TOKEN:"_U_T_"},Yu=300,Gu=u=>{nu.CSRF_TOKEN=u},yu=()=>({csrfCookie:q.get(nu.CSRF_TOKEN)}),ou=()=>{q.remove(nu.CSRF_TOKEN)},Ju=u=>{window.location.href=u},x=u=>{gu().setLoginStatus(u)},Fu=async(u,t=!1)=>{const{csrfCookie:n}=yu();if(!(!n||t))try{x(1);const e=await u();if(e!=null&&e.data)return x(2),e.data;x(-1),ou();return}catch{x(-1),ou();return}},Qu=u=>{window.location.href=u,setTimeout(()=>{x(0)},Yu)},Zu=(u,t,n,e,o=!1)=>{const r=gu();D.watch(()=>e.path,async(c,i)=>{if(c===i||r.isLogined)return;u.some(C=>c.includes(C))?n.value=await Fu(t,o):Fu(t,o).then(C=>{n.value=C})},{immediate:!0})};E.LOGIN_STATUS=k,E.ScreenConfig=I,E.Size=cu,E.clearUserAuth=ou,E.createTheme=ju,E.doLogin=Ju,E.doLogout=Qu,E.getUserAuth=yu,E.setLoginKeys=Gu,E.setStatus=x,E.tryLogin=Fu,E.useAnalytics=Wu,E.useClipboard=Tu,E.useElementEventAnalytics=Hu,E.useLocale=Vu,E.useLoginWatcher=Zu,E.useMdRender=wu,E.useScreen=ku,E.useTheme=xu,E.useWatchAnalytics=Uu,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LOGIN_STATUS } from '../core/useLogin';
|
|
2
|
+
/**
|
|
3
|
+
* 登录状态 Store
|
|
4
|
+
*/
|
|
5
|
+
export declare const useLoginStore: import('pinia').StoreDefinition<"login", {
|
|
6
|
+
loginStatus: LOGIN_STATUS;
|
|
7
|
+
}, {
|
|
8
|
+
isLoginFailed(): boolean;
|
|
9
|
+
isLoginNot(): boolean;
|
|
10
|
+
isLoggingIn(): boolean;
|
|
11
|
+
isLogined(): boolean;
|
|
12
|
+
}, {
|
|
13
|
+
/**
|
|
14
|
+
* 设置登录状态
|
|
15
|
+
* @param status - 登录状态值
|
|
16
|
+
*/
|
|
17
|
+
setLoginStatus(status: LOGIN_STATUS): void;
|
|
18
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus-test/composables",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"require": "./dist/index.umd.cjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@opensig/opendesign": "1.0.
|
|
21
|
+
"@opensig/opendesign": "1.0.2",
|
|
22
22
|
"@vueuse/core": "^14.0.0",
|
|
23
23
|
"markdown-it-async": "^2.2.0",
|
|
24
24
|
"markdown-it-anchor": "^9.2.0",
|