@10yun/open-sdk 0.3.98 → 0.3.100
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/{404-BF-98DI2.cjs → 404-DOJrP53c.cjs} +1 -1
- package/dist/{404-CRUQ2RGL.js → 404-Dge6mEmg.js} +1 -1
- package/dist/{alone_run-D3hGeSjr.js → alone_run-D0vsS5Na.js} +1 -1
- package/dist/{alone_run-ErREtrxQ.cjs → alone_run-Py4EaXPg.cjs} +1 -1
- package/dist/{index-CYNRKRHo.js → index-BNhYVmAX.js} +931 -927
- package/dist/index-zX3YjWaQ.cjs +25 -0
- package/dist/{login-DsaaTEyf.cjs → login-0GSUTlNW.cjs} +1 -1
- package/dist/{login-CMkucPpJ.js → login-BAzOP8jW.js} +174 -174
- package/dist/{none-CxRhvKIK.cjs → none-C3Hz3In2.cjs} +1 -1
- package/dist/{none-GtWlMjrR.js → none-CrgAZnxI.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/vite-plugin-shiyun.js +2 -1
- package/dist/index-UENhK8Dd.cjs +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-zX3YjWaQ.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function s(d,o){return e.openBlock(),e.createElementBlock("div",t,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"没有权限"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Permission")],-1)]))}const r=n._export_sfc(c,[["render",s]]);exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as s, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-BNhYVmAX.js";
|
|
3
3
|
const r = {}, t = {
|
|
4
4
|
class: "cloud-none-wrap",
|
|
5
5
|
style: { "background-color": "none" }
|
package/dist/open-sdk.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-zX3YjWaQ.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e.console;exports.SameRouteView=e.SameRouteView;exports.SameWatermark=e.SameWatermark;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness;exports.createHttp=e.createHttp;exports.qiankunWindow=e.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkConfigGet=e.sdkConfigGet;exports.sdkConfigSet=e.sdkConfigSet;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;exports.useSdkWindowStore=e.useSdkWindowStore;
|
package/dist/open-sdk.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as a, e as t, f as S, g as o, l as r, S as d, m as k, q as u, p as n, d as i, s as m, n as c, o as g, b as p, u as f, k as w, j as b, h, c as j, a as B, i as H } from "./index-
|
|
1
|
+
import { H as a, e as t, f as S, g as o, l as r, S as d, m as k, q as u, p as n, d as i, s as m, n as c, o as g, b as p, u as f, k as w, j as b, h, c as j, a as B, i as H } from "./index-BNhYVmAX.js";
|
|
2
2
|
export {
|
|
3
3
|
a as HttpObj,
|
|
4
4
|
t as SameFrame,
|
package/package.json
CHANGED
package/vite-plugin-shiyun.js
CHANGED
|
@@ -95,7 +95,7 @@ export function shiyunRelease(params = { menu_arr: [] }) {
|
|
|
95
95
|
optimizeDeps: {
|
|
96
96
|
esbuildOptions: {
|
|
97
97
|
target: 'esnext'
|
|
98
|
-
}
|
|
98
|
+
},
|
|
99
99
|
// 确保 open-sdk 包在依赖优化中
|
|
100
100
|
// include: ['@10yun/open-sdk']
|
|
101
101
|
/**
|
|
@@ -103,6 +103,7 @@ export function shiyunRelease(params = { menu_arr: [] }) {
|
|
|
103
103
|
* 确保 open-sdk 包不在依赖优化中,不然造成修改 【项目@/下的相关文件】,vite无法及时热更新响应
|
|
104
104
|
* 添加下列 exclude 会爆 dayjs 问题
|
|
105
105
|
*/
|
|
106
|
+
exclude: ['@10yun/open-sdk/uncompiled']
|
|
106
107
|
// exclude: ['@10yun/open-sdk']
|
|
107
108
|
},
|
|
108
109
|
build: {
|
package/dist/index-UENhK8Dd.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";const ee=require("pinia"),i=require("vue"),_t=require("element-plus"),ho=require("@element-plus/icons-vue");require("element-plus/dist/index.css");require("element-plus/theme-chalk/dark/css-vars.css");const go=require("@10yun/cv-pc-ui");require("@10yun/cv-pc-ui/lib/cv-ui.css");const po=require("@10yun/cv-icons-vue"),Eo=require("axios");function oa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const So=oa(ho),bo=oa(po);let sa={};function ia(e={}){sa=e}function Qe(){return sa}/*!
|
|
2
|
-
* vite-plugin-qiankun.js v1.0.14
|
|
3
|
-
* (c) 2021-2022 Teng Mao Qing
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/var oe=typeof window<"u"?window.proxy||window:{},No=function(e){oe!=null&&oe.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),oe.qiankunName&&(window.moudleQiankunAppLifeCycles[oe.qiankunName]=e))};function vo(e="/",t=null,n={}){e=="/"&&(e="/"+(window.localStorage.getItem("__syCacheMicroCurrSign__")||"base")),window.history.pushState(n,t,e)}var dt={};function Ct(e){if(!oe.__POWERED_BY_QIANKUN__)return!1;if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("data必须是对象格式");dt.setGlobalState&&dt.setGlobalState({ignore:dt.name,msg:{...e}})}function yo(e){let t=me();e&&e.onGlobalStateChange&&e.onGlobalStateChange((n,r)=>{if(n&&n.msg)switch((n.msg||{}).COMM_TYPE||""){case"LoginSucc":case"LoginLogout":t.SA_ACCOUNT_REFRESH();break}Je().SA_MSG_CONTENT(n.msg)},!0),dt.setGlobalState=e&&e.setGlobalState,dt.name=e&&e.name}function Ao(e,t,n){No({bootstrap(r){},mount(r){yo(r),t(r,!0)},unmount(r){n(r)},update(r){}})}const Je=ee.defineStore("cloudSdkQiankunStore",{state:()=>({qiankunExistState:oe.__POWERED_BY_QIANKUN__||!1,msg:""}),getters:{xxxx:e=>{},msgContent:e=>e.msg},actions:{async init(){},QK_SEND_LOGIN_MSG(){Ct({COMM_TYPE:"LoginSucc"})},QK_SEND_LOGOUT_MSG(){Ct({COMM_TYPE:"LoginLogout"})},QK_SEND_MSG_REG_SUBMENU(e){Ct({COMM_TYPE:"MicroRegisterMenu",COMM_TYPESTR:"注册子应用菜单",data:e||[]})},QK_SEND_MSG_ROUTER_BEFORE(e){Ct({COMM_TYPE:"routerBefore",routerBase:e})},QIANKUN_SEND_MSG_AUTO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式")},QIANKUN_SEND_MSG_TO_MICRO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式");e.type&&e.type},QIANKUN_SEND_MSG_TO_MAIN(){},SA_SET_QIANKUN_STATE(e){this.qiankunExistState=e},SA_MSG_CONTENT(e){this.msg=e}}});/*!
|
|
6
|
-
* shared v11.1.3
|
|
7
|
-
* (c) 2025 kazuya kawaguchi
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/const _e=typeof window<"u";let ie,Ue;if(process.env.NODE_ENV!=="production"){const e=_e&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ie=t=>{e.mark(t)},Ue=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const To=/\{([0-9a-zA-Z]+)\}/g;function Ut(e,...t){return t.length===1&&V(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(To,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const pe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Co=(e,t,n)=>Oo({l:e,k:t,s:n}),Oo=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Q=e=>typeof e=="number"&&isFinite(e),Io=e=>Vn(e)==="[object Date]",ze=e=>Vn(e)==="[object RegExp]",Bt=e=>M(e)&&Object.keys(e).length===0,Z=Object.assign,wo=Object.create,$=(e=null)=>wo(e);let ir;const Me=()=>ir||(ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function lr(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Lo=Object.prototype.hasOwnProperty;function de(e,t){return Lo.call(e,t)}const X=Array.isArray,Y=e=>typeof e=="function",I=e=>typeof e=="string",U=e=>typeof e=="boolean",V=e=>e!==null&&typeof e=="object",Do=e=>V(e)&&Y(e.then)&&Y(e.catch),la=Object.prototype.toString,Vn=e=>la.call(e),M=e=>Vn(e)==="[object Object]",ko=e=>e==null?"":X(e)||M(e)&&e.toString===la?JSON.stringify(e,null,2):String(e);function Un(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const cr=2;function Ro(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const o=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+1,a>=t){for(let l=s-cr;l<=s+cr||n>a;l++){if(l<0||l>=r.length)continue;const c=l+1;o.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const u=r[l].length;if(l===s){const d=t-(a-u)+1,f=Math.max(1,n>a?u-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(l>s){if(n>a){const d=Math.max(Math.min(n-a,u),1);o.push(" | "+"^".repeat(d))}a+=u+1}}break}return o.join(`
|
|
10
|
-
`)}function Po(e,t){}const ur={};function Bn(e){ur[e]||(ur[e]=!0,void 0)}function xn(){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 Ot=e=>!V(e)||X(e);function kt(e,t){if(Ot(e)||Ot(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(o=>{o!=="__proto__"&&(V(r[o])&&!V(a[o])&&(a[o]=Array.isArray(r[o])?[]:$()),Ot(a[o])||Ot(r[o])?a[o]=r[o]:n.push({src:r[o],des:a[o]}))})}}/*!
|
|
11
|
-
* message-compiler v11.1.3
|
|
12
|
-
* (c) 2025 kazuya kawaguchi
|
|
13
|
-
* Released under the MIT License.
|
|
14
|
-
*/function Fo(e,t,n){return{line:e,column:t,offset:n}}function En(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},Mo=17,Vo={[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 tt(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=process.env.NODE_ENV!=="production"?Ut((a||Vo)[e]||"",...o||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=r,l}function Uo(e){throw e}const Bo=/<\/?[\w\s="/.':;#-\/]+>/,xo=e=>Bo.test(e),be=" ",Go="\r",ne=`
|
|
15
|
-
`,$o="\u2028",Wo="\u2029";function Yo(e){const t=e;let n=0,r=1,a=1,o=0;const s=v=>t[v]===Go&&t[v+1]===ne,l=v=>t[v]===ne,c=v=>t[v]===Wo,u=v=>t[v]===$o,d=v=>s(v)||l(v)||c(v)||u(v),f=()=>n,h=()=>r,E=()=>a,y=()=>o,S=v=>s(v)||c(v)||u(v)?ne:t[v],w=()=>S(n),g=()=>S(n+o);function p(){return o=0,d(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}function T(){return s(n+o)&&o++,o++,t[n+o]}function N(){n=0,r=1,a=1,o=0}function O(v=0){o=v}function L(){const v=n+o;for(;v!==n;)p();o=0}return{index:f,line:h,column:E,peekOffset:y,charAt:S,currentChar:w,currentPeek:g,next:p,peek:T,reset:N,resetPeek:O,skipToPeek:L}}const Te=void 0,Ho=".",fr="'",Ko="tokenizer";function jo(e,t={}){const n=t.location!==!1,r=Yo(e),a=()=>r.index(),o=()=>Fo(r.line(),r.column(),r.index()),s=o(),l=a(),c={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(_,m,A,...k){const K=u();if(m.column+=A,m.offset+=A,d){const j=n?En(K.startLoc,m):null,B=tt(_,j,{domain:Ko,args:k});d(B)}}function h(_,m,A){_.endLoc=o(),_.currentType=m;const k={type:m};return n&&(k.loc=En(_.startLoc,_.endLoc)),A!=null&&(k.value=A),k}const E=_=>h(_,13);function y(_,m){return _.currentChar()===m?(_.next(),m):(f(P.EXPECTED_TOKEN,o(),0,m),"")}function S(_){let m="";for(;_.currentPeek()===be||_.currentPeek()===ne;)m+=_.currentPeek(),_.peek();return m}function w(_){const m=S(_);return _.skipToPeek(),m}function g(_){if(_===Te)return!1;const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function p(_){if(_===Te)return!1;const m=_.charCodeAt(0);return m>=48&&m<=57}function T(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function N(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=_.currentPeek()==="-"?_.peek():_.currentPeek(),K=p(k);return _.resetPeek(),K}function O(_,m){const{currentType:A}=m;if(A!==2)return!1;S(_);const k=_.currentPeek()===fr;return _.resetPeek(),k}function L(_,m){const{currentType:A}=m;if(A!==7)return!1;S(_);const k=_.currentPeek()===".";return _.resetPeek(),k}function v(_,m){const{currentType:A}=m;if(A!==8)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function F(_,m){const{currentType:A}=m;if(!(A===7||A===11))return!1;S(_);const k=_.currentPeek()===":";return _.resetPeek(),k}function x(_,m){const{currentType:A}=m;if(A!==9)return!1;const k=()=>{const j=_.currentPeek();return j==="{"?g(_.peek()):j==="@"||j==="|"||j===":"||j==="."||j===be||!j?!1:j===ne?(_.peek(),k()):fe(_,!1)},K=k();return _.resetPeek(),K}function J(_){S(_);const m=_.currentPeek()==="|";return _.resetPeek(),m}function fe(_,m=!0){const A=(K=!1,j="")=>{const B=_.currentPeek();return B==="{"||B==="@"||!B?K:B==="|"?!(j===be||j===ne):B===be?(_.peek(),A(!0,be)):B===ne?(_.peek(),A(!0,ne)):!0},k=A();return m&&_.resetPeek(),k}function z(_,m){const A=_.currentChar();return A===Te?Te:m(A)?(_.next(),A):null}function Ge(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Ht(_){return z(_,Ge)}function Kt(_){const m=_.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function jt(_){return z(_,Kt)}function qt(_){const m=_.charCodeAt(0);return m>=48&&m<=57}function Xt(_){return z(_,qt)}function Qt(_){const m=_.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function Se(_){return z(_,Qt)}function rt(_){let m="",A="";for(;m=Xt(_);)A+=m;return A}function Jt(_){let m="";for(;;){const A=_.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A===be||A===ne)if(fe(_))m+=A,_.next();else{if(J(_))break;m+=A,_.next()}else m+=A,_.next()}return m}function zt(_){w(_);let m="",A="";for(;m=jt(_);)A+=m;return _.currentChar()===Te&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A}function Zt(_){w(_);let m="";return _.currentChar()==="-"?(_.next(),m+=`-${rt(_)}`):m+=rt(_),_.currentChar()===Te&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),m}function en(_){return _!==fr&&_!==ne}function or(_){w(_),y(_,"'");let m="",A="";for(;m=z(_,en);)m==="\\"?A+=tn(_):A+=m;const k=_.currentChar();return k===ne||k===Te?(f(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),k===ne&&(_.next(),y(_,"'")),A):(y(_,"'"),A)}function tn(_){const m=_.currentChar();switch(m){case"\\":case"'":return _.next(),`\\${m}`;case"u":return At(_,m,4);case"U":return At(_,m,6);default:return f(P.UNKNOWN_ESCAPE_SEQUENCE,o(),0,m),""}}function At(_,m,A){y(_,m);let k="";for(let K=0;K<A;K++){const j=Se(_);if(!j){f(P.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${m}${k}${_.currentChar()}`);break}k+=j}return`\\${m}${k}`}function nn(_){return _!=="{"&&_!=="}"&&_!==be&&_!==ne}function rn(_){w(_);let m="",A="";for(;m=z(_,nn);)A+=m;return A}function an(_){let m="",A="";for(;m=Ht(_);)A+=m;return A}function on(_){const m=A=>{const k=_.currentChar();return k==="{"||k==="@"||k==="|"||k==="("||k===")"||!k||k===be?A:(A+=k,_.next(),m(A))};return m("")}function at(_){w(_);const m=y(_,"|");return w(_),m}function ot(_,m){let A=null;switch(_.currentChar()){case"{":return m.braceNest>=1&&f(P.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),_.next(),A=h(m,2,"{"),w(_),m.braceNest++,A;case"}":return m.braceNest>0&&m.currentType===2&&f(P.EMPTY_PLACEHOLDER,o(),0),_.next(),A=h(m,3,"}"),m.braceNest--,m.braceNest>0&&w(_),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),A;case"@":return m.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A=De(_,m)||E(m),m.braceNest=0,A;default:{let K=!0,j=!0,B=!0;if(J(_))return m.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),A=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,A;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(P.UNTERMINATED_CLOSING_BRACE,o(),0),m.braceNest=0,st(_,m);if(K=T(_,m))return A=h(m,4,zt(_)),w(_),A;if(j=N(_,m))return A=h(m,5,Zt(_)),w(_),A;if(B=O(_,m))return A=h(m,6,or(_)),w(_),A;if(!K&&!j&&!B)return A=h(m,12,rn(_)),f(P.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,A.value),w(_),A;break}}return A}function De(_,m){const{currentType:A}=m;let k=null;const K=_.currentChar();switch((A===7||A===8||A===11||A===9)&&(K===ne||K===be)&&f(P.INVALID_LINKED_FORMAT,o(),0),K){case"@":return _.next(),k=h(m,7,"@"),m.inLinked=!0,k;case".":return w(_),_.next(),h(m,8,".");case":":return w(_),_.next(),h(m,9,":");default:return J(_)?(k=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,k):L(_,m)||F(_,m)?(w(_),De(_,m)):v(_,m)?(w(_),h(m,11,an(_))):x(_,m)?(w(_),K==="{"?ot(_,m)||k:h(m,10,on(_))):(A===7&&f(P.INVALID_LINKED_FORMAT,o(),0),m.braceNest=0,m.inLinked=!1,st(_,m))}}function st(_,m){let A={type:13};if(m.braceNest>0)return ot(_,m)||E(m);if(m.inLinked)return De(_,m)||E(m);switch(_.currentChar()){case"{":return ot(_,m)||E(m);case"}":return f(P.UNBALANCED_CLOSING_BRACE,o(),0),_.next(),h(m,3,"}");case"@":return De(_,m)||E(m);default:{if(J(_))return A=h(m,1,at(_)),m.braceNest=0,m.inLinked=!1,A;if(fe(_))return h(m,0,Jt(_));break}}return A}function sn(){const{currentType:_,offset:m,startLoc:A,endLoc:k}=c;return c.lastType=_,c.lastOffset=m,c.lastStartLoc=A,c.lastEndLoc=k,c.offset=a(),c.startLoc=o(),r.currentChar()===Te?h(c,13):st(r,c)}return{nextToken:sn,currentOffset:a,currentPosition:o,context:u}}const qo="parser",Xo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qo(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 Jo(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,p,T,N,...O){const L=g.currentPosition();if(L.offset+=N,L.column+=N,n){const v=t?En(T,L):null,F=tt(p,v,{domain:qo,args:O});n(F)}}function a(g,p,T){const N={type:g};return t&&(N.start=p,N.end=p,N.loc={start:T,end:T}),N}function o(g,p,T,N){t&&(g.end=p,g.loc&&(g.loc.end=T))}function s(g,p){const T=g.context(),N=a(3,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function l(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(5,N,O);return L.index=parseInt(p,10),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function c(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(4,N,O);return L.key=p,g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function u(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(9,N,O);return L.value=p.replace(Xo,Qo),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function d(g){const p=g.nextToken(),T=g.context(),{lastOffset:N,lastStartLoc:O}=T,L=a(8,N,O);return p.type!==11?(r(g,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),L.value="",o(L,N,O),{nextConsumeToken:p,node:L}):(p.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,he(p)),L.value=p.value||"",o(L,g.currentOffset(),g.currentPosition()),{node:L})}function f(g,p){const T=g.context(),N=a(7,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function h(g){const p=g.context(),T=a(6,p.offset,p.startLoc);let N=g.nextToken();if(N.type===8){const O=d(g);T.modifier=O.node,N=O.nextConsumeToken||g.nextToken()}switch(N.type!==9&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),N=g.nextToken(),N.type===2&&(N=g.nextToken()),N.type){case 10:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=f(g,N.value||"");break;case 4:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=c(g,N.value||"");break;case 5:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=l(g,N.value||"");break;case 6:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(N)),T.key=u(g,N.value||"");break;default:{r(g,P.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const O=g.context(),L=a(7,O.offset,O.startLoc);return L.value="",o(L,O.offset,O.startLoc),T.key=L,o(T,O.offset,O.startLoc),{nextConsumeToken:N,node:T}}}return o(T,g.currentOffset(),g.currentPosition()),{node:T}}function E(g){const p=g.context(),T=p.currentType===1?g.currentOffset():p.offset,N=p.currentType===1?p.endLoc:p.startLoc,O=a(2,T,N);O.items=[];let L=null;do{const x=L||g.nextToken();switch(L=null,x.type){case 0:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(s(g,x.value||""));break;case 5:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(l(g,x.value||""));break;case 4:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(c(g,x.value||""));break;case 6:x.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,he(x)),O.items.push(u(g,x.value||""));break;case 7:{const J=h(g);O.items.push(J.node),L=J.nextConsumeToken||null;break}}}while(p.currentType!==13&&p.currentType!==1);const v=p.currentType===1?p.lastOffset:g.currentOffset(),F=p.currentType===1?p.lastEndLoc:g.currentPosition();return o(O,v,F),O}function y(g,p,T,N){const O=g.context();let L=N.items.length===0;const v=a(1,p,T);v.cases=[],v.cases.push(N);do{const F=E(g);L||(L=F.items.length===0),v.cases.push(F)}while(O.currentType!==13);return L&&r(g,P.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),o(v,g.currentOffset(),g.currentPosition()),v}function S(g){const p=g.context(),{offset:T,startLoc:N}=p,O=E(g);return p.currentType===13?O:y(g,T,N,O)}function w(g){const p=jo(g,Z({},e)),T=p.context(),N=a(0,T.offset,T.startLoc);return t&&N.loc&&(N.loc.source=g),N.body=S(p),e.onCacheKey&&(N.cacheKey=e.onCacheKey(g)),T.currentType!==13&&r(p,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,g[T.offset]||""),o(N,p.currentOffset(),p.currentPosition()),N}return{parse:w}}function he(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 zo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function dr(e,t){for(let n=0;n<e.length;n++)Gn(e[n],t)}function Gn(e,t){switch(e.type){case 1:dr(e.cases,t),t.helper("plural");break;case 2:dr(e.items,t);break;case 6:{Gn(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 Zo(e,t={}){const n=zo(e);n.helper("normalize"),e.body&&Gn(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function es(e){const t=e.body;return t.type===2?_r(t):t.cases.forEach(n=>_r(n)),e}function _r(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=Un(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 ts="minifier";function je(e){switch(e.t=e.type,e.type){case 0:{const t=e;je(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++)je(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++)je(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;je(t.key),t.k=t.key,delete t.key,t.modifier&&(je(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 tt(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ts,args:[e.type]})}delete e.type}const ns="parser";function rs(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,o=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function c(S,w){s.code+=S}function u(S,w=!0){const g=w?r:"";c(a?g+" ".repeat(S):g)}function d(S=!0){const w=++s.indentLevel;S&&u(w)}function f(S=!0){const w=--s.indentLevel;S&&u(w)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:S=>`_${S}`,needIndent:()=>s.needIndent}}function as(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ze(e,t.key),t.modifier?(e.push(", "),Ze(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function os(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(Ze(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function ss(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 o=0;o<a&&(Ze(e,t.cases[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function is(e,t){t.body?Ze(e,t.body):e.push("null")}function Ze(e,t){const{helper:n}=e;switch(t.type){case 0:is(e,t);break;case 1:ss(e,t);break;case 2:os(e,t);break;case 6:as(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 tt(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ns,args:[t.type]})}}const ls=(e,t={})=>{const n=I(t.mode)?t.mode:"normal",r=I(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
16
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=rs(e,{filename:r,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${Un(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Ze(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function cs(e,t={}){const n=Z({},t),r=!!n.jit,a=!!n.minify,o=n.optimize==null?!0:n.optimize,l=Jo(n).parse(e);return r?(o&&es(l),a&&je(l),{ast:l,code:""}):(Zo(l,n),ls(l,n))}/*!
|
|
17
|
-
* core-base v11.1.3
|
|
18
|
-
* (c) 2025 kazuya kawaguchi
|
|
19
|
-
* Released under the MIT License.
|
|
20
|
-
*/function us(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ce(e){return V(e)&&$n(e)===0&&(de(e,"b")||de(e,"body"))}const ca=["b","body"];function fs(e){return Ie(e,ca)}const ua=["c","cases"];function ds(e){return Ie(e,ua,[])}const fa=["s","static"];function _s(e){return Ie(e,fa)}const da=["i","items"];function ms(e){return Ie(e,da,[])}const _a=["t","type"];function $n(e){return Ie(e,_a)}const ma=["v","value"];function It(e,t){const n=Ie(e,ma);if(n!=null)return n;throw mt(t)}const ha=["m","modifier"];function hs(e){return Ie(e,ha)}const ga=["k","key"];function gs(e){const t=Ie(e,ga);if(t)return t;throw mt(6)}function Ie(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(de(e,a)&&e[a]!=null)return e[a]}return n}const pa=[...ca,...ua,...fa,...da,...ga,...ha,...ma,..._a];function mt(e){return new Error(`unhandled node type: ${e}`)}function ln(e){return n=>ps(n,e)}function ps(e,t){const n=fs(t);if(n==null)throw mt(0);if($n(n)===1){const o=ds(n);return e.plural(o.reduce((s,l)=>[...s,mr(e,l)],[]))}else return mr(e,n)}function mr(e,t){const n=_s(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=ms(t).reduce((a,o)=>[...a,Sn(e,o)],[]);return e.normalize(r)}}function Sn(e,t){const n=$n(t);switch(n){case 3:return It(t,n);case 9:return It(t,n);case 4:{const r=t;if(de(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(de(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw mt(n)}case 5:{const r=t;if(de(r,"i")&&Q(r.i))return e.interpolate(e.list(r.i));if(de(r,"index")&&Q(r.index))return e.interpolate(e.list(r.index));throw mt(n)}case 6:{const r=t,a=hs(r),o=gs(r);return e.linked(Sn(e,o),a?Sn(e,a):void 0,e.type)}case 7:return It(t,n);case 8:return It(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Es="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ss(e,t){t&&xo(e)&&(Ut(Es,{source:e}),void 0)}const bs=e=>e;let wt=$();function Ns(e,t={}){let n=!1;const r=t.onError||Uo;return t.onError=a=>{n=!0,r(a)},{...cs(e,t),detectError:n}}function vs(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ss(e,n);const a=(t.onCacheKey||bs)(e),o=wt[a];if(o)return o;const{ast:s,detectError:l}=Ns(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=ln(s);return l?c:wt[a]=c}else{if(process.env.NODE_ENV!=="production"&&!ce(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const r=wt[n];return r||(wt[n]=ln(e))}else return ln(e)}}let ht=null;function ys(e){ht=e}function As(e,t,n){ht&&ht.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ts=Cs("function:translate");function Cs(e){return t=>ht&&ht.emit(e,t)}const te={INVALID_ARGUMENT:Mo,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},Os=24;function Ne(e){return tt(e,null,process.env.NODE_ENV!=="production"?{messages:Is}:void 0)}const Is={[te.INVALID_ARGUMENT]:"Invalid arguments",[te.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[te.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[te.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[te.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[te.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Wn(e,t){return t.locale!=null?hr(t.locale):hr(e.locale)}let cn;function hr(e){if(I(e))return e;if(Y(e)){if(e.resolvedOnce&&cn!=null)return cn;if(e.constructor.name==="Function"){const t=e();if(Do(t))throw Ne(te.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return cn=t}else throw Ne(te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ne(te.NOT_SUPPORT_LOCALE_TYPE)}function ws(e,t,n){return[...new Set([n,...X(t)?t:V(t)?Object.keys(t):I(t)?[t]:[n]])]}function Ea(e,t,n){const r=I(n)?n:gt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;X(s);)s=gr(o,s,t);const l=X(t)||!M(t)?t:t.default?t.default:null;s=I(l)?[l]:l,X(s)&&gr(o,s,!1),a.__localeChainCache.set(r,o)}return o}function gr(e,t,n){let r=!0;for(let a=0;a<t.length&&U(r);a++){const o=t[a];I(o)&&(r=Ls(e,t[a],n))}return r}function Ls(e,t,n){let r;const a=t.split("-");do{const o=a.join("-");r=Ds(e,o,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),(X(n)||M(n))&&n[a]&&(r=n[a])}return r}const we=[];we[0]={w:[0],i:[3,0],"[":[4],o:[7]};we[1]={w:[1],".":[2],"[":[4],o:[7]};we[2]={w:[2],i:[3,0],0:[3,0]};we[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};we[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};we[5]={"'":[4,0],o:8,l:[5,0]};we[6]={'"':[4,0],o:8,l:[6,0]};const ks=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rs(e){return ks.test(e)}function Ps(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 Fs(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 Ms(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rs(t)?Ps(t):"*"+t}function Vs(e){const t=[];let n=-1,r=0,a=0,o,s,l,c,u,d,f;const h=[];h[0]=()=>{s===void 0?s=l:s+=l},h[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,s===void 0||(s=Ms(s),s===!1))return!1;h[1]()}};function E(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,l="\\"+y,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&E())){if(c=Fs(o),f=we[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(l=o,d()===!1))))return;if(r===7)return t}}const pr=new Map;function Us(e,t){return V(e)?e[t]:null}function Bs(e,t){if(!V(e))return null;let n=pr.get(t);if(n||(n=Vs(t),n&&pr.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const s=n[o];if(pa.includes(s)&&ce(a))return null;const l=a[s];if(l===void 0||Y(a))return null;a=l,o++}return a}const ae={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,Gs={[ae.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ae.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ae.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ae.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ae.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 Be(e,...t){return Ut(Gs[e],...t)}const $s="11.1.3",xt=-1,gt="en-US",Pt="",Er=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ws(){return{upper:(e,t)=>t==="text"&&I(e)?e.toUpperCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&I(e)?e.toLowerCase():t==="vnode"&&V(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&I(e)?Er(e):t==="vnode"&&V(e)&&"__v_isVNode"in e?Er(e.children):e}}let Sa;function Ys(e){Sa=e}let ba;function Hs(e){ba=e}let Na;function Ks(e){Na=e}let va=null;const js=e=>{va=e},qs=()=>va;let ya=null;const Sr=e=>{ya=e},Xs=()=>ya;let br=0;function Qs(e={}){const t=Y(e.onWarn)?e.onWarn:Po,n=I(e.version)?e.version:$s,r=I(e.locale)||Y(e.locale)?e.locale:gt,a=Y(r)?gt:r,o=X(e.fallbackLocale)||M(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,s=M(e.messages)?e.messages:un(a),l=M(e.datetimeFormats)?e.datetimeFormats:un(a),c=M(e.numberFormats)?e.numberFormats:un(a),u=Z($(),e.modifiers,Ws()),d=e.pluralRules||$(),f=Y(e.missing)?e.missing:null,h=U(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=U(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,w=Y(e.postTranslation)?e.postTranslation:null,g=M(e.processor)?e.processor:null,p=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,N=Y(e.messageCompiler)?e.messageCompiler:Sa;process.env.NODE_ENV!=="production"&&Y(e.messageCompiler)&&Bn(Be(ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const O=Y(e.messageResolver)?e.messageResolver:ba||Us,L=Y(e.localeFallbacker)?e.localeFallbacker:Na||ws,v=V(e.fallbackContext)?e.fallbackContext:void 0,F=e,x=V(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,J=V(F.__numberFormatters)?F.__numberFormatters:new Map,fe=V(F.__meta)?F.__meta:{};br++;const z={version:n,cid:br,locale:r,fallbackLocale:o,messages:s,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:E,fallbackFormat:y,unresolving:S,postTranslation:w,processor:g,warnHtmlMessage:p,escapeParameter:T,messageCompiler:N,messageResolver:O,localeFallbacker:L,fallbackContext:v,onWarn:t,__meta:fe};return z.datetimeFormats=l,z.numberFormats=c,z.__datetimeFormatters=x,z.__numberFormatters=J,process.env.NODE_ENV!=="production"&&(z.__v_emitter=F.__v_emitter!=null?F.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&As(z,n,fe),z}const un=e=>({[e]:$()});function Gt(e,t){return e instanceof RegExp?e.test(t):e}function Aa(e,t){return e instanceof RegExp?e.test(t):e}function Yn(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(o!==null){const l=o(e,n,t,a);return I(l)?l:t}else return process.env.NODE_ENV!=="production"&&Aa(r,t)&&s(Be(ae.NOT_FOUND_KEY,{key:t,locale:n})),t}function it(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ta(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Js(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Ta(e,t[r]))return!0;return!1}const Nr=typeof Intl<"u",Ca={dateTimeFormat:Nr&&typeof Intl.DateTimeFormat<"u",numberFormat:Nr&&typeof Intl.NumberFormat<"u"};function vr(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ca.dateTimeFormat)return o(Be(ae.CANNOT_FORMAT_DATE)),Pt;const[c,u,d,f]=bn(...t),h=U(d.missingWarn)?d.missingWarn:e.missingWarn,E=U(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,y=!!d.part,S=Wn(e,d),w=s(e,a,S);if(!I(c)||c==="")return new Intl.DateTimeFormat(S,f).format(u);let g={},p,T=null,N=S,O=null;const L="datetime format";for(let x=0;x<w.length;x++){if(p=O=w[x],process.env.NODE_ENV!=="production"&&S!==p&&Gt(E,c)&&o(Be(ae.FALLBACK_TO_DATE_FORMAT,{key:c,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const J=e.__v_emitter;J&&J.emit("fallback",{type:L,key:c,from:N,to:O,groupId:`${L}:${c}`})}if(g=n[p]||{},T=g[c],M(T))break;Yn(e,c,p,h,L),N=O}if(!M(T)||!I(p))return r?xt:c;let v=`${p}__${c}`;Bt(f)||(v=`${v}__${JSON.stringify(f)}`);let F=l.get(v);return F||(F=new Intl.DateTimeFormat(p,Z({},T,f)),l.set(v,F)),y?F.formatToParts(u):F.format(u)}const Oa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function bn(...e){const[t,n,r,a]=e,o=$();let s=$(),l;if(I(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ne(te.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Ne(te.INVALID_ISO_DATE_ARGUMENT)}}else if(Io(t)){if(isNaN(t.getTime()))throw Ne(te.INVALID_DATE_ARGUMENT);l=t}else if(Q(t))l=t;else throw Ne(te.INVALID_ARGUMENT);return I(n)?o.key=n:M(n)&&Object.keys(n).forEach(c=>{Oa.includes(c)?s[c]=n[c]:o[c]=n[c]}),I(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",l,o,s]}function yr(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Ar(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ca.numberFormat)return o(Be(ae.CANNOT_FORMAT_NUMBER)),Pt;const[c,u,d,f]=Nn(...t),h=U(d.missingWarn)?d.missingWarn:e.missingWarn,E=U(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,y=!!d.part,S=Wn(e,d),w=s(e,a,S);if(!I(c)||c==="")return new Intl.NumberFormat(S,f).format(u);let g={},p,T=null,N=S,O=null;const L="number format";for(let x=0;x<w.length;x++){if(p=O=w[x],process.env.NODE_ENV!=="production"&&S!==p&&Gt(E,c)&&o(Be(ae.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const J=e.__v_emitter;J&&J.emit("fallback",{type:L,key:c,from:N,to:O,groupId:`${L}:${c}`})}if(g=n[p]||{},T=g[c],M(T))break;Yn(e,c,p,h,L),N=O}if(!M(T)||!I(p))return r?xt:c;let v=`${p}__${c}`;Bt(f)||(v=`${v}__${JSON.stringify(f)}`);let F=l.get(v);return F||(F=new Intl.NumberFormat(p,Z({},T,f)),l.set(v,F)),y?F.formatToParts(u):F.format(u)}const Ia=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nn(...e){const[t,n,r,a]=e,o=$();let s=$();if(!Q(t))throw Ne(te.INVALID_ARGUMENT);const l=t;return I(n)?o.key=n:M(n)&&Object.keys(n).forEach(c=>{Ia.includes(c)?s[c]=n[c]:o[c]=n[c]}),I(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",l,o,s]}function Tr(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const zs=e=>e,Zs=e=>"",ei="text",ti=e=>e.length===0?"":Un(e),ni=ko;function Cr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ri(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 ai(e,t){t.count||(t.count=e),t.n||(t.n=e)}function oi(e={}){const t=e.locale,n=ri(e),r=V(e.pluralRules)&&I(t)&&Y(e.pluralRules[t])?e.pluralRules[t]:Cr,a=V(e.pluralRules)&&I(t)&&Y(e.pluralRules[t])?Cr:void 0,o=g=>g[r(n,g.length,a)],s=e.list||[],l=g=>s[g],c=e.named||$();Q(e.pluralIndex)&&ai(n,c);const u=g=>c[g];function d(g,p){const T=Y(e.messages)?e.messages(g,!!p):V(e.messages)?e.messages[g]:!1;return T||(e.parent?e.parent.message(g):Zs)}const f=g=>e.modifiers?e.modifiers[g]:zs,h=M(e.processor)&&Y(e.processor.normalize)?e.processor.normalize:ti,E=M(e.processor)&&Y(e.processor.interpolate)?e.processor.interpolate:ni,y=M(e.processor)&&I(e.processor.type)?e.processor.type:ei,w={list:l,named:u,plural:o,linked:(g,...p)=>{const[T,N]=p;let O="text",L="";p.length===1?V(T)?(L=T.modifier||L,O=T.type||O):I(T)&&(L=T||L):p.length===2&&(I(T)&&(L=T||L),I(N)&&(O=N||O));const v=d(g,!0)(w),F=O==="vnode"&&X(v)&&L?v[0]:v;return L?f(L)(F,O):F},message:d,type:y,interpolate:E,normalize:h,values:Z($(),s,c)};return w}const Or=()=>"",le=e=>Y(e);function Ir(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[c,u]=vn(...t),d=U(u.missingWarn)?u.missingWarn:e.missingWarn,f=U(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=U(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,y=I(u.default)||U(u.default)?U(u.default)?o?c:()=>c:u.default:n?o?c:()=>c:null,S=n||y!=null&&(I(y)||Y(y)),w=Wn(e,u);h&&si(u);let[g,p,T]=E?[c,w,l[w]||$()]:wa(e,c,w,s,f,d),N=g,O=c;if(!E&&!(I(N)||ce(N)||le(N))&&S&&(N=y,O=N),!E&&(!(I(N)||ce(N)||le(N))||!I(p)))return a?xt:c;if(process.env.NODE_ENV!=="production"&&I(N)&&e.messageCompiler==null)return`${c}`,c;let L=!1;const v=()=>{L=!0},F=le(N)?N:La(e,c,p,N,O,v);if(L)return N;const x=ui(e,p,T,u),J=oi(x),fe=ii(e,F,J),z=r?r(fe,c):fe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Ge={timestamp:Date.now(),key:I(c)?c:le(N)?N.key:"",locale:p||(le(N)?N.locale:""),format:I(N)?N:le(N)?N.source:"",message:z};Ge.meta=Z({},e.__meta,qs()||{}),Ts(Ge)}return z}function si(e){X(e.list)?e.list=e.list.map(t=>I(t)?lr(t):t):V(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=lr(e.named[t]))})}function wa(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,n);let f=$(),h,E=null,y=n,S=null;const w="translate";for(let g=0;g<d.length;g++){if(h=S=d[g],process.env.NODE_ENV!=="production"&&n!==h&&!Ta(n,h)&&Gt(a,t)&&l(Be(ae.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const O=e.__v_emitter;O&&O.emit("fallback",{type:w,key:t,from:y,to:S,groupId:`${w}:${t}`})}f=s[h]||$();let p=null,T,N;if(process.env.NODE_ENV!=="production"&&_e&&(p=window.performance.now(),T="intlify-message-resolve-start",N="intlify-message-resolve-end",ie&&ie(T)),(E=c(f,t))===null&&(E=f[t]),process.env.NODE_ENV!=="production"&&_e){const O=window.performance.now(),L=e.__v_emitter;L&&p&&E&&L.emit("message-resolve",{type:"message-resolve",key:t,message:E,time:O-p,groupId:`${w}:${t}`}),T&&N&&ie&&Ue&&(ie(N),Ue("intlify message resolve",T,N))}if(I(E)||ce(E)||le(E))break;if(!Js(h,d)){const O=Yn(e,t,h,o,w);O!==t&&(E=O)}y=S}return[E,h,f]}function La(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(le(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||t,h}if(s==null){const h=()=>r;return h.locale=n,h.key=t,h}let c=null,u,d;process.env.NODE_ENV!=="production"&&_e&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",ie&&ie(u));const f=s(r,li(e,n,a,r,l,o));if(process.env.NODE_ENV!=="production"&&_e){const h=window.performance.now(),E=e.__v_emitter;E&&c&&E.emit("message-compilation",{type:"message-compilation",message:r,time:h-c,groupId:`translate:${t}`}),u&&d&&ie&&Ue&&(ie(d),Ue("intlify message compilation",u,d))}return f.locale=n,f.key=t,f.source=r,f}function ii(e,t,n){let r=null,a,o;process.env.NODE_ENV!=="production"&&_e&&(r=window.performance.now(),a="intlify-message-evaluation-start",o="intlify-message-evaluation-end",ie&&ie(a));const s=t(n);if(process.env.NODE_ENV!=="production"&&_e){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),a&&o&&ie&&Ue&&(ie(o),Ue("intlify message evaluation",a,o))}return s}function vn(...e){const[t,n,r]=e,a=$();if(!I(t)&&!Q(t)&&!le(t)&&!ce(t))throw Ne(te.INVALID_ARGUMENT);const o=Q(t)?String(t):(le(t),t);return Q(n)?a.plural=n:I(n)?a.default=n:M(n)&&!Bt(n)?a.named=n:X(n)&&(a.list=n),Q(r)?a.plural=r:I(r)?a.default=r:M(r)&&Z(a,r),[o,a]}function li(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const l=ci(r),c=`Message compilation error: ${s.message}`,u=s.location&&l&&Ro(l,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&l&&d.emit("compile-error",{message:l,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`})}else throw s},onCacheKey:s=>Co(t,n,s)}}function ci(e){if(I(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ui(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,h={locale:t,modifiers:a,pluralRules:o,messages:(E,y)=>{let S=s(n,E);if(S==null&&(d||y)){const[,,w]=wa(d||e,E,t,l,c,u);S=s(w,E)}if(I(S)||ce(S)){let w=!1;const p=La(e,E,t,S,E,()=>{w=!0});return w?Or:p}else return le(S)?S:Or}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Q(r.plural)&&(h.pluralIndex=r.plural),h}us();function fi(){return Da().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Da(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const di=typeof Proxy=="function",_i="devtools-plugin:setup",mi="plugin:settings:set";let We,yn;function hi(){var e;return We!==void 0||(typeof window<"u"&&window.performance?(We=!0,yn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(We=!0,yn=globalThis.perf_hooks.performance):We=!1),We}function gi(){return hi()?yn.now():Date.now()}class pi{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const s=localStorage.getItem(a),l=JSON.parse(s);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}o=s},now(){return gi()}},n&&n.on(mi,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}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 Ei(e,t){const n=e,r=Da(),a=fi(),o=di&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(_i,e,t);else{const s=o?new pi(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
21
|
-
* vue-i18n v11.1.3
|
|
22
|
-
* (c) 2025 kazuya kawaguchi
|
|
23
|
-
* Released under the MIT License.
|
|
24
|
-
*/const Si="11.1.3";function bi(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Me().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Me().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1)}const H={UNEXPECTED_RETURN_TYPE:Os,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 tt(e,null,process.env.NODE_ENV!=="production"?{messages:Ni,args:t}:void 0)}const Ni={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},An=pe("__translateVNode"),Tn=pe("__datetimeParts"),Cn=pe("__numberParts"),xe=pe("__enableEmitter"),pt=pe("__disableEmitter"),ka=pe("__setPluralRules"),Ra=pe("__injectWithOption"),On=pe("__dispose"),ge={FALLBACK_TO_ROOT:xs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},vi={[ge.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ge.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ge.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ge.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
25
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ge.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function bt(e,...t){return Ut(vi[e],...t)}function Et(e){if(!V(e)||ce(e))return e;for(const t in e)if(de(e,t))if(!t.includes("."))V(e[t])&&Et(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in a||(a[n[s]]=$()),!V(a[n[s]])){process.env.NODE_ENV!=="production"&&(bt(ge.IGNORE_OBJ_FLATTEN,{key:n[s]}),void 0),o=!0;break}a=a[n[s]]}if(o||(ce(a)?pa.includes(n[r])||delete e[t]:(a[n[r]]=e[t],delete e[t])),!ce(a)){const s=a[n[r]];V(s)&&Et(s)}}return e}function Hn(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=M(n)?n:X(r)?$():{[e]:$()};if(X(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||$(),kt(u,s[c])):kt(u,s)}else I(l)&&kt(JSON.parse(l),s)}),a==null&&o)for(const l in s)de(s,l)&&Et(s[l]);return s}function Pa(e){return e.type}function Fa(e,t,n){let r=V(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=Hn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(V(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(V(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function wr(e){return i.createVNode(i.Text,null,e,0)}const Lr="__INTLIFY_META__",Dr=()=>[],yi=()=>!1;let kr=0;function Rr(e){return(t,n,r,a)=>e(n,r,i.getCurrentInstance()||void 0,a)}const Ai=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=Pa(e)[Lr])?{[Lr]:t}:null};function Kn(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,o=_e?i.ref:i.shallowRef;let s=U(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&s?t.locale.value:I(e.locale)?e.locale:gt),c=o(t&&s?t.fallbackLocale.value:I(e.fallbackLocale)||X(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),u=o(Hn(l.value,e)),d=o(M(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(M(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:U(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=t?t.fallbackWarn:U(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,w=Y(e.missing)?e.missing:null,g=Y(e.missing)?Rr(e.missing):null,p=Y(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const O=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,v;v=(()=>{r&&Sr(null);const b={version:Si,locale:l.value,fallbackLocale:c.value,messages:u.value,modifiers:O,pluralRules:L,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:T,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=d.value,b.numberFormats=f.value,b.__datetimeFormatters=M(v)?v.__datetimeFormatters:void 0,b.__numberFormatters=M(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=M(v)?v.__v_emitter:void 0);const C=Qs(b);return r&&Sr(C),C})(),it(v,l.value,c.value);function x(){return[l.value,c.value,u.value,d.value,f.value]}const J=i.computed({get:()=>l.value,set:b=>{v.locale=b,l.value=b}}),fe=i.computed({get:()=>c.value,set:b=>{v.fallbackLocale=b,c.value=b,it(v,l.value,b)}}),z=i.computed(()=>u.value),Ge=i.computed(()=>d.value),Ht=i.computed(()=>f.value);function Kt(){return Y(p)?p:null}function jt(b){p=b,v.postTranslation=b}function qt(){return w}function Xt(b){b!==null&&(g=Rr(b)),w=b,v.missing=g}function Qt(b,C){return b!=="translate"||!C.resolvedMessage}const Se=(b,C,G,q,ke,Tt)=>{x();let $e;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(v.fallbackContext=t?Xs():void 0),$e=b(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(v.fallbackContext=void 0)}if(G!=="translate exists"&&Q($e)&&$e===xt||G==="translate exists"&&!$e){const[Re,mo]=C();if(process.env.NODE_ENV!=="production"&&t&&I(Re)&&Qt(G,mo)&&(y&&(Gt(E,Re)||Aa(h,Re))&&(bt(ge.FALLBACK_TO_ROOT,{key:Re,type:G}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:sr}=v;sr&&y&&sr.emit("fallback",{type:G,key:Re,to:"global",groupId:`${G}:${Re}`})}return t&&y?q(t):ke(Re)}else{if(Tt($e))return $e;throw se(H.UNEXPECTED_RETURN_TYPE)}};function rt(...b){return Se(C=>Reflect.apply(Ir,null,[C,...b]),()=>vn(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>I(C))}function Jt(...b){const[C,G,q]=b;if(q&&!V(q))throw se(H.INVALID_ARGUMENT);return rt(C,G,Z({resolvedMessage:!0},q||{}))}function zt(...b){return Se(C=>Reflect.apply(vr,null,[C,...b]),()=>bn(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>Pt,C=>I(C))}function Zt(...b){return Se(C=>Reflect.apply(Ar,null,[C,...b]),()=>Nn(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>Pt,C=>I(C))}function en(b){return b.map(C=>I(C)||Q(C)||U(C)?wr(String(C)):C)}const tn={normalize:en,interpolate:b=>b,type:"vnode"};function At(...b){return Se(C=>{let G;const q=C;try{q.processor=tn,G=Reflect.apply(Ir,null,[q,...b])}finally{q.processor=null}return G},()=>vn(...b),"translate",C=>C[An](...b),C=>[wr(C)],C=>X(C))}function nn(...b){return Se(C=>Reflect.apply(Ar,null,[C,...b]),()=>Nn(...b),"number format",C=>C[Cn](...b),Dr,C=>I(C)||X(C))}function rn(...b){return Se(C=>Reflect.apply(vr,null,[C,...b]),()=>bn(...b),"datetime format",C=>C[Tn](...b),Dr,C=>I(C)||X(C))}function an(b){L=b,v.pluralRules=L}function on(b,C){return Se(()=>{if(!b)return!1;const G=I(C)?C:l.value,q=De(G),ke=v.messageResolver(q,b);return ce(ke)||le(ke)||I(ke)},()=>[b],"translate exists",G=>Reflect.apply(G.te,G,[b,C]),yi,G=>U(G))}function at(b){let C=null;const G=Ea(v,c.value,l.value);for(let q=0;q<G.length;q++){const ke=u.value[G[q]]||{},Tt=v.messageResolver(ke,b);if(Tt!=null){C=Tt;break}}return C}function ot(b){const C=at(b);return C??(t?t.tm(b)||{}:{})}function De(b){return u.value[b]||{}}function st(b,C){if(a){const G={[b]:C};for(const q in G)de(G,q)&&Et(G[q]);C=G[b]}u.value[b]=C,v.messages=u.value}function sn(b,C){u.value[b]=u.value[b]||{};const G={[b]:C};if(a)for(const q in G)de(G,q)&&Et(G[q]);C=G[b],kt(C,u.value[b]),v.messages=u.value}function _(b){return d.value[b]||{}}function m(b,C){d.value[b]=C,v.datetimeFormats=d.value,yr(v,b,C)}function A(b,C){d.value[b]=Z(d.value[b]||{},C),v.datetimeFormats=d.value,yr(v,b,C)}function k(b){return f.value[b]||{}}function K(b,C){f.value[b]=C,v.numberFormats=f.value,Tr(v,b,C)}function j(b,C){f.value[b]=Z(f.value[b]||{},C),v.numberFormats=f.value,Tr(v,b,C)}kr++,t&&_e&&(i.watch(t.locale,b=>{s&&(l.value=b,v.locale=b,it(v,l.value,c.value))}),i.watch(t.fallbackLocale,b=>{s&&(c.value=b,v.fallbackLocale=b,it(v,l.value,c.value))}));const B={id:kr,locale:J,fallbackLocale:fe,get inheritLocale(){return s},set inheritLocale(b){s=b,b&&t&&(l.value=t.locale.value,c.value=t.fallbackLocale.value,it(v,l.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:z,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(b){h=b,v.missingWarn=h},get fallbackWarn(){return E},set fallbackWarn(b){E=b,v.fallbackWarn=E},get fallbackRoot(){return y},set fallbackRoot(b){y=b},get fallbackFormat(){return S},set fallbackFormat(b){S=b,v.fallbackFormat=S},get warnHtmlMessage(){return T},set warnHtmlMessage(b){T=b,v.warnHtmlMessage=b},get escapeParameter(){return N},set escapeParameter(b){N=b,v.escapeParameter=b},t:rt,getLocaleMessage:De,setLocaleMessage:st,mergeLocaleMessage:sn,getPostTranslationHandler:Kt,setPostTranslationHandler:jt,getMissingHandler:qt,setMissingHandler:Xt,[ka]:an};return B.datetimeFormats=Ge,B.numberFormats=Ht,B.rt=Jt,B.te=on,B.tm=ot,B.d=zt,B.n=Zt,B.getDateTimeFormat=_,B.setDateTimeFormat=m,B.mergeDateTimeFormat=A,B.getNumberFormat=k,B.setNumberFormat=K,B.mergeNumberFormat=j,B[Ra]=n,B[An]=At,B[Tn]=rn,B[Cn]=nn,process.env.NODE_ENV!=="production"&&(B[xe]=b=>{v.__v_emitter=b},B[pt]=()=>{v.__v_emitter=void 0}),B}const Ma="vue-i18n: composer properties",fn={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ti={"vue-i18n-resource-inspector":"Search for scopes ..."},Ci={"vue-i18n-timeline":16764185};let In;async function Oi(e,t){return new Promise((n,r)=>{try{Ei({id:"vue-devtools-plugin-vue-i18n",label:fn["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:[Ma],app:e},a=>{In=a,a.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{Ii(s,l,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&Pr(l,s.vnode.el.__VUE_I18N__):Pr(l,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:fn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ti["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Ri(s,t)});const o=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Fi(s,t),s.nodeId==="global"){if(!o.has(s.app)){const[l]=await a.getComponentInstances(s.app);o.set(s.app,l)}a.highlightElement(o.get(s.app))}else{const l=Pi(s.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Vi(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:fn["vue-i18n-timeline"],color:Ci["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function Va(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ii(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 (${Va(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Pr(e,t){const n=Ma;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:jn(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 jn(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Y(r)&&"source"in r?t[n]=ki(r):ce(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:V(r)?t[n]=jn(r):t[n]=r}),t}const wi={"<":"<",">":">",'"':""","&":"&"};function Li(e){return e.replace(/[<>"&]/g,Di)}function Di(e){return wi[e]||e}function ki(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Li(e.source)}")`:"(?)"}`}}}function Ri(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 o=t.mode==="composition"?a:a.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${Va(r)} Scope`})}}function Pi(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 Ua(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 Fi(e,t){const n=Ua(e.nodeId,t);return n&&(e.state=Mi(n)),null}function Mi(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",o=[{type:a,key:"messages",editable:!1,value:jn(e.messages.value)}];t[a]=o;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function St(e,t){if(In){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),In.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 Vi(e,t){const n=Ua(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&I(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(I(e.state.value)||X(e.state.value)||V(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ui(e){const t=I(e.locale)?e.locale:gt,n=I(e.fallbackLocale)||X(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Y(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||ze(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=U(e.silentFallbackWarn)||ze(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=U(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=M(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Y(e.postTranslation)?e.postTranslation:void 0,f=I(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,E=U(e.sync)?e.sync:!0;let y=e.messages;if(M(e.sharedMessages)){const O=e.sharedMessages;y=Object.keys(O).reduce((v,F)=>{const x=v[F]||(v[F]={});return Z(x,O[F]),v},y||{})}const{__i18n:S,__root:w,__injectWithOption:g}=e,p=e.datetimeFormats,T=e.numberFormats,N=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:N,datetimeFormats:p,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:E,__i18n:S,__root:w,__injectWithOption:g}}function wn(e={}){const t=Kn(Ui(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,o){return t.te(a,o)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,o){t.setLocaleMessage(a,o)},mergeLocaleMessage(a,o){t.mergeLocaleMessage(a,o)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,o){t.setDateTimeFormat(a,o)},mergeDateTimeFormat(a,o){t.mergeDateTimeFormat(a,o)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,o){t.setNumberFormat(a,o)},mergeNumberFormat(a,o){t.mergeNumberFormat(a,o)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const o=t;o[xe]&&o[xe](a)},r.__disableEmitter=()=>{const a=t;a[pt]&&a[pt]()}),r}function Bi(e,t,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const o=a.i18n;if(a.__i18n&&(o.__i18n=a.__i18n),o.__root=t,this===this.$root)this.$i18n=Fr(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=wn(o);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Fr(e,a);else{this.$i18n=wn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Fa(t,a,a),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,s)=>this.$i18n.te(o,s),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),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=xn();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",St)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw se(H.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",St),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 Fr(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[ka](t.pluralizationRules||e.pluralizationRules);const n=Hn(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 qn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xi({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===i.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},$())}function Ba(){return i.Fragment}const Gi=i.defineComponent({name:"i18n-t",props:Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Q(e)||!isNaN(e)}},qn),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),s=$();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=I(e.plural)?+e.plural:e.plural);const l=xi(t,o),c=a[An](e.keypath,l,s),u=Z($(),r),d=I(e.tag)||V(e.tag)?e.tag:Ba();return i.h(d,u,c)}}}),Mr=Gi;function $i(e){return X(e)&&!I(e[0])}function xa(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let l=$();e.locale&&(s.locale=e.locale),I(e.format)?s.key=e.format:V(e.format)&&(I(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,E)=>n.includes(E)?Z($(),h,{[E]:e.format[E]}):h,$()));const c=r(e.value,s,l);let u=[s.key];X(c)?u=c.map((h,E)=>{const y=a[h.type],S=y?y({[h.type]:h.value,index:E,parts:c}):[h.value];return $i(S)&&(S[0].key=`${h.type}-${E}`),S}):I(c)&&(u=[c]);const d=Z($(),o),f=I(e.tag)||V(e.tag)?e.tag:Ba();return i.h(f,d,u)}}const Wi=i.defineComponent({name:"i18n-n",props:Z({value:{type:Number,required:!0},format:{type:[String,Object]}},qn),setup(e,t){const n=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return xa(e,t,Ia,(...r)=>n[Cn](...r))}}),Vr=Wi;function Yi(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 Hi(e){const t=s=>{process.env.NODE_ENV!=="production"&&Bn(bt(ge.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:l,value:c}=s;if(!l||!l.$)throw se(H.UNEXPECTED_ERROR);const u=Yi(e,l.$),d=Ur(c);return[Reflect.apply(u.t,u,[...Br(d)]),u]};return{created:(s,l)=>{const[c,u]=t(l);_e&&e.global===u&&(s.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=u,s.textContent=c},unmounted:s=>{_e&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const c=s.__composer,u=Ur(l);s.textContent=Reflect.apply(c.t,c,[...Br(u)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function Ur(e){if(I(e))return{path:e};if(M(e)){if(!("path"in e))throw se(H.REQUIRED_VALUE,"path");return e}else throw se(H.INVALID_VALUE)}function Br(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},l=r||{};return I(n)&&(s.locale=n),Q(a)&&(s.plural=a),Q(o)&&(s.plural=o),[t,l,s]}function Ki(e,t,...n){const r=M(n[0])?n[0]:{};(U(r.globalInstall)?r.globalInstall:!0)&&([Mr.name,"I18nT"].forEach(o=>e.component(o,Mr)),[Vr.name,"I18nN"].forEach(o=>e.component(o,Vr)),[Gr.name,"I18nD"].forEach(o=>e.component(o,Gr))),e.directive("t",Hi(t))}const ji=pe("global-vue-i18n");function qi(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Bn(bt(ge.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,o]=Xi(e,t),s=pe(process.env.NODE_ENV!=="production"?"vue-i18n":"");function l(f){return r.get(f)||null}function c(f,h){r.set(f,h)}function u(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,d),M(h[0])){const S=h[0];d.__composerExtend=S.__composerExtend,d.__vueI18nExtend=S.__vueI18nExtend}let E=null;!t&&n&&(E=rl(f,d.global)),__VUE_I18N_FULL_INSTALL__&&Ki(f,d,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Bi(o,o.__composer,d));const y=f.unmount;if(f.unmount=()=>{E&&E(),d.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await Oi(f,d))throw se(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=xn();if(t){const g=o;g.__enableEmitter&&g.__enableEmitter(w)}else{const g=o;g[xe]&&g[xe](w)}w.on("*",St)}},get global(){return o},dispose(){a.stop()},__instances:r,__getInstance:l,__setInstance:c,__deleteInstance:u};return d}function Xn(e={}){const t=i.getCurrentInstance();if(t==null)throw se(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(H.NOT_INSTALLED);const n=Qi(t),r=zi(n),a=Pa(t),o=Ji(e,a);if(o==="global")return Fa(r,e,a),r;if(o==="parent"){let c=Zi(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(bt(ge.NOT_FOUND_PARENT_SCOPE),void 0),c=r),c}const s=n;let l=s.__getInstance(t);if(l==null){const c=Z({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=Kn(c),s.__composerExtend&&(l[On]=s.__composerExtend(l)),tl(s,t,l),s.__setInstance(t,l)}return l}function Xi(e,t){const n=i.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>wn(e)):n.run(()=>Kn(e));if(r==null)throw se(H.UNEXPECTED_ERROR);return[n,r]}function Qi(e){const t=i.inject(e.isCE?ji:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function Ji(e,t){return Bt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zi(e){return e.mode==="composition"?e.global:e.global.__composer}function Zi(e,t,n=!1){let r=null;const a=t.root;let o=el(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(r=l.__composer,n&&r&&!r[Ra]&&(r=null))}if(r!=null||a===o)break;o=o.parent}return r}function el(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function tl(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=xn();const a=n;a[xe]&&a[xe](r),r.on("*",St)}},t),i.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",St),a[pt]&&a[pt](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=a[On];o&&(o(),delete a[On])},t)}const nl=["locale","fallbackLocale","availableLocales"],xr=["t","rt","d","n","tm","te"];function rl(e,t){const n=Object.create(null);return nl.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o)throw se(H.UNEXPECTED_ERROR);const s=i.isRef(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,a,s)}),e.config.globalProperties.$i18n=n,xr.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o||!o.value)throw se(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,o)}),()=>{delete e.config.globalProperties.$i18n,xr.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const al=i.defineComponent({name:"i18n-d",props:Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qn),setup(e,t){const n=e.i18n||Xn({useScope:e.scope,__useComponent:!0});return xa(e,t,Oa,(...r)=>n[Tn](...r))}}),Gr=al;bi();Ys(vs);Hs(Bs);Ks(Ea);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Me();e.__INTLIFY__=!0,ys(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ga=qi({legacy:!1,locale:"zh",fallbackLocale:"zh",globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),Fe=Ga.global;async function ol(e,t){const n=await t(e);Fe.setLocaleMessage(e,n),Fe.locale&&Fe.locale.value!==void 0?Fe.locale.value=e:Fe.locale=e}const Ye="__system:language__",He="zh";function sl(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||"").toLowerCase().trim()}function il(e){return e?e.toLowerCase().trim():""}const nt=ee.defineStore("cloudSdkLanguageStore",{state:()=>({languageDefault:He,languageName:D.localGet(Ye)||He,languageList:{zh:"简体中文","zh-cn":"简体中文","zh-CHT":"繁體中文",en:"English",ko:"한국어",ja:"日本語",de:"Deutsch",fr:"Français",id:"Indonesia"}}),getters:{languageSelect:e=>{let t=[],n=e.languageList;for(let r in n)t.push({label:n[r],value:r});return t}},actions:{async init(){let e=sl()||He;e=localStorage.getItem(Ye)||e;const t=cvUtils.urlGetParameterAll();t.language&&(e=t.language),e=il(e),Object.keys(this.languageList).includes(e)?this.languageName=e==="zh-cn"?"zh":e:this.languageName=He,localStorage.setItem(Ye,this.languageName)},async clear_cache(){D.localSet(Ye,He)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_LIST(){return this.languageList},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(Ye)||He,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,D.localSet(Ye,e),Fe.locale.value=e}}}),$r="__system:themes__",ll="light",dn="__system:layoutSidebarState__",cl="on",Wr="__system:layoutNavTabs__",ul="on",fl="__system:layoutWatermark__",dl="on";function Yr(){let e=typeof window<"u"&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`=="chrome"?"chrome":`${e.match(/Webkit/i)}`=="webkit"?"webkit":null}const ve=ee.defineStore("cloudSdkThemesStore",{state:()=>({layoutName:"",layoutNavTabs:D.localGet(Wr)||ul,layoutSidebarState:D.localGet(dn)||cl,themesName:D.localGet($r)||ll,themesList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],watermarkState:D.localGet(fl)||dl}),actions:{async init(){["auto","light","dark"].indexOf(this.themesName);const e=cvUtils.urlGetParameterAll();e.themes&&(this.themesName=e.themes),this.synchTheme(),this.SA_THEMES_SET(this.themesName),this.layoutSidebarState=this.layoutSidebarState=="off"?"off":"on",this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.layoutNavTabs=this.layoutNavTabs=="off"?"off":"on",this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.watermarkState=this.watermarkState=="off"?"off":"on",this.SA_LAYOUT_WATERMARK_SET(this.watermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.watermarkState=e;const t=document.querySelector("html");t.classList.remove(e?"hideWatermark":"openWatermark"),t.classList.add(e?"openWatermark":"hideWatermark"),D.localSet(dn,e)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openSidebar":"hideSidebar"),t.classList.add(e=="on"?"openSidebar":"hideSidebar"),D.localSet(dn,e)},SA_LAYOUT_NAVTABS_SET(e){oe.__POWERED_BY_QIANKUN__&&(e="off"),this.layoutNavTabs=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openNavtabs":"hideNavtabs"),t.classList.add(e=="on"?"openNavtabs":"hideNavtabs"),oe.__POWERED_BY_QIANKUN__||D.localSet(Wr,e)},SA_THEMES_SET(e){if(this.themesName=e||"light",!Yr()){__cc_isEEUiApp?_t.ElMessage.warning("仅Android设置支持主题功能"):_t.ElMessage.warning("仅客户端或Chrome浏览器支持主题功能");return}this.synchTheme(e)},synchTheme(e=void 0){typeof e>"u"?e=this.themesName:this.themesName=e;const t=document.body;switch(e){case"dark":if(!Yr())return;t.classList.add("sdk-theme-dark");break;case"light":let r=document.getElementById("dark-mode-style");r&&r.parentNode.removeChild(r),t.classList.remove("sdk-theme-dark");break;default:this.themesName="auto",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.themesName="dark":this.themesName="light";break}const n=document.querySelector("html");n.classList.remove(this.themesName=="dark"?"light":"dark"),n.classList.add(this.themesName),D.localSet($r,this.themesName)}}});function $a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function Wa(){return window.innerHeight}function _l(){return $a()-Wa()>50?"landscape":"portrait"}const Lt=$a(),ml=Wa(),_n=_l(),Qn=ee.defineStore("cloudSdkWindowStore",{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:Lt,windowHeight:ml,windowOrientation:_n,windowLandscape:_n==="landscape",windowPortrait:_n==="portrait",formLabelPosition:Lt>576?"right":"top",formLabelWidth:Lt>576?"auto":"",windowMax768:Lt<=768,winSizeName:""}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return document.querySelector(".electron-single-micro-apps")?1:0},isPortrait(){return document.querySelector(".window-portrait")?1:0},SA_SET_WINDOW_WIDTH(e){this.windowWidth=window.innerWidth},SA_GET_SIZE_TYPE(){switch(!0){case this.windowWidth<=768:return"app-small-768";case this.windowWidth<=992:return"app-small-992";case this.windowWidth<=1200:return"app-small-1200"}},SA_GET_WINDOW_WIDTH(){return this.winSizeName=this.SA_GET_SIZE_TYPE(),this.winSizeName}}}),lt="__system:keyboardConf__",mn="__syCacheApiFlag__",hn="__syCacheApiAuth__",Hr="__syCacheApiCode__",Kr="__syCacheApiKey__",jr="__syCacheSystemConfig__",$t=ee.defineStore("cloudSdkSystemStore",{state:()=>({cacheServerUrl:"",clientId:"",clientCacheVersion:"v7",clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,cacheKeyboard:{},systemConfig:{},apiKeyData:{}}),getters:{systemInfo:e=>({title:"",version:""})},actions:{async init(){await gbIdbObj.idbGetString("clearCache");const e=await gbIdbObj.idbGetString("cacheServerUrl");await gbIdbObj.idbSetItem("cacheServerUrl",e);const t=await gbIdbObj.idbGetString("clientCacheVersion");await gbIdbObj.idbSetItem("clientCacheVersion",this.clientCacheVersion),t!==this.clientCacheVersion?await this.clear_cache():await this.cache_read(),await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_api_key(),await this.__load_system_config(),this.SA_KEYBOARD_SET()},async clear_cache(){await gbIdbObj.idbDelItem("clearCache"),await gbIdbObj.idbDelItem("clientCacheVersion");const e=D.localGet(lt);D.localSet(lt,e),D.localDel(mn),D.localDel(hn)},async cache_read(){this.clientId=await gbIdbObj.idbGetString("clientId"),this.cacheServerUrl=await gbIdbObj.idbGetString("cacheServerUrl"),this.cacheServerUrl&&(window.systemInfo.apiUrl=this.cacheServerUrl)},async __load_api_flag(){let e=await gbIdbObj.idbGetItem(mn);e||await re.flagGet("BASE_LOAD_COMMON_API_FLAG",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),gbIdbObj.idbSetItem(mn,e)}),await re.appendApiFlag(e)},async __load_api_auth(){let e=await gbIdbObj.idbGetItem(hn);e||await re.flagGet("BASE_LOAD_COMMON_API_AUTH",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),gbIdbObj.idbSetItem(hn,e)}),await re.appendApiAuth(e)},async __load_api_code(){let e=await gbIdbObj.idbGetItem(Hr);e||await re.flagGet("BASE_LOAD_COMMON_API_CODE",{}).then(t=>{e=t.data||{},gbIdbObj.idbSetItem(Hr,e)})},async __load_api_key(){this.clientId=await gbIdbObj.idbGetString("clientId"),this.clientId||(this.clientId=cvUtils.randomString(6),await gbIdbObj.idbSetItem("clientId",this.clientId)),this.apiKeyData=await gbIdbObj.idbGetItem(Kr),this.apiKeyData||await re.setOptions({encrypt:!1}).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT",{client_id:this.clientId}).then(({data:e})=>{this.apiKeyData=e,gbIdbObj.idbSetItem(Kr,this.apiKeyData)}),re.setHeaders({"Sy-Client-Id":this.clientId})},async __load_system_config(){this.systemConfig=await gbIdbObj.idbGetItem(jr),this.systemConfig||await re.flagGet("BASE_SYS_COMMON_PLAT_SETTING",{}).then(({data:e})=>{this.systemConfig=Object.assign({},this.systemConfig,e),gbIdbObj.idbSetItem(jr,this.systemConfig)})},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=D.localGet(lt);n||(D.localSet(lt,D.localGet("__keyboard:data__")),D.localDel("__keyboard:data__"));const r=e||n||{};r.screenshot_key=(r.screenshot_key||"").trim().toLowerCase(),r.send_button_app=r.send_button_app||"button",r.send_button_desktop=r.send_button_desktop||"enter",D.localSet(lt,r),this.cacheKeyboard=r,cvUtils.__cc_isElectron,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,"."))return;let n="__ip"+e.substring(0,1)+"__";const r=D.localSet(n);let a=cvUtils.strGetMiddle(e,"","."),o=r[a]||e;if(typeof o=="object"){typeof t=="function"&&t(o);return}const s={keyId:o||e};re.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO",{ip:e}).then(()=>{D.localSet(n,s),typeof t=="function"&&t(o)})}}});function Ln(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}const Ke="syCacheAppInfo",Ce="syCacheAppToken",ct="syCacheAppJwt",ut="syCacheAppRbac",qr={nickname:"",staff_nickname:"",id:0,email:"",name:"",token:"",avatar:"",created_at:"",updated_at:"",identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:"十云",account_mobile_show:"****",account_avatar:"https://f.10yun.com/default/ucenter/avatar4.jpg",account_avatar_cdn:"https://f.10yun.com/default/ucenter/avatar4.jpg",business_name:""},me=ee.defineStore("cloudSdkAccountStore",{state:()=>({account_nick:"",accountRbacData:[],accountInfo:D.localGet(Ke)||{},accountToken:D.localGet(Ce)||"",accountJwt:D.localGet(ct)||""}),getters:{cacheBizsId:e=>{var t;return((t=(void 0).accountInfo)==null?void 0:t.business_id)||0},staffId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_id)||0},staffNick:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_nick)||""},accountIsLogin:e=>!!Ln(e.accountToken),accountRole:e=>{var t;return(t=e.accountInfo)==null?void 0:t.identity},accRoleIsAdmin:e=>{var t;return((t=e.accountInfo)==null?void 0:t.acc_role_type)=="sy-org-admin"}},actions:{init(){const e=cvUtils.urlGetParameterAll();e.token&&D.localSet("ACC_TOKEN_CACHE_KEY",e.token),this.SA_ACCOUNT_RBAC_REFRESH(),this.accountIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){this.ACCOUNT_SET_PREV()},async clear_all(){},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=D.localGet(Ce)||"",!!Ln(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||""},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||""},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,D.localSet(Ce,this.accountToken)},SA_ACCOUNT_INFO_GET(){return D.localGet("accountInfo")},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{re.flagGet("BASE_ACCSYS_COMMON_INFO",{}).then(({data:n})=>{n=this._SA_ACCOUNT_INFO_PARSE(n),e(n)}).catch(n=>{t(n)})})},SA_ACCOUNT_INFO_PARSE(e){return e=e||qr,cvUtils.isEmpty(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=cvUtils.parseNumber(e.account_id),e.token_access=e.account_id>0?e.token_access||this.accountToken:"",e.account_avatar_cdn=e.account_avatar_cdn||e.per_avatar_cdn,e.account_mobile_hide=e.account_mobile_hide||e.ucenter_mobile_hide||e.ucenter_mobile,this.accountInfo=e,e},SA_ACCOUNT_INFO_SET(e){return new Promise(async t=>{const n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await gbIdbObj.idbSetItem("accountInfo",n),D.localSet(Ke,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=D.localGet(Ke)||qr,this.accountToken=D.localGet(Ce)||"",this.accountJwt=D.localGet(ct)||"",re.setDefHeaders({syOpenAppToken:this.accountToken||"",Authorization:"Bearer "+this.accountJwt||""})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),D.localSet(Ke,e),D.localSet(Ce,e.token_access||""),D.localSet(ct,e.token_jwt||""),D.localSet(ut,""),this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),gbIdbObj.idbSave(Ce,e.token_access||""),Je().QK_SEND_LOGIN_MSG()},SA_ACCOUNT_LOGOUT(){this.ACCOUNT_SET_PREV(),D.sessionClear(),D.localSet(Ke,""),D.localSet(Ce,""),D.localSet(ct,""),D.localSet(ut,""),D.localDel(Ke),D.localDel(Ce),D.localDel(ct),D.localDel(ut),this.SA_ACCOUNT_REFRESH(),Je().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){return e=e||!1,new Promise(async t=>{if(this.accountToken){let n=D.localGet(ut)||"";e&&n==""?await re.flagGet("ORG_SYS_BASE_MYRBAC",{}).then(r=>{r.status==100600?this.SA_ACCOUNT_LOGOUT():r.status==200&&(D.localSet(ut,r.data||""),t(r.data||""))}).catch(()=>{t("")}):t(n)}else t([])})},ACCOUNT_SET_PREV(){}}});function Xr(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function Ya(e,t){t=t||1;let n="";e.path?n=e.path:e.component&&(n=e.component),e.component||(n="");let r="";if(e.name?r=e.name:n?r=Xr(n):r="temp_name_"+t,r=Xr(r),e.children&&e.children.length>0){let a=e.children,o=0,s=0;a.forEach((l,c)=>{l.isMenu==!0&&o++,l.isRbac==!0&&s++}),e.children_menu_num=o,e.children_opt_num=s}return{...e,path:n,name:r}}const hl={},gl=hl,pl=gl.VITE_SY_PRODUCT_SIGN;function Ha(e){let t=Object.prototype.toString.call(e);if(t!="[object String]"&&t!="[object Array]")return!1;let n=D.localGet("syCacheAppRbac")||"";if(t=="[object String]")return Ft(e,n);if(t==="[object Array]"){for(const r of e)if(!Ft(r,n))return!1;return!0}return!1}function Ft(e,t){if(e=e||"",e=e.trim(),e=="")return!1;e.includes("@")||(e=`${pl}@${e}`);let n=t||D.localGet("syCacheAppRbac")||"";return n=n.trim(),Ln(n)?n=='"all@all"'||n=="all@all"?!0:n.split(",").map(a=>a.trim()).includes(e):!1}const Nt=ee.defineStore("cloudSdkProductStore",{state:()=>({defaultProductInfo:{info_title:Qe().syProductTitle||"ShiyunProduct",info_logo:"",info_version:"v1.25.xxxx"},currMenuInfo:{},menuBadge:{},menuOpeneds:[],menuOnly:[],menuOriginal:[]}),getters:{openProductInfo:e=>{let t=window.shiyunProductInfo||{};return Object.assign({},e.defaultProductInfo,t)},menuCurrOpeneds:e=>e.menuOpeneds,menuCurrOnly:e=>e.menuOnly},actions:{async init(e){e=e||[],e&&(this.menuOriginal=JSON.parse(JSON.stringify(e)))},async clear_cache(){},SA_SET_MENU_BADGE_KEY(e,t){this.menuBadge[e]=t},SA_PRODUCT_INFO_GET(){},SA_MENU_SET(e){this.menuTree=e||[]},SA_MENU_PARSE(){var e=[];function t(o,s){let l=[];for(let c in o){let u=o[c];u=Ya(u,c),u.isMenu===!0&&(u.isRbac&&!u.path||(u.children&&u.children.length>0&&(u.children=t(u.children,s)),u.collapsable===!1&&e.push(u.name),Ft(u.name,s)&&l.push(u)))}return l}let n=JSON.parse(JSON.stringify(this.menuOriginal)),r=D.localGet("syCacheAppRbac")||"",a=t(n,r);return this.menuOpeneds=e,this.menuOnly=a,a},SA_MENU_GET(){return this.menuTree}}}),El=[{meta:{title:"登录",isAlone:!0},isAlone:!0,name:"login",path:"/login",component:()=>Promise.resolve().then(()=>require("./login-DsaaTEyf.cjs"))}],Sl=[{meta:{title:"不建议单独运行",isAlone:!0},isAlone:!0,name:"alone_run",path:"/alone_run",component:()=>Promise.resolve().then(()=>require("./alone_run-ErREtrxQ.cjs"))},{meta:{title:"错误",isAlone:!0},isAlone:!0,name:"404",path:"/:catchAll(.*)",component:()=>Promise.resolve().then(()=>require("./404-BF-98DI2.cjs"))}],bl=[{meta:{title:"空页面",isAlone:!1},isAlone:!1,name:"none",path:"/none",component:()=>Promise.resolve().then(()=>require("./none-CxRhvKIK.cjs"))}],vt=ee.defineStore("cloudSdkPermissionStore",{state:()=>({originalRoutes:[],whiteList:["404","login","alone_run","none"],addRoutes:[],routeAlive:0,rbacLastStr:D.localGet("syCacheAppRbac")||"",rbacArr:[]}),actions:{init(e){e=e||[],this.originalRoutes=e},clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t=t||"",t!="console_passport"&&e.addRoute(...El),e.addRoute(...Sl),e.addRoute(...bl)},SA_PERMS_ROUTER_CHECK(e){let n=Ya(e).name;return!!(this.whiteList.includes(n)||Ft(n,this.rbacLastStr))},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),Qr={"org-business":"商家平台","org-operator":"运营平台","org-agent":"代理商平台","org-admin":"超管平台"};let Nl=Qr[Qe().syAppConnectRole]?Qr[Qe().syAppConnectRole]:"管理系统";const vl=ee.defineStore("cloudSdkApplicationStore",{state:()=>({defaultCaseInfo:{platinfo_logo:"//10ui.cn/10yun-img/logo-nobg.png",platinfo_version:"",platinfo_login_bg:"",platinfo_brand:"shiyun",platinfo_title:"十云",platinfo_short:"十云",privacy_url:"//api.10yun.com/privacy.html",system_type:Nl}}),getters:{openCaseInfo:e=>{let t=window.shiyunProductInfo||{};return Object.assign({},e.defaultCaseInfo,t)}},actions:{async init(){}}});function yl(){return new Promise(async e=>{nt().clear_cache(),ve().clear_cache(),$t().clear_cache(),me().clear_cache(),Nt().clear_cache(),window.gbIdbObj.idbSetItem("clear_cache","handle").then(t=>{e()})})}function Al(){return{computed:{...ee.mapState(Je,["qiankunExistState"]),...ee.mapState(nt,["languageName","languageList","languageSelect"]),...ee.mapState(ve,["themesName","themesList","layoutNavTabs","layoutSidebarState"]),...ee.mapState(Qn,["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","formLabelPosition"]),...ee.mapState($t,["cacheServerUrl","systemConfig","systemInfo","sysIsElectron","sysIsEEUiApp","sysIsSoftware"]),...ee.mapState(me,["accountIsLogin","accountInfo","accountToken","accountRole","accRoleIsAdmin","staffId","staffNick"]),...ee.mapState(Nt,["openProductInfo","menuBadge","menuCurrOpeneds","menuCurrOnly"]),...ee.mapState(vl,["openCaseInfo"])},watch:{windowActive(t){}},mounted(){}}}const Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Tl={name:"HeaderSysSettDrawer",components:{},props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1,frameSysTheme:"",frameSysLanguage:"",frameSysNavTabs:null,frameSidebarState:null}},watch:{modelVal(e){this.localVal=e},frameSysTheme(e){ve().SA_THEMES_SET(e)},frameSysLanguage(e){nt().SA_LANGUAGE_SET(e)},frameSidebarState(e){ve().SA_LAYOUT_SLIDEBAR_SET(e)},frameSysNavTabs(e){ve().SA_LAYOUT_NAVTABS_SET(e)}},created(){this.init()},methods:{init(){this.frameSysTheme=this.themesName,this.frameSysLanguage=this.languageName,this.frameSysNavTabs=this.layoutNavTabs,this.frameSidebarState=this.layoutSidebarState},frameTopSysSettClose(){this.localVal=!1,this.$emit("update:modelValue",this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand("clearCache")}}},Cl={class:"cloud-sett-drawer-body"},Ol={class:"cloud-sett-drawer-skin"};function Il(e,t,n,r,a,o){const s=i.resolveComponent("el-card"),l=i.resolveComponent("el-form-item"),c=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("cv-icons"),f=i.resolveComponent("el-button"),h=i.resolveComponent("el-switch"),E=i.resolveComponent("el-form"),y=i.resolveComponent("el-drawer");return i.openBlock(),i.createBlock(y,{title:"系统设置",modelValue:a.localVal,"onUpdate:modelValue":t[6]||(t[6]=S=>a.localVal=S),direction:"rtl",size:"450px","before-close":o.frameTopSysSettClose},{default:i.withCtx(()=>[i.createElementVNode("div",Cl,[i.createVNode(E,{labelWidth:"auto","label-position":"left"},{default:i.withCtx(()=>[i.createVNode(l,{label:"风格","label-position":"top"},{default:i.withCtx(()=>[i.createElementVNode("div",Ol,[i.createVNode(s),i.createVNode(s),i.createVNode(s)])]),_:1}),i.createVNode(l,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysTheme,"onUpdate:modelValue":t[0]||(t[0]=S=>a.frameSysTheme=S),placeholder:e.$t("选项主题"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.themesList,(S,w)=>(i.openBlock(),i.createBlock(c,{label:e.$t(S.name),value:S.value,key:w},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t(S.name)),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(l,{label:"暗黑模式"},{default:i.withCtx(()=>[a.frameSysTheme=="light"?(i.openBlock(),i.createBlock(f,{key:0,onClick:t[1]||(t[1]=S=>a.frameSysTheme="dark"),class:"light-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeDark"})]),_:1})):i.createCommentVNode("",!0),a.frameSysTheme=="dark"?(i.openBlock(),i.createBlock(f,{key:1,onClick:t[2]||(t[2]=S=>a.frameSysTheme="light"),class:"dark-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeLight"})]),_:1})):i.createCommentVNode("",!0)]),_:1}),i.createVNode(l,{label:"侧栏显示"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:a.frameSidebarState,"onUpdate:modelValue":t[3]||(t[3]=S=>a.frameSidebarState=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(l,{label:"导航标签栏"},{default:i.withCtx(()=>[i.createVNode(h,{modelValue:a.frameSysNavTabs,"onUpdate:modelValue":t[4]||(t[4]=S=>a.frameSysNavTabs=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(l,{label:"语言"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysLanguage,"onUpdate:modelValue":t[5]||(t[5]=S=>a.frameSysLanguage=S),placeholder:e.$t("选项语言"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.languageSelect,(S,w)=>(i.openBlock(),i.createBlock(c,{label:S.label,value:S.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(S.label),1)]),_:2},1032,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(l,{label:"版本"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameUpdateVersion},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("更新版本")),1)]),_:1},8,["onClick"])]),_:1}),i.createVNode(l,{label:"缓存"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameClearCache},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("清除缓存")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})])]),_:1},8,["modelValue","before-close"])}const wl=Ee(Tl,[["render",Il]]),Ll={props:{className:""},data(){return{routeRefreshAnimation:"",routeRefreshNum:0}},computed:{...ee.mapState(vt,["routeAlive"])},watch:{routeAlive(e){this.routeRefreshAnimation="subapp-slide-right",this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=""})}},methods:{}};function Dl(e,t,n,r,a,o){const s=i.resolveComponent("router-view");return i.openBlock(),i.createBlock(s,{key:a.routeRefreshNum},{default:i.withCtx(({Component:l,route:c})=>[i.createVNode(i.Transition,{name:a.routeRefreshAnimation,mode:"out-in",appear:""},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.className),key:c.path},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l)))],2))]),_:2},1032,["name"])]),_:1})}const Ka=Ee(Ll,[["render",Dl]]),Jr=e=>Math.pow(e,3),kl=e=>e<.5?Jr(e*2)/2:1-Jr((1-e)*2)/2,Rl={name:"SameNavTabs",data(){return{sett_tags:[{title:"概览",path:"/index",name:"index"}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let t in this.sett_tags)if(this.sett_tags[t].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName("xxxxxx-tag");e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){const e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(o=>setTimeout(o,16)),a=()=>{const o=(Date.now()-t)/500;o<1?(e.scrollLeft=n*(1-kl(o)),r(a)):e.scrollLeft=0};r(a)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){const e=this.$refs.navScroll1.wrap,t=e.scrollLeft;e.scrollLeft=t+300},async removeTag(e,t){if(e.path!="/index"){if(this.$route.meta.close_tip){let n=!1;if(await this.$confirm("将要关闭正在编辑的页面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n=!1}).catch(()=>{n=!0}),n)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push("/");return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector("#tagId");e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split("-")[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},Pl={class:"cloud-navtabs__wrap"},Fl={class:"cloud-navtabs__box"},Ml={class:"cloud-navtabs__main"},Vl={class:"cloud-navtabs__tags"};function Ul(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("cv-btn-base"),c=i.resolveComponent("el-tag"),u=i.resolveComponent("el-scrollbar"),d=i.resolveComponent("cv-btn-text");return i.openBlock(),i.createElementBlock("div",Pl,[i.createElementVNode("div",Fl,[i.createVNode(l,{class:"btn-opt-left",onClick:o.changeGdtLeft},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowLeft"})]),_:1},8,["onClick"]),i.createElementVNode("div",Ml,[i.createVNode(u,{ref:"navScroll1"},{default:i.withCtx(()=>[i.createElementVNode("div",Vl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.sett_tags,(f,h)=>(i.openBlock(),i.createBlock(c,{id:a.activeTag==f.name?"tagId":"",class:i.normalizeClass(["tag xxxxxx-tag",a.activeTag==f.name?"active":""]),key:f.name,closable:f.path!=="/index",onClose:E=>o.removeTag(f,h),onClick:E=>o.changeMenu(f),"disable-transitions":"",onContextmenu:i.withModifiers(o.openContextMenu,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.title),1)]),_:2},1032,["id","class","closable","onClose","onClick","onContextmenu"]))),128))])]),_:1},512)]),i.createVNode(l,{class:"btn-opt-right",onClick:o.changeGdtRight},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowRight"})]),_:1},8,["onClick"]),i.createVNode(l,{class:"btn-opt-close"},{default:i.withCtx(()=>[t[5]||(t[5]=i.createTextVNode(" 关闭操作 ")),i.createVNode(s,{type:"ElIconCaretBottom"})]),_:1}),i.withDirectives(i.createElementVNode("div",{class:"cloud-navtabs__contextmenu",style:i.normalizeStyle(a.contextMenuStyle)},[i.createElementVNode("ul",{style:i.normalizeStyle({left:a.left+"px",top:a.top+"px"})},[i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[0]||(t[0]=f=>o.curTabReload())},{default:i.withCtx(()=>t[6]||(t[6]=[i.createTextVNode("重新加载")])),_:1})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[1]||(t[1]=f=>o.closeAllTabs())},{default:i.withCtx(()=>t[7]||(t[7]=[i.createTextVNode("关闭所有")])),_:1})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[2]||(t[2]=f=>o.closeOtherTabs("left")),disabled:a.isDisabledCloseLeftBtnFlag},{default:i.withCtx(()=>t[8]||(t[8]=[i.createTextVNode("关闭左边")])),_:1},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[3]||(t[3]=f=>o.closeOtherTabs("right")),disabled:a.isDisabledCloseRightBtnFlag},{default:i.withCtx(()=>t[9]||(t[9]=[i.createTextVNode("关闭右边")])),_:1},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[4]||(t[4]=f=>o.closeOtherTabs("other"))},{default:i.withCtx(()=>t[10]||(t[10]=[i.createTextVNode("关闭其他")])),_:1})])],4)],4),[[i.vShow,a.contextMenuVisible]])])])}const Bl=Ee(Rl,[["render",Ul]]),xl={name:"SidebarMenuItem",props:{menuData:{type:Array,default(e){return[]}},collapse:{type:[Boolean],default:!1},isChildren:{type:[Boolean],default:!1},appData:{type:[Array,Object],default(e){return{}}}},data(){return{}},computed:{badgeStyle(){return this.collapse?"position: absolute; right: 25px; margin-top: -20px":"position: absolute; right: 30px; "}},methods:{currBadge(e){return this.menuBadge[e]&&this.menuBadge[e]>0?this.menuBadge[e]:0},handleOpenMenu(e){if(e&&e.isWindow){var t=window.open("","MyWindowName","");t.location.href=e.path}else this.jumpsAuth(e.path)}}},Gl={class:"cloud-subapp-menu-icon"},$l={key:1},Wl={key:0,class:"cloud-subapp-menu-icon"},Yl={key:1,class:"cloud-subapp-menu-icon"};function Hl(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("SidebarMenuItem",!0),c=i.resolveComponent("el-sub-menu"),u=i.resolveComponent("cv-badge"),d=i.resolveComponent("el-menu-item");return i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.menuData,f=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.isMenu==!0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[f.children&&f.children.length>0&&f.children_menu_num>0?(i.openBlock(),i.createBlock(c,{key:f.name,index:f.name},{title:i.withCtx(()=>[i.createElementVNode("div",Gl,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0),!f.meta.icon&&n.collapse?(i.openBlock(),i.createElementBlock("span",$l,i.toDisplayString(f.meta.short||f.meta.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",null,i.toDisplayString(f.meta.title||f.meta.short),1)]),default:i.withCtx(()=>[i.createVNode(l,{appData:n.appData,menuData:f.children,collapse:n.collapse,isChildren:""},null,8,["appData","menuData","collapse"])]),_:2},1032,["index"])):(i.openBlock(),i.createBlock(d,{index:f.name,key:"b"+f.name,onClick:h=>o.handleOpenMenu(f)},{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.meta.short||f.meta.title),1)]),default:i.withCtx(()=>[!f.meta.icon&&n.collapse&&!n.isChildren?(i.openBlock(),i.createElementBlock("div",Wl,i.toDisplayString(f.meta.short||f.meta.title),1)):(i.openBlock(),i.createElementBlock("div",Yl,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0)])),f.meta.badge&&o.currBadge(f.meta.badge)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[o.currBadge(f.meta.badge)>0?(i.openBlock(),i.createBlock(u,{key:0,class:"menu-badge",type:"danger",max:999,value:o.currBadge(f.meta.badge),style:i.normalizeStyle(o.badgeStyle)},null,8,["value","style"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]),_:2},1032,["index","onClick"]))],64)):i.createCommentVNode("",!0)],64))),256)}const Kl=Ee(xl,[["render",Hl]]),jl={name:"SidebarMenuBox",components:{SidebarMenuItem:Kl},props:{collapse:{type:[Boolean],default:!1}},data(){return{menuDefaultOpeneds:[],menuCurrList:[],activeName:null}},watch:{$route(e,t){if(e.meta.treeInfo){let n=e.meta.treeInfo,r=n.length-1;for(let a=r;a>=0;a--)n[a].isMenu==!0&&n[a].isPage==!0&&(this.activeName=n[a].name||e.name)}},menuCurrOnly(e){this.menuCurrList=e},menuCurrOpeneds(e){this.menuDefaultOpeneds=e}},created(){this.menuCurrList=this.menuCurrOnly,this.menuDefaultOpeneds=this.menuCurrOpeneds},methods:{handleOpen(e,t){},handleClose(e,t){}}},ql={class:"cloud-subapp-wrap"},Xl={class:"cloud-sidebar__title"},Ql={class:"cloud-subapp-menu-box"};function Jl(e,t,n,r,a,o){const s=i.resolveComponent("SidebarMenuItem"),l=i.resolveComponent("el-menu");return i.openBlock(),i.createElementBlock("div",ql,[i.createElementVNode("div",Xl,i.toDisplayString(e.openProductInfo.info_title),1),i.createElementVNode("div",Ql,[i.createVNode(l,{collapse:n.collapse,"default-openeds":a.menuDefaultOpeneds,"default-active":a.activeName,onOpen:o.handleOpen,onClose:o.handleClose},{default:i.withCtx(()=>[i.createVNode(s,{appData:e.openProductInfo,menuData:a.menuCurrList,collapse:n.collapse},null,8,["appData","menuData","collapse"])]),_:1},8,["collapse","default-openeds","default-active","onOpen","onClose"])])])}const zl=Ee(jl,[["render",Jl]]),Zl={name:"ChangePassword",props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{}}},watch:{modelValue(e){this.visible=e}},created(){this.visible=this.modelValue},methods:{changeValue(e){this.visible=e,this.$emit("update:modelValue",e)},handleCancel(){this.changeValue(!1),this.formData={}},handleLogout(){const e=me();this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})},handleBeforeOk(){this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD",this.formData).then(e=>{this.$confirm("修改成功,请重新登录","重新登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).finally(()=>{this.handleLogout()})}).catch(e=>{this.$message.error(e.message)})}}},ec={class:"dialog-footer"};function tc(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),l=i.resolveComponent("el-form-item"),c=i.resolveComponent("el-form"),u=i.resolveComponent("el-button"),d=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(d,{width:520,modelValue:a.visible,"onUpdate:modelValue":t[3]||(t[3]=f=>a.visible=f),title:"修改密码",onClose:o.handleCancel},{footer:i.withCtx(()=>[i.createElementVNode("div",ec,[i.createVNode(u,{onClick:o.handleCancel},{default:i.withCtx(()=>t[4]||(t[4]=[i.createTextVNode("取 消")])),_:1},8,["onClick"]),i.createVNode(u,{type:"primary",onClick:o.handleBeforeOk},{default:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode("确 定")])),_:1},8,["onClick"])])]),default:i.withCtx(()=>[i.createVNode(c,{model:a.formData,"label-width":"auto"},{default:i.withCtx(()=>[i.createVNode(l,{prop:"old_pwd",label:"原密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.old_pwd,"onUpdate:modelValue":t[0]||(t[0]=f=>a.formData.old_pwd=f)},null,8,["modelValue"])]),_:1}),i.createVNode(l,{prop:"new_pwd1",label:"新密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd1,"onUpdate:modelValue":t[1]||(t[1]=f=>a.formData.new_pwd1=f)},null,8,["modelValue"])]),_:1}),i.createVNode(l,{prop:"new_pwd2",label:"确认密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd2,"onUpdate:modelValue":t[2]||(t[2]=f=>a.formData.new_pwd2=f)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","onClose"])}const nc=Ee(Zl,[["render",tc]]),rc={name:"SwitchBusiness",props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:"退出选择"},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.handleSearch()}},data(){return{chainKeyword:"",chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.handleSearch()},methods:{handleSearch(e){this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){const t=e.filter(r=>{let a=this.chainKeyword.trim();return!a||r.business_name.toLowerCase().includes(a.toLowerCase())}).reduce((r,a)=>{const o=a.business_brand||"";return r[o]||(r[o]=[]),r[o].push(a),r},{}),n=[];for(const r in t)n.push({title:r,total:t[r].length||0,list:t[r]});return n.sort((r,a)=>r.title===""?-1:1),n},chainReselection(){this.$emit("reselectFunc")},chainSelection(e){this.$emit("selectFunc",e)}}},ac={class:"cloud-login-change-wrap"},oc={class:"cloud-login-change-box1"},sc={class:"cloud-login-change-search"},ic={class:"cloud-login-change-box2"},lc={class:"cloud-login-change-group-box"},cc={class:"cloud-login-change-group-title"},uc={class:"cloud-login-change-group-sublist"},fc=["onClick"],dc={class:"cloud-login-change-item-left"},_c={class:"cloud-login-change-item-left-icon"},mc=["src"],hc={class:"cloud-login-change-item-right"},gc={class:"cloud-login-change-item-right-label"},pc={class:"cloud-login-change-item-right-label2"},Ec={class:"cloud-login-change-item-more"};function Sc(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),l=i.resolveComponent("el-button"),c=i.resolveComponent("cv-icons");return i.openBlock(),i.createElementBlock("div",ac,[i.createElementVNode("div",oc,[i.createElementVNode("div",{class:"cloud-login-change-reset",onClick:t[0]||(t[0]=(...u)=>o.chainReselection&&o.chainReselection(...u))},i.toDisplayString(n.reselectTitle),1),t[3]||(t[3]=i.createElementVNode("div",{class:"cloud-login-change-title"},"选择商户",-1)),t[4]||(t[4]=i.createElementVNode("div",{class:"cloud-login-change-desc"},[i.createElementVNode("p",null,"为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),i.createElementVNode("p",null,"后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")],-1)),i.createElementVNode("div",sc,[i.createVNode(s,{modelValue:a.chainKeyword,"onUpdate:modelValue":t[1]||(t[1]=u=>a.chainKeyword=u),size:"large",placeholder:"搜索商户名称",clearable:"",style:{"max-width":"500px"},onInput:o.handleSearch},null,8,["modelValue","onInput"]),i.createVNode(l,{size:"large",onClick:o.handleSearch},{default:i.withCtx(()=>t[2]||(t[2]=[i.createTextVNode("搜索")])),_:1},8,["onClick"])]),i.createElementVNode("div",ic,[i.createElementVNode("div",lc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.chainLastList,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-group-item",key:d},[i.createElementVNode("div",cc,i.toDisplayString(u.title||"无")+"("+i.toDisplayString(u.total)+")",1),i.createElementVNode("div",uc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.list,(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-item-bao",key:h,onClick:E=>o.chainSelection(f)},[i.createElementVNode("div",dc,[i.createElementVNode("div",_c,[i.createElementVNode("img",{src:f.business_icon_cdn},null,8,mc)])]),i.createElementVNode("div",hc,[i.createElementVNode("div",gc,i.toDisplayString(f.business_name),1),i.createElementVNode("div",pc,"【"+i.toDisplayString(f.acc_role_type_str)+"】",1)]),i.createElementVNode("div",Ec,[i.createVNode(c,{type:"ElIconArrowRight"})])],8,fc))),128))])]))),128))])])])])}const ja=Ee(rc,[["render",Sc]]),bc={name:"SameFrame",components:{SidebarMenuBox:zl,SameNavTabs:Bl,SameRouteView:Ka,HeaderSysSettDrawer:wl,ChangePassword:nc,SwitchBusiness:ja},props:{},data(){return{frameHeadSysSettDia:!1,frameSidebarOpen:"off",breadcrumbPath:[],full_screen:!1,toData:{},chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){let e=this.accountInfo||{},t=e.business_name||"",n=e.staff_nick||e.account_mobile_hide||e.account_nick;return t+" "+n}},watch:{"$route.path"(e){this.$route.meta.treeInfo&&(this.breadcrumbPath=this.$route.meta.treeInfo)}},created(){},mounted(){this.frameSidebarOpen=this.layoutSidebarState,Qn().$subscribe((t,n)=>{n.windowWidth<1061?this.frameSidebarOpen="off":this.frameSidebarOpen="on",ve().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{frameSwicthMenu(){this.frameSidebarOpen=this.frameSidebarOpen=="on"?"off":"on",ve().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)},framePageRefresh(){this.jumpsReload()},frameFullScreen(){let e=document.documentElement;this.full_screen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.full_screen=!this.full_screen},frameTopSysSettOpen(){this.frameHeadSysSettDia=!0},frameTopSysSettClose(e){e(),this.frameHeadSysSettDia=!1},frameHandleCommand(e){const t=me();switch(e){case"msg":this.$message.info("应用暂未开通,敬请期待");break;case"gongdan":this.$message.info("应用暂未开通,敬请期待");break;case"account_change":this.$request.setOptions({timeout:1e4}).flagGet("ORG_SYS_BASE_CHANGE",{}).then(n=>{this.chainShowFlag=!0,this.chainAccountList=n.data||[]});break;case"account_chgpwd":this.changeShowFlag=!0;break;case"clearCache":this.$confirm("你确定要清除缓存吗?","清除缓存",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{yl().then(n=>{window.location.reload()})}).catch(n=>{});break;case"logout":this.$confirm("你确定要登出系统吗?","退出登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).then(n=>{n.code==200&&this.$message({message:"注销成功",type:"success"})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})});break;default:this.$message.info("应用暂未开通,敬请期待");break}},chainReselection(){this.chainShowFlag=!1},chainSelection(e){let t="";e.acc_role_type=="sy-org-admin"?t="OrgAdminPwdLogin":e.acc_role_type=="sy-org-staff"&&(t="OrgStaffPwdLogin"),this.$request.flagPost("ORG_SYS_BASE_CHANGE",{handleType:t,business_id:e.business_id||0}).then(async n=>{n.status==200&&(await me().SA_ACCOUNT_SIGNIN(n.data||{}),this.$message({type:"success",message:"登入成功...",duration:1e3}),location.reload())})}}},Nc={class:"cloud-layout__wrap"},vc={class:"cloud-header__wrap"},yc={class:"cloud-header__logo"},Ac={href:"/",title:"官网",class:"cloud-header__logo-a"},Tc=["src"],Cc={class:"cloud-header__logo-title"},Oc={class:"cloud-header__breadcrumb"},Ic={key:0,class:"chopt-num"},wc={key:0,class:"chopt-num"},Lc={class:"cloud-header__info"},Dc=["src"],kc={class:"chinfo-infoname"},Rc={class:"cloud-sidebar__wrap"},Pc={class:"cloud-pages__wrap"};function Fc(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),l=i.resolveComponent("el-breadcrumb-item"),c=i.resolveComponent("el-breadcrumb"),u=i.resolveComponent("el-dropdown-item"),d=i.resolveComponent("el-dropdown-menu"),f=i.resolveComponent("el-dropdown"),h=i.resolveComponent("SidebarMenuBox"),E=i.resolveComponent("SameNavTabs"),y=i.resolveComponent("SameRouteView"),S=i.resolveComponent("HeaderSysSettDrawer"),w=i.resolveComponent("ChangePassword"),g=i.resolveComponent("SwitchBusiness");return i.openBlock(),i.createElementBlock("div",Nc,[i.createElementVNode("header",vc,[i.createElementVNode("div",yc,[i.createElementVNode("a",Ac,[i.createElementVNode("img",{class:"cloud-header__logo-img",src:e.openCaseInfo.platinfo_logo,alt:""},null,8,Tc)]),i.createElementVNode("div",Cc,i.toDisplayString(e.openCaseInfo.platinfo_title),1)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[0]||(t[0]=(...p)=>o.frameSwicthMenu&&o.frameSwicthMenu(...p))},[a.frameSidebarOpen=="on"?(i.openBlock(),i.createBlock(s,{key:0,type:"ElIconFold",size:"20"})):i.createCommentVNode("",!0),a.frameSidebarOpen=="off"?(i.openBlock(),i.createBlock(s,{key:1,type:"ElIconExpand",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[1]||(t[1]=(...p)=>o.framePageRefresh&&o.framePageRefresh(...p))},[i.createVNode(s,{type:"ElIconRefreshRight",size:"20"})]),i.createElementVNode("div",Oc,[i.createVNode(c,{separator:"/"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.breadcrumbPath,(p,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[T==a.breadcrumbPath.length-1||!p.path||p.path==""?(i.openBlock(),i.createBlock(l,{key:T,class:"no-redirect"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1024)):(i.openBlock(),i.createBlock(l,{key:"b"+T,to:{path:p.path}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1032,["to"]))],64))),256))]),_:1})]),t[13]||(t[13]=i.createElementVNode("div",{class:"cloud-header__seat"},null,-1)),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[2]||(t[2]=p=>o.frameHandleCommand("msg"))},[i.createVNode(s,{type:"ElIconChatLineRound",size:"20"}),a.chatUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",Ic,i.toDisplayString(a.chatUnreadTotal>99?"99+":a.chatUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[3]||(t[3]=p=>o.frameHandleCommand("gongdan"))},[i.createVNode(s,{type:"ElIconMessage",size:"20"}),a.emailUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",wc,i.toDisplayString(a.emailUnreadTotal>99?"99+":a.emailUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",Lc,[i.createVNode(f,{onCommand:o.frameHandleCommand,"popper-class":"cloud-header__info_dropdown"},{dropdown:i.withCtx(()=>[i.createVNode(d,null,{default:i.withCtx(()=>[i.createVNode(u,{command:"account_change"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgPeopleSwitch",size:"15"}),t[9]||(t[9]=i.createTextVNode(" 切换账号 "))]),_:1}),i.createVNode(u,{command:"account_chgpwd"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgBaseLockOff",size:"15"}),t[10]||(t[10]=i.createTextVNode(" 修改密码 "))]),_:1}),i.createVNode(u,{command:"clearCache",divided:""},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconDelete",size:"15"}),t[11]||(t[11]=i.createTextVNode(" 清除缓存 "))]),_:1}),i.createVNode(u,{command:"logout"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgArrowExportRight",size:"14"}),t[12]||(t[12]=i.createTextVNode(" 退出登录 "))]),_:1})]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createElementVNode("img",{class:"chinfo-avatar",src:e.accountInfo.account_avatar_cdn,title:"头像"},null,8,Dc),i.createElementVNode("div",kc,i.toDisplayString(o.headerInfoName),1),i.createVNode(s,{type:"ElIconArrowDown"})])]),_:1},8,["onCommand"])]),i.createElementVNode("div",{title:"全屏",class:"cloud-header__opt",onClick:t[4]||(t[4]=(...p)=>o.frameFullScreen&&o.frameFullScreen(...p)),style:{"min-width":"50px"}},[a.full_screen?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,type:"cvSvgArrowScreenUnfold",size:"20"})),a.full_screen?(i.openBlock(),i.createBlock(s,{key:1,type:"cvSvgArrowScreenFold",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{title:"设置",class:"cloud-header__opt",onClick:t[5]||(t[5]=(...p)=>o.frameTopSysSettOpen&&o.frameTopSysSettOpen(...p)),style:{"min-width":"50px"}},[i.createVNode(s,{type:"cvSvgBaseSetting",size:"20"})])]),i.createElementVNode("section",Rc,[i.createVNode(h,{collapse:a.frameSidebarOpen=="off"},null,8,["collapse"])]),i.createElementVNode("section",Pc,[i.withDirectives(i.createVNode(E,null,null,512),[[i.vShow,e.layoutNavTabs=="on"]]),i.createVNode(y,{className:"cloud-pages__box"})]),i.createVNode(S,{modelValue:a.frameHeadSysSettDia,"onUpdate:modelValue":t[6]||(t[6]=p=>a.frameHeadSysSettDia=p)},null,8,["modelValue"]),i.createVNode(w,{modelValue:a.changeShowFlag,"onUpdate:modelValue":t[7]||(t[7]=p=>a.changeShowFlag=p)},null,8,["modelValue"]),a.chainShowFlag?(i.openBlock(),i.createBlock(g,{key:0,modelValue:a.chainAccountList,"onUpdate:modelValue":t[8]||(t[8]=p=>a.chainAccountList=p),reselectTitle:"取消切换",onReselectFunc:o.chainReselection,onSelectFunc:o.chainSelection,style:{background:"#fff","z-index":"1005"}},null,8,["modelValue","onReselectFunc","onSelectFunc"])):i.createCommentVNode("",!0)])}const Mc=Ee(bc,[["render",Fc]]),Vc={data(){return{watemarkText:"shiyun"}},computed:{watemarkConf(){let e=this.openCaseInfo.platinfo_brand||"",n=me().accountInfo||null;return n&&n.account_mobile_hide&&(e=n.business_name+n.account_mobile_hide),{content:e,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.themesName=="dark"?"rgba(255, 255, 255, .15)":"rgba(0, 0, 0, .15)"}}};function Uc(e,t,n,r,a,o){const s=i.resolveComponent("el-watermark");return i.openBlock(),i.createBlock(s,i.mergeProps(o.watemarkConf,{style:{height:"100%"}}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16)}const Bc=Ee(Vc,[["render",Uc]]);(function(){if(typeof EventTarget<"u"){let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.func=e,typeof r!="boolean"&&(r=r||{},r.passive=!1),this.func(t,n,r)}}})();const xc=60*60*24*7;class Gc{constructor(t){this.prefix=t.prefix||"",this.expired=t.expired||xc,this.crypto=!!t.crypto,this.merge=!!t.merge,this.keyExpired={session:{},local:{}},this.keyGroup={session:[],local:[]}}_checkExpiredKey(t,n){return!!(t&&(t=="session"||t=="local")&&this.keyExpired[t][n]>=Date.now())}_encodeData(){}_decodeData(){}_settKey(t,n,r){t&&(t=="session"||t=="local")&&(this.keyExpired[t][n]=r||this.expired,this.keyGroup[t].push(n))}_deleteKey(t,n){t&&(t=="session"||t=="local")&&(n?(delete this.keyExpired[t][n],this.keyGroup[t]=this.keyGroup[t].filter(r=>r!==n)):(this.keyExpired[t]={},this.keyGroup[t]=[]))}sessionSet(t,n,r){let a=JSON.stringify(n);sessionStorage.setItem(t,a),this._settKey("session",t,r)}sessionGet(t){let n=sessionStorage.getItem(t);try{return JSON.parse(n)}catch{return n}}sessionDel(t){if(!window.sessionStorage)return!1;sessionStorage.removeItem(t),this._deleteKey("session",t)}sessionClear(){if(!window.sessionStorage)return!1;sessionStorage.clear();for(let t in this.keyGroup.session)sessionStorage.removeItem(t);this._deleteKey("session")}localSet(t,n,r){if(!window.localStorage)return;(n===""||n===null||n===void 0)&&(n=null);const a=typeof n=="string"?n:JSON.stringify(n);window.localStorage.setItem(t,a),this._settKey("local",t,r)}localGet(t){if(!window.localStorage)return;this._checkExpiredKey("local",t);let n=window.localStorage.getItem(t);try{Object.keys(n).length==0||JSON.stringify(n)=="{}"?n="":n=JSON.parse(n)}catch{}return n}localDel(t){if(!window.localStorage)return!1;window.localStorage.removeItem(t),this._deleteKey("local",t)}localClear(){if(!window.localStorage)return!1;window.localStorage.clear();for(let t in this.keyGroup.local)window.localStorage.removeItem(t);this._deleteKey("local")}}function $c(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var et=$c();function Wc(){try{if(!et||!et.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||t)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Jn(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if(o.name!=="TypeError")throw o;for(var n=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,r=new n,a=0;a<e.length;a+=1)r.append(e[a]);return r.getBlob(t.type)}}typeof Promise>"u"&&require("lie/polyfill");const R=Promise;function W(e,t){t&&e.then(function(n){t(null,n)},function(n){t(n)})}function qe(e,t,n){typeof t=="function"&&e.then(t),typeof n=="function"&&e.catch(n)}function ye(e){return typeof e!="string"&&(e=String(e)),e}function zn(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}const Dn="local-forage-detect-blob-support";let Dt;const ue={},Yc=Object.prototype.toString,yt="readonly",Wt="readwrite";function Hc(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}function Kc(e){return new R(function(t){var n=e.transaction(Dn,Wt),r=Jn([""]);n.objectStore(Dn).put(r,"key"),n.onabort=function(a){a.preventDefault(),a.stopPropagation(),t(!1)},n.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/),o=navigator.userAgent.match(/Edge\//);t(o||!a||parseInt(a[1],10)>=43)}}).catch(function(){return!1})}function jc(e){return typeof Dt=="boolean"?R.resolve(Dt):Kc(e).then(function(t){return Dt=t,Dt})}function Mt(e){var t=ue[e.name],n={};n.promise=new R(function(r,a){n.resolve=r,n.reject=a}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function kn(e){var t=ue[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function Rn(e,t){var n=ue[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function qa(e,t){return new R(function(n,r){if(ue[e.name]=ue[e.name]||za(),e.db)if(t)Mt(e),e.db.close();else return n(e.db);var a=[e.name];t&&a.push(e.version);var o=et.open.apply(et,a);t&&(o.onupgradeneeded=function(s){var l=o.result;try{l.createObjectStore(e.storeName),s.oldVersion<=1&&l.createObjectStore(Dn)}catch(c){if(c.name!=="ConstraintError")throw c}}),o.onerror=function(s){s.preventDefault(),r(o.error)},o.onsuccess=function(){var s=o.result;s.onversionchange=function(l){l.target.close()},n(s),kn(e)}})}function Zn(e){return qa(e,!1)}function er(e){return qa(e,!0)}function Xa(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,a=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),a||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function qc(e){return new R(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(a){var o=btoa(a.target.result||"");t({__local_forage_encoded_blob:!0,data:o,type:e.type})},r.readAsBinaryString(e)})}function Qa(e){var t=Hc(atob(e.data));return Jn([t],{type:e.type})}function Ja(e){return e&&e.__local_forage_encoded_blob}function Xc(e){var t=this,n=t._initReady().then(function(){var r=ue[t._dbInfo.name];if(r&&r.dbReady)return r.dbReady});return qe(n,e,e),n}function Qc(e){Mt(e);for(var t=ue[e.name],n=t.forages,r=0;r<n.length;r++){const a=n[r];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,Zn(e).then(a=>(e.db=a,Xa(e)?er(e):a)).then(a=>{e.db=t.db=a;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=a}).catch(a=>{throw Rn(e,a),a})}function Ae(e,t,n,r){r===void 0&&(r=1);try{var a=e.db.transaction(e.storeName,t);n(null,a)}catch(o){if(r>0&&(!e.db||o.name==="InvalidStateError"||o.name==="NotFoundError"))return R.resolve().then(()=>{if(!e.db||o.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),er(e)}).then(()=>Qc(e).then(function(){Ae(e,t,n,r-1)})).catch(n);n(o)}}function za(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Jc(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var a=ue[n.name];a||(a=za(),ue[n.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=Xc);var o=[];function s(){return R.resolve()}for(var l=0;l<a.forages.length;l++){var c=a.forages[l];c!==t&&o.push(c._initReady().catch(s))}var u=a.forages.slice(0);return R.all(o).then(function(){return n.db=a.db,Zn(n)}).then(function(d){return n.db=d,Xa(n,t._defaultConfig.version)?er(n):d}).then(function(d){n.db=a.db=d,t._dbInfo=n;for(var f=0;f<u.length;f++){var h=u[f];h!==t&&(h._dbInfo.db=n.db,h._dbInfo.version=n.version)}})}function zc(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.get(e);u.onsuccess=function(){var d=u.result;d===void 0&&(d=null),Ja(d)&&(d=Qa(d)),a(d)},u.onerror=function(){o(u.error)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function Zc(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.openCursor(),d=1;u.onsuccess=function(){var f=u.result;if(f){var h=f.value;Ja(h)&&(h=Qa(h));var E=e(h,f.key,d++);E!==void 0?a(E):f.continue()}else a()},u.onerror=function(){o(u.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function eu(e,t,n){var r=this;e=ye(e);var a=new R(function(o,s){var l;r.ready().then(function(){return l=r._dbInfo,Yc.call(t)==="[object Blob]"?jc(l.db).then(function(c){return c?t:qc(t)}):t}).then(function(c){Ae(r._dbInfo,Wt,function(u,d){if(u)return s(u);try{var f=d.objectStore(r._dbInfo.storeName);c===null&&(c=void 0);var h=f.put(c,e);d.oncomplete=function(){c===void 0&&(c=null),o(c)},d.onabort=d.onerror=function(){var E=h.error?h.error:h.transaction.error;s(E)}}catch(E){s(E)}})}).catch(s)});return W(a,n),a}function tu(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Ae(n._dbInfo,Wt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=c.delete(e);l.oncomplete=function(){a()},l.onerror=function(){o(u.error)},l.onabort=function(){var d=u.error?u.error:u.transaction.error;o(d)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function nu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,Wt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.clear();s.oncomplete=function(){r()},s.onabort=s.onerror=function(){var u=c.error?c.error:c.transaction.error;a(u)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function ru(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,yt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.count();c.onsuccess=function(){r(c.result)},c.onerror=function(){a(c.error)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function au(e,t){var n=this,r=new R(function(a,o){if(e<0){a(null);return}n.ready().then(function(){Ae(n._dbInfo,yt,function(s,l){if(s)return o(s);try{var c=l.objectStore(n._dbInfo.storeName),u=!1,d=c.openKeyCursor();d.onsuccess=function(){var f=d.result;if(!f){a(null);return}e===0||u?a(f.key):(u=!0,f.advance(e))},d.onerror=function(){o(d.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function ou(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Ae(t._dbInfo,yt,function(o,s){if(o)return a(o);try{var l=s.objectStore(t._dbInfo.storeName),c=l.openKeyCursor(),u=[];c.onsuccess=function(){var d=c.result;if(!d){r(u);return}u.push(d.key),d.continue()},c.onerror=function(){a(c.error)}}catch(d){a(d)}})}).catch(a)});return W(n,e),n}function su(e,t){t=zn.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;if(!e.name)a=R.reject("Invalid arguments");else{const s=e.name===n.name&&r._dbInfo.db?R.resolve(r._dbInfo.db):Zn(e).then(l=>{const c=ue[e.name],u=c.forages;c.db=l;for(var d=0;d<u.length;d++)u[d]._dbInfo.db=l;return l});e.storeName?a=s.then(l=>{if(!l.objectStoreNames.contains(e.storeName))return;const c=l.version+1;Mt(e);const u=ue[e.name],d=u.forages;l.close();for(let h=0;h<d.length;h++){const E=d[h];E._dbInfo.db=null,E._dbInfo.version=c}return new R((h,E)=>{const y=et.open(e.name,c);y.onerror=S=>{y.result.close(),E(S)},y.onupgradeneeded=()=>{var S=y.result;S.deleteObjectStore(e.storeName)},y.onsuccess=()=>{const S=y.result;S.close(),h(S)}}).then(h=>{u.db=h;for(let E=0;E<d.length;E++){const y=d[E];y._dbInfo.db=h,kn(y._dbInfo)}}).catch(h=>{throw(Rn(e,h)||R.resolve()).catch(()=>{}),h})}):a=s.then(l=>{Mt(e);const c=ue[e.name],u=c.forages;l.close();for(var d=0;d<u.length;d++){const h=u[d];h._dbInfo.db=null}return new R((h,E)=>{var y=et.deleteDatabase(e.name);y.onerror=()=>{const S=y.result;S&&S.close(),E(y.error)},y.onblocked=()=>{},y.onsuccess=()=>{const S=y.result;S&&S.close(),h(S)}}).then(h=>{c.db=h;for(var E=0;E<u.length;E++){const y=u[E];kn(y._dbInfo)}}).catch(h=>{throw(Rn(e,h)||R.resolve()).catch(()=>{}),h})})}return W(a,t),a}var iu={_driver:"asyncStorage",_initStorage:Jc,_support:Wc(),iterate:Zc,getItem:zc,setItem:eu,removeItem:tu,clear:nu,length:ru,key:au,keys:ou,dropInstance:su};function lu(){return typeof openDatabase=="function"}var Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cu="~~local_forage_type~",zr=/^~~local_forage_type~([^~]+)~/,Vt="__lfsc__:",Pn=Vt.length,tr="arbf",Fn="blob",Za="si08",eo="ui08",to="uic8",no="si16",ro="si32",ao="ur16",oo="ui32",so="fl32",io="fl64",Zr=Pn+tr.length,ea=Object.prototype.toString;function lo(e){var t=e.length*.75,n=e.length,r,a=0,o,s,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)o=Oe.indexOf(e[r]),s=Oe.indexOf(e[r+1]),l=Oe.indexOf(e[r+2]),c=Oe.indexOf(e[r+3]),d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|l>>2,d[a++]=(l&3)<<6|c&63;return u}function Mn(e){var t=new Uint8Array(e),n="",r;for(r=0;r<t.length;r+=3)n+=Oe[t[r]>>2],n+=Oe[(t[r]&3)<<4|t[r+1]>>4],n+=Oe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Oe[t[r+2]&63];return t.length%3===2?n=n.substring(0,n.length-1)+"=":t.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function uu(e,t){var n="";if(e&&(n=ea.call(e)),e&&(n==="[object ArrayBuffer]"||e.buffer&&ea.call(e.buffer)==="[object ArrayBuffer]")){var r,a=Vt;e instanceof ArrayBuffer?(r=e,a+=tr):(r=e.buffer,n==="[object Int8Array]"?a+=Za:n==="[object Uint8Array]"?a+=eo:n==="[object Uint8ClampedArray]"?a+=to:n==="[object Int16Array]"?a+=no:n==="[object Uint16Array]"?a+=ao:n==="[object Int32Array]"?a+=ro:n==="[object Uint32Array]"?a+=oo:n==="[object Float32Array]"?a+=so:n==="[object Float64Array]"?a+=io:t(new Error("Failed to get type for BinaryArray"))),t(a+Mn(r))}else if(n==="[object Blob]"){var o=new FileReader;o.onload=function(){var s=cu+e.type+"~"+Mn(this.result);t(Vt+Fn+s)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(s){t(null,s)}}function fu(e){if(e.substring(0,Pn)!==Vt)return JSON.parse(e);var t=e.substring(Zr),n=e.substring(Pn,Zr),r;if(n===Fn&&zr.test(t)){var a=t.match(zr);r=a[1],t=t.substring(a[0].length)}var o=lo(t);switch(n){case tr:return o;case Fn:return Jn([o],{type:r});case Za:return new Int8Array(o);case eo:return new Uint8Array(o);case to:return new Uint8ClampedArray(o);case no:return new Int16Array(o);case ao:return new Uint16Array(o);case ro:return new Int32Array(o);case oo:return new Uint32Array(o);case so:return new Float32Array(o);case io:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var nr={serialize:uu,deserialize:fu,stringToBuffer:lo,bufferToString:Mn};function co(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function du(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]!="string"?e[r].toString():e[r];var a=new R(function(o,s){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(l){return s(l)}n.db.transaction(function(l){co(l,n,function(){t._dbInfo=n,o()},function(c,u){s(u)})},s)});return n.serializer=nr,a}function Le(e,t,n,r,a,o){e.executeSql(n,r,a,function(s,l){l.code===l.SYNTAX_ERR?s.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(c,u){u.rows.length?o(c,l):co(c,t,function(){c.executeSql(n,r,a,o)},o)},o):o(s,l)},o)}function _u(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT * FROM ${s.storeName} WHERE key = ? LIMIT 1`,[e],function(c,u){var d=u.rows.length?u.rows.item(0).value:null;d&&(d=s.serializer.deserialize(d)),a(d)},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function mu(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT * FROM ${s.storeName}`,[],function(c,u){for(var d=u.rows,f=d.length,h=0;h<f;h++){var E=d.item(h),y=E.value;if(y&&(y=s.serializer.deserialize(y)),y=e(y,E.key,h+1),y!==void 0){a(y);return}}a()},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function uo(e,t,n,r){var a=this;e=ye(e);var o=new R(function(s,l){a.ready().then(function(){t===void 0&&(t=null);var c=t,u=a._dbInfo;u.serializer.serialize(t,function(d,f){f?l(f):u.db.transaction(function(h){Le(h,u,`INSERT OR REPLACE INTO ${u.storeName} (key, value) VALUES (?, ?)`,[e,d],function(){s(c)},function(E,y){l(y)})},function(h){if(h.code===h.QUOTA_ERR){if(r>0){s(uo.apply(a,[e,c,n,r-1]));return}l(h)}})})}).catch(l)});return W(o,n),o}function hu(e,t,n){return uo.apply(this,[e,t,n,1])}function gu(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`DELETE FROM ${s.storeName} WHERE key = ?`,[e],function(){a()},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function pu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`DELETE FROM ${o.storeName}`,[],function(){r()},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Eu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT COUNT(key) as c FROM ${o.storeName}`,[],function(l,c){var u=c.rows.item(0).c;r(u)},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Su(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(l){Le(l,s,`SELECT key FROM ${s.storeName} WHERE id = ? LIMIT 1`,[e+1],function(c,u){var d=u.rows.length?u.rows.item(0).key:null;a(d)},function(c,u){o(u)})})}).catch(o)});return W(r,t),r}function bu(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT key FROM ${o.storeName}`,[],function(l,c){for(var u=[],d=0;d<c.rows.length;d++)u.push(c.rows.item(d).key);r(u)},function(l,c){a(c)})})}).catch(a)});return W(n,e),n}function Nu(e){return new R(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(a,o){for(var s=[],l=0;l<o.rows.length;l++)s.push(o.rows.item(l).name);t({db:e,storeNames:s})},function(a,o){n(o)})},function(r){n(r)})})}function vu(e,t){t=zn.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;return e.name?a=new R(function(o){var s;e.name===n.name?s=r._dbInfo.db:s=openDatabase(e.name,"","",0),e.storeName?o({db:s,storeNames:[e.storeName]}):o(Nu(s))}).then(function(o){return new R(function(s,l){o.db.transaction(function(c){function u(E){return new R(function(y,S){c.executeSql(`DROP TABLE IF EXISTS ${E}`,[],function(){y()},function(w,g){S(g)})})}for(var d=[],f=0,h=o.storeNames.length;f<h;f++)d.push(u(o.storeNames[f]));R.all(d).then(function(){s()}).catch(function(E){l(E)})},function(c){l(c)})})}):a=R.reject("Invalid arguments"),W(a,t),a}var yu={_driver:"webSQLStorage",_initStorage:du,_support:lu(),iterate:mu,getItem:_u,setItem:hu,removeItem:gu,clear:pu,length:Eu,key:Su,keys:bu,dropInstance:vu};function Au(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function fo(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Tu(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function Cu(){return!Tu()||localStorage.length>0}function Ou(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=fo(e,t._defaultConfig),Cu()?(t._dbInfo=n,n.serializer=nr,R.resolve()):R.reject()}function Iu(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var o=localStorage.key(a);o.indexOf(r)===0&&localStorage.removeItem(o)}});return W(n,e),n}function wu(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo,o=localStorage.getItem(a.keyPrefix+e);return o&&(o=a.serializer.deserialize(o)),o});return W(r,t),r}function Lu(e,t){var n=this,r=n.ready().then(function(){for(var a=n._dbInfo,o=a.keyPrefix,s=o.length,l=localStorage.length,c=1,u=0;u<l;u++){var d=localStorage.key(u);if(d.indexOf(o)===0){var f=localStorage.getItem(d);if(f&&(f=a.serializer.deserialize(f)),f=e(f,d.substring(s),c++),f!==void 0)return f}}});return W(r,t),r}function Du(e,t){var n=this,r=n.ready().then(function(){var a=n._dbInfo,o;try{o=localStorage.key(e)}catch{o=null}return o&&(o=o.substring(a.keyPrefix.length)),o});return W(r,t),r}function ku(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo,a=localStorage.length,o=[],s=0;s<a;s++){var l=localStorage.key(s);l.indexOf(r.keyPrefix)===0&&o.push(l.substring(r.keyPrefix.length))}return o});return W(n,e),n}function Ru(e){var t=this,n=t.keys().then(function(r){return r.length});return W(n,e),n}function Pu(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo;localStorage.removeItem(a.keyPrefix+e)});return W(r,t),r}function Fu(e,t,n){var r=this;e=ye(e);var a=r.ready().then(function(){t===void 0&&(t=null);var o=t;return new R(function(s,l){var c=r._dbInfo;c.serializer.serialize(t,function(u,d){if(d)l(d);else try{localStorage.setItem(c.keyPrefix+e,u),s(o)}catch(f){(f.name==="QuotaExceededError"||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&l(f),l(f)}})})});return W(a,n),a}function Mu(e,t){if(t=zn.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r=this,a;return e.name?a=new R(function(o){e.storeName?o(fo(e,r._defaultConfig)):o(`${e.name}/`)}).then(function(o){for(var s=localStorage.length-1;s>=0;s--){var l=localStorage.key(s);l.indexOf(o)===0&&localStorage.removeItem(l)}}):a=R.reject("Invalid arguments"),W(a,t),a}var Vu={_driver:"localStorageWrapper",_initStorage:Ou,_support:Au(),iterate:Lu,getItem:wu,setItem:Fu,removeItem:Pu,clear:Iu,length:Ru,key:Du,keys:ku,dropInstance:Mu};const Uu=(e,t)=>e===t||typeof e=="number"&&typeof t=="number"&&isNaN(e)&&isNaN(t),Bu=(e,t)=>{const n=e.length;let r=0;for(;r<n;){if(Uu(e[r],t))return!0;r++}return!1},_o=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ft={},ta={},Xe={INDEXEDDB:iu,WEBSQL:yu,LOCALSTORAGE:Vu},xu=[Xe.INDEXEDDB._driver,Xe.WEBSQL._driver,Xe.LOCALSTORAGE._driver],Rt=["dropInstance"],gn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rt),Gu={description:"",driver:xu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function $u(e,t){e[t]=function(){const n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function pn(){for(let e=1;e<arguments.length;e++){const t=arguments[e];if(t)for(let n in t)t.hasOwnProperty(n)&&(_o(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}class rr{constructor(t){for(let n in Xe)if(Xe.hasOwnProperty(n)){const r=Xe[n],a=r._driver;this[n]=a,ft[a]||this.defineDriver(r)}this._defaultConfig=pn({},Gu),this._config=pn({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(()=>{})}config(t){if(typeof t=="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(let n in t){if(n==="storeName"&&(t[n]=t[n].replace(/\W/g,"_")),n==="version"&&typeof t[n]!="number")return new Error("Database version must be a number.");this._config[n]=t[n]}return"driver"in t&&t.driver?this.setDriver(this._config.driver):!0}else return typeof t=="string"?this._config[t]:this._config}defineDriver(t,n,r){const a=new R(function(o,s){try{const l=t._driver,c=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){s(c);return}const u=gn.concat("_initStorage");for(let h=0,E=u.length;h<E;h++){const y=u[h];if((!Bu(Rt,y)||t[y])&&typeof t[y]!="function"){s(c);return}}(function(){const h=function(E){return function(){const y=new Error(`Method ${E} is not implemented by the current driver`),S=R.reject(y);return W(S,arguments[arguments.length-1]),S}};for(let E=0,y=Rt.length;E<y;E++){const S=Rt[E];t[S]||(t[S]=h(S))}})();const f=function(h){ft[l],ft[l]=t,ta[l]=h,o()};"_support"in t?t._support&&typeof t._support=="function"?t._support().then(f,s):f(!!t._support):f(!0)}catch(l){s(l)}});return qe(a,n,r),a}driver(){return this._driver||null}getDriver(t,n,r){const a=ft[t]?R.resolve(ft[t]):R.reject(new Error("Driver not found."));return qe(a,n,r),a}getSerializer(t){const n=R.resolve(nr);return qe(n,t),n}ready(t){const n=this,r=n._driverSet.then(()=>(n._ready===null&&(n._ready=n._initDriver()),n._ready));return qe(r,t,t),r}setDriver(t,n,r){const a=this;_o(t)||(t=[t]);const o=this._getSupportedDrivers(t);function s(){a._config.driver=a.driver()}function l(d){return a._extend(d),s(),a._ready=a._initStorage(a._config),a._ready}function c(d){return function(){let f=0;function h(){for(;f<d.length;){let y=d[f];return f++,a._dbInfo=null,a._ready=null,a.getDriver(y).then(l).catch(h)}s();const E=new Error("No available storage method found.");return a._driverSet=R.reject(E),a._driverSet}return h()}}const u=this._driverSet!==null?this._driverSet.catch(()=>R.resolve()):R.resolve();return this._driverSet=u.then(()=>{const d=o[0];return a._dbInfo=null,a._ready=null,a.getDriver(d).then(f=>{a._driver=f._driver,s(),a._wrapLibraryMethodsWithReady(),a._initDriver=c(o)})}).catch(()=>{s();const d=new Error("No available storage method found.");return a._driverSet=R.reject(d),a._driverSet}),qe(this._driverSet,n,r),this._driverSet}supports(t){return!!ta[t]}_extend(t){pn(this,t)}_getSupportedDrivers(t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];this.supports(o)&&n.push(o)}return n}_wrapLibraryMethodsWithReady(){for(let t=0,n=gn.length;t<n;t++)$u(this,gn[t])}createInstance(t){return new rr(t)}}const Pe=new rr;class Wu{constructor(t){this.db_name=t.db_name||"cvjs",Pe.config({name:this.db_name,storeName:"common"}),this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}async idbTest(){try{cvUtils.isDevice_ios()&&await Pe.setItem("__test__",$A.Time()),this.__open_log}catch(t){this.__open_log?ElMessageBox.alert(t.message,"温馨提示",{confirmButtonText:"OK"}).then(()=>{$A.reloadUrl()}):$A.reloadUrl()}}idbSave(t,n,r=100){typeof this.__timer[t]<"u"&&(clearTimeout(this.__timer[t]),delete this.__timer[t]),this.__timer[t]=setTimeout(async a=>{let o=JSON.parse(JSON.stringify(n));await Pe.setItem(t,o)},r)}idbGetItem(t){return Pe.getItem(t)}idbSetItem(t,n){let r="";return n&&n!="undefined"&&(r=JSON.parse(JSON.stringify(n))),Pe.setItem(t,r)}idbDelItem(t){Pe.removeItem(t).then(n=>{})}idbClear(){return Pe.clear()}async idbGetString(t,n=""){const r=await this.idbGetItem(t);return typeof r=="string"||typeof r=="number"?r:n}async idbGetInt(t,n=0){const r=await this.idbGetItem(t);return typeof r=="number"?r:n}async idbGetBoolean(t,n=!1){const r=await this.idbGetItem(t);return typeof r=="boolean"?r:n}async idbGetArray(t,n=[]){const r=await this.idbGetItem(t);return cvUtils.isTypeArray(r)?r:n}async idbGetJson(t,n={}){const r=await this.idbGetItem(t);return cvUtils.isTypeJson(r)?r:n}}class Yu{constructor(t){this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}setSessionStorage(t,n){return this.__operationSessionStorage(t,n)}getSessionStorageValue(t){return this.__operationSessionStorage(t)}sessGetString(t,n=""){let r=this.__operationSessionStorage(t);return typeof r=="string"||typeof r=="number"?r:n}getSessionStorageInt(t,n=0){let r=this.__operationSessionStorage(t);return typeof r=="number"?r:n}__operationSessionStorage(t,n){if(!t)return;let r="__state__";if(t.substring(0,5)==="cache"&&(r="__state:"+t+"__"),typeof n>"u")return this.__loadFromlSession(t,"",r);this.__savaToSession(t,n,r)}__savaToSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);a?a=JSON.parse(a):a={},a[t]=n,window.sessionStorage.setItem(r,JSON.stringify(a))}catch{}}__loadFromlSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);return!a||(a=JSON.parse(a),!a||typeof a[t]>"u")?n:a[t]}catch{return n}}}const D=new Gc({prefix:""}),Hu=new Wu({db_name:"ShiyunConsole"});window.gbIdbObj=Hu;const Ku=new Yu({});window.gbSessObj=Ku;function ju(e,t,n=!1){return n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e)}const na={400:"请求错误",400:"无效请求",401:"未经授权",403:"拒绝访问",404:"请求出错",408:"请求超时",422:"请求参数错误",500:"服务器错误",501:"服务未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"HTTP版本不受支持",10001:"未登录",10002:"token过期",10009:"退出登录"},ra={401:"没有权限,请重新登录"};class Yt{constructor(t={}){this.flagMap=t.flagMap||{},this.flagAuth=t.flagAuth||{},this.flagFunc=t.flagFunc,this.baseURL=t.baseURL||"",this.requests=Object.assign({},t.requests||{}),this.headers=Object.assign({},{},t.headers||{}),this.encryptURL=t.encryptURL||[],this.encryptFlag=!1,this.canshuOpt={},this.retries=3,this.debugState=t.debug||!1,this.requestHandle=null,this.creSett=Object.assign({},{timeout:t.timeout||5e3,retry:2},{}),this._initReqHandle()}debugLog(){this.debugState}_initReqHandle(){this.requestHandle=Eo.create({timeout:1e4,retry:2,...this.creSett,baseURL:this.baseURL,headers:{...this.headers},requests:{...this.requests}}),this.requestHandle.defaults.retry=2,this.requestHandle.defaults.retryDelay=1e3,this.requestHandle.interceptors.request.use(t=>t,t=>(this.debugLog("netRequestError ",t),this.netResponseError(t))),this.requestHandle.interceptors.response.use(t=>this.netResponseOK(t),t=>this.netResponseError(t))}setApiFlag(t){return this.flagMap=t||{},this}appendApiFlag(t){return this.flagMap=Object.assign({},this.flagMap,t||{}),this}setApiAuth(t){return this.authMap=t||{},this}appendApiAuth(t){return this.authMap=Object.assign({},this.authMap,t||{}),this}setDefHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this.requestHandle.defaults.headers=this.headers,this}setHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this}setDefRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this.requestHandle.defaults.requests=this.requests,this}setRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this}setOptions(t={}){return this.canshuOpt=Object.assign({},this.canshuOpt,t||{}),this}setSignal(t){}requestBefore(t){this.requestBeforeCall=t}requestAfter(t){this.requestAfterCall=t}encrypt(){return this.encryptFlag=!0,this}netResponseOK(t){return this.debugLog("netResponseOK ",t),t.status!==200?(this.resetNetError({type:"error",message:"请求异常"}),Promise.reject(error)):this.resetNetResponse(t.data)}netResponseError(t){this.debugLog("netResponseError ",t);const n=t&&t.message||"",r=t&&t.response&&t.response.status||0,a=t&&t.response&&(t.response.data.message||t.response.statusText)||"";let o="提示",s="请求异常,请检查网络或联系管理员";return na[r]&&(o=na[r]),ra[r]?s=ra[r]:n.includes("Network Error")?s="网络异常":n.includes("Not Found")?s="未找到该请求":n.includes("timeout")&&(s="请求超时,请刷新重试"),this.resetNetError({title:o,status:r,type:"error",message:a||s,error:n}),Promise.reject(t)}resetFlagConfig(){return{flag:{},auth:{}}}resetNetError(t){}resetNetResponse(t){let n=t.status||t.code||-1;switch(n=parseInt(n),n){case 100101:this.resetNetError({type:"error",message:t.msg});break;case 100102:this.resetNetError({type:"error",message:t.msg});break;case 100103:window.location.href="/";break;case 100109:break;case 404:case 100404:let r=t.msg||"操作失败";return this.resetNetError({type:"error",message:`${r}`}),Promise.reject(t);case 200:return t;case-1:return Promise.reject({message:"error"});default:return t}}apiAll(t,n,r){n.includes("http://")||n.includes("https://"),n=n.replace(/([^:]\/)\/+/g,"$1"),this.requestHandle.defaults.headers=this.headers,this.requestHandle.defaults.requests=this.requests;let a=this.canshuOpt||{};this.canshuOpt={};let o=!1;if(this.encryptURL&&ju(n,this.encryptURL,!0)&&(o=!0),this.encryptFlag&&(o=!0),o){const s=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(s)||s.indexOf("Windows NT 6.0")!==-1||s.indexOf("Windows NT 6.1")!==-1||s.indexOf("Windows NT 6.2")!==-1)&&(o=!1)}if(t=="POST")return this.requestHandle.post(n,r,{...a});if(t=="GET")return this.requestHandle.get(n,{...a,params:{...r}});if(t=="PUT")return this.requestHandle.put(n,{...r});if(t=="PATCH")return this.requestHandle.patch(n,{...r});if(t=="DELETE")return this.requestHandle.delete(n,{data:{...r}});if(t=="UPLOAD")return this.requestHandle.post(n,r,{...a,headers:{"Content-Type":"multipart/form-data"}})}flagGet(){const t=arguments;return this.unifyApi("flag","GET",t)}urlGet(){const t=arguments;return this.unifyApi("url","GET",t)}flagPost(){const t=arguments;return this.unifyApi("flag","POST",t)}urlPost(){const t=arguments;return this.unifyApi("url","POST",t)}flagPut(){const t=arguments;return this.unifyApi("flag","PUT",t)}urlPut(){const t=arguments;return this.unifyApi("url","PUT",t)}flagPatch(){const t=arguments;return this.unifyApi("flag","PATCH",t)}urlPatch(){const t=arguments;return this.unifyApi("url","PATCH",t)}flagDel(){const t=arguments;return this.unifyApi("flag","DELETE",t)}urlDel(){const t=arguments;return this.unifyApi("url","DELETE",t)}flagUpload(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpload(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}flagUpImg(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpImg(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}unifyApi(t,n,r){let a=this,o=r.length||0;if(o<=0||o>3){let u=`-- ${n} : 参数为(1-3)个---`;return new Promise((d,f)=>(this.resetNetError({message:u}),f({message:u})))}let s="",l="";if(t=="flag"){let u=r[0];typeof u=="string"&&(u=u||"",s=u==""?"":this.flagMap[u]||""),l=" flag"+n+`:传入的标示 { ${u} },未匹配到 apiUrl `}if(t=="url"&&(s=r[0],typeof s=="string"&&(s=s||""),l=" 未匹配到 apiUrl "),s=="")return new Promise((u,d)=>(this.resetNetError({message:l}),d({message:l})));if(o==1)return function(u){return a.apiAll(n,s,u)};if(o==2||o==3){let u={},d=r[1],f=Object.prototype.toString.call(d);if(f==="[object String]"||f==="[object Number]"){var c=Number(d);if(isNaN(c)||(s.endsWith("/")||(s=s+"/"),s=s+c),o==3){let h=r[2];Object.prototype.toString.call(h)==="[object Object]"&&(u=h||{})}}else f==="[object Object]"?u=d||{}:f==="[object FormData]"&&(u=d||new FormData);return a.apiAll(n,s,u)}else return new Promise((u,d)=>d({message:" 请求错误 "}))}}const qu={BASE_LOAD_COMMON_API_FLAG:"/base.base_load/common/api_flag",BASE_LOAD_COMMON_API_AUTH:"/base.base_load/common/api_auth",BASE_LOAD_COMMON_API_CODE:"/base.base_load/common/api_code",BASE_ACCSYS_COMMON_KEYCLIENT:"/base.account_sys/common/key_client",BASE_SYS_COMMON_PLAT_SETTING:"/base.base_sys/common/plat_setting",BASE_SYS_COMMON_SYS_INFO:"/base.base_sys/common/system_info"},Xu={BASE_LOAD_COMMON_API_FLAG:"app:true;auth:false;",BASE_LOAD_COMMON_API_AUTH:"app:true;auth:false;",BASE_LOAD_COMMON_API_CODE:"app:true;auth:false;",BASE_ACCSYS_COMMON_KEYCLIENT:"app:true;auth:false;",BASE_SYS_COMMON_PLAT_SETTING:"app:true;auth:false;"};Yt.prototype.resetNetError=function(e){if(!oe.__POWERED_BY_QIANKUN__&&e.status&&e.status==401)return me().SA_ACCOUNT_LOGOUT(),_t.ElMessageBox.alert("未经授权,请登录","友情提示",{confirmButtonText:"OK",callback:n=>{location.href="/login"}}),!1;let t=(e.status?`[ ${e.status} ] `:"")+(e.title||"提示");_t.ElNotification({title:t,message:e.message,type:e.type||"info",duration:1200,onClose:()=>{}})};Yt.prototype.resetNetResponse2=function(e){return e};Yt.prototype.cancelRequest=function(e){if(!e)return 0;let t=0;return __ajaxList.forEach((n,r)=>{n.id===e&&(t++,n.request&&n.request.abort())}),t>0&&(__ajaxList=__ajaxList.filter(n=>n.id!==e)),t};let Ve=null;function ar(e={}){const t=Qe();Ve=new Yt({baseURL:t.syApiBaseUrl||"",headers:{syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:D.localGet("syCacheAppToken")||"","Sy-Client-Platform":"pc-web",Authorization:"Bearer "+D.localGet("syCacheAppJwt")||""},requests:{},encryptURL:["users/login","users/editpass","/base.account_security/common/change_pwd","users/operation","users/delete/account","base.base_sys/license","users/bot/*","dialog/msg/*"]});let n={},r={};e&&(n=e.ApiFlagSet||{},r=e.ApiAuthSet||{});let a=Object.assign({},qu,n,t.syOpenApiFlag),o=Object.assign({},Xu,r,t.syOpenApiAuth);return Ve.setApiFlag(a),Ve.setApiAuth(o),Ve}function Qu(){return Ve||(Ve=ar()),Ve}const re=new Proxy({},{get(e,t){const n=Qu();return typeof n[t]=="function"?n[t].bind(n):n[t]}});var Ju={methods:{jumpsBack(){this.$router.go(-1)},jumpsXieyi(e){},jumpsReload(){vt().SA_ROUTE_ALIVE_ADD()},jumpsMsgBack(e,t){this.$message({type:"success",duration:1e3,message:e||"",onClose:()=>{this.$router.go(-1),t&&typeof t=="function"&&t()}})},jumpsWinOpen(e){window.open(e)},jumpsRefresh(){this.$router.go(0)},jumpsTabs(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsAuth(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsQiankun(e){vo(e)}}};function aa(e,t,n){const r=t.value;if(r)Ha(r)||!1||e.parentNode&&e.parentNode.removeChild(e);else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function zu(e,t,n){n=n||"vue3",n=="vue2"?e.directive("auth",{inserted:aa}):e.directive("auth",{mounted:aa}),t.$_auth=Ha}/*! Element Plus v2.9.7 */var Zu={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function ef(e){e.use(_t,{locale:Zu});for(const[t,n]of Object.entries(So))e.component("ElIcon"+t,n)}function tf(e){e.use(go,{uploadImg:{file_name:"file",upName:"file",upProceedFn:(t,n)=>{re.flagUpload("SDK_FILE_COMMON_UPLOAD_IMG",{file:t}).then(r=>{n(r,t)})},upResponseFn(t,n,r){return t.data&&t.data.img_time}},cvEditorQuill:{},cvEditorMarkdown:{}});for(const[t,n]of Object.entries(bo))e.component("cvSvg"+t,n)}async function nf(e,t){ia(t),ar(e),nt().init(),ve().init(),await $t().init(),await me().init()}async function rf(e,t,n,r,a="",o=null){Nt().init(r),vt().init(n);let s=e.config.globalProperties;s.$onLaunched=new Promise(c=>{s.$isResolve=c}),s.$request=re,s.$cache=D,ef(e),tf(e),zu(e,s),e.mixin(Al()),e.mixin(Ju),await af(t,r,a),e.use(Ga);let l=nt().SA_LANGUAGE_GET();ol(l,o),window.$t=Fe.t}async function af(e,t,n){const r=Je(),a=me(),o=Nt(),s=vt();r.QK_SEND_MSG_REG_SUBMENU(t);let l=Qe().syProductSign||"";s.SA_PERMS_ROUTER_ADD(e,l),o.SA_MENU_PARSE(),r.QK_SEND_MSG_ROUTER_BEFORE(n);let c=!1,u=!1,d=!1;e.beforeEach((f,h,E)=>{const y=f.path||"",S=h.path,w=f.query||{};let g=a.accountIsLogin;if(oe.__POWERED_BY_QIANKUN__&&(g=a.SA_ACCOUNT_IS_LOGGED()),w.token,g){if(c||(o.SA_MENU_PARSE(),c=!0),S=="/"&&y=="/none"){if(s.SA_PERMS_ROUTER_CHECK({name:"index"}))return E({path:"/"})}else if(!s.SA_PERMS_ROUTER_CHECK(f))return E({path:"/none",replace:!0});if((S=="/login"||S=="/index")&&(u||(r.QK_SEND_LOGIN_MSG(),u=!0,d=!1)),["/login","/alone_run"].includes(y))return E({path:"/"});E()}else{if(o.SA_MENU_PARSE(),c=!1,d||(r.QK_SEND_LOGOUT_MSG(),u=!1,d=!0),!["/login","/alone_run"].includes(y))return E({path:"/login",replace:!0});E()}}),e.isReady().then(async()=>{}),e.afterEach(function(f,h){var E;if((E=f==null?void 0:f.meta)!=null&&E.title&&!oe.__POWERED_BY_QIANKUN__){let y="管理系统",S=f.meta.title;document.title=S?`${S} - ${y}`:`${y}`}})}async function of(e,t,n){oe.__POWERED_BY_QIANKUN__?Ao(e,t,n):t()}exports.HttpObj=re;exports.SameRouteView=Ka;exports.SameWatermark=Bc;exports.StorageObj=D;exports.SwitchBusiness=ja;exports._export_sfc=Ee;exports.console=Mc;exports.createHttp=ar;exports.qiankunWindow=oe;exports.sdkBootstrap=of;exports.sdkConfigGet=Qe;exports.sdkConfigSet=ia;exports.sdkStartBefore=nf;exports.sdkStarup=rf;exports.useSdkAccountStore=me;exports.useSdkLanguageStore=nt;exports.useSdkPermissionStore=vt;exports.useSdkProductStore=Nt;exports.useSdkQiankunStore=Je;exports.useSdkSystemStore=$t;exports.useSdkThemesStore=ve;exports.useSdkWindowStore=Qn;
|