@10yun/open-sdk 0.3.149 → 0.3.151
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-ljLEZL6h.js → 404-BAWDiC-U.js} +1 -1
- package/dist/404-BnDpvw0z.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CX7YVcP6.cjs +1 -0
- package/dist/{alone_run-Kz37syLe.js → alone-Cg2fiIdZ.js} +1 -1
- package/dist/alone-bNmeyUY9.cjs +1 -0
- package/dist/{helper-B_xekPmY.cjs → helper-Dy5YG9q6.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{login-DqxoKKY-.cjs → login-6avgyFW1.cjs} +1 -1
- package/dist/{login-DynHZFds.js → login-CASVkTsd.js} +1 -1
- package/dist/{none-CC7WEmdX.js → none-B8w5qFdt.js} +1 -1
- package/dist/none-HCwIbAXO.cjs +1 -0
- package/dist/opensdk-v3-Cd5TWMOZ.js +9 -0
- package/dist/opensdk-v3-DAufhFBK.cjs +9 -0
- package/dist/vite-plugin.cjs.js +1 -1
- package/dist/vite-plugin.es.js +1 -1
- package/package.json +1 -1
- package/dist/404-CuDy10Ef.cjs +0 -1
- package/dist/_plugin-vue_export-helper-BTmtiIyf.cjs +0 -1
- package/dist/alone_run-C54jBRA1.cjs +0 -1
- package/dist/none-fWH_-TtS.cjs +0 -1
- package/dist/opensdk-v3-BI8w7tNz.cjs +0 -9
- package/dist/opensdk-v3-BMcMmAsj.js +0 -9
- /package/dist/{_plugin-vue_export-helper-BDNMzG2s.js → _plugin-vue_export-helper-CIcTI-Jf.js} +0 -0
- /package/dist/{helper-BfWlu743.js → helper-YcOU1zEa.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{i as e,n as t,o as n,r,t as i}from"./helper-YcOU1zEa.js";import{t as a}from"./_plugin-vue_export-helper-CIcTI-Jf.js";import{Fragment as o,Transition as s,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as p,createTextVNode as m,createVNode as h,mergeModels as g,mergeProps as _,normalizeClass as v,normalizeStyle as y,openBlock as b,readonly as x,ref as S,renderList as C,renderSlot as w,resolveComponent as T,resolveDirective as E,resolveDynamicComponent as ee,toDisplayString as D,unref as te,useModel as O,vShow as k,withCtx as A,withDirectives as j,withModifiers as ne}from"vue";import{cc_is_empty as re,parseNumber as ie}from"@10yun/cv-js-utils";import{defineStore as M,mapState as N,storeToRefs as ae}from"pinia";import oe,{ElMessage as P,ElMessageBox as se,ElNotification as ce}from"element-plus";import{createI18n as le}from"vue-i18n";import*as ue from"@element-plus/icons-vue";import de from"@10yun/cv-pc-ui";var fe=Object.create,pe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,he=Object.getOwnPropertyNames,ge=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty,ve=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ye=(e,t)=>{let n={};for(var r in e)pe(n,r,{get:e[r],enumerable:!0});return t||pe(n,Symbol.toStringTag,{value:`Module`}),n},be=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=he(t),a=0,o=i.length,s;a<o;a++)s=i[a],!_e.call(e,s)&&s!==n&&pe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=me(t,s))||r.enumerable});return e},xe=(e,t,n)=>(n=e==null?{}:fe(ge(e)),be(t||!e||!e.__esModule?pe(n,`default`,{value:e,enumerable:!0}):n,e)),Se=S({});function Ce(){return{sdkConfigData:x(Se.value),sdkConfigSet:(e={})=>{Se.value=JSON.parse(JSON.stringify(e))},sdkConfigGet:()=>x(Se.value),sdkConfigReset:()=>{Se.value={}}}}var we=3600*24*7,Te=class{constructor(e){this.prefix=e.prefix||``,this.expired=e.expired||we,this.crypto=!!e.crypto,this.merge=!!e.merge,this.keyExpired={session:{},local:{}},this.keyGroup={session:[],local:[]}}_checkExpiredKey(e,t){return!!(e&&(e==`session`||e==`local`)&&this.keyExpired[e][t]>=Date.now())}_encodeData(){}_decodeData(){}_settKey(e,t,n){e&&(e==`session`||e==`local`)&&(this.keyExpired[e][t]=n||this.expired,this.keyGroup[e].push(t))}_deleteKey(e,t){e&&(e==`session`||e==`local`)&&(t?(delete this.keyExpired[e][t],this.keyGroup[e]=this.keyGroup[e].filter(e=>e!==t)):(this.keyExpired[e]={},this.keyGroup[e]=[]))}sessionSet(e,t,n){let r=JSON.stringify(t);sessionStorage.setItem(e,r),this._settKey(`session`,e,n)}sessionGet(e){let t=sessionStorage.getItem(e);try{return JSON.parse(t)}catch{return t}}sessionDel(e){if(!window.sessionStorage)return!1;sessionStorage.removeItem(e),this._deleteKey(`session`,e)}sessionClear(){if(!window.sessionStorage)return!1;sessionStorage.clear();for(let e in this.keyGroup.session)sessionStorage.removeItem(e);this._deleteKey(`session`)}localSet(e,t,n){if(!window.localStorage)return;(t===``||t==null)&&(t=null);let r=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,r),this._settKey(`local`,e,n)}localGet(e){if(!window.localStorage)return;this._checkExpiredKey(`local`,e);let t=window.localStorage.getItem(e);try{t=Object.keys(t).length==0||JSON.stringify(t)==`{}`?``:JSON.parse(t)}catch{}return t}localDel(e){if(!window.localStorage)return!1;window.localStorage.removeItem(e),this._deleteKey(`local`,e)}localClear(){if(!window.localStorage)return!1;window.localStorage.clear();for(let e in this.keyGroup.local)window.localStorage.removeItem(e);this._deleteKey(`local`)}};function Ee(){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 De=Ee();function Oe(){try{if(!De||!De.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 ke(e,t){e||=[],t||={};try{return new Blob(e,t)}catch(i){if(i.name!==`TypeError`)throw i;for(var n=new(typeof BlobBuilder<`u`?BlobBuilder:typeof MSBlobBuilder<`u`?MSBlobBuilder:typeof MozBlobBuilder<`u`?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}var Ae=ve(((e,t)=>{var n=global.MutationObserver||global.WebKitMutationObserver,r;if(n){var i=0,a=new n(u),o=global.document.createTextNode(``);a.observe(o,{characterData:!0}),r=function(){o.data=i=++i%2}}else if(!global.setImmediate&&global.MessageChannel!==void 0){var s=new global.MessageChannel;s.port1.onmessage=u,r=function(){s.port2.postMessage(0)}}else r=`document`in global&&`onreadystatechange`in global.document.createElement(`script`)?function(){var e=global.document.createElement(`script`);e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};var c,l=[];function u(){c=!0;for(var e,t,n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}c=!1}t.exports=d;function d(e){l.push(e)===1&&!c&&r()}})),je=ve(((e,t)=>{var n=Ae();function r(){}var i={},a=[`REJECTED`],o=[`FULFILLED`],s=[`PENDING`];t.exports=c;function c(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=s,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===o||typeof t!=`function`&&this.state===a)return this;var n=new this.constructor(r);return this.state===s?this.queue.push(new l(n,e,t)):u(n,this.state===o?e:t,this.outcome),n};function l(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}l.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){u(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){i.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){u(this.promise,this.onRejected,e)};function u(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return i.reject(e,t)}n===e?i.reject(e,TypeError(`Cannot resolve promise with itself`)):i.resolve(e,n)})}i.resolve=function(e,t){var n=p(d,t);if(n.status===`error`)return i.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=o,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e};function d(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function a(t){n||(n=!0,i.resolve(e,t))}function o(){t(a,r)}var s=p(o);s.status===`error`&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}c.resolve=m;function m(e){return e instanceof this?e:i.resolve(new this(r),e)}c.reject=h;function h(e){var t=new this(r);return i.reject(t,e)}c.all=g;function g(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,a=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(r);++c<n;)u(e[c],c);return l;function u(e,r){t.resolve(e).then(c,function(e){a||(a=!0,i.reject(l,e))});function c(e){o[r]=e,++s===n&&!a&&(a=!0,i.resolve(l,o))}}}c.race=_;function _(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,a=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(r);++o<n;)c(e[o]);return s;function c(e){t.resolve(e).then(function(e){a||(a=!0,i.resolve(s,e))},function(e){a||(a=!0,i.reject(s,e))})}}}));typeof Promise>`u`&&ve((()=>{typeof global.Promise!=`function`&&(global.Promise=je())}))();var F=Promise;function I(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function Me(e,t,n){typeof t==`function`&&e.then(t),typeof n==`function`&&e.catch(n)}function L(e){return typeof e!=`string`&&(e=String(e)),e}function Ne(){if(arguments.length&&typeof arguments[arguments.length-1]==`function`)return arguments[arguments.length-1]}var Pe=`local-forage-detect-blob-support`,Fe,R={},Ie=Object.prototype.toString,Le=`readonly`,Re=`readwrite`;function ze(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function Be(e){return new F(function(t){var n=e.transaction(Pe,Re),r=ke([``]);n.objectStore(Pe).put(r,`key`),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}function Ve(e){return typeof Fe==`boolean`?F.resolve(Fe):Be(e).then(function(e){return Fe=e,Fe})}function He(e){var t=R[e.name],n={};n.promise=new F(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function Ue(e){var t=R[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function We(e,t){var n=R[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function Ge(e,t){return new F(function(n,r){if(R[e.name]=R[e.name]||et(),e.db)if(t)He(e),e.db.close();else return n(e.db);var i=[e.name];t&&i.push(e.version);var a=De.open.apply(De,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(Pe)}catch(e){if(e.name!==`ConstraintError`)throw e}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),Ue(e)}})}function Ke(e){return Ge(e,!1)}function qe(e){return Ge(e,!0)}function Je(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function Ye(e){return new F(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){t({__local_forage_encoded_blob:!0,data:btoa(n.target.result||``),type:e.type})},r.readAsBinaryString(e)})}function Xe(e){return ke([ze(atob(e.data))],{type:e.type})}function Ze(e){return e&&e.__local_forage_encoded_blob}function Qe(e){var t=this,n=t._initReady().then(function(){var e=R[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return Me(n,e,e),n}function $e(e){He(e);for(var t=R[e.name],n=t.forages,r=0;r<n.length;r++){let e=n[r];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return e.db=null,Ke(e).then(t=>(e.db=t,Je(e)?qe(e):t)).then(r=>{e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(t=>{throw We(e,t),t})}function z(e,t,n,r){r===void 0&&(r=1);try{n(null,e.db.transaction(e.storeName,t))}catch(i){if(r>0&&(!e.db||i.name===`InvalidStateError`||i.name===`NotFoundError`))return F.resolve().then(()=>{if(!e.db||i.name===`NotFoundError`&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),qe(e)}).then(()=>$e(e).then(function(){z(e,t,n,r-1)})).catch(n);n(i)}}function et(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function tt(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=R[n.name];i||(i=et(),R[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=Qe);var a=[];function o(){return F.resolve()}for(var s=0;s<i.forages.length;s++){var c=i.forages[s];c!==t&&a.push(c._initReady().catch(o))}var l=i.forages.slice(0);return F.all(a).then(function(){return n.db=i.db,Ke(n)}).then(function(e){return n.db=e,Je(n,t._defaultConfig.version)?qe(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var a=l[r];a!==t&&(a._dbInfo.db=n.db,a._dbInfo.version=n.version)}})}function nt(e,t){var n=this;e=L(e);var r=new F(function(t,r){n.ready().then(function(){z(n._dbInfo,Le,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName).get(e);o.onsuccess=function(){var e=o.result;e===void 0&&(e=null),Ze(e)&&(e=Xe(e)),t(e)},o.onerror=function(){r(o.error)}}catch(e){r(e)}})}).catch(r)});return I(r,t),r}function rt(e,t){var n=this,r=new F(function(t,r){n.ready().then(function(){z(n._dbInfo,Le,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName).openCursor(),s=1;o.onsuccess=function(){var n=o.result;if(n){var r=n.value;Ze(r)&&(r=Xe(r));var i=e(r,n.key,s++);i===void 0?n.continue():t(i)}else t()},o.onerror=function(){r(o.error)}}catch(e){r(e)}})}).catch(r)});return I(r,t),r}function it(e,t,n){var r=this;e=L(e);var i=new F(function(n,i){var a;r.ready().then(function(){return a=r._dbInfo,Ie.call(t)===`[object Blob]`?Ve(a.db).then(function(e){return e?t:Ye(t)}):t}).then(function(t){z(r._dbInfo,Re,function(a,o){if(a)return i(a);try{var s=o.objectStore(r._dbInfo.storeName);t===null&&(t=void 0);var c=s.put(t,e);o.oncomplete=function(){t===void 0&&(t=null),n(t)},o.onabort=o.onerror=function(){i(c.error?c.error:c.transaction.error)}}catch(e){i(e)}})}).catch(i)});return I(i,n),i}function at(e,t){var n=this;e=L(e);var r=new F(function(t,r){n.ready().then(function(){z(n._dbInfo,Re,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){r(o.error)},a.onabort=function(){r(o.error?o.error:o.transaction.error)}}catch(e){r(e)}})}).catch(r)});return I(r,t),r}function ot(e){var t=this,n=new F(function(e,n){t.ready().then(function(){z(t._dbInfo,Re,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){n(a.error?a.error:a.transaction.error)}}catch(e){n(e)}})}).catch(n)});return I(n,e),n}function st(e){var t=this,n=new F(function(e,n){t.ready().then(function(){z(t._dbInfo,Le,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){n(a.error)}}catch(e){n(e)}})}).catch(n)});return I(n,e),n}function ct(e,t){var n=this,r=new F(function(t,r){if(e<0){t(null);return}n.ready().then(function(){z(n._dbInfo,Le,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=!1,c=o.openKeyCursor();c.onsuccess=function(){var n=c.result;if(!n){t(null);return}e===0||s?t(n.key):(s=!0,n.advance(e))},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return I(r,t),r}function lt(e){var t=this,n=new F(function(e,n){t.ready().then(function(){z(t._dbInfo,Le,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName).openKeyCursor(),o=[];a.onsuccess=function(){var t=a.result;if(!t){e(o);return}o.push(t.key),t.continue()},a.onerror=function(){n(a.error)}}catch(e){n(e)}})}).catch(n)});return I(n,e),n}function ut(e,t){t=Ne.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,i;if(!e.name)i=F.reject(`Invalid arguments`);else{let t=e.name===n.name&&r._dbInfo.db?F.resolve(r._dbInfo.db):Ke(e).then(t=>{let n=R[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});i=e.storeName?t.then(t=>{if(!t.objectStoreNames.contains(e.storeName))return;let n=t.version+1;He(e);let r=R[e.name],i=r.forages;t.close();for(let e=0;e<i.length;e++){let t=i[e];t._dbInfo.db=null,t._dbInfo.version=n}return new F((t,r)=>{let i=De.open(e.name,n);i.onerror=e=>{i.result.close(),r(e)},i.onupgradeneeded=()=>{i.result.deleteObjectStore(e.storeName)},i.onsuccess=()=>{let e=i.result;e.close(),t(e)}}).then(e=>{r.db=e;for(let t=0;t<i.length;t++){let n=i[t];n._dbInfo.db=e,Ue(n._dbInfo)}}).catch(t=>{throw(We(e,t)||F.resolve()).catch(()=>{}),t})}):t.then(t=>{He(e);let n=R[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++){let e=r[i];e._dbInfo.db=null}return new F((t,n)=>{var r=De.deleteDatabase(e.name);r.onerror=()=>{let e=r.result;e&&e.close(),n(r.error)},r.onblocked=()=>{},r.onsuccess=()=>{let e=r.result;e&&e.close(),t(e)}}).then(e=>{n.db=e;for(var t=0;t<r.length;t++){let e=r[t];Ue(e._dbInfo)}}).catch(t=>{throw(We(e,t)||F.resolve()).catch(()=>{}),t})})}return I(i,t),i}var dt={_driver:`asyncStorage`,_initStorage:tt,_support:Oe(),iterate:rt,getItem:nt,setItem:it,removeItem:at,clear:ot,length:st,key:ct,keys:lt,dropInstance:ut};function ft(){return typeof openDatabase==`function`}var pt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,mt=`~~local_forage_type~`,ht=/^~~local_forage_type~([^~]+)~/,gt=`__lfsc__:`,_t=gt.length,vt=`arbf`,yt=`blob`,bt=`si08`,xt=`ui08`,St=`uic8`,Ct=`si16`,wt=`si32`,Tt=`ur16`,Et=`ui32`,Dt=`fl32`,Ot=`fl64`,kt=_t+vt.length,At=Object.prototype.toString;function jt(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=pt.indexOf(e[r]),o=pt.indexOf(e[r+1]),s=pt.indexOf(e[r+2]),c=pt.indexOf(e[r+3]),u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l}function Mt(e){var t=new Uint8Array(e),n=``,r;for(r=0;r<t.length;r+=3)n+=pt[t[r]>>2],n+=pt[(t[r]&3)<<4|t[r+1]>>4],n+=pt[(t[r+1]&15)<<2|t[r+2]>>6],n+=pt[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 Nt(e,t){var n=``;if(e&&(n=At.call(e)),e&&(n===`[object ArrayBuffer]`||e.buffer&&At.call(e.buffer)===`[object ArrayBuffer]`)){var r,i=gt;e instanceof ArrayBuffer?(r=e,i+=vt):(r=e.buffer,n===`[object Int8Array]`?i+=bt:n===`[object Uint8Array]`?i+=xt:n===`[object Uint8ClampedArray]`?i+=St:n===`[object Int16Array]`?i+=Ct:n===`[object Uint16Array]`?i+=Tt:n===`[object Int32Array]`?i+=wt:n===`[object Uint32Array]`?i+=Et:n===`[object Float32Array]`?i+=Dt:n===`[object Float64Array]`?i+=Ot:t(Error(`Failed to get type for BinaryArray`))),t(i+Mt(r))}else if(n===`[object Blob]`){var a=new FileReader;a.onload=function(){var n=mt+e.type+`~`+Mt(this.result);t(gt+yt+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(e){t(null,e)}}function Pt(e){if(e.substring(0,_t)!==gt)return JSON.parse(e);var t=e.substring(kt),n=e.substring(_t,kt),r;if(n===yt&&ht.test(t)){var i=t.match(ht);r=i[1],t=t.substring(i[0].length)}var a=jt(t);switch(n){case vt:return a;case yt:return ke([a],{type:r});case bt:return new Int8Array(a);case xt:return new Uint8Array(a);case St:return new Uint8ClampedArray(a);case Ct:return new Int16Array(a);case Tt:return new Uint16Array(a);case wt:return new Int32Array(a);case Et:return new Uint32Array(a);case Dt:return new Float32Array(a);case Ot:return new Float64Array(a);default:throw Error(`Unkown type: `+n)}}var Ft={serialize:Nt,deserialize:Pt,stringToBuffer:jt,bufferToString:Mt};function It(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function Lt(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]==`string`?e[r]:e[r].toString();var i=new F(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){It(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=Ft,i}function Rt(e,t,n,r,i,a){e.executeSql(n,r,i,function(e,o){o.code===o.SYNTAX_ERR?e.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name = ?`,[t.storeName],function(e,s){s.rows.length?a(e,o):It(e,t,function(){e.executeSql(n,r,i,a)},a)},a):a(e,o)},a)}function zt(e,t){var n=this;e=L(e);var r=new F(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Rt(n,i,`SELECT * FROM ${i.storeName} WHERE key = ? LIMIT 1`,[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&=i.serializer.deserialize(r),t(r)},function(e,t){r(t)})})}).catch(r)});return I(r,t),r}function Bt(e,t){var n=this,r=new F(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Rt(n,i,`SELECT * FROM ${i.storeName}`,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s<o;s++){var c=a.item(s),l=c.value;if(l&&=i.serializer.deserialize(l),l=e(l,c.key,s+1),l!==void 0){t(l);return}}t()},function(e,t){r(t)})})}).catch(r)});return I(r,t),r}function Vt(e,t,n,r){var i=this;e=L(e);var a=new F(function(a,o){i.ready().then(function(){t===void 0&&(t=null);var s=t,c=i._dbInfo;c.serializer.serialize(t,function(t,l){l?o(l):c.db.transaction(function(n){Rt(n,c,`INSERT OR REPLACE INTO ${c.storeName} (key, value) VALUES (?, ?)`,[e,t],function(){a(s)},function(e,t){o(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0){a(Vt.apply(i,[e,s,n,r-1]));return}o(t)}})})}).catch(o)});return I(a,n),a}function Ht(e,t,n){return Vt.apply(this,[e,t,n,1])}function Ut(e,t){var n=this;e=L(e);var r=new F(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Rt(n,i,`DELETE FROM ${i.storeName} WHERE key = ?`,[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return I(r,t),r}function Wt(e){var t=this,n=new F(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Rt(t,r,`DELETE FROM ${r.storeName}`,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return I(n,e),n}function Gt(e){var t=this,n=new F(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Rt(t,r,`SELECT COUNT(key) as c FROM ${r.storeName}`,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return I(n,e),n}function Kt(e,t){var n=this,r=new F(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Rt(n,i,`SELECT key FROM ${i.storeName} WHERE id = ? LIMIT 1`,[e+1],function(e,n){t(n.rows.length?n.rows.item(0).key:null)},function(e,t){r(t)})})}).catch(r)});return I(r,t),r}function qt(e){var t=this,n=new F(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Rt(t,r,`SELECT key FROM ${r.storeName}`,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return I(n,e),n}function Jt(e){return new F(function(t,n){e.transaction(function(r){r.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'`,[],function(n,r){for(var i=[],a=0;a<r.rows.length;a++)i.push(r.rows.item(a).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}function Yt(e,t){t=Ne.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,i=e.name?new F(function(t){var i=e.name===n.name?r._dbInfo.db:openDatabase(e.name,``,``,0);e.storeName?t({db:i,storeNames:[e.storeName]}):t(Jt(i))}).then(function(e){return new F(function(t,n){e.db.transaction(function(r){function i(e){return new F(function(t,n){r.executeSql(`DROP TABLE IF EXISTS ${e}`,[],function(){t()},function(e,t){n(t)})})}for(var a=[],o=0,s=e.storeNames.length;o<s;o++)a.push(i(e.storeNames[o]));F.all(a).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):F.reject(`Invalid arguments`);return I(i,t),i}var Xt={_driver:`webSQLStorage`,_initStorage:Lt,_support:ft(),iterate:Bt,getItem:zt,setItem:Ht,removeItem:Ut,clear:Wt,length:Gt,key:Kt,keys:qt,dropInstance:Yt};function Zt(){try{return typeof localStorage<`u`&&`setItem`in localStorage&&!!localStorage.setItem}catch{return!1}}function Qt(e,t){var n=e.name+`/`;return e.storeName!==t.storeName&&(n+=e.storeName+`/`),n}function $t(){var e=`_localforage_support_test`;try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function en(){return!$t()||localStorage.length>0}function tn(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Qt(e,t._defaultConfig),en()?(t._dbInfo=n,n.serializer=Ft,F.resolve()):F.reject()}function nn(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);r.indexOf(e)===0&&localStorage.removeItem(r)}});return I(n,e),n}function rn(e,t){var n=this;e=L(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&=t.serializer.deserialize(r),r});return I(r,t),r}function an(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s<a;s++){var c=localStorage.key(s);if(c.indexOf(r)===0){var l=localStorage.getItem(c);if(l&&=t.serializer.deserialize(l),l=e(l,c.substring(i),o++),l!==void 0)return l}}});return I(r,t),r}function on(e,t){var n=this,r=n.ready().then(function(){var t=n._dbInfo,r;try{r=localStorage.key(e)}catch{r=null}return r&&=r.substring(t.keyPrefix.length),r});return I(r,t),r}function sn(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var a=localStorage.key(i);a.indexOf(e.keyPrefix)===0&&r.push(a.substring(e.keyPrefix.length))}return r});return I(n,e),n}function cn(e){var t=this.keys().then(function(e){return e.length});return I(t,e),t}function ln(e,t){var n=this;e=L(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return I(r,t),r}function un(e,t,n){var r=this;e=L(e);var i=r.ready().then(function(){t===void 0&&(t=null);var n=t;return new F(function(i,a){var o=r._dbInfo;o.serializer.serialize(t,function(t,r){if(r)a(r);else try{localStorage.setItem(o.keyPrefix+e,t),i(n)}catch(e){(e.name===`QuotaExceededError`||e.name===`NS_ERROR_DOM_QUOTA_REACHED`)&&a(e),a(e)}})})});return I(i,n),i}function dn(e,t){if(t=Ne.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,i=e.name?new F(function(t){e.storeName?t(Qt(e,r._defaultConfig)):t(`${e.name}/`)}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);n.indexOf(e)===0&&localStorage.removeItem(n)}}):F.reject(`Invalid arguments`);return I(i,t),i}var fn={_driver:`localStorageWrapper`,_initStorage:tn,_support:Zt(),iterate:an,getItem:rn,setItem:un,removeItem:ln,clear:nn,length:cn,key:on,keys:sn,dropInstance:dn},pn=(e,t)=>e===t||typeof e==`number`&&typeof t==`number`&&isNaN(e)&&isNaN(t),mn=(e,t)=>{let n=e.length,r=0;for(;r<n;){if(pn(e[r],t))return!0;r++}return!1},hn=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`},gn={},_n={},vn={INDEXEDDB:dt,WEBSQL:Xt,LOCALSTORAGE:fn},yn=[vn.INDEXEDDB._driver,vn.WEBSQL._driver,vn.LOCALSTORAGE._driver],bn=[`dropInstance`],xn=[`clear`,`getItem`,`iterate`,`key`,`keys`,`length`,`removeItem`,`setItem`].concat(bn),Sn={description:``,driver:yn.slice(),name:`localforage`,size:4980736,storeName:`keyvaluepairs`,version:1};function Cn(e,t){e[t]=function(){let n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function wn(){for(let e=1;e<arguments.length;e++){let t=arguments[e];if(t)for(let e in t)t.hasOwnProperty(e)&&(hn(t[e])?arguments[0][e]=t[e].slice():arguments[0][e]=t[e])}return arguments[0]}var Tn=new class e{constructor(e){for(let e in vn)if(vn.hasOwnProperty(e)){let t=vn[e],n=t._driver;this[e]=n,gn[n]||this.defineDriver(t)}this._defaultConfig=wn({},Sn),this._config=wn({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(()=>{})}config(e){if(typeof e==`object`){if(this._ready)return Error(`Can't call config() after localforage has been used.`);for(let t in e){if(t===`storeName`&&(e[t]=e[t].replace(/\W/g,`_`)),t===`version`&&typeof e[t]!=`number`)return Error(`Database version must be a number.`);this._config[t]=e[t]}return`driver`in e&&e.driver?this.setDriver(this._config.driver):!0}else if(typeof e==`string`)return this._config[e];else return this._config}defineDriver(e,t,n){let r=new F(function(t,n){try{let r=e._driver,i=Error(`Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver`);if(!e._driver){n(i);return}let a=xn.concat(`_initStorage`);for(let t=0,r=a.length;t<r;t++){let r=a[t];if((!mn(bn,r)||e[r])&&typeof e[r]!=`function`){n(i);return}}(function(){let t=function(e){return function(){let t=Error(`Method ${e} is not implemented by the current driver`),n=F.reject(t);return I(n,arguments[arguments.length-1]),n}};for(let n=0,r=bn.length;n<r;n++){let r=bn[n];e[r]||(e[r]=t(r))}})();let o=function(n){gn[r],gn[r]=e,_n[r]=n,t()};`_support`in e?e._support&&typeof e._support==`function`?e._support().then(o,n):o(!!e._support):o(!0)}catch(e){n(e)}});return Me(r,t,n),r}driver(){return this._driver||null}getDriver(e,t,n){let r=gn[e]?F.resolve(gn[e]):F.reject(Error(`Driver not found.`));return Me(r,t,n),r}getSerializer(e){let t=F.resolve(Ft);return Me(t,e),t}ready(e){let t=this,n=t._driverSet.then(()=>(t._ready===null&&(t._ready=t._initDriver()),t._ready));return Me(n,e,e),n}setDriver(e,t,n){let r=this;hn(e)||(e=[e]);let i=this._getSupportedDrivers(e);function a(){r._config.driver=r.driver()}function o(e){return r._extend(e),a(),r._ready=r._initStorage(r._config),r._ready}function s(e){return function(){let t=0;function n(){for(;t<e.length;){let i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(o).catch(n)}a();let i=Error(`No available storage method found.`);return r._driverSet=F.reject(i),r._driverSet}return n()}}let c=this._driverSet===null?F.resolve():this._driverSet.catch(()=>F.resolve());return this._driverSet=c.then(()=>{let e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(e=>{r._driver=e._driver,a(),r._wrapLibraryMethodsWithReady(),r._initDriver=s(i)})}).catch(()=>{a();let e=Error(`No available storage method found.`);return r._driverSet=F.reject(e),r._driverSet}),Me(this._driverSet,t,n),this._driverSet}supports(e){return!!_n[e]}_extend(e){wn(this,e)}_getSupportedDrivers(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];this.supports(r)&&t.push(r)}return t}_wrapLibraryMethodsWithReady(){for(let e=0,t=xn.length;e<t;e++)Cn(this,xn[e])}createInstance(t){return new e(t)}},En=class{constructor(e){this.db_name=e.db_name||`cvjs`,Tn.config({name:this.db_name,storeName:`common`}),this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}async idbTest(){try{cvUtils.isDevice_ios()&&await Tn.setItem(`__test__`,$A.Time()),this.__open_log}catch(e){this.__open_log?ElMessageBox.alert(e.message,`温馨提示`,{confirmButtonText:`OK`}).then(()=>{$A.reloadUrl()}):$A.reloadUrl()}}idbSave(e,t,n=100){this.__timer[e]!==void 0&&(clearTimeout(this.__timer[e]),delete this.__timer[e]),this.__timer[e]=setTimeout(async n=>{let r=JSON.parse(JSON.stringify(t));await Tn.setItem(e,r)},n)}idbGetItem(e){return Tn.getItem(e)}idbSetItem(e,t){let n=``;return t&&t!=`undefined`&&(n=JSON.parse(JSON.stringify(t))),Tn.setItem(e,n)}idbDelItem(e){Tn.removeItem(e).then(e=>{})}idbClear(){return Tn.clear()}async idbGetString(e,t=``){let n=await this.idbGetItem(e);return typeof n==`string`||typeof n==`number`?n:t}async idbGetInt(e,t=0){let n=await this.idbGetItem(e);return typeof n==`number`?n:t}async idbGetBoolean(e,t=!1){let n=await this.idbGetItem(e);return typeof n==`boolean`?n:t}async idbGetArray(e,t=[]){let n=await this.idbGetItem(e);return cvUtils.isTypeArray(n)?n:t}async idbGetJson(e,t={}){let n=await this.idbGetItem(e);return cvUtils.isTypeJson(n)?n:t}},Dn=class{constructor(e){this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}setSessionStorage(e,t){return this.__operationSessionStorage(e,t)}getSessionStorageValue(e){return this.__operationSessionStorage(e)}sessGetString(e,t=``){let n=this.__operationSessionStorage(e);return typeof n==`string`||typeof n==`number`?n:t}getSessionStorageInt(e,t=0){let n=this.__operationSessionStorage(e);return typeof n==`number`?n:t}__operationSessionStorage(e,t){if(!e)return;let n=`__state__`;if(e.substring(0,5)===`cache`&&(n=`__state:`+e+`__`),t===void 0)return this.__loadFromlSession(e,``,n);this.__savaToSession(e,t,n)}__savaToSession(e,t,n){try{n===void 0&&(n=`__seller__`);let r=window.sessionStorage.getItem(n);r=r?JSON.parse(r):{},r[e]=t,window.sessionStorage.setItem(n,JSON.stringify(r))}catch{}}__loadFromlSession(e,t,n){try{n===void 0&&(n=`__seller__`);let r=window.sessionStorage.getItem(n);return!r||(r=JSON.parse(r),!r||r[e]===void 0)?t:r[e]}catch{return t}}},B=new Te({prefix:``}),On=new En({db_name:`ShiyunConsole`});window.gbIdbObj=On;var kn=new Dn({});window.gbSessObj=kn,B.idbGetItem=function(e){return window.gbIdbObj.idbGetItem(e)},B.idbSetItem=function(e,t){return window.gbIdbObj.idbSetItem(e,t)},B.idbDelItem=function(e){return window.gbIdbObj.idbDelItem(e)},B.idbGetString=function(e){return window.gbIdbObj.idbGetString(e)},B.idbSave=function(e,t){return window.gbIdbObj.idbSave(e,t)},B.idbGetString=function(e,t){return window.gbIdbObj.idbGetString(e,t)},B.idbGetJson=function(e,t){return window.gbIdbObj.idbGetJson(e,t)};var An=[`sdk_page_404`,`sdk_page_login`,`sdk_page_alone`,``,`sdk_page_none`,`sdk_page_redirect`],jn=()=>B.localGet(`syCacheAppRbac`)||``;function Mn(t){let{sdkConfigData:n}=Ce(),i=n.VITE_SY_PRODUCT_SIGN,a=jn(),o=(t,r)=>{if(n.MODE==`development`&&n.VITE_APP_DEBUG===`on`)return!0;if(t||=``,t=t.trim(),t==``)return!1;t.includes(`@`)||(t=`${i}@${t}`);let a=r||jn();return a=a.trim(),e(a)?a==`"all@all"`||a==`all@all`?!0:a.split(`,`).map(e=>e.trim()).includes(t):!1};return{checkPermission:o,checkRoute:e=>{let t=r(e).name;return!!(An.includes(t)||o(t,a))},permission_auth:e=>{let t=Object.prototype.toString.call(e);if(t!=`[object String]`&&t!=`[object Array]`)return!1;let n=jn();if(t==`[object String]`)return o(e,n);if(t===`[object Array]`){for(let t of e)if(!o(t,n))return!1;return!0}return!1}}}function Nn(e,t,n){let r=t.value;if(r){let{permission_auth:t}=Mn();t(r)||e.parentNode&&e.parentNode.removeChild(e)}else throw Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function Pn(e,t,n){n||=`vue3`;let{permission_auth:r}=Mn();n==`vue2`?e.directive(`auth`,{inserted:Nn}):e.directive(`auth`,{mounted:Nn}),t.$_auth=r}var Fn={};function In(e,t){let n=T(`el-header`);return b(),l(n,{class:`cloud-header__wrap`},{default:A(()=>[w(e.$slots,`default`)]),_:3})}var Ln=a(Fn,[[`render`,In]]),Rn={},zn={class:`cloud-top-logo-box`},Bn={class:`cloud-header__logo`},Vn={href:`/`,title:`官网`,class:`cloud-header__logo-a`},Hn=[`src`],Un={key:0,class:`cloud-header__logo-title`};function Wn(e,t){return b(),d(`div`,zn,[f(`div`,Bn,[f(`a`,Vn,[f(`img`,{class:`cloud-header__logo-img`,src:e.cacheInstInfo.LAST_IP_LOGO,alt:``},null,8,Hn)])]),e.cacheLayoutSidebarState==`openSidebar`?(b(),d(`div`,Un,D(e.cacheInstInfo.LAST_IP_BRAND),1)):u(``,!0)])}var Gn=a(Rn,[[`render`,Wn]]);function Kn(e=`/`,t=null,n={}){e==`/`&&(e=`/`+(window.localStorage.getItem(`__syCacheMicroCurrSign__`)||`base`)),window.history.pushState(n,t,e)}var qn={};function Jn(e){if(!i.__POWERED_BY_QIANKUN__)return!1;if(!Object.prototype.toString.call(e)===`[object Object]`)throw Error(`data必须是对象格式`);qn.onMicroToMainMsg&&qn.onMicroToMainMsg({ignore:qn.name,msg:{...e}})}function Yn(e){let t=X();qn.onMicroToMainMsg=e.onMicroToMainMsg,qn.name=e.name,e.onMainToMicroMsg&&typeof e.onMainToMicroMsg==`function`&&e.onMainToMicroMsg((e,n)=>{if(e&&e.msg)switch((e.msg||{}).COMM_TYPE||``){case`LoginSucc`:case`LoginLogout`:t.SA_ACCOUNT_REFRESH();break}Zn().SA_MSG_CONTENT(e.msg)},!0)}function Xn(e,n,r){t({bootstrap(e){},mount(e){Yn(e),n(e,!0)},unmount(e){r(e),Object.keys(qn).forEach(e=>delete qn[e])},update(e){}})}var Zn=M(`cloudSdkQiankunStore`,{state:()=>({qiankunExistState:i.__POWERED_BY_QIANKUN__||!1,msg:``}),getters:{xxxx:e=>{},msgContent:e=>e.msg},actions:{async init(){},QK_SEND_LOGIN_MSG(){Jn({COMM_TYPE:`LoginSucc`})},QK_SEND_LOGOUT_MSG(){Jn({COMM_TYPE:`LoginLogout`})},QK_SEND_MSG_REG_SUBMENU(e){Jn({COMM_TYPE:`MicroRegisterMenu`,COMM_TYPESTR:`注册子应用菜单`,data:e||[]})},QK_SEND_MSG_ROUTER_BEFORE(e){Jn({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消息必须是对象格式`);if(e.type)switch(e.type){case`RefreshRoute`:break}},QIANKUN_SEND_MSG_TO_MAIN(e,t){Jn({COMM_TYPE:e,data:t||``})},SA_SET_QIANKUN_STATE(e){this.qiankunExistState=e},SA_MSG_CONTENT(e){this.msg=e}}});function Qn(e){return new Promise((t,n)=>{se.confirm(e.message||``,e.title||`Warning`,{confirmButtonText:e.confirmButtonText||`确认`,cancelButtonText:e.cancelButtonText||`取消`,showCancelButton:e.showCancelButton,type:`warning`}).then(()=>{t()}).catch(()=>{n()})})}function $n(e){ce({title:e.title,message:e.message,type:e.type||`info`,duration:1200,onClose:()=>{typeof e.onClose==`function`&&e.onClose()}})}function er(e,t){return function(){return e.apply(t,arguments)}}var{toString:tr}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:rr,toStringTag:ir}=Symbol,ar=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),or=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),ar(n,t))return!0;n=nr(n)}return!1},sr=(e,t)=>e!=null&&or(e,t)?e[t]:void 0,cr=(e=>t=>{let n=tr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=e=>(e=e.toLowerCase(),t=>cr(t)===e),lr=e=>t=>typeof t===e,{isArray:ur}=Array,dr=lr(`undefined`);function fr(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var pr=V(`ArrayBuffer`);function mr(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pr(e.buffer),t}var hr=lr(`string`),H=lr(`function`),gr=lr(`number`),_r=e=>typeof e==`object`&&!!e,vr=e=>e===!0||e===!1,yr=e=>{if(!_r(e))return!1;let t=nr(e);return(t===null||t===Object.prototype||nr(t)===null)&&!or(e,ir)&&!or(e,rr)},br=e=>{if(!_r(e)||fr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xr=V(`Date`),Sr=V(`File`),Cr=e=>!!(e&&e.uri!==void 0),wr=e=>e&&e.getParts!==void 0,Tr=V(`Blob`),Er=V(`FileList`),Dr=e=>_r(e)&&H(e.pipe);function Or(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var kr=Or(),Ar=kr.FormData===void 0?void 0:kr.FormData,jr=e=>{if(!e)return!1;if(Ar&&e instanceof Ar)return!0;let t=nr(e);if(!t||t===Object.prototype||!H(e.append))return!1;let n=cr(e);return n===`formdata`||n===`object`&&H(e.toString)&&e.toString()===`[object FormData]`},Mr=V(`URLSearchParams`),[Nr,Pr,Fr,Ir]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(V),Lr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Rr(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),ur(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(fr(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function zr(e,t){if(fr(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Br=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Vr=e=>!dr(e)&&e!==Br;function Hr(...e){let{caseless:t,skipUndefined:n}=Vr(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&zr(r,i)||i,o=ar(r,a)?r[a]:void 0;yr(o)&&yr(e)?r[a]=Hr(o,e):yr(e)?r[a]=Hr({},e):ur(e)?r[a]=e.slice():(!n||!dr(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||fr(n)||(Rr(n,i),typeof n!=`object`||ur(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ei.call(n,t)&&i(n[t],t)}}return r}var Ur=(e,t,n,{allOwnKeys:r}={})=>(Rr(t,(t,r)=>{n&&H(t)?Object.defineProperty(e,r,{__proto__:null,value:er(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Wr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Kr=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&nr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Jr=e=>{if(!e)return null;if(ur(e))return e;let t=e.length;if(!gr(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Yr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&nr(Uint8Array)),Xr=(e,t)=>{let n=(e&&e[rr]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Zr=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qr=V(`HTMLFormElement`),$r=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:ei}=Object.prototype,ti=V(`RegExp`),ni=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Rr(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ri=e=>{ni(e,(t,n)=>{if(H(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(H(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ii=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ur(e)?r(e):r(String(e).split(t)),n},ai=()=>{},oi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function si(e){return!!(e&&H(e.append)&&e[ir]===`FormData`&&e[rr])}var ci=e=>{let t=new WeakSet,n=e=>{if(_r(e)){if(t.has(e))return;if(fr(e))return e;if(!(`toJSON`in e)){t.add(e);let r=ur(e)?[]:{};return Rr(e,(e,t)=>{let i=n(e);!dr(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},li=V(`AsyncFunction`),ui=e=>e&&(_r(e)||H(e))&&H(e.then)&&H(e.catch),di=((e,t)=>e?setImmediate:t?((e,t)=>(Br.addEventListener(`message`,({source:n,data:r})=>{n===Br&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Br.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,H(Br.postMessage)),fi=typeof queueMicrotask<`u`?queueMicrotask.bind(Br):typeof process<`u`&&process.nextTick||di,pi=e=>e!=null&&H(e[rr]),U={isArray:ur,isArrayBuffer:pr,isBuffer:fr,isFormData:jr,isArrayBufferView:mr,isString:hr,isNumber:gr,isBoolean:vr,isObject:_r,isPlainObject:yr,isEmptyObject:br,isReadableStream:Nr,isRequest:Pr,isResponse:Fr,isHeaders:Ir,isUndefined:dr,isDate:xr,isFile:Sr,isReactNativeBlob:Cr,isReactNative:wr,isBlob:Tr,isRegExp:ti,isFunction:H,isStream:Dr,isURLSearchParams:Mr,isTypedArray:Yr,isFileList:Er,forEach:Rr,merge:Hr,extend:Ur,trim:Lr,stripBOM:Wr,inherits:Gr,toFlatObject:Kr,kindOf:cr,kindOfTest:V,endsWith:qr,toArray:Jr,forEachEntry:Xr,matchAll:Zr,isHTMLForm:Qr,hasOwnProperty:ar,hasOwnProp:ar,hasOwnInPrototypeChain:or,getSafeProp:sr,reduceDescriptors:ni,freezeMethods:ri,toObjectSet:ii,toCamelCase:$r,noop:ai,toFiniteNumber:oi,findKey:zr,global:Br,isContextDefined:Vr,isSpecCompliantForm:si,toJSONObject:ci,isAsyncFn:li,isThenable:ui,setImmediate:di,asap:fi,isIterable:pi,isSafeIterable:e=>e!=null&&or(e,rr)&&pi(e)},mi=U.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),hi=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&mi[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function gi(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var _i=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),vi=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function yi(e,t){return U.isArray(e)?e.map(e=>yi(e,t)):gi(String(e).replace(t,``))}var bi=e=>yi(e,_i),xi=e=>yi(e,vi);function Si(e){let t=Object.create(null);return U.forEach(e.toJSON(),(e,n)=>{t[n]=xi(e)}),t}var Ci=Symbol(`internals`);function wi(e){return e&&String(e).trim().toLowerCase()}function Ti(e){return e===!1||e==null?e:U.isArray(e)?e.map(Ti):bi(String(e))}function Ei(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Di=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oi(e,t,n,r,i){if(U.isFunction(r))return r.call(this,t,n);if(i&&(t=n),U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function ki(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ai(e,t){let n=U.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var W=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=wi(t);if(!i)return;let a=U.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Ti(e))}let a=(e,t)=>U.forEach(e,(e,n)=>i(e,n,t));if(U.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(U.isString(e)&&(e=e.trim())&&!Di(e))a(hi(e),t);else if(U.isObject(e)&&U.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!U.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],U.hasOwnProp(n,i)?(r=n[i],n[i]=U.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=wi(e),e){let n=U.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Ei(e);if(U.isFunction(t))return t.call(this,e,n);if(U.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=wi(e),e){let n=U.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Oi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=wi(e),e){let i=U.findKey(n,e);i&&(!t||Oi(n,n[i],i,t))&&(delete n[i],r=!0)}}return U.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Oi(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return U.forEach(this,(r,i)=>{let a=U.findKey(n,i);if(a){t[a]=Ti(r),delete t[i];return}let o=e?ki(i):String(i).trim();o!==i&&delete t[i],t[o]=Ti(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return U.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&U.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ci]=this[Ci]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=wi(e);t[r]||(Ai(n,e),t[r]=!0)}return U.isArray(e)?e.forEach(r):r(e),this}};W.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),U.reduceDescriptors(W.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),U.freezeMethods(W);var ji=`[REDACTED ****]`;function Mi(e){if(U.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(U.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function Ni(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||U.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof W&&(e=e.toJSON()),r.push(e);let t;if(U.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);U.isUndefined(r)||(t[n]=r)});else{if(!U.isPlainObject(e)&&Mi(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ji:i(a);U.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var G=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&U.hasOwnProp(e,`redact`)?e.redact:void 0,n=U.isArray(t)&&t.length>0?Ni(e,t):U.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};G.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,G.ERR_BAD_OPTION=`ERR_BAD_OPTION`,G.ECONNABORTED=`ECONNABORTED`,G.ETIMEDOUT=`ETIMEDOUT`,G.ECONNREFUSED=`ECONNREFUSED`,G.ERR_NETWORK=`ERR_NETWORK`,G.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,G.ERR_DEPRECATED=`ERR_DEPRECATED`,G.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,G.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,G.ERR_CANCELED=`ERR_CANCELED`,G.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,G.ERR_INVALID_URL=`ERR_INVALID_URL`,G.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function Pi(e){return U.isPlainObject(e)||U.isArray(e)}function Fi(e){return U.endsWith(e,`[]`)?e.slice(0,-2):e}function Ii(e,t,n){return e?e.concat(t).map(function(e,t){return e=Fi(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Li(e){return U.isArray(e)&&!e.some(Pi)}var Ri=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});function zi(e,t,n){if(!U.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!U.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&U.isSpecCompliantForm(t),u=[];if(!U.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(U.isDate(e))return e.toISOString();if(U.isBoolean(e))return e.toString();if(!l&&U.isBlob(e))throw new G(`Blob is not supported. Use a Buffer instead.`);return U.isArrayBuffer(e)||U.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function f(e){if(e>c)throw new G(`Object is too deeply nested (`+e+` levels). Max depth: `+c,G.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!U.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(U.isReactNative(t)&&U.isReactNativeBlob(e))return t.append(Ii(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(U.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(U.isArray(e)&&Li(e)||(U.isFileList(e)||U.endsWith(n,`[]`))&&(s=U.toArray(e)))return n=Fi(n),s.forEach(function(e,r){!(U.isUndefined(e)||e===null)&&t.append(o===!0?Ii([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return Pi(e)?!0:(t.append(Ii(i,n,a),d(e)),!1)}let h=Object.assign(Ri,{defaultVisitor:m,convertValue:d,isVisitable:Pi});function g(e,n,r=0){if(!U.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),U.forEach(e,function(e,a){(!(U.isUndefined(e)||e===null)&&i.call(t,e,U.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!U.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function Bi(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Vi(e,t){this._pairs=[],e&&zi(e,this,t)}var Hi=Vi.prototype;Hi.append=function(e,t){this._pairs.push([e,t])},Hi.toString=function(e){let t=e?function(t){return e.call(this,t,Bi)}:Bi;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Ui(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Wi(e,t,n){if(!t)return e;let r=U.isFunction(n)?{serialize:n}:n,i=U.getSafeProp(r,`encode`)||Ui,a=U.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):U.isURLSearchParams(t)?t.toString():new Vi(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Gi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){U.forEach(this.handlers,function(t){t!==null&&e(t)})}},Ki={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},qi={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Vi,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Ji=ye({hasBrowserEnv:()=>Yi,hasStandardBrowserEnv:()=>Zi,hasStandardBrowserWebWorkerEnv:()=>Qi,navigator:()=>Xi,origin:()=>$i}),Yi=typeof window<`u`&&typeof document<`u`,Xi=typeof navigator==`object`&&navigator||void 0,Zi=Yi&&(!Xi||[`ReactNative`,`NativeScript`,`NS`].indexOf(Xi.product)<0),Qi=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,$i=Yi&&window.location.href||`http://localhost`,K={...Ji,...qi};function ea(e,t){return zi(e,new K.classes.URLSearchParams,{visitor:function(e,t,n,r){return K.isNode&&U.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var ta=100;function na(e){if(e>ta)throw new G(`FormData field is too deeply nested (`+e+` levels). Max depth: `+ta,G.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ra(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)na(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function ia(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function aa(e){function t(e,n,r,i){na(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&U.isArray(r)?r.length:a,s?(U.hasOwnProp(r,a)?r[a]=U.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!U.hasOwnProp(r,a)||!U.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&U.isArray(r[a])&&(r[a]=ia(r[a])),!o)}if(U.isFormData(e)&&U.isFunction(e.entries)){let n={};return U.forEachEntry(e,(e,r)=>{t(ra(e),r,n,0)}),n}return null}var oa=(e,t)=>e!=null&&U.hasOwnProp(e,t)?e[t]:void 0;function sa(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var ca={transitional:Ki,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=U.isObject(e);if(i&&U.isHTMLForm(e)&&(e=new FormData(e)),U.isFormData(e))return r?JSON.stringify(aa(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e)||U.isReadableStream(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=oa(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ea(e,t).toString();if((a=U.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=oa(this,`env`),r=n&&n.FormData;return zi(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),sa(e)):e}],transformResponse:[function(e){let t=oa(this,`transitional`)||ca.transitional,n=t&&t.forcedJSONParsing,r=oa(this,`responseType`),i=r===`json`;if(U.isResponse(e)||U.isReadableStream(e))return e;if(e&&U.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,oa(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?G.from(e,G.ERR_BAD_RESPONSE,this,null,oa(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};U.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{ca.headers[e]={}});function la(e,t){let n=this||ca,r=t||n,i=W.from(r.headers),a=r.data;return U.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ua(e){return!!(e&&e.__CANCEL__)}var da=class extends G{constructor(e,t,n){super(e??`canceled`,G.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function fa(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G(`Request failed with status code `+n.status,n.status>=400&&n.status<500?G.ERR_BAD_REQUEST:G.ERR_BAD_RESPONSE,n.config,n.request,n))}function pa(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function ma(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function ha(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var ga=(e,t,n=3)=>{let r=0,i=ma(50,250);return ha(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},_a=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},va=e=>(...t)=>U.asap(()=>e(...t)),ya=K.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,K.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(K.origin),K.navigator&&/(msie|trident)/i.test(K.navigator.userAgent)):()=>!0,ba=K.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];U.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),U.isString(r)&&s.push(`path=${r}`),U.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),U.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function xa(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Sa(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Ca=/^https?:(?!\/\/)/i,wa=/[\t\n\r]/g;function Ta(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Ea(e){return Ta(e).replace(wa,``)}function Da(e,t){if(typeof e==`string`&&Ca.test(Ea(e)))throw new G(`Invalid URL: missing "//" after protocol`,G.ERR_INVALID_URL,t)}function Oa(e,t,n,r){Da(t,r);let i=!xa(t);return e&&(i||n===!1)?(Da(e,r),Sa(e,t)):t}var ka=e=>e instanceof W?{...e}:e;function Aa(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,`hasOwnProperty`,{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return U.isPlainObject(e)&&U.isPlainObject(t)?U.merge.call({caseless:r},e,t):U.isPlainObject(t)?U.merge({},t):U.isArray(t)?t.slice():t}function i(e,t,n,i){if(!U.isUndefined(t))return r(e,t,n,i);if(!U.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!U.isUndefined(t))return r(void 0,t)}function o(e,t){if(!U.isUndefined(t))return r(void 0,t);if(!U.isUndefined(e))return r(void 0,e)}function s(n){let r=U.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!U.isUndefined(r))if(U.isPlainObject(r)){if(U.hasOwnProp(r,n))return r[n]}else return;let i=U.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(U.isPlainObject(i)&&U.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(U.hasOwnProp(t,a))return r(n,i);if(U.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(ka(e),ka(t),n,!0)};return U.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=U.hasOwnProp(l,r)?l[r]:i,o=a(U.hasOwnProp(e,r)?e[r]:void 0,U.hasOwnProp(t,r)?t[r]:void 0,r);U.isUndefined(o)&&a!==c||(n[r]=o)}),U.hasOwnProp(t,`validateStatus`)&&U.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(U.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var ja=[`content-type`,`content-length`];function Ma(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{ja.includes(t.toLowerCase())&&e.set(t,n)})}var Na=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Pa(e){let t=Aa({},e),n=e=>U.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=W.from(s),t.url=Wi(Oa(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let e=U.getSafeProp(c,`username`)||``,t=U.getSafeProp(c,`password`)||``;s.set(`Authorization`,`Basic `+btoa(e+`:`+(t?Na(t):``)))}if(U.isFormData(r)&&(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv||U.isReactNative(r)?s.setContentType(void 0):U.isFunction(r.getHeaders)&&Ma(s,r.getHeaders(),n(`formDataHeaderPolicy`))),K.hasStandardBrowserEnv&&(U.isFunction(i)&&(i=i(t)),i===!0||i==null&&ya(t.url))){let e=a&&o&&ba.read(o);e&&s.set(a,e)}return t}var Fa=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Pa(e),i=r.data,a=W.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=W.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());fa(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new G(`Request aborted`,G.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new G(t&&t.message?t.message:`Network Error`,G.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Ki;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new G(t,i.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&U.forEach(Si(a),function(e,t){h.setRequestHeader(t,e)}),U.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=ga(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=ga(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new da(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=pa(r.url);if(_&&!K.protocols.includes(_)){n(new G(`Unsupported protocol `+_+`:`,G.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Ia=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof G?t:new da(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>U.asap(o),s},La=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Ra=async function*(e,t){for await(let n of za(e))yield*La(n,t)},za=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ba=(e,t,n,r)=>{let i=Ra(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Va=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ha=(e,t,n)=>t+2<n&&Va(e.charCodeAt(t+1))&&Va(e.charCodeAt(t+2));function Ua(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);Va(t)&&Va(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&Ha(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var Wa=`1.18.0`,Ga=64*1024,{isFunction:Ka}=U,qa=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Ja=e=>{if(!U.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Ya=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xa=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Za=e=>{let t=U.global!==void 0&&U.global!==null?U.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=U.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Ka(i):typeof fetch==`function`,c=Ka(a),l=Ka(o);if(!s)return!1;let u=s&&Ka(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Ya(()=>{let e=!1,t=new a(K.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Ya(()=>U.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(U.isBlob(e))return e.size;if(U.isSpecCompliantForm(e))return(await new a(K.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(U.isArrayBufferView(e)||U.isArrayBuffer(e))return e.byteLength;if(U.isURLSearchParams(e)&&(e+=``),U.isString(e))return(await d(e)).byteLength},g=async(e,t)=>U.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=Pa(e),E=U.isNumber(w)&&w>-1,ee=U.isNumber(T)&&T>-1,D=t=>U.hasOwnProp(e,t)?e[t]:void 0,te=i||fetch;b=b?(b+``).toLowerCase():`text`;let O=Ia([l,d&&d.toAbortSignal()],_),k=null,A=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),j,ne=null,re=()=>new G(`Request body larger than maxBodyLength limit`,G.ERR_BAD_REQUEST,e,k);try{let i,l=D(`auth`);if(l&&(i={username:U.getSafeProp(l,`username`)||``,password:U.getSafeProp(l,`password`)||``}),Xa(t)){let e=new URL(t,K.origin);!i&&(e.username||e.password)&&(i={username:Ja(e.username),password:Ja(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(qa((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&Ua(t)>w)throw new G(`maxContentLength size of `+w+` exceeded`,G.ERR_BAD_RESPONSE,e,k);if(ee&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(j=e,e>T))throw re()}let d=ee&&(U.isReadableStream(s)||U.isStream(s)),_=(e,t,n)=>Ba(e,Ga,e=>{if(ee&&e>T)throw ne=re();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(j??=await g(x,s),j!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(U.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&_a(j,ga(va(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new G(`Stream request bodies are not supported by the current fetch implementation`,G.ERR_NOT_SUPPORT,e,k);U.isString(S)||(S=S?`include`:`omit`);let ie=c&&`credentials`in a.prototype;if(U.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Wa,!1);let M={...C,signal:O,method:n.toUpperCase(),headers:Si(x.normalize()),body:s,duplex:`half`,credentials:ie?S:void 0};k=c&&new a(t,M);let N=await(c?te(k,C):te(t,M)),ae=W.from(N.headers);if(E){let t=U.toFiniteNumber(ae.getContentLength());if(t!=null&&t>w)throw new G(`maxContentLength size of `+w+` exceeded`,G.ERR_BAD_RESPONSE,e,k)}let oe=p&&(b===`stream`||b===`response`);if(p&&N.body&&(v||E||oe&&A)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=N[e]});let n=U.toFiniteNumber(ae.getContentLength()),[r,i]=v&&_a(n,ga(va(v),!0))||[],a=0;N=new o(Ba(N.body,Ga,t=>{if(E&&(a=t,a>w))throw new G(`maxContentLength size of `+w+` exceeded`,G.ERR_BAD_RESPONSE,e,k);r&&r(t)},()=>{i&&i(),A&&A()}),t)}b||=`text`;let P=await m[U.findKey(m,b)||`text`](N,e);if(E&&!p&&!oe){let t;if(P!=null&&(typeof P.byteLength==`number`?t=P.byteLength:typeof P.size==`number`?t=P.size:typeof P==`string`&&(t=typeof r==`function`?new r().encode(P).byteLength:P.length)),typeof t==`number`&&t>w)throw new G(`maxContentLength size of `+w+` exceeded`,G.ERR_BAD_RESPONSE,e,k)}return!oe&&A&&A(),await new Promise((t,n)=>{fa(t,n,{data:P,headers:W.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:k})})}catch(t){if(A&&A(),O&&O.aborted&&O.reason instanceof G){let n=O.reason;throw n.config=e,k&&(n.request=k),t!==n&&(n.cause=t),n}throw ne?(k&&!ne.request&&(ne.request=k),ne):t instanceof G?(k&&!t.request&&(t.request=k),t):t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new G(`Network Error`,G.ERR_NETWORK,e,k,t&&t.response),{cause:t.cause||t}):G.from(t,t&&t.code,e,k,t&&t.response)}}},Qa=new Map,$a=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Qa;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Za(t)),l=c;return c};$a();var eo={http:null,xhr:Fa,fetch:{get:$a}};U.forEach(eo,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{__proto__:null,value:t})}catch{}Object.defineProperty(e,`adapterName`,{__proto__:null,value:t})}});var to=e=>`- ${e}`,no=e=>U.isFunction(e)||e===null||e===!1;function ro(e,t){e=U.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!no(r)&&(i=eo[(n=String(r)).toLowerCase()],i===void 0))throw new G(`Unknown adapter '${n}'`);if(i&&(U.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new G(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(to).join(`
|
|
5
|
+
`):` `+to(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var io={getAdapter:ro,adapters:eo};function ao(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new da(null,e)}function oo(e){return ao(e),e.headers=W.from(e.headers),e.data=la.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),io.getAdapter(e.adapter||ca.adapter,e)(e).then(function(t){ao(e),e.response=t;try{t.data=la.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=W.from(t.headers),t},function(t){if(!ua(t)&&(ao(e),t&&t.response)){e.response=t.response;try{t.response.data=la.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=W.from(t.response.headers)}return Promise.reject(t)})}var so={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{so[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var co={};so.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Wa+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new G(r(i,` has been removed`+(t?` in `+t:``)),G.ERR_DEPRECATED);return t&&!co[i]&&(co[i]=!0),e?e(n,i,a):!0}},so.spelling=function(e){return(e,t)=>!0};function lo(e,t,n){if(typeof e!=`object`)throw new G(`options must be an object`,G.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new G(`option `+a+` must be `+n,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G(`Unknown option `+a,G.ERR_BAD_OPTION)}}var uo={assertOptions:lo,validators:so},q=uo.validators,fo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Gi,response:new Gi}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
|
6
|
+
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
7
|
+
`),r=t===-1?-1:n.indexOf(`
|
|
8
|
+
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
9
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Aa(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&uo.assertOptions(n,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean),legacyInterceptorReqResOrdering:q.transitional(q.boolean),advertiseZstdAcceptEncoding:q.transitional(q.boolean),validateStatusUndefinedResolves:q.transitional(q.boolean)},!1),r!=null&&(U.isFunction(r)?t.paramsSerializer={serialize:r}:uo.assertOptions(r,{encode:q.function,serialize:q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),uo.assertOptions(t,{baseUrl:q.spelling(`baseURL`),withXsrfToken:q.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&U.merge(i.common,i[t.method]);i&&U.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=W.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Ki;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[oo.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=oo.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Aa(this.defaults,e),Wi(Oa(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};U.forEach([`delete`,`get`,`head`,`options`],function(e){fo.prototype[e]=function(t,n){return this.request(Aa(n||{},{method:e,url:t,data:n&&U.hasOwnProp(n,`data`)?n.data:void 0}))}}),U.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Aa(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}fo.prototype[e]=t(),e!==`query`&&(fo.prototype[e+`Form`]=t(!0))});var po=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new da(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function mo(e){return function(t){return e.apply(null,t)}}function ho(e){return U.isObject(e)&&e.isAxiosError===!0}var go={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(go).forEach(([e,t])=>{go[t]=e});function _o(e){let t=new fo(e),n=er(fo.prototype.request,t);return U.extend(n,fo.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return _o(Aa(e,t))},n}var J=_o(ca);J.Axios=fo,J.CanceledError=da,J.CancelToken=po,J.isCancel=ua,J.VERSION=Wa,J.toFormData=zi,J.AxiosError=G,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=mo,J.isAxiosError=ho,J.mergeConfig=Aa,J.AxiosHeaders=W,J.formToJSON=e=>aa(U.isHTMLForm(e)?new FormData(e):e),J.getAdapter=io.getAdapter,J.HttpStatusCode=go,J.default=J;function vo(e,t,n=!1){return n?!!t.find(t=>t&&t.indexOf(`*`)&&RegExp(`^`+t.replace(/[-\/\\^$+?.()|[\]{}]/g,`\\$&`).replace(/\*/g,`.*`)+`$`,`g`).test(e)?!0:t==e):t.includes(e)}function yo(e,t){let n=``;return n=e.includes(`http://`)||e.includes(`https://`)?e:t+e,n=n.replace(/([^:]\/)\/+/g,`$1`),n}var bo={400:`请求错误`,400:`无效请求`,401:`未经授权`,402:`支付请求`,403:`拒绝访问`,404:`请求出错`,408:`请求超时`,422:`请求验证`,500:`响应错误`,501:`服务未实现`,502:`网络错误`,503:`服务不可用`,504:`网络超时`,505:`HTTP版本不受支持`},xo={400:`参数错误`,401:`没有权限,请变更请求`,402:`支付错误`,403:`检查请求域名是否添加了域名白名单`,404:`未找到该请求`,408:`网络异常,请检查网络设置`,422:`参数验证错误`,504:`请求超时,请刷新重试`,500:`请检查网络或服务器`};function So(e,t){e=parseInt(e);let n=`提示`,r=`请检查网络或联系管理员`;return bo[e]&&(n=bo[e]),xo[e]&&(r=xo[e]),{title:n,status:e,message:r}}function Co(e,t){let n=-1;return e.includes(`timeout`)||t.includes(`ECONNABORTED`)||e.includes(`request:fail timeout`)?n=504:e.includes(`Network Error`)||e.includes(`request:fail`)?n=408:e.includes(`Not Found`)?n=404:e.includes(`request:fail url not in domain list`)&&(n=403),n}var wo=class{constructor(e={}){this.flagMap=e.flagMap||{},this.flagAuth=e.flagAuth||{},this.flagCurr=``,this.baseURL=e.baseURL||``,this.baseMock=e.baseMock||``,this.requests=Object.assign({},e.requests||{}),this.requestTemp={},this.headers=Object.assign({},e.headers||{}),this.headerTemp={},this.configs=Object.assign({},e.configs||{}),this.configTemp={},this.customs=Object.assign({},e.customs||{}),this.customTemp={},this.encryptFlag=!1,this.retries=3,this.debugState=e.debug||!1,this.requestHandle=null,this._initReqHandle(e)}debugLog(){this.debugState}_initReqHandle(e){this.requestHandle=J.create({baseURL:this.baseURL,timeout:e.timeout||5e3,retry:2,retryDelay:1e3,headers:{"Content-Type":`application/json; charset=utf-8`,...this.headers},requests:{...this.requests}})}get interceptors(){return this.requestHandle.interceptors}setApiFlag(e){return this.flagMap=e||{},this}appendApiFlag(e){return this.flagMap=Object.assign({},this.flagMap,e||{}),this}setApiAuth(e){return this.flagAuth=e||{},this}appendApiAuth(e){return this.flagAuth=Object.assign({},this.flagAuth,e||{}),this}setDefHeaders(e){return this.headers=Object.assign({},this.headers,e||{}),this}setHeaders(e){return this.headerTemp=Object.assign({},this.headerTemp,e||{}),this}getHeaders(){return this.headers}setDefRequests(e){return this.requests=Object.assign({},this.requests,e||{}),this}setRequests(e){return this.requestTemp=Object.assign({},this.requestTemp,e||{}),this}setOptions(e={}){return this.configTemp=Object.assign({},this.configTemp,e||{}),this}setCustom(e){return this.customTemp=Object.assign({},this.customTemp,e||{}),this}setSignal(e){}encrypt(){return this.encryptFlag=!0,this}__encryp_parse(e){let t=!1;if(this.encryptURL&&vo(e,this.encryptURL,!0)&&(t=!0),this.encryptFlag&&(t=!0),t){let e=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(e)||e.indexOf(`Windows NT 6.0`)!==-1||e.indexOf(`Windows NT 6.1`)!==-1||e.indexOf(`Windows NT 6.2`)!==-1)&&(t=!1)}return t}cancelRequest(e){if(!e)return 0;let t=[],n=0;return t.forEach((t,r)=>{t.id===e&&(n++,t.request&&t.request.abort())}),n>0&&(t=t.filter(t=>t.id!==e)),n}__parse_method_type(e){return e}async apiAll(e,t,n){let r=yo(t,this.baseURL);this.__encryp_parse(t);let i=this.__parse_method_type(e),a=this.flagAuth[this.flagCurr]||null,o={};a&&(o=a.split(`,`).reduce((e,t)=>{let[n,r]=t.split(`=`);return e[n]=r,e},{}));let s=Object.assign({},this.headers,this.headerTemp,{}),c=Object.assign({},this.requests,this.requestTemp,n||{}),l=Object.assign({},this.configs,this.configTemp,{}),u=Object.assign({},this.customs,this.customTemp,{flag:this.flagCurr,auth:o,time:Math.floor(Date.now()/1e3)}),d={};if(i==`UPLOAD`)return this.requestHandle.request({url:r,method:`post`,data:n,...l,customs:u,headers:{...s,"Content-Type":`multipart/form-data`}});if(i!=`DOWNLOAD`)if(i==`MOCK`)try{let e=yo(t.includes(`.json`)?`${t}`:`${t}.json`,this.baseMock+`/`);return await this.requestHandle.get(e,{baseURL:``})}catch(e){let t=e.message;t.includes(`Unexpected token`)&&t.includes(`is not valid JSON`)&&(d.data={code:200,data:{}})}else return[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`].includes(i)?this.requestHandle.request({url:r,method:i,data:i===`GET`?void 0:c,params:i===`GET`?c:void 0,...l,customs:u,headers:s}):{}}flagMockPost(){let e=arguments;return this.unifyApi(`flag`,`MOCK`,e)}flagMockGet(){let e=arguments;return this.unifyApi(`flag`,`MOCK`,e)}urlMockPost(){let e=arguments;return this.unifyApi(`url`,`MOCK`,e)}urlMockGet(){let e=arguments;return this.unifyApi(`url`,`MOCK`,e)}flagGet(){let e=arguments;return this.unifyApi(`flag`,`GET`,e)}urlGet(){let e=arguments;return this.unifyApi(`url`,`GET`,e)}flagPost(){let e=arguments;return this.unifyApi(`flag`,`POST`,e)}urlPost(){let e=arguments;return this.unifyApi(`url`,`POST`,e)}flagPut(){let e=arguments;return this.unifyApi(`flag`,`PUT`,e)}urlPut(){let e=arguments;return this.unifyApi(`url`,`PUT`,e)}flagPatch(){let e=arguments;return this.unifyApi(`flag`,`PATCH`,e)}urlPatch(){let e=arguments;return this.unifyApi(`url`,`PATCH`,e)}flagDel(){let e=arguments;return this.unifyApi(`flag`,`DELETE`,e)}urlDel(){let e=arguments;return this.unifyApi(`url`,`DELETE`,e)}flagUpload(){let e=arguments;return this.unifyApi(`flag`,`UPLOAD`,e)}urlUpload(){let e=arguments;return this.unifyApi(`url`,`UPLOAD`,e)}flagUpImg(){let e=arguments;return this.unifyApi(`flag`,`UPLOAD`,e)}urlUpImg(){let e=arguments;return this.unifyApi(`url`,`UPLOAD`,e)}unifyApi(e,t,n){let r=this,i=n.length||0;if(i<=0||i>3){let e=`-- ${t} : 参数为(1-3)个---`;return new Promise((t,n)=>n({message:e}))}let a=``,o=``;if(e==`flag`){let e=n[0];typeof e==`string`&&(e||=``,a=e==``?``:this.flagMap[e]||``),o=` flag`+t+`:传入的标示 { ${e} },未匹配到 apiUrl `,this.flagCurr=e}if(e==`url`&&(a=n[0],typeof a==`string`&&(a||=``),o=` 未匹配到 apiUrl `),a==``)return new Promise((e,t)=>t({message:o}));if(i==1)return function(e){return r.apiAll(t,a,e)};if(i==2||i==3){let e={},o=n[1],s=Object.prototype.toString.call(o);if(s===`[object String]`||s===`[object Number]`){let t=String(o).trim();if(/^\d+$/.test(t)&&(a.endsWith(`/`)||(a+=`/`),a+=t),i==3){let t=n[2];Object.prototype.toString.call(t)===`[object Object]`&&(e=t||{})}}else s===`[object Object]`?e=o||{}:s===`[object FormData]`&&(e=o||new FormData);return r.apiAll(t,a,e)}else return new Promise((e,t)=>t({message:` 请求错误 `}))}},To=M(`cloudSdkCommonStore`,{state:()=>({loginBaseShow:!1,loadingShow:!1}),getters:{xxxxxx:e=>{}},actions:{init(){},SA_LOGIN_SHOW(e){this.loginBaseShow=e},SA_LOADING_SHOW(e){this.loadingShow=e}}}),Eo={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_LOAD_COMMOM_IP_PARAM_PUBLICLY:`base.base_load/common/ip_param_publicly`,BASE_LOAD_COMMON_SYS_INFO:`/base.base_load/common/system_info`,BASE_ACCSYS_COMMON_KEYCLIENT:`/base.account_sys/common/key_client`,BASE_SYS_COMMON_PLAT_SETTING:`/base.base_sys/common/plat_setting`,SDK_FILE_COMMON_UPLOAD_SIGNATURE:`/sdks.sdk_file/common/upload_signature`},Do={BASE_LOAD_COMMON_API_FLAG:`app:true;auth:false;encrypt:false;`,BASE_LOAD_COMMON_API_AUTH:`app:true;auth:false;encrypt:false;`,BASE_LOAD_COMMON_API_CODE:`app:true;auth:false;encrypt:false;`,BASE_LOAD_COMMOM_IP_PARAM_PUBLICLY:`app:true;auth:false;encrypt:false;`,BASE_LOAD_COMMON_SYS_INFO:`app:true;auth:false;encrypt:false;`,BASE_ACCSYS_COMMON_KEYCLIENT:`app:true;auth:false;encrypt:false;`,BASE_SYS_COMMON_PLAT_SETTING:`app:true;auth:false;encrypt:false;`,SDK_FILE_COMMON_UPLOAD_SIGNATURE:`app=true,token=true;encrypt:false;`},Oo={10001:`未登录`,10002:`token过期`,10009:`退出登录`,100101:`未经授权,请登录`,100102:`无效授权,请重新登录`,100103:`过期授权,请重新登录`,100109:`token错误`,100206:`角色错误`,13001:`eid 实名认证`,8002:`微信注册`};function ko(e){if(e.status&&e.status==401&&!i.__POWERED_BY_QIANKUN__){if(window.syCacheDialog401&&window.syCacheDialog401==`show`)return!1;if(e.code==100206)window.syCacheDialog401=`none`;else return window.syCacheDialog401=`show`,X().SA_ACCOUNT_LOGOUT(),Qn({title:`友情提示`,message:Oo[100101],confirmButtonText:`确定`,cancelButtonText:`取消`,showCancelButton:!1}).then(()=>{window.syCacheDialog401=`none`,location.href=`/login`}),!1}$n({title:(e.status?`[ ${e.status} ] `:``)+(e.title||`提示`),message:e.message,type:e.type,onClose:()=>{}})}var Ao=null;function jo(e={}){let{sdkConfigGet:t}=Ce(),n=t();Ao=new wo({baseMock:`/api_mock`,baseURL:n.syApiBaseUrl||``,headers:{"Content-Type":`application/json; charset=utf-8`,syOpenAppProject:n.syAppProjectSign||``,syOpenAppId:n.syAppConnectId||``,syOpenAppRole:n.syAppConnectRole||``,syOpenAppToken:B.localGet(`syCacheAppToken`)||``,"Sy-Client-Platform":`pc-web`,Authorization:`Bearer `+B.localGet(`syCacheAppJwt`)||``},requests:{},customs:{loading:!0,isFactory:!0}});let r=e&&e.INIT_API_FLAG||{},i=e&&e.INIT_API_AUTH||{},a=Object.assign({},Eo,r,n.syOpenApiFlag),o=Object.assign({},Do,i,n.syOpenApiAuth);Ao.setApiFlag(a),Ao.setApiAuth(o);let s=To(),c=X();return Ao.interceptors.request.use(e=>{let t=e.customs||{};if(t?.loading!=0&&s.SA_LOADING_SHOW(!0),B.localGet(`syCacheAppToken`)){if(c.SA_ACCOUNT_CHECK_EXPIRED())return Promise.reject({status:401,code:100103})}else if(t.auth&&t.auth.token==`true`)return t.showLogin&&s.SA_LOGIN_SHOW(!0),Promise.reject({status:401,code:100101});return e},e=>Promise.reject(e)),Ao.interceptors.response.use(e=>{s.SA_LOADING_SHOW(!1),e.config?.customs;let t=e.status||-1,n=e.data||{};return t==200&&t==200?(n.message&&(n.msg=n.message),Promise.resolve(n)):Promise.reject(e)},e=>{let t=e?.response||{},n=t.status||e?.status||-1,r=e?.code||``,i=e.message||t?.statusText||``;n==-1&&(n=Co(i,r));let a=e?.config?.customs?.flag||``,o=t.data||{},s=o.code||-1;s=parseInt(s);let c=o.error||o.message||`操作失败`,l=So(n,i),u={type:`error`,title:l.title,message:c||o.error||l.message||i,status:n,code:s,error:o.error,flag:a};return ko(u),Promise.reject(u)}),Ao}function Mo(){return Ao||=jo(),Ao}var Y=new Proxy({},{get(e,t){let n=Mo();return typeof n[t]==`function`?n[t].bind(n):n[t]}}),No=`syCacheAppInfo`,Po=`syCacheAppToken`,Fo=`syCacheAppJwt`,Io=`syCacheAppRbac`,Lo={staff_nickname:``,id:0,email:``,created_at:``,updated_at:``,identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:`十云`,account_mobile_show:`****`,account_avatar:n(),account_avatar_cdn:n(),business_name:``};function Ro(e){return Math.floor(Date.now()/1e3)>=e}var X=M(`cloudSdkAccountStore`,{state:()=>({account_nick:``,accountRbacData:[],accountInfo:B.localGet(No)||{},accountToken:B.localGet(Po)||``,accountJwt:B.localGet(Fo)||``}),getters:{cacheBizsId:e=>e.accountInfo?.business_id||0,staffId:e=>e.accountInfo?.staff_id||0,staffNick:e=>e.accountInfo?.staff_nick||``,cacheIsLogin:t=>{let n=t?.accountInfo?.token_time||0;return!!(e(t.accountToken)&&!Ro(n))},accountRole:e=>e.accountInfo?.identity,accountRules:e=>e.accountInfo.acc_rules_arr||[],accRoleIsAdmin:e=>e.accountInfo?.acc_rules_type==`sy-org-admin`,accInvitationCode:e=>e.accountInfo.invitation_code||``},actions:{async init(){let e=cvUtils.cc_url_get_params();e.token&&B.localSet(`ACC_TOKEN_CACHE_KEY`,e.token),await this.SA_ACCOUNT_RBAC_REFRESH(),this.cacheIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){B.localDel(Io)},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=B.localGet(Po)||``,!!e(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||``},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||``},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,B.localSet(Po,this.accountToken)},SA_ACCOUNT_CHECK_EXPIRED(e){return Ro(this?.accountInfo?.token_time||0)},SA_ACCOUNT_INFO_GET(){return B.localGet(No)},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{Y.flagGet(`BASE_ACCSYS_COMMON_INFO`,{}).then(({data:t})=>{t=this._SA_ACCOUNT_INFO_PARSE(t),e(t)}).catch(e=>{t(e)})})},SA_ACCOUNT_INFO_PARSE(e){return e||=Lo,re(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=ie(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=>{let n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await B.idbSetItem(No,n),B.localSet(No,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=B.localGet(No)||Lo,this.accountToken=B.localGet(Po)||``,this.accountJwt=B.localGet(Fo)||``,Y.setDefHeaders({syOpenAppToken:this.accountToken||``,Authorization:`Bearer `+this.accountJwt||``})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),B.localSet(No,e),B.localSet(Po,e.token_access||``),B.localSet(Fo,e.token_jwt||``),B.localSet(Io,``),await this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),Zn().QK_SEND_LOGIN_MSG()},async SA_ACCOUNT_LOGOUT(e){B.localDel(No),B.localDel(Po),B.localDel(Fo),B.localDel(Io),B.sessionClear(),Zn().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){if(e||=!1,!this.accountToken)return!1;let t=B.localGet(Io)||``;(e||t==``)&&await Y.flagGet(`ORG_SYS_BASE_MYRBAC`,{}).then(e=>{e.code==100600?this.SA_ACCOUNT_LOGOUT():e.code==0&&B.localSet(Io,e.data||``)})}}}),zo=`__syCacheApiFlag__`,Bo=`__syCacheApiAuth__`,Vo=`__syCacheApiCode__`,Ho=`__syCacheAppConfig__`,Uo=`__syCacheAppTheme__`,Wo=`__syCacheProjectConfig__`;async function Go(e){try{let t=document.querySelector(`link[rel*='icon']`);t||(t=document.createElement(`link`),t.rel=`shortcut icon`,document.head.appendChild(t)),t.href=e,t.type=`image/x-icon`}catch{}}var Ko=M(`cloudSdkInstanceStore`,{state:()=>({defaultInstInfo:{PLAT_LOGO_CDN:`https://10ui.cn/10yun-img/logo-nobg.png`,PLAT_TITLE:``,PLAT_SHORT:`shiyun`,PLAT_BRAND:`shiyun`,PLAT_VERSION:`v1.26.0101`,PLAT_LOGIN_BGIMG:``,PLAT_BEIAN:`闽ICP备18000673号`,PLAT_DOMAIN:`https://open.10yun.com/#`,BASE_DOMAIN:`10yun.com`},projectConfig:{},instanceAddons:[],instanceConfig:{},instanceTheme:{}}),getters:{cacheInstConfig:e=>e.instanceConfig,cacheInstInfo:e=>{let{sdkConfigGet:t}=Ce(),n=t(),r=n.syAppConnectRole||``,i={};window&&window.shiyunProductInfo&&(i=window.shiyunProductInfo||{});let a=e.instanceConfig||{},o=Object.assign({},e.defaultInstInfo,a,i),s=o.PLAT_TITLE||n.syProductTitle||`ShiyunProduct`,c=o?.PLAT_BRAND||`shiyun`,l=o?.PLAT_LOGO_CDN;l&&Go(l);let u=r.includes(`org-`)?`org`:`-`,d=r.includes(`org-`)?o.PLAT_LOGIN_BGIMG:null;return{LAST_IP_LOGO:l,LAST_IP_TITLE:s,LAST_IP_TYPE:u,LAST_IP_BRAND:c||s,LAST_IP_LOGIN_BGIMG:d,LAST_IP_BEIAN:o.info_beian,LAST_IP_VERSION:o.PLAT_VERSION,LAST_IP_DOMAIN:o.info_domain,LAST_BASE_DOMAIN:o.base_domain}}},actions:{async init(){await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_project_param(),await this.__load_inst_param()},async clear_cache(){await B.idbDelItem(zo),await B.idbDelItem(Bo),await B.idbDelItem(Wo),await B.idbDelItem(Ho),await B.idbDelItem(Uo)},async __load_api_flag(){let e=await B.idbGetItem(zo);re(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_FLAG`,{}).then(t=>{e=t.data||{},B.idbSetItem(zo,e)}),window&&(window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e)),await Y.appendApiFlag(e)},async __load_api_auth(){let e=await B.idbGetItem(Bo);re(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_AUTH`,{}).then(t=>{e=t.data||{},B.idbSetItem(Bo,e)}),window&&(window._SY_OPEN_API_AUTH_||(window._SY_OPEN_API_AUTH_={}),window._SY_OPEN_API_AUTH_=Object.assign(window._SY_OPEN_API_AUTH_,e)),await Y.appendApiAuth(e)},async __load_api_code(){let e=await B.idbGetItem(Vo);re(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_CODE`,{}).then(t=>{e=t.data||{},B.idbSetItem(Vo,e)})},async __load_project_param(){let e=await B.idbGetItem(Wo);re(e)?await Y.flagGet(`BASE_SYS_COMMON_PLAT_SETTING`,{}).then(({data:e})=>{this.projectConfig=Object.assign({},this.projectConfig,e),B.idbSetItem(Wo,this.projectConfig)}):this.projectConfig=e},async __load_inst_param(){let e=await B.idbGetItem(Ho);re(e)?await Y.flagPost(`BASE_LOAD_COMMOM_IP_PARAM_PUBLICLY`,{}).then(({data:e})=>{this.instanceConfig=Object.assign({},this.instanceConfig,e),B.idbSetItem(Ho,this.instanceConfig)}):this.instanceConfig=e},async __load_inst_decoration(){await B.idbGetItem(Uo)},async __load_license(){}}}),qo=`__system:keyboardConf`,Jo=`__system:clientVersion`,Yo=`__system:clientId`,Xo=`__syCacheApiKey__`,Zo=`__system:client__`,Qo={serverUrl:``,clientId:``,clientVersion:`v8`};function $o(){let e=B.localGet(Zo);return{...Qo,...e}}function es(e){B.localSet(Zo,e)}var ts=M(`cloudSdkSystemStore`,{state:()=>{let e=$o();return{sysServerUrl:e.serverUrl,sysClientInfo:{},sysClientId:e.clientId,sysClientVersion:e.clientVersion,clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,sysKeyboardConfig:{},apiKeyData:{},networkConnected:!0}},getters:{cachePlatform:e=>platform.get(),systemInfo:e=>({title:``,version:``})},actions:{async init(){await this.__check_version(),await Ko().init(),await this.__load_api_key(),this.SA_KEYBOARD_SET(),await Y.setHeaders({"Sy-Client-Platform":`pc-web`,"Sy-Client-Uuid":this.sysClientId,"Sy-Client-Id":this.sysClientId})},async clear_cache(){let e=B.localGet(qo);B.localSet(qo,e),await B.idbDelItem(`clearCache`)},async __check_version(){let e=B.localGet(Jo)||``,t=this.sysClientVersion||``;t!=e&&(B.localSet(Jo,t),await this.clear_cache(),await Ko().clear_cache())},async __load_api_key(){await B.idbGetString(Yo)||(this.sysClientId=cvUtils.randomString(6),this.saveAllSystemCache()),this.apiKeyData=await B.idbGetItem(Xo),this.apiKeyData||await Y.setOptions({encrypt:!1}).flagGet(`BASE_ACCSYS_COMMON_KEYCLIENT`,{client_id:this.sysClientId}).then(({data:e})=>{this.apiKeyData=e,B.idbSetItem(Xo,this.apiKeyData)})},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=B.localGet(qo);n||(B.localSet(qo,B.localGet(`__keyboard:data__`)),B.localDel(`__keyboard:data__`));let 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`,B.localSet(qo,r),this.sysKeyboardConfig=r,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,`.`))return;let n=`__ip`+e.substring(0,1)+`__`,r=B.localSet(n)[cvUtils.strGetMiddle(e,``,`.`)]||e;if(typeof r==`object`){typeof t==`function`&&t(r);return}let i={keyId:r||e};Y.setTimeout(8e3).flagGet(`BASE_LOAD_COMMON_SYS_INFO`,{ip:e}).then(()=>{B.localSet(n,i),typeof t==`function`&&t(r)})},SA_SERVER_URL_SET(e){this.sysServerUrl=e,this.saveAllSystemCache()},saveAllSystemCache(){es({serverUrl:this.sysServerUrl,clientId:this.sysClientId,clientVersion:this.sysClientVersion})}}});function ns(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function rs(){return window.innerHeight}function is(){return ns()-rs()>50?`landscape`:`portrait`}var as=ns(),os=rs(),ss=is();window&&window.process&&window.process?.type,window&&window.navigator&&/eeui/i.test(window.navigator.userAgent);var cs=M(`cloudSdkSysWinStore`,{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:`ontouchend`in document,windowWidth:as,windowHeight:os,windowOrientation:ss,windowLandscape:ss===`landscape`,windowPortrait:ss===`portrait`,formLabelPosition:as>576?`right`:`top`,formLabelWidth:as>576?`auto`:``,windowMax768:as<=768,winSizeName:``}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return+!!document.querySelector(`.electron-single-micro-apps`)},isPortrait(){return+!!document.querySelector(`.window-portrait`)},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}}}),ls=le({legacy:!1,locale:`zh`,fallbackLocale:`zh`,globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),us=ls.global;async function ds(e,t){let n=await t(e);us.setLocaleMessage(e,n),us.locale&&us.locale.value!==void 0?us.locale.value=e:us.locale=e}var fs=`__system:language__`;function ps(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||``).toLowerCase().trim()}function ms(e){return e?e.toLowerCase().trim():``}var hs=M(`cloudSdkLanguageStore`,{state:()=>({languageDefault:`zh`,languageName:B.localGet(`__system:language__`)||`zh`,languageList:[{name:`简体中文`,value:`zh`},{name:`简体中文`,value:`zh-cn`},{name:`繁體中文`,value:`zh-CHT`},{name:`Englishen`,value:`en`},{name:`한국어`,value:`ko`},{name:`日本語`,value:`ja`},{name:`Deutsch`,value:`de`},{name:`Indonesia`,value:`id`}]}),getters:{cacheLanguageType:e=>e.languageName},actions:{async init(){let e=ps()||`zh`;e=localStorage.getItem(`__system:language__`)||e;let t=cvUtils.cc_url_get_params();t.language&&(e=t.language),e=ms(e),Object.keys(this.languageList).includes(e)?this.languageName=e===`zh-cn`?`zh`:e:this.languageName=`zh`,localStorage.setItem(fs,this.languageName)},async clear_cache(){B.localSet(fs,`zh`)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(`__system:language__`)||`zh`,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,B.localSet(fs,e),us.locale.value=e}}}),gs=`__system:layout__`,_s=[{name:`风格1`,value:`layoutType1`},{name:`风格2`,value:`layoutType2`},{name:`风格3`,value:`layoutType3`},{name:`风格4`,value:`layoutType4`}],vs=[{name:`蓝黑`,value:`colorLanHei`},{name:`蓝白`,value:`colorLanBai`},{name:`绿黑`,value:`colorLvHei`},{name:`绿白`,value:`colorLvBai`},{name:`红黑`,value:`colorHongHei`}],ys=[{name:`跟随系统`,value:`auto`},{name:`明亮`,value:`light`},{name:`暗黑`,value:`dark`}],bs=[{name:`显示`,value:`openWatermark`},{name:`隐藏`,value:`hideWatermark`}],xs=[{name:`显示`,value:`openSidebar`},{name:`隐藏`,value:`hideSidebar`}],Ss=[{name:`显示`,value:`openNavtabs`},{name:`隐藏`,value:`hideNavtabs`}],Cs=`layoutType2`,ws=`colorLanHei`,Ts=`light`,Es=`openWatermark`,Ds=`openSidebar`,Os=`openNavtabs`,ks={layoutType:Cs,layoutColor:ws,layoutDarkMode:Ts,layoutNavTabs:Os,layoutSidebarState:Ds,layoutWatermarkState:Es};function Z(e,t,n){return e.map(e=>e.value).includes(t)?t:n}function As(e,t){if(!document?.querySelector)return;let n=document.documentElement;e.forEach(e=>{n.classList.remove(e.value)}),n.classList.add(t)}function js(){let e=B.localGet(gs),t={...ks,...e};return t.layoutType=Z(_s,t.layoutType,Cs),t.layoutSidebarState=Z(xs,t.layoutSidebarState,Ds),t.layoutNavTabs=Z(Ss,t.layoutNavTabs,Os),t.layoutWatermarkState=Z(bs,t.layoutWatermarkState,Es),t.layoutDarkMode=Z(ys,t.layoutDarkMode,Ts),t}function Ms(e){B.localSet(gs,e)}function Ns(){let e=typeof window<`u`&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`==`chrome`?`chrome`:`${e.match(/Webkit/i)}`==`webkit`?`webkit`:null}var Q=M(`cloudSdkThemesStore`,{state:()=>{let e=js();return{layoutDarkmodeList:ys,layoutColorList:vs,layoutType:e.layoutType,layoutColor:e.layoutColor,layoutDarkMode:e.layoutDarkMode,layoutNavTabs:e.layoutNavTabs,layoutSidebarState:e.layoutSidebarState,layoutWatermarkState:e.layoutWatermarkState}},getters:{cacheLayoutType:e=>e.layoutType,cacheLayoutColor:e=>e.layoutColor,cacheLayoutDarkMode:e=>e.layoutDarkMode,cacheLayoutSidebarState:e=>e.layoutSidebarState,cacheLayoutNavTabs:e=>e.layoutNavTabs,cacheLayoutWatermark:e=>e.layoutWatermarkState},actions:{async init(){[`auto`,`light`,`dark`].indexOf(this.layoutDarkMode);let e=cvUtils.cc_url_get_params();e.themes&&(this.layoutDarkMode=e.themes),this.SA_LAYOUT_TYPE_SET(this.layoutType),this.SA_LAYOUT_COLOR_SET(this.layoutColor),this.SA_LAYOUT_DARKMODE_SET(this.layoutDarkMode),this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.SA_LAYOUT_WATERMARK_SET(this.layoutWatermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.layoutWatermarkState=Z(bs,e,Es),As(bs,this.layoutWatermarkState),this.saveAllLayoutCache()},SA_LAYOUT_TYPE_SET(e){this.layoutType=Z(_s,e,Cs),this.layoutType==`layoutType4`||this.layoutType==`layoutType3`?(this.layoutSidebarState=`openSidebar`,this.layoutNavTabs=`hideNavtabs`):this.layoutNavTabs=`openNavtabs`,As(_s,this.layoutType),this.saveAllLayoutCache()},SA_LAYOUT_COLOR_SET(e){this.layoutColor=Z(vs,e,ws),As(vs,this.layoutColor),this.saveAllLayoutCache()},SA_LAYOUT_SLIDEBAR_SWITCH(){let e=`openSidebar`,t=this.layoutSidebarState===e?`hideSidebar`:e;this.SA_LAYOUT_SLIDEBAR_SET(t)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=Z(xs,e,Ds),As(xs,this.layoutSidebarState),this.saveAllLayoutCache()},SA_LAYOUT_NAVTABS_SET(e){i.__POWERED_BY_QIANKUN__&&(e=`hideNavtabs`),this.layoutNavTabs=Z(Ss,e,Os),As(Ss,this.layoutNavTabs),i.__POWERED_BY_QIANKUN__||this.saveAllLayoutCache()},SA_LAYOUT_DARKMODE_SET(e){let t=Z(ys,e,Ts);this.layoutDarkMode=t,t==`auto`?As(ys,window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`):As(ys,t),this.saveAllLayoutCache()},synchTheme(){if(!Ns()){__cc_isEEUiApp?P.warning(`仅Android设置支持主题功能`):P.warning(`仅客户端或Chrome浏览器支持主题功能`);return}},saveAllLayoutCache(){Ms({layoutType:this.layoutType,layoutColor:this.layoutColor,layoutDarkMode:this.layoutDarkMode,layoutNavTabs:this.layoutNavTabs,layoutSidebarState:this.layoutSidebarState,layoutWatermarkState:this.layoutWatermarkState})}}}),Ps=[{meta:{title:`登录`,isAlone:!0},isAlone:!0,name:`sdk_page_login`,path:`/login`,component:()=>import(`./login-CASVkTsd.js`)}],Fs=[{meta:{title:`不建议单独运行`,isAlone:!0},isAlone:!0,name:`sdk_page_alone`,path:`/alone`,component:()=>import(`./alone-Cg2fiIdZ.js`)},{meta:{title:`错误`,isAlone:!0},isAlone:!0,name:`sdk_page_404`,path:`/:catchAll(.*)`,component:()=>import(`./404-BAWDiC-U.js`)}],Is=[{meta:{title:`空页面`,isAlone:!1},isAlone:!1,name:`sdk_page_none`,path:`/none`,component:()=>import(`./none-B8w5qFdt.js`)}],Ls=M(`cloudSdkPermissionStore`,{state:()=>({originalRoutes:[],addRoutes:[],routeAlive:0,rbacArr:[]}),actions:{async init(e){e||=[],this.originalRoutes=e},async clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t||=``,t!=`console_passport`&&e.addRoute(...Ps),e.addRoute(...Fs),e.addRoute(...Is)},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),$=M(`cloudSdkProductStore`,{state:()=>({menuOriginal:[],menuBadge:{},menuHaveAllList:[],menuHaveModuleList:[],menuHaveModuleOpeneds:[],menuCurrModuleIdx:``,menuCurrModuleInfo:{},menuNavtabs:[]}),getters:{},actions:{async init(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_MENU_PARSE(){var e=[];let{checkPermission:t}=Mn();function n(i,a){let o=[];for(let s in i){let c=i[s];c=r(c,s),c.isMenu===!0&&(c.isRbac&&!c.path||(c.children&&c.children.length>0&&(c.children=n(c.children,a)),c.collapsable===!1&&e.push(c.name),t(c.name,a)&&o.push(c)))}return o}let i=n(JSON.parse(JSON.stringify(this.menuOriginal)),B.localGet(`syCacheAppRbac`)||``);return this.menuHaveAllList=i,this.menuHaveModuleOpeneds=e,i},SA_MENU_MODULE_SET(e){this.menuHaveModuleList=e},SA_MENU_MODULE_IDX_SET(e){this.menuCurrModuleIdx=e},SA_MENU_MODULE_INFO_SET(e){this.menuCurrModuleInfo=e||{}}}});function Rs(){return new Promise(async e=>{hs().clear_cache(),Q().clear_cache(),ts().clear_cache(),Ko().clear_cache(),X().clear_cache(),$().clear_cache(),B.idbSetItem(`cacheClearHandle`,`handle`).then(t=>{e()})})}function zs(){return{computed:{...N(Zn,[`qiankunExistState`]),...N(cs,[`windowWidth`,`windowHeight`,`windowActive`,`windowScrollY`,`windowTouch`,`windowLandscape`,`windowPortrait`,`formLabelPosition`]),...N(hs,[`cacheLanguageType`,`languageList`]),...N(Q,[`cacheLayoutType`,`cacheLayoutColor`,`cacheLayoutDarkMode`,`cacheLayoutNavTabs`,`cacheLayoutSidebarState`,`cacheLayoutWatermark`]),...N($,[`menuBadge`]),...N(ts,[`sysServerUrl`,`sysIsElectron`,`sysIsEEUiApp`,`sysIsSoftware`]),...N(X,[`cacheIsLogin`,`accountInfo`,`accountToken`,`accountRole`,`accountRbacData`,`accRoleIsAdmin`,`cacheBizsId`,`staffId`,`staffNick`]),...N(Ko,[`cacheInstInfo`,`cacheInstConfig`])},watch:{windowActive(e){}},mounted(){}}}var Bs={__name:`top-fold`,setup(e){function t(){Q().SA_LAYOUT_SLIDEBAR_SWITCH()}return(e,n)=>{let r=T(`cv-icons`);return b(),d(`div`,{class:`cloud-header__opt`,onClick:t},[e.cacheLayoutSidebarState==`openSidebar`?(b(),l(r,{key:0,type:`arrowFold`,size:`18`})):u(``,!0),e.cacheLayoutSidebarState==`hideSidebar`?(b(),l(r,{key:1,type:`arrowExpand`,size:`18`})):u(``,!0)])}}},Vs={__name:`top-refresh`,setup(e){function t(){Ls().SA_ROUTE_ALIVE_ADD()}return(e,n)=>{let r=T(`cv-icons`);return b(),d(`div`,{class:`cloud-header__opt`,onClick:t},[h(r,{type:`arrowRefreshRight`,size:`18`})])}}},Hs={data(){return{breadcrumbPath:[]}},watch:{$route(e){e.meta&&Array.isArray(e?.meta?.treeInfo)?this.breadcrumbPath=e.meta?.treeInfo:this.breadcrumbPath=[]}}},Us={class:`cloud-header__breadcrumb`};function Ws(e,t,n,r,i,a){let s=T(`el-breadcrumb-item`),c=T(`el-breadcrumb`);return b(),d(`div`,Us,[h(c,{separator:`/`},{default:A(()=>[(b(!0),d(o,null,C(i.breadcrumbPath,(e,t)=>(b(),d(o,null,[t==i.breadcrumbPath.length-1||!e.path||e.path==``?(b(),l(s,{key:t,class:`no-redirect`},{default:A(()=>[m(D(e.title),1)]),_:2},1024)):(b(),l(s,{key:`b`+t,to:{path:e.path}},{default:A(()=>[m(D(e.title),1)]),_:2},1032,[`to`]))],64))),256))]),_:1})])}var Gs=a(Hs,[[`render`,Ws]]),Ks={},qs={class:`cloud-laytpl-box`};function Js(e,t){let n=T(`el-aside`),r=T(`el-header`),i=T(`el-main`),a=T(`el-container`);return b(),d(`div`,qs,[h(a,{style:{height:`100%`}},{default:A(()=>[h(n,{class:`cloud-laytpl1-menu1`}),h(a,null,{default:A(()=>[h(r,{class:`cloud-laytpl-header`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var Ys=a(Ks,[[`render`,Js]]),Xs={},Zs={class:`cloud-laytpl-box`};function Qs(e,t){let n=T(`el-aside`),r=T(`el-header`),i=T(`el-main`),a=T(`el-container`);return b(),d(`div`,Zs,[h(a,{style:{height:`100%`}},{default:A(()=>[h(n,{class:`cloud-laytpl2-menu1`}),h(n,{class:`cloud-laytpl2-menu2`}),h(a,null,{default:A(()=>[h(r,{class:`cloud-laytpl-header`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var $s=a(Xs,[[`render`,Qs]]),ec={},tc={class:`cloud-laytpl-box`};function nc(e,t){let n=T(`el-header`),r=T(`el-aside`),i=T(`el-main`),a=T(`el-container`);return b(),d(`div`,tc,[h(a,{style:{height:`100%`,display:`flex`,"flex-direction":`column`}},{default:A(()=>[h(n,{class:`cloud-laytpl-header`}),h(a,null,{default:A(()=>[h(r,{class:`cloud-laytpl3-menu2`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var rc=a(ec,[[`render`,nc]]),ic={},ac={class:`cloud-laytpl-box`};function oc(e,t){let n=T(`el-header`),r=T(`el-main`),i=T(`el-container`);return b(),d(`div`,ac,[h(i,{style:{height:`100%`,display:`flex`,"flex-direction":`column`}},{default:A(()=>[h(n,{class:`cloud-laytpl-header`}),h(i,null,{default:A(()=>[h(r,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var sc=a(ic,[[`render`,oc]]),cc={},lc={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function uc(e,t){return b(),d(`svg`,lc,[...t[0]||=[f(`path`,{d:`M6.05 4.14l-.39-.39a.993.993 0 0 0-1.4 0l-.01.01a.984.984 0 0 0 0 1.4l.39.39c.39.39 1.01.39 1.4 0l.01-.01a.984.984 0 0 0 0-1.4zM3.01 10.5H1.99c-.55 0-.99.44-.99.99v.01c0 .55.44.99.99.99H3c.56.01 1-.43 1-.98v-.01c0-.56-.44-1-.99-1zm9-9.95H12c-.56 0-1 .44-1 .99v.96c0 .55.44.99.99.99H12c.56.01 1-.43 1-.98v-.97c0-.55-.44-.99-.99-.99zm7.74 3.21c-.39-.39-1.02-.39-1.41-.01l-.39.39a.984.984 0 0 0 0 1.4l.01.01c.39.39 1.02.39 1.4 0l.39-.39a.984.984 0 0 0 0-1.4zm-1.81 15.1l.39.39a.996.996 0 1 0 1.41-1.41l-.39-.39a.993.993 0 0 0-1.4 0c-.4.4-.4 1.02-.01 1.41zM20 11.49v.01c0 .55.44.99.99.99H22c.55 0 .99-.44.99-.99v-.01c0-.55-.44-.99-.99-.99h-1.01c-.55 0-.99.44-.99.99zM12 5.5c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6s-2.69-6-6-6zm-.01 16.95H12c.55 0 .99-.44.99-.99v-.96c0-.55-.44-.99-.99-.99h-.01c-.55 0-.99.44-.99.99v.96c0 .55.44.99.99.99zm-7.74-3.21c.39.39 1.02.39 1.41 0l.39-.39a.993.993 0 0 0 0-1.4l-.01-.01a.996.996 0 0 0-1.41 0l-.39.39c-.38.4-.38 1.02.01 1.41z`,fill:`currentColor`},null,-1)]])}var dc=a(cc,[[`render`,uc]]),fc={},pc={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function mc(e,t){return b(),d(`svg`,pc,[...t[0]||=[f(`path`,{d:`M11.01 3.05C6.51 3.54 3 7.36 3 12a9 9 0 0 0 9 9c4.63 0 8.45-3.5 8.95-8c.09-.79-.78-1.42-1.54-.95A5.403 5.403 0 0 1 11.1 7.5c0-1.06.31-2.06.84-2.89c.45-.67-.04-1.63-.93-1.56z`,fill:`currentColor`},null,-1)]])}var hc=a(fc,[[`render`,mc]]),gc={class:`cloud-darkmode-wrap`},_c={__name:`dark-mode`,props:{modelValue:{type:[Number,String],required:!0},modelModifiers:{}},emits:g([`change`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=O(e,`modelValue`),i=c(()=>{switch(r.value){case`light`:return`light-switch2`;case`auto`:return`auto-switch`;case`dark`:return`dark-switch`;default:return``}}),a=e=>{r.value=e,n(`change`,e)};return(e,t)=>{let n=T(`el-icon`);return b(),d(`div`,gc,[f(`div`,{class:v([`cloud-darkmode-box`,i.value])},[f(`div`,{class:`cloud-darkmode-item`,onClick:t[0]||=e=>a(`light`)},[h(n,{size:`14`},{default:A(()=>[h(dc)]),_:1})]),f(`div`,{class:`cloud-darkmode-item`,onClick:t[1]||=e=>a(`auto`)},[h(n,{size:`12`,style:{width:`15px`}},{default:A(()=>[...t[3]||=[m(`A`,-1)]]),_:1})]),f(`div`,{class:`cloud-darkmode-item`,onClick:t[2]||=e=>a(`dark`)},[h(n,{size:`14`},{default:A(()=>[h(hc)]),_:1})])],2)])}}},vc={class:`cloud-sett-drawer-body`},yc={class:`cloud-sett-drawer-skin`},bc={class:`cloud-sett-drawer-itembox`},xc={class:`cloud-sett-drawer-itembox`},Sc={class:`cloud-sett-drawer-itembox`},Cc={class:`cloud-sett-drawer-itembox`},wc={class:`cloud-sett-drawer-itembox`},Tc={class:`cloud-sett-drawer-itembox`},Ec={class:`cloud-sett-drawer-itembox`},Dc=Object.assign({name:`HeaderSysSettDrawer`,props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1}},watch:{modelVal(e){this.localVal=e}},methods:{frameTopSysSettClose(){this.localVal=!1,this.$emit(`update:modelValue`,this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand(`clearCache`)}}},{setup(e){let{layoutColorList:t}=ae(Q());function n(e){Q().SA_LAYOUT_TYPE_SET(e)}function r(e){Q().SA_LAYOUT_COLOR_SET(e)}function i(e){Q().SA_LAYOUT_DARKMODE_SET(e)}function a(e){Q().SA_LAYOUT_SLIDEBAR_SET(e)}function s(e){Q().SA_LAYOUT_NAVTABS_SET(e)}function c(e){hs().SA_LANGUAGE_SET(e)}return(e,u)=>{let p=T(`el-divider`),g=T(`el-option`),_=T(`el-select`),y=T(`el-switch`),x=T(`el-button`),S=T(`el-drawer`);return b(),l(S,{title:`系统设置`,modelValue:e.localVal,"onUpdate:modelValue":u[4]||=t=>e.localVal=t,direction:`rtl`,class:`cloud-sett-drawer-box`,size:`320px`,"before-close":e.frameTopSysSettClose},{default:A(()=>[f(`div`,vc,[h(p,null,{default:A(()=>[...u[5]||=[m(`布局切换`,-1)]]),_:1}),f(`div`,yc,[h(Ys,{class:v({active:e.cacheLayoutType==`layoutType1`}),onClick:u[0]||=e=>n(`layoutType1`)},null,8,[`class`]),h($s,{class:v({active:e.cacheLayoutType==`layoutType2`}),onClick:u[1]||=e=>n(`layoutType2`)},null,8,[`class`]),h(rc,{class:v({active:e.cacheLayoutType==`layoutType3`}),onClick:u[2]||=e=>n(`layoutType3`)},null,8,[`class`]),h(sc,{class:v({active:e.cacheLayoutType==`layoutType4`}),onClick:u[3]||=e=>n(`layoutType4`)},null,8,[`class`])]),h(p,null,{default:A(()=>[...u[6]||=[m(`界面设置`,-1)]]),_:1}),f(`div`,bc,[u[7]||=f(`div`,null,`主题颜色`,-1),h(_,{modelValue:e.cacheLayoutColor,placeholder:e.$t(`选项主题`),style:{width:`100px`},onChange:r},{default:A(()=>[(b(!0),d(o,null,C(te(t),(t,n)=>(b(),l(g,{label:e.$t(t.name),value:t.value,key:n},{default:A(()=>[m(D(e.$t(t.name)),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])]),f(`div`,xc,[u[8]||=f(`div`,null,`暗黑模式`,-1),f(`div`,null,[h(_c,{modelValue:e.cacheLayoutDarkMode,onChange:i},null,8,[`modelValue`])])]),f(`div`,Sc,[u[9]||=f(`div`,null,`侧栏显示`,-1),h(y,{modelValue:e.cacheLayoutSidebarState,"active-text":``,"inactive-text":``,"active-value":`openSidebar`,"inactive-value":`hideSidebar`,onChange:a},null,8,[`modelValue`])]),f(`div`,Cc,[u[10]||=f(`div`,null,`导航标签栏`,-1),h(y,{modelValue:e.cacheLayoutNavTabs,"active-text":``,"inactive-text":``,"active-value":`openNavtabs`,"inactive-value":`hideNavtabs`,onChange:s},null,8,[`modelValue`])]),h(p,null,{default:A(()=>[...u[11]||=[m(`其他设置`,-1)]]),_:1}),f(`div`,wc,[u[12]||=f(`div`,null,`语言`,-1),h(_,{modelValue:e.cacheLanguageType,placeholder:e.$t(`选项语言`),style:{width:`100px`},onChange:c},{default:A(()=>[(b(!0),d(o,null,C(e.languageList,(e,t)=>(b(),l(g,{label:e.name,value:e.value},{default:A(()=>[m(D(e.name),1)]),_:2},1032,[`label`,`value`]))),256))]),_:1},8,[`modelValue`,`placeholder`])]),f(`div`,Tc,[u[13]||=f(`div`,null,`版本`,-1),f(`div`,null,[h(x,{onClick:e.frameUpdateVersion,style:{width:`100px`}},{default:A(()=>[m(D(e.$t(`更新版本`)),1)]),_:1},8,[`onClick`])])]),f(`div`,Ec,[u[14]||=f(`div`,null,`缓存`,-1),f(`div`,null,[h(x,{onClick:e.frameClearCache,style:{width:`100px`}},{default:A(()=>[m(D(e.$t(`清除缓存`)),1)]),_:1},8,[`onClick`])])])])]),_:1},8,[`modelValue`,`before-close`])}}}),Oc={class:`cloud-login-change-wrap`},kc={class:`cloud-chainlayout__box`},Ac={class:`cloud-chainlayout__hd`},jc={class:`cloud-chainlayout__main`},Mc={class:`cloud-chainlayout__search`},Nc={class:`cloud-chaingroup__box`},Pc={class:`cloud-chaingroup__title`},Fc={class:`cloud-chaingroup__sublist`},Ic=[`onClick`],Lc={class:`cloud-chainone__left`},Rc={class:`cloud-chainone__icon`},zc=[`src`],Bc={class:`cloud-chainone__info`},Vc={class:`cloud-chainone__label1`},Hc={class:`cloud-chainone__label2`},Uc={class:`cloud-chainone__tag`},Wc={key:0,class:`cloud-chainone__tag`},Gc={key:1,class:`cloud-chainone__tag`},Kc={key:2,class:`cloud-chainone__tag`,style:{color:`red`}},qc={key:0,class:`cloud-chainone__selected`},Jc={class:`cloud-chainone__next`},Yc=Object.assign({name:`SwitchBusiness`,emits:[`refreshFunc`,`reselectFunc`,`selectFunc`],props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:`退出选择`},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.chainSearch()}},data(){return{isLoading:!1,chainKeyword:``,chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.chainSearch()},methods:{chainSearch(e){e||=``,this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){let t=e.filter(e=>{let t=this.chainKeyword.trim();return!t||e.business_name.toLowerCase().includes(t.toLowerCase())}).reduce((e,t)=>{let n=t.business_brand||``;return e[n]||(e[n]=[]),e[n].push(t),e},{}),n=[];for(let e in t)n.push({title:e,total:t[e].length||0,list:t[e]});return n.sort((e,t)=>e.title===``?-1:1),n},chainForceRefresh(){this.isLoading=!0,this.$emit(`refreshFunc`,!0,()=>{this.isLoading=!1})},chainReselection(){this.$emit(`reselectFunc`)},chainSelection(e){this.$emit(`selectFunc`,e)}}},{setup(e){return(t,n)=>{let r=T(`el-input`),i=T(`cv-icons`),a=T(`el-button`),s=E(`loading`);return b(),d(`div`,Oc,[f(`div`,kc,[f(`div`,Ac,[f(`div`,{class:`cloud-chainlayout__refresh`,onClick:n[0]||=(...e)=>t.chainForceRefresh&&t.chainForceRefresh(...e)},`刷新账号`),n[3]||=f(`div`,{class:`cloud-chainlayout__title`},`选择商户`,-1),f(`div`,{class:`cloud-chainlayout__reset`,onClick:n[1]||=(...e)=>t.chainReselection&&t.chainReselection(...e)},D(e.reselectTitle),1)]),j((b(),d(`section`,jc,[f(`div`,Mc,[h(r,{modelValue:t.chainKeyword,"onUpdate:modelValue":n[2]||=e=>t.chainKeyword=e,size:`large`,placeholder:`搜索商户名称`,clearable:``,style:{"max-width":`500px`},onInput:t.chainSearch},null,8,[`modelValue`,`onInput`]),h(a,{size:`large`,onClick:t.chainSearch},{default:A(()=>[h(i,{type:`actionSearch`}),n[4]||=m(` 搜索 `,-1)]),_:1},8,[`onClick`])]),f(`div`,Nc,[(b(!0),d(o,null,C(t.chainLastList,(e,r)=>(b(),d(`div`,{class:`cloud-chaingroup__item`,key:r},[f(`div`,Pc,D(e.title||`无`)+`(`+D(e.total)+`)`,1),f(`div`,Fc,[(b(!0),d(o,null,C(e.list,(e,r)=>(b(),d(`div`,{class:v([`cloud-chainone__box`,e.business_id==t.accountInfo.business_id?`is-active`:``]),key:r,onClick:n=>t.chainSelection(e)},[f(`div`,Lc,[f(`div`,Rc,[f(`img`,{src:e.business_icon_cdn},null,8,zc)])]),f(`div`,Bc,[f(`div`,Vc,D(e.business_name),1),f(`div`,Hc,[f(`div`,Uc,D(e.acc_rules_type_str),1),e.business_enabled==te(0)?(b(),d(`div`,Wc,[h(i,{type:`divLockOff2`,size:`10`}),n[5]||=f(`div`,null,`禁用`,-1)])):u(``,!0),e.business_verify_state==te(10)?(b(),d(`div`,Gc,[h(i,{type:`shieldCheck`,size:`10`}),n[6]||=f(`div`,null,`已认证`,-1)])):u(``,!0),e.business_verify_state==te(10)?u(``,!0):(b(),d(`div`,Kc,[h(i,{type:`shieldCross`,size:`10`}),n[7]||=f(`div`,null,`未认证`,-1)]))])]),e.business_id==t.accountInfo.business_id?(b(),d(`div`,qc,[...n[8]||=[f(`div`,null,`当前`,-1)]])):u(``,!0),f(`div`,Jc,[h(i,{type:`arrowRight`})])],10,Ic))),128))])]))),128))])])),[[s,t.isLoading]])])])}}}),Xc={name:`ChangePassword`,props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{},formRules:{old_pwd:[{required:!0,message:`请输入旧密码`}],new_pwd1:[{required:!0,message:`请输入新密码`}],new_pwd2:[{required:!0,message:`请重新输入新密码`}]}}},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(){let e=X();this.$request.flagPost(`BASE_PASSPORT_LOGOUT`,{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:`/login`})})},handleBeforeOk(){if(this.formData.new_pwd1!==this.formData.new_pwd2)return this.$message.error(`两次密码不一致`),!1;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)})}}},Zc={class:`dialog-footer`};function Qc(e,t,n,r,i,a){let o=T(`el-input`),s=T(`el-form-item`),c=T(`el-form`),u=T(`el-button`),d=T(`el-dialog`);return b(),l(d,{width:520,modelValue:i.visible,"onUpdate:modelValue":t[3]||=e=>i.visible=e,title:`修改密码`,"close-on-click-modal":!1,"close-on-press-escape":!1,onClose:a.handleCancel},{footer:A(()=>[f(`div`,Zc,[h(u,{onClick:a.handleCancel},{default:A(()=>[...t[4]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleBeforeOk},{default:A(()=>[...t[5]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])]),default:A(()=>[h(c,{model:i.formData,"label-width":`auto`},{default:A(()=>[h(s,{prop:`old_pwd`,label:`原密码`},{default:A(()=>[h(o,{type:`password`,"show-password":``,modelValue:i.formData.old_pwd,"onUpdate:modelValue":t[0]||=e=>i.formData.old_pwd=e},null,8,[`modelValue`])]),_:1}),h(s,{prop:`new_pwd1`,label:`新密码`},{default:A(()=>[h(o,{type:`password`,"show-password":``,modelValue:i.formData.new_pwd1,"onUpdate:modelValue":t[1]||=e=>i.formData.new_pwd1=e},null,8,[`modelValue`])]),_:1}),h(s,{prop:`new_pwd2`,label:`确认密码`},{default:A(()=>[h(o,{type:`password`,"show-password":``,modelValue:i.formData.new_pwd2,"onUpdate:modelValue":t[2]||=e=>i.formData.new_pwd2=e},null,8,[`modelValue`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`modelValue`,`onClose`])}var $c=a(Xc,[[`render`,Qc]]),el={key:0,class:`chopt-num`},tl={key:0,class:`chopt-num`},nl={class:`cloud-header__opt cloud-header__info`},rl=[`src`],il={class:`chinfo-infoname`},al={class:`chinfo-infobname`},ol={class:`chinfo-infouname`},sl=Object.assign({data(){return{frameHeadSysSettDia:!1,full_screen:!1,chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){return(this.accountInfo||{}).business_name||``},headerInfoNick(){let e=this.accountInfo||{};return e.staff_nick||e.account_mobile_hide||e.account_nick}},mounted(){cs().$subscribe((e,t)=>{t.windowWidth<1061?Q().SA_LAYOUT_SLIDEBAR_SET(`hideSidebar`):Q().SA_LAYOUT_SLIDEBAR_SET(`openSidebar`)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{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},async frameHandleCommand(e){let t=X();switch(e){case`msg`:this.$message.info(`应用暂未开通,敬请期待`);break;case`gongdan`:this.$message.info(`应用暂未开通,敬请期待`);break;case`account_change`:this.chainRefresh();break;case`account_chgpwd`:this.changeShowFlag=!0;break;case`clearCache`:this.$confirm(`你确定要清除缓存吗?`,`清除缓存`,{confirmButtonText:`确定`,cancelButtonText:`取消`,type:`warning`}).then(()=>{Rs().then(e=>{window.location.reload()})}).catch(e=>{});break;case`logout`:this.$confirm(`你确定要登出系统吗?`,`退出登录`,{confirmButtonText:`确定`,cancelButtonText:`取消`,type:`warning`}).then(()=>{this.$request.flagPost(`BASE_PASSPORT_LOGOUT`,{}).then(e=>{this.$message({message:`退出成功`,type:`success`})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:`/login`})})});break;default:this.$message.info(`应用暂未开通,敬请期待`);break}},chainRefresh(e,t){let n={};e===!0&&(n.isForceRefresh=1),this.$request.setOptions({timeout:1e4}).flagGet(`ORG_SYS_BASE_CHANGE`,n).then(e=>{this.chainShowFlag=!0,this.chainAccountList=e.data||[]}).finally(()=>{t&&typeof t==`function`&&t()})},chainReselection(){this.chainShowFlag=!1},chainSelection(e){if(e.acc_rules_type!=`sy-org-admin`&&e.acc_rules_type!=`sy-org-staff`)return``;this.$request.flagPost(`ORG_SYS_BASE_CHANGE`,{business_id:e.business_id||0}).then(async e=>{await X().SA_ACCOUNT_SIGNIN(e.data||{}),this.$message({type:`success`,message:`登入成功...`,duration:1e3}),location.reload()})}}},{__name:`top-opts`,setup(e){return(e,t)=>{let n=T(`cv-icons`),r=T(`el-dropdown-item`),i=T(`el-dropdown-menu`),a=T(`el-dropdown`);return b(),d(o,null,[f(`div`,{class:`cloud-header__opt chopt-relative`,onClick:t[0]||=t=>e.frameHandleCommand(`msg`)},[h(n,{type:`bubbleLineType1`,size:`16`}),e.chatUnreadTotal>0?(b(),d(`em`,el,D(e.chatUnreadTotal>99?`99+`:e.chatUnreadTotal),1)):u(``,!0)]),f(`div`,{class:`cloud-header__opt chopt-relative`,onClick:t[1]||=t=>e.frameHandleCommand(`gongdan`)},[h(n,{type:`envelopeType`,size:`16`}),e.emailUnreadTotal>0?(b(),d(`em`,tl,D(e.emailUnreadTotal>99?`99+`:e.emailUnreadTotal),1)):u(``,!0)]),f(`div`,nl,[h(a,{onCommand:e.frameHandleCommand,"popper-class":`cloud-header__info_dropdown`},{dropdown:A(()=>[h(i,null,{default:A(()=>[h(r,{command:`account_center`},{default:A(()=>[h(n,{type:`graphNode`,size:`14`}),t[7]||=m(` 个人中心 `,-1)]),_:1}),h(r,{command:`account_change`},{default:A(()=>[h(n,{type:`peopleOptsSwitch`,size:`16`}),t[8]||=m(` 切换账号 `,-1)]),_:1}),h(r,{command:`account_chginfo`},{default:A(()=>[h(n,{type:`fileReport`,size:`15`}),t[9]||=m(` 基本资料 `,-1)]),_:1}),h(r,{command:`account_chgpwd`},{default:A(()=>[h(n,{type:`viewLockOff2`,size:`16`}),t[10]||=m(` 修改密码 `,-1)]),_:1}),h(r,{command:`clearCache`,divided:``},{default:A(()=>[h(n,{type:`actionDelete`,size:`15`}),t[11]||=m(` 清除缓存 `,-1)]),_:1}),h(r,{command:`logout`},{default:A(()=>[h(n,{type:`actionSwitch`,size:`15`}),t[12]||=m(` 退出登录 `,-1)]),_:1})]),_:1})]),default:A(()=>[f(`span`,null,[f(`img`,{class:`chinfo-avatar`,src:e.accountInfo.account_avatar_cdn,title:`头像`},null,8,rl),f(`div`,il,[f(`div`,al,D(e.headerInfoName),1),f(`div`,ol,D(e.headerInfoNick),1)]),h(n,{type:`arrowDown`})])]),_:1},8,[`onCommand`])]),f(`div`,{title:`全屏`,class:`cloud-header__opt`,onClick:t[2]||=(...t)=>e.frameFullScreen&&e.frameFullScreen(...t)},[e.full_screen?u(``,!0):(b(),l(n,{key:0,type:`arrowScreenUnfold`,size:`16`})),e.full_screen?(b(),l(n,{key:1,type:`arrowScreenFold`,size:`16`})):u(``,!0)]),f(`div`,{title:`设置`,class:`cloud-header__opt`,onClick:t[3]||=(...t)=>e.frameTopSysSettOpen&&e.frameTopSysSettOpen(...t)},[h(n,{type:`actionSetting`,size:`16`})]),h(Dc,{modelValue:e.frameHeadSysSettDia,"onUpdate:modelValue":t[4]||=t=>e.frameHeadSysSettDia=t},null,8,[`modelValue`]),h($c,{modelValue:e.changeShowFlag,"onUpdate:modelValue":t[5]||=t=>e.changeShowFlag=t},null,8,[`modelValue`]),e.chainShowFlag?(b(),l(Yc,{key:0,modelValue:e.chainAccountList,"onUpdate:modelValue":t[6]||=t=>e.chainAccountList=t,reselectTitle:`取消切换`,onRefreshFunc:e.chainRefresh,onReselectFunc:e.chainReselection,onSelectFunc:e.chainSelection,style:{background:`#fff`,"z-index":`1005`}},null,8,[`modelValue`,`onRefreshFunc`,`onReselectFunc`,`onSelectFunc`])):u(``,!0)],64)}}}),cl={name:`MenuGroup`,props:{mode:{type:[String],default:`vertical`}},data(){return{activeName:null}},computed:{...N($,[`menuHaveAllList`])},watch:{$route(e,t){this.parseActiveName(e)}},created(){this.parseActiveName(this.$route)},async mounted(){await this.$nextTick(()=>{let e=this.menuHaveAllList.find(e=>e.name==this.activeName);this.handleOpenGroup(e)})},methods:{parseActiveName(e){if(e?.meta?.treeInfo){let t=e.meta.treeInfo,n=t.length-1;for(let r=n;r>=0;r--)t[r].isMenu==1&&(this.activeName=t[r].name||e.name)}},handleOpen(e,t){},handleClose(e,t){},handleOpenGroup(e){e&&(this.activeName=e.name||``,$().SA_MENU_MODULE_SET(e.children),$().SA_MENU_MODULE_IDX_SET(e.children?.[0]?.name))}}};function ll(e,t,n,r,i,a){let s=T(`cv-mask-svg`),c=T(`cv-badge`),p=T(`el-menu-item`),m=T(`el-menu`);return b(),l(m,{ref:`refMenuGroup`,class:`cloud-menu-group-box`,mode:n.mode,"default-active":i.activeName,onOpen:a.handleOpen,onClose:a.handleClose},{default:A(()=>[(b(!0),d(o,null,C(e.menuHaveAllList,(t,n)=>(b(),l(p,{class:`cloud-menu-group-item`,index:t.name,key:t.name,onClick:e=>a.handleOpenGroup(t)},{title:A(()=>[t.meta.icon?(b(),l(s,{key:0,name:t.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,D(t.meta.short||t.meta.title),1)]),default:A(()=>[t.meta.badge&&e.currBadge(t.meta.badge)?(b(),d(o,{key:0},[e.currBadge(t.meta.badge)>0?(b(),l(c,{key:0,class:`menu-badge`,type:`danger`,max:999,value:e.currBadge(t.meta.badge),style:y(e.badgeStyle)},null,8,[`value`,`style`])):u(``,!0)],64)):u(``,!0)]),_:2},1032,[`index`,`onClick`]))),128))]),_:1},8,[`mode`,`default-active`,`onOpen`,`onClose`])}var ul=a(cl,[[`render`,ll]]),dl={name:`MenuItem`,props:{menuData:{type:Array,default(e){return[]}},isChildren:{type:[Boolean],default:!1}},data(){return{}},computed:{badgeStyle(){return this.cacheLayoutSidebarState==`hideSidebar`?`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)}}};function fl(e,t,n,r,i,a){let s=T(`cv-mask-svg`),c=T(`MenuItem`,!0),p=T(`el-sub-menu`),m=T(`cv-badge`),g=T(`el-menu-item`);return b(!0),d(o,null,C(n.menuData,e=>(b(),d(o,null,[e.isMenu==1?(b(),d(o,{key:0},[e.children&&e.children.length>0&&e.children_menu_num>0?(b(),l(p,{key:e.name,index:e.name},{title:A(()=>[e.meta.icon?(b(),l(s,{key:0,name:e.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,D(e.meta.title),1)]),default:A(()=>[h(c,{menuData:e.children,isChildren:``},null,8,[`menuData`])]),_:2},1032,[`index`])):(b(),l(g,{index:e.name,key:`c`+e.name,onClick:t=>a.handleOpenMenu(e)},{title:A(()=>[e.meta.icon?(b(),l(s,{key:0,name:e.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,D(e.meta.short||e.meta.title),1)]),default:A(()=>[e.meta.badge&&a.currBadge(e.meta.badge)?(b(),d(o,{key:0},[a.currBadge(e.meta.badge)>0?(b(),l(m,{key:0,class:`menu-badge`,type:`danger`,max:999,value:a.currBadge(e.meta.badge),style:y(a.badgeStyle)},null,8,[`value`,`style`])):u(``,!0)],64)):u(``,!0)]),_:2},1032,[`index`,`onClick`]))],64)):u(``,!0)],64))),256)}var pl=a(dl,[[`render`,fl]]),ml={name:`MenuModule`,props:{mode:{type:[String],default:`vertical`}},data(){return{activeName:``}},computed:{...N($,[`menuHaveAllList`,`menuHaveModuleOpeneds`,`menuHaveModuleList`,`menuCurrModuleIdx`]),currCollapse(){return this.cacheLayoutSidebarState==`hideSidebar`},menuHaveCurr(){if(this.cacheLayoutType==`layoutType1`)return this.menuHaveAllList||[];if(this.cacheLayoutType==`layoutType2`||this.cacheLayoutType==`layoutType3`)return this.menuHaveModuleList||[];if(this.cacheLayoutType==`layoutType4`)return this.menuHaveAllList||[]}},watch:{$route(e,t){this.parseActiveName(e)},menuCurrModuleIdx(e){}},created(){this.parseActiveName(this.$route)},methods:{parseActiveName(e){if(e?.meta?.treeInfo){let t=e.meta.treeInfo,n=t.length-1;for(let r=n;r>=0;r--)t[r].isMenu==1&&t[r].isPage==1&&(this.activeName=t[r].name||e.name)}$().SA_MENU_MODULE_IDX_SET(this.activeName)},handleOpen(e,t){},handleClose(e,t){}}},hl=Object.assign(ml,{setup(e){return(t,n)=>{let r=T(`el-menu`);return b(),l(r,{class:`cloud-menu-module-box`,mode:e.mode,collapse:t.currCollapse,"default-openeds":t.menuHaveModuleOpeneds,"default-active":t.activeName,onOpen:t.handleOpen,onClose:t.handleClose},{default:A(()=>[h(pl,{menuData:t.menuHaveCurr},null,8,[`menuData`])]),_:1},8,[`mode`,`collapse`,`default-openeds`,`default-active`,`onOpen`,`onClose`])}}}),gl=e=>e**3,_l=e=>e<.5?gl(e*2)/2:1-gl((1-e)*2)/2,vl={name:`MenuNavTabs`,data(){return{tabList:[],activeName:`index`,contextMenuVisible:!1,menuX:0,menuY:0,currentMenuIndex:0,isDisableLeft:!1,isDisableRight:!1,scrollStep:300,scrollDuration:500}},computed:{scrollWrap(){return this.$refs.navScroll?.wrap||null}},watch:{$route:{handler(e){let{name:t,path:n,meta:r}=e;if(this.activeName=t,this.tabList.some(e=>e.name===t)){this.$nextTick(()=>this.scrollToActiveTag());return}this.tabList.push({title:r.title||`未知页面`,path:n,name:t}),this.$nextTick(()=>this.scrollToActiveTag())},immediate:!0},contextMenuVisible(e){e?document.addEventListener(`click`,this.hideContextMenu):document.removeEventListener(`click`,this.hideContextMenu)}},beforeDestroy(){document.removeEventListener(`click`,this.hideContextMenu)},methods:{scrollAnimate(e){let t=this.scrollWrap;if(!t)return;let n=t.scrollLeft,r=e-n,i=Date.now(),a=window.requestAnimationFrame||(e=>setTimeout(e,16)),o=()=>{let s=(Date.now()-i)/this.scrollDuration;s<1?(t.scrollLeft=n+r*_l(s),a(o)):t.scrollLeft=e};a(o)},scrollLeft(){let e=this.scrollWrap;e&&this.scrollAnimate(e.scrollLeft-this.scrollStep)},scrollRight(){let e=this.scrollWrap;e&&this.scrollAnimate(e.scrollLeft+this.scrollStep)},scrollToActiveTag(){let e=document.getElementById(`active-tag`),t=this.scrollWrap;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.left<n.left||r.right>n.right)&&e.scrollIntoView({behavior:`smooth`,inline:`center`})},switchTab(e){this.$route.path!==e.path&&this.$router.replace(e.path)},async closeTab(e,t){if(e.path!==`/index`){if(this.$route.meta.close_tip)try{await this.$confirm(`将要关闭正在编辑的页面,是否继续?`,`提示`,{confirmButtonText:`确定`,cancelButtonText:`取消`,type:`warning`})}catch{return}if(this.tabList.splice(t,1),this.tabList.length===0){this.$router.push(`/index`);return}if(e.name===this.activeName){let e=this.tabList[t]||this.tabList[t-1];this.$router.replace(e.path)}}},handleContextMenu(e,t,n){e.preventDefault(),this.contextMenuVisible=!0,this.currentMenuIndex=n,this.menuX=e.clientX,this.menuY=e.clientY,this.isDisableLeft=n<=0,this.isDisableRight=n>=this.tabList.length-1},hideContextMenu(){this.contextMenuVisible=!1},reloadCurrentTab(){this.hideContextMenu(),this.$router.replace({path:this.$route.fullPath,query:{...this.$route.query,_t:Date.now()}})},closeAllTab(){this.hideContextMenu();let e=this.tabList[0];this.tabList=[e],this.$router.replace(e.path)},closeLeftTab(){this.hideContextMenu();let e=this.currentMenuIndex;this.tabList=this.tabList.slice(e)},closeRightTab(){this.hideContextMenu();let e=this.currentMenuIndex;this.tabList=this.tabList.slice(0,e+1)},closeOtherTab(){this.hideContextMenu();let e=this.tabList[this.currentMenuIndex],t=this.tabList[0];this.tabList=this.tabList.filter(n=>n===t||n.name===e.name),this.$router.replace(e.path)}}},yl={class:`cloud-navtabs__wrap`},bl={class:`cloud-navtabs__box`},xl={class:`cloud-navtabs__main`},Sl={class:`cloud-navtabs__tags`};function Cl(e,t,n,r,i,a){let s=T(`cv-icons`),c=T(`cv-btn-base`),u=T(`el-tag`),p=T(`el-scrollbar`),g=T(`cv-btn-text`);return b(),d(`div`,yl,[f(`div`,bl,[h(c,{class:`btn-opt-left`,onClick:a.scrollLeft},{default:A(()=>[h(s,{type:`arrowLeft`})]),_:1},8,[`onClick`]),f(`div`,xl,[h(p,{ref:`navScroll`},{default:A(()=>[f(`div`,Sl,[(b(!0),d(o,null,C(i.tabList,(e,t)=>(b(),l(u,{key:e.name,class:v([`tag xxxxxx-tag`,{active:i.activeName===e.name}]),id:i.activeName===e.name?`active-tag`:``,closable:e!==i.tabList[0],"disable-transitions":``,onClick:t=>a.switchTab(e),onClose:n=>a.closeTab(e,t),onContextmenu:ne(n=>a.handleContextMenu(n,e,t),[`prevent`])},{default:A(()=>[m(D(e.title),1)]),_:2},1032,[`class`,`id`,`closable`,`onClick`,`onClose`,`onContextmenu`]))),128))])]),_:1},512)]),h(c,{class:`btn-opt-right`,onClick:a.scrollRight},{default:A(()=>[h(s,{type:`arrowRight`})]),_:1},8,[`onClick`]),h(c,{class:`btn-opt-close`,onClick:t[0]||=e=>i.contextMenuVisible=!i.contextMenuVisible},{default:A(()=>[t[1]||=m(` 关闭操作 `,-1),h(s,{type:`arrowCaretBottom`})]),_:1}),j(f(`div`,{class:`cloud-navtabs__contextmenu`,style:y({left:`${i.menuX}px`,top:`${i.menuY}px`})},[h(g,{onClick:a.reloadCurrentTab},{default:A(()=>[...t[2]||=[m(`重新加载`,-1)]]),_:1},8,[`onClick`]),h(g,{onClick:a.closeAllTab},{default:A(()=>[...t[3]||=[m(`关闭所有`,-1)]]),_:1},8,[`onClick`]),h(g,{onClick:a.closeLeftTab,disabled:i.isDisableLeft},{default:A(()=>[...t[4]||=[m(`关闭左边`,-1)]]),_:1},8,[`onClick`,`disabled`]),h(g,{onClick:a.closeRightTab,disabled:i.isDisableRight},{default:A(()=>[...t[5]||=[m(`关闭右边`,-1)]]),_:1},8,[`onClick`,`disabled`]),h(g,{onClick:a.closeOtherTab},{default:A(()=>[...t[6]||=[m(`关闭其他`,-1)]]),_:1},8,[`onClick`])],4),[[k,i.contextMenuVisible]])])])}var wl=a(vl,[[`render`,Cl]]),Tl={data(){return{watemarkText:`shiyun`}},computed:{watemarkConf(){let e=this.cacheInstInfo.LAST_IP_BRAND||``,t=X().accountInfo||null;return t&&t.account_mobile_hide&&(e=t.business_name+t.account_mobile_hide),{content:e,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.cacheLayoutDarkMode==`dark`?`rgba(255, 255, 255, .15)`:`rgba(0, 0, 0, .15)`}}};function El(e,t,n,r,i,a){let o=T(`el-watermark`);return b(),l(o,_(a.watemarkConf,{style:{height:`100%`}}),{default:A(()=>[w(e.$slots,`default`)]),_:3},16)}var Dl=a(Tl,[[`render`,El]]),Ol={props:{className:``},data(){return{routeRefreshAnimation:``,routeRefreshNum:0}},computed:{...N(Ls,[`routeAlive`])},watch:{routeAlive(e){this.routeRefreshAnimation=`subapp-slide-right`,this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=``})}},methods:{}};function kl(e,t,n,r,i,a){let o=T(`router-view`);return b(),l(o,{key:i.routeRefreshNum},{default:A(({Component:e,route:t})=>[h(s,{name:i.routeRefreshAnimation,mode:`out-in`,appear:``},{default:A(()=>[(b(),d(`div`,{class:v(n.className),key:t.path},[(b(),l(ee(e)))],2))]),_:2},1032,[`name`])]),_:1})}var Al=a(Ol,[[`render`,kl]]),jl={style:{display:`flex`,flex:`1`,overflow:`hidden`}},Ml={class:`cloud-sidebar__title`},Nl=Object.assign({computed:{frameWatermark(){return this.cacheLayoutWatermark==`hideWatermark`?{width:0,height:0}:{}},frameSiderMenu(){if(this.cacheLayoutType==`layoutType1`)return{width:this.cacheLayoutSidebarState==`openSidebar`?`180px`:`80px`};if(this.cacheLayoutType==`layoutType2`)return{"border-right":this.cacheLayoutSidebarState==`openSidebar`?`1px solid var(--frame-border-color)`:`none`,width:this.cacheLayoutSidebarState==`openSidebar`?`180px`:0};if(this.cacheLayoutType==`layoutType3`)return{"border-right":this.cacheLayoutSidebarState==`openSidebar`?`1px solid var(--frame-border-color)`:`none`,width:this.cacheLayoutSidebarState==`openSidebar`?`180px`:`80px`}}}},{__name:`console`,setup(e){return(e,t)=>{let n=T(`el-aside`),r=T(`el-container`);return b(),l(Dl,{style:y(e.frameWatermark)},{default:A(()=>[e.cacheLayoutType==`layoutType1`?(b(),l(r,{key:0,direction:`horizontal`,style:{height:`100%`}},{default:A(()=>[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:A(()=>[h(Gn),h(hl)]),_:1},8,[`style`]),h(r,{direction:`vertical`},{default:A(()=>[h(Ln,{style:{"--el-header-height":`50px`,position:`unset`}},{default:A(()=>[h(Bs),h(Vs),h(Gs),t[0]||=f(`div`,{class:`cloud-header__seat`},null,-1),h(sl)]),_:1}),j(h(wl,null,null,512),[[k,e.cacheLayoutNavTabs==`openNavtabs`]]),h(Al,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType2`?(b(),l(r,{key:1,direction:`horizontal`,style:{height:`100%`}},{default:A(()=>[h(n,{class:`cloud-menu-group-aside`},{default:A(()=>[h(Gn),h(ul),t[1]||=f(`div`,{style:{height:`20px`}},null,-1)]),_:1}),f(`div`,jl,[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:A(()=>[f(`div`,Ml,D(e.cacheInstInfo.LAST_IP_TITLE),1),h(hl)]),_:1},8,[`style`]),h(r,{direction:`vertical`},{default:A(()=>[h(Ln,{style:{"--el-header-height":`50px`,position:`unset`}},{default:A(()=>[h(Bs),h(Vs),h(Gs),t[2]||=f(`div`,{class:`cloud-header__seat`},null,-1),h(sl)]),_:1}),j(h(wl,null,null,512),[[k,e.cacheLayoutNavTabs==`openNavtabs`]]),h(Al,{className:`cloud-pages__box`})]),_:1})])]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType3`?(b(),l(r,{key:2,direction:`vertical`,style:{height:`100%`}},{default:A(()=>[h(Ln,null,{default:A(()=>[h(Gn),h(n,{class:`cloud-menu-group-aside`},{default:A(()=>[h(ul,{mode:`horizontal`})]),_:1}),t[3]||=f(`div`,{style:{width:`100px`}},null,-1),h(Vs),h(sl)]),_:1}),h(r,{direction:`horizontal`,style:{height:`calc(100% - 50px)`}},{default:A(()=>[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:A(()=>[h(hl)]),_:1},8,[`style`]),h(Al,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType4`?(b(),l(r,{key:3,direction:`vertical`,style:{height:`100%`}},{default:A(()=>[h(Ln,null,{default:A(()=>[h(Gn),h(n,{class:`cloud-menu-group-aside`},{default:A(()=>[h(hl,{mode:`horizontal`})]),_:1}),t[4]||=f(`div`,{style:{width:`100px`}},null,-1),h(Vs),h(sl)]),_:1}),h(r,{direction:`horizontal`,style:{height:`calc(100% - 50px)`}},{default:A(()=>[h(Al,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0)]),_:1},8,[`style`])}}}),Pl={emits:[`handleCallback`,`close`],props:{limit:{type:[String,Number],default:1},initData:{type:[String,Number],default:``}},data(){return{isLoading:!0,leftFilterText:``,leftTreeProps:{children:`children`,label:`label`},leftTreeList:[],imageList:[],activeImageState:{},activeImageUrl:[],imageTextEditState:{},imgPageCurr:1,imgPageSize:21,imgPageTotal:0,upAction:``,upFileList:[]}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},mounted(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.label.indexOf(e)!==-1:!0},leftClickNode(e){},initLeftData(){this.$request.flagGet(`SDK_FILE_ORG_FILE_LOG_GROUP`,{}).then(e=>{let t=e.data||[];this.leftTreeList=[{label:`全部图片`}];for(let e in t)this.leftTreeList.push({label:t[e].filelog_sign||`无`});this.isLoading=!1}),this.isLoading=!1},initRightData(){this.$request.flagGet(`SDK_FILE_ORG_FILE_LOG`,{page:this.imgPageCurr,pagesize:this.imgPageSize}).then(e=>{this.imageList=e.data||[],this.imgPageTotal=e.total||0,this._initImageState()})},handleConfirm(e){e(),this.$emit(`handleCallback`,this.activeImageUrl),this.$emit(`close`)},handleClose(){this.$emit(`close`)},handleClickImage(e,t){let n=e.filelog_id,r=e.filelog_full_path,i=e.cdn_full_path;for(let e in this.activeImageUrl)if(r==this.activeImageUrl[e].save_full_path){this.activeImageUrl.splice(e,1),this.activeImageState[t]=!1;return}if(this.activeImageUrl.length+1>this.limit)return this.$message.error(`超出数量`+this.limit),!1;this.activeImageUrl.push({filelog_id:n,save_full_path:r,cdn_full_path:i}),this.activeImageState[t]=!0},badgeValue(e){let t=this.activeImageUrl.findIndex(t=>t.filelog_id===e);return t===-1?0:t+1},handleSizeChange(e){},handleCurrentChange(e){this.imgPageCurr=e,this.initRightData()},upHandleRemove(e,t){},upHandlePreview(e){},handleClickEditImageText(e){this.imageTextEditState[e]=!this.imageTextEditState[e]},_initImageState(){let e=String(this.initData).split(`,`).map(e=>e.trim());for(let t in this.imageList){let n=this.imageList[t];this.imageTextEditState[t]=!1,this.activeImageState[t]=!1,this.initData&&e.includes(String(n.filelog_id))&&this.handleClickImage(n,t)}}}},Fl={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},Il={style:{width:`100%`,height:`500px`}},Ll={class:`cloud-dia-choice-box`},Rl={class:`cloud-dia-choice-left`},zl={class:`cloud-dia-choice-right`},Bl={class:`cloud-dia-right-tools`},Vl={class:`cloud-dia-right-list`},Hl=[`src`,`onClick`],Ul={class:`cloud-dia-right-item_text`},Wl={key:1},Gl={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function Kl(e,t,n,r,i,a){let s=T(`el-input`),c=T(`el-tree`),u=T(`cv-btn-base`),p=T(`el-upload`),g=T(`cv-select-tree`),_=T(`el-badge`),y=T(`cv-icons`),x=T(`el-pagination`),S=E(`loading`);return j((b(),d(`div`,Fl,[f(`div`,Il,[f(`section`,Ll,[f(`section`,Rl,[t[1]||=f(`div`,{class:`cloud-dia-left-title`},`类别`,-1),h(s,{class:`cloud-dia-left-filter`,modelValue:i.leftFilterText,"onUpdate:modelValue":t[0]||=e=>i.leftFilterText=e,placeholder:`请搜索`,clearable:``},null,8,[`modelValue`]),h(c,{ref:`refDiaSelectLeft`,class:`cloud-dia-left-tree`,data:i.leftTreeList,props:i.leftTreeProps,"default-expand-all":``,"filter-node-method":a.leftFilterNode,onNodeClick:a.leftClickNode},null,8,[`data`,`props`,`filter-node-method`,`onNodeClick`])]),f(`section`,zl,[f(`div`,Bl,[h(p,{class:`dialog-choice-image-upload`,action:i.upAction,"on-preview":a.upHandlePreview,"on-remove":a.upHandleRemove,"show-file-list":!1,"file-list":i.upFileList},{default:A(()=>[h(u,{type:`primary`},{default:A(()=>[...t[2]||=[m(`上传图片`,-1)]]),_:1})]),_:1},8,[`action`,`on-preview`,`on-remove`,`file-list`]),h(u,{type:`primary`,disabled:i.activeImageUrl.length===0},{default:A(()=>[...t[3]||=[m(`使用选中图片`,-1)]]),_:1},8,[`disabled`]),h(u,{type:`danger`,disabled:i.activeImageUrl.length===0},{default:A(()=>[...t[4]||=[m(`删除图片`,-1)]]),_:1},8,[`disabled`]),h(g,{dataField:i.leftTreeProps,dataLists:i.leftTreeList,placeholder:`图片移动至`,style:{"margin-left":`10px`,width:`160px`}},null,8,[`dataField`,`dataLists`])]),f(`div`,Vl,[(b(!0),d(o,null,C(i.imageList,(e,t)=>(b(),d(`div`,{class:`cloud-dia-right-item`,key:t},[h(_,{class:v(a.badgeValue(e.filelog_id)==0&&`isshowBadge`),value:a.badgeValue(e.filelog_id)},{default:A(()=>[f(`img`,{class:v(i.activeImageState[t]&&`active`),src:e.cdn_full_path,alt:``,onClick:n=>a.handleClickImage(e,t)},null,10,Hl)]),_:2},1032,[`class`,`value`]),f(`div`,Ul,[i.imageTextEditState[t]?(b(),l(s,{key:0,label:`文本输入`,modelValue:e.filelog_full_name,"onUpdate:modelValue":t=>e.filelog_full_name=t},null,8,[`modelValue`,`onUpdate:modelValue`])):(b(),d(`p`,Wl,D(e.filelog_full_name),1)),h(y,{type:`actionEdit`,onClick:e=>a.handleClickEditImageText(t)},null,8,[`onClick`])])]))),128))]),h(x,{background:``,onSizeChange:a.handleSizeChange,onCurrentChange:a.handleCurrentChange,"current-page":i.imgPageCurr,"page-size":i.imgPageSize,layout:`total, prev, pager, next, jumper`,total:i.imgPageTotal},null,8,[`onSizeChange`,`onCurrentChange`,`current-page`,`page-size`,`total`])])])]),f(`div`,Gl,[h(u,{onClick:a.handleClose},{default:A(()=>[...t[5]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:A(()=>[...t[6]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[S,i.isLoading]])}var ql=a(Pl,[[`render`,Kl]]),Jl={name:`SdkManageImage`,emits:[`update:modelValue`,`update:initValue`],props:{modelValue:{type:[String,Array,Number],default:``},initValue:{type:[String,Array,Number],default:``},showBig:{type:[Boolean],default:!1},multiple:{type:[Boolean],default:!1},limit:{type:[String,Number],default:1}},data(){return{localValue:``,localInitVal:``}},watch:{modelValue(e){this.localValue=e||``},initValue(e){this.localInitVal=e||``},localValue(e){this.$emit(`update:modelValue`,e)},localInitVal(e){this.$emit(`update:initValue`,e)}},mounted(){this.localValue=this.modelValue||``,this.localInitVal=this.initValue||``},created(){},methods:{handleDiaImage(e){this.$cvDialogRender(ql,{title:`选择图片`,width:`1100px`},{limit:this.multiple?this.limit:1,initData:this.localValue},{handleCallback:e=>{if(this.multiple){let t=[],n=[];for(let r in e){let i=e[r];t.push(i.filelog_id),n.push(i.cdn_full_path),this.localValue=t.join(`,`),this.localInitVal=n}}else{let t=e[0];this.localValue=t.filelog_id,this.localInitVal=t.cdn_full_path}}}).show()}}},Yl={style:{display:`flex`,"flex-direction":`column`,gap:`10px`}};function Xl(e,t,n,r,i,a){let o=T(`cv-btn-base`),s=T(`cv-upload-image`);return b(),d(`view`,Yl,[h(o,{onClick:a.handleDiaImage,style:{width:`150px`}},{default:A(()=>[...t[2]||=[m(`选择图片`,-1)]]),_:1},8,[`onClick`]),h(s,{showBig:n.showBig,multiple:n.multiple,limit:n.limit,modelValue:i.localValue,"onUpdate:modelValue":t[0]||=e=>i.localValue=e,initValue:i.localInitVal,"onUpdate:initValue":t[1]||=e=>i.localInitVal=e},null,8,[`showBig`,`multiple`,`limit`,`modelValue`,`initValue`])])}var Zl=a(Jl,[[`render`,Xl]]),Ql={style:{"font-size":`12px`}},$l={style:{color:`red`,"font-weight":`bold`}},eu={style:{"white-space":`pre-line`,"word-break":`break-word`,"line-height":`1.5`,padding:`10px`}},tu=Object.assign({name:`SdkFormEdit`,props:{modelValue:{type:[Object],default:()=>({})},fieldsList:{type:[Array],default:()=>[]}},data(){return{formRules:{},formData:{},miaoToShichang:{}}},watch:{modelValue(e){this.formData=e},formData:{handler(e,t){this.$emit(`update:modelValue`,e),this.parseData()},deep:!0}},created(){this.formData=this.modelvalue||{}},methods:{parseData(){for(let e in this.fieldsList){let t=this.fieldsList[e];t.field_form_type==`input_second`&&this.$watch(`formData.${t.field_form_key}`,e=>{this.miaoToShichang[t.field_form_key]=cvUtils.secondsFormat(e)}),t.field_form_default&&(this.formData[t.field_form_key]=this.formData[t.field_form_key]||t.field_form_default)}}}},{setup(e){return(t,n)=>{let r=T(`cv-input-text`),i=T(`cv-input-number`),a=T(`cv-input-digit`),s=T(`cv-textarea`),c=T(`cv-radio-opt-base`),g=T(`cv-radio-group`),_=T(`cv-checkbox-opt-base`),v=T(`cv-checkbox-group`),y=T(`cv-form-item`),x=T(`cv-form-base`);return b(),l(x,{ref:`refFormBase`,rules:t.formRules,model:t.formData},{default:A(()=>[(b(!0),d(o,null,C(e.fieldsList,(e,x)=>(b(),l(y,{key:x,label:e.field_form_label,required:e.field_form_require==`on`},p({default:A(()=>[e.field_form_type==`input_text`?(b(),l(r,{key:0,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},null,8,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`input_number`?(b(),l(i,{key:1,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},null,8,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`input_digit`?(b(),l(a,{key:2,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},{append:A(()=>[...n[0]||=[m(`元`,-1)]]),_:1},8,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`input_second`?(b(),d(o,{key:3},[h(i,{modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},null,8,[`modelValue`,`onUpdate:modelValue`]),f(`span`,Ql,[n[1]||=m(` 计算为 `,-1),f(`span`,$l,`:`+D(t.miaoToShichang[e.field_form_key]),1)])],64)):u(``,!0),e.field_form_type==`textarea_base`?(b(),l(s,{key:4,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},null,8,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`encryption`?(b(),d(o,{key:5},[h(s,{modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},null,8,[`modelValue`,`onUpdate:modelValue`]),n[2]||=f(`div`,{style:{color:`#999`,"font-size":`12px`}},`加密字段配置后,下次呈现加密内容,请自行保存加密原数据`,-1)],64)):u(``,!0),e.field_form_type==`radio_switch`?(b(),l(g,{key:6,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},{default:A(()=>[h(c,{label:`开启`,value:`on`},{default:A(()=>[...n[3]||=[m(`开启`,-1)]]),_:1}),h(c,{label:`关闭`,value:`off`},{default:A(()=>[...n[4]||=[m(`关闭`,-1)]]),_:1})]),_:1},8,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`radio_base`?(b(),l(g,{key:7,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},{default:A(()=>[(b(!0),d(o,null,C(e.field_form_option,(e,t)=>(b(),l(c,{key:t,value:e.value},{default:A(()=>[m(D(e.label),1)]),_:2},1032,[`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`checkbox_base`?(b(),l(v,{key:8,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n},{default:A(()=>[(b(!0),d(o,null,C(e.field_form_option,(e,t)=>(b(),l(_,{key:t,label:e.label,value:e.value},{default:A(()=>[m(D(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`upload_image`?(b(),l(Zl,{key:9,modelValue:t.formData[e.field_form_key],"onUpdate:modelValue":n=>t.formData[e.field_form_key]=n,initValue:t.formData[e.field_form_key+`_CDN`],"onUpdate:initValue":n=>t.formData[e.field_form_key+`_CDN`]=n},null,8,[`modelValue`,`onUpdate:modelValue`,`initValue`,`onUpdate:initValue`])):u(``,!0)]),_:2},[e.field_form_tip?{name:`tip`,fn:A(()=>[f(`div`,eu,D(e.field_form_tip),1)]),key:`0`}:void 0]),1032,[`label`,`required`]))),128))]),_:1},8,[`rules`,`model`])}}}),nu={emits:[`handleCallback`,`close`],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:``,leftTreeProps:{children:`tree`,label:`cat_name`},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet(`GOODS_SYS_BUS_GOODS_ALL`),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.cat_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({cat_id:e.cat_id||0,keyword:this.rightSoData.key_goods_name||``})},initLeftData(){this.$request.flagGet(`GOODS_SYS_BUS_SETT_CATEGORY`,{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success(`已选择:`+e.goods_name),this.$emit(`handleCallback`,e),this.is_one_close&&this.$emit(`close`)},handleConfirm(e){e(),this.$emit(`close`)},handleClose(){this.$emit(`close`)}}},ru={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},iu={style:{width:`100%`,height:`500px`}},au={class:`cloud-dia-choice-box`},ou={class:`cloud-dia-choice-left`},su={class:`cloud-dia-choice-right`},cu={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function lu(e,t,n,r,i,a){let o=T(`el-input`),s=T(`el-tree`),c=T(`cv-input-text`),l=T(`cv-form-item`),u=T(`cv-btn-base`),p=T(`cv-form-inline`),g=T(`cvTbColumnCheck`),_=T(`cvTbColumnText`),v=T(`cvTbColumnImg`),y=T(`cv-btn-text`),x=T(`cvTbColumnOpt`),S=T(`cvTableBase`),C=E(`loading`);return j((b(),d(`div`,ru,[f(`div`,iu,[f(`section`,au,[f(`section`,ou,[t[4]||=f(`div`,{class:`cloud-dia-left-title`},`分类`,-1),h(o,{class:`cloud-dia-left-filter`,modelValue:i.leftFilterText,"onUpdate:modelValue":t[0]||=e=>i.leftFilterText=e,placeholder:`请搜索`,clearable:``},null,8,[`modelValue`]),h(s,{ref:`refDiaSelectLeft`,class:`cloud-dia-left-tree`,data:i.leftTreeList,props:i.leftTreeProps,"default-expand-all":``,"filter-node-method":a.leftFilterNode,onNodeClick:a.leftClickNode},null,8,[`data`,`props`,`filter-node-method`,`onNodeClick`])]),f(`section`,su,[h(p,{ref:`refFormBase`,rules:i.rightSoRules,model:i.rightSoData},{default:A(()=>[h(l,{label:`商品搜索`},{default:A(()=>[h(c,{modelValue:i.rightSoData.key_goods_name,"onUpdate:modelValue":t[1]||=e=>i.rightSoData.key_goods_name=e,placeholder:`请输入商品名称,关键字`},null,8,[`modelValue`])]),_:1}),h(l,null,{default:A(()=>[h(u,{svg:`actionSearch`,type:`primary`,onClick:t[2]||=t=>e.$refs.refDiaSelectTb.searchSubmit(i.rightSoData)},{default:A(()=>[...t[5]||=[m(` 搜索 `,-1)]]),_:1}),h(u,{svg:`arrowRefreshLeft`,onClick:t[3]||=t=>(i.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit())},{default:A(()=>[...t[6]||=[m(` 重置 `,-1)]]),_:1})]),_:1})]),_:1},8,[`rules`,`model`]),h(S,{ref:`refDiaSelectTb`,tableConfig:i.tableConfig,tableRefresh:i.tableRefresh,height:`390`},{default:A(()=>[h(g,{label:`选择`}),h(_,{label:`商品分类`,prop:`cat_name`}),h(v,{label:`封面图`,prop:`goods_thumb_cdn`}),h(_,{label:`商品ID`,prop:`goods_id`}),h(_,{label:`商品名称`,prop:`goods_name`}),h(_,{label:`商品售价`,prop:`goods_price_market`}),h(_,{label:`扩展ID`,prop:`goods_expand_id`}),h(x,{label:`操作`,width:`100`},{default:A(({row:e,$index:n})=>[h(y,{onClick:t=>a.handleSelect(e)},{default:A(()=>[...t[7]||=[m(`选择`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`tableConfig`,`tableRefresh`])])])]),f(`div`,cu,[h(u,{onClick:a.handleClose},{default:A(()=>[...t[8]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:A(()=>[...t[9]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[C,i.isLoading]])}var uu=a(nu,[[`render`,lu]]),du={emits:[`handleCallback`,`close`],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:``,leftTreeProps:{children:`tree`,label:`dept_name`},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet(`ORG_SYS_BASE_STAFF`),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.dept_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({dept_id:e.dept_id||0,keyword:this.rightSoData.key_staff_name||``})},initLeftData(){this.$request.flagGet(`ORG_SYS_BASE_DEPT`,{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success(`已选择:`+e.staff_name),this.$emit(`handleCallback`,e),this.is_one_close&&this.$emit(`close`)},handleConfirm(e){e(),this.$emit(`close`)},handleClose(){this.$emit(`close`)}}},fu={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},pu={style:{width:`100%`,height:`500px`}},mu={class:`cloud-dia-choice-box`},hu={class:`cloud-dia-choice-left`},gu={class:`cloud-dia-choice-right`},_u={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function vu(e,t,n,r,i,a){let o=T(`el-input`),s=T(`el-tree`),c=T(`cv-input-text`),l=T(`cv-form-item`),u=T(`cv-btn-base`),p=T(`cv-form-inline`),g=T(`cvTbColumnCheck`),_=T(`cvTbColumnText`),v=T(`cvTbColumnImg`),y=T(`cv-btn-text`),x=T(`cvTbColumnOpt`),S=T(`cvTableBase`),C=E(`loading`);return j((b(),d(`div`,fu,[f(`div`,pu,[f(`section`,mu,[f(`section`,hu,[t[4]||=f(`div`,{class:`cloud-dia-left-title`},`部门`,-1),h(o,{class:`cloud-dia-left-filter`,modelValue:i.leftFilterText,"onUpdate:modelValue":t[0]||=e=>i.leftFilterText=e,placeholder:`请搜索`,clearable:``},null,8,[`modelValue`]),h(s,{ref:`refDiaSelectLeft`,class:`cloud-dia-left-tree`,data:i.leftTreeList,props:i.leftTreeProps,"default-expand-all":``,"filter-node-method":a.leftFilterNode,onNodeClick:a.leftClickNode},null,8,[`data`,`props`,`filter-node-method`,`onNodeClick`])]),f(`section`,gu,[h(p,{ref:`refFormBase`,rules:i.rightSoRules,model:i.rightSoData},{default:A(()=>[h(l,{label:`名称`},{default:A(()=>[h(c,{modelValue:i.rightSoData.key_staff_name,"onUpdate:modelValue":t[1]||=e=>i.rightSoData.key_staff_name=e},null,8,[`modelValue`])]),_:1}),h(l,null,{default:A(()=>[h(u,{svg:`actionSearch`,type:`primary`,onClick:t[2]||=t=>e.$refs.refDiaSelectTb.searchSubmit(i.rightSoData)},{default:A(()=>[...t[5]||=[m(` 搜索 `,-1)]]),_:1}),h(u,{svg:`arrowRefreshLeft`,onClick:t[3]||=t=>(i.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit())},{default:A(()=>[...t[6]||=[m(` 重置 `,-1)]]),_:1})]),_:1})]),_:1},8,[`rules`,`model`]),h(S,{ref:`refDiaSelectTb`,tableConfig:i.tableConfig,tableRefresh:i.tableRefresh,height:`390`},{default:A(()=>[h(g,{label:`选择`}),h(_,{label:`ID`,prop:`staff_id`,width:`80`}),h(_,{label:`名称`,prop:`staff_name`}),h(v,{label:`头像`,prop:`staff_avatar_cdn`}),h(_,{label:`部门`,prop:`dept_name`}),h(_,{label:`角色`,prop:`role_name`}),h(_,{label:`性别`,prop:`staff_sex`,width:`60`}),h(x,{label:`操作`,width:`100`},{default:A(({row:e,$index:n})=>[h(y,{onClick:t=>a.handleSelect(e)},{default:A(()=>[...t[7]||=[m(`选择`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`tableConfig`,`tableRefresh`])])])]),f(`div`,_u,[h(u,{onClick:a.handleClose},{default:A(()=>[...t[8]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:A(()=>[...t[9]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[C,i.isLoading]])}var yu=a(du,[[`render`,vu]]);(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.passive=!1),this.func(t,n,r)}}})();var bu={methods:{jumpsXieyi(e){let{sdkConfigData:t}=Ce(),n=``;n=t.syApiBaseUrl+`base.base_sys/show_agreement/`+e+`.html`,n=n+`?syOpenAppProject=`+t.syAppProjectSign,n=n+`&syOpenAppId=`+t.syAppConnectId,window.open(n)},jumpsBack(){this.$router.go(-1)},jumpsReload(){Ls().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(e=>e)},jumpsAuth(e,t){this.$router.push({path:e||`/`,query:t||{}}).catch(e=>e)},jumpsQiankun(e){Kn(e)}}};function xu(e,t){e.mixin(bu)}var Su={name:`zh-cn`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`确定`,clear:`清空`,defaultLabel:`颜色选择器`,description:`当前颜色 {color},按 Enter 键选择新颜色`,alphaLabel:`选择透明度的值`,alphaDescription:`透明度 {alpha}, 当前颜色 {color}`,hueLabel:`选择色相值`,hueDescription:`色相 {hue}, 当前颜色 {color}`,svLabel:`选择饱和度与明度的值`,svDescription:`饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}`,predefineDescription:`选择 {value} 作为颜色`},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:`请选择`},mention:{loading:`加载中`},dropdown:{toggleDropdown:`切换下拉选项`},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:`合计`,selectAllLabel:`选择所有行`,selectRowLabel:`选择当前行`,expandRowLabel:`展开当前行`,collapseRowLabel:`收起当前行`,sortLabel:`按 {column} 排序`,filterLabel:`按 {column} 过滤`},tag:{close:`关闭此标签`},tour:{next:`下一步`,previous:`上一步`,finish:`结束导览`,close:`关闭此对话框`},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}`},inputOTP:{groupLabel:`一次性密码输入框`,defaultLabel:`请输入第 {index} 位 OTP 字符`}}};function Cu(e){e.use(oe,{locale:Su});for(let[t,n]of Object.entries(ue))e.component(`ElIcon`+t,n)}var wu=`__syCacheAppConfig__`;async function Tu(e){let t=await B.idbGetItem(wu),n={signatureFn:Y.flagPost(`SDK_FILE_COMMON_UPLOAD_SIGNATURE`),upHeaders:{...Y.getHeaders(),"Sy-Client-Platform":`pc-web`,"Sy-Response-Type":`json`},upResponseFn(e,t,n){return e}};e.use(de,{imageManage:{cat_url:``,file_url:``,upload_url:``,delete_api:``},geo:{mapKey:t?.map_key||``,mapSecret:t?.map_secret||``},cvCodeSms:{apiFunc:Y.flagPost(`SDK_SMS_COMMON_SMS_SEND`)},cvUploadImage:{...n},upload:{...n},cvEditorQuill:{},cvEditorMarkdown:{}})}async function Eu(e,t){let{sdkConfigSet:n}=Ce();n({...t}),jo(e),hs().init(),Q().init(),await ts().init(),await X().init()}async function Du(e,t,n,r,i=``,a=null){let o=e.config.globalProperties;$().init(r),Ls().init(n),o.$request=Y,o.$cache=B,Cu(e),await Tu(e),Pn(e,o),e.mixin(zs()),e.component(`SdkFormEdit`,tu),e.component(`SdkManageImage`,Zl),xu(e,o),await Ou(t,r,i),e.use(ls),ds(hs().SA_LANGUAGE_GET(),a),window.$t=us.t}async function Ou(e,t,n){let{sdkConfigData:r}=Ce(),{checkRoute:a}=Mn(),o=Zn(),s=X(),c=$(),l=Ls();o.QK_SEND_MSG_REG_SUBMENU(t);let u=r.syProductSign||``;l.SA_PERMS_ROUTER_ADD(e,u),c.SA_MENU_PARSE(),o.QK_SEND_MSG_ROUTER_BEFORE(n);let d=!1,f=!1,p=!1;e.beforeEach((e,t)=>{let n=e.path||``,r=t.path,l=e.query||{},u=s.cacheIsLogin;if(i.__POWERED_BY_QIANKUN__&&(u=s.SA_ACCOUNT_IS_LOGGED()),l.token,u){if(d||=(c.SA_MENU_PARSE(),!0),r==`/`&&n==`/none`){if(a({name:`index`}))return{path:`/`}}else if(!a(e))return{path:`/none`,replace:!0};return(r==`/login`||r==`/index`)&&(f||(o.QK_SEND_LOGIN_MSG(),f=!0,p=!1)),[`/login`,`/alone`].includes(n)?{path:`/`}:void 0}else return c.SA_MENU_PARSE(),d=!1,p||=(o.QK_SEND_LOGOUT_MSG(),f=!1,!0),[`/login`,`/alone`].includes(n)?void 0:{path:`/login`,replace:!0}}),e.isReady().then(async()=>{}),e.afterEach(function(e,t){if(e?.meta?.title&&!i.__POWERED_BY_QIANKUN__){let t=r.VITE_SY_PRODUCT_TITLE||`管理系统`,n=e.meta.title;document.title=n?`${n} - ${t}`:`${t}`}})}async function ku(e,t,n){i.__POWERED_BY_QIANKUN__,i.__POWERED_BY_QIANKUN__?Xn(e,t,n):t()}export{B as C,xe as E,Mn as S,ve as T,ts as _,uu as a,jo as b,Al as c,Rs as d,$ as f,cs as g,hs as h,yu as i,Dl as l,Q as m,Eu as n,ql as o,Ls as p,Du as r,Nl as s,ku as t,Yc as u,X as v,Ce as w,Zn as x,Y as y};
|