@10yun/open-sdk 0.3.148 → 0.3.150

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +0,0 @@
1
- import{i as e,n as t,o as n,r,t as i}from"./helper-BfWlu743.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.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 ee,resolveComponent as w,resolveDirective as te,resolveDynamicComponent as ne,toDisplayString as T,unref as E,useModel as D,vShow as re,withCtx as O,withDirectives as k,withModifiers as A}from"vue";import{cc_is_empty as ie,parseNumber as ae}from"@10yun/cv-js-utils";import{defineStore as j,mapState as M,storeToRefs as oe}from"pinia";import se,{ElMessage as ce,ElMessageBox as le,ElNotification as ue}from"element-plus";import{createI18n as de}from"vue-i18n";import*as fe from"@element-plus/icons-vue";import pe from"@10yun/cv-pc-ui";var me=Object.create,he=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,_e=Object.getOwnPropertyNames,ve=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,be=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),xe=(e,t)=>{let n={};for(var r in e)he(n,r,{get:e[r],enumerable:!0});return t||he(n,Symbol.toStringTag,{value:`Module`}),n},Se=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_e(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ye.call(e,s)&&s!==n&&he(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ge(t,s))||r.enumerable});return e},Ce=(e,t,n)=>(n=e==null?{}:me(ve(e)),Se(t||!e||!e.__esModule?he(n,`default`,{value:e,enumerable:!0}):n,e)),we=S({});function Te(){return{sdkConfigData:x(we.value),sdkConfigSet:(e={})=>{we.value=JSON.parse(JSON.stringify(e))},sdkConfigGet:()=>x(we.value),sdkConfigReset:()=>{we.value={}}}}var Ee=3600*24*7,De=class{constructor(e){this.prefix=e.prefix||``,this.expired=e.expired||Ee,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 Oe(){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 ke=Oe();function Ae(){try{if(!ke||!ke.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 je(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 Me=be(((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()}})),Ne=be(((e,t)=>{var n=Me();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`&&be((()=>{typeof global.Promise!=`function`&&(global.Promise=Ne())}))();var N=Promise;function P(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function Pe(e,t,n){typeof t==`function`&&e.then(t),typeof n==`function`&&e.catch(n)}function F(e){return typeof e!=`string`&&(e=String(e)),e}function Fe(){if(arguments.length&&typeof arguments[arguments.length-1]==`function`)return arguments[arguments.length-1]}var Ie=`local-forage-detect-blob-support`,Le,I={},Re=Object.prototype.toString,ze=`readonly`,Be=`readwrite`;function Ve(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 He(e){return new N(function(t){var n=e.transaction(Ie,Be),r=je([``]);n.objectStore(Ie).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 Ue(e){return typeof Le==`boolean`?N.resolve(Le):He(e).then(function(e){return Le=e,Le})}function We(e){var t=I[e.name],n={};n.promise=new N(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 Ge(e){var t=I[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function Ke(e,t){var n=I[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function qe(e,t){return new N(function(n,r){if(I[e.name]=I[e.name]||nt(),e.db)if(t)We(e),e.db.close();else return n(e.db);var i=[e.name];t&&i.push(e.version);var a=ke.open.apply(ke,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(Ie)}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),Ge(e)}})}function Je(e){return qe(e,!1)}function Ye(e){return qe(e,!0)}function Xe(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 Ze(e){return new N(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 Qe(e){return je([Ve(atob(e.data))],{type:e.type})}function $e(e){return e&&e.__local_forage_encoded_blob}function et(e){var t=this,n=t._initReady().then(function(){var e=I[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return Pe(n,e,e),n}function tt(e){We(e);for(var t=I[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,Je(e).then(t=>(e.db=t,Xe(e)?Ye(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 Ke(e,t),t})}function L(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 N.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),Ye(e)}).then(()=>tt(e).then(function(){L(e,t,n,r-1)})).catch(n);n(i)}}function nt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function rt(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=I[n.name];i||(i=nt(),I[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=et);var a=[];function o(){return N.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 N.all(a).then(function(){return n.db=i.db,Je(n)}).then(function(e){return n.db=e,Xe(n,t._defaultConfig.version)?Ye(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 it(e,t){var n=this;e=F(e);var r=new N(function(t,r){n.ready().then(function(){L(n._dbInfo,ze,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),$e(e)&&(e=Qe(e)),t(e)},o.onerror=function(){r(o.error)}}catch(e){r(e)}})}).catch(r)});return P(r,t),r}function at(e,t){var n=this,r=new N(function(t,r){n.ready().then(function(){L(n._dbInfo,ze,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;$e(r)&&(r=Qe(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 P(r,t),r}function ot(e,t,n){var r=this;e=F(e);var i=new N(function(n,i){var a;r.ready().then(function(){return a=r._dbInfo,Re.call(t)===`[object Blob]`?Ue(a.db).then(function(e){return e?t:Ze(t)}):t}).then(function(t){L(r._dbInfo,Be,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 P(i,n),i}function st(e,t){var n=this;e=F(e);var r=new N(function(t,r){n.ready().then(function(){L(n._dbInfo,Be,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 P(r,t),r}function ct(e){var t=this,n=new N(function(e,n){t.ready().then(function(){L(t._dbInfo,Be,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 P(n,e),n}function lt(e){var t=this,n=new N(function(e,n){t.ready().then(function(){L(t._dbInfo,ze,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 P(n,e),n}function ut(e,t){var n=this,r=new N(function(t,r){if(e<0){t(null);return}n.ready().then(function(){L(n._dbInfo,ze,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 P(r,t),r}function dt(e){var t=this,n=new N(function(e,n){t.ready().then(function(){L(t._dbInfo,ze,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 P(n,e),n}function ft(e,t){t=Fe.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=N.reject(`Invalid arguments`);else{let t=e.name===n.name&&r._dbInfo.db?N.resolve(r._dbInfo.db):Je(e).then(t=>{let n=I[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;We(e);let r=I[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 N((t,r)=>{let i=ke.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,Ge(n._dbInfo)}}).catch(t=>{throw(Ke(e,t)||N.resolve()).catch(()=>{}),t})}):t.then(t=>{We(e);let n=I[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 N((t,n)=>{var r=ke.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];Ge(e._dbInfo)}}).catch(t=>{throw(Ke(e,t)||N.resolve()).catch(()=>{}),t})})}return P(i,t),i}var pt={_driver:`asyncStorage`,_initStorage:rt,_support:Ae(),iterate:at,getItem:it,setItem:ot,removeItem:st,clear:ct,length:lt,key:ut,keys:dt,dropInstance:ft};function mt(){return typeof openDatabase==`function`}var R=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ht=`~~local_forage_type~`,gt=/^~~local_forage_type~([^~]+)~/,_t=`__lfsc__:`,vt=_t.length,yt=`arbf`,bt=`blob`,xt=`si08`,St=`ui08`,Ct=`uic8`,wt=`si16`,Tt=`si32`,Et=`ur16`,Dt=`ui32`,Ot=`fl32`,kt=`fl64`,At=vt+yt.length,jt=Object.prototype.toString;function Mt(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=R.indexOf(e[r]),o=R.indexOf(e[r+1]),s=R.indexOf(e[r+2]),c=R.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 Nt(e){var t=new Uint8Array(e),n=``,r;for(r=0;r<t.length;r+=3)n+=R[t[r]>>2],n+=R[(t[r]&3)<<4|t[r+1]>>4],n+=R[(t[r+1]&15)<<2|t[r+2]>>6],n+=R[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 Pt(e,t){var n=``;if(e&&(n=jt.call(e)),e&&(n===`[object ArrayBuffer]`||e.buffer&&jt.call(e.buffer)===`[object ArrayBuffer]`)){var r,i=_t;e instanceof ArrayBuffer?(r=e,i+=yt):(r=e.buffer,n===`[object Int8Array]`?i+=xt:n===`[object Uint8Array]`?i+=St:n===`[object Uint8ClampedArray]`?i+=Ct:n===`[object Int16Array]`?i+=wt:n===`[object Uint16Array]`?i+=Et:n===`[object Int32Array]`?i+=Tt:n===`[object Uint32Array]`?i+=Dt:n===`[object Float32Array]`?i+=Ot:n===`[object Float64Array]`?i+=kt:t(Error(`Failed to get type for BinaryArray`))),t(i+Nt(r))}else if(n===`[object Blob]`){var a=new FileReader;a.onload=function(){var n=ht+e.type+`~`+Nt(this.result);t(_t+bt+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(e){t(null,e)}}function Ft(e){if(e.substring(0,vt)!==_t)return JSON.parse(e);var t=e.substring(At),n=e.substring(vt,At),r;if(n===bt&&gt.test(t)){var i=t.match(gt);r=i[1],t=t.substring(i[0].length)}var a=Mt(t);switch(n){case yt:return a;case bt:return je([a],{type:r});case xt:return new Int8Array(a);case St:return new Uint8Array(a);case Ct:return new Uint8ClampedArray(a);case wt:return new Int16Array(a);case Et:return new Uint16Array(a);case Tt:return new Int32Array(a);case Dt:return new Uint32Array(a);case Ot:return new Float32Array(a);case kt:return new Float64Array(a);default:throw Error(`Unkown type: `+n)}}var It={serialize:Pt,deserialize:Ft,stringToBuffer:Mt,bufferToString:Nt};function Lt(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function Rt(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 N(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){Lt(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=It,i}function z(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):Lt(e,t,function(){e.executeSql(n,r,i,a)},a)},a):a(e,o)},a)}function zt(e,t){var n=this;e=F(e);var r=new N(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){z(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 P(r,t),r}function Bt(e,t){var n=this,r=new N(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){z(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 P(r,t),r}function Vt(e,t,n,r){var i=this;e=F(e);var a=new N(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){z(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 P(a,n),a}function Ht(e,t,n){return Vt.apply(this,[e,t,n,1])}function Ut(e,t){var n=this;e=F(e);var r=new N(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){z(n,i,`DELETE FROM ${i.storeName} WHERE key = ?`,[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return P(r,t),r}function Wt(e){var t=this,n=new N(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){z(t,r,`DELETE FROM ${r.storeName}`,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return P(n,e),n}function Gt(e){var t=this,n=new N(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){z(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 P(n,e),n}function Kt(e,t){var n=this,r=new N(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){z(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 P(r,t),r}function qt(e){var t=this,n=new N(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){z(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 P(n,e),n}function Jt(e){return new N(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=Fe.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 N(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 N(function(t,n){e.db.transaction(function(r){function i(e){return new N(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]));N.all(a).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):N.reject(`Invalid arguments`);return P(i,t),i}var Xt={_driver:`webSQLStorage`,_initStorage:Rt,_support:mt(),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=It,N.resolve()):N.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 P(n,e),n}function rn(e,t){var n=this;e=F(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 P(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 P(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 P(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 P(n,e),n}function cn(e){var t=this.keys().then(function(e){return e.length});return P(t,e),t}function ln(e,t){var n=this;e=F(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return P(r,t),r}function un(e,t,n){var r=this;e=F(e);var i=r.ready().then(function(){t===void 0&&(t=null);var n=t;return new N(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 P(i,n),i}function dn(e,t){if(t=Fe.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 N(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)}}):N.reject(`Invalid arguments`);return P(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:pt,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 N(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=N.reject(t);return P(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 Pe(r,t,n),r}driver(){return this._driver||null}getDriver(e,t,n){let r=gn[e]?N.resolve(gn[e]):N.reject(Error(`Driver not found.`));return Pe(r,t,n),r}getSerializer(e){let t=N.resolve(It);return Pe(t,e),t}ready(e){let t=this,n=t._driverSet.then(()=>(t._ready===null&&(t._ready=t._initDriver()),t._ready));return Pe(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=N.reject(i),r._driverSet}return n()}}let c=this._driverSet===null?N.resolve():this._driverSet.catch(()=>N.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=N.reject(e),r._driverSet}),Pe(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 De({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=[`404`,`login`,`alone_run`,`none`],jn=()=>B.localGet(`syCacheAppRbac`)||``;function Mn(t){let{sdkConfigData:n}=Te(),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=w(`el-header`);return b(),l(n,{class:`cloud-header__wrap`},{default:O(()=>[ee(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,T(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.setGlobalState&&qn.setGlobalState({ignore:qn.name,msg:{...e}})}function Yn(e){let t=X();e&&e.onGlobalStateChange&&e.onGlobalStateChange((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),qn.setGlobalState=e&&e.setGlobalState,qn.name=e&&e.name}function Xn(e,n,r){t({bootstrap(e){},mount(e){Yn(e),n(e,!0)},unmount(e){r(e)},update(e){}})}var Zn=j(`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)=>{le.confirm(e.message||``,e.title||`Warning`,{confirmButtonText:e.confirmButtonText||`确认`,cancelButtonText:e.cancelButtonText||`取消`,showCancelButton:e.showCancelButton,type:`warning`}).then(()=>{t()}).catch(()=>{n()})})}function $n(e){ue({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=(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=>ar(t)===e),or=e=>t=>typeof t===e,{isArray:sr}=Array,cr=or(`undefined`);function lr(e){return e!==null&&!cr(e)&&e.constructor!==null&&!cr(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ur=V(`ArrayBuffer`);function dr(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ur(e.buffer),t}var fr=or(`string`),H=or(`function`),pr=or(`number`),mr=e=>typeof e==`object`&&!!e,hr=e=>e===!0||e===!1,gr=e=>{if(ar(e)!==`object`)return!1;let t=nr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ir in e)&&!(rr in e)},_r=e=>{if(!mr(e)||lr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vr=V(`Date`),yr=V(`File`),br=e=>!!(e&&e.uri!==void 0),xr=e=>e&&e.getParts!==void 0,Sr=V(`Blob`),Cr=V(`FileList`),wr=e=>mr(e)&&H(e.pipe);function Tr(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Er=Tr(),Dr=Er.FormData===void 0?void 0:Er.FormData,Or=e=>{if(!e)return!1;if(Dr&&e instanceof Dr)return!0;let t=nr(e);if(!t||t===Object.prototype||!H(e.append))return!1;let n=ar(e);return n===`formdata`||n===`object`&&H(e.toString)&&e.toString()===`[object FormData]`},kr=V(`URLSearchParams`),[Ar,jr,Mr,Nr]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(V),Pr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Fr(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),sr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(lr(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 Ir(e,t){if(lr(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 Lr=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Rr=e=>!cr(e)&&e!==Lr;function zr(...e){let{caseless:t,skipUndefined:n}=Rr(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&Ir(r,i)||i,o=Zr(r,a)?r[a]:void 0;gr(o)&&gr(e)?r[a]=zr(o,e):gr(e)?r[a]=zr({},e):sr(e)?r[a]=e.slice():(!n||!cr(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||lr(n)||(Fr(n,i),typeof n!=`object`||sr(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Qr.call(n,t)&&i(n[t],t)}}return r}var Br=(e,t,n,{allOwnKeys:r}={})=>(Fr(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),Vr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hr=(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)},Ur=(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},Wr=(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},Gr=e=>{if(!e)return null;if(sr(e))return e;let t=e.length;if(!pr(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Kr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&nr(Uint8Array)),qr=(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])}},Jr=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yr=V(`HTMLFormElement`),Xr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Zr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:Qr}=Object.prototype,$r=V(`RegExp`),ei=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Fr(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ti=e=>{ei(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+`'`)}}})},ni=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return sr(e)?r(e):r(String(e).split(t)),n},ri=()=>{},ii=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ai(e){return!!(e&&H(e.append)&&e[ir]===`FormData`&&e[rr])}var oi=e=>{let t=new WeakSet,n=e=>{if(mr(e)){if(t.has(e))return;if(lr(e))return e;if(!(`toJSON`in e)){t.add(e);let r=sr(e)?[]:{};return Fr(e,(e,t)=>{let i=n(e);!cr(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},si=V(`AsyncFunction`),ci=e=>e&&(mr(e)||H(e))&&H(e.then)&&H(e.catch),li=((e,t)=>e?setImmediate:t?((e,t)=>(Lr.addEventListener(`message`,({source:n,data:r})=>{n===Lr&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Lr.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,H(Lr.postMessage)),U={isArray:sr,isArrayBuffer:ur,isBuffer:lr,isFormData:Or,isArrayBufferView:dr,isString:fr,isNumber:pr,isBoolean:hr,isObject:mr,isPlainObject:gr,isEmptyObject:_r,isReadableStream:Ar,isRequest:jr,isResponse:Mr,isHeaders:Nr,isUndefined:cr,isDate:vr,isFile:yr,isReactNativeBlob:br,isReactNative:xr,isBlob:Sr,isRegExp:$r,isFunction:H,isStream:wr,isURLSearchParams:kr,isTypedArray:Kr,isFileList:Cr,forEach:Fr,merge:zr,extend:Br,trim:Pr,stripBOM:Vr,inherits:Hr,toFlatObject:Ur,kindOf:ar,kindOfTest:V,endsWith:Wr,toArray:Gr,forEachEntry:qr,matchAll:Jr,isHTMLForm:Yr,hasOwnProperty:Zr,hasOwnProp:Zr,reduceDescriptors:ei,freezeMethods:ti,toObjectSet:ni,toCamelCase:Xr,noop:ri,toFiniteNumber:ii,findKey:Ir,global:Lr,isContextDefined:Rr,isSpecCompliantForm:ai,toJSONObject:oi,isAsyncFn:si,isThenable:ci,setImmediate:li,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Lr):typeof process<`u`&&process.nextTick||li,isIterable:e=>e!=null&&H(e[rr])},ui=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`]),di=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]&&ui[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function fi(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 pi=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),mi=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function hi(e,t){return U.isArray(e)?e.map(e=>hi(e,t)):fi(String(e).replace(t,``))}var gi=e=>hi(e,pi),_i=e=>hi(e,mi);function vi(e){let t=Object.create(null);return U.forEach(e.toJSON(),(e,n)=>{t[n]=_i(e)}),t}var yi=Symbol(`internals`);function bi(e){return e&&String(e).trim().toLowerCase()}function xi(e){return e===!1||e==null?e:U.isArray(e)?e.map(xi):gi(String(e))}function Si(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 Ci=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wi(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 Ti(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ei(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=bi(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]=xi(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())&&!Ci(e))a(di(e),t);else if(U.isObject(e)&&U.isIterable(e)){let n={},r,i;for(let t of e){if(!U.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?U.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=bi(e),e){let n=U.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Si(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=bi(e),e){let n=U.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||wi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=bi(e),e){let i=U.findKey(n,e);i&&(!t||wi(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||wi(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]=xi(r),delete t[i];return}let o=e?Ti(i):String(i).trim();o!==i&&delete t[i],t[o]=xi(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[yi]=this[yi]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=bi(e);t[r]||(Ei(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 Di=`[REDACTED ****]`;function Oi(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 ki(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)&&Oi(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?Di: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?ki(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 Ai(e){return U.isPlainObject(e)||U.isArray(e)}function ji(e){return U.endsWith(e,`[]`)?e.slice(0,-2):e}function Mi(e,t,n){return e?e.concat(t).map(function(e,t){return e=ji(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ni(e){return U.isArray(e)&&!e.some(Ai)}var Pi=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});function Fi(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||d,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);if(!U.isFunction(i))throw TypeError(`visitor must be a function`);function u(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 d(e,n,i){let s=e;if(U.isReactNative(t)&&U.isReactNativeBlob(e))return t.append(Mi(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(U.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(U.isArray(e)&&Ni(e)||(U.isFileList(e)||U.endsWith(n,`[]`))&&(s=U.toArray(e)))return n=ji(n),s.forEach(function(e,r){!(U.isUndefined(e)||e===null)&&t.append(o===!0?Mi([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return Ai(e)?!0:(t.append(Mi(i,n,a),u(e)),!1)}let f=[],p=Object.assign(Pi,{defaultVisitor:d,convertValue:u,isVisitable:Ai});function m(e,n,r=0){if(!U.isUndefined(e)){if(r>c)throw new G(`Object is too deeply nested (`+r+` levels). Max depth: `+c,G.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),U.forEach(e,function(e,a){(!(U.isUndefined(e)||e===null)&&i.call(t,e,U.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!U.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function Ii(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Li(e,t){this._pairs=[],e&&Fi(e,this,t)}var Ri=Li.prototype;Ri.append=function(e,t){this._pairs.push([e,t])},Ri.toString=function(e){let t=e?function(t){return e.call(this,t,Ii)}:Ii;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function zi(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Bi(e,t,n){if(!t)return e;let r=n&&n.encode||zi,i=U.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):U.isURLSearchParams(t)?t.toString():new Li(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Vi=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)})}},Hi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Ui={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Li,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Wi=xe({hasBrowserEnv:()=>Gi,hasStandardBrowserEnv:()=>qi,hasStandardBrowserWebWorkerEnv:()=>Ji,navigator:()=>Ki,origin:()=>Yi}),Gi=typeof window<`u`&&typeof document<`u`,Ki=typeof navigator==`object`&&navigator||void 0,qi=Gi&&(!Ki||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ki.product)<0),Ji=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Yi=Gi&&window.location.href||`http://localhost`,K={...Wi,...Ui};function Xi(e,t){return Fi(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})}function Zi(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Qi(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 $i(e){function t(e,n,r,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]=Qi(r[a])),!o)}if(U.isFormData(e)&&U.isFunction(e.entries)){let n={};return U.forEachEntry(e,(e,r)=>{t(Zi(e),r,n,0)}),n}return null}var ea=(e,t)=>e!=null&&U.hasOwnProp(e,t)?e[t]:void 0;function ta(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 na={transitional:Hi,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($i(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=ea(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Xi(e,t).toString();if((a=U.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=ea(this,`env`),r=n&&n.FormData;return Fi(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),ta(e)):e}],transformResponse:[function(e){let t=ea(this,`transitional`)||na.transitional,n=t&&t.forcedJSONParsing,r=ea(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,ea(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?G.from(e,G.ERR_BAD_RESPONSE,this,null,ea(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=>{na.headers[e]={}});function ra(e,t){let n=this||na,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 ia(e){return!!(e&&e.__CANCEL__)}var aa=class extends G{constructor(e,t,n){super(e??`canceled`,G.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function oa(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 sa(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function ca(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 la(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 ua=(e,t,n=3)=>{let r=0,i=ca(50,250);return la(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)},da=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fa=e=>(...t)=>U.asap(()=>e(...t)),pa=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,ma=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 ha(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function ga(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function _a(e,t,n){let r=!ha(t);return e&&(r||n===!1)?ga(e,t):t}var va=e=>e instanceof W?{...e}:e;function ya(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,i,a){if(U.hasOwnProp(t,a))return r(n,i);if(U.hasOwnProp(e,a))return r(void 0,n)}let c={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:s,headers:(e,t,n)=>i(va(e),va(t),n,!0)};return U.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=U.hasOwnProp(c,r)?c[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!==s||(n[r]=o)}),n}var ba=[`content-type`,`content-length`];function xa(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{ba.includes(t.toLowerCase())&&e.set(t,n)})}var Sa=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Ca(e){let t=ya({},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=Bi(_a(l,d,u),n(`params`),n(`paramsSerializer`)),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?Sa(c.password):``))),U.isFormData(r)&&(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv||U.isReactNative(r)?s.setContentType(void 0):U.isFunction(r.getHeaders)&&xa(s,r.getHeaders(),n(`formDataHeaderPolicy`))),K.hasStandardBrowserEnv&&(U.isFunction(i)&&(i=i(t)),i===!0||i==null&&pa(t.url))){let e=a&&o&&ma.read(o);e&&s.set(a,e)}return t}var wa=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Ca(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());oa(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||Hi;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(vi(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]=ua(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=ua(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new aa(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 _=sa(r.url);if(_&&!K.protocols.includes(_)){n(new G(`Unsupported protocol `+_+`:`,G.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Ta=(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 aa(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},Ea=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},Da=async function*(e,t){for await(let n of Oa(e))yield*Ea(n,t)},Oa=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()}},ka=(e,t,n,r)=>{let i=Da(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})};function Aa(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);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(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}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);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 ja=`1.17.0`,Ma=64*1024,{isFunction:Na}=U,Pa=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Fa=e=>{if(!U.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Ia=(e,...t)=>{try{return!!e(...t)}catch{return!1}},La=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Ra=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?Na(i):typeof fetch==`function`,c=Na(a),l=Na(o);if(!s)return!1;let u=s&&Na(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&&Ia(()=>{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&&Ia(()=>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:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=Ca(e),ee=U.isNumber(S)&&S>-1,w=U.isNumber(C)&&C>-1,te=t=>U.hasOwnProp(e,t)?e[t]:void 0,ne=i||fetch;v=v?(v+``).toLowerCase():`text`;let T=Ta([l,u&&u.toAbortSignal()],d),E=null,D=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),re;try{let i,l=te(`auth`);if(l&&(i={username:l.username||``,password:l.password||``}),La(t)){let e=new URL(t,K.origin);!i&&(e.username||e.password)&&(i={username:Fa(e.username),password:Fa(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(y.delete(`authorization`),y.set(`Authorization`,`Basic `+btoa(Pa((i.username||``)+`:`+(i.password||``))))),ee&&typeof t==`string`&&t.startsWith(`data:`)&&Aa(t)>S)throw new G(`maxContentLength size of `+S+` exceeded`,G.ERR_BAD_RESPONSE,e,E);if(w&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new G(`Request body larger than maxBodyLength limit`,G.ERR_BAD_REQUEST,e,E)}if(_&&f&&n!==`get`&&n!==`head`&&(re=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(U.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=da(re,ua(fa(_)));s=ka(e.body,Ma,t,n)}}U.isString(b)||(b=b?`include`:`omit`);let u=c&&`credentials`in a.prototype;if(U.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+ja,!1);let d={...x,signal:T,method:n.toUpperCase(),headers:vi(y.normalize()),body:s,duplex:`half`,credentials:u?b:void 0};E=c&&new a(t,d);let O=await(c?ne(E,x):ne(t,d));if(ee){let t=U.toFiniteNumber(O.headers.get(`content-length`));if(t!=null&&t>S)throw new G(`maxContentLength size of `+S+` exceeded`,G.ERR_BAD_RESPONSE,e,E)}let k=p&&(v===`stream`||v===`response`);if(p&&O.body&&(h||ee||k&&D)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=O[e]});let n=U.toFiniteNumber(O.headers.get(`content-length`)),[r,i]=h&&da(n,ua(fa(h),!0))||[],a=0;O=new o(ka(O.body,Ma,t=>{if(ee&&(a=t,a>S))throw new G(`maxContentLength size of `+S+` exceeded`,G.ERR_BAD_RESPONSE,e,E);r&&r(t)},()=>{i&&i(),D&&D()}),t)}v||=`text`;let A=await m[U.findKey(m,v)||`text`](O,e);if(ee&&!p&&!k){let t;if(A!=null&&(typeof A.byteLength==`number`?t=A.byteLength:typeof A.size==`number`?t=A.size:typeof A==`string`&&(t=typeof r==`function`?new r().encode(A).byteLength:A.length)),typeof t==`number`&&t>S)throw new G(`maxContentLength size of `+S+` exceeded`,G.ERR_BAD_RESPONSE,e,E)}return!k&&D&&D(),await new Promise((t,n)=>{oa(t,n,{data:A,headers:W.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:E})})}catch(t){if(D&&D(),T&&T.aborted&&T.reason instanceof G){let n=T.reason;throw n.config=e,E&&(n.request=E),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new G(`Network Error`,G.ERR_NETWORK,e,E,t&&t.response),{cause:t.cause||t}):G.from(t,t&&t.code,e,E,t&&t.response)}}},za=new Map,Ba=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=za;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ra(t)),l=c;return c};Ba();var Va={http:null,xhr:wa,fetch:{get:Ba}};U.forEach(Va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Ha=e=>`- ${e}`,Ua=e=>U.isFunction(e)||e===null||e===!1;function Wa(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,!Ua(r)&&(i=Va[(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(Ha).join(`
5
- `):` `+Ha(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Ga={getAdapter:Wa,adapters:Va};function Ka(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new aa(null,e)}function qa(e){return Ka(e),e.headers=W.from(e.headers),e.data=ra.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Ga.getAdapter(e.adapter||na.adapter,e)(e).then(function(t){Ka(e),e.response=t;try{t.data=ra.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=W.from(t.headers),t},function(t){if(!ia(t)&&(Ka(e),t&&t.response)){e.response=t.response;try{t.response.data=ra.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=W.from(t.response.headers)}return Promise.reject(t)})}var Ja={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Ja[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Ya={};Ja.transitional=function(e,t,n){function r(e,t){return`[Axios v`+ja+`] 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&&!Ya[i]&&(Ya[i]=!0),e?e(n,i,a):!0}},Ja.spelling=function(e){return(e,t)=>!0};function Xa(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 Za={assertOptions:Xa,validators:Ja},q=Za.validators,Qa=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Vi,response:new Vi}}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=ya(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Za.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)},!1),r!=null&&(U.isFunction(r)?t.paramsSerializer={serialize:r}:Za.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),Za.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||Hi;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=[qa.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=qa.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=ya(this.defaults,e),Bi(_a(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};U.forEach([`delete`,`get`,`head`,`options`],function(e){Qa.prototype[e]=function(t,n){return this.request(ya(n||{},{method:e,url:t,data:(n||{}).data}))}}),U.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(ya(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Qa.prototype[e]=t(),e!==`query`&&(Qa.prototype[e+`Form`]=t(!0))});var $a=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 aa(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 eo(e){return function(t){return e.apply(null,t)}}function to(e){return U.isObject(e)&&e.isAxiosError===!0}var no={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(no).forEach(([e,t])=>{no[t]=e});function ro(e){let t=new Qa(e),n=er(Qa.prototype.request,t);return U.extend(n,Qa.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ro(ya(e,t))},n}var J=ro(na);J.Axios=Qa,J.CanceledError=aa,J.CancelToken=$a,J.isCancel=ia,J.VERSION=ja,J.toFormData=Fi,J.AxiosError=G,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=eo,J.isAxiosError=to,J.mergeConfig=ya,J.AxiosHeaders=W,J.formToJSON=e=>$i(U.isHTMLForm(e)?new FormData(e):e),J.getAdapter=Ga.getAdapter,J.HttpStatusCode=no,J.default=J;function io(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 ao(e,t){let n=``;return n=e.includes(`http://`)||e.includes(`https://`)?e:t+e,n=n.replace(/([^:]\/)\/+/g,`$1`),n}var oo={400:`请求错误`,400:`无效请求`,401:`未经授权`,402:`支付请求`,403:`拒绝访问`,404:`请求出错`,408:`请求超时`,422:`请求验证`,500:`响应错误`,501:`服务未实现`,502:`网络错误`,503:`服务不可用`,504:`网络超时`,505:`HTTP版本不受支持`},so={400:`参数错误`,401:`没有权限,请变更请求`,402:`支付错误`,403:`检查请求域名是否添加了域名白名单`,404:`未找到该请求`,408:`网络异常,请检查网络设置`,422:`参数验证错误`,504:`请求超时,请刷新重试`,500:`请检查网络或服务器`};function co(e,t){e=parseInt(e);let n=`提示`,r=`请检查网络或联系管理员`;return oo[e]&&(n=oo[e]),so[e]&&(r=so[e]),{title:n,status:e,message:r}}var lo=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&&io(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=ao(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=ao(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:` 请求错误 `}))}},uo=j(`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}}}),fo={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`},po={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;`},mo={10001:`未登录`,10002:`token过期`,10009:`退出登录`,100101:`未经授权,请登录`,100102:`无效授权,请重新登录`,100103:`过期授权,请重新登录`,100109:`token错误`,100206:`角色错误`,13001:`eid 实名认证`,8002:`微信注册`};function ho(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:mo[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 go=null;function _o(e={}){let{sdkConfigGet:t}=Te(),n=t();go=new lo({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({},fo,r,n.syOpenApiFlag),o=Object.assign({},po,i,n.syOpenApiAuth);go.setApiFlag(a),go.setApiAuth(o);let s=uo(),c=X();return go.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)),go.interceptors.response.use(e=>{s.SA_LOADING_SHOW(!1),e.config?.customs;let t=e.status||-1,n=e.data||{},r=n.status||n.code||-1;if(r=parseInt(r),n.msg||n.message,t!=200)return Promise.reject(e);if(t==200)return n.message&&(n.msg=n.message),Promise.resolve(n);throw{message:`请求出错,稍后重试`}},e=>{let t=e?.response?.status||e.status||-1,n=e?.code||``,r=e.message||e?.response?.data?.message||e?.response?.statusText||``;t==-1&&(r.includes(`timeout`)||n.includes(`ECONNABORTED`)?t=504:r.includes(`Network Error`)?t=408:r.includes(`Not Found`)&&(t=404));let i=e?.response?.data?.errorCode||-1,a=e?.response?.data?.errorMessage||e?.response?.data?.message,o=e?.config?.customs?.flag||``,s=co(t,r),c={type:`error`,title:s.title,message:s.message,status:t,code:i,error:a||r,flag:o};return(t==400||t==422)&&(i==400||i==422||i.toString().startsWith(`400`))&&(c.message=a||s.message),ho(c),Promise.reject(c)}),go}function vo(){return go||=_o(),go}var Y=new Proxy({},{get(e,t){let n=vo();return typeof n[t]==`function`?n[t].bind(n):n[t]}}),yo=`syCacheAppInfo`,bo=`syCacheAppToken`,xo=`syCacheAppJwt`,So=`syCacheAppRbac`,Co={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 wo(e){return Math.floor(Date.now()/1e3)>=e}var X=j(`cloudSdkAccountStore`,{state:()=>({account_nick:``,accountRbacData:[],accountInfo:B.localGet(yo)||{},accountToken:B.localGet(bo)||``,accountJwt:B.localGet(xo)||``}),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)&&!wo(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(So),this.ACCOUNT_SET_PREV()},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=B.localGet(bo)||``,!!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(bo,this.accountToken)},SA_ACCOUNT_CHECK_EXPIRED(e){return wo(this?.accountInfo?.token_time||0)},SA_ACCOUNT_INFO_GET(){return B.localGet(yo)},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||=Co,ie(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=ae(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(yo,n),B.localSet(yo,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=B.localGet(yo)||Co,this.accountToken=B.localGet(bo)||``,this.accountJwt=B.localGet(xo)||``,Y.setDefHeaders({syOpenAppToken:this.accountToken||``,Authorization:`Bearer `+this.accountJwt||``})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),B.localSet(yo,e),B.localSet(bo,e.token_access||``),B.localSet(xo,e.token_jwt||``),B.localSet(So,``),await this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),Zn().QK_SEND_LOGIN_MSG()},async SA_ACCOUNT_LOGOUT(e){this.ACCOUNT_SET_PREV(),B.sessionClear(),B.localSet(yo,``),B.localSet(bo,``),B.localSet(xo,``),B.localSet(So,``),B.localDel(yo),B.localDel(bo),B.localDel(xo),B.localDel(So),this.SA_ACCOUNT_REFRESH(),Zn().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){if(e||=!1,!this.accountToken)return!1;let t=B.localGet(So)||``;(e||t==``)&&await Y.flagGet(`ORG_SYS_BASE_MYRBAC`,{}).then(e=>{e.status==100600?this.SA_ACCOUNT_LOGOUT():e.status==200&&B.localSet(So,e.data||``)})},ACCOUNT_SET_PREV(){}}}),To=`__syCacheApiFlag__`,Eo=`__syCacheApiAuth__`,Do=`__syCacheApiCode__`,Oo=`__syCacheAppConfig__`,ko=`__syCacheAppTheme__`,Ao=`__syCacheProjectConfig__`;async function jo(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 Mo=j(`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}=Te(),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&&jo(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(To),await B.idbDelItem(Eo),await B.idbDelItem(Ao),await B.idbDelItem(Oo),await B.idbDelItem(ko)},async __load_api_flag(){let e=await B.idbGetItem(To);ie(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_FLAG`,{}).then(t=>{e=t.data||{},B.idbSetItem(To,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(Eo);ie(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_AUTH`,{}).then(t=>{e=t.data||{},B.idbSetItem(Eo,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(Do);ie(e)&&await Y.flagPost(`BASE_LOAD_COMMON_API_CODE`,{}).then(t=>{e=t.data||{},B.idbSetItem(Do,e)})},async __load_project_param(){let e=await B.idbGetItem(Ao);ie(e)?await Y.flagGet(`BASE_SYS_COMMON_PLAT_SETTING`,{}).then(({data:e})=>{this.projectConfig=Object.assign({},this.projectConfig,e),B.idbSetItem(Ao,this.projectConfig)}):this.projectConfig=e},async __load_inst_param(){let e=await B.idbGetItem(Oo);ie(e)?await Y.flagPost(`BASE_LOAD_COMMOM_IP_PARAM_PUBLICLY`,{}).then(({data:e})=>{this.instanceConfig=Object.assign({},this.instanceConfig,e),B.idbSetItem(Oo,this.instanceConfig)}):this.instanceConfig=e},async __load_inst_decoration(){await B.idbGetItem(ko)},async __load_license(){}}}),No=`__system:keyboardConf`,Po=`__system:clientVersion`,Fo=`__system:clientId`,Io=`__syCacheApiKey__`,Lo=j(`cloudSdkSystemStore`,{state:()=>({sysServerUrl:``,sysClientInfo:{},sysClientId:``,sysClientVersion:`v8`,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();let e=await B.idbGetString(`sysServerUrl`);e&&await B.idbSetItem(`sysServerUrl`,e),await Mo().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(No);B.localSet(No,e),await B.idbDelItem(`clearCache`)},async __check_version(){let e=B.localGet(Po)||``,t=this.sysClientVersion||``;t!=e&&(B.localSet(Po,t),await this.clear_cache(),await Mo().clear_cache())},async __load_api_key(){let e=await B.idbGetString(Fo);e||(e=cvUtils.randomString(6),await B.idbSetItem(Fo,e)),this.sysClientId=e,this.apiKeyData=await B.idbGetItem(Io),this.apiKeyData||await Y.setOptions({encrypt:!1}).flagGet(`BASE_ACCSYS_COMMON_KEYCLIENT`,{client_id:e}).then(({data:e})=>{this.apiKeyData=e,B.idbSetItem(Io,this.apiKeyData)})},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=B.localGet(No);n||(B.localSet(No,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(No,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)})}}});function Ro(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function zo(){return window.innerHeight}function Bo(){return Ro()-zo()>50?`landscape`:`portrait`}var Vo=Ro(),Ho=zo(),Uo=Bo();window&&window.process&&window.process?.type,window&&window.navigator&&/eeui/i.test(window.navigator.userAgent);var Wo=j(`cloudSdkSysWinStore`,{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:`ontouchend`in document,windowWidth:Vo,windowHeight:Ho,windowOrientation:Uo,windowLandscape:Uo===`landscape`,windowPortrait:Uo===`portrait`,formLabelPosition:Vo>576?`right`:`top`,formLabelWidth:Vo>576?`auto`:``,windowMax768:Vo<=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}}}),Go=de({legacy:!1,locale:`zh`,fallbackLocale:`zh`,globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),Ko=Go.global;async function qo(e,t){let n=await t(e);Ko.setLocaleMessage(e,n),Ko.locale&&Ko.locale.value!==void 0?Ko.locale.value=e:Ko.locale=e}var Jo=`__system:language__`;function Yo(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||``).toLowerCase().trim()}function Xo(e){return e?e.toLowerCase().trim():``}var Zo=j(`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=Yo()||`zh`;e=localStorage.getItem(`__system:language__`)||e;let t=cvUtils.cc_url_get_params();t.language&&(e=t.language),e=Xo(e),Object.keys(this.languageList).includes(e)?this.languageName=e===`zh-cn`?`zh`:e:this.languageName=`zh`,localStorage.setItem(Jo,this.languageName)},async clear_cache(){B.localSet(Jo,`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(Jo,e),Ko.locale.value=e}}}),Qo=`__system:layout__`,$o=[{name:`风格1`,value:`layoutType1`},{name:`风格2`,value:`layoutType2`},{name:`风格3`,value:`layoutType3`},{name:`风格4`,value:`layoutType4`}],es=[{name:`蓝黑`,value:`colorLanHei`},{name:`蓝白`,value:`colorLanBai`},{name:`绿黑`,value:`colorLvHei`},{name:`绿白`,value:`colorLvBai`},{name:`红黑`,value:`colorHongHei`}],ts=[{name:`跟随系统`,value:`auto`},{name:`明亮`,value:`light`},{name:`暗黑`,value:`dark`}],ns=[{name:`显示`,value:`openWatermark`},{name:`隐藏`,value:`hideWatermark`}],rs=[{name:`显示`,value:`openSidebar`},{name:`隐藏`,value:`hideSidebar`}],is=[{name:`显示`,value:`openNavtabs`},{name:`隐藏`,value:`hideNavtabs`}],as=`layoutType2`,os=`colorLanHei`,ss=`light`,cs=`openWatermark`,ls=`openSidebar`,us=`openNavtabs`,ds={layoutType:as,layoutColor:os,layoutDarkMode:ss,layoutNavTabs:us,layoutSidebarState:ls,layoutWatermarkState:cs};function Z(e,t,n){return e.map(e=>e.value).includes(t)?t:n}function fs(e,t){if(!document?.querySelector)return;let n=document.documentElement;e.forEach(e=>{n.classList.remove(e.value)}),n.classList.add(t)}function ps(){let e=B.localGet(Qo),t={...ds,...e};return t.layoutType=Z($o,t.layoutType,as),t.layoutSidebarState=Z(rs,t.layoutSidebarState,ls),t.layoutNavTabs=Z(is,t.layoutNavTabs,us),t.layoutWatermarkState=Z(ns,t.layoutWatermarkState,cs),t.layoutDarkMode=Z(ts,t.layoutDarkMode,ss),t}function ms(){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=j(`cloudSdkThemesStore`,{state:()=>{let e=ps();return{layoutDarkmodeList:ts,layoutColorList:es,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(ns,e,cs),fs(ns,this.layoutWatermarkState),this.saveAllLayoutCache()},SA_LAYOUT_TYPE_SET(e){this.layoutType=Z($o,e,as),this.layoutType==`layoutType4`||this.layoutType==`layoutType3`?(this.layoutSidebarState=`openSidebar`,this.layoutNavTabs=`hideNavtabs`):this.layoutNavTabs=`openNavtabs`,fs($o,this.layoutType),this.saveAllLayoutCache()},SA_LAYOUT_COLOR_SET(e){this.layoutColor=Z(es,e,os),fs(es,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(rs,e,ls),fs(rs,this.layoutSidebarState),this.saveAllLayoutCache()},SA_LAYOUT_NAVTABS_SET(e){i.__POWERED_BY_QIANKUN__&&(e=`hideNavtabs`),this.layoutNavTabs=Z(is,e,us),fs(is,this.layoutNavTabs),i.__POWERED_BY_QIANKUN__||this.saveAllLayoutCache()},SA_LAYOUT_DARKMODE_SET(e){let t=Z(ts,e,ss);this.layoutDarkMode=t,t==`auto`?fs(ts,window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`):fs(ts,t),this.saveAllLayoutCache()},synchTheme(){if(!ms()){__cc_isEEUiApp?ce.warning(`仅Android设置支持主题功能`):ce.warning(`仅客户端或Chrome浏览器支持主题功能`);return}},saveAllLayoutCache(){let e={layoutType:this.layoutType,layoutColor:this.layoutColor,layoutDarkMode:this.layoutDarkMode,layoutNavTabs:this.layoutNavTabs,layoutSidebarState:this.layoutSidebarState,layoutWatermarkState:this.layoutWatermarkState};B.localSet(Qo,e)}}}),hs=[{meta:{title:`登录`,isAlone:!0},isAlone:!0,name:`login`,path:`/login`,component:()=>import(`./login-ChmRYnU4.js`)}],gs=[{meta:{title:`不建议单独运行`,isAlone:!0},isAlone:!0,name:`alone_run`,path:`/alone_run`,component:()=>import(`./alone_run-Kz37syLe.js`)},{meta:{title:`错误`,isAlone:!0},isAlone:!0,name:`404`,path:`/:catchAll(.*)`,component:()=>import(`./404-ljLEZL6h.js`)}],_s=[{meta:{title:`空页面`,isAlone:!1},isAlone:!1,name:`none`,path:`/none`,component:()=>import(`./none-CC7WEmdX.js`)}],vs=j(`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(...hs),e.addRoute(...gs),e.addRoute(..._s)},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),$=j(`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 ys(){return new Promise(async e=>{Zo().clear_cache(),Q().clear_cache(),Lo().clear_cache(),Mo().clear_cache(),X().clear_cache(),$().clear_cache(),B.idbSetItem(`cacheClearHandle`,`handle`).then(t=>{e()})})}function bs(){return{computed:{...M(Zn,[`qiankunExistState`]),...M(Wo,[`windowWidth`,`windowHeight`,`windowActive`,`windowScrollY`,`windowTouch`,`windowLandscape`,`windowPortrait`,`formLabelPosition`]),...M(Zo,[`cacheLanguageType`,`languageList`]),...M(Q,[`cacheLayoutType`,`cacheLayoutColor`,`cacheLayoutDarkMode`,`cacheLayoutNavTabs`,`cacheLayoutSidebarState`,`cacheLayoutWatermark`]),...M($,[`menuBadge`]),...M(Lo,[`sysServerUrl`,`sysIsElectron`,`sysIsEEUiApp`,`sysIsSoftware`]),...M(X,[`cacheIsLogin`,`accountInfo`,`accountToken`,`accountRole`,`accountRbacData`,`accRoleIsAdmin`,`cacheBizsId`,`staffId`,`staffNick`]),...M(Mo,[`cacheInstInfo`,`cacheInstConfig`])},watch:{windowActive(e){}},mounted(){}}}var xs={__name:`top-fold`,setup(e){function t(){Q().SA_LAYOUT_SLIDEBAR_SWITCH()}return(e,n)=>{let r=w(`cv-icon-svg`);return b(),d(`div`,{class:`cloud-header__opt`,onClick:t},[e.cacheLayoutSidebarState==`openSidebar`?(b(),l(r,{key:0,type:`ElIconFold`,size:`18`})):u(``,!0),e.cacheLayoutSidebarState==`hideSidebar`?(b(),l(r,{key:1,type:`ElIconExpand`,size:`18`})):u(``,!0)])}}},Ss={__name:`top-refresh`,setup(e){function t(){vs().SA_ROUTE_ALIVE_ADD()}return(e,n)=>{let r=w(`cv-icon-svg`);return b(),d(`div`,{class:`cloud-header__opt`,onClick:t},[h(r,{type:`ElIconRefreshRight`,size:`18`})])}}},Cs={data(){return{breadcrumbPath:[]}},watch:{$route(e){e.meta&&Array.isArray(e?.meta?.treeInfo)?this.breadcrumbPath=e.meta?.treeInfo:this.breadcrumbPath=[]}}},ws={class:`cloud-header__breadcrumb`};function Ts(e,t,n,r,i,a){let s=w(`el-breadcrumb-item`),c=w(`el-breadcrumb`);return b(),d(`div`,ws,[h(c,{separator:`/`},{default:O(()=>[(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:O(()=>[m(T(e.title),1)]),_:2},1024)):(b(),l(s,{key:`b`+t,to:{path:e.path}},{default:O(()=>[m(T(e.title),1)]),_:2},1032,[`to`]))],64))),256))]),_:1})])}var Es=a(Cs,[[`render`,Ts]]),Ds={},Os={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function ks(e,t){return b(),d(`svg`,Os,[...t[0]||=[f(`path`,{d:`M918.150616 617.561402l-52.412725 36.861697 34.941817 49.5969H447.972002v63.996h575.964002zM529.630898 978.24286l57.404412-28.414224L560.348978 896.008H1023.936004v-63.996001H457.12343z`,fill:`currentColor`,"p-id":`23945`},null,-1),f(`path`,{d:`M702.740079 640.023999l45.245172-45.245173a466.274858 466.274858 0 0 0-120.440473-59.772264c84.666708-50.172864 142.007125-141.495157 142.007125-246.960565a287.982001 287.982001 0 1 0-575.964002 0c0 105.465408 57.404412 196.787701 142.07112 246.960565A479.970002 479.970002 0 0 0 3.1998 960.004h63.996c16.446972-214.450597 195.763765-383.976001 414.374102-383.976002 81.27492 0 157.110181 23.486532 221.170177 63.996001zM257.583901 288.045997c0-123.51228 100.47372-223.986001 223.922005-223.986001 123.51228 0 224.049997 100.47372 224.049997 223.986001S605.082182 512.031998 481.505906 512.031998a224.241985 224.241985 0 0 1-223.922005-223.986001z`,fill:`currentColor`,"p-id":`23946`},null,-1)]])}var As=a(Ds,[[`render`,ks]]),js={},Ms={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function Ns(e,t){return b(),d(`svg`,Ms,[...t[0]||=[f(`path`,{fill:`currentColor`,d:`M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96`},null,-1),f(`path`,{fill:`currentColor`,d:`M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64`},null,-1)]])}var Ps=a(js,[[`render`,Ns]]),Fs={},Is={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function Ls(e,t){return b(),d(`svg`,Is,[...t[0]||=[f(`path`,{d:`M563.2 986.763636H93.090909c-51.2 0-93.090909-41.890909-93.090909-93.090909V130.327273c0-51.2 41.890909-93.090909 93.090909-93.090909h470.109091c27.927273 0 46.545455 18.618182 46.545455 46.545454s-18.618182 46.545455-46.545455 46.545455H93.090909v768h470.109091c27.927273 0 46.545455 18.618182 46.545455 46.545454 0 23.272727-18.618182 41.890909-46.545455 41.890909zM730.763636 758.690909c-18.618182-18.618182-18.618182-46.545455 0-65.163636l176.872728-176.872728L698.181818 297.890909l32.581818-32.581818c18.618182-18.618182 46.545455-18.618182 65.163637 0l214.109091 214.109091c18.618182 18.618182 18.618182 46.545455 0 65.163636l-214.109091 214.109091c-13.963636 18.618182-46.545455 18.618182-65.163637 0z`,fill:`currentColor`},null,-1),f(`path`,{d:`M935.563636 558.545455H404.945455c-27.927273 0-46.545455-18.618182-46.545455-46.545455s18.618182-46.545455 46.545455-46.545455h530.618181v93.09091z`,fill:`currentColor`},null,-1)]])}var Rs=a(Fs,[[`render`,Ls]]),zs={},Bs={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function Vs(e,t){return b(),d(`svg`,Bs,[...t[0]||=[f(`path`,{fill:`currentColor`,d:`M240.8 196l178.4 178.4-45.6 45.6-177.6-179.2-68 68V128h180.8l-68 68z m133.6 408.8L196 783.2 128 715.2V896h180.8l-68-68 178.4-178.4-44.8-44.8zM715.2 128l68 68-178.4 178.4 45.6 45.6 178.4-178.4 68 68V128H715.2z m-65.6 476.8l-45.6 45.6 178.4 178.4-68 68H896V715.2l-68 68-178.4-178.4z`,"p-id":`17616`},null,-1)]])}var Hs=a(zs,[[`render`,Vs]]),Us={},Ws={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function Gs(e,t){return b(),d(`svg`,Ws,[...t[0]||=[f(`path`,{fill:`currentColor`,d:`M142.4 96.8l-44.8 44.8 173.6 174.4-68 68H384V203.2l-67.2 67.2zM752.8 316l173.6-174.4-44.8-44.8-174.4 173.6-67.2-67.2V384h180.8zM270.4 707.2l-169.6 170.4 44.8 49.6 170.4-174.4 68 68V640H203.2zM820.8 640H640v180.8l68-68 170.4 174.4 44.8-49.6-169.6-170.4z`,"p-id":`17759`},null,-1)]])}var Ks=a(Us,[[`render`,Gs]]),qs={},Js={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function Ys(e,t){return b(),d(`svg`,Js,[...t[0]||=[f(`path`,{fill:`currentColor`,d:`M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256`},null,-1)]])}var Xs=a(qs,[[`render`,Ys]]),Zs={},Qs={class:`cloud-laytpl-box`};function $s(e,t){let n=w(`el-aside`),r=w(`el-header`),i=w(`el-main`),a=w(`el-container`);return b(),d(`div`,Qs,[h(a,{style:{height:`100%`}},{default:O(()=>[h(n,{class:`cloud-laytpl1-menu1`}),h(a,null,{default:O(()=>[h(r,{class:`cloud-laytpl-header`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var ec=a(Zs,[[`render`,$s]]),tc={},nc={class:`cloud-laytpl-box`};function rc(e,t){let n=w(`el-aside`),r=w(`el-header`),i=w(`el-main`),a=w(`el-container`);return b(),d(`div`,nc,[h(a,{style:{height:`100%`}},{default:O(()=>[h(n,{class:`cloud-laytpl2-menu1`}),h(n,{class:`cloud-laytpl2-menu2`}),h(a,null,{default:O(()=>[h(r,{class:`cloud-laytpl-header`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var ic=a(tc,[[`render`,rc]]),ac={},oc={class:`cloud-laytpl-box`};function sc(e,t){let n=w(`el-header`),r=w(`el-aside`),i=w(`el-main`),a=w(`el-container`);return b(),d(`div`,oc,[h(a,{style:{height:`100%`,display:`flex`,"flex-direction":`column`}},{default:O(()=>[h(n,{class:`cloud-laytpl-header`}),h(a,null,{default:O(()=>[h(r,{class:`cloud-laytpl3-menu2`}),h(i,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var cc=a(ac,[[`render`,sc]]),lc={},uc={class:`cloud-laytpl-box`};function dc(e,t){let n=w(`el-header`),r=w(`el-main`),i=w(`el-container`);return b(),d(`div`,uc,[h(i,{style:{height:`100%`,display:`flex`,"flex-direction":`column`}},{default:O(()=>[h(n,{class:`cloud-laytpl-header`}),h(i,null,{default:O(()=>[h(r,{class:`cloud-laytpl-main`})]),_:1})]),_:1})])}var fc=a(lc,[[`render`,dc]]),pc={},mc={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function hc(e,t){return b(),d(`svg`,mc,[...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 gc=a(pc,[[`render`,hc]]),_c={},vc={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function yc(e,t){return b(),d(`svg`,vc,[...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 bc=a(_c,[[`render`,yc]]),xc={class:`cloud-darkmode-wrap`},Sc={__name:`dark-mode`,props:{modelValue:{type:[Number,String],required:!0},modelModifiers:{}},emits:g([`change`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=D(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=w(`el-icon`);return b(),d(`div`,xc,[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:O(()=>[h(gc)]),_:1})]),f(`div`,{class:`cloud-darkmode-item`,onClick:t[1]||=e=>a(`auto`)},[h(n,{size:`12`,style:{width:`15px`}},{default:O(()=>[...t[3]||=[m(`A`,-1)]]),_:1})]),f(`div`,{class:`cloud-darkmode-item`,onClick:t[2]||=e=>a(`dark`)},[h(n,{size:`14`},{default:O(()=>[h(bc)]),_:1})])],2)])}}},Cc={class:`cloud-sett-drawer-body`},wc={class:`cloud-sett-drawer-skin`},Tc={class:`cloud-sett-drawer-itembox`},Ec={class:`cloud-sett-drawer-itembox`},Dc={class:`cloud-sett-drawer-itembox`},Oc={class:`cloud-sett-drawer-itembox`},kc={class:`cloud-sett-drawer-itembox`},Ac={class:`cloud-sett-drawer-itembox`},jc={class:`cloud-sett-drawer-itembox`},Mc=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}=oe(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){Zo().SA_LANGUAGE_SET(e)}return(e,u)=>{let p=w(`el-divider`),g=w(`el-option`),_=w(`el-select`),y=w(`el-switch`),x=w(`el-button`),S=w(`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:O(()=>[f(`div`,Cc,[h(p,null,{default:O(()=>[...u[5]||=[m(`布局切换`,-1)]]),_:1}),f(`div`,wc,[h(ec,{class:v({active:e.cacheLayoutType==`layoutType1`}),onClick:u[0]||=e=>n(`layoutType1`)},null,8,[`class`]),h(ic,{class:v({active:e.cacheLayoutType==`layoutType2`}),onClick:u[1]||=e=>n(`layoutType2`)},null,8,[`class`]),h(cc,{class:v({active:e.cacheLayoutType==`layoutType3`}),onClick:u[2]||=e=>n(`layoutType3`)},null,8,[`class`]),h(fc,{class:v({active:e.cacheLayoutType==`layoutType4`}),onClick:u[3]||=e=>n(`layoutType4`)},null,8,[`class`])]),h(p,null,{default:O(()=>[...u[6]||=[m(`界面设置`,-1)]]),_:1}),f(`div`,Tc,[u[7]||=f(`div`,null,`主题颜色`,-1),h(_,{modelValue:e.cacheLayoutColor,placeholder:e.$t(`选项主题`),style:{width:`100px`},onChange:r},{default:O(()=>[(b(!0),d(o,null,C(E(t),(t,n)=>(b(),l(g,{label:e.$t(t.name),value:t.value,key:n},{default:O(()=>[m(T(e.$t(t.name)),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])]),f(`div`,Ec,[u[8]||=f(`div`,null,`暗黑模式`,-1),f(`div`,null,[h(Sc,{modelValue:e.cacheLayoutDarkMode,onChange:i},null,8,[`modelValue`])])]),f(`div`,Dc,[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`,Oc,[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:O(()=>[...u[11]||=[m(`其他设置`,-1)]]),_:1}),f(`div`,kc,[u[12]||=f(`div`,null,`语言`,-1),h(_,{modelValue:e.cacheLanguageType,placeholder:e.$t(`选项语言`),style:{width:`100px`},onChange:c},{default:O(()=>[(b(!0),d(o,null,C(e.languageList,(e,t)=>(b(),l(g,{label:e.name,value:e.value},{default:O(()=>[m(T(e.name),1)]),_:2},1032,[`label`,`value`]))),256))]),_:1},8,[`modelValue`,`placeholder`])]),f(`div`,Ac,[u[13]||=f(`div`,null,`版本`,-1),f(`div`,null,[h(x,{onClick:e.frameUpdateVersion,style:{width:`100px`}},{default:O(()=>[m(T(e.$t(`更新版本`)),1)]),_:1},8,[`onClick`])])]),f(`div`,jc,[u[14]||=f(`div`,null,`缓存`,-1),f(`div`,null,[h(x,{onClick:e.frameClearCache,style:{width:`100px`}},{default:O(()=>[m(T(e.$t(`清除缓存`)),1)]),_:1},8,[`onClick`])])])])]),_:1},8,[`modelValue`,`before-close`])}}}),Nc={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{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.$emit(`refreshFunc`,!0)},chainReselection(){this.$emit(`reselectFunc`)},chainSelection(e){this.$emit(`selectFunc`,e)}}},Pc={class:`cloud-login-change-wrap`},Fc={class:`cloud-login-change-box1`},Ic={class:`cloud-login-change-search`},Lc={class:`cloud-login-change-box2`},Rc={class:`cloud-login-change-group-box`},zc={class:`cloud-login-change-group-title`},Bc={class:`cloud-login-change-group-sublist`},Vc=[`onClick`],Hc={class:`cloud-login-change-item-left`},Uc={class:`cloud-login-change-item-left-icon`},Wc=[`src`],Gc={class:`cloud-login-change-item-right`},Kc={class:`cloud-login-change-item-right-label`},qc={class:`cloud-login-change-item-right-label2`},Jc={class:`cloud-login-change-item-more`};function Yc(e,t,n,r,i,a){let s=w(`el-input`),c=w(`el-button`),l=w(`cv-icons`);return b(),d(`div`,Pc,[f(`div`,Fc,[f(`div`,{class:`cloud-login-change-refresh`,onClick:t[0]||=(...e)=>a.chainForceRefresh&&a.chainForceRefresh(...e)},`刷新账号权限`),f(`div`,{class:`cloud-login-change-reset`,onClick:t[1]||=(...e)=>a.chainReselection&&a.chainReselection(...e)},T(n.reselectTitle),1),t[4]||=f(`div`,{class:`cloud-login-change-title`},`选择商户`,-1),t[5]||=f(`div`,{class:`cloud-login-change-desc`},[f(`p`,null,`为规范平台操作、统一平台账号;以便后续提供更多的功能体验;`),f(`p`,null,`后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。`)],-1),f(`div`,Ic,[h(s,{modelValue:i.chainKeyword,"onUpdate:modelValue":t[2]||=e=>i.chainKeyword=e,size:`large`,placeholder:`搜索商户名称`,clearable:``,style:{"max-width":`500px`},onInput:a.chainSearch},null,8,[`modelValue`,`onInput`]),h(c,{size:`large`,onClick:a.chainSearch},{default:O(()=>[...t[3]||=[m(`搜索`,-1)]]),_:1},8,[`onClick`])]),f(`div`,Lc,[f(`div`,Rc,[(b(!0),d(o,null,C(i.chainLastList,(e,t)=>(b(),d(`div`,{class:`cloud-login-change-group-item`,key:t},[f(`div`,zc,T(e.title||`无`)+`(`+T(e.total)+`)`,1),f(`div`,Bc,[(b(!0),d(o,null,C(e.list,(e,t)=>(b(),d(`div`,{class:`cloud-login-change-item-bao`,key:t,onClick:t=>a.chainSelection(e)},[f(`div`,Hc,[f(`div`,Uc,[f(`img`,{src:e.business_icon_cdn},null,8,Wc)])]),f(`div`,Gc,[f(`div`,Kc,T(e.business_name),1),f(`div`,qc,`【`+T(e.acc_rules_type_str)+`】`,1)]),f(`div`,Jc,[h(l,{type:`ElIconArrowRight`})])],8,Vc))),128))])]))),128))])])])])}var Xc=a(Nc,[[`render`,Yc]]),Zc={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)})}}},Qc={class:`dialog-footer`};function $c(e,t,n,r,i,a){let o=w(`el-input`),s=w(`el-form-item`),c=w(`el-form`),u=w(`el-button`),d=w(`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:O(()=>[f(`div`,Qc,[h(u,{onClick:a.handleCancel},{default:O(()=>[...t[4]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleBeforeOk},{default:O(()=>[...t[5]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])]),default:O(()=>[h(c,{model:i.formData,"label-width":`auto`},{default:O(()=>[h(s,{prop:`old_pwd`,label:`原密码`},{default:O(()=>[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:O(()=>[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:O(()=>[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 el=a(Zc,[[`render`,$c]]),tl={key:0,class:`chopt-num`},nl={key:0,class:`chopt-num`},rl={class:`cloud-header__opt cloud-header__info`},il=[`src`],al={class:`chinfo-infoname`},ol={class:`chinfo-infobname`},sl={class:`chinfo-infouname`},cl=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(){Wo().$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(()=>{ys().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=>{e.code==200&&this.$message({message:`退出成功`,type:`success`})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:`/login`})})});break;default:this.$message.info(`应用暂未开通,敬请期待`);break}},chainRefresh(e){let t={};e===!0&&(t.isForceRefresh=1),this.$request.setOptions({timeout:1e4}).flagGet(`ORG_SYS_BASE_CHANGE`,t).then(e=>{this.chainShowFlag=!0,this.chainAccountList=e.data||[]})},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=>{e.status==200&&(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=w(`cv-icon-svg`),r=w(`el-icon`),i=w(`el-dropdown-item`),a=w(`el-dropdown-menu`),s=w(`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:`ElIconChatLineRound`,size:`16`}),e.chatUnreadTotal>0?(b(),d(`em`,tl,T(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:`ElIconMessage`,size:`16`}),e.emailUnreadTotal>0?(b(),d(`em`,nl,T(e.emailUnreadTotal>99?`99+`:e.emailUnreadTotal),1)):u(``,!0)]),f(`div`,rl,[h(s,{onCommand:e.frameHandleCommand,"popper-class":`cloud-header__info_dropdown`},{dropdown:O(()=>[h(a,null,{default:O(()=>[h(i,{command:`account_change`},{default:O(()=>[h(r,{size:`15`},{default:O(()=>[h(As)]),_:1}),t[7]||=m(` 切换账号 `,-1)]),_:1}),h(i,{command:`account_chgpwd`},{default:O(()=>[h(r,{size:`15`},{default:O(()=>[h(Ps)]),_:1}),t[8]||=m(` 修改密码 `,-1)]),_:1}),h(i,{command:`clearCache`,divided:``},{default:O(()=>[h(n,{type:`actionDelete`,size:`15`}),t[9]||=m(` 清除缓存 `,-1)]),_:1}),h(i,{command:`logout`},{default:O(()=>[h(r,{size:`13`},{default:O(()=>[h(Rs)]),_:1}),t[10]||=m(` 退出登录 `,-1)]),_:1})]),_:1})]),default:O(()=>[f(`span`,null,[f(`img`,{class:`chinfo-avatar`,src:e.accountInfo.account_avatar_cdn,title:`头像`},null,8,il),f(`div`,al,[f(`div`,ol,T(e.headerInfoName),1),f(`div`,sl,T(e.headerInfoNick),1)]),h(n,{type:`ElIconArrowDown`})])]),_: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(r,{key:0,size:`16`},{default:O(()=>[h(Hs)]),_:1})),e.full_screen?(b(),l(r,{key:1,size:`16`},{default:O(()=>[h(Ks)]),_:1})):u(``,!0)]),f(`div`,{title:`设置`,class:`cloud-header__opt`,onClick:t[3]||=(...t)=>e.frameTopSysSettOpen&&e.frameTopSysSettOpen(...t)},[h(r,{size:`16`},{default:O(()=>[h(Xs)]),_:1})]),h(Mc,{modelValue:e.frameHeadSysSettDia,"onUpdate:modelValue":t[4]||=t=>e.frameHeadSysSettDia=t},null,8,[`modelValue`]),h(el,{modelValue:e.changeShowFlag,"onUpdate:modelValue":t[5]||=t=>e.changeShowFlag=t},null,8,[`modelValue`]),e.chainShowFlag?(b(),l(Xc,{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)}}}),ll={name:`MenuGroup`,props:{mode:{type:[String],default:`vertical`}},data(){return{activeName:null}},computed:{...M($,[`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){this.activeName=e.name,$().SA_MENU_MODULE_SET(e.children),$().SA_MENU_MODULE_IDX_SET(e.children?.[0]?.name)}}};function ul(e,t,n,r,i,a){let s=w(`cv-mask-svg`),c=w(`cv-badge`),p=w(`el-menu-item`),m=w(`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:O(()=>[(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:O(()=>[t.meta.icon?(b(),l(s,{key:0,name:t.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,T(t.meta.short||t.meta.title),1)]),default:O(()=>[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 dl=a(ll,[[`render`,ul]]),fl={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 pl(e,t,n,r,i,a){let s=w(`cv-mask-svg`),c=w(`MenuItem`,!0),p=w(`el-sub-menu`),m=w(`cv-badge`),g=w(`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:O(()=>[e.meta.icon?(b(),l(s,{key:0,name:e.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,T(e.meta.title),1)]),default:O(()=>[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:O(()=>[e.meta.icon?(b(),l(s,{key:0,name:e.meta.icon,size:`16`,color:`currentColor`},null,8,[`name`])):u(``,!0),f(`span`,null,T(e.meta.short||e.meta.title),1)]),default:O(()=>[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 ml=a(fl,[[`render`,pl]]),hl={name:`MenuModule`,props:{mode:{type:[String],default:`vertical`}},data(){return{activeName:``}},computed:{...M($,[`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){}}},gl=Object.assign(hl,{setup(e){return(t,n)=>{let r=w(`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:O(()=>[h(ml,{menuData:t.menuHaveCurr},null,8,[`menuData`])]),_:1},8,[`mode`,`collapse`,`default-openeds`,`default-active`,`onOpen`,`onClose`])}}}),_l=e=>e**3,vl=e=>e<.5?_l(e*2)/2:1-_l((1-e)*2)/2,yl={name:`MenuNavTabs`,data(){return{sett_tags:[{title:`概览`,path:`/index`,name:`index`}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let e in this.sett_tags)if(this.sett_tags[e].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName(`xxxxxx-tag`);e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){let e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(e=>setTimeout(e,16)),i=()=>{let a=(Date.now()-t)/500;a<1?(e.scrollLeft=n*(1-vl(a)),r(i)):e.scrollLeft=0};r(i)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){let e=this.$refs.navScroll1.wrap;e.scrollLeft+=300},async removeTag(e,t){if(e.path!=`/index`){if(this.$route.meta.close_tip){let e=!1;if(await this.$confirm(`将要关闭正在编辑的页面, 是否继续?`,`提示`,{confirmButtonText:`确定`,cancelButtonText:`取消`,type:`warning`}).then(()=>{e=!1}).catch(()=>{e=!0}),e)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push(`/`);return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector(`#tagId`);e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split(`-`)[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},bl={class:`cloud-navtabs__wrap`},xl={class:`cloud-navtabs__box`},Sl={class:`cloud-navtabs__main`},Cl={class:`cloud-navtabs__tags`};function wl(e,t,n,r,i,a){let s=w(`cv-icon-svg`),c=w(`cv-btn-base`),u=w(`el-tag`),p=w(`el-scrollbar`),g=w(`cv-btn-text`);return b(),d(`div`,bl,[f(`div`,xl,[h(c,{class:`btn-opt-left`,onClick:a.changeGdtLeft},{default:O(()=>[h(s,{type:`ElIconArrowLeft`})]),_:1},8,[`onClick`]),f(`div`,Sl,[h(p,{ref:`navScroll1`},{default:O(()=>[f(`div`,Cl,[(b(!0),d(o,null,C(i.sett_tags,(e,t)=>(b(),l(u,{id:i.activeTag==e.name?`tagId`:``,class:v([`tag xxxxxx-tag`,i.activeTag==e.name?`active`:``]),key:e.name,closable:e.path!==`/index`,onClose:n=>a.removeTag(e,t),onClick:t=>a.changeMenu(e),"disable-transitions":``,onContextmenu:A(a.openContextMenu,[`prevent`])},{default:O(()=>[m(T(e.title),1)]),_:2},1032,[`id`,`class`,`closable`,`onClose`,`onClick`,`onContextmenu`]))),128))])]),_:1},512)]),h(c,{class:`btn-opt-right`,onClick:a.changeGdtRight},{default:O(()=>[h(s,{type:`ElIconArrowRight`})]),_:1},8,[`onClick`]),h(c,{class:`btn-opt-close`},{default:O(()=>[t[5]||=m(` 关闭操作 `,-1),h(s,{type:`ElIconCaretBottom`})]),_:1}),k(f(`div`,{class:`cloud-navtabs__contextmenu`,style:y(i.contextMenuStyle)},[f(`ul`,{style:y({left:i.left+`px`,top:i.top+`px`})},[f(`li`,null,[h(g,{onClick:t[0]||=e=>a.curTabReload()},{default:O(()=>[...t[6]||=[m(`重新加载`,-1)]]),_:1})]),f(`li`,null,[h(g,{onClick:t[1]||=e=>a.closeAllTabs()},{default:O(()=>[...t[7]||=[m(`关闭所有`,-1)]]),_:1})]),f(`li`,null,[h(g,{onClick:t[2]||=e=>a.closeOtherTabs(`left`),disabled:i.isDisabledCloseLeftBtnFlag},{default:O(()=>[...t[8]||=[m(`关闭左边`,-1)]]),_:1},8,[`disabled`])]),f(`li`,null,[h(g,{onClick:t[3]||=e=>a.closeOtherTabs(`right`),disabled:i.isDisabledCloseRightBtnFlag},{default:O(()=>[...t[9]||=[m(`关闭右边`,-1)]]),_:1},8,[`disabled`])]),f(`li`,null,[h(g,{onClick:t[4]||=e=>a.closeOtherTabs(`other`)},{default:O(()=>[...t[10]||=[m(`关闭其他`,-1)]]),_:1})])],4)],4),[[re,i.contextMenuVisible]])])])}var Tl=a(yl,[[`render`,wl]]),El={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 Dl(e,t,n,r,i,a){let o=w(`el-watermark`);return b(),l(o,_(a.watemarkConf,{style:{height:`100%`}}),{default:O(()=>[ee(e.$slots,`default`)]),_:3},16)}var Ol=a(El,[[`render`,Dl]]),kl={props:{className:``},data(){return{routeRefreshAnimation:``,routeRefreshNum:0}},computed:{...M(vs,[`routeAlive`])},watch:{routeAlive(e){this.routeRefreshAnimation=`subapp-slide-right`,this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=``})}},methods:{}};function Al(e,t,n,r,i,a){let o=w(`router-view`);return b(),l(o,{key:i.routeRefreshNum},{default:O(({Component:e,route:t})=>[h(s,{name:i.routeRefreshAnimation,mode:`out-in`,appear:``},{default:O(()=>[(b(),d(`div`,{class:v(n.className),key:t.path},[(b(),l(ne(e)))],2))]),_:2},1032,[`name`])]),_:1})}var jl=a(kl,[[`render`,Al]]),Ml={style:{display:`flex`,flex:`1`,overflow:`hidden`}},Nl={class:`cloud-sidebar__title`},Pl=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=w(`el-aside`),r=w(`el-container`);return b(),l(Ol,{style:y(e.frameWatermark)},{default:O(()=>[e.cacheLayoutType==`layoutType1`?(b(),l(r,{key:0,direction:`horizontal`,style:{height:`100%`}},{default:O(()=>[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:O(()=>[h(Gn),h(gl)]),_:1},8,[`style`]),h(r,{direction:`vertical`,class:`cloud-pages__wrap`,style:{display:`flex`,"flex-direction":`column`}},{default:O(()=>[h(Ln,{style:{"--el-header-height":`50px`,position:`unset`}},{default:O(()=>[h(xs),h(Ss),h(Es),t[0]||=f(`div`,{class:`cloud-header__seat`},null,-1),h(cl)]),_:1}),k(h(Tl,null,null,512),[[re,e.cacheLayoutNavTabs==`openNavtabs`]]),h(jl,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType2`?(b(),l(r,{key:1,direction:`horizontal`,style:{height:`100%`}},{default:O(()=>[h(n,{class:`cloud-menu-group-aside`},{default:O(()=>[h(Gn),h(dl),t[1]||=f(`div`,{style:{height:`20px`}},null,-1)]),_:1}),f(`div`,Ml,[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:O(()=>[f(`div`,Nl,T(e.cacheInstInfo.LAST_IP_TITLE),1),h(gl)]),_:1},8,[`style`]),h(r,{direction:`vertical`,class:`cloud-pages__wrap`,style:{display:`flex`,"flex-direction":`column`}},{default:O(()=>[h(Ln,{style:{"--el-header-height":`50px`,position:`unset`}},{default:O(()=>[h(xs),h(Ss),h(Es),t[2]||=f(`div`,{class:`cloud-header__seat`},null,-1),h(cl)]),_:1}),k(h(Tl,null,null,512),[[re,e.cacheLayoutNavTabs==`openNavtabs`]]),h(jl,{className:`cloud-pages__box`})]),_:1})])]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType3`?(b(),l(r,{key:2,direction:`vertical`,style:{height:`100%`}},{default:O(()=>[h(Ln,null,{default:O(()=>[h(Gn),h(n,{class:`cloud-menu-group-aside`},{default:O(()=>[h(dl,{mode:`horizontal`})]),_:1}),t[3]||=f(`div`,{style:{width:`100px`}},null,-1),h(Ss),h(cl)]),_:1}),h(r,{direction:`horizontal`,class:`cloud-pages__wrap`,style:{height:`calc(100% - 50px)`}},{default:O(()=>[h(n,{class:`cloud-menu-module-aside`,style:y(e.frameSiderMenu)},{default:O(()=>[h(gl)]),_:1},8,[`style`]),h(jl,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0),e.cacheLayoutType==`layoutType4`?(b(),l(r,{key:3,direction:`vertical`,style:{height:`100%`}},{default:O(()=>[h(Ln,null,{default:O(()=>[h(Gn),h(n,{class:`cloud-menu-group-aside`},{default:O(()=>[h(gl,{mode:`horizontal`})]),_:1}),t[4]||=f(`div`,{style:{width:`100px`}},null,-1),h(Ss),h(cl)]),_:1}),h(r,{direction:`horizontal`,class:`cloud-pages__wrap`,style:{height:`calc(100% - 50px)`}},{default:O(()=>[h(jl,{className:`cloud-pages__box`})]),_:1})]),_:1})):u(``,!0)]),_:1},8,[`style`])}}}),Fl={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)}}}},Il={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},Ll={style:{width:`100%`,height:`500px`}},Rl={class:`cloud-dia-choice-box`},zl={class:`cloud-dia-choice-left`},Bl={class:`cloud-dia-choice-right`},Vl={class:`cloud-dia-right-tools`},Hl={class:`cloud-dia-right-list`},Ul=[`src`,`onClick`],Wl={class:`cloud-dia-right-item_text`},Gl={key:1},Kl={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function ql(e,t,n,r,i,a){let s=w(`el-input`),c=w(`el-tree`),u=w(`cv-btn-base`),p=w(`el-upload`),g=w(`cv-select-tree`),_=w(`el-badge`),y=w(`cv-icons`),x=w(`el-pagination`),S=te(`loading`);return k((b(),d(`div`,Il,[f(`div`,Ll,[f(`section`,Rl,[f(`section`,zl,[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`,Bl,[f(`div`,Vl,[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:O(()=>[h(u,{type:`primary`},{default:O(()=>[...t[2]||=[m(`上传图片`,-1)]]),_:1})]),_:1},8,[`action`,`on-preview`,`on-remove`,`file-list`]),h(u,{type:`primary`,disabled:i.activeImageUrl.length===0},{default:O(()=>[...t[3]||=[m(`使用选中图片`,-1)]]),_:1},8,[`disabled`]),h(u,{type:`danger`,disabled:i.activeImageUrl.length===0},{default:O(()=>[...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`,Hl,[(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:O(()=>[f(`img`,{class:v(i.activeImageState[t]&&`active`),src:e.cdn_full_path,alt:``,onClick:n=>a.handleClickImage(e,t)},null,10,Ul)]),_:2},1032,[`class`,`value`]),f(`div`,Wl,[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`,Gl,T(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`,Kl,[h(u,{onClick:a.handleClose},{default:O(()=>[...t[5]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:O(()=>[...t[6]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[S,i.isLoading]])}var Jl=a(Fl,[[`render`,ql]]),Yl={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(Jl,{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()}}},Xl={style:{display:`flex`,"flex-direction":`column`,gap:`10px`}};function Zl(e,t,n,r,i,a){let o=w(`cv-btn-base`),s=w(`cv-upload-image`);return b(),d(`view`,Xl,[h(o,{onClick:a.handleDiaImage,style:{width:`150px`}},{default:O(()=>[...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 Ql=a(Yl,[[`render`,Zl]]),$l={style:{"font-size":`12px`}},eu={style:{color:`red`,"font-weight":`bold`}},tu={style:{"white-space":`pre-line`,"word-break":`break-word`,"line-height":`1.5`,padding:`10px`}},nu=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=w(`cv-input-text`),i=w(`cv-input-number`),a=w(`cv-input-digit`),s=w(`cv-textarea`),c=w(`cv-radio-opt-base`),g=w(`cv-radio-group`),_=w(`cv-checkbox-opt-base`),v=w(`cv-checkbox-group`),y=w(`cv-form-item`),x=w(`cv-form-base`);return b(),l(x,{ref:`refFormBase`,rules:t.formRules,model:t.formData},{default:O(()=>[(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:O(()=>[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:O(()=>[...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`,$l,[n[1]||=m(` 计算为 `,-1),f(`span`,eu,`:`+T(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:O(()=>[h(c,{label:`开启`,value:`on`},{default:O(()=>[...n[3]||=[m(`开启`,-1)]]),_:1}),h(c,{label:`关闭`,value:`off`},{default:O(()=>[...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:O(()=>[(b(!0),d(o,null,C(e.field_form_option,(e,t)=>(b(),l(c,{key:t,value:e.value},{default:O(()=>[m(T(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:O(()=>[(b(!0),d(o,null,C(e.field_form_option,(e,t)=>(b(),l(_,{key:t,label:e.label,value:e.value},{default:O(()=>[m(T(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`])):u(``,!0),e.field_form_type==`upload_image`?(b(),l(Ql,{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:O(()=>[f(`div`,tu,T(e.field_form_tip),1)]),key:`0`}:void 0]),1032,[`label`,`required`]))),128))]),_:1},8,[`rules`,`model`])}}}),ru={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`)}}},iu={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},au={style:{width:`100%`,height:`500px`}},ou={class:`cloud-dia-choice-box`},su={class:`cloud-dia-choice-left`},cu={class:`cloud-dia-choice-right`},lu={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function uu(e,t,n,r,i,a){let o=w(`el-input`),s=w(`el-tree`),c=w(`cv-input-text`),l=w(`cv-form-item`),u=w(`cv-btn-base`),p=w(`cv-form-inline`),g=w(`cvTbColumnCheck`),_=w(`cvTbColumnText`),v=w(`cvTbColumnImg`),y=w(`cv-btn-text`),x=w(`cvTbColumnOpt`),S=w(`cvTableBase`),C=te(`loading`);return k((b(),d(`div`,iu,[f(`div`,au,[f(`section`,ou,[f(`section`,su,[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`,cu,[h(p,{ref:`refFormBase`,rules:i.rightSoRules,model:i.rightSoData},{default:O(()=>[h(l,{label:`商品搜索`},{default:O(()=>[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:O(()=>[h(u,{svg:`actionSearch`,type:`primary`,onClick:t[2]||=t=>e.$refs.refDiaSelectTb.searchSubmit(i.rightSoData)},{default:O(()=>[...t[5]||=[m(` 搜索 `,-1)]]),_:1}),h(u,{svg:`arrowRefreshLeft`,onClick:t[3]||=t=>(i.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit())},{default:O(()=>[...t[6]||=[m(` 重置 `,-1)]]),_:1})]),_:1})]),_:1},8,[`rules`,`model`]),h(S,{ref:`refDiaSelectTb`,tableConfig:i.tableConfig,tableRefresh:i.tableRefresh,height:`390`},{default:O(()=>[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:O(({row:e,$index:n})=>[h(y,{onClick:t=>a.handleSelect(e)},{default:O(()=>[...t[7]||=[m(`选择`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`tableConfig`,`tableRefresh`])])])]),f(`div`,lu,[h(u,{onClick:a.handleClose},{default:O(()=>[...t[8]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:O(()=>[...t[9]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[C,i.isLoading]])}var du=a(ru,[[`render`,uu]]),fu={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`)}}},pu={"element-loading-text":`加载中`,"element-loading-spinner":`el-icon-loading`,class:`cloud-dialog-choice-wrap`},mu={style:{width:`100%`,height:`500px`}},hu={class:`cloud-dia-choice-box`},gu={class:`cloud-dia-choice-left`},_u={class:`cloud-dia-choice-right`},vu={style:{padding:`10px 20px 0 0`,"text-align":`right`,"box-sizing":`border-box`}};function yu(e,t,n,r,i,a){let o=w(`el-input`),s=w(`el-tree`),c=w(`cv-input-text`),l=w(`cv-form-item`),u=w(`cv-btn-base`),p=w(`cv-form-inline`),g=w(`cvTbColumnCheck`),_=w(`cvTbColumnText`),v=w(`cvTbColumnImg`),y=w(`cv-btn-text`),x=w(`cvTbColumnOpt`),S=w(`cvTableBase`),C=te(`loading`);return k((b(),d(`div`,pu,[f(`div`,mu,[f(`section`,hu,[f(`section`,gu,[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`,_u,[h(p,{ref:`refFormBase`,rules:i.rightSoRules,model:i.rightSoData},{default:O(()=>[h(l,{label:`名称`},{default:O(()=>[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:O(()=>[h(u,{svg:`actionSearch`,type:`primary`,onClick:t[2]||=t=>e.$refs.refDiaSelectTb.searchSubmit(i.rightSoData)},{default:O(()=>[...t[5]||=[m(` 搜索 `,-1)]]),_:1}),h(u,{svg:`arrowRefreshLeft`,onClick:t[3]||=t=>(i.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit())},{default:O(()=>[...t[6]||=[m(` 重置 `,-1)]]),_:1})]),_:1})]),_:1},8,[`rules`,`model`]),h(S,{ref:`refDiaSelectTb`,tableConfig:i.tableConfig,tableRefresh:i.tableRefresh,height:`390`},{default:O(()=>[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:O(({row:e,$index:n})=>[h(y,{onClick:t=>a.handleSelect(e)},{default:O(()=>[...t[7]||=[m(`选择`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`tableConfig`,`tableRefresh`])])])]),f(`div`,vu,[h(u,{onClick:a.handleClose},{default:O(()=>[...t[8]||=[m(`取 消`,-1)]]),_:1},8,[`onClick`]),h(u,{type:`primary`,onClick:a.handleConfirm,autoLoading:``},{default:O(()=>[...t[9]||=[m(`确 定`,-1)]]),_:1},8,[`onClick`])])])),[[C,i.isLoading]])}var bu=a(fu,[[`render`,yu]]);(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 xu={methods:{jumpsXieyi(e){let{sdkConfigData:t}=Te(),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(){vs().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 Su(e,t){e.mixin(xu)}var Cu={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 wu(e){e.use(se,{locale:Cu});for(let[t,n]of Object.entries(fe))e.component(`ElIcon`+t,n)}var Tu=`__syCacheAppConfig__`;async function Eu(e){let t=await B.idbGetItem(Tu),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(pe,{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 Du(e,t){let{sdkConfigSet:n}=Te();n({...t}),_o(e),Zo().init(),Q().init(),await Lo().init(),await X().init()}async function Ou(e,t,n,r,i=``,a=null){let o=e.config.globalProperties;$().init(r),vs().init(n),o.$request=Y,o.$cache=B,wu(e),await Eu(e),Pn(e,o),e.mixin(bs()),e.component(`SdkFormEdit`,nu),e.component(`SdkManageImage`,Ql),Su(e,o),await ku(t,r,i),e.use(Go),qo(Zo().SA_LANGUAGE_GET(),a),window.$t=Ko.t}async function ku(e,t,n){let{sdkConfigData:r}=Te(),{checkRoute:a}=Mn(),o=Zn(),s=X(),c=$(),l=vs();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_run`].includes(n)?{path:`/`}:void 0}else return c.SA_MENU_PARSE(),d=!1,p||=(o.QK_SEND_LOGOUT_MSG(),f=!1,!0),[`/login`,`/alone_run`].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 Au(e,t,n){i.__POWERED_BY_QIANKUN__,i.__POWERED_BY_QIANKUN__?Xn(e,t,n):t()}export{B as C,Ce as E,Mn as S,be as T,Lo as _,du as a,_o as b,jl as c,ys as d,$ as f,Wo as g,Zo as h,bu as i,Ol as l,Q as m,Du as n,Jl as o,vs as p,Ou as r,Pl as s,Au as t,Xc as u,X as v,Te as w,Zn as x,Y as y};