asai-vue-host 0.2.47 → 0.2.48

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,5 +1,5 @@
1
1
  import { defineComponent as l, resolveComponent as p, createElementBlock as n, openBlock as c, createElementVNode as e, createCommentVNode as _, unref as o, toDisplayString as r, createVNode as m } from "vue";
2
- import { _ as u } from "./index-BEMlfzfx.mjs";
2
+ import { _ as u } from "./index-DIzxivxs.mjs";
3
3
  const g = { class: "page-404" }, f = { class: "content" }, v = {
4
4
  key: 0,
5
5
  class: "title"
@@ -1,4 +1,4 @@
1
- import { a as f } from "./index-BEMlfzfx.mjs";
1
+ import { a as f } from "./index-DIzxivxs.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,6 +2,6 @@
2
2
  window.cbdata;
3
3
  function asaiJsonp(data) {
4
4
  cbdata=data;
5
- }`,document.body.appendChild(t);let s=document.createElement("script");s.src=`${o}&&callback=asaiJsonp`,s.type="text/javascript",s.async=!0,document.body.appendChild(s),s.onload=()=>{document.body.removeChild(s),n&&n(window?.cbdata),document.body.removeChild(t)}}catch{n&&n("ERROR")}},localTime(o,n=0){if(n){const t=JSON.parse(this.localGet("astime")||"{}");t[o]=n,localStorage.setItem("astime",JSON.stringify(t))}else{const t=JSON.parse(this.localGet("astime")||"{}");if(t[o])return t[o]}return 0},localSet(o,n,t=localStorage){try{typeof n=="object"?t.setItem(o,JSON.stringify(n)):t.setItem(o,String(n))}catch(s){console.error("localSet error:",s)}},localGet(o,n=localStorage){try{return n.getItem(o)}catch{}return""},localRemove(o,n=localStorage){try{return n.removeItem(o)}catch{}},localClears(o=null,n=localStorage){if(o?.length){let t;for(let s in n)t=o.find(l=>s.startsWith(l)),t&&this.localRemove(s,n)}else this.localClear(n)},localClear(o=localStorage){o.clear()},localInit(o=localStorage){this.localClear(o),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(o){const n=window.event||o;return n?.preventDefault(),n?.stopPropagation(),!0},fullScreen(o=""){const n=o?document.getElementById(o):document.documentElement||document.body,t=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(t)t.call(n);else{const{ActiveXObject:s}=window;if(typeof s<"u"){const l=new s("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const o=document?.exitFullscreen;if(o)document.fullscreenElement!==null&&o.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const t=new n("WScript.Shell");t!==null&&t.SendKeys("{F11}")}}},fullScreenDo(o=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),o&&o()},toNums(o,n=0){return o&&Object.keys(o).forEach(t=>{typeof o[t]=="number"&&(o[t]=this.toNum(o[t],n))}),o},toNum(o,n=0){return typeof o!="number"&&typeof o=="string"&&(o=Number(o)),Number.isNaN(o)&&(o=0),o&&n&&(o=Math.round(o*10**n)/10**n),o},toObj(o){try{return o&&typeof o=="string"?JSON.parse(o):o}catch{return{err:"不是JSON格式数据"}}},toStr(o){if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{const t=[];return JSON.stringify(o,(s,l)=>{if(typeof l=="object"&&l!==null){if(t.indexOf(l)!==-1)return;t.push(l)}return l})}},toArr(o,n=0){if(o){if(Array.isArray(o))return o;if(typeof o=="object")return Object.entries(o)}return n?[]:null},setObjValByPath(o,n,t,s=0){try{const l=n.split(".");let c=o;for(let d=0;d<l.length-1;d++){const m=l[d];if(c[m]===void 0||typeof c[m]!="object"||c[m]===null)if(s)c[m]={};else return!1;c=c[m]}const u=l[l.length-1];return c[u]=t,!0}catch{return!1}},isValidFileName(o){if(!o||o.length===0)return!1;const n=o.length;for(let s=0;s<n;s++){const l=o.charCodeAt(s);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const t=o.charCodeAt(n-1);return!(t===32||t===46)},getTime(o=6,n=0){let t="",s;n?(n<9999999999&&(n=n*1e3),s=new Date(n)):s=new Date;const[l,c]=o>9?o+"":"0"+o;function u(d){return+l<=d&&+c>=d}return u(1)&&(t+=("00"+s.getFullYear()).slice(-4)+"-"),u(2)&&(t+=("00"+(s.getMonth()+1)).slice(-2)+"-"),u(3)&&(t+=("00"+s.getDate()).slice(-2)+" "),u(4)&&(t+=("00"+s.getHours()).slice(-2)+":"),u(5)&&(t+=("00"+s.getMinutes()).slice(-2)+":"),u(6)&&(t+=("00"+s.getSeconds()).slice(-2)+"."),u(7)&&(t+=("000"+s.getMilliseconds()).slice(-3)+" "),u(9)?t.replace(/\D/g,""):t&&t.substring(0,t.length-1)},toFormTime(o=0){return this.getTime(6,o).replace(" ","T")},fromFormTime(o="",n=1){const t=o?new Date(o).getTime():new Date().getTime();return Math.floor(t/n)},Uuid(o="",n=0,t=32){return[o.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,c)=>l+(c&15).toString(t),"")].join("").slice(0,16)},downloadTxt(o="",n=""){if(o){typeof o=="object"&&(o=JSON.stringify(o));const t=document.createElement("a");t.style.display="none";const s=new Blob([o],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(s);t.href=l,t.setAttribute("download",n),document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(l)}},downloadFile(o="",n=""){const t=document.createElement("a");t.href=o,n?t.download=n:t.download=o.slice(o.lastIndexOf("/")+1),document.body.appendChild(t),t.click(),document.body.removeChild(t)},debounce(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||o(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(o(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(o){try{return this.localSet("as-clipboard",o),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(o){throw o}},DeepClone(o,n=new WeakMap){if(o===null||typeof o!="object")return o;if(n.has(o))return n.get(o);if(o instanceof Date)return new Date(o);if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const s=new Map;return n.set(o,s),o.forEach((l,c)=>{s.set(this.DeepClone(c,n),this.DeepClone(l,n))}),s}if(o instanceof Set){const s=new Set;return n.set(o,s),o.forEach(l=>{s.add(this.DeepClone(l,n))}),s}const t=Array.isArray(o)?[]:{};n.set(o,t);for(let s in o)o.hasOwnProperty(s)&&(t[s]=this.DeepClone(o[s],n));return t}}},Symbol.toStringTag,{value:"Module"})),O=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(o){return btoa(unescape(encodeURIComponent(o)))},base64Decode(o){try{return decodeURIComponent(escape(atob(o)))}catch(n){return console.error("base64Decode error:",n),""}},simpleEncrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)+n)).join("")},simpleDecrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)-n)).join("")},enc(o){const n=this.simpleEncrypt(o,5);return this.base64Encode(n)},dec(o){const n=this.base64Decode(o);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),N={webpath:window?.$CFG?.webpath||"./",_hashChangeListener:null,_popstateListener:null,initHash(o={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{o.hash=window.location.pathname||"",this.setRouter(o)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{o.hash=window.location.hash?.replace("#","")||"",this.setRouter(o)},window.addEventListener("hashchange",this._hashChangeListener))},offHash(){this.webpath.startsWith("/")?this._popstateListener&&(window.removeEventListener("popstate",this._popstateListener),this._popstateListener=null):this._hashChangeListener&&(window.removeEventListener("hashchange",this._hashChangeListener),this._hashChangeListener=null)},setHref(o){window.location.href=o},getHref(){return window?.location?.href},setHash(o={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),o.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",o.hash),this.setRouter(o)):window.location.hash=o.hash},getQuery(o={},n=""){return o.query={},n&&n.split("&").forEach(t=>{const[s,l]=t.split("=");s&&l&&(o.query[s]=decodeURIComponent(l))}),o.query},getHasharr(o){let n=o.hash;if(o.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[t,s]=n.split("?");let l=t?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();o.hasharr=l,this.getQuery(o,s)}return o.hasharr},setRouter(o){this.getHasharr(o);const n=o.hasharr||[],t=o.hasharr?.length||0;if(o.comps=[],t>0){let s="";for(let l=0;l<t;l++)s=`${s}${n[l]}/`,l==t-1?o.comps[l]=`${s}default`:o.comps[l]=`${s}index`}return o.comps?.length||(o.comps[0]="default"),o.comps},setTitle(o="",n=null){const s=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";o?document.title=`${o}${s?" - "+s:""}`:document.title=`${s}`}},P=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null,default:o=>{const{$fn:n,$model:t,$db:s,$dbwork:l,$global:c}=o;function u(d="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs?.(d),m?.["$engine"+d]&&(Object.assign(n,m["$engine"+d]),m?.["$engineuse"+d]&&Object.assign(n,m["$engineuse"+d])),t[d]||(t[d]={}),l[d]||(l[d]={}),s[d]||(s[d]={}),n.setconfig=(b,y)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+b+".json",y),n.changelangpro=(b="")=>n.changelang(c.config.langcur||b).then(y=>{c?.sys?.local?.lang?d&&n.ws?.[d]&&n.ws[d].wsSend({id:"1",ty:"common/setlanguage",db:y}):n.setconfig("settinglang",{lang:b})}),n.changethemepro=(b="")=>c?.sys?.local?.theme?n.changetheme(b):n.setconfig("settingtheme",{theme:b});const h=[n.initlang(c.config.langcur||"")];return h.push(n.initmodel(d+"/dirmodel.json").then(b=>{b&&Object.assign(t[d],b)})),Promise.all(h)}return{initAppModel:u}}},Symbol.toStringTag,{value:"Module"})),x=e.reactive({providedb:{data:{}}}),M=e.reactive({providedbwork:{data:{}}}),T=e.reactive({provideglobal:{data:{sys:null,wd:{w:0,h:0},config:{theme:"theme-light",lang:"",langcur:""},theme:"",stat:{webclient:0,web:0,cocontrol:0},user:{info:null,online:0},code:{pri:null,pub:null,token:""},location:{},pop:{},url:{},module:{value:"",label:""},keyboard:{comps:{},areastyle:{},opt:{},showkeyboard:""}}}}),R=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),C={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},L=Object.freeze(Object.defineProperty({__proto__:null,default:(o=null)=>{const n=window;Object.assign(C.providefn.data,o?.plugs||{});const t={$db:x.providedb.data,$dbwork:M.providedbwork.data,$ws:R.providews.data,$global:T.provideglobal.data,$model:n.$GYS.$webmodel,$fn:C.providefn.data};t.$global.$cfg=n.$CFG||{},n.$GYS.ujt=t,t.$fn.lo=(...a)=>{if(t.$global.sys?.onconsole){if(!a?.[0])t.$model.gysfn.log();else if(a.length>0){let r="",f="",i="";if(a[1]&&typeof a[1]=="string"){const[p,g,..._]=a;f=g,i=_,Array.isArray(a[0])&&a[0].length===2?r=l(a[0][0],a[0][1],"12px"):typeof a[0]=="number"&&(r=s(p,12))}r?console.log("%c"+f,r,...i):console.log(...a)}}},t.$model.gysfn.log=()=>(console.log("%c$fn",s(6,18),c(t.$fn),t.$fn),console.log("%c$model",s(5,18),c(t.$model),t.$model),console.log("%c$global",s(4,18),c(t.$global),t.$global),console.log("%c$ws",s(3,18),c(t.$ws),t.$ws),console.log("%c$db",s(2,18),c(t.$db),t.$db),console.log("%c$dbwork",s(1,18),c(t.$dbwork),t.$dbwork),"Web Model Log。");function s(a,r=18){let f="";return a===1?f=l("black","pink",r+"px"):a===2?f=l("black","cyan",r+"px"):a===3?f=l("black","yellow",r+"px"):a===4?f=l("white","blue",r+"px"):a===5?f=l("white","red",r+"px"):a===6?f=l("white","green",r+"px"):a===7&&(f=l("white","purple",r+"px")),f}function l(a,r,f="18px"){return"font-size:"+f+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+a+";background-color:"+r+";"}function c(a){try{return"size=>"+((a&&JSON.stringify(a)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function u(a={}){t.$global.pop.popdefaultconfirm&&(t.$global.pop.popdefaultconfirm.stat=1,t.$global.pop.popdefaultconfirm.full=1,t.$global.pop.popdefaultconfirm.notit=1,Object.assign(t.$global.pop.popdefaultconfirm,a))}function d(a={}){t.$global.pop.popdefaultconfirmpass&&(t.$global.pop.popdefaultconfirmpass.stat=1,t.$global.pop.popdefaultconfirmpass.full=1,t.$global.pop.popdefaultconfirmpass.notit=1,Object.assign(t.$global.pop.popdefaultconfirmpass,a))}t.$fn.popConfirm=u,t.$fn.popConfirmPass=d,t.$fn.getWebPath=(a="")=>{const r=t?.$global?.$cfg?.webpath||"./";return a&&!a.startsWith("http")&&!a.startsWith(r)?r+a:a};const{fetchPublic:m}=t.$fn?.AsaiModel(t.$fn.getWebPath("webmodel/"));t.$fn.initmodel=m,t.$fn.startLink=()=>new Promise((a,r)=>{t.$fn.initmodel("sys/server.json").then(f=>{const i={api:{},ws:{}};["api","ws"].forEach(p=>{Object.keys(f?.[p]||{}).forEach(g=>{let _=f[p][g];_&&typeof _=="string"&&(_=i[p][_]),_||(_=f[p].default),i[p][g]={..._,url:t.$fn.As.getUrlByCfg(_,p=="ws"?1:0)}})}),t.$fn.As.localSet("as-link",JSON.stringify(i)),t.$global.link=i,a(t.$global.link)}).catch(f=>{r(f)})}),t.$fn.saveLink=a=>{t.$global.link=a,t.$fn.As.localSet("as-link",JSON.stringify(t.$global.link))},t.$fn.initLink=(a=0)=>new Promise((r,f)=>{if(a)t.$fn.startLink().then(i=>{r(i)}).catch(i=>{f(i)});else{let i=t.$fn.As.localGet("as-link");i?(t.$global.link=JSON.parse(i),t.$global.link?.api&&t.$global.link?.ws&&t.$global.link?.ws?.default?r(t.$global.link):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{f(p)})):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{f(p)})}});const h=new Map,b=/\$(\d+)/g;t.$fn.lg=(a,r)=>{if(typeof a!="string"||!a)return;let f=h.get(a);f||(f=a.split("."),h.set(a,f));const i=f.reduce((_,$)=>_?.[$],t.$global.lang);if(!r||r.length===0)return i;const p=Array.isArray(r)?r:[r];return i?.replace(b,(_,$)=>{const j=parseInt($,10)-1;return p[j]??_})},t.$fn.changetheme=(a="")=>new Promise((r,f)=>{try{let i="";t.$global?.sys?.local?.theme?i=t.$fn.As.localGet(t.$global?.sys?.local?.theme)||t.$model.data.sys.settingtheme.theme||t.$model.data.sys.sysconfig.theme[0]:i=t.$model.data.sys.settingtheme.theme||t.$model.data.sys.sysconfig.theme[0],a&&i===a?r():(a==="auto"?i=i==t.$model.data.sys.sysconfig.theme[0]?t.$model.data.sys.sysconfig.theme[1]:t.$model.data.sys.sysconfig.theme[0]:a&&(i=a),t.$global?.sys?.local?.theme&&t.$fn.As.localSet(t.$global?.sys?.local?.theme,i)),i&&t.$global?.config?.theme!==i&&(t.$global?.config?.theme&&document?.body?.classList?.contains(t.$global.config.theme)&&document.body.classList.remove(t.$global.config.theme),t.$global.config.theme=i),document?.body?.classList?.contains(i)||document.body.classList.add(i),r()}catch(i){f(i)}}),t.$fn.initlang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=a||t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=a||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],t.$global?.lang||(t.$global.lang={}),new Promise((f,i)=>{t.$fn.initmodel("lang/dirlang.json",r+"/").then(p=>{Object.assign(t.$global.lang,p),f(t.$global.lang)}).catch(p=>{i(p)})})},t.$fn.changelang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=t.$global.config.langcur||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],new Promise((f,i)=>{a&&r===a&&t.$global?.lang?f(r):(a==="auto"?r=r==t.$model.data.sys.sysconfig?.lang[0]?t.$model.data.sys.sysconfig?.lang[1]:t.$model.data.sys.sysconfig?.lang[0]:a&&(r=a),t.$global?.sys?.local?.lang&&t.$fn.As.localSet(t.$global?.sys?.local?.lang,r),t.$global?.sys?.local?.lang||!t.$global.config.lang?(t.$global.config.lang=r,t.$fn.initlang(r).then(p=>{f(r)}).catch(p=>{i(p)})):f(r))})},t.$fn.initver=()=>{if(t.$global.sys?.webver){const a=t.$fn.As.localGet("as-web-ver");if(a){if(t.$global.sys?.webver!==a)return t.$fn.As.localInit(),!0}else t.$fn.As.localSet("as-web-ver",t.$global.sys?.webver||"")}return!1},t.$fn.initweb=async a=>{try{let r=function(){const{protocol:i,hostname:p,port:g,hash:_}=n.location;t.$global.location={protocol:i,hostname:p,port:g,hash:_.replace("#",""),comps:[],query:{}},t.$fn.AsRouter.initHash(t.$global.location),$();function $(){t.$fn.AsRouter.setRouter(t.$global.location)}t.$fn.setquery=(j={},A=0)=>{let k;A?k=new URLSearchParams({...t.$global.location.query||{},...j||{}}).toString():k=new URLSearchParams(j||{}).toString(),k?k=t.$global.location.hash.split("?")[0]+"?"+k:k=t.$global.location.hash.split("?")[0],t.$fn.AsRouter.setHash(t.$global.location,k),$()},t.$fn.sethash=(j="")=>{t.$fn.AsRouter.setHash(t.$global.location,j)},t.$fn.exit=(j=0)=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$global.code.token=null,j&&(t.$fn.sethash(""),t.$fn.As.localReload())},t.$fn.login=()=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$fn.sethash(t.$global.sys?.router?.config?.login||"user/login")}};Object.assign(t.$fn,a.$engineasai||{}),Object.assign(t.$fn,a.$engineasailib||{});for(let i=0;i<3;i++)a["$engineasai"+i]&&Object.assign(t.$fn,a["$engineasai"+i]);const f=await t.$fn.initmodel("sys/dirglobal.json");if(t.$global.sys={},Object.keys(f).forEach(i=>{Object.assign(t.$global.sys,f[i])}),t.$fn.initver())return;if(t.$model.data.sys=await t.$fn.initmodel("sys/dirmodel.json"),t.$model.data.sys.configrouter){t.$global.sys.router=t.$model.data.sys.configrouter;for(let i=0;i<t.$model?.webmodels?.length;i++){const p=await t.$fn.initmodel(t.$model?.webmodels?.[i]+"/configrouter.json");typeof p=="object"&&Object.entries(p).forEach(([g,_])=>{g==="rights"?Object.entries(_).forEach(([$,j])=>{j&&j.length&&j.forEach(A=>{t.$global.sys.router.rights[$].includes(A)||t.$global.sys.router.rights[$].push(A)})}):Object.assign(t.$global.sys.router[g],_)})}}t.$fn.lo(),await t.$fn.initLink(),await t.$fn.changetheme(),r()}catch(r){console.error("initUser error:",r)}},t.$fn.offweb=()=>{t.$fn.AsRouter.offHash()},t.$fn.initrouter=()=>{if(t.$global?.sys?.devlevel&&!t.$global.url[t.$global.module.value]){t.$global.url[t.$global.module.value]=[],t.$global.url[t.$global.module.value].push(...Object.keys(t.$model.appmodules.indexRouters).map(r=>({value:r,label:r,type:"module"})));const a=/^\.\/(.*?)\/default\.vue$/;t.$global.url[t.$global.module.value].push(...[...Object.keys(t.$model.comps)?.map(r=>{if(a.test(r)){const f=r.match(a);if(f)return f[1]}return""}).filter(r=>r)].map(r=>({value:r,label:r})))}},t.$fn.inittoken=()=>{t.$global.code.pri&&t.$global.user.info?.us&&(t.$global.code.token=t.$fn.AsCode.asencode(t.$global.user.info?.us,t.$global.code.pri)+"##"+t.$fn.AsCode.asencode(t.$global.user.info?.lv||0,t.$global.code.pri)+"##"+t.$global.code.pub)},t.$fn.gettoken=(a=0)=>t.$global?.code?.token?t.$global.code.token:t.$global?.code?.pub&&a?t.$global?.code?.token||"####"+t.$global.code.pub:"",t.$fn.logSave=(a=null)=>new Promise((r,f)=>{Array.isArray(a)&&(a=a?.map?.(i=>typeof i=="object"?JSON.stringify(i):i)?.join(`
5
+ }`,document.body.appendChild(t);let s=document.createElement("script");s.src=`${o}&&callback=asaiJsonp`,s.type="text/javascript",s.async=!0,document.body.appendChild(s),s.onload=()=>{document.body.removeChild(s),n&&n(window?.cbdata),document.body.removeChild(t)}}catch{n&&n("ERROR")}},localTime(o,n=0){if(n){const t=JSON.parse(this.localGet("astime")||"{}");t[o]=n,localStorage.setItem("astime",JSON.stringify(t))}else{const t=JSON.parse(this.localGet("astime")||"{}");if(t[o])return t[o]}return 0},localSet(o,n,t=localStorage){try{typeof n=="object"?t.setItem(o,JSON.stringify(n)):t.setItem(o,String(n))}catch(s){console.error("localSet error:",s)}},localGet(o,n=localStorage){try{return n.getItem(o)}catch{}return""},localRemove(o,n=localStorage){try{return n.removeItem(o)}catch{}},localClears(o=null,n=localStorage){if(o?.length){let t;for(let s in n)t=o.find(l=>s.startsWith(l)),t&&this.localRemove(s,n)}else this.localClear(n)},localClear(o=localStorage){o.clear()},localInit(o=localStorage){this.localClear(o),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(o){const n=window.event||o;return n?.preventDefault(),n?.stopPropagation(),!0},fullScreen(o=""){const n=o?document.getElementById(o):document.documentElement||document.body,t=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(t)t.call(n);else{const{ActiveXObject:s}=window;if(typeof s<"u"){const l=new s("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const o=document?.exitFullscreen;if(o)document.fullscreenElement!==null&&o.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const t=new n("WScript.Shell");t!==null&&t.SendKeys("{F11}")}}},fullScreenDo(o=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),o&&o()},toNums(o,n=0){return o&&Object.keys(o).forEach(t=>{typeof o[t]=="number"&&(o[t]=this.toNum(o[t],n))}),o},toNum(o,n=0){return typeof o!="number"&&typeof o=="string"&&(o=Number(o)),Number.isNaN(o)&&(o=0),o&&n&&(o=Math.round(o*10**n)/10**n),o},toObj(o){try{return o&&typeof o=="string"?JSON.parse(o):o}catch{return{err:"不是JSON格式数据"}}},toStr(o){if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{const t=[];return JSON.stringify(o,(s,l)=>{if(typeof l=="object"&&l!==null){if(t.indexOf(l)!==-1)return;t.push(l)}return l})}},toArr(o,n=0){if(o){if(Array.isArray(o))return o;if(typeof o=="object")return Object.entries(o)}return n?[]:null},setObjValByPath(o,n,t,s=0){try{const l=n.split(".");let c=o;for(let d=0;d<l.length-1;d++){const m=l[d];if(c[m]===void 0||typeof c[m]!="object"||c[m]===null)if(s)c[m]={};else return!1;c=c[m]}const u=l[l.length-1];return c[u]=t,!0}catch{return!1}},isValidFileName(o){if(!o||o.length===0)return!1;const n=o.length;for(let s=0;s<n;s++){const l=o.charCodeAt(s);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const t=o.charCodeAt(n-1);return!(t===32||t===46)},getTime(o=6,n=0){let t="",s;n?(n<9999999999&&(n=n*1e3),s=new Date(n)):s=new Date;const[l,c]=o>9?o+"":"0"+o;function u(d){return+l<=d&&+c>=d}return u(1)&&(t+=("00"+s.getFullYear()).slice(-4)+"-"),u(2)&&(t+=("00"+(s.getMonth()+1)).slice(-2)+"-"),u(3)&&(t+=("00"+s.getDate()).slice(-2)+" "),u(4)&&(t+=("00"+s.getHours()).slice(-2)+":"),u(5)&&(t+=("00"+s.getMinutes()).slice(-2)+":"),u(6)&&(t+=("00"+s.getSeconds()).slice(-2)+"."),u(7)&&(t+=("000"+s.getMilliseconds()).slice(-3)+" "),u(9)?t.replace(/\D/g,""):t&&t.substring(0,t.length-1)},toFormTime(o=0){return this.getTime(6,o).replace(" ","T")},fromFormTime(o="",n=1){const t=o?new Date(o).getTime():new Date().getTime();return Math.floor(t/n)},Uuid(o="",n=0,t=32){return[o.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,c)=>l+(c&15).toString(t),"")].join("").slice(0,16)},downloadTxt(o="",n=""){if(o){typeof o=="object"&&(o=JSON.stringify(o));const t=document.createElement("a");t.style.display="none";const s=new Blob([o],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(s);t.href=l,t.setAttribute("download",n),document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(l)}},downloadFile(o="",n=""){const t=document.createElement("a");t.href=o,n?t.download=n:t.download=o.slice(o.lastIndexOf("/")+1),document.body.appendChild(t),t.click(),document.body.removeChild(t)},debounce(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||o(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(o(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(o){try{return this.localSet("as-clipboard",o),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(o){throw o}},DeepClone(o,n=new WeakMap){if(o===null||typeof o!="object")return o;if(n.has(o))return n.get(o);if(o instanceof Date)return new Date(o);if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const s=new Map;return n.set(o,s),o.forEach((l,c)=>{s.set(this.DeepClone(c,n),this.DeepClone(l,n))}),s}if(o instanceof Set){const s=new Set;return n.set(o,s),o.forEach(l=>{s.add(this.DeepClone(l,n))}),s}const t=Array.isArray(o)?[]:{};n.set(o,t);for(let s in o)o.hasOwnProperty(s)&&(t[s]=this.DeepClone(o[s],n));return t}}},Symbol.toStringTag,{value:"Module"})),O=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(o){return btoa(unescape(encodeURIComponent(o)))},base64Decode(o){try{return decodeURIComponent(escape(atob(o)))}catch(n){return console.error("base64Decode error:",n),""}},simpleEncrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)+n)).join("")},simpleDecrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)-n)).join("")},enc(o){const n=this.simpleEncrypt(o,5);return this.base64Encode(n)},dec(o){const n=this.base64Decode(o);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),N={webpath:window?.$CFG?.webpath||"./",_hashChangeListener:null,_popstateListener:null,initHash(o={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{o.hash=window.location.pathname||"",this.setRouter(o)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{o.hash=window.location.hash?.replace("#","")||"",this.setRouter(o)},window.addEventListener("hashchange",this._hashChangeListener))},offHash(){this.webpath.startsWith("/")?this._popstateListener&&(window.removeEventListener("popstate",this._popstateListener),this._popstateListener=null):this._hashChangeListener&&(window.removeEventListener("hashchange",this._hashChangeListener),this._hashChangeListener=null)},setHref(o){window.location.href=o},getHref(){return window?.location?.href},setHash(o={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),o.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",o.hash),this.setRouter(o)):window.location.hash=o.hash},getQuery(o={},n=""){return o.query={},n&&n.split("&").forEach(t=>{const[s,l]=t.split("=");s&&l&&(o.query[s]=decodeURIComponent(l))}),o.query},getHasharr(o){let n=o.hash;if(o.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[t,s]=n.split("?");let l=t?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();o.hasharr=l,this.getQuery(o,s)}return o.hasharr},setRouter(o){this.getHasharr(o);const n=o.hasharr||[],t=o.hasharr?.length||0;if(o.comps=[],t>0){let s="";for(let l=0;l<t;l++)s=`${s}${n[l]}/`,l==t-1?o.comps[l]=`${s}default`:o.comps[l]=`${s}index`}return o.comps?.length||(o.comps[0]="default"),o.comps},setTitle(o="",n=null){const s=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";o?document.title=`${o}${s?" - "+s:""}`:document.title=`${s}`}},P=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null,default:o=>{const{$fn:n,$model:t,$db:s,$dbwork:l,$global:c}=o;function u(d="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs?.(d),m?.["$engine"+d]&&(Object.assign(n,m["$engine"+d]),m?.["$engineuse"+d]&&Object.assign(n,m["$engineuse"+d])),t[d]||(t[d]={}),l[d]||(l[d]={}),s[d]||(s[d]={}),n.setconfig=(b,y)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+b+".json",y),n.changelangpro=(b="")=>n.changelang(c.config.langcur||b).then(y=>{c?.sys?.local?.lang?d&&n.ws?.[d]&&n.ws[d].wsSend({id:"1",ty:"common/setlanguage",db:y}):n.setconfig("settinglang",{lang:b})}),n.changethemepro=(b="")=>c?.sys?.local?.theme?n.changetheme(b):n.setconfig("settingtheme",{theme:b});const h=[n.initlang(c.config.langcur||"")];return h.push(n.initmodel(d+"/dirmodel.json").then(b=>{b&&Object.assign(t[d],b)})),Promise.all(h)}return{initAppModel:u}}},Symbol.toStringTag,{value:"Module"})),x=e.reactive({providedb:{data:{}}}),M=e.reactive({providedbwork:{data:{}}}),T=e.reactive({provideglobal:{data:{sys:null,wd:{w:0,h:0},config:{theme:"theme-light",lang:"",langcur:""},theme:"",stat:{webclient:0,web:0,cocontrol:0},user:{info:null,online:0},code:{pri:null,pub:null,token:""},location:{},pop:{},url:{},module:{value:"",label:""},keyboard:{comps:{},areastyle:{},opt:{},csskeyboard:"",showkeyboard:!0}}}}),R=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),C={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},L=Object.freeze(Object.defineProperty({__proto__:null,default:(o=null)=>{const n=window;Object.assign(C.providefn.data,o?.plugs||{});const t={$db:x.providedb.data,$dbwork:M.providedbwork.data,$ws:R.providews.data,$global:T.provideglobal.data,$model:n.$GYS.$webmodel,$fn:C.providefn.data};t.$global.$cfg=n.$CFG||{},n.$GYS.ujt=t,t.$fn.lo=(...a)=>{if(t.$global.sys?.onconsole){if(!a?.[0])t.$model.gysfn.log();else if(a.length>0){let r="",f="",i="";if(a[1]&&typeof a[1]=="string"){const[p,g,..._]=a;f=g,i=_,Array.isArray(a[0])&&a[0].length===2?r=l(a[0][0],a[0][1],"12px"):typeof a[0]=="number"&&(r=s(p,12))}r?console.log("%c"+f,r,...i):console.log(...a)}}},t.$model.gysfn.log=()=>(console.log("%c$fn",s(6,18),c(t.$fn),t.$fn),console.log("%c$model",s(5,18),c(t.$model),t.$model),console.log("%c$global",s(4,18),c(t.$global),t.$global),console.log("%c$ws",s(3,18),c(t.$ws),t.$ws),console.log("%c$db",s(2,18),c(t.$db),t.$db),console.log("%c$dbwork",s(1,18),c(t.$dbwork),t.$dbwork),"Web Model Log。");function s(a,r=18){let f="";return a===1?f=l("black","pink",r+"px"):a===2?f=l("black","cyan",r+"px"):a===3?f=l("black","yellow",r+"px"):a===4?f=l("white","blue",r+"px"):a===5?f=l("white","red",r+"px"):a===6?f=l("white","green",r+"px"):a===7&&(f=l("white","purple",r+"px")),f}function l(a,r,f="18px"){return"font-size:"+f+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+a+";background-color:"+r+";"}function c(a){try{return"size=>"+((a&&JSON.stringify(a)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function u(a={}){t.$global.pop.popdefaultconfirm&&(t.$global.pop.popdefaultconfirm.stat=1,t.$global.pop.popdefaultconfirm.full=1,t.$global.pop.popdefaultconfirm.notit=1,Object.assign(t.$global.pop.popdefaultconfirm,a))}function d(a={}){t.$global.pop.popdefaultconfirmpass&&(t.$global.pop.popdefaultconfirmpass.stat=1,t.$global.pop.popdefaultconfirmpass.full=1,t.$global.pop.popdefaultconfirmpass.notit=1,Object.assign(t.$global.pop.popdefaultconfirmpass,a))}t.$fn.popConfirm=u,t.$fn.popConfirmPass=d,t.$fn.getWebPath=(a="")=>{const r=t?.$global?.$cfg?.webpath||"./";return a&&!a.startsWith("http")&&!a.startsWith(r)?r+a:a};const{fetchPublic:m}=t.$fn?.AsaiModel(t.$fn.getWebPath("webmodel/"));t.$fn.initmodel=m,t.$fn.startLink=()=>new Promise((a,r)=>{t.$fn.initmodel("sys/server.json").then(f=>{const i={api:{},ws:{}};["api","ws"].forEach(p=>{Object.keys(f?.[p]||{}).forEach(g=>{let _=f[p][g];_&&typeof _=="string"&&(_=i[p][_]),_||(_=f[p].default),i[p][g]={..._,url:t.$fn.As.getUrlByCfg(_,p=="ws"?1:0)}})}),t.$fn.As.localSet("as-link",JSON.stringify(i)),t.$global.link=i,a(t.$global.link)}).catch(f=>{r(f)})}),t.$fn.saveLink=a=>{t.$global.link=a,t.$fn.As.localSet("as-link",JSON.stringify(t.$global.link))},t.$fn.initLink=(a=0)=>new Promise((r,f)=>{if(a)t.$fn.startLink().then(i=>{r(i)}).catch(i=>{f(i)});else{let i=t.$fn.As.localGet("as-link");i?(t.$global.link=JSON.parse(i),t.$global.link?.api&&t.$global.link?.ws&&t.$global.link?.ws?.default?r(t.$global.link):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{f(p)})):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{f(p)})}});const h=new Map,b=/\$(\d+)/g;t.$fn.lg=(a,r)=>{if(typeof a!="string"||!a)return;let f=h.get(a);f||(f=a.split("."),h.set(a,f));const i=f.reduce((_,$)=>_?.[$],t.$global.lang);if(!r||r.length===0)return i;const p=Array.isArray(r)?r:[r];return i?.replace(b,(_,$)=>{const j=parseInt($,10)-1;return p[j]??_})},t.$fn.changetheme=(a="")=>new Promise((r,f)=>{try{let i="";t.$global?.sys?.local?.theme?i=t.$fn.As.localGet(t.$global?.sys?.local?.theme)||t.$model.data.sys.settingtheme.theme||t.$model.data.sys.sysconfig.theme[0]:i=t.$model.data.sys.settingtheme.theme||t.$model.data.sys.sysconfig.theme[0],a&&i===a?r():(a==="auto"?i=i==t.$model.data.sys.sysconfig.theme[0]?t.$model.data.sys.sysconfig.theme[1]:t.$model.data.sys.sysconfig.theme[0]:a&&(i=a),t.$global?.sys?.local?.theme&&t.$fn.As.localSet(t.$global?.sys?.local?.theme,i)),i&&t.$global?.config?.theme!==i&&(t.$global?.config?.theme&&document?.body?.classList?.contains(t.$global.config.theme)&&document.body.classList.remove(t.$global.config.theme),t.$global.config.theme=i),document?.body?.classList?.contains(i)||document.body.classList.add(i),r()}catch(i){f(i)}}),t.$fn.initlang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=a||t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=a||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],t.$global?.lang||(t.$global.lang={}),new Promise((f,i)=>{t.$fn.initmodel("lang/dirlang.json",r+"/").then(p=>{Object.assign(t.$global.lang,p),f(t.$global.lang)}).catch(p=>{i(p)})})},t.$fn.changelang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=t.$global.config.langcur||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],new Promise((f,i)=>{a&&r===a&&t.$global?.lang?f(r):(a==="auto"?r=r==t.$model.data.sys.sysconfig?.lang[0]?t.$model.data.sys.sysconfig?.lang[1]:t.$model.data.sys.sysconfig?.lang[0]:a&&(r=a),t.$global?.sys?.local?.lang&&t.$fn.As.localSet(t.$global?.sys?.local?.lang,r),t.$global?.sys?.local?.lang||!t.$global.config.lang?(t.$global.config.lang=r,t.$fn.initlang(r).then(p=>{f(r)}).catch(p=>{i(p)})):f(r))})},t.$fn.initver=()=>{if(t.$global.sys?.webver){const a=t.$fn.As.localGet("as-web-ver");if(a){if(t.$global.sys?.webver!==a)return t.$fn.As.localInit(),!0}else t.$fn.As.localSet("as-web-ver",t.$global.sys?.webver||"")}return!1},t.$fn.initweb=async a=>{try{let r=function(){const{protocol:i,hostname:p,port:g,hash:_}=n.location;t.$global.location={protocol:i,hostname:p,port:g,hash:_.replace("#",""),comps:[],query:{}},t.$fn.AsRouter.initHash(t.$global.location),$();function $(){t.$fn.AsRouter.setRouter(t.$global.location)}t.$fn.setquery=(j={},A=0)=>{let k;A?k=new URLSearchParams({...t.$global.location.query||{},...j||{}}).toString():k=new URLSearchParams(j||{}).toString(),k?k=t.$global.location.hash.split("?")[0]+"?"+k:k=t.$global.location.hash.split("?")[0],t.$fn.AsRouter.setHash(t.$global.location,k),$()},t.$fn.sethash=(j="")=>{t.$fn.AsRouter.setHash(t.$global.location,j)},t.$fn.exit=(j=0)=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$global.code.token=null,j&&(t.$fn.sethash(""),t.$fn.As.localReload())},t.$fn.login=()=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$fn.sethash(t.$global.sys?.router?.config?.login||"user/login")}};Object.assign(t.$fn,a.$engineasai||{}),Object.assign(t.$fn,a.$engineasailib||{});for(let i=0;i<3;i++)a["$engineasai"+i]&&Object.assign(t.$fn,a["$engineasai"+i]);const f=await t.$fn.initmodel("sys/dirglobal.json");if(t.$global.sys={},Object.keys(f).forEach(i=>{Object.assign(t.$global.sys,f[i])}),t.$fn.initver())return;if(t.$model.data.sys=await t.$fn.initmodel("sys/dirmodel.json"),t.$model.data.sys.configrouter){t.$global.sys.router=t.$model.data.sys.configrouter;for(let i=0;i<t.$model?.webmodels?.length;i++){const p=await t.$fn.initmodel(t.$model?.webmodels?.[i]+"/configrouter.json");typeof p=="object"&&Object.entries(p).forEach(([g,_])=>{g==="rights"?Object.entries(_).forEach(([$,j])=>{j&&j.length&&j.forEach(A=>{t.$global.sys.router.rights[$].includes(A)||t.$global.sys.router.rights[$].push(A)})}):Object.assign(t.$global.sys.router[g],_)})}}t.$fn.lo(),await t.$fn.initLink(),await t.$fn.changetheme(),r()}catch(r){console.error("initUser error:",r)}},t.$fn.offweb=()=>{t.$fn.AsRouter.offHash()},t.$fn.initrouter=()=>{if(t.$global?.sys?.devlevel&&!t.$global.url[t.$global.module.value]){t.$global.url[t.$global.module.value]=[],t.$global.url[t.$global.module.value].push(...Object.keys(t.$model.appmodules.indexRouters).map(r=>({value:r,label:r,type:"module"})));const a=/^\.\/(.*?)\/default\.vue$/;t.$global.url[t.$global.module.value].push(...[...Object.keys(t.$model.comps)?.map(r=>{if(a.test(r)){const f=r.match(a);if(f)return f[1]}return""}).filter(r=>r)].map(r=>({value:r,label:r})))}},t.$fn.inittoken=()=>{t.$global.code.pri&&t.$global.user.info?.us&&(t.$global.code.token=t.$fn.AsCode.asencode(t.$global.user.info?.us,t.$global.code.pri)+"##"+t.$fn.AsCode.asencode(t.$global.user.info?.lv||0,t.$global.code.pri)+"##"+t.$global.code.pub)},t.$fn.gettoken=(a=0)=>t.$global?.code?.token?t.$global.code.token:t.$global?.code?.pub&&a?t.$global?.code?.token||"####"+t.$global.code.pub:"",t.$fn.logSave=(a=null)=>new Promise((r,f)=>{Array.isArray(a)&&(a=a?.map?.(i=>typeof i=="object"?JSON.stringify(i):i)?.join(`
6
6
  `)||""),t?.$fn?.apisys?.apiPost("/api/asailog/manage/addclient/",a).then(r).catch(f)});function y(a=new Date){const r=(f,i=2)=>String(f).padStart(i,"0");return`${r(a.getHours())}:${r(a.getMinutes())}:${r(a.getSeconds())}.${r(a.getMilliseconds(),3)}`}return t.$fn.$log=(a=null)=>new Promise((r,f)=>{if(a){const i=`[${y()}] ${t.$global?.user?.info?.us||""}-${a}`;t?.$fn?.lo?.(7,"log",i),t?.$global?.sys?.onweblog&&t.$fn.logSave(i).then(r).catch(f),r()}else r()}),t.$fn.checkOnline=()=>new Promise((a,r)=>{if(t?.$global?.sys?.onwebws&&t?.$global?.sys?.onckuseronline)try{typeof t?.$fn?.ws?.web?.wsApi=="function"?t.$fn.ws.web.wsApi("ping")?.then(f=>{f=="pong"?a(f):r(f)}).catch(r):r()}catch(f){r(f)}else a()}),e.provide("$ujtasai",t),{...t,$ujtasai:t}}},Symbol.toStringTag,{value:"Module"})),z=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiComponent",props:{ujt:{}},setup(o){const n=o,{$model:t,$global:s}=n.ujt,l=e.computed(()=>t.appmodules.indexRouters[(t?.webmodels?.includes(s.location?.hasharr?.[0])?s.location?.hasharr?.[0]:"")||t?.webmodels?.[0]]);return(c,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{ujt:o.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiInitPage",props:{appmodules:{},ujt:{}},setup(o){const n=o,t=e.inject("$vueProxy"),{$global:s,$fn:l,$model:c,$ws:u}=n.ujt;c.appmodules=n.appmodules;function d(){let a=l.As?.localGet("as-user-code");a&&(a=l.As.toObj(a),s.code.pri=a[0],s.code.pub=a[1]),s.code.pri&&l.As.localGet("as-user-info")&&(s.user.info=l.As.toObj(l.AsAES.dec(l.As.localGet("as-user-info")))),l.inittoken()}function m(){s?.sys?.onwebws&&l.ws.web.wsWatch({ty:"publish/web"},a=>{a?.db?.exit&&l.exit(),a?.db?.lang&&(a.db.langpm?a.db.con=l.lg("asai.hostmsg."+a.db.lang,a.db.langpm)||a.db.con:a.db.con=l.lg("asai.hostmsg."+a.db.lang)||a.db.con),a?.db==="pong"?l.ws.web.wsApi("ping").then(r=>{}):a?.db?.bs?h(a.db.bs):a?.db?.con&&s.msg.fn(a.db)})}function h(a){if(Array.isArray(a)&&a[0]?.[0])try{a.forEach(r=>{l.As.setObjValByPath(u.wssys,r[0],r[1])})}catch{}}s.rlv=e.computed(()=>!s.location.hash||s.location.hash=="/"||s.sys?.router?.rights?.lv0?.find(a=>s.location.hash.includes(a))?0:s.sys?.router?.rights?.lv1?.find(a=>s.location.hash.includes(a))?1:s.sys?.router?.rights?.lv2?.find(a=>s.location.hash.includes(a))?2:s.sys?.router?.rights?.lv3?.find(a=>s.location.hash.includes(a))?3:s.sys?.router?.config?.lv);function b(a,r){try{console.error(r+" Error:",a);let f="";a?.error?.stack&&typeof a?.error?.stack=="string"?f=a.error.stack:a?.error?.message&&typeof a?.error?.message=="string"?f=a.error.message:a?.message&&typeof a?.message=="string"?f=a.message:a?.reason?.message&&typeof a?.reason?.message=="string"?f=a.reason.message:a?.reason&&typeof a?.reason=="string"?f=a.reason:a&&typeof a=="string"&&(f=a),f&&(f="Web "+r+` Error:
7
7
  `+f,console.error(f),l.$log(f),s?.msg?.fn?.({type:"err",con:f})),a.preventDefault()}catch(f){console.error("Try Error:",f)}}const y=e.reactive({catchErrorUnhandledrejection:null,catchErrorCatch:null});return e.onMounted(()=>{l.initweb(t).then(()=>{let a=[];if(l?.useApi?.(n.ujt,"web"),s?.sys?.tyrobot&&(l.useApi(n.ujt,s.sys.tyrobot),l.useWs(n.ujt,s.sys.tyrobot)),d(),s?.sys?.onwebws&&(l.useWs(n.ujt,"web"),a.push(l.ws.web.init().then(()=>{m()}))),s?.sys?.local?.lang||a.push(l.initmodel("/sys/setting/settinglang.json").then(r=>{typeof r?.data=="string"?s.config.langcur=JSON.parse(r?.data||"{}")?.lang:s.config.langcur=(r?.data||{})?.lang})),s?.sys?.aes?.lv&&!s.sys.aesfns&&l.AsaiVueAES?.useAES){const{toAES:r,fromAES:f}=l.AsaiVueAES.useAES(n.ujt);s.sys.aesfns={allaes:s.sys.aes.lv>1,toAES:r,fromAES:f}}Promise.all(a).then(()=>{l.changelang(s.config.langcur).then(r=>{!window?.$CFG?.title&&s.lang.configweb?.webtit&&(document.title=s.lang.configweb?.webtit),s.stat.webclient=1,s.sys.catcherror&&(y.catchErrorUnhandledrejection=i=>{b(i,"Unhandledrejection")},window?.addEventListener?.("unhandledrejection",y.catchErrorUnhandledrejection),y.catchErrorCatch=i=>{b(i,"Catch")},window?.addEventListener?.("error",y.catchErrorCatch))})})})}),e.onBeforeUnmount(()=>{l.offweb(),s.sys.catcherror&&(y.catchErrorUnhandledrejection&&(window.removeEventListener("unhandledrejection",y.catchErrorUnhandledrejection),y.catchErrorUnhandledrejection=null),y.catchErrorCatch&&(window.removeEventListener("error",y.catchErrorCatch),y.catchErrorCatch=null)),s?.sys?.onwebws||l.ws.web.wsWatchOff({ty:"publish/web"})}),(a,r)=>{const f=e.resolveComponent("AsaiWebServer"),i=e.resolveComponent("AsaiWebServerNode"),p=e.resolveComponent("AsaiWebServerUser"),g=e.resolveComponent("AsaiWebServerUserOnline");return e.unref(s).stat.webclient?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(s).rlv===0?(e.openBlock(),e.createBlock(f,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===1?(e.openBlock(),e.createBlock(i,{key:1,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===2?(e.openBlock(),e.createBlock(p,{key:2,ujt:o.ujt},null,8,["ujt"])):(e.openBlock(),e.createBlock(g,{key:3,ujt:o.ujt},null,8,["ujt"]))],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadClient"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),D={class:"app-area"},I={class:"app-logo"},U=["src"],F={class:"app-menu-area"},G=["onPointerup"],H={class:"menu-text"},J={class:"app-login"},q=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.url?.[t.module.value]?.filter(c=>c.type==="module"||("/"+c.value+"/").startsWith(t.location.hash))||[]);return(c,u)=>{const d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",I,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,U)]),e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:h=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",H,e.toDisplayString(m.label),1)],42,G))),128))]),e.createElementVNode("div",J,[e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),v=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemIndex",props:{ujt:{},ty:{}},setup(o){return(n,t)=>{const s=e.resolveComponent("RouterView");return e.openBlock(),e.createBlock(s,{ujt:o.ujt,ty:o.ty||2},null,8,["ujt","ty"])}}})},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModule",props:{ujt:{},module:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;Object.assign(t.module,n.module),n.module?.ws&&s.useWs(n.ujt,t.module.value);const{initAppModel:l}=s.useInitApp(n.ujt);return t.stat[t.module.value]=0,l(t.module.value).then(c=>{t.stat[t.module.value]=1}),(c,u)=>{const d=e.resolveComponent("RouterView");return n.module?.value&&e.unref(t).stat[n.module.value]?(e.openBlock(),e.createBlock(d,{key:0,ujt:o.ujt,ty:o.ty||0},null,8,["ujt","ty"])):e.unref(t).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadErr"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),Y={class:"app-area"},X={class:"app-logo"},Z=["src"],Q={class:"app-menu-area"},ee=["onPointerup"],te={class:"menu-text"},oe={class:"app-login"},ne=e.defineComponent({__name:"AsaiWebModuleDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,c)=>{const u=e.resolveComponent("MenuShowFix"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.createElementVNode("div",Y,[e.createElementVNode("div",X,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,Z)]),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).url[e.unref(t).module.value],m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:h=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",te,e.toDisplayString(m.label),1)],42,ee))),128))]),e.createElementVNode("div",oe,[e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])],64)}}}),w=(o,n)=>{const t=o.__vccOpts||o;for(const[s,l]of n)t[s]=l;return t},se=Object.freeze(Object.defineProperty({__proto__:null,default:w(ne,[["__scopeId","data-v-bba548d2"]])},Symbol.toStringTag,{value:"Module"})),le=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModuleIndex",props:{ujt:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,c)=>{const u=e.resolveComponent("MenuShowFix"),d=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.unref(t).stat[e.unref(t).module.value]?(e.openBlock(),e.createBlock(d,{key:0,ujt:o.ujt,ty:o.ty||1},null,8,["ujt","ty"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),ae=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServer",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const c=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserver",class:e.normalizeClass("asaiweb asaiweb"+(e.unref(t).location?.hasharr?.[0]||"default"))},[e.createVNode(c,{ujt:o.ujt},null,8,["ujt"])],2)}}}),[["__scopeId","data-v-7d8d7f46"]])},Symbol.toStringTag,{value:"Module"})),re=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerNode",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(c,u)=>{const d=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebservernode",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.pub?(e.openBlock(),e.createBlock(d,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadServer"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-316455f4"]])},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUser",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(c,u)=>{const d=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruser",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token?(e.openBlock(),e.createBlock(d,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserToken"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-a4bd06af"]])},Symbol.toStringTag,{value:"Module"})),ce=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUserOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserOnline:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(c,u)=>{const d=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruseronline",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token&&e.unref(s).user.online?(e.openBlock(),e.createBlock(d,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserTokenOnline"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-6cc1e64b"]])},Symbol.toStringTag,{value:"Module"})),de={key:0,class:"as-pagebusy-area touch-none"},fe={class:"as-pagebusy"},ue={key:0,class:"as-pagebusy-v"},pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsPageBusy",props:{ujt:{}},setup(o){e.useCssVars(u=>({v2189716e:l.value}));const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.pagebusy?.zindex||9999);function c(){s.popConfirm({con:t.lang.asai.resetconfirm,zindex:l.value+1,fn:()=>{t.pagebusy=null,s.As.localInit()}})}return(u,d)=>{const m=e.resolveComponent("AsPageBusyGif"),h=e.resolveDirective("dbpointerdown");return e.unref(t).pagebusy?e.withDirectives((e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",{class:"as-pagebusy-close",onClick:d[0]||(d[0]=e.withModifiers(b=>c(),["stop"]))}),e.createElementVNode("div",fe,[e.createVNode(m,{ujt:o.ujt},null,8,["ujt"]),e.unref(t).pagebusy?.v?(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(e.unref(t).pagebusy?.v),1)):e.createCommentVNode("",!0)])])),[[h,()=>{e.unref(t).pagebusy?.keep||c()}]]):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-3b86e9a1"]])},Symbol.toStringTag,{value:"Module"})),me=w(e.defineComponent({__name:"AsLoadingCircle",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"as-load-gif",style:e.normalizeStyle({width:o.size+"px",height:o.size+"px"})},null,4))}}),[["__scopeId","data-v-c5bf2081"]]),ge=w(e.defineComponent({__name:"AsLoadingA3d",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"a3d-wrapper",style:e.normalizeStyle({"--cube-size":`${o.size}px`,"--half-size":`${o.size/2}px`})},[...t[0]||(t[0]=[e.createStaticVNode('<div class="a3d" data-v-4d1d2b0e><div class="a3d-face a3d-face-front" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-back" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-left" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-right" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-top" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-bottom" data-v-4d1d2b0e></div></div>',1)])],4))}}),[["__scopeId","data-v-4d1d2b0e"]]),_e=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsPageBusyGif",props:{ujt:{},opt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>o.opt?.ty||e.unref(t).pagebusy?.ty?(e.openBlock(),e.createBlock(ge,{key:0,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"])):(e.openBlock(),e.createBlock(me,{key:1,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"]))}})},Symbol.toStringTag,{value:"Module"})),he={key:0,class:"as-usercard"},be=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsReset",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l={};return(c,u)=>{const d=e.resolveComponent("AsSvg");return e.renderSlot(c.$slots,"default",{item:{},option:l},()=>[e.unref(s).lang?.asai?.usercard?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",{onClick:u[0]||(u[0]=m=>e.unref(t).login())},[e.createVNode(d,{color:"var(--cu6)",height:"26px",src:"asai/login"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.login),1)]),e.createElementVNode("div",{onClick:u[1]||(u[1]=m=>e.unref(t).As.localInit()),title:"ctrl+shift+r"},[e.createVNode(d,{color:"var(--cu6)",height:"26px",src:"asai/reset"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.reset),1)])])):e.createCommentVNode("",!0)],!0)}}}),[["__scopeId","data-v-a12ce8ac"]])},Symbol.toStringTag,{value:"Module"})),$e={class:"as-icon"},ye={key:0,class:"as-icon-filter"},we=["src"],je=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsSvg",props:{src:{type:String,default:""},height:{type:String,default:"24px"},width:{type:String,default:""},color:{type:String,default:"var(--cv8)"},showtype:{type:String,default:"mask"},webty:{type:String,default:""}},setup(o){const n=o,t=window?.$CFG?.webpath||"./";let s=e.ref("");const l=e.computed(()=>s.value?t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+s.value+".svg":n.src.startsWith("http")||n.src.endsWith(".svg")||n.src.endsWith(".png")?n.src:t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+n.src+".svg");function c(){s.value="default"}function u(){return{width:`${n.width?n.width:n.height}`,height:`${n.height?n.height:n.width}`,"background-color":`${n.color}`,"mask-image":`url('${l.value}')`,"-webkit-mask-image":`url('${l.value}')`}}function d(){return n.width?{transform:"translateX(-100%)",filter:`drop-shadow(${n.width} 0 ${n.color})`,width:`${n.width}`}:{transform:"translateY(-100%)",filter:`drop-shadow(0 ${n.height} ${n.color})`,height:`${n.height}`}}return(m,h)=>(e.openBlock(),e.createElementBlock("i",$e,[o.showtype==="filter"?(e.openBlock(),e.createElementBlock("i",ye,[e.createElementVNode("img",{style:e.normalizeStyle(d()),src:l.value,onError:h[0]||(h[0]=b=>c())},null,44,we)])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"as-icon-mask",style:e.normalizeStyle(u())},null,4))]))}}),[["__scopeId","data-v-d9bafe22"]])},Symbol.toStringTag,{value:"Module"})),ke={class:"as-floating-menu"},Se={key:0},Ae={key:1},Ce=["onPointerup"],Ee=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"MenuShowFix",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l=e.ref(!1);function c(){l.value=!l.value}const u=e.computed(()=>[{value:"/",label:t.lg("asai.home"),type:"module"},{fn:()=>s.theme.c=s.theme.c==="d"?"l":"d",label:t.lg("asai.theme"),type:"module"},{fn:()=>s.theme.s=s.theme.s==="b"?"n":"b",label:t.lg("asai.size"),type:"module"},{fn:()=>t.changelang("auto"),label:t.lg("asai.langs.default"),type:"module"},...n.menus||[]]);return(d,m)=>!e.unref(s).sys||e.unref(s).sys.devlevel>1?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",ke,[e.createElementVNode("button",{class:"as-floating-button",onClick:c},[l.value?(e.openBlock(),e.createElementBlock("span",Se,"×")):(e.openBlock(),e.createElementBlock("span",Ae,"☰"))]),e.createElementVNode("ul",{class:e.normalizeClass(["as-floating-menus",{open:l.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(h,b)=>(e.openBlock(),e.createElementBlock("li",{key:"menu"+b,class:e.normalizeClass(`${h.type==="module"?"module ":""}${h.value&&e.unref(s).location.hash.includes(h.value)?"active":""}`),onPointerup:y=>h.value?e.unref(t).sethash(h.value):h?.fn?.()},e.toDisplayString(b+1)+". "+e.toDisplayString(h.label||h.value),43,Ce))),128))],2)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-162e1725"]])},Symbol.toStringTag,{value:"Module"})),Be={class:"app-menu-area"},Oe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"RouterMap",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t}=n.ujt;return(s,l)=>(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menus,c=>(e.openBlock(),e.createElementBlock("div",{class:"app-menu",onClick:l[0]||(l[0]=u=>e.unref(t).sethash("item.value"))},e.toDisplayString(c.label),1))),256))]))}}),[["__scopeId","data-v-6d15bb32"]])},Symbol.toStringTag,{value:"Module"})),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouterView",props:{ujt:{},ty:{}},setup(o){const n=o,{$model:t,$fn:s,$global:l}=n.ujt,c=e.shallowReactive({comp:null});s.getcomp=d=>{try{try{return e.defineAsyncComponent(t.comps[`./${d}.vue`])}catch{return d&&d.endsWith("/default")?e.defineAsyncComponent(t.comps[`./${d.slice(0,-8)}.vue`]):e.defineAsyncComponent(()=>Promise.resolve().then(()=>E))}}catch{return e.defineAsyncComponent(()=>Promise.resolve().then(()=>E))}};const u=e.watch(()=>l.location.comps[n.ty],(d,m)=>{d&&d!==m&&(c.comp=s.getcomp(d))},{immediate:!0});return e.onBeforeUnmount(()=>{u&&u.stop()}),(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c).comp),{ujt:o.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"VirtualList",props:{items:{type:Array,required:!0},itemHeight:{type:Number,default:50},buffer:{type:Number,default:5}},setup(o){const n=o,t=e.ref(null),s=e.ref(0),l=e.ref(0),c=e.ref(0),u=e.ref(new Array(n.items.length).fill(Math.round(n.itemHeight))),d=new Map,m=e.computed(()=>Math.round(n.items.reduce((i,p,g)=>i+h(g),0))),h=i=>i<0||i>=n.items.length?0:Math.round(u.value[i]??n.itemHeight),b=()=>{if(!t.value)return{start:0,end:Math.min(n.items.length,n.buffer*3)};const i=s.value,p=t.value.clientHeight;let g=0,_=n.items.length;for(;g<_;){const k=g+_>>>1;a(k)<=i?g=k+1:_=k}const $=Math.max(0,g-1),j=Math.ceil(p/n.itemHeight)+n.buffer*2,A=Math.min(n.items.length,$+j);return{start:$,end:A}},y=e.computed(()=>{const{start:i,end:p}=b();return n.items.slice(i,p).map((g,_)=>{const $=i+_;return{index:$,id:g.id||$,data:g,offset:a($)}})}),a=i=>{if(i<=0)return 0;if(d.has(i))return d.get(i);let p=i-1;for(;p>0&&!d.has(p);)p--;let g=p>0?d.get(p):0;for(let $=p;$<i;$++)g+=h($);const _=Math.round(g);return d.set(i,_),_},r=()=>{l.value&&cancelAnimationFrame(l.value),l.value=requestAnimationFrame(()=>{t.value&&(s.value=Math.round(t.value.scrollTop),c.value&&clearTimeout(c.value),c.value=window.setTimeout(()=>{const{start:i,end:p}=b(),g=n.buffer*2;for(const _ of d.keys())(_<i-g||_>p+g)&&d.delete(_)},150))})};let f=null;return e.onMounted(()=>{t.value&&r(),f=e.watch(()=>n.items.length,i=>{i>u.value.length?u.value=[...u.value,...new Array(i-u.value.length).fill(Math.round(n.itemHeight))]:i<u.value.length&&(u.value=u.value.slice(0,i)),d.clear()})}),e.onBeforeUnmount(()=>{f&&f.stop(),l.value&&cancelAnimationFrame(l.value),c.value&&clearTimeout(c.value)}),(i,p)=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-container",onScroll:r,ref_key:"container",ref:t,style:{height:"100%"}},[e.createElementVNode("div",{class:"virtual-list-wrapper",style:e.normalizeStyle({height:m.value+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,g=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-item",key:"as"+g.index,style:e.normalizeStyle({transform:`translateY(${g.offset}px)`})},[e.renderSlot(i.$slots,"default",{item:g},void 0,!0)],4))),128))],4)],544))}}),[["__scopeId","data-v-b613b7a8"]])},Symbol.toStringTag,{value:"Module"})),Ve={class:"as-load-area"},xe=["src"],Me={class:"tit",style:{color:"var(--cz8)"}},Te=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageErr",props:{ujt:{}},setup(o){const n=window;function t(){n?.localStorage?.clear(),n?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=c=>t()),src:e.unref(n).$CFG.logo,width:"200"},null,40,xe),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=c=>e.unref(n)?.location?.reload())},[e.createElementVNode("div",Me,e.toDisplayString(e.unref(n).$GYS.$webmodel.lang[e.unref(n).$GYS.$webmodel.lang.langty].pageerr),1)])]))}})},Symbol.toStringTag,{value:"Module"})),Re={class:"as-load-area"},Le=["src"],ze=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadClient",props:{ujt:{}},setup(o){const n=window;function t(){n?.localStorage?.clear(),n?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=c=>t()),src:e.unref(n).$CFG.logo,width:"200"},null,40,Le),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=c=>e.unref(n)?.location?.reload())}," Loading... ")]))}})},Symbol.toStringTag,{value:"Module"})),We={class:"as-load-area"},De=["src"],Ie={class:"as-load-icon"},Ue={class:"as-load-msg"},Fe={class:"tit",style:{color:"var(--cz8)"}},Ge=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadErr",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,c)=>{const u=e.resolveComponent("AsPageBusyGif"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("img",{onDblclick:c[0]||(c[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,De),e.createElementVNode("div",Ie,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ue,[e.createElementVNode("div",Fe,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),He={class:"as-load-area"},Je=["src"],qe={class:"as-load-icon"},ve={class:"as-load-msg"},Ke={class:"tit",style:{color:"var(--cy8)"}},Ye=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadServer",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,c)=>{const u=e.resolveComponent("AsPageBusyGif"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("img",{onDblclick:c[0]||(c[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,Je),e.createElementVNode("div",qe,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",ve,[e.createElementVNode("div",Ke,e.toDisplayString(e.unref(s).lang.asai.page.loadserver),1),e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Xe={class:"as-load-area"},Ze=["src"],Qe={class:"as-load-icon"},et={class:"as-load-msg"},tt={class:"tit",style:{color:"var(--cz8)"}},ot=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserToken",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,c)=>{const u=e.resolveComponent("AsPageBusyGif"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("img",{onDblclick:c[0]||(c[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,Ze),e.createElementVNode("div",Qe,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",et,[e.createElementVNode("div",tt,e.toDisplayString(e.unref(s).lang.asai.page.loadusertoken),1),e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),nt={class:"as-load-area"},st=["src"],lt={class:"as-load-icon"},at={class:"as-load-msg"},rt={class:"tit",style:{color:"var(--cy8)"}},it=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserTokenOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,c)=>{const u=e.resolveComponent("AsPageBusyGif"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("img",{onDblclick:c[0]||(c[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,st),e.createElementVNode("div",lt,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",at,[e.createElementVNode("div",rt,e.toDisplayString(e.unref(s).lang.asai.page.loaduseronline),1),e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ct={class:"as-load-area"},dt=["src"],ft={class:"as-load-icon"},ut={class:"as-load-msg"},pt={class:"tit",style:{color:"var(--cz8)"}},mt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadWs",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,c)=>{const u=e.resolveComponent("AsPageBusyGif"),d=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("img",{onDblclick:c[0]||(c[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,dt),e.createElementVNode("div",ft,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",ut,[e.createElementVNode("div",pt,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(d,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),gt={install(o,n){n.loadts({app:o,key:"$engineasai",eager:!0,files:Object.assign({"./asengine/common/As.ts":B,"./asengine/common/AsAES copy.ts":O,"./asengine/common/AsRouter.ts":P,"./asengine/init/useInitApp.ts":V,"./asengine/provide/useProvide.ts":L})}),n.loadvue({loadfn:n.loadfn,app:o,eager:!0,files:Object.assign({"./asui/app/AsaiComponent.vue":z,"./asui/app/AsaiInitPage.vue":W,"./asui/app/AsaiWebItemDefault.vue":q,"./asui/app/AsaiWebItemIndex.vue":v,"./asui/app/AsaiWebModule.vue":K,"./asui/app/AsaiWebModuleDefault.vue":se,"./asui/app/AsaiWebModuleIndex.vue":le,"./asui/app/AsaiWebServer.vue":ae,"./asui/app/AsaiWebServerNode.vue":re,"./asui/app/AsaiWebServerUser.vue":ie,"./asui/app/AsaiWebServerUserOnline.vue":ce,"./asui/common/AsPageBusy.vue":pe,"./asui/common/AsPageBusyGif.vue":_e,"./asui/common/AsReset.vue":be,"./asui/common/AsSvg.vue":je,"./asui/common/MenuShowFix.vue":Ee,"./asui/common/RouterMap.vue":Oe,"./asui/common/RouterView.vue":Ne,"./asui/common/VirtualList.vue":Pe,"./asui/page/PageErr.vue":Te,"./asui/page/PageLoadClient.vue":ze,"./asui/page/PageLoadErr.vue":Ge,"./asui/page/PageLoadServer.vue":Ye,"./asui/page/PageLoadUserToken.vue":ot,"./asui/page/PageLoadUserTokenOnline.vue":it,"./asui/page/PageLoadWs.vue":mt})})}},_t={class:"page-404"},ht={class:"content"},bt={key:0,class:"title"},$t={class:"description"},yt={class:"footer"},E=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"Asai404",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const c=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",ht,[l[0]||(l[0]=e.createElementVNode("div",{class:"error-code"},"404",-1)),e.unref(t).lang?.asai?.page?.page404?(e.openBlock(),e.createElementBlock("h1",bt,e.toDisplayString(e.unref(t).lang?.asai?.page?.page404||"页面未找到"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",$t,e.toDisplayString(e.unref(t).lang?.asai?.page?.reason404||"Sorry, Page not found!"),1)]),e.createElementVNode("div",yt,[e.createVNode(c,{ujt:o.ujt},null,8,["ujt"])])])}}}),[["__scopeId","data-v-999cd3d9"]])},Symbol.toStringTag,{value:"Module"}));S.default=gt,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
@@ -37,7 +37,8 @@ declare const _default: {
37
37
  comps: {};
38
38
  areastyle: {};
39
39
  opt: {};
40
- showkeyboard: string;
40
+ csskeyboard: string;
41
+ showkeyboard: boolean;
41
42
  };
42
43
  };
43
44
  };
@@ -1,4 +1,4 @@
1
- import { inject as V, reactive as D, provide as Y, defineComponent as y, computed as R, createBlock as A, openBlock as g, resolveDynamicComponent as z, onMounted as J, onBeforeUnmount as N, resolveComponent as w, createElementBlock as _, unref as d, Fragment as L, createElementVNode as p, renderList as G, normalizeClass as E, toDisplayString as C, createVNode as O, createCommentVNode as T, useCssVars as X, resolveDirective as Z, withDirectives as Q, withModifiers as ee, normalizeStyle as U, createStaticVNode as te, renderSlot as q, createTextVNode as B, ref as W, Teleport as oe, shallowReactive as se, defineAsyncComponent as F, watch as K } from "vue";
1
+ import { inject as V, reactive as D, provide as Y, defineComponent as y, computed as R, createBlock as A, openBlock as g, resolveDynamicComponent as z, onMounted as J, onBeforeUnmount as N, resolveComponent as w, createElementBlock as b, unref as d, Fragment as L, createElementVNode as p, renderList as G, normalizeClass as E, toDisplayString as C, createVNode as O, createCommentVNode as T, useCssVars as X, resolveDirective as Z, withDirectives as Q, withModifiers as ee, normalizeStyle as U, createStaticVNode as te, renderSlot as q, createTextVNode as B, ref as W, Teleport as oe, shallowReactive as se, defineAsyncComponent as F, watch as K } from "vue";
2
2
  const ne = {
3
3
  getUrlByCfg(t = null, o = 0) {
4
4
  return t?.url ? t.url : t?.port ? (o ? window.location.protocol.includes("s") ? "wss:" : "ws:" : window.location.protocol) + "//" + window.location.hostname + ":" + t.port : o ? window.location.origin.replace("http", "ws") : window.location.origin;
@@ -520,7 +520,7 @@ const ne = {
520
520
  pop: {},
521
521
  url: {},
522
522
  module: { value: "", label: "" },
523
- keyboard: { comps: {}, areastyle: {}, opt: {}, showkeyboard: "" }
523
+ keyboard: { comps: {}, areastyle: {}, opt: {}, csskeyboard: "", showkeyboard: !0 }
524
524
  }
525
525
  }
526
526
  }), he = D({
@@ -550,8 +550,8 @@ const ne = {
550
550
  else if (l.length > 0) {
551
551
  let a = "", u = "", i = "";
552
552
  if (l[1] && typeof l[1] == "string") {
553
- const [h, b, ...$] = l;
554
- u = b, i = $, Array.isArray(l[0]) && l[0].length === 2 ? a = n(l[0][0], l[0][1], "12px") : typeof l[0] == "number" && (a = s(h, 12));
553
+ const [h, _, ...$] = l;
554
+ u = _, i = $, Array.isArray(l[0]) && l[0].length === 2 ? a = n(l[0][0], l[0][1], "12px") : typeof l[0] == "number" && (a = s(h, 12));
555
555
  }
556
556
  a ? console.log("%c" + u, a, ...i) : console.log(...l);
557
557
  }
@@ -616,9 +616,9 @@ const ne = {
616
616
  e.$fn.initmodel("sys/server.json").then((u) => {
617
617
  const i = { api: {}, ws: {} };
618
618
  ["api", "ws"].forEach((h) => {
619
- Object.keys(u?.[h] || {}).forEach((b) => {
620
- let $ = u[h][b];
621
- $ && typeof $ == "string" && ($ = i[h][$]), $ || ($ = u[h].default), i[h][b] = {
619
+ Object.keys(u?.[h] || {}).forEach((_) => {
620
+ let $ = u[h][_];
621
+ $ && typeof $ == "string" && ($ = i[h][$]), $ || ($ = u[h].default), i[h][_] = {
622
622
  ...$,
623
623
  url: e.$fn.As.getUrlByCfg(
624
624
  $,
@@ -730,11 +730,11 @@ const ne = {
730
730
  }, e.$fn.initweb = async (l) => {
731
731
  try {
732
732
  let a = function() {
733
- const { protocol: i, hostname: h, port: b, hash: $ } = o.location;
733
+ const { protocol: i, hostname: h, port: _, hash: $ } = o.location;
734
734
  e.$global.location = {
735
735
  protocol: i,
736
736
  hostname: h,
737
- port: b,
737
+ port: _,
738
738
  hash: $.replace("#", ""),
739
739
  comps: [],
740
740
  query: {}
@@ -777,14 +777,14 @@ const ne = {
777
777
  for (let i = 0; i < e.$model?.webmodels?.length; i++) {
778
778
  const h = await e.$fn.initmodel(e.$model?.webmodels?.[i] + "/configrouter.json");
779
779
  typeof h == "object" && Object.entries(h).forEach(
780
- ([b, $]) => {
781
- b === "rights" ? Object.entries($).forEach(
780
+ ([_, $]) => {
781
+ _ === "rights" ? Object.entries($).forEach(
782
782
  ([S, P]) => {
783
783
  P && P.length && P.forEach((I) => {
784
784
  e.$global.sys.router.rights[S].includes(I) || e.$global.sys.router.rights[S].push(I);
785
785
  });
786
786
  }
787
- ) : Object.assign(e.$global.sys.router[b], $);
787
+ ) : Object.assign(e.$global.sys.router[_], $);
788
788
  }
789
789
  );
790
790
  }
@@ -861,10 +861,10 @@ const ne = {
861
861
  ...e,
862
862
  $ujtasai: e
863
863
  };
864
- }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
864
+ }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
865
865
  __proto__: null,
866
866
  default: me
867
- }, Symbol.toStringTag, { value: "Module" })), be = /* @__PURE__ */ y({
867
+ }, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ y({
868
868
  __name: "AsaiComponent",
869
869
  props: {
870
870
  ujt: {}
@@ -875,7 +875,7 @@ const ne = {
875
875
  }
876
876
  }), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
877
877
  __proto__: null,
878
- default: be
878
+ default: _e
879
879
  }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ y({
880
880
  __name: "AsaiInitPage",
881
881
  props: {
@@ -973,8 +973,8 @@ const ne = {
973
973
  ty: "publish/web"
974
974
  });
975
975
  }), (l, a) => {
976
- const u = w("AsaiWebServer"), i = w("AsaiWebServerNode"), h = w("AsaiWebServerUser"), b = w("AsaiWebServerUserOnline");
977
- return d(s).stat.webclient ? (g(), _(L, { key: 0 }, [
976
+ const u = w("AsaiWebServer"), i = w("AsaiWebServerNode"), h = w("AsaiWebServerUser"), _ = w("AsaiWebServerUserOnline");
977
+ return d(s).stat.webclient ? (g(), b(L, { key: 0 }, [
978
978
  d(s).rlv === 0 ? (g(), A(u, {
979
979
  key: 0,
980
980
  ujt: t.ujt
@@ -984,7 +984,7 @@ const ne = {
984
984
  }, null, 8, ["ujt"])) : d(s).rlv === 2 ? (g(), A(h, {
985
985
  key: 2,
986
986
  ujt: t.ujt
987
- }, null, 8, ["ujt"])) : (g(), A(b, {
987
+ }, null, 8, ["ujt"])) : (g(), A(_, {
988
988
  key: 3,
989
989
  ujt: t.ujt
990
990
  }, null, 8, ["ujt"]))
@@ -1008,7 +1008,7 @@ const ne = {
1008
1008
  ) || []);
1009
1009
  return (r, f) => {
1010
1010
  const c = w("AsReset");
1011
- return g(), _("div", we, [
1011
+ return g(), b("div", we, [
1012
1012
  p("div", je, [
1013
1013
  p("img", {
1014
1014
  src: d(e).$cfg.logo,
@@ -1016,7 +1016,7 @@ const ne = {
1016
1016
  }, null, 8, Se)
1017
1017
  ]),
1018
1018
  p("div", Ae, [
1019
- (g(!0), _(L, null, G(n.value, (m) => (g(), _("div", {
1019
+ (g(!0), b(L, null, G(n.value, (m) => (g(), b("div", {
1020
1020
  class: E(`app-menu${m.type === "module" ? " module" : ""}`),
1021
1021
  key: m.value,
1022
1022
  onPointerup: (v) => d(s).sethash(m.value === "views" ? "" : m.value)
@@ -1088,7 +1088,7 @@ const ne = {
1088
1088
  const o = t, { $global: e, $fn: s } = o.ujt;
1089
1089
  return s.initrouter(), (n, r) => {
1090
1090
  const f = w("MenuShowFix"), c = w("AsReset");
1091
- return g(), _(L, null, [
1091
+ return g(), b(L, null, [
1092
1092
  O(f, {
1093
1093
  ujt: t.ujt,
1094
1094
  menus: d(e).url[d(e).module.value]
@@ -1101,7 +1101,7 @@ const ne = {
1101
1101
  }, null, 8, ze)
1102
1102
  ]),
1103
1103
  p("div", Ie, [
1104
- (g(!0), _(L, null, G(d(e).url[d(e).module.value], (m) => (g(), _("div", {
1104
+ (g(!0), b(L, null, G(d(e).url[d(e).module.value], (m) => (g(), b("div", {
1105
1105
  class: E(`app-menu${m.type === "module" ? " module" : ""}`),
1106
1106
  key: m.value,
1107
1107
  onPointerup: (v) => d(s).sethash(m.value === "views" ? "" : m.value)
@@ -1134,7 +1134,7 @@ const ne = {
1134
1134
  const o = t, { $global: e, $fn: s } = o.ujt;
1135
1135
  return s.initrouter(), (n, r) => {
1136
1136
  const f = w("MenuShowFix"), c = w("RouterView");
1137
- return g(), _(L, null, [
1137
+ return g(), b(L, null, [
1138
1138
  O(f, {
1139
1139
  ujt: t.ujt,
1140
1140
  menus: d(e).url[d(e).module.value]
@@ -1159,7 +1159,7 @@ const ne = {
1159
1159
  const o = t, { $global: e } = o.ujt;
1160
1160
  return (s, n) => {
1161
1161
  const r = w("AsaiComponent");
1162
- return g(), _("div", {
1162
+ return g(), b("div", {
1163
1163
  id: "asaiwebserver",
1164
1164
  class: E("asaiweb asaiweb" + (d(e).location?.hasharr?.[0] || "default"))
1165
1165
  }, [
@@ -1184,7 +1184,7 @@ const ne = {
1184
1184
  e.login();
1185
1185
  }), (r, f) => {
1186
1186
  const c = w("AsaiComponent");
1187
- return g(), _("div", {
1187
+ return g(), b("div", {
1188
1188
  id: "asaiwebservernode",
1189
1189
  class: E("asaiweb asaiweb" + d(s).location?.hasharr?.[0])
1190
1190
  }, [
@@ -1215,7 +1215,7 @@ const ne = {
1215
1215
  e.login();
1216
1216
  }), (r, f) => {
1217
1217
  const c = w("AsaiComponent");
1218
- return g(), _("div", {
1218
+ return g(), b("div", {
1219
1219
  id: "asaiwebserveruser",
1220
1220
  class: E("asaiweb asaiweb" + d(s).location?.hasharr?.[0])
1221
1221
  }, [
@@ -1246,7 +1246,7 @@ const ne = {
1246
1246
  e.login();
1247
1247
  }), (r, f) => {
1248
1248
  const c = w("AsaiComponent");
1249
- return g(), _("div", {
1249
+ return g(), b("div", {
1250
1250
  id: "asaiwebserveruseronline",
1251
1251
  class: E("asaiweb asaiweb" + d(s).location?.hasharr?.[0])
1252
1252
  }, [
@@ -1290,14 +1290,14 @@ const ne = {
1290
1290
  }
1291
1291
  return (f, c) => {
1292
1292
  const m = w("AsPageBusyGif"), v = Z("dbpointerdown");
1293
- return d(e).pagebusy ? Q((g(), _("div", lt, [
1293
+ return d(e).pagebusy ? Q((g(), b("div", lt, [
1294
1294
  p("div", {
1295
1295
  class: "as-pagebusy-close",
1296
1296
  onClick: c[0] || (c[0] = ee((j) => r(), ["stop"]))
1297
1297
  }),
1298
1298
  p("div", at, [
1299
1299
  O(m, { ujt: t.ujt }, null, 8, ["ujt"]),
1300
- d(e).pagebusy?.v ? (g(), _("div", it, C(d(e).pagebusy?.v), 1)) : T("", !0)
1300
+ d(e).pagebusy?.v ? (g(), b("div", it, C(d(e).pagebusy?.v), 1)) : T("", !0)
1301
1301
  ])
1302
1302
  ])), [
1303
1303
  [v, () => {
@@ -1323,7 +1323,7 @@ const ne = {
1323
1323
  }
1324
1324
  },
1325
1325
  setup(t) {
1326
- return (o, e) => (g(), _("div", {
1326
+ return (o, e) => (g(), b("div", {
1327
1327
  class: "as-load-gif",
1328
1328
  style: U({ width: t.size + "px", height: t.size + "px" })
1329
1329
  }, null, 4));
@@ -1342,7 +1342,7 @@ const ne = {
1342
1342
  }
1343
1343
  },
1344
1344
  setup(t) {
1345
- return (o, e) => (g(), _("div", {
1345
+ return (o, e) => (g(), b("div", {
1346
1346
  class: "a3d-wrapper",
1347
1347
  style: U({ "--cube-size": `${t.size}px`, "--half-size": `${t.size / 2}px` })
1348
1348
  }, [...e[0] || (e[0] = [
@@ -1370,10 +1370,10 @@ const ne = {
1370
1370
  }), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1371
1371
  __proto__: null,
1372
1372
  default: ht
1373
- }, Symbol.toStringTag, { value: "Module" })), _t = {
1373
+ }, Symbol.toStringTag, { value: "Module" })), bt = {
1374
1374
  key: 0,
1375
1375
  class: "as-usercard"
1376
- }, bt = /* @__PURE__ */ y({
1376
+ }, _t = /* @__PURE__ */ y({
1377
1377
  __name: "AsReset",
1378
1378
  props: {
1379
1379
  ujt: {},
@@ -1387,7 +1387,7 @@ const ne = {
1387
1387
  item: {},
1388
1388
  option: n
1389
1389
  }, () => [
1390
- d(s).lang?.asai?.usercard ? (g(), _("div", _t, [
1390
+ d(s).lang?.asai?.usercard ? (g(), b("div", bt, [
1391
1391
  p("div", {
1392
1392
  onClick: f[0] || (f[0] = (m) => d(e).login())
1393
1393
  }, [
@@ -1413,7 +1413,7 @@ const ne = {
1413
1413
  ], !0);
1414
1414
  };
1415
1415
  }
1416
- }), $t = /* @__PURE__ */ x(bt, [["__scopeId", "data-v-a12ce8ac"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1416
+ }), $t = /* @__PURE__ */ x(_t, [["__scopeId", "data-v-a12ce8ac"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1417
1417
  __proto__: null,
1418
1418
  default: $t
1419
1419
  }, Symbol.toStringTag, { value: "Module" })), vt = { class: "as-icon" }, wt = {
@@ -1474,14 +1474,14 @@ const ne = {
1474
1474
  height: `${o.height}`
1475
1475
  };
1476
1476
  }
1477
- return (m, v) => (g(), _("i", vt, [
1478
- t.showtype === "filter" ? (g(), _("i", wt, [
1477
+ return (m, v) => (g(), b("i", vt, [
1478
+ t.showtype === "filter" ? (g(), b("i", wt, [
1479
1479
  p("img", {
1480
1480
  style: U(c()),
1481
1481
  src: n.value,
1482
1482
  onError: v[0] || (v[0] = (j) => r())
1483
1483
  }, null, 44, jt)
1484
- ])) : (g(), _("i", {
1484
+ ])) : (g(), b("i", {
1485
1485
  key: 1,
1486
1486
  class: "as-icon-mask",
1487
1487
  style: U(f())
@@ -1530,12 +1530,12 @@ const ne = {
1530
1530
  class: "as-floating-button",
1531
1531
  onClick: r
1532
1532
  }, [
1533
- n.value ? (g(), _("span", Ct, "×")) : (g(), _("span", Pt, "☰"))
1533
+ n.value ? (g(), b("span", Ct, "×")) : (g(), b("span", Pt, "☰"))
1534
1534
  ]),
1535
1535
  p("ul", {
1536
1536
  class: E(["as-floating-menus", { open: n.value }])
1537
1537
  }, [
1538
- (g(!0), _(L, null, G(f.value, (v, j) => (g(), _("li", {
1538
+ (g(!0), b(L, null, G(f.value, (v, j) => (g(), b("li", {
1539
1539
  key: "menu" + j,
1540
1540
  class: E(`${v.type === "module" ? "module " : ""}${v.value && d(s).location.hash.includes(v.value) ? "active" : ""}`),
1541
1541
  onPointerup: (k) => v.value ? d(e).sethash(v.value) : v?.fn?.()
@@ -1555,8 +1555,8 @@ const ne = {
1555
1555
  },
1556
1556
  setup(t) {
1557
1557
  const o = t, { $fn: e } = o.ujt;
1558
- return (s, n) => (g(), _("div", Lt, [
1559
- (g(!0), _(L, null, G(t.menus, (r) => (g(), _("div", {
1558
+ return (s, n) => (g(), b("div", Lt, [
1559
+ (g(!0), b(L, null, G(t.menus, (r) => (g(), b("div", {
1560
1560
  class: "app-menu",
1561
1561
  onClick: n[0] || (n[0] = (f) => d(e).sethash("item.value"))
1562
1562
  }, C(r.label), 1))), 256))
@@ -1580,10 +1580,10 @@ const ne = {
1580
1580
  } catch {
1581
1581
  return c && c.endsWith("/default") ? F(
1582
1582
  e.comps[`./${c.slice(0, -8)}.vue`]
1583
- ) : F(() => import("./Asai404-sBMJVBGr.mjs"));
1583
+ ) : F(() => import("./Asai404-D6OFruoI.mjs"));
1584
1584
  }
1585
1585
  } catch {
1586
- return F(() => import("./Asai404-sBMJVBGr.mjs"));
1586
+ return F(() => import("./Asai404-D6OFruoI.mjs"));
1587
1587
  }
1588
1588
  };
1589
1589
  const f = K(
@@ -1621,7 +1621,7 @@ const ne = {
1621
1621
  new Array(o.items.length).fill(Math.round(o.itemHeight))
1622
1622
  ), c = /* @__PURE__ */ new Map(), m = R(() => Math.round(
1623
1623
  o.items.reduce(
1624
- (i, h, b) => i + v(b),
1624
+ (i, h, _) => i + v(_),
1625
1625
  0
1626
1626
  )
1627
1627
  )), v = (i) => i < 0 || i >= o.items.length ? 0 : Math.round(f.value[i] ?? o.itemHeight), j = () => {
@@ -1631,21 +1631,21 @@ const ne = {
1631
1631
  end: Math.min(o.items.length, o.buffer * 3)
1632
1632
  };
1633
1633
  const i = s.value, h = e.value.clientHeight;
1634
- let b = 0, $ = o.items.length;
1635
- for (; b < $; ) {
1636
- const M = b + $ >>> 1;
1637
- l(M) <= i ? b = M + 1 : $ = M;
1634
+ let _ = 0, $ = o.items.length;
1635
+ for (; _ < $; ) {
1636
+ const M = _ + $ >>> 1;
1637
+ l(M) <= i ? _ = M + 1 : $ = M;
1638
1638
  }
1639
- const S = Math.max(0, b - 1), P = Math.ceil(h / o.itemHeight) + o.buffer * 2, I = Math.min(o.items.length, S + P);
1639
+ const S = Math.max(0, _ - 1), P = Math.ceil(h / o.itemHeight) + o.buffer * 2, I = Math.min(o.items.length, S + P);
1640
1640
  return { start: S, end: I };
1641
1641
  }, k = R(() => {
1642
1642
  const { start: i, end: h } = j();
1643
- return o.items.slice(i, h).map((b, $) => {
1643
+ return o.items.slice(i, h).map((_, $) => {
1644
1644
  const S = i + $;
1645
1645
  return {
1646
1646
  index: S,
1647
- id: b.id || S,
1648
- data: b,
1647
+ id: _.id || S,
1648
+ data: _,
1649
1649
  offset: l(S)
1650
1650
  };
1651
1651
  });
@@ -1655,17 +1655,17 @@ const ne = {
1655
1655
  let h = i - 1;
1656
1656
  for (; h > 0 && !c.has(h); )
1657
1657
  h--;
1658
- let b = h > 0 ? c.get(h) : 0;
1658
+ let _ = h > 0 ? c.get(h) : 0;
1659
1659
  for (let S = h; S < i; S++)
1660
- b += v(S);
1661
- const $ = Math.round(b);
1660
+ _ += v(S);
1661
+ const $ = Math.round(_);
1662
1662
  return c.set(i, $), $;
1663
1663
  }, a = () => {
1664
1664
  n.value && cancelAnimationFrame(n.value), n.value = requestAnimationFrame(() => {
1665
1665
  e.value && (s.value = Math.round(e.value.scrollTop), r.value && clearTimeout(r.value), r.value = window.setTimeout(() => {
1666
- const { start: i, end: h } = j(), b = o.buffer * 2;
1666
+ const { start: i, end: h } = j(), _ = o.buffer * 2;
1667
1667
  for (const $ of c.keys())
1668
- ($ < i - b || $ > h + b) && c.delete($);
1668
+ ($ < i - _ || $ > h + _) && c.delete($);
1669
1669
  }, 150));
1670
1670
  });
1671
1671
  };
@@ -1684,7 +1684,7 @@ const ne = {
1684
1684
  );
1685
1685
  }), N(() => {
1686
1686
  u && u.stop(), n.value && cancelAnimationFrame(n.value), r.value && clearTimeout(r.value);
1687
- }), (i, h) => (g(), _("div", {
1687
+ }), (i, h) => (g(), b("div", {
1688
1688
  class: "virtual-list-container",
1689
1689
  onScroll: a,
1690
1690
  ref_key: "container",
@@ -1695,12 +1695,12 @@ const ne = {
1695
1695
  class: "virtual-list-wrapper",
1696
1696
  style: U({ height: m.value + "px" })
1697
1697
  }, [
1698
- (g(!0), _(L, null, G(k.value, (b) => (g(), _("div", {
1698
+ (g(!0), b(L, null, G(k.value, (_) => (g(), b("div", {
1699
1699
  class: "virtual-list-item",
1700
- key: "as" + b.index,
1701
- style: U({ transform: `translateY(${b.offset}px)` })
1700
+ key: "as" + _.index,
1701
+ style: U({ transform: `translateY(${_.offset}px)` })
1702
1702
  }, [
1703
- q(i.$slots, "default", { item: b }, void 0, !0)
1703
+ q(i.$slots, "default", { item: _ }, void 0, !0)
1704
1704
  ], 4))), 128))
1705
1705
  ], 4)
1706
1706
  ], 544));
@@ -1721,7 +1721,7 @@ const ne = {
1721
1721
  function e() {
1722
1722
  o?.localStorage?.clear(), o?.location?.reload();
1723
1723
  }
1724
- return (s, n) => (g(), _("div", Nt, [
1724
+ return (s, n) => (g(), b("div", Nt, [
1725
1725
  p("img", {
1726
1726
  onDblclick: n[0] || (n[0] = (r) => e()),
1727
1727
  src: d(o).$CFG.logo,
@@ -1754,7 +1754,7 @@ const ne = {
1754
1754
  function e() {
1755
1755
  o?.localStorage?.clear(), o?.location?.reload();
1756
1756
  }
1757
- return (s, n) => (g(), _("div", qt, [
1757
+ return (s, n) => (g(), b("div", qt, [
1758
1758
  p("img", {
1759
1759
  onDblclick: n[0] || (n[0] = (r) => e()),
1760
1760
  src: d(o).$CFG.logo,
@@ -1788,7 +1788,7 @@ const ne = {
1788
1788
  const o = t, { $fn: e, $global: s } = o.ujt;
1789
1789
  return (n, r) => {
1790
1790
  const f = w("AsPageBusyGif"), c = w("AsReset");
1791
- return g(), _("div", Zt, [
1791
+ return g(), b("div", Zt, [
1792
1792
  p("img", {
1793
1793
  onDblclick: r[0] || (r[0] = (m) => d(e).As.localInit()),
1794
1794
  src: d(s).$cfg.logo,
@@ -1820,7 +1820,7 @@ const ne = {
1820
1820
  const o = t, { $fn: e, $global: s } = o.ujt;
1821
1821
  return (n, r) => {
1822
1822
  const f = w("AsPageBusyGif"), c = w("AsReset");
1823
- return g(), _("div", lo, [
1823
+ return g(), b("div", lo, [
1824
1824
  p("img", {
1825
1825
  onDblclick: r[0] || (r[0] = (m) => d(e).As.localInit()),
1826
1826
  src: d(s).$cfg.logo,
@@ -1839,10 +1839,10 @@ const ne = {
1839
1839
  }), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1840
1840
  __proto__: null,
1841
1841
  default: uo
1842
- }, Symbol.toStringTag, { value: "Module" })), go = { class: "as-load-area" }, po = ["src"], ho = { class: "as-load-icon" }, mo = { class: "as-load-msg" }, _o = {
1842
+ }, Symbol.toStringTag, { value: "Module" })), go = { class: "as-load-area" }, po = ["src"], ho = { class: "as-load-icon" }, mo = { class: "as-load-msg" }, bo = {
1843
1843
  class: "tit",
1844
1844
  style: { color: "var(--cz8)" }
1845
- }, bo = /* @__PURE__ */ y({
1845
+ }, _o = /* @__PURE__ */ y({
1846
1846
  __name: "PageLoadUserToken",
1847
1847
  props: {
1848
1848
  ujt: {}
@@ -1851,7 +1851,7 @@ const ne = {
1851
1851
  const o = t, { $fn: e, $global: s } = o.ujt;
1852
1852
  return (n, r) => {
1853
1853
  const f = w("AsPageBusyGif"), c = w("AsReset");
1854
- return g(), _("div", go, [
1854
+ return g(), b("div", go, [
1855
1855
  p("img", {
1856
1856
  onDblclick: r[0] || (r[0] = (m) => d(e).As.localInit()),
1857
1857
  src: d(s).$cfg.logo,
@@ -1861,7 +1861,7 @@ const ne = {
1861
1861
  O(f, { ujt: t.ujt }, null, 8, ["ujt"])
1862
1862
  ]),
1863
1863
  p("div", mo, [
1864
- p("div", _o, C(d(s).lang.asai.page.loadusertoken), 1),
1864
+ p("div", bo, C(d(s).lang.asai.page.loadusertoken), 1),
1865
1865
  O(c, { ujt: t.ujt }, null, 8, ["ujt"])
1866
1866
  ])
1867
1867
  ]);
@@ -1869,7 +1869,7 @@ const ne = {
1869
1869
  }
1870
1870
  }), $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1871
1871
  __proto__: null,
1872
- default: bo
1872
+ default: _o
1873
1873
  }, Symbol.toStringTag, { value: "Module" })), yo = { class: "as-load-area" }, vo = ["src"], wo = { class: "as-load-icon" }, jo = { class: "as-load-msg" }, So = {
1874
1874
  class: "tit",
1875
1875
  style: { color: "var(--cy8)" }
@@ -1882,7 +1882,7 @@ const ne = {
1882
1882
  const o = t, { $fn: e, $global: s } = o.ujt;
1883
1883
  return (n, r) => {
1884
1884
  const f = w("AsPageBusyGif"), c = w("AsReset");
1885
- return g(), _("div", yo, [
1885
+ return g(), b("div", yo, [
1886
1886
  p("img", {
1887
1887
  onDblclick: r[0] || (r[0] = (m) => d(e).As.localInit()),
1888
1888
  src: d(s).$cfg.logo,
@@ -1914,7 +1914,7 @@ const ne = {
1914
1914
  const o = t, { $fn: e, $global: s } = o.ujt;
1915
1915
  return (n, r) => {
1916
1916
  const f = w("AsPageBusyGif"), c = w("AsReset");
1917
- return g(), _("div", Oo, [
1917
+ return g(), b("div", Oo, [
1918
1918
  p("img", {
1919
1919
  onDblclick: r[0] || (r[0] = (m) => d(e).As.localInit()),
1920
1920
  src: d(s).$cfg.logo,
@@ -1945,7 +1945,7 @@ const ne = {
1945
1945
  "./asengine/common/AsAES copy.ts": ie,
1946
1946
  "./asengine/common/AsRouter.ts": ce,
1947
1947
  "./asengine/init/useInitApp.ts": de,
1948
- "./asengine/provide/useProvide.ts": _e
1948
+ "./asengine/provide/useProvide.ts": be
1949
1949
  })
1950
1950
  }), o.loadvue({
1951
1951
  loadfn: o.loadfn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asai-vue-host",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "asai for you",
5
5
  "author": "Asai",
6
6
  "license": "ISC",