asai-vue-host 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Asai404-Dg8yj9K1.mjs → Asai404-Cw8mIETK.mjs} +1 -1
- package/dist/asai-vue-host/asui/common/TreeMenu.vue.d.ts +23 -0
- package/dist/asai-vue-host.css +1 -1
- package/dist/asai-vue-host.es.js +1 -1
- package/dist/asai-vue-host.umd.js +8 -8
- package/dist/index-CYyp6VbQ.mjs +8362 -0
- package/package.json +1 -1
- package/dist/asai-vue-host/asui/form/AsaiForm.vue.d.ts +0 -8
- package/dist/asai-vue-host/asui/form/AsaiFormLabel.vue.d.ts +0 -19
- package/dist/asai-vue-host/asui/form/AsaiFormLabelArea.vue.d.ts +0 -21
- package/dist/asai-vue-host/asui/form/AsaiFormLi.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiFormObject.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiFormShow.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiInput.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiRichEditor.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiSelect.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiSelectLv.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiTextJson.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiTextarea.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiUpBinary.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiUpload.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiUploadImg.vue.d.ts +0 -9
- package/dist/asai-vue-host/asui/form/AsaiUploadImgCut.vue.d.ts +0 -7
- package/dist/asai-vue-host/asui/form/AsaiUploadImgCutPop.vue.d.ts +0 -7
- package/dist/asai-vue-host/asui/formbase/AsfCheck.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfInput.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfInputSn.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfSelect.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfTextarea.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfTick.vue.d.ts +0 -12
- package/dist/asai-vue-host/asui/formbase/AsfUploadFile.vue.d.ts +0 -27
- package/dist/asai-vue-host/asui/formbase/AsfUploadText.vue.d.ts +0 -27
- package/dist/index-DYuE9bGI.mjs +0 -10187
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(K,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(K=typeof globalThis<"u"?globalThis:K||self,e(K["asai-vue-host"]={},K.Vue))})(this,(function(K,e){"use strict";const Z=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ui}},Symbol.toStringTag,{value:"Module"})),$e=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){if(typeof n.value=="function"){let o=0;const a=300,l=s=>{const r=performance.now();r-o<a?(n.value(s),o=0):o=r};t.__dbPointerDownHandler=l,t.addEventListener("pointerdown",l)}},unmounted(t){const n=t.__dbPointerDownHandler;n&&(t.removeEventListener("pointerdown",n),delete t.__dbPointerDownHandler)}}},Symbol.toStringTag,{value:"Module"}));function X(t,n){function o(y,C){C?.classList?.contains(y)&&C.classList.remove(y)}function a(y,C){C?.classList?.contains(y)||C.classList.add(y)}function l(y){a("touch-none",y)}function s(y){o("touch-none",y)}function r(y){const C=window.event||y;return C?.preventDefault(),C?.stopPropagation(),!0}function i(y){const C=window.event||y;C.cancelable&&(C?.preventDefault(),C?.stopPropagation())}function m(y){n.timeout||(n.timeout=requestAnimationFrame(()=>{y(),cancelAnimationFrame(n.timeout),n.timeout=null}))}function d(){n.timeout&&(cancelAnimationFrame(n.timeout),n.timeout=null)}function c(){return"ontouchstart"in window||navigator.maxTouchPoints}function f(y){c()&&n.touchstat!==1&&(y.addEventListener("touchstart",h,!0),n.touchstat=1)}function p(y){c()&&n.touchstat!==2&&(y.addEventListener("touchmove",r),l(y),n.touchstat=2)}function u(y){c()&&n.touchstat!==3&&(y.removeEventListener("touchmove",r),s(y),n.touchstat=3)}function h(y){document.body.addEventListener("touchmove",g),document.body.addEventListener("touchend",k),n.dragttm=Date.now()}function g(y){n.dragttm&&Date.now()-n.dragttm<1e3&&(n.dragtstat=2)}function k(y){document.body.removeEventListener("touchmove",g),document.body.removeEventListener("touchend",k),n.dragtstat=0}return{eStop:r,canTouch:c,eStopTouch:i,setTouchNone:l,setTouchAuto:s,fnPThrottle:m,fnPThrottleCancel:d,vtTouchInit:f,vtTouchDown:p,vtTouchUp:u}}const Ce=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o={},{fnPThrottle:a,fnPThrottleCancel:l,vtTouchInit:s,vtTouchDown:r,vtTouchUp:i}=X(t,n.value);s(t);let m=!1,d=0,c=0,f=0,p=0;typeof n.value.domarea=="string"?o.dragAreaDom=document.getElementById(n.value.domarea):o.dragAreaDom=t;const u=k=>{console.log("handleDown",o,k),r(t),m=!0;const y=o.dragAreaDom.getBoundingClientRect();o.dragAreaDom.style.position="absolute",o.dragAreaDom.style.transform=`translate(${y.x}px, ${y.y}px)`,d=k.clientX-y.x,c=k.clientY-y.y,t.style.cursor="grabbing",document.addEventListener("pointermove",h),document.addEventListener("pointerup",g)},h=k=>{a(()=>{if(m){f=k.clientX-d,p=k.clientY-c;const y=window.innerWidth-o.dragAreaDom.offsetWidth,C=window.innerHeight-o.dragAreaDom.offsetHeight;f=Math.max(0,Math.min(f,y)),p=Math.max(0,Math.min(p,C)),o.dragAreaDom.style.transform=`translate(${f}px, ${p}px)`}})},g=()=>{l(),m=!1,t.style.cursor="grab",i(t),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",g)};t.addEventListener("pointerdown",u),t.unmounted=()=>{t.removeEventListener("pointerdown",u)}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),we=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:r}=X(t,n.value);l(t);let i=!1,m={x:0,y:0},d={x:0,y:0},c=null,f=1,p={};p.dragDom=(n.value?.dom?document.getElementById(n.value.dom):"")||t;const u=()=>p.dragMaskDom&&(n.value?.scale||n.value?.ujt?.$global?.scale)||1,h=b=>{if(p.dragAreaDom=(n.value?.domarea?document.getElementById(n.value.domarea):"")||p.dragDom,p.dragMaskDom=(n.value?.dommask?document.getElementById(n.value.dommask):"")||(n.value?.ujt?.$global?.sys?.zoomid?document.getElementById(n.value.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body,!p.dragMaskDom)return;s(t),b.preventDefault(),f=u(),n.value?.gameevents?.fndown&&typeof n.value.gameevents.fndown=="function"&&n.value.gameevents.fndown(b)?.(),d={...n.value.pos},i=!0,c=p.dragMaskDom.getBoundingClientRect();let $,w;$=b.clientX,w=b.clientY,m={x:($-c.left)/f-d.x,y:(w-c.top)/f-d.y},p.dragDom.setPointerCapture(b.pointerId),document.addEventListener("pointermove",g),document.addEventListener("pointerup",y),document.addEventListener("pointercancel",y)},g=b=>{if(!i||!c)return;let $,w;$=b.clientX,w=b.clientY,f=u();const _=($-c.left)/f-m.x,j=(w-c.top)/f-m.y,B=p.dragMaskDom.offsetWidth-p.dragAreaDom.offsetWidth,S=p.dragMaskDom.offsetHeight-p.dragAreaDom.offsetHeight;o(()=>{n.value.pos.x=+Math.max(0,Math.min(_,B)).toFixed(3),n.value.pos.y=+Math.max(0,Math.min(j,S)).toFixed(3)})},k=(b,$,w=null)=>{let _;p.dropDom=document.getElementById("box-"+$);const j=p.dropDom?.getBoundingClientRect();return j&&(_=b.left<j.right&&b.right>j.left&&b.top<j.bottom&&b.bottom>j.top,_&&n.value.gameevents.fnup(w)?.({dropid:$})),_},y=b=>{if(a(),r(t),b instanceof PointerEvent&&p.dragDom.hasPointerCapture(b.pointerId)&&(i=!1,p.dragDom.releasePointerCapture(b.pointerId)),n.value?.gameevents?.fnup&&typeof n.value.gameevents.fnup=="function"){let $;if(n.value?.gameevents?.params?.domev?.length){const w=p.dragDom.getBoundingClientRect();n.value.gameevents.params.domev.forEach(_=>{$||($=k(w,_,b))})}!$&&n.value?.gameevents?.params?.typedrop==2&&(n.value.pos.x=d.x,n.value.pos.y=d.y)}document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",y),document.removeEventListener("pointercancel",y)};p.dragDom.addEventListener("pointerdown",h);const C=()=>c=null;window.addEventListener("resize",C),t.unmounted=()=>{p.dragDom.removeEventListener("pointerdown",h),window.removeEventListener("resize",C),p=null}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),je=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:r}=X(t,n.value);l(t);let i=!1,m={x:0,y:0},d={x:0,y:0},c=null,f=1,p={};p.dragDom=(n.value?.dom?document.getElementById(n.value.dom):"")||t;const u=()=>p.dragMaskDom&&(n.value?.scale||n.value?.ujt?.$global?.scale)||1,h=C=>{if(p.dragAreaDom=(n.value?.domarea?document.getElementById(n.value.domarea):"")||p.dragDom,p.dragMaskDom=(n.value?.dommask?document.getElementById(n.value.dommask):"")||(n.value?.ujt?.$global?.sys?.zoomid?document.getElementById(n.value.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body,!p.dragMaskDom)return;if(s(t),C.preventDefault(),f=u(),n.value?.events?.fndown&&typeof n.value.events.fndown=="function"&&n.value.events.fndown(),n.value?.pos)d={...n.value.pos};else{const _=window.getComputedStyle(p.dragAreaDom).transform?.split(", ");if(_.length>2){const j=_.pop().slice(0,-1)||0,B=_.pop()||0;d={x:parseFloat(B),y:parseFloat(j)}}else d={x:0,y:0}}i=!0,c=p.dragMaskDom.getBoundingClientRect();let b,$;b=C.clientX,$=C.clientY,m={x:(b-c.left)/f-d.x,y:($-c.top)/f-d.y},p.dragDom.setPointerCapture(C.pointerId),document.addEventListener("pointermove",g),document.addEventListener("pointerup",k),document.addEventListener("pointercancel",k)},g=C=>{if(!i||!c)return;let b,$;b=C.clientX,$=C.clientY,f=u();const w=(b-c.left)/f-m.x,_=($-c.top)/f-m.y,j=p.dragMaskDom.offsetWidth-p.dragAreaDom.offsetWidth,B=p.dragMaskDom.offsetHeight-p.dragAreaDom.offsetHeight;o(()=>{n.value.pos?(n.value.pos.x=+Math.max(0,Math.min(w,j)).toFixed(3),n.value.pos.y=+Math.max(0,Math.min(_,B)).toFixed(3)):p.dragAreaDom.style.transform=`translate(${+Math.max(0,Math.min(w,j)).toFixed(3)}px,${+Math.max(0,Math.min(_,B)).toFixed(3)}px)`})},k=C=>{a(),r(t),C instanceof PointerEvent&&p.dragDom.hasPointerCapture(C.pointerId)&&(i=!1,p.dragDom.releasePointerCapture(C.pointerId)),document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",k),document.removeEventListener("pointercancel",k)};p.dragDom.addEventListener("pointerdown",h);const y=()=>c=null;window.addEventListener("resize",y),t.unmounted=()=>{p.dragDom.removeEventListener("pointerdown",h),window.removeEventListener("resize",y),p=null}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"}));function Se(t){const n=window.event||t;n.preventDefault(),n.stopPropagation()}const Ee=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){function o(a){n.value.type===2&&Se(a);const l=document.getElementById(n.value.dom);l&&(l.classList.contains("as-fullscreen")?l.classList.remove("as-fullscreen"):l.classList.add("as-fullscreen"))}n.value.type===2?t.addEventListener("dblclick",o):t.addEventListener("click",o)}}},Symbol.toStringTag,{value:"Module"})),Be=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o={},{$global:a,$model:l}=n.value?.ujt||{};if(a?.sys?.onkeyboard){let s=function(){a.keyboard.params||(a.keyboard.params={})},r=function(u){u?.setAttribute("inputmode","none"),u?.style?.setProperty("ime-mode","disabled","important")},i=function(u){u?.removeAttribute("inputmode"),u?.style?.setProperty("ime-mode","normal","important")},m=function(u){r(u),a.keyboard.params.ot&&(a.keyboard.params.ot.fndscb=()=>{i(u),a.keyboard.params.ot.fndscb=null})},d=function(u){o.monacoDom=u.target.closest(".askey-luaeditor"),o.monacoDivDom=o.monacoDom.querySelector(".native-edit-context"),m(o.monacoDivDom),o.monacoHoverDom=o.monacoDom.querySelector(".monaco-hover"),m(o.monacoHoverDom),o.monacoTextareaDom=o.monacoDom.querySelector("textarea"),m(o.monacoTextareaDom)},c=function(u){return l.data.asai.keyboard?.nokeytypes?.some(h=>u.target?.closest(h))},f=function(u){return Object.keys(l.data.asai.keyboard?.askeytypes||{})?.find(h=>u.target?.closest(h))},p=function(u){if(a.keyboard.params?.ot?.fnnumcb?.(),a.keyboard.params?.ot?.fndscb?.(),s(),n.value?.auto&&(a.keyboard.areastyle.x=u.clientX+(n.value?.auto?.x||0),a.keyboard.areastyle.y=u.clientY+(n.value?.auto?.y||0)),a.keyboard.params.ot={},!c(u))if(u.target?.closest(".portaskeyboard"))a.keyboard.params.ot.portaskeyboard=!0;else if(u.target?.closest(".askey-luaeditor"))d(u),n.value?.style&&(a.keyboard.params.ot.style=n.value.style),Object.assign(a.keyboard.params,{type:"monaco",el:o.monacoTextareaDom}),a.keyboard.showkeyboard=".askey-luaeditor";else if(["textarea","text","number","password"].includes(u.target?.type)&&!u.target?.disabled){if(o.monacoDivDom=u.target,m(o.monacoDivDom),o.monacoDivDom.type==="number"){a.keyboard.showkeyboard=".askey-number",a.keyboard.params.ot.isnumber=!0,o.monacoDivDom.type="text";let h=requestAnimationFrame(()=>{o.monacoDivDom.setSelectionRange(o.monacoDivDom?.value?.length||0,o.monacoDivDom?.value?.length||0),o.monacoDivDom.focus(),cancelAnimationFrame(h)});a.keyboard.params.ot.fnnumcb=()=>{o.monacoDivDom.type="number"}}else{const h=f(u);h?a.keyboard.showkeyboard=h:a.keyboard.showkeyboard=".askey-default"}n.value?.style&&(a.keyboard.params.ot.style=n.value.style),Object.assign(a.keyboard.params,{type:o.monacoDivDom.type,el:o.monacoDivDom||t})}else a.keyboard.params={},a.keyboard.showkeyboard=""};s(),t.addEventListener("pointerdown",p),t.unmounted=()=>{t.removeEventListener("pointerdown",p)}}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),Ve=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){n?.value?.right||t?.classList&&!t.classList?.contains("asailevel")&&t.classList.add("asailevel")}}},Symbol.toStringTag,{value:"Module"})),xe=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{vtTouchInit:o,vtTouchDown:a,vtTouchUp:l}=X(t,n.value);o(t);const s=n.value.long?+n.value.long:0;let r=null,i=!1,m=0,d=0;const c=10,f=g=>{a(t),n.value.prevent&&g.preventDefault(),i=!0,g?.touches?.[0]?(m=g.touches[0].clientX,d=g.touches[0].clientY):(m=g.clientX,d=g.clientY),n.value.press&&n.value.press(g);function k(){i&&n.value.hold&&n.value.hold(g)}s?r=window.setTimeout(k,s):k()},p=g=>{l(t),r!==null&&(clearTimeout(r),r=null),i&&(n.value.release&&n.value.release(g),i=!1)},h={down:f,up:p,move:g=>{if(!i)return;let k=0,y=0;g?.touches?.[0]?(k=g.touches[0].clientX,y=g.touches[0].clientY):(k=g.clientX,y=g.clientY);const C=Math.abs(k-m),b=Math.abs(y-d);(C>c||b>c)&&(r!==null&&(clearTimeout(r),r=null),i=!1)}};t.addEventListener("pointerdown",f),t.addEventListener("pointerup",p),t.addEventListener("pointercancel",p),t.addEventListener("pointerleave",p),t._pressHandlers=h},unmounted(t){const n=t._pressHandlers;n&&(t.removeEventListener("pointerdown",n.down),t.removeEventListener("pointerup",n.up),t.removeEventListener("pointercancel",n.up),t.removeEventListener("pointerleave",n.up),delete t._pressHandlers)}}},Symbol.toStringTag,{value:"Module"})),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o=n.value||{};o?.domresize?o.Ddomresize=document.getElementById(o.domresize):o.Ddomresize=t,o.Ddomarea=(o?.domarea?document.getElementById(o.domarea):"")||(o?.ujt?.$global?.sys?.zoomid?document.getElementById(o.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body;const{width:a,height:l}=o.Ddomarea.getBoundingClientRect(),{fnPThrottle:s,fnPThrottleCancel:r,vtTouchInit:i,vtTouchDown:m,vtTouchUp:d}=X(o.Ddomresize,o);i(o.Ddomresize);const{ujt:c,size:f,scale:p}=o;let u={x:0,y:0},h;const g=()=>p||c?.$global?.scale||1;let k;a&&l?k={width:a/g(),height:l/g()}:k={width:c?.$global?.sys?.zoomwidth||1920,height:c?.$global?.sys?.zoomheight||1200};let y=!1,C,b,$,w,_=f||{w:0,h:0};const j=x=>({clientX:x.clientX,clientY:x.clientY}),B=x=>{m(o.Ddomresize),x.preventDefault(),h=g(),y=!0;const{clientX:V,clientY:N}=j(x);C=V-window.scrollX,b=N-window.scrollY,$=o.Ddomresize.offsetWidth,w=o.Ddomresize.offsetHeight;const T=window.getComputedStyle(o.Ddomresize).transform?.split(", ");if(T&&T.length>2){const U=T.pop().slice(0,-1),R=T.pop();u={x:parseFloat(R),y:parseFloat(U)}}else u={x:0,y:0};if(o.Ddomresize.style.transform=`translate(${u.x}px,${u.y}px)`,x instanceof PointerEvent)try{o.Ddomresize.setPointerCapture(x.pointerId)}catch{}document.addEventListener("pointermove",S),document.addEventListener("pointerup",E),document.addEventListener("pointercancel",E)},S=x=>{y&&s(()=>{const{clientX:V,clientY:N}=j(x),D=(V-window.scrollX-C)/h,T=(N-window.scrollY-b)/h;_.w=+Math.min(Math.max(88,$+D),k.width-u.x).toFixed(3),_.h=+Math.min(Math.max(58,w+T),k.height-u.y).toFixed(3),o.Ddomresize.style.width=_.w+"px",o.Ddomresize.style.height=_.h+"px"})},E=x=>{r(),d(o.Ddomresize),x instanceof PointerEvent&&o.Ddomresize.hasPointerCapture(x.pointerId)&&o.Ddomresize.releasePointerCapture(x.pointerId),y=!1,document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",E),document.removeEventListener("pointercancel",E)};o.domresizex==""||o.domresizex=="asai"?o.DXdomresize=t:(o.domresizex&&(o.DXdomresize=document.getElementById(o.domresizex)),o.DXdomresize||(o.DXdomresize=document.createElement("div"),o.DXdomresize.classList.add("resize-bottom-right"),o.Ddomresize.appendChild(o.DXdomresize))),o.DXdomresize.addEventListener("pointerdown",B),t.unmounted=()=>{o.DXdomresize.removeEventListener("pointerdown",B),o.DXdomresize&&o.DXdomresize.remove()}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:r}=X(t,n.value);l(t);const{ujt:i,scale:m,id:d,type:c,cut:f,min:p}=n.value,u=()=>{const V=m||i?.$global?.scale||1;return Number(V)||1},h={width:Number(i?.$global?.sys?.zoomwidth)||1920,height:Number(i?.$global?.sys?.zoomheight)||1200};let g=Number(f)||0;c?h.height=h.height-g:h.width=h.width-g;function k(){let V;return typeof p=="function"?V=p():typeof p?.value=="number"?V=p?.value:typeof p=="number"?V=p:V=100,Number(V)||100}let y,C=1,b=!1,$=0,w=0,_=0,j=0;const B=V=>{if(y=document.getElementById(d),!y){console.error(`未找到 ID 为 ${d} 的元素`);return}s(t),V.preventDefault(),C=u(),b=!0,c?(_=V.clientY,j=y.offsetHeight):($=V.clientX,w=y.offsetWidth),document.addEventListener("pointermove",S),document.addEventListener("pointerup",E)},S=V=>{b&&o(()=>{if(c){const N=(_-V.clientY)/C,D=Math.max(k(),j+N);isFinite(D)&&isFinite(h.height)&&(y.style.height=Math.min(D,h.height)+"px",y.style.minHeight=Math.min(D,h.height)+"px")}else{const N=($-V.clientX)/C,D=Math.max(k(),w+N);isFinite(D)&&isFinite(h.width)&&(y.style.width=Math.min(D,h.width)+"px",y.style.minWidth=Math.min(D,h.width)+"px")}})},E=()=>{a(),b=!1,r(t),document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",E)};t.addEventListener("pointerdown",B);const x=()=>{t.removeEventListener("pointerdown",B)};t.__unmountResize=x},unmounted(t){t.__unmountResize&&(t.__unmountResize(),delete t.__unmountResize)}}},Symbol.toStringTag,{value:"Module"})),De=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t){t.scrollTop=t.scrollHeight;const n={autoScrollEnabled:!0,handler:()=>{const o=Math.abs(t.scrollHeight-t.scrollTop-t.clientHeight)<10;n.autoScrollEnabled=o}};t.addEventListener("scroll",n.handler),t.__scrollData__=n,t.__vueScrollUpdate__=()=>{n.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}},updated(t){const n=t.__vueScrollUpdate__;n&&n()},beforeUnmount(t){const n=t.__scrollData__;n&&n.handler&&t.removeEventListener("scroll",n.handler),delete t.__vueScrollUpdate__,delete t.__scrollData__}}},Symbol.toStringTag,{value:"Module"})),Pe=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{ujt:o,lv:a}=n?.value||{},{$global:l}=o;a&&l?.user?.info?.lv<a&&t?.classList&&!t.classList?.contains("asailevel")&&t.classList.add("asailevel")}}},Symbol.toStringTag,{value:"Module"})),ze=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n="web")=>{const{$global:o,$fn:a}=t;return a.api[n]||(a.api[n]=new a.AsaiApi({baseURL:a.As.getUrlByCfg(o.link.api[n],0),Userinfo:o.user.info,ujt:t}),a.api[n].ictReq(async({url:l,opt:s})=>(s?.mm&&(s.headers.Userinfo=`${a.gettoken(1)}`),{url:l,opt:s})),a.api[n].ictRes(l=>([908].includes(l.code)?l.data="":[909,200].includes(l.code),l)),a.api[n]&&o?.sys?.tyrobot==n&&(a.apisys=a.api[n])),a.api[n]}},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a,$model:l}=t.ujt,{channelApiInit:s,addItem:r,popConfirm:i,popBox:m,setChannelHash:d,channelApiPost:c,getQueryData:f,getQueryString:p,channelBarShow:u,channelLang:h,checkContent:g}=n.useChannelBase(t),{getBarData:k,getDefaultValue:y,getChannelKeys:C,getCommentsKey:b,getSnKey:$,getLvKey:w,getPwKey:_,getClassKey:j,getTitleKey:B,getImgKey:S,getContentKey:E}=n.useChannelBaseKey(t);function x(){return t.opt.dty=="file"?"/api/asaichannel/file":t.opt.dty=="sqlite"?"/api/asaichannel/sqlite":"/api/asaichannel/json"}function V(z,P="",L={}){return new Promise((O,M)=>{t.opt.dty=="client"?P?.show?n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/class/${P?.fl}.json`).then(F=>{const W=F.list?.[P?.show];n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/file/${P?.show}.txt`).then(I=>{W[$()]=P?.show,W[E()]=I,O([W])}).catch(M)}).catch(M):n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/class/${P?.fl}.json`).then(F=>{const W=Object.entries(F?.list||{})?.map(([I,Q])=>({...Q,[$()]:I}));O(W)}).catch(M):n.apisys.apiGet(x()+z,P,L).then(F=>{O(F?.data)}).catch(M)})}function N(z,P={}){return V("/select/",z,P)}function D(){typeof o[t.opt.channel].lang!="object"&&(o[t.opt.channel].lang={}),o[t.opt.channel].lang.label=o[t.opt.channel]?.lang?.[a.config.lang]?.label||o[t.opt.channel]?.lang?.default?.label||a.lang?.[t.opt.channel]?.label||"",o[t.opt.channel].lang.form={...a.lang?.asaichannel?.form||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.form||o[t.opt.channel]?.lang?.default?.form||a.lang?.[t.opt.channel]?.form||{}},o[t.opt.channel].lang.ui={...a.lang?.asaichannel?.ui||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.ui||o[t.opt.channel]?.lang?.default?.ui||a.lang?.[t.opt.channel]?.ui||{}},o[t.opt.channel].lang.classtemp={...a.lang?.asaichannel?.classtemp||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.classtemp||o[t.opt.channel]?.lang?.default?.classtemp||a.lang?.[t.opt.channel]?.classtemp||{}},o[t.opt.channel].lang.class=o[t.opt.channel]?.lang?.[a.config.lang]?.class||o[t.opt.channel]?.lang?.default?.class||a.lang?.[t.opt.channel]?.class||{}}function T(z=0){return new Promise((P,L)=>{if(o[t.opt.channel]?.stat&&!z)P();else try{o[t.opt.channel]={opt:t.opt,stat:0,fetch:q,setpage:_e,cmPageList:[],dbtype:"file"},s().then(O=>{O&&typeof O=="object"&&o[t.opt.channel]?(Object.assign(o[t.opt.channel],O),D(),o[t.opt.channel].lang?.classtemp&&o[t.opt.channel].lang?.class&&(a.location?.query&&!o[t.opt.channel].lang.class?.asai&&(a.location.query.fl=Object.keys(o[t.opt.channel].lang.class)[0]),Object.keys(o[t.opt.channel].lang.class).forEach(M=>{o[t.opt.channel].lang.class[M]={...o[t.opt.channel].lang?.classtemp||{},...o[t.opt.channel].lang.class[M]}})),o[t.opt.channel].rfdata.lang=o[t.opt.channel].lang?.form||{},o[t.opt.channel].rfdata.rule?.[j()]?.data==="class"&&(o[t.opt.channel].rfdata.rule[j()][j()+"data"]=Object.fromEntries(Object.keys(o[t.opt.channel].lang.class).map(M=>[M,o[t.opt.channel].lang.class?.[M]?.nm]))),Object.keys(o[t.opt.channel].rfdata.rule).forEach(M=>{o[t.opt.channel].rfdata.rule?.[M]?.[M+"data"]&&typeof o[t.opt.channel].rfdata.rule?.[M]?.[M+"data"]=="string"&&(o[t.opt.channel].rfdata.rule[M][M+"data"]=o[t.opt.channel].lang[o[t.opt.channel].rfdata.rule[M]?.[M+"data"]])}),o[t.opt.channel]?.cfg?.single||(o[t.opt.channel].rfdata.rule={...l.data.asai.asaichannel?.rule||{},...o[t.opt.channel].rfdata.rule||{}}),o[t.opt.channel].stat=1,P()):L("channel data error!")})}catch(O){L(O)}})}function U(){const z=y();o[t.opt.channel].rfdata.data={},Object.keys(o[t.opt.channel]?.rfdata?.rule||{}).forEach(P=>{o[t.opt.channel].rfdata.data[P]=o[t.opt.channel]?.rfdata?.rule?.[P]?.default!=null?o[t.opt.channel]?.rfdata?.rule?.[P]?.default:z[P]?z[P]():typeof o[t.opt.channel]?.rfdata?.rule?.[P]?.type=="number"?0:""})}function R(z){return new Promise((P,L)=>{if(z)try{J(z).then(O=>{o[t.opt.channel]?.rfdata&&(o[t.opt.channel].rfdata.data=O[0]),P(o[t.opt.channel].rfdata.data)})}catch(O){L(O)}else L("sn error!")})}function G(z,P=0){n.setquery({fl:z}),q(0),t.opt.tyhash?d("list",P):U()}function wc(z=null){return new Promise((P,L)=>{T().then(()=>{q(1,z).then(P).catch(L)}).catch(L)})}function q(z=1,P=null){return new Promise((L,O)=>{function M(){return t.opt.fd?t.opt.fd:t.opt.lity?.ty=="blog"||o[t.opt.channel]?.cfg?.lity?.ty=="blog"?$()+"-"+B()+"-"+S()+"-"+E():t.opt.lity?.ty=="pic"||o[t.opt.channel]?.cfg?.lity?.ty=="pic"?$()+"-"+B()+"-"+S():$()+"-"+B()}N({fl:"",...f(),fd:M(),ps:o[t.opt.channel].cmPageSize,...a.location?.query,...P||{}},o[t.opt.channel].cfg?.api?.opt||{}).then(F=>{t.opt.dty=="client"?(n.setquery({pc:F?.length||""},1),o[t.opt.channel].contentList=F.slice(o[t.opt.channel].cmPageSize*((a.location?.query?.pg||1)-1),o[t.opt.channel].cmPageSize*(a.location?.query?.pg||1)),L(o[t.opt.channel].contentList)):t.opt.dty=="file"?(n.setquery({pc:F?.count||""},1),o[t.opt.channel].contentList=F.data,L(o[t.opt.channel].contentList)):(o[t.opt.channel].contentList=F,jc(z).then(W=>{L(o[t.opt.channel].contentList)}).catch(O))}).catch(O)})}function jc(z=1){return new Promise((P,L)=>{z?P([]):N({...f(),fd:$(),...a.location?.query,sx:"",sxty:"",pc:0,pg:0,ps:Number(o[t.opt.channel].cfg.config?.pmax)||1e4},o[t.opt.channel].cfg?.api?.opt||{}).then(O=>{n.setquery({pc:O?.length||""},1),P(O)}).catch(L)})}function _e(z){return new Promise((P,L)=>{n.setquery({pg:z||1},1),q(a.location.query?.pc||0).then(O=>{P(O)}).catch(L)})}function Sc(z){return new Promise((P,L)=>{V("/delete/"+z+p()).then(O=>{q(0,{svty:1}).then(M=>{P(M)}).catch(L)}).catch(L)})}function Ec(z,P=0){return new Promise((L,O)=>{t.opt.pop&&a.pop["popedit"+t.opt.channel]?m({ty:"edit",tit:a.lang.asai.edit}):t.opt.tyhash&&d("edit",P),z?R(z).then(M=>{n.setquery({show:z,showty:"1"},1),L(M)}).catch(O):O("sn error!")})}function Bc(z,P=0){return new Promise((L,O)=>{t.opt.pop&&a.pop["popshow"+t.opt.channel]?m({ty:"show",tit:a.lang.asai.show}):t.opt.tyhash&&d("show",P),z[$()]?R(z[$()]).then(M=>{n.setquery({show:z[$()],showty:""},1),L(M)}).catch(O):O("sn error!")})}function Vc(){return new Promise((z,P)=>{!a.location.query.ssty&&a.location.query.ss&&(a.location.query.ssty=o[t.opt.channel]?.cfg?.sss?.[1]),n.setquery({pg:1},1),q(0).then(L=>{z(L)}).catch(P)})}function xc(z=null){return new Promise((P,L)=>{n.As.isValidFileName(z)?J(z,{fd:$()}).then(O=>{P(O)}).catch(L):(a.msg.fn({type:"err",con:(o[t.opt.channel].lang?.form?.[$()]||$())+" "+n.lg("asai.error")}),L("sn error!"))})}function Nc(z=0,P=null,L=null){return new Promise((O,M)=>{if(g()){const F=P||o[t.opt.channel].rfdata.data;xc(F[$()]).then(W=>{if(W?.[0]?.[$()]){const I=n.lg("asai.checkhas",W?.[0]?.[$()]);!L?.nomsg&&a.msg.fn({type:"err",con:I}),M(I)}else c("/insert/"+F[$()]+p(),F,o[t.opt.channel].cfg?.api?.opt||{}).then(I=>{a.msg.fn({type:"ok",con:a.lang.asai.successadd}),q(0,{svty:1}).then(Q=>{t.opt.tyhash?d("list",z):U(),t.opt.pop&&a.pop["popadd"+t.opt.channel]&&(a.pop["popadd"+t.opt.channel].stat=0),O(Q)}).catch(M)}).catch(M)}).catch(M)}else M("checkContent error!")})}function J(z,P=null){return V("/select/"+z+"/",f(P),o[t.opt.channel].cfg?.api?.opt||{})}function Ac(z=null,P=null){return new Promise((L,O)=>{if(g()){const M=z||o[t.opt.channel].rfdata.data;c("/update/"+M[$()]+"/"+p(),M,o[t.opt.channel].cfg?.api?.opt||{}).then(F=>{!P?.nomsg&&a.msg.fn({type:"ok",con:a.lang.asai.successedit}),q(1,{svty:1}).then(W=>{t.opt.pop&&a.pop["popedit"+t.opt.channel]?a.pop["popedit"+t.opt.channel].stat=0:t.opt.tyhash&&d("list",P?.tty),L(W)}).catch(O)}).catch(O)}else O("checkContent error!")})}function Dc(z=null,P={}){return new Promise((L,O)=>{try{if(t.opt.dty==="client")L();else{const M=Object.keys(z);if(M?.length){M.unshift($());const F=["file","json"].includes(t.opt.dty);let W=z;o[t.opt.channel]?.rfdata?.data&&Object.entries(z).forEach(I=>{I[0]in o[t.opt.channel].rfdata.data&&(Array.isArray(I[1])?typeof I[1][1]=="number"?I[1][0]=="+"?o[t.opt.channel].rfdata.data[I[0]]=Number(o[t.opt.channel].rfdata.data[I[0]])+I[1][1]:I[1][0]=="-"&&(o[t.opt.channel].rfdata.data[I[0]]=Number(o[t.opt.channel].rfdata.data[I[0]])-I[1][1]):typeof I[1][1]=="string"&&(o[t.opt.channel].rfdata.data[I[0]]=o[t.opt.channel].rfdata.data[I[0]]+I[1][1]):o[t.opt.channel].rfdata.data[I[0]]=I[1])}),F&&(W=o[t.opt.channel].rfdata.data),c("/update/"+(P[$()]||o[t.opt.channel].rfdata.data[$()])+"/"+p(F?null:f({field:M.join("-")})),W,o[t.opt.channel].cfg?.api?.opt||{}).then(I=>{!P?.nomsg&&a.msg.fn({type:"ok",con:a.lang.asai.successedit}),L(I)}).catch(O)}else O()}}catch(M){O(M)}})}return{initChannel:T,initAddChannel:U,setChannelClass:G,setPage:_e,setShow:Bc,addItem:r,delItem:Sc,editItem:Ec,readItem:R,popConfirm:i,popBox:m,channelSelect:N,fetchChannelList:wc,fetchContent:q,searchSubmit:Vc,readContent:J,addContent:Nc,editContent:Ac,setChannelHash:d,channelApiGet:V,channelApiPost:c,getDefaultValue:y,getQueryData:f,getQueryString:p,channelBarShow:u,getChannelKeys:C,getCommentsKey:b,getSnKey:$,getLvKey:w,getPwKey:_,getClassKey:j,getTitleKey:B,getImgKey:S,getContentKey:E,getBarData:k,channelLang:h,channelQkSave:Dc}}},Symbol.toStringTag,{value:"Module"})),Oe=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a}=t.ujt;function l(b=""){if(typeof b=="string"&&b){const $=b.split(".");if($.length>1){let w=o[t.opt.channel]?.lang;return $.forEach(_=>{_&&typeof w=="object"&&(w=w?.[_])}),w||(w=a.lang.asaichannel,$.forEach(_=>{_&&typeof w=="object"&&(w=w?.[_])})),w}else return o[t.opt.channel].lang?.[b]||a.lang.asaichannel?.[b]}return""}function s(){return t.opt.dty=="file"?"/api/asaichannel/file":t.opt.dty=="sqlite"?"/api/asaichannel/sqlite":"/api/asaichannel/json"}function r(b){return["tm","tg"].includes(b[0])&&b[1].length>12?n.As.getTime(6,Number(b[1])):b?.[1]}function i(b,$,w={}){return new Promise((_,j)=>{t.opt.dty=="client"?(a.msg.fn({type:"err",con:n.lg("asai.failrequest")}),j(n.lg("asai.failrequest"))):n.apisys.apiPost(s()+b,$,w).then(B=>{_(B?.data)}).catch(j)})}function m(){return new Promise((b,$)=>{t.opt.dty=="client"?n.initmodel(t.opt.model+"/channel/"+t.opt.channel+"/channel.json").then(w=>{b(w)}).catch($):n.apisys.apiGet(`/api/asaijson/manage/select/?path=./webdata/webdb/channel${t.opt.dty?t.opt.dty:"json"}/${t.opt.model+"_"+t.opt.channel}/channel.json`).then(w=>{b(w.data)}).catch($)})}function d(){return Object.keys(o[t.opt.channel]?.rfdata?.rule||{})}function c(){const b=d();return b.includes("sn")&&b.includes("us")&&b.includes("lv")&&b.includes("pw")?b.filter($=>$!=="sn").join("-"):b.join("-")}function f(b=null){const $={model:t.opt.model,channel:t.opt.channel};return $.field=c(),Object.assign($,o[t.opt.channel]?.cfg?.map||{},a.location?.query||{},b||{}),t.opt.wlv&&($.wlv=t.opt.wlv),$}function p(b=null){return"?"+new URLSearchParams(b||f()).toString()}function u(){t.opt.pop&&a.pop["popadd"+t.opt.channel]?g({ty:"add",tit:a.lang.asai.add}):t.opt.tyhash&&k("add")}function h(b){Object.assign(a.pop["popconfirm"+t.opt.channel],{stat:1,full:2},o[t.opt.channel]?.cfg?.popbox||{},b||{}),a.pop["popconfirm"+t.opt.channel].con=b.con,a.pop["popconfirm"+t.opt.channel].fn=b.fn}function g(b={}){Object.assign(a.pop["pop"+b.ty+t.opt.channel],{noresize:0,stat:1,full:2,popstyle:{width:"68%",height:"auto","max-height":"88%"}},o[t.opt.channel]?.cfg?.popbox||{},b||{}),b.tit?a.pop["pop"+b.ty+t.opt.channel].tit=b.tit:a.pop["pop"+b.ty+t.opt.channel].notit=1,b.fn&&(a.pop["pop"+b.ty+t.opt.channel].fn=b.fn)}function k(b,$=0){$>-1&&n.sethash(a.location.hash.replace("/"+a.location.hasharr[$||t.opt.ty||1],"/"+b))}function y(){return Object.entries(o[t.opt.channel].rfdata.rule).filter(b=>b[1]?.required).map(b=>b[0])}function C(){const b=y();if(b.length){for(let $=0;$<b.length;$++)if(!o[t.opt.channel].rfdata.data[b[$]])return a.msg.fn({type:"err",con:n.lg("asai.checkrequired",o[t.opt.channel].rfdata.lang?.[b[$]]||b[$])}),!1}return!0}return{channelApiInit:m,addItem:u,popConfirm:h,popBox:g,setChannelHash:k,channelApiPost:i,getQueryData:f,getQueryString:p,channelBarShow:r,channelLang:l,checkContent:C}}},Symbol.toStringTag,{value:"Module"})),Te=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$db:n,$global:o,$fn:a}=t.ujt;function l(g){return Object.entries(g).filter(k=>!["xi","yi",i(),m(),d(),c(),f(),p(),u(),h()].includes(k[0])&&k[1])}function s(){const g={[i()]:()=>a.As.Uuid(t.opt.channel.substring(0,2)),hi:()=>1,xi:()=>1,yi:()=>0,tm:()=>Date.now(),tg:()=>Date.now(),us:()=>o.user.info?.us};return o.location.query.fl&&(g[c()]=()=>o.location.query.fl),g}function r(){return Object.keys(n[t.opt.channel].rfdata.rule)}function i(){return n[t.opt.channel]?.cfg?.map?.sn||"sn"}function m(){return n[t.opt.channel]?.cfg?.map?.lv||"lv"}function d(){return n[t.opt.channel]?.cfg?.map?.pw||"pw"}function c(){return n[t.opt.channel]?.cfg?.map?.class||"class"}function f(){return n[t.opt.channel]?.cfg?.map?.content||"content"}function p(){return n[t.opt.channel]?.cfg?.map?.title||"title"}function u(){return n[t.opt.channel]?.cfg?.map?.img||"img"}function h(){return n[t.opt.channel]?.cfg?.map?.comments||"comments"}return{getBarData:l,getDefaultValue:s,getChannelKeys:r,getCommentsKey:h,getSnKey:i,getLvKey:m,getPwKey:d,getClassKey:c,getTitleKey:p,getImgKey:u,getContentKey:f}}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$model:a}=t.ujt,{getSnKey:l,channelSelect:s,channelApiGet:r,channelApiPost:i,getQueryData:m,getQueryString:d,fetchContent:c}=n.useChannel(t);async function f(){if(o[t.opt.channel].cfg?.imex?.keys?.length===8){let u=function(b,$){return o[t.opt.channel].cfg.imex.keys[$]&&b[o[t.opt.channel].cfg.imex.keys[$]]||""};const h=await s({...m(),fd:o[t.opt.channel].cfg.imex.keys.filter(b=>b).join("-"),sx:"",sxty:"",pc:1,pg:1,ps:2e6}),g=h?.data||h;let k="",y=`${a.data.asai.rulechanneltobook.bkchannel}${o[t.opt.channel].lang.label}${a.data.asai.rulechanneltobook.bksn}${t.opt.channel}${a.data.asai.rulechanneltobook.bkty}1${a.data.asai.rulechanneltobook.bktm}${a.data.asai.rulechanneltobook.bktg}${a.data.asai.rulechanneltobook.bkds}`;const C=g?.sort((b,$)=>b[o[t.opt.channel].cfg.imex.keys[7]]?.localeCompare($[o[t.opt.channel].cfg.imex.keys[7]]));for(let b=0;b<C.length;b++){const $=C[b];$[o[t.opt.channel].cfg.imex.keys[7]]&&k!==$[o[t.opt.channel].cfg.imex.keys[7]]&&(k=$[o[t.opt.channel].cfg.imex.keys[7]],y+=`${a.data.asai.rulechanneltobook.bkclass}${o[t.opt.channel].lang.class?.[k]?.nm||""}${a.data.asai.rulechanneltobook.bksn}${k}${a.data.asai.rulechanneltobook.bkty}1${a.data.asai.rulechanneltobook.bktm}${a.data.asai.rulechanneltobook.bktg}${a.data.asai.rulechanneltobook.bkds}`),y+=`${a.data.asai.rulechanneltobook.bklist}${u($,0)}`;const w=u($,1);y+=`${a.data.asai.rulechanneltobook.bksn}${w}`,y+=`${a.data.asai.rulechanneltobook.bkty}${u($,2)}${a.data.asai.rulechanneltobook.bktm}${u($,3)}${a.data.asai.rulechanneltobook.bktg}${u($,4)}${a.data.asai.rulechanneltobook.bkds}${u($,5)}${a.data.asai.rulechanneltobook.bkco}`,t.opt.dty=="file"?await r("/select/"+w+"/",m()).then(async _=>{_&&(y+=_?.[0]?.[o[t.opt.channel].cfg.imex.keys[6]]||"")}):y+=`${u($,6)}`}n.As.downloadTxt(y,`${t.opt.channel}.txt`)}}async function p(u){if(o[t.opt.channel].cfg?.imex?.keys?.length===8){let h=function($,w,_){o[t.opt.channel].cfg.imex.keys[w]&&($[o[t.opt.channel].cfg.imex.keys[w]]=_)},g="",k=[],y={},C=[];u=u?.replaceAll(`\r
|
|
1
|
+
(function(K,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(K=typeof globalThis<"u"?globalThis:K||self,e(K["asai-vue-host"]={},K.Vue))})(this,(function(K,e){"use strict";const ae=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){if(typeof n.value=="function"){let o=0;const a=300,l=s=>{const d=performance.now();d-o<a?(n.value(s),o=0):o=d};t.__dbPointerDownHandler=l,t.addEventListener("pointerdown",l)}},unmounted(t){const n=t.__dbPointerDownHandler;n&&(t.removeEventListener("pointerdown",n),delete t.__dbPointerDownHandler)}}},Symbol.toStringTag,{value:"Module"}));function X(t,n){function o(h,$){$?.classList?.contains(h)&&$.classList.remove(h)}function a(h,$){$?.classList?.contains(h)||$.classList.add(h)}function l(h){a("touch-none",h)}function s(h){o("touch-none",h)}function d(h){const $=window.event||h;return $?.preventDefault(),$?.stopPropagation(),!0}function c(h){const $=window.event||h;$.cancelable&&($?.preventDefault(),$?.stopPropagation())}function m(h){n.timeout||(n.timeout=requestAnimationFrame(()=>{h(),cancelAnimationFrame(n.timeout),n.timeout=null}))}function r(){n.timeout&&(cancelAnimationFrame(n.timeout),n.timeout=null)}function i(){return"ontouchstart"in window||navigator.maxTouchPoints}function p(h){i()&&n.touchstat!==1&&(h.addEventListener("touchstart",g,!0),n.touchstat=1)}function f(h){i()&&n.touchstat!==2&&(h.addEventListener("touchmove",d),l(h),n.touchstat=2)}function u(h){i()&&n.touchstat!==3&&(h.removeEventListener("touchmove",d),s(h),n.touchstat=3)}function g(h){document.body.addEventListener("touchmove",y),document.body.addEventListener("touchend",b),n.dragttm=Date.now()}function y(h){n.dragttm&&Date.now()-n.dragttm<1e3&&(n.dragtstat=2)}function b(h){document.body.removeEventListener("touchmove",y),document.body.removeEventListener("touchend",b),n.dragtstat=0}return{eStop:d,canTouch:i,eStopTouch:c,setTouchNone:l,setTouchAuto:s,fnPThrottle:m,fnPThrottleCancel:r,vtTouchInit:p,vtTouchDown:f,vtTouchUp:u}}const le=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o={},{fnPThrottle:a,fnPThrottleCancel:l,vtTouchInit:s,vtTouchDown:d,vtTouchUp:c}=X(t,n.value);s(t);let m=!1,r=0,i=0,p=0,f=0;typeof n.value.domarea=="string"?o.dragAreaDom=document.getElementById(n.value.domarea):o.dragAreaDom=t;const u=b=>{console.log("handleDown",o,b),d(t),m=!0;const h=o.dragAreaDom.getBoundingClientRect();o.dragAreaDom.style.position="absolute",o.dragAreaDom.style.transform=`translate(${h.x}px, ${h.y}px)`,r=b.clientX-h.x,i=b.clientY-h.y,t.style.cursor="grabbing",document.addEventListener("pointermove",g),document.addEventListener("pointerup",y)},g=b=>{a(()=>{if(m){p=b.clientX-r,f=b.clientY-i;const h=window.innerWidth-o.dragAreaDom.offsetWidth,$=window.innerHeight-o.dragAreaDom.offsetHeight;p=Math.max(0,Math.min(p,h)),f=Math.max(0,Math.min(f,$)),o.dragAreaDom.style.transform=`translate(${p}px, ${f}px)`}})},y=()=>{l(),m=!1,t.style.cursor="grab",c(t),document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",y)};t.addEventListener("pointerdown",u),t.unmounted=()=>{t.removeEventListener("pointerdown",u)}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),se=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:d}=X(t,n.value);l(t);let c=!1,m={x:0,y:0},r={x:0,y:0},i=null,p=1,f={};f.dragDom=(n.value?.dom?document.getElementById(n.value.dom):"")||t;const u=()=>f.dragMaskDom&&(n.value?.scale||n.value?.ujt?.$global?.scale)||1,g=_=>{if(f.dragAreaDom=(n.value?.domarea?document.getElementById(n.value.domarea):"")||f.dragDom,f.dragMaskDom=(n.value?.dommask?document.getElementById(n.value.dommask):"")||(n.value?.ujt?.$global?.sys?.zoomid?document.getElementById(n.value.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body,!f.dragMaskDom)return;s(t),_.preventDefault(),p=u(),n.value?.gameevents?.fndown&&typeof n.value.gameevents.fndown=="function"&&n.value.gameevents.fndown(_)?.(),r={...n.value.pos},c=!0,i=f.dragMaskDom.getBoundingClientRect();let k,S;k=_.clientX,S=_.clientY,m={x:(k-i.left)/p-r.x,y:(S-i.top)/p-r.y},f.dragDom.setPointerCapture(_.pointerId),document.addEventListener("pointermove",y),document.addEventListener("pointerup",h),document.addEventListener("pointercancel",h)},y=_=>{if(!c||!i)return;let k,S;k=_.clientX,S=_.clientY,p=u();const C=(k-i.left)/p-m.x,A=(S-i.top)/p-m.y,V=f.dragMaskDom.offsetWidth-f.dragAreaDom.offsetWidth,w=f.dragMaskDom.offsetHeight-f.dragAreaDom.offsetHeight;o(()=>{n.value.pos.x=+Math.max(0,Math.min(C,V)).toFixed(3),n.value.pos.y=+Math.max(0,Math.min(A,w)).toFixed(3)})},b=(_,k,S=null)=>{let C;f.dropDom=document.getElementById("box-"+k);const A=f.dropDom?.getBoundingClientRect();return A&&(C=_.left<A.right&&_.right>A.left&&_.top<A.bottom&&_.bottom>A.top,C&&n.value.gameevents.fnup(S)?.({dropid:k})),C},h=_=>{if(a(),d(t),_ instanceof PointerEvent&&f.dragDom.hasPointerCapture(_.pointerId)&&(c=!1,f.dragDom.releasePointerCapture(_.pointerId)),n.value?.gameevents?.fnup&&typeof n.value.gameevents.fnup=="function"){let k;if(n.value?.gameevents?.params?.domev?.length){const S=f.dragDom.getBoundingClientRect();n.value.gameevents.params.domev.forEach(C=>{k||(k=b(S,C,_))})}!k&&n.value?.gameevents?.params?.typedrop==2&&(n.value.pos.x=r.x,n.value.pos.y=r.y)}document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",h),document.removeEventListener("pointercancel",h)};f.dragDom.addEventListener("pointerdown",g);const $=()=>i=null;window.addEventListener("resize",$),t.unmounted=()=>{f.dragDom.removeEventListener("pointerdown",g),window.removeEventListener("resize",$),f=null}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:d}=X(t,n.value);l(t);let c=!1,m={x:0,y:0},r={x:0,y:0},i=null,p=1,f={};f.dragDom=(n.value?.dom?document.getElementById(n.value.dom):"")||t;const u=()=>f.dragMaskDom&&(n.value?.scale||n.value?.ujt?.$global?.scale)||1,g=$=>{if(f.dragAreaDom=(n.value?.domarea?document.getElementById(n.value.domarea):"")||f.dragDom,f.dragMaskDom=(n.value?.dommask?document.getElementById(n.value.dommask):"")||(n.value?.ujt?.$global?.sys?.zoomid?document.getElementById(n.value.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body,!f.dragMaskDom)return;if(s(t),$.preventDefault(),p=u(),n.value?.events?.fndown&&typeof n.value.events.fndown=="function"&&n.value.events.fndown(),n.value?.pos)r={...n.value.pos};else{const C=window.getComputedStyle(f.dragAreaDom).transform?.split(", ");if(C.length>2){const A=C.pop().slice(0,-1)||0,V=C.pop()||0;r={x:parseFloat(V),y:parseFloat(A)}}else r={x:0,y:0}}c=!0,i=f.dragMaskDom.getBoundingClientRect();let _,k;_=$.clientX,k=$.clientY,m={x:(_-i.left)/p-r.x,y:(k-i.top)/p-r.y},f.dragDom.setPointerCapture($.pointerId),document.addEventListener("pointermove",y),document.addEventListener("pointerup",b),document.addEventListener("pointercancel",b)},y=$=>{if(!c||!i)return;let _,k;_=$.clientX,k=$.clientY,p=u();const S=(_-i.left)/p-m.x,C=(k-i.top)/p-m.y,A=f.dragMaskDom.offsetWidth-f.dragAreaDom.offsetWidth,V=f.dragMaskDom.offsetHeight-f.dragAreaDom.offsetHeight;o(()=>{n.value.pos?(n.value.pos.x=+Math.max(0,Math.min(S,A)).toFixed(3),n.value.pos.y=+Math.max(0,Math.min(C,V)).toFixed(3)):f.dragAreaDom.style.transform=`translate(${+Math.max(0,Math.min(S,A)).toFixed(3)}px,${+Math.max(0,Math.min(C,V)).toFixed(3)}px)`})},b=$=>{a(),d(t),$ instanceof PointerEvent&&f.dragDom.hasPointerCapture($.pointerId)&&(c=!1,f.dragDom.releasePointerCapture($.pointerId)),document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b),document.removeEventListener("pointercancel",b)};f.dragDom.addEventListener("pointerdown",g);const h=()=>i=null;window.addEventListener("resize",h),t.unmounted=()=>{f.dragDom.removeEventListener("pointerdown",g),window.removeEventListener("resize",h),f=null}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"}));function re(t){const n=window.event||t;n.preventDefault(),n.stopPropagation()}const ce=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){function o(a){n.value.type===2&&re(a);const l=document.getElementById(n.value.dom);l&&(l.classList.contains("as-fullscreen")?l.classList.remove("as-fullscreen"):l.classList.add("as-fullscreen"))}n.value.type===2?t.addEventListener("dblclick",o):t.addEventListener("click",o)}}},Symbol.toStringTag,{value:"Module"})),de=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o={},{$global:a,$model:l}=n.value?.ujt||{};if(a?.sys?.onkeyboard){let s=function(){a.keyboard.params||(a.keyboard.params={})},d=function(u){u?.setAttribute("inputmode","none"),u?.style?.setProperty("ime-mode","disabled","important")},c=function(u){u?.removeAttribute("inputmode"),u?.style?.setProperty("ime-mode","normal","important")},m=function(u){d(u),a.keyboard.params.ot&&(a.keyboard.params.ot.fndscb=()=>{c(u),a.keyboard.params.ot.fndscb=null})},r=function(u){o.monacoDom=u.target.closest(".askey-luaeditor"),o.monacoDivDom=o.monacoDom.querySelector(".native-edit-context"),m(o.monacoDivDom),o.monacoHoverDom=o.monacoDom.querySelector(".monaco-hover"),m(o.monacoHoverDom),o.monacoTextareaDom=o.monacoDom.querySelector("textarea"),m(o.monacoTextareaDom)},i=function(u){return l.data.asai.keyboard?.nokeytypes?.some(g=>u.target?.closest(g))},p=function(u){return Object.keys(l.data.asai.keyboard?.askeytypes||{})?.find(g=>u.target?.closest(g))},f=function(u){if(a.keyboard.params?.ot?.fnnumcb?.(),a.keyboard.params?.ot?.fndscb?.(),s(),n.value?.auto&&(a.keyboard.areastyle.x=u.clientX+(n.value?.auto?.x||0),a.keyboard.areastyle.y=u.clientY+(n.value?.auto?.y||0)),a.keyboard.params.ot={},!i(u))if(u.target?.closest(".portaskeyboard"))a.keyboard.params.ot.portaskeyboard=!0;else if(u.target?.closest(".askey-luaeditor"))r(u),n.value?.style&&(a.keyboard.params.ot.style=n.value.style),Object.assign(a.keyboard.params,{type:"monaco",el:o.monacoTextareaDom}),a.keyboard.showkeyboard=".askey-luaeditor";else if(["textarea","text","number","password"].includes(u.target?.type)&&!u.target?.disabled){if(o.monacoDivDom=u.target,m(o.monacoDivDom),o.monacoDivDom.type==="number"){a.keyboard.showkeyboard=".askey-number",a.keyboard.params.ot.isnumber=!0,o.monacoDivDom.type="text";let g=requestAnimationFrame(()=>{o.monacoDivDom.setSelectionRange(o.monacoDivDom?.value?.length||0,o.monacoDivDom?.value?.length||0),o.monacoDivDom.focus(),cancelAnimationFrame(g)});a.keyboard.params.ot.fnnumcb=()=>{o.monacoDivDom.type="number"}}else{const g=p(u);g?a.keyboard.showkeyboard=g:a.keyboard.showkeyboard=".askey-default"}n.value?.style&&(a.keyboard.params.ot.style=n.value.style),Object.assign(a.keyboard.params,{type:o.monacoDivDom.type,el:o.monacoDivDom||t})}else a.keyboard.params={},a.keyboard.showkeyboard=""};s(),t.addEventListener("pointerdown",f),t.unmounted=()=>{t.removeEventListener("pointerdown",f)}}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),me=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){n?.value?.right||t?.classList&&!t.classList?.contains("asailevel")&&t.classList.add("asailevel")}}},Symbol.toStringTag,{value:"Module"})),pe=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{vtTouchInit:o,vtTouchDown:a,vtTouchUp:l}=X(t,n.value);o(t);const s=n.value.long?+n.value.long:0;let d=null,c=!1,m=0,r=0;const i=10,p=y=>{a(t),n.value.prevent&&y.preventDefault(),c=!0,y?.touches?.[0]?(m=y.touches[0].clientX,r=y.touches[0].clientY):(m=y.clientX,r=y.clientY),n.value.press&&n.value.press(y);function b(){c&&n.value.hold&&n.value.hold(y)}s?d=window.setTimeout(b,s):b()},f=y=>{l(t),d!==null&&(clearTimeout(d),d=null),c&&(n.value.release&&n.value.release(y),c=!1)},g={down:p,up:f,move:y=>{if(!c)return;let b=0,h=0;y?.touches?.[0]?(b=y.touches[0].clientX,h=y.touches[0].clientY):(b=y.clientX,h=y.clientY);const $=Math.abs(b-m),_=Math.abs(h-r);($>i||_>i)&&(d!==null&&(clearTimeout(d),d=null),c=!1)}};t.addEventListener("pointerdown",p),t.addEventListener("pointerup",f),t.addEventListener("pointercancel",f),t.addEventListener("pointerleave",f),t._pressHandlers=g},unmounted(t){const n=t._pressHandlers;n&&(t.removeEventListener("pointerdown",n.down),t.removeEventListener("pointerup",n.up),t.removeEventListener("pointercancel",n.up),t.removeEventListener("pointerleave",n.up),delete t._pressHandlers)}}},Symbol.toStringTag,{value:"Module"})),fe=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const o=n.value||{};o?.domresize?o.Ddomresize=document.getElementById(o.domresize):o.Ddomresize=t,o.Ddomarea=(o?.domarea?document.getElementById(o.domarea):"")||(o?.ujt?.$global?.sys?.zoomid?document.getElementById(o.ujt.$global.sys.zoomid):"")||document.getElementById("asaizoomarea")||document.body;const{width:a,height:l}=o.Ddomarea.getBoundingClientRect(),{fnPThrottle:s,fnPThrottleCancel:d,vtTouchInit:c,vtTouchDown:m,vtTouchUp:r}=X(o.Ddomresize,o);c(o.Ddomresize);const{ujt:i,size:p,scale:f}=o;let u={x:0,y:0},g;const y=()=>f||i?.$global?.scale||1;let b;a&&l?b={width:a/y(),height:l/y()}:b={width:i?.$global?.sys?.zoomwidth||1920,height:i?.$global?.sys?.zoomheight||1200};let h=!1,$,_,k,S,C=p||{w:0,h:0};const A=B=>({clientX:B.clientX,clientY:B.clientY}),V=B=>{m(o.Ddomresize),B.preventDefault(),g=y(),h=!0;const{clientX:j,clientY:P}=A(B);$=j-window.scrollX,_=P-window.scrollY,k=o.Ddomresize.offsetWidth,S=o.Ddomresize.offsetHeight;const T=window.getComputedStyle(o.Ddomresize).transform?.split(", ");if(T&&T.length>2){const U=T.pop().slice(0,-1),F=T.pop();u={x:parseFloat(F),y:parseFloat(U)}}else u={x:0,y:0};if(o.Ddomresize.style.transform=`translate(${u.x}px,${u.y}px)`,B instanceof PointerEvent)try{o.Ddomresize.setPointerCapture(B.pointerId)}catch{}document.addEventListener("pointermove",w),document.addEventListener("pointerup",E),document.addEventListener("pointercancel",E)},w=B=>{h&&s(()=>{const{clientX:j,clientY:P}=A(B),x=(j-window.scrollX-$)/g,T=(P-window.scrollY-_)/g;C.w=+Math.min(Math.max(88,k+x),b.width-u.x).toFixed(3),C.h=+Math.min(Math.max(58,S+T),b.height-u.y).toFixed(3),o.Ddomresize.style.width=C.w+"px",o.Ddomresize.style.height=C.h+"px"})},E=B=>{d(),r(o.Ddomresize),B instanceof PointerEvent&&o.Ddomresize.hasPointerCapture(B.pointerId)&&o.Ddomresize.releasePointerCapture(B.pointerId),h=!1,document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",E),document.removeEventListener("pointercancel",E)};o.domresizex==""||o.domresizex=="asai"?o.DXdomresize=t:(o.domresizex&&(o.DXdomresize=document.getElementById(o.domresizex)),o.DXdomresize||(o.DXdomresize=document.createElement("div"),o.DXdomresize.classList.add("resize-bottom-right"),o.Ddomresize.appendChild(o.DXdomresize))),o.DXdomresize.addEventListener("pointerdown",V),t.unmounted=()=>{o.DXdomresize.removeEventListener("pointerdown",V),o.DXdomresize&&o.DXdomresize.remove()}},unmounted(t){t?.unmounted&&(typeof t?.unmounted=="function"&&t.unmounted(),delete t.unmounted)}}},Symbol.toStringTag,{value:"Module"})),ue=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{fnPThrottle:o,fnPThrottleCancel:a,vtTouchInit:l,vtTouchDown:s,vtTouchUp:d}=X(t,n.value);l(t);const{ujt:c,scale:m,id:r,type:i,cut:p,min:f}=n.value,u=()=>{const j=m||c?.$global?.scale||1;return Number(j)||1},g={width:Number(c?.$global?.sys?.zoomwidth)||1920,height:Number(c?.$global?.sys?.zoomheight)||1200};let y=Number(p)||0;i?g.height=g.height-y:g.width=g.width-y;function b(){let j;return typeof f=="function"?j=f():typeof f?.value=="number"?j=f?.value:typeof f=="number"?j=f:j=100,Number(j)||100}let h,$=1,_=!1,k=0,S=0,C=0,A=0;const V=j=>{if(h=document.getElementById(r),!h){console.error(`未找到 ID 为 ${r} 的元素`);return}s(t),j.preventDefault(),$=u(),_=!0,i?(C=j.clientY,A=h.offsetHeight):(k=j.clientX,S=h.offsetWidth),document.addEventListener("pointermove",w),document.addEventListener("pointerup",E)},w=j=>{_&&o(()=>{if(i){const P=(C-j.clientY)/$,x=Math.max(b(),A+P);isFinite(x)&&isFinite(g.height)&&(h.style.height=Math.min(x,g.height)+"px",h.style.minHeight=Math.min(x,g.height)+"px")}else{const P=(k-j.clientX)/$,x=Math.max(b(),S+P);isFinite(x)&&isFinite(g.width)&&(h.style.width=Math.min(x,g.width)+"px",h.style.minWidth=Math.min(x,g.width)+"px")}})},E=()=>{a(),_=!1,d(t),document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",E)};t.addEventListener("pointerdown",V);const B=()=>{t.removeEventListener("pointerdown",V)};t.__unmountResize=B},unmounted(t){t.__unmountResize&&(t.__unmountResize(),delete t.__unmountResize)}}},Symbol.toStringTag,{value:"Module"})),he=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t){t.scrollTop=t.scrollHeight;const n={autoScrollEnabled:!0,handler:()=>{const o=Math.abs(t.scrollHeight-t.scrollTop-t.clientHeight)<10;n.autoScrollEnabled=o}};t.addEventListener("scroll",n.handler),t.__scrollData__=n,t.__vueScrollUpdate__=()=>{n.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}},updated(t){const n=t.__vueScrollUpdate__;n&&n()},beforeUnmount(t){const n=t.__scrollData__;n&&n.handler&&t.removeEventListener("scroll",n.handler),delete t.__vueScrollUpdate__,delete t.__scrollData__}}},Symbol.toStringTag,{value:"Module"})),ge=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,n){const{ujt:o,lv:a}=n?.value||{},{$global:l}=o;a&&l?.user?.info?.lv<a&&t?.classList&&!t.classList?.contains("asailevel")&&t.classList.add("asailevel")}}},Symbol.toStringTag,{value:"Module"})),ye=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n="web")=>{const{$global:o,$fn:a}=t;return a.api[n]||(a.api[n]=new a.AsaiApi({baseURL:a.As.getUrlByCfg(o.link.api[n],0),Userinfo:o.user.info,ujt:t}),a.api[n].ictReq(async({url:l,opt:s})=>(s?.mm&&(s.headers.Userinfo=`${a.gettoken(1)}`),{url:l,opt:s})),a.api[n].ictRes(l=>([908].includes(l.code)?l.data="":[909,200].includes(l.code),l)),a.api[n]&&o?.sys?.tyrobot==n&&(a.apisys=a.api[n])),a.api[n]}},Symbol.toStringTag,{value:"Module"})),_e=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a,$model:l}=t.ujt,{channelApiInit:s,addItem:d,popConfirm:c,popBox:m,setChannelHash:r,channelApiPost:i,getQueryData:p,getQueryString:f,channelBarShow:u,channelLang:g,checkContent:y}=n.useChannelBase(t),{getBarData:b,getDefaultValue:h,getChannelKeys:$,getCommentsKey:_,getSnKey:k,getLvKey:S,getPwKey:C,getClassKey:A,getTitleKey:V,getImgKey:w,getContentKey:E}=n.useChannelBaseKey(t);function B(){return t.opt.dty=="file"?"/api/asaichannel/file":t.opt.dty=="sqlite"?"/api/asaichannel/sqlite":"/api/asaichannel/json"}function j(z,N="",L={}){return new Promise((O,M)=>{t.opt.dty=="client"?N?.show?n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/class/${N?.fl}.json`).then(R=>{const W=R.list?.[N?.show];n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/file/${N?.show}.txt`).then(I=>{W[k()]=N?.show,W[E()]=I,O([W])}).catch(M)}).catch(M):n.initmodel(`${t.opt.model}/channel/${t.opt.channel}/class/${N?.fl}.json`).then(R=>{const W=Object.entries(R?.list||{})?.map(([I,Q])=>({...Q,[k()]:I}));O(W)}).catch(M):n.apisys.apiGet(B()+z,N,L).then(R=>{O(R?.data)}).catch(M)})}function P(z,N={}){return j("/select/",z,N)}function x(){typeof o[t.opt.channel].lang!="object"&&(o[t.opt.channel].lang={}),o[t.opt.channel].lang.label=o[t.opt.channel]?.lang?.[a.config.lang]?.label||o[t.opt.channel]?.lang?.default?.label||a.lang?.[t.opt.channel]?.label||"",o[t.opt.channel].lang.form={...a.lang?.asaichannel?.form||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.form||o[t.opt.channel]?.lang?.default?.form||a.lang?.[t.opt.channel]?.form||{}},o[t.opt.channel].lang.ui={...a.lang?.asaichannel?.ui||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.ui||o[t.opt.channel]?.lang?.default?.ui||a.lang?.[t.opt.channel]?.ui||{}},o[t.opt.channel].lang.classtemp={...a.lang?.asaichannel?.classtemp||{},...o[t.opt.channel]?.lang?.[a.config.lang]?.classtemp||o[t.opt.channel]?.lang?.default?.classtemp||a.lang?.[t.opt.channel]?.classtemp||{}},o[t.opt.channel].lang.class=o[t.opt.channel]?.lang?.[a.config.lang]?.class||o[t.opt.channel]?.lang?.default?.class||a.lang?.[t.opt.channel]?.class||{}}function T(z=0){return new Promise((N,L)=>{if(o[t.opt.channel]?.stat&&!z)N();else try{o[t.opt.channel]={opt:t.opt,stat:0,fetch:q,setpage:oe,cmPageList:[],dbtype:"file"},s().then(O=>{O&&typeof O=="object"&&o[t.opt.channel]?(Object.assign(o[t.opt.channel],O),x(),o[t.opt.channel].lang?.classtemp&&o[t.opt.channel].lang?.class&&(a.location?.query&&!o[t.opt.channel].lang.class?.asai&&(a.location.query.fl=Object.keys(o[t.opt.channel].lang.class)[0]),Object.keys(o[t.opt.channel].lang.class).forEach(M=>{o[t.opt.channel].lang.class[M]={...o[t.opt.channel].lang?.classtemp||{},...o[t.opt.channel].lang.class[M]}})),o[t.opt.channel].rfdata.lang=o[t.opt.channel].lang?.form||{},o[t.opt.channel].rfdata.rule?.[A()]?.data==="class"&&(o[t.opt.channel].rfdata.rule[A()][A()+"data"]=Object.fromEntries(Object.keys(o[t.opt.channel].lang.class).map(M=>[M,o[t.opt.channel].lang.class?.[M]?.nm]))),Object.keys(o[t.opt.channel].rfdata.rule).forEach(M=>{o[t.opt.channel].rfdata.rule?.[M]?.[M+"data"]&&typeof o[t.opt.channel].rfdata.rule?.[M]?.[M+"data"]=="string"&&(o[t.opt.channel].rfdata.rule[M][M+"data"]=o[t.opt.channel].lang[o[t.opt.channel].rfdata.rule[M]?.[M+"data"]])}),o[t.opt.channel]?.cfg?.single||(o[t.opt.channel].rfdata.rule={...l.data.asai.asaichannel?.rule||{},...o[t.opt.channel].rfdata.rule||{}}),o[t.opt.channel].stat=1,N()):L("channel data error!")})}catch(O){L(O)}})}function U(){const z=h();o[t.opt.channel].rfdata.data={},Object.keys(o[t.opt.channel]?.rfdata?.rule||{}).forEach(N=>{o[t.opt.channel].rfdata.data[N]=o[t.opt.channel]?.rfdata?.rule?.[N]?.default!=null?o[t.opt.channel]?.rfdata?.rule?.[N]?.default:z[N]?z[N]():typeof o[t.opt.channel]?.rfdata?.rule?.[N]?.type=="number"?0:""})}function F(z){return new Promise((N,L)=>{if(z)try{J(z).then(O=>{o[t.opt.channel]?.rfdata&&(o[t.opt.channel].rfdata.data=O[0]),N(o[t.opt.channel].rfdata.data)})}catch(O){L(O)}else L("sn error!")})}function G(z,N=0){n.setquery({fl:z}),q(0),t.opt.tyhash?r("list",N):U()}function Zi(z=null){return new Promise((N,L)=>{T().then(()=>{q(1,z).then(N).catch(L)}).catch(L)})}function q(z=1,N=null){return new Promise((L,O)=>{function M(){return t.opt.fd?t.opt.fd:t.opt.lity?.ty=="blog"||o[t.opt.channel]?.cfg?.lity?.ty=="blog"?k()+"-"+V()+"-"+w()+"-"+E():t.opt.lity?.ty=="pic"||o[t.opt.channel]?.cfg?.lity?.ty=="pic"?k()+"-"+V()+"-"+w():k()+"-"+V()}P({fl:"",...p(),fd:M(),ps:o[t.opt.channel].cmPageSize,...a.location?.query,...N||{}},o[t.opt.channel].cfg?.api?.opt||{}).then(R=>{t.opt.dty=="client"?(n.setquery({pc:R?.length||""},1),o[t.opt.channel].contentList=R.slice(o[t.opt.channel].cmPageSize*((a.location?.query?.pg||1)-1),o[t.opt.channel].cmPageSize*(a.location?.query?.pg||1)),L(o[t.opt.channel].contentList)):t.opt.dty=="file"?(n.setquery({pc:R?.count||""},1),o[t.opt.channel].contentList=R.data,L(o[t.opt.channel].contentList)):(o[t.opt.channel].contentList=R,vi(z).then(W=>{L(o[t.opt.channel].contentList)}).catch(O))}).catch(O)})}function vi(z=1){return new Promise((N,L)=>{z?N([]):P({...p(),fd:k(),...a.location?.query,sx:"",sxty:"",pc:0,pg:0,ps:Number(o[t.opt.channel].cfg.config?.pmax)||1e4},o[t.opt.channel].cfg?.api?.opt||{}).then(O=>{n.setquery({pc:O?.length||""},1),N(O)}).catch(L)})}function oe(z){return new Promise((N,L)=>{n.setquery({pg:z||1},1),q(a.location.query?.pc||0).then(O=>{N(O)}).catch(L)})}function er(z){return new Promise((N,L)=>{j("/delete/"+z+f()).then(O=>{q(0,{svty:1}).then(M=>{N(M)}).catch(L)}).catch(L)})}function tr(z,N=0){return new Promise((L,O)=>{t.opt.pop&&a.pop["popedit"+t.opt.channel]?m({ty:"edit",tit:a.lang.asai.edit}):t.opt.tyhash&&r("edit",N),z?F(z).then(M=>{n.setquery({show:z,showty:"1"},1),L(M)}).catch(O):O("sn error!")})}function nr(z,N=0){return new Promise((L,O)=>{t.opt.pop&&a.pop["popshow"+t.opt.channel]?m({ty:"show",tit:a.lang.asai.show}):t.opt.tyhash&&r("show",N),z[k()]?F(z[k()]).then(M=>{n.setquery({show:z[k()],showty:""},1),L(M)}).catch(O):O("sn error!")})}function or(){return new Promise((z,N)=>{!a.location.query.ssty&&a.location.query.ss&&(a.location.query.ssty=o[t.opt.channel]?.cfg?.sss?.[1]),n.setquery({pg:1},1),q(0).then(L=>{z(L)}).catch(N)})}function ar(z=null){return new Promise((N,L)=>{n.As.isValidFileName(z)?J(z,{fd:k()}).then(O=>{N(O)}).catch(L):(a.msg.fn({type:"err",con:(o[t.opt.channel].lang?.form?.[k()]||k())+" "+n.lg("asai.error")}),L("sn error!"))})}function lr(z=0,N=null,L=null){return new Promise((O,M)=>{if(y()){const R=N||o[t.opt.channel].rfdata.data;ar(R[k()]).then(W=>{if(W?.[0]?.[k()]){const I=n.lg("asai.checkhas",W?.[0]?.[k()]);!L?.nomsg&&a.msg.fn({type:"err",con:I}),M(I)}else i("/insert/"+R[k()]+f(),R,o[t.opt.channel].cfg?.api?.opt||{}).then(I=>{a.msg.fn({type:"ok",con:a.lang.asai.successadd}),q(0,{svty:1}).then(Q=>{t.opt.tyhash?r("list",z):U(),t.opt.pop&&a.pop["popadd"+t.opt.channel]&&(a.pop["popadd"+t.opt.channel].stat=0),O(Q)}).catch(M)}).catch(M)}).catch(M)}else M("checkContent error!")})}function J(z,N=null){return j("/select/"+z+"/",p(N),o[t.opt.channel].cfg?.api?.opt||{})}function sr(z=null,N=null){return new Promise((L,O)=>{if(y()){const M=z||o[t.opt.channel].rfdata.data;i("/update/"+M[k()]+"/"+f(),M,o[t.opt.channel].cfg?.api?.opt||{}).then(R=>{!N?.nomsg&&a.msg.fn({type:"ok",con:a.lang.asai.successedit}),q(1,{svty:1}).then(W=>{t.opt.pop&&a.pop["popedit"+t.opt.channel]?a.pop["popedit"+t.opt.channel].stat=0:t.opt.tyhash&&r("list",N?.tty),L(W)}).catch(O)}).catch(O)}else O("checkContent error!")})}function ir(z=null,N={}){return new Promise((L,O)=>{try{if(t.opt.dty==="client")L();else{const M=Object.keys(z);if(M?.length){M.unshift(k());const R=["file","json"].includes(t.opt.dty);let W=z;o[t.opt.channel]?.rfdata?.data&&Object.entries(z).forEach(I=>{I[0]in o[t.opt.channel].rfdata.data&&(Array.isArray(I[1])?typeof I[1][1]=="number"?I[1][0]=="+"?o[t.opt.channel].rfdata.data[I[0]]=Number(o[t.opt.channel].rfdata.data[I[0]])+I[1][1]:I[1][0]=="-"&&(o[t.opt.channel].rfdata.data[I[0]]=Number(o[t.opt.channel].rfdata.data[I[0]])-I[1][1]):typeof I[1][1]=="string"&&(o[t.opt.channel].rfdata.data[I[0]]=o[t.opt.channel].rfdata.data[I[0]]+I[1][1]):o[t.opt.channel].rfdata.data[I[0]]=I[1])}),R&&(W=o[t.opt.channel].rfdata.data),i("/update/"+(N[k()]||o[t.opt.channel].rfdata.data[k()])+"/"+f(R?null:p({field:M.join("-")})),W,o[t.opt.channel].cfg?.api?.opt||{}).then(I=>{!N?.nomsg&&a.msg.fn({type:"ok",con:a.lang.asai.successedit}),L(I)}).catch(O)}else O()}}catch(M){O(M)}})}return{initChannel:T,initAddChannel:U,setChannelClass:G,setPage:oe,setShow:nr,addItem:d,delItem:er,editItem:tr,readItem:F,popConfirm:c,popBox:m,channelSelect:P,fetchChannelList:Zi,fetchContent:q,searchSubmit:or,readContent:J,addContent:lr,editContent:sr,setChannelHash:r,channelApiGet:j,channelApiPost:i,getDefaultValue:h,getQueryData:p,getQueryString:f,channelBarShow:u,getChannelKeys:$,getCommentsKey:_,getSnKey:k,getLvKey:S,getPwKey:C,getClassKey:A,getTitleKey:V,getImgKey:w,getContentKey:E,getBarData:b,channelLang:g,channelQkSave:ir}}},Symbol.toStringTag,{value:"Module"})),be=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a}=t.ujt;function l(_=""){if(typeof _=="string"&&_){const k=_.split(".");if(k.length>1){let S=o[t.opt.channel]?.lang;return k.forEach(C=>{C&&typeof S=="object"&&(S=S?.[C])}),S||(S=a.lang.asaichannel,k.forEach(C=>{C&&typeof S=="object"&&(S=S?.[C])})),S}else return o[t.opt.channel].lang?.[_]||a.lang.asaichannel?.[_]}return""}function s(){return t.opt.dty=="file"?"/api/asaichannel/file":t.opt.dty=="sqlite"?"/api/asaichannel/sqlite":"/api/asaichannel/json"}function d(_){return["tm","tg"].includes(_[0])&&_[1].length>12?n.As.getTime(6,Number(_[1])):_?.[1]}function c(_,k,S={}){return new Promise((C,A)=>{t.opt.dty=="client"?(a.msg.fn({type:"err",con:n.lg("asai.failrequest")}),A(n.lg("asai.failrequest"))):n.apisys.apiPost(s()+_,k,S).then(V=>{C(V?.data)}).catch(A)})}function m(){return new Promise((_,k)=>{t.opt.dty=="client"?n.initmodel(t.opt.model+"/channel/"+t.opt.channel+"/channel.json").then(S=>{_(S)}).catch(k):n.apisys.apiGet(`/api/asaijson/manage/select/?path=./webdata/webdb/channel${t.opt.dty?t.opt.dty:"json"}/${t.opt.model+"_"+t.opt.channel}/channel.json`).then(S=>{_(S.data)}).catch(k)})}function r(){return Object.keys(o[t.opt.channel]?.rfdata?.rule||{})}function i(){const _=r();return _.includes("sn")&&_.includes("us")&&_.includes("lv")&&_.includes("pw")?_.filter(k=>k!=="sn").join("-"):_.join("-")}function p(_=null){const k={model:t.opt.model,channel:t.opt.channel};return k.field=i(),Object.assign(k,o[t.opt.channel]?.cfg?.map||{},a.location?.query||{},_||{}),t.opt.wlv&&(k.wlv=t.opt.wlv),k}function f(_=null){return"?"+new URLSearchParams(_||p()).toString()}function u(){t.opt.pop&&a.pop["popadd"+t.opt.channel]?y({ty:"add",tit:a.lang.asai.add}):t.opt.tyhash&&b("add")}function g(_){Object.assign(a.pop["popconfirm"+t.opt.channel],{stat:1,full:2},o[t.opt.channel]?.cfg?.popbox||{},_||{}),a.pop["popconfirm"+t.opt.channel].con=_.con,a.pop["popconfirm"+t.opt.channel].fn=_.fn}function y(_={}){Object.assign(a.pop["pop"+_.ty+t.opt.channel],{noresize:0,stat:1,full:2,popstyle:{width:"68%",height:"auto","max-height":"88%"}},o[t.opt.channel]?.cfg?.popbox||{},_||{}),_.tit?a.pop["pop"+_.ty+t.opt.channel].tit=_.tit:a.pop["pop"+_.ty+t.opt.channel].notit=1,_.fn&&(a.pop["pop"+_.ty+t.opt.channel].fn=_.fn)}function b(_,k=0){k>-1&&n.sethash(a.location.hash.replace("/"+a.location.hasharr[k||t.opt.ty||1],"/"+_))}function h(){return Object.entries(o[t.opt.channel].rfdata.rule).filter(_=>_[1]?.required).map(_=>_[0])}function $(){const _=h();if(_.length){for(let k=0;k<_.length;k++)if(!o[t.opt.channel].rfdata.data[_[k]])return a.msg.fn({type:"err",con:n.lg("asai.checkrequired",o[t.opt.channel].rfdata.lang?.[_[k]]||_[k])}),!1}return!0}return{channelApiInit:m,addItem:u,popConfirm:g,popBox:y,setChannelHash:b,channelApiPost:c,getQueryData:p,getQueryString:f,channelBarShow:d,channelLang:l,checkContent:$}}},Symbol.toStringTag,{value:"Module"})),ke=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$db:n,$global:o,$fn:a}=t.ujt;function l(y){return Object.entries(y).filter(b=>!["xi","yi",c(),m(),r(),i(),p(),f(),u(),g()].includes(b[0])&&b[1])}function s(){const y={[c()]:()=>a.As.Uuid(t.opt.channel.substring(0,2)),hi:()=>1,xi:()=>1,yi:()=>0,tm:()=>Date.now(),tg:()=>Date.now(),us:()=>o.user.info?.us};return o.location.query.fl&&(y[i()]=()=>o.location.query.fl),y}function d(){return Object.keys(n[t.opt.channel].rfdata.rule)}function c(){return n[t.opt.channel]?.cfg?.map?.sn||"sn"}function m(){return n[t.opt.channel]?.cfg?.map?.lv||"lv"}function r(){return n[t.opt.channel]?.cfg?.map?.pw||"pw"}function i(){return n[t.opt.channel]?.cfg?.map?.class||"class"}function p(){return n[t.opt.channel]?.cfg?.map?.content||"content"}function f(){return n[t.opt.channel]?.cfg?.map?.title||"title"}function u(){return n[t.opt.channel]?.cfg?.map?.img||"img"}function g(){return n[t.opt.channel]?.cfg?.map?.comments||"comments"}return{getBarData:l,getDefaultValue:s,getChannelKeys:d,getCommentsKey:g,getSnKey:c,getLvKey:m,getPwKey:r,getClassKey:i,getTitleKey:f,getImgKey:u,getContentKey:p}}},Symbol.toStringTag,{value:"Module"})),$e=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$model:a}=t.ujt,{getSnKey:l,channelSelect:s,channelApiGet:d,channelApiPost:c,getQueryData:m,getQueryString:r,fetchContent:i}=n.useChannel(t);async function p(){if(o[t.opt.channel].cfg?.imex?.keys?.length===8){let u=function(_,k){return o[t.opt.channel].cfg.imex.keys[k]&&_[o[t.opt.channel].cfg.imex.keys[k]]||""};const g=await s({...m(),fd:o[t.opt.channel].cfg.imex.keys.filter(_=>_).join("-"),sx:"",sxty:"",pc:1,pg:1,ps:2e6}),y=g?.data||g;let b="",h=`${a.data.asai.rulechanneltobook.bkchannel}${o[t.opt.channel].lang.label}${a.data.asai.rulechanneltobook.bksn}${t.opt.channel}${a.data.asai.rulechanneltobook.bkty}1${a.data.asai.rulechanneltobook.bktm}${a.data.asai.rulechanneltobook.bktg}${a.data.asai.rulechanneltobook.bkds}`;const $=y?.sort((_,k)=>_[o[t.opt.channel].cfg.imex.keys[7]]?.localeCompare(k[o[t.opt.channel].cfg.imex.keys[7]]));for(let _=0;_<$.length;_++){const k=$[_];k[o[t.opt.channel].cfg.imex.keys[7]]&&b!==k[o[t.opt.channel].cfg.imex.keys[7]]&&(b=k[o[t.opt.channel].cfg.imex.keys[7]],h+=`${a.data.asai.rulechanneltobook.bkclass}${o[t.opt.channel].lang.class?.[b]?.nm||""}${a.data.asai.rulechanneltobook.bksn}${b}${a.data.asai.rulechanneltobook.bkty}1${a.data.asai.rulechanneltobook.bktm}${a.data.asai.rulechanneltobook.bktg}${a.data.asai.rulechanneltobook.bkds}`),h+=`${a.data.asai.rulechanneltobook.bklist}${u(k,0)}`;const S=u(k,1);h+=`${a.data.asai.rulechanneltobook.bksn}${S}`,h+=`${a.data.asai.rulechanneltobook.bkty}${u(k,2)}${a.data.asai.rulechanneltobook.bktm}${u(k,3)}${a.data.asai.rulechanneltobook.bktg}${u(k,4)}${a.data.asai.rulechanneltobook.bkds}${u(k,5)}${a.data.asai.rulechanneltobook.bkco}`,t.opt.dty=="file"?await d("/select/"+S+"/",m()).then(async C=>{C&&(h+=C?.[0]?.[o[t.opt.channel].cfg.imex.keys[6]]||"")}):h+=`${u(k,6)}`}n.As.downloadTxt(h,`${t.opt.channel}.txt`)}}async function f(u){if(o[t.opt.channel].cfg?.imex?.keys?.length===8){let g=function(k,S,C){o[t.opt.channel].cfg.imex.keys[S]&&(k[o[t.opt.channel].cfg.imex.keys[S]]=C)},y="",b=[],h={},$=[];u=u?.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);const
|
|
3
|
+
`);const _=u.split(a.data.asai.rulechanneltobook.bkclass);for(let k=0;k<_.length;k++){const C=_[k].split(a.data.asai.rulechanneltobook.bklist);for(let A=0;A<C.length;A++){const V=C[A];A===0?(y=V.split(a.data.asai.rulechanneltobook.bksn)[1].split(a.data.asai.rulechanneltobook.bkty)[0],await s({...m(),field:l(),fd:l(),ps:9999999,fl:y}).then(w=>{const E=w?.data||w;if(Array.isArray(E)){const B=E.map(j=>j[l()]);b.push(...B||[])}})):(h={},g(h,7,y),$=V.split(a.data.asai.rulechanneltobook.bksn),g(h,0,$[0]),$=$[1].split(a.data.asai.rulechanneltobook.bkty),g(h,1,$[0]),$=$[1].split(a.data.asai.rulechanneltobook.bktm),g(h,2,$[0]),$=$[1].split(a.data.asai.rulechanneltobook.bktg),g(h,3,$[0]),$=$[1].split(a.data.asai.rulechanneltobook.bkds),g(h,4,$[0]),$=$[1].split(a.data.asai.rulechanneltobook.bkco),g(h,5,$[0]),g(h,6,$[1]),b.includes(h[l()])?o[t.opt.channel].cfg?.imex?.type==1&&await c("/update/"+h[o[t.opt.channel].cfg.imex.keys[1]]+r(),h):await c("/insert/"+h[o[t.opt.channel].cfg.imex.keys[1]]+r(),h))}}await i(1,{svty:1})}}return{channelBookDownload:p,channelBookUpload:f}}},Symbol.toStringTag,{value:"Module"})),we=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$global:o}=t.ujt,{getCommentsKey:a,channelQkSave:l}=n.useChannel(t);function s(i,p){i.data=p?.[a()];try{i.comments=JSON.parse(i.data)}catch{i.comments=[]}}function d(i,p){i.newcomments.co?(i.newcomments.tm=n.As.getTime(6),i.comments.push({...i.newcomments}),c(i,p).then(()=>{o.msg.fn({type:"ok",con:o.lang.asai.successcomments}),m(i)})):o.msg.fn({type:"err",con:o.lang.asai.failedit})}function c(i,p){return p.data[a()]=JSON.stringify(i.comments),l({[a()]:p.data[a()]},{nomsg:1})}function m(i){i.newcomments.co=""}function r(i,p,f=0){console.log("commentsAction",i,p,f),p==="del"?i.splice(f,1):p in i&&(i[p]=(i[p]||0)+f)}return{initChannelComments:s,saveChannelComments:d,resetChannelComments:m,commentsAction:r,commentsQKSave:c}}},Symbol.toStringTag,{value:"Module"})),Ce=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a}=t.ujt,{getSnKey:l,getPwKey:s,getLvKey:d,channelApiGet:c,channelApiPost:m,getQueryData:r,getQueryString:i,readContent:p,editContent:f}=n.useChannel(t);function u(w="web"){return new Promise((E,B)=>{a.user.online=0,n.ws[w]?.wsApi({ty:"user/login",db:a.user.info}).then(j=>{j.db?(a.user.online=1,E(j)):n.exit()}).catch(j=>{a.msg.fn({type:"err",con:n.lg("asai.hostmsg.loginerr",[a.user.info.us])}),B(j)})})}function g(w="web"){return n.ws[w].wsApi({ty:"user/online",db:""}).then(E=>{o[t.opt.channel].onlinelist=E.db})}function y(w="web"){return new Promise((E,B)=>{try{let j=n.As?.localGet("as-user-code");j?(j=n.As.toObj(j),a.code.pri=j[0],a.code.pub=j[1],E()):n.api[w]?.apiGet("/api/init/code/").then(P=>{a.code.pri=P.data[0],a.code.pub=P.data[1],n.As.localSet("as-user-code",n.As.toStr(P.data)),E()}).catch(P=>{B(P)})}catch(j){B(j)}})}function b(){!a.user.info?.us&&a.code.pri&&n.As.localGet("as-user-info")&&(a.user.info=n.As.toObj(n.AsAES.dec(n.As.localGet("as-user-info"))))}function h(){return new Promise((w,E)=>{try{a.code.token?w(a.code.token):y("web").then(()=>{b(),n.inittoken(),a.code.token?w(a.code.token):E("")}).catch(B=>{E(B)})}catch(B){E(B)}})}function $(){return new Promise((w,E)=>{try{h().then(()=>{a.code.token?u("web").then(B=>{w()}).catch(B=>{E(B)}):E()}).catch(B=>{E(B)})}catch(B){E(B)}})}function _(w=null){a.user.info.us&&p(a.user.info.us).then(E=>{const B=E[0];o[t.opt.channel].rfdata.pw=w.pw,o[t.opt.channel].rfdata.data={},Object.keys(o[t.opt.channel]?.rfdata?.rule||{}).forEach(j=>{o[t.opt.channel].rfdata.data[j]=B[j]})})}function k(w=null){return new Promise((E,B)=>{let j="";o[t.opt.channel].rfdata.pw?.pwn&&(o[t.opt.channel].rfdata.pw?.pw!==o[t.opt.channel].rfdata.data?.[s()]?(j=n.lg("asai.failpwpass"),!w?.nomsg&&a.msg.fn({type:"err",con:j})):o[t.opt.channel].rfdata.pw?.pwn!==o[t.opt.channel].rfdata.pw?.pwnn&&(j=n.lg("asai.failpwerr"),!w?.nomsg&&a.msg.fn({type:"err",con:j})),j||(o[t.opt.channel].rfdata.data[s()]=o[t.opt.channel].rfdata.pw.pwn)),j?B(j):f(null,w).then(P=>{!w?.nomsg&&a.msg.fn({type:"ok",con:n.lg("asai.successedit")}),E(o[t.opt.channel].rfdata.data)}).catch(B)})}function S(w){return{us:w[l()],lv:Number(w[d()]||"0")}}function C(w=null,E=null){return new Promise((B,j)=>{const P=w||o[t.opt.channel].rfdata.data;a.user.info=S(P),n.inittoken(),c("/select/"+P[l()]+"/",r(),o[t.opt.channel].cfg?.api?.opt||{}).then(x=>{x?.[0]?.[l()]===P[l()]&&x?.[0]?.[s()]===P[s()]?(a.user.info=S(x[0]),n.As.localSet("as-user-info",n.AsAES.enc(n.As.toStr(a.user.info))),B(x)):(!E?.nomsg&&a.msg.fn({type:"err",con:n.lg("asai.hostmsg.loginerr",P[l()]||" ")}),j(n.lg("asai.hostmsg.loginerr",P[l()]||" ")))}).catch(j)})}function A(w=null,E=null){return new Promise((B,j)=>{const P=w||o[t.opt.channel].rfdata.data;c("/select/"+P[l()]+"/",{...r(),field:l()},o[t.opt.channel].cfg?.api?.opt||{}).then(x=>{x?.[0]?.[l()]?(!E?.nomsg&&a.msg.fn({type:"err",con:n.lg("asai.checkhas",P[l()])}),j(n.lg("asai.checkhas",P[l()]))):m("/insert/"+P[l()]+i(),P,o[t.opt.channel].cfg?.api?.opt||{}).then(T=>{E?.go&&o[t.opt.channel].cfg?.url?.reg&&n.AsRouter.setHref(o[t.opt.channel].cfg?.url?.reg),B(T)})}).catch(j)})}function V(){n.exit()}return{checkChannelUserWs:u,getChannelOnline:g,initChannelUserCode:y,initChannelUserToken:h,initChannelUserOnline:$,initChannelUserEdit:_,editChannelUserContent:k,getChannelUserInfoByItem:S,channelUserLogin:C,channelUserReg:A,channelUserExit:V}}},Symbol.toStringTag,{value:"Module"})),je=Object.freeze(Object.defineProperty({__proto__:null,default:{getUrlByCfg(t=null,n=0){return t?.url?t.url:t?.port?(n?window.location.protocol.includes("s")?"wss:":"ws:":window.location.protocol)+"//"+window.location.hostname+":"+t.port:n?window.location.origin.replace("http","ws"):window.location.origin},arrLenMax(t,n,o=0){return t.length>n&&(o?t.splice(n,t.length-n):t.splice(0,t.length-n)),t},setCookies(t,n,o=0,a="/"){let l="";if(o){const s=new Date;s.setTime(s.getTime()+o),l="; expires="+s.toUTCString()}document.cookie=t+"="+encodeURIComponent(n)+l+"; path="+(a||"/")},cookiesSet(t,n,o=0,a="/"){try{let l="";if(o){const s=new Date;s.setTime(s.getTime()+o),l="; expires="+s.toUTCString()}document.cookie=t+"="+n+l+"; path="+(a||"/")}catch{}},cookiesGet(t){try{const n=document.cookie;let o=n.substring(n.indexOf(t+"=")+(t+"=").length);const a=o.indexOf("; ");return a>-1?o.substring(0,a):o}catch{}return""},cookiesDel(t){this.setCookies(t,"",-1e3)},cookiesClear(){const t=document.cookie.split("; ");for(let n=0;n<t.length;n++){const o=t[n],a=o.indexOf("="),l=a>-1?o.substring(0,a):o;document.cookie=l+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}},readFile(t=null,n=0){return new Promise((o,a)=>{if(t){const l=new FileReader;n?l.readAsText(t):l.readAsDataURL(t),l.onload=()=>{o(l.result)}}else a()})},apiJsonp(t,n){try{let o=document.createElement("script");o.type="text/javascript",o.innerHTML=`
|
|
4
4
|
window.cbdata;
|
|
5
5
|
function asaiJsonp(data) {
|
|
6
6
|
cbdata=data;
|
|
7
|
-
}`,document.body.appendChild(o);let a=document.createElement("script");a.src=`${t}&&callback=asaiJsonp`,a.type="text/javascript",a.async=!0,document.body.appendChild(a),a.onload=()=>{document.body.removeChild(a),n&&n(window?.cbdata),document.body.removeChild(o)}}catch{n&&n("ERROR")}},localTime(t,n=0){if(n){const o=JSON.parse(this.localGet("astime")||"{}");o[t]=n,localStorage.setItem("astime",JSON.stringify(o))}else{const o=JSON.parse(this.localGet("astime")||"{}");if(o[t])return o[t]}return 0},localSet(t,n,o=localStorage){try{o.setItem(t,this.toStr(n))}catch{}},localGet(t,n=localStorage){try{return n.getItem(t)}catch{}return""},localRemove(t,n=localStorage){try{return n.removeItem(t)}catch{}},localClears(t=null,n=localStorage){if(t?.length){let o;for(let a in n)o=t.find(l=>a.startsWith(l)),o&&this.localRemove(a,n)}else this.localClear(n)},localClear(t=localStorage){t.clear()},localInit(t=localStorage){this.localClear(t),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(t="-"){return t?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(t="-"){return t?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(t){const n=window.event||t;return n?.preventDefault(),n?.stopPropagation(),!0},fullScreen(t=""){const n=t?document.getElementById(t):document.documentElement||document.body,o=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(o)o.call(n);else{const{ActiveXObject:a}=window;if(typeof a<"u"){const l=new a("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const t=document?.exitFullscreen;if(t)document.fullscreenElement!==null&&t.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const o=new n("WScript.Shell");o!==null&&o.SendKeys("{F11}")}}},fullScreenDo(t=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),t&&t()},toNums(t,n=0){return t&&Object.keys(t).forEach(o=>{typeof t[o]=="number"&&(t[o]=this.toNum(t[o],n))}),t},toNum(t,n=0){return typeof t!="number"&&typeof t=="string"&&(t=Number(t)),Number.isNaN(t)&&(t=0),t&&n&&(t=Math.round(t*10**n)/10**n),t},toObj(t){try{return t&&typeof t=="string"?JSON.parse(t):t}catch{return{err:"不是JSON格式数据"}}},toStr(t){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{const o=[];return JSON.stringify(t,(a,l)=>{if(typeof l=="object"&&l!==null){if(o.indexOf(l)!==-1)return;o.push(l)}return l})}},toArr(t,n=0){if(t){if(Array.isArray(t))return t;if(typeof t=="object")return Object.entries(t)}return n?[]:null},setObjValByPath(t,n,o,a=0){try{const l=n.split(".");let s=t;for(let i=0;i<l.length-1;i++){const m=l[i];if(s[m]===void 0||typeof s[m]!="object"||s[m]===null)if(a)s[m]={};else return!1;s=s[m]}const r=l[l.length-1];return s[r]=o,!0}catch{return!1}},isValidFileName(t){if(!t||t.length===0)return!1;const n=t.length;for(let a=0;a<n;a++){const l=t.charCodeAt(a);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const o=t.charCodeAt(n-1);return!(o===32||o===46)},getTime(t=6,n=0){let o="",a;n?(n<9999999999&&(n=n*1e3),a=new Date(n)):a=new Date;const[l,s]=t>9?t+"":"0"+t;function r(i){return+l<=i&&+s>=i}return r(1)&&(o+=("00"+a.getFullYear()).slice(-4)+"-"),r(2)&&(o+=("00"+(a.getMonth()+1)).slice(-2)+"-"),r(3)&&(o+=("00"+a.getDate()).slice(-2)+" "),r(4)&&(o+=("00"+a.getHours()).slice(-2)+":"),r(5)&&(o+=("00"+a.getMinutes()).slice(-2)+":"),r(6)&&(o+=("00"+a.getSeconds()).slice(-2)+"."),r(7)&&(o+=("000"+a.getMilliseconds()).slice(-3)+" "),r(9)?o.replace(/\D/g,""):o&&o.substring(0,o.length-1)},toFormTime(t=0){return this.getTime(6,t).replace(" ","T")},fromFormTime(t="",n=1){const o=t?new Date(t).getTime():new Date().getTime();return Math.floor(o/n)},Uuid(t="",n=0,o=32){return[t.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,s)=>l+(s&15).toString(o),"")].join("").slice(0,16)},downloadTxt(t="",n=""){if(t){typeof t=="object"&&(t=JSON.stringify(t));const o=document.createElement("a");o.style.display="none";const a=new Blob([t],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(a);o.href=l,o.setAttribute("download",n),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(l)}},downloadFile(t="",n=""){const o=document.createElement("a");o.href=t,n?o.download=n:o.download=t.slice(t.lastIndexOf("/")+1),document.body.appendChild(o),o.click(),document.body.removeChild(o)},debounce(t,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||t(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{t(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(t,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(t(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{t(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(t){try{return this.localSet("as-clipboard",t),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(t){throw t}}}},Symbol.toStringTag,{value:"Module"})),Re=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(t){return btoa(unescape(encodeURIComponent(t)))},base64Decode(t){return decodeURIComponent(escape(atob(t)))},simpleEncrypt(t,n=3){return t.split("").map(o=>String.fromCharCode(o.charCodeAt(0)+n)).join("")},simpleDecrypt(t,n=3){return t.split("").map(o=>String.fromCharCode(o.charCodeAt(0)-n)).join("")},hexEncode(t){return t.split("").map(n=>n.charCodeAt(0).toString(16).padStart(2,"0")).join("")},hexDecode(t){return t.match(/.{1,2}/g).map(n=>String.fromCharCode(parseInt(n,16))).join("")},enc(t){const n=this.simpleEncrypt(t,5);return this.base64Encode(n)},dec(t){const n=this.base64Decode(t);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),We=Object.freeze(Object.defineProperty({__proto__:null,default:{asencode(t,n){const o=t?.length,a=n?.length;let l="";for(let s=0;s<o;s++){const r=Math.round(Math.random()*1e3)%a,i=Number(r.toString().slice(-1))+1,m=a-i;let d=t.codePointAt(s);const c=d%m;d=(d-c)/m;const f=d%m;d=(d-f)/m,l+=n[d%m+i]+n[f+i]+n[c+i]+n.charAt(r)}return l},asdecode(t,n){try{const o=t.length,a=n.length;let l="";for(let s=0;s<o;s++){const r=n.indexOf(t[s+3]),i=Number(r.toString().slice(-1))+1,m=a-i;l+=String?.fromCodePoint((n.indexOf(t[s++])-i)*m*m+(n.indexOf(t[s++])-i)*m+(n.indexOf(t[s++])-i))}return l}catch{return""}},getCodeData(t,n){try{return t=JSON.parse(t),JSON.parse(this.asdecode(t.data,this.asdecode(t.code,n)))}catch{return}},sendCodeData(t,n,o){return{code:o,data:this.asencode(JSON.stringify(t),this.asdecode(o,n))}},asnewkey(t){const n=[];return t.split("").forEach(o=>{n.splice(Math.round(Math.random()*n.length),0,o)}),n.join("")}}},Symbol.toStringTag,{value:"Module"})),He=Object.freeze(Object.defineProperty({__proto__:null,default:{fullScreen(t=""){const n=t?document.getElementById(t):document.documentElement||document.body,o=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(o)o.call(n);else{const{ActiveXObject:a}=window;if(typeof a<"u"){const l=new a("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const t=window?.document,n=t?.exitFullscreen||t?.webkitExitFullScreen||t?.mozCancelFullScreen||t?.msExitFullScreen;if(n)t.fullscreenElement!==null&&n.call(t);else{const{ActiveXObject:o}=window;if(typeof o<"u"){const a=new o("WScript.Shell");a!==null&&a.SendKeys("{F11}")}}},fullScreenDo(t=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),t&&t()}}},Symbol.toStringTag,{value:"Module"})),qe={webpath:window?.$CFG?.webpath||"./",_hashChangeListener:null,_popstateListener:null,initHash(t={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{t.hash=window.location.pathname||"",this.setRouter(t)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{t.hash=window.location.hash?.replace("#","")||"",this.setRouter(t)},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(t){window.location.href=t},getHref(){return window?.location?.href},setHash(t={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),t.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",t.hash),this.setRouter(t)):window.location.hash=t.hash},getQuery(t={},n=""){return t.query={},n&&n.split("&").forEach(o=>{const[a,l]=o.split("=");a&&l&&(t.query[a]=decodeURIComponent(l))}),t.query},getHasharr(t){let n=t.hash;if(t.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[o,a]=n.split("?");let l=o?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();t.hasharr=l,this.getQuery(t,a)}return t.hasharr},setRouter(t){this.getHasharr(t);const n=t.hasharr||[],o=t.hasharr?.length||0;if(t.comps=[],o>0){let a="";for(let l=0;l<o;l++)a=`${a}${n[l]}/`,l==o-1?t.comps[l]=`${a}default`:t.comps[l]=`${a}index`}return t.comps?.length||(t.comps[0]="default"),t.comps},setTitle(t="",n=null){const a=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";t?document.title=`${t}${a?" - "+a:""}`:document.title=`${a}`}},Ke=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Xe=Object.freeze(Object.defineProperty({__proto__:null,default:{getStyle(t){return t},replaceTemplate(t,n){return t.replace(/\$\{([^}]+)\}/g,(o,a)=>n.hasOwnProperty(a)?n[a]:o)},getStyleByCss(t){let n="";return t.length>0&&t.forEach(o=>{o[0]&&o[1]&&Object.keys(o[1]).length&&(n+=this.replaceTemplate(o[0],o[1]))}),n},renderStyle(t,n,o){let a="";return o.styles?.["style"+n]&&(a+=o.styles["style"+n]),o.styles?.["css"+n]&&Object.keys(o.styles["css"+n]).length>0&&(a+=this.getStyleByCss(Object.entries(o.styles["css"+n]).map(l=>[t.designerdata.lib.cssdata?.[l[0]]?.[0],l[1]]))),a}}},Symbol.toStringTag,{value:"Module"})),H={routes:[],currentRoute:e.ref({path:window.location.pathname,fullPath:window.location.href,matched:null}),beforeEach:t=>{H.beforeEachCb=t},beforeEachCb:null,init(t){this.routes=t,this.matchRoute(),this.listenPopState()},matchRoute(){const t=this.routes.find(n=>n.path===this.currentRoute.value.path);this.currentRoute.value.matched=t||this.routes.find(n=>n.path==="*")||this.routes[0]},listenPopState(){window.addEventListener("popstate",()=>{this.currentRoute.value={...this.currentRoute.value,path:window.location.pathname,fullPath:window.location.href},this.matchRoute()})},push(t){this.beforeEachCb?.(this.currentRoute.value.path,t)!==!1&&(window.history.pushState({},"",t),this.currentRoute.value={...this.currentRoute.value,path:t,fullPath:window.location.href},this.matchRoute())},replace(t){this.beforeEachCb?.(this.currentRoute.value.path,t)!==!1&&(window.history.replaceState({},"",t),this.currentRoute.value={...this.currentRoute.value,path:t,fullPath:window.location.href},this.matchRoute())},go(t){window.history.go(t)}},Ye=e.defineComponent({setup(){return e.watch(()=>H.currentRoute.value,()=>{},{deep:!0}),()=>{const t=H.currentRoute.value.matched;return t?.component?e.createVNode(t.component):null}}}),Ge=e.defineComponent({props:{to:{type:String,required:!0},replace:{type:Boolean,default:!1}},setup(t,{slots:n}){const o=a=>{a.preventDefault(),t.replace?H.replace(t.to):H.push(t.to)};return()=>e.createVNode("a",{href:t.to,onClick:o,class:{"router-link-active":t.to===H.currentRoute.value.path}},n.default?.())}}),Je=Object.freeze(Object.defineProperty({__proto__:null,default:{install(t,n){H.init(n.routes||[]),t.component("RouterView",Ye),t.component("RouterLink",Ge),t.provide("router",H),t.config.globalProperties.$router=H,t.config.globalProperties.$route=H.currentRoute.value}},useRoute:()=>H.currentRoute,useRouter:()=>H},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$ws:o}=t.ujt;function a(m){return n.ws[m]==null?(n.useWs(t.ujt,m),n.ws[m].init()):Promise.resolve()}function l(m,d,c=null){return o.rooms[m]==null?(o.rooms[m]=[],n.ws[d].wsWatch({ty:"chat/web"+m+"broadcast"},f=>{o.rooms[m].push(...f.db),c&&c()}),!0):!1}function s(m,d,c=null){a(d).then(()=>{Array.isArray(m)?m.forEach(f=>{l(f,d,c)}):typeof m=="string"&&l(m,d,c)})}function r(m,d){Array.isArray(m)?m.forEach(c=>{n.ws[d].wsWatchOff({ty:"chat/web"+c+"broadcast"})}):typeof m=="string"&&n.ws[d].wsWatchOff({ty:"chat/web"+m+"broadcast"})}function i(m,d,c,f=""){return c.msg?n.ws[d].wsApi({ty:"chat/web"+m+"send",db:c}).then(()=>{c.msg=f||""}):Promise.resolve()}return{initChatRoom:s,offChatRoom:r,sendChatRoom:i}}},Symbol.toStringTag,{value:"Module"})),Ze=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n)=>{const{$fn:o,$global:a}=t.ujt;function l(){o.apisys.apiGet("/api/asailog/manage/selectlist/").then(d=>{n.list=d.data?.children||[],console.log(d)})}function s(d){n.name=d.name,o.apisys.apiGet(`/api/asailog/manage/select/?path=${d.name}`).then(c=>{n.content=c.data,console.log(c)})}function r(){o.As.downloadTxt(n.content,n.name)}function i(){o.popConfirm({con:a.lang.asai.delconfirm,full:2,fn:()=>{o.apisys.apiGet(`/api/asailog/manage/delete/?path=${n.name}`).then(d=>{n.name="",n.content="",l(),a.msg.fn({type:"ok",con:a.lang.asai.successdel}),console.log(d)})}})}function m(){o.popConfirm({con:a.lang.asai.confirm,full:2,fn:()=>{o.apisys.apiPost(`/api/asailog/manage/update/?path=${n.name}`,n.content).then(d=>{l(),a.msg.fn({type:"ok",con:a.lang.asai.successsave}),console.log(d)})}})}return{listLog:l,viewLog:s,downLog:r,deleteLog:i,submitLog:m}}},Symbol.toStringTag,{value:"Module"})),ve=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n={mediaStream:null,mediaPress:null,mediaNew:null,mediaChunks:[],mediaWorking:!1,mediaBase64:null,mediaFn:null,mediaView:null},o=0)=>{function a(d){return new Promise((c,f)=>{const p=new FileReader;p.onload=()=>{c(p.result)},p.onerror=f,p.readAsDataURL(new Blob(d,{type:"audio/webm"}))})}async function l(){try{n.mediaWorking=!0;const d={audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}};o&&(d.video={width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30},facingMode:"user"});const c=await navigator.mediaDevices.getUserMedia(d);n.mediaNew=new MediaRecorder(c,{mimeType:o?"video/webm;codecs=vp9,opus":"audio/webm;codecs=opus"}),n.mediaNew.stream&&n.mediaFnView&&n.mediaFnView(n.mediaNew.stream),n.mediaChunks=[],n.mediaNew.ondataavailable=f=>{f.data.size>0&&n.mediaChunks.push(f.data)},n.mediaNew.onstop=async()=>{n.mediaChunks.length!=0&&(n.mediaBase64=await a(n.mediaChunks),n.mediaFn&&n.mediaFn(n.mediaBase64))},n.mediaNew.start(100)}catch(d){console.error("无法访问麦克风或摄像头:",d),alert("无法访问麦克风或摄像头,请检查权限设置")}}function s(){n.mediaNew&&n.mediaWorking&&(n.mediaNew.stop(),n.mediaNew.stream.getTracks().forEach(d=>d.stop()),n.mediaWorking=!1)}function r(d){n.mediaPress!=null&&(clearInterval(n.mediaPress),n.mediaPress=null),l()}function i(d){}function m(d){s(),n.mediaPress!=null&&(clearInterval(n.mediaPress),n.mediaPress=null)}return{mediaBlobToBase64:a,mediaWorkStart:l,mediaWorkStop:s,mediaOnPress:r,mediaOnHold:i,mediaOnRelease:m}}},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a,$model:l}=t.ujt;function s(i,m){const d={};let c=i.split(l.novel.rule.bksn);d[m]=c[0],c=c[1].split(l.novel.rule.bkty),d.sn=c[0],c=c[1].split(l.novel.rule.bktm),d.ty=c[0],c=c[1].split(l.novel.rule.bktmg);try{d.tm=c[0]?.length>3?n.As.getTime(6,new Date(c[0])):"",c=c[1].split(l.novel.rule.bkdesc),d.tg=c[0]?.length>3?n.As.getTime(6,new Date(c[0])):""}catch{}return m==="li"?(c=c[1].split(l.novel.rule.bkcontent),d.ds=c[0],d.co=c[1]):d.ds=c[1],d}return{cmNovelData:e.computed(()=>{const i=[];let d=l.novel.muzu.replaceAll(`\r
|
|
7
|
+
}`,document.body.appendChild(o);let a=document.createElement("script");a.src=`${t}&&callback=asaiJsonp`,a.type="text/javascript",a.async=!0,document.body.appendChild(a),a.onload=()=>{document.body.removeChild(a),n&&n(window?.cbdata),document.body.removeChild(o)}}catch{n&&n("ERROR")}},localTime(t,n=0){if(n){const o=JSON.parse(this.localGet("astime")||"{}");o[t]=n,localStorage.setItem("astime",JSON.stringify(o))}else{const o=JSON.parse(this.localGet("astime")||"{}");if(o[t])return o[t]}return 0},localSet(t,n,o=localStorage){try{o.setItem(t,this.toStr(n))}catch{}},localGet(t,n=localStorage){try{return n.getItem(t)}catch{}return""},localRemove(t,n=localStorage){try{return n.removeItem(t)}catch{}},localClears(t=null,n=localStorage){if(t?.length){let o;for(let a in n)o=t.find(l=>a.startsWith(l)),o&&this.localRemove(a,n)}else this.localClear(n)},localClear(t=localStorage){t.clear()},localInit(t=localStorage){this.localClear(t),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(t="-"){return t?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(t="-"){return t?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(t){const n=window.event||t;return n?.preventDefault(),n?.stopPropagation(),!0},fullScreen(t=""){const n=t?document.getElementById(t):document.documentElement||document.body,o=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(o)o.call(n);else{const{ActiveXObject:a}=window;if(typeof a<"u"){const l=new a("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const t=document?.exitFullscreen;if(t)document.fullscreenElement!==null&&t.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const o=new n("WScript.Shell");o!==null&&o.SendKeys("{F11}")}}},fullScreenDo(t=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),t&&t()},toNums(t,n=0){return t&&Object.keys(t).forEach(o=>{typeof t[o]=="number"&&(t[o]=this.toNum(t[o],n))}),t},toNum(t,n=0){return typeof t!="number"&&typeof t=="string"&&(t=Number(t)),Number.isNaN(t)&&(t=0),t&&n&&(t=Math.round(t*10**n)/10**n),t},toObj(t){try{return t&&typeof t=="string"?JSON.parse(t):t}catch{return{err:"不是JSON格式数据"}}},toStr(t){if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{const o=[];return JSON.stringify(t,(a,l)=>{if(typeof l=="object"&&l!==null){if(o.indexOf(l)!==-1)return;o.push(l)}return l})}},toArr(t,n=0){if(t){if(Array.isArray(t))return t;if(typeof t=="object")return Object.entries(t)}return n?[]:null},setObjValByPath(t,n,o,a=0){try{const l=n.split(".");let s=t;for(let c=0;c<l.length-1;c++){const m=l[c];if(s[m]===void 0||typeof s[m]!="object"||s[m]===null)if(a)s[m]={};else return!1;s=s[m]}const d=l[l.length-1];return s[d]=o,!0}catch{return!1}},isValidFileName(t){if(!t||t.length===0)return!1;const n=t.length;for(let a=0;a<n;a++){const l=t.charCodeAt(a);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const o=t.charCodeAt(n-1);return!(o===32||o===46)},getTime(t=6,n=0){let o="",a;n?(n<9999999999&&(n=n*1e3),a=new Date(n)):a=new Date;const[l,s]=t>9?t+"":"0"+t;function d(c){return+l<=c&&+s>=c}return d(1)&&(o+=("00"+a.getFullYear()).slice(-4)+"-"),d(2)&&(o+=("00"+(a.getMonth()+1)).slice(-2)+"-"),d(3)&&(o+=("00"+a.getDate()).slice(-2)+" "),d(4)&&(o+=("00"+a.getHours()).slice(-2)+":"),d(5)&&(o+=("00"+a.getMinutes()).slice(-2)+":"),d(6)&&(o+=("00"+a.getSeconds()).slice(-2)+"."),d(7)&&(o+=("000"+a.getMilliseconds()).slice(-3)+" "),d(9)?o.replace(/\D/g,""):o&&o.substring(0,o.length-1)},toFormTime(t=0){return this.getTime(6,t).replace(" ","T")},fromFormTime(t="",n=1){const o=t?new Date(t).getTime():new Date().getTime();return Math.floor(o/n)},Uuid(t="",n=0,o=32){return[t.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,s)=>l+(s&15).toString(o),"")].join("").slice(0,16)},downloadTxt(t="",n=""){if(t){typeof t=="object"&&(t=JSON.stringify(t));const o=document.createElement("a");o.style.display="none";const a=new Blob([t],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(a);o.href=l,o.setAttribute("download",n),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(l)}},downloadFile(t="",n=""){const o=document.createElement("a");o.href=t,n?o.download=n:o.download=t.slice(t.lastIndexOf("/")+1),document.body.appendChild(o),o.click(),document.body.removeChild(o)},debounce(t,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||t(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{t(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(t,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(t(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{t(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(t){try{return this.localSet("as-clipboard",t),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(t){throw t}}}},Symbol.toStringTag,{value:"Module"})),Se=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(t){return btoa(unescape(encodeURIComponent(t)))},base64Decode(t){return decodeURIComponent(escape(atob(t)))},simpleEncrypt(t,n=3){return t.split("").map(o=>String.fromCharCode(o.charCodeAt(0)+n)).join("")},simpleDecrypt(t,n=3){return t.split("").map(o=>String.fromCharCode(o.charCodeAt(0)-n)).join("")},hexEncode(t){return t.split("").map(n=>n.charCodeAt(0).toString(16).padStart(2,"0")).join("")},hexDecode(t){return t.match(/.{1,2}/g).map(n=>String.fromCharCode(parseInt(n,16))).join("")},enc(t){const n=this.simpleEncrypt(t,5);return this.base64Encode(n)},dec(t){const n=this.base64Decode(t);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:{asencode(t,n){const o=t?.length,a=n?.length;let l="";for(let s=0;s<o;s++){const d=Math.round(Math.random()*1e3)%a,c=Number(d.toString().slice(-1))+1,m=a-c;let r=t.codePointAt(s);const i=r%m;r=(r-i)/m;const p=r%m;r=(r-p)/m,l+=n[r%m+c]+n[p+c]+n[i+c]+n.charAt(d)}return l},asdecode(t,n){try{const o=t.length,a=n.length;let l="";for(let s=0;s<o;s++){const d=n.indexOf(t[s+3]),c=Number(d.toString().slice(-1))+1,m=a-c;l+=String?.fromCodePoint((n.indexOf(t[s++])-c)*m*m+(n.indexOf(t[s++])-c)*m+(n.indexOf(t[s++])-c))}return l}catch{return""}},getCodeData(t,n){try{return t=JSON.parse(t),JSON.parse(this.asdecode(t.data,this.asdecode(t.code,n)))}catch{return}},sendCodeData(t,n,o){return{code:o,data:this.asencode(JSON.stringify(t),this.asdecode(o,n))}},asnewkey(t){const n=[];return t.split("").forEach(o=>{n.splice(Math.round(Math.random()*n.length),0,o)}),n.join("")}}},Symbol.toStringTag,{value:"Module"})),Be=Object.freeze(Object.defineProperty({__proto__:null,default:{fullScreen(t=""){const n=t?document.getElementById(t):document.documentElement||document.body,o=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(o)o.call(n);else{const{ActiveXObject:a}=window;if(typeof a<"u"){const l=new a("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const t=window?.document,n=t?.exitFullscreen||t?.webkitExitFullScreen||t?.mozCancelFullScreen||t?.msExitFullScreen;if(n)t.fullscreenElement!==null&&n.call(t);else{const{ActiveXObject:o}=window;if(typeof o<"u"){const a=new o("WScript.Shell");a!==null&&a.SendKeys("{F11}")}}},fullScreenDo(t=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),t&&t()}}},Symbol.toStringTag,{value:"Module"})),Ve={webpath:window?.$CFG?.webpath||"./",_hashChangeListener:null,_popstateListener:null,initHash(t={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{t.hash=window.location.pathname||"",this.setRouter(t)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{t.hash=window.location.hash?.replace("#","")||"",this.setRouter(t)},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(t){window.location.href=t},getHref(){return window?.location?.href},setHash(t={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),t.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",t.hash),this.setRouter(t)):window.location.hash=t.hash},getQuery(t={},n=""){return t.query={},n&&n.split("&").forEach(o=>{const[a,l]=o.split("=");a&&l&&(t.query[a]=decodeURIComponent(l))}),t.query},getHasharr(t){let n=t.hash;if(t.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[o,a]=n.split("?");let l=o?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();t.hasharr=l,this.getQuery(t,a)}return t.hasharr},setRouter(t){this.getHasharr(t);const n=t.hasharr||[],o=t.hasharr?.length||0;if(t.comps=[],o>0){let a="";for(let l=0;l<o;l++)a=`${a}${n[l]}/`,l==o-1?t.comps[l]=`${a}default`:t.comps[l]=`${a}index`}return t.comps?.length||(t.comps[0]="default"),t.comps},setTitle(t="",n=null){const a=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";t?document.title=`${t}${a?" - "+a:""}`:document.title=`${a}`}},xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"})),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:{getStyle(t){return t},replaceTemplate(t,n){return t.replace(/\$\{([^}]+)\}/g,(o,a)=>n.hasOwnProperty(a)?n[a]:o)},getStyleByCss(t){let n="";return t.length>0&&t.forEach(o=>{o[0]&&o[1]&&Object.keys(o[1]).length&&(n+=this.replaceTemplate(o[0],o[1]))}),n},renderStyle(t,n,o){let a="";return o.styles?.["style"+n]&&(a+=o.styles["style"+n]),o.styles?.["css"+n]&&Object.keys(o.styles["css"+n]).length>0&&(a+=this.getStyleByCss(Object.entries(o.styles["css"+n]).map(l=>[t.designerdata.lib.cssdata?.[l[0]]?.[0],l[1]]))),a}}},Symbol.toStringTag,{value:"Module"})),H={routes:[],currentRoute:e.ref({path:window.location.pathname,fullPath:window.location.href,matched:null}),beforeEach:t=>{H.beforeEachCb=t},beforeEachCb:null,init(t){this.routes=t,this.matchRoute(),this.listenPopState()},matchRoute(){const t=this.routes.find(n=>n.path===this.currentRoute.value.path);this.currentRoute.value.matched=t||this.routes.find(n=>n.path==="*")||this.routes[0]},listenPopState(){window.addEventListener("popstate",()=>{this.currentRoute.value={...this.currentRoute.value,path:window.location.pathname,fullPath:window.location.href},this.matchRoute()})},push(t){this.beforeEachCb?.(this.currentRoute.value.path,t)!==!1&&(window.history.pushState({},"",t),this.currentRoute.value={...this.currentRoute.value,path:t,fullPath:window.location.href},this.matchRoute())},replace(t){this.beforeEachCb?.(this.currentRoute.value.path,t)!==!1&&(window.history.replaceState({},"",t),this.currentRoute.value={...this.currentRoute.value,path:t,fullPath:window.location.href},this.matchRoute())},go(t){window.history.go(t)}},Pe=e.defineComponent({setup(){return e.watch(()=>H.currentRoute.value,()=>{},{deep:!0}),()=>{const t=H.currentRoute.value.matched;return t?.component?e.createVNode(t.component):null}}}),De=e.defineComponent({props:{to:{type:String,required:!0},replace:{type:Boolean,default:!1}},setup(t,{slots:n}){const o=a=>{a.preventDefault(),t.replace?H.replace(t.to):H.push(t.to)};return()=>e.createVNode("a",{href:t.to,onClick:o,class:{"router-link-active":t.to===H.currentRoute.value.path}},n.default?.())}}),ze=Object.freeze(Object.defineProperty({__proto__:null,default:{install(t,n){H.init(n.routes||[]),t.component("RouterView",Pe),t.component("RouterLink",De),t.provide("router",H),t.config.globalProperties.$router=H,t.config.globalProperties.$route=H.currentRoute.value}},useRoute:()=>H.currentRoute,useRouter:()=>H},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$ws:o}=t.ujt;function a(m){return n.ws[m]==null?(n.useWs(t.ujt,m),n.ws[m].init()):Promise.resolve()}function l(m,r,i=null){return o.rooms[m]==null?(o.rooms[m]=[],n.ws[r].wsWatch({ty:"chat/web"+m+"broadcast"},p=>{o.rooms[m].push(...p.db),i&&i()}),!0):!1}function s(m,r,i=null){a(r).then(()=>{Array.isArray(m)?m.forEach(p=>{l(p,r,i)}):typeof m=="string"&&l(m,r,i)})}function d(m,r){Array.isArray(m)?m.forEach(i=>{n.ws[r].wsWatchOff({ty:"chat/web"+i+"broadcast"})}):typeof m=="string"&&n.ws[r].wsWatchOff({ty:"chat/web"+m+"broadcast"})}function c(m,r,i,p=""){return i.msg?n.ws[r].wsApi({ty:"chat/web"+m+"send",db:i}).then(()=>{i.msg=p||""}):Promise.resolve()}return{initChatRoom:s,offChatRoom:d,sendChatRoom:c}}},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n)=>{const{$fn:o,$global:a}=t.ujt;function l(){o.apisys.apiGet("/api/asailog/manage/selectlist/").then(r=>{n.list=r.data?.children||[],console.log(r)})}function s(r){n.name=r.name,o.apisys.apiGet(`/api/asailog/manage/select/?path=${r.name}`).then(i=>{n.content=i.data,console.log(i)})}function d(){o.As.downloadTxt(n.content,n.name)}function c(){o.popConfirm({con:a.lang.asai.delconfirm,full:2,fn:()=>{o.apisys.apiGet(`/api/asailog/manage/delete/?path=${n.name}`).then(r=>{n.name="",n.content="",l(),a.msg.fn({type:"ok",con:a.lang.asai.successdel}),console.log(r)})}})}function m(){o.popConfirm({con:a.lang.asai.confirm,full:2,fn:()=>{o.apisys.apiPost(`/api/asailog/manage/update/?path=${n.name}`,n.content).then(r=>{l(),a.msg.fn({type:"ok",con:a.lang.asai.successsave}),console.log(r)})}})}return{listLog:l,viewLog:s,downLog:d,deleteLog:c,submitLog:m}}},Symbol.toStringTag,{value:"Module"})),Oe=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n={mediaStream:null,mediaPress:null,mediaNew:null,mediaChunks:[],mediaWorking:!1,mediaBase64:null,mediaFn:null,mediaView:null},o=0)=>{function a(r){return new Promise((i,p)=>{const f=new FileReader;f.onload=()=>{i(f.result)},f.onerror=p,f.readAsDataURL(new Blob(r,{type:"audio/webm"}))})}async function l(){try{n.mediaWorking=!0;const r={audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}};o&&(r.video={width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30},facingMode:"user"});const i=await navigator.mediaDevices.getUserMedia(r);n.mediaNew=new MediaRecorder(i,{mimeType:o?"video/webm;codecs=vp9,opus":"audio/webm;codecs=opus"}),n.mediaNew.stream&&n.mediaFnView&&n.mediaFnView(n.mediaNew.stream),n.mediaChunks=[],n.mediaNew.ondataavailable=p=>{p.data.size>0&&n.mediaChunks.push(p.data)},n.mediaNew.onstop=async()=>{n.mediaChunks.length!=0&&(n.mediaBase64=await a(n.mediaChunks),n.mediaFn&&n.mediaFn(n.mediaBase64))},n.mediaNew.start(100)}catch(r){console.error("无法访问麦克风或摄像头:",r),alert("无法访问麦克风或摄像头,请检查权限设置")}}function s(){n.mediaNew&&n.mediaWorking&&(n.mediaNew.stop(),n.mediaNew.stream.getTracks().forEach(r=>r.stop()),n.mediaWorking=!1)}function d(r){n.mediaPress!=null&&(clearInterval(n.mediaPress),n.mediaPress=null),l()}function c(r){}function m(r){s(),n.mediaPress!=null&&(clearInterval(n.mediaPress),n.mediaPress=null)}return{mediaBlobToBase64:a,mediaWorkStart:l,mediaWorkStop:s,mediaOnPress:d,mediaOnHold:c,mediaOnRelease:m}}},Symbol.toStringTag,{value:"Module"})),Te=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$db:o,$global:a,$model:l}=t.ujt;function s(c,m){const r={};let i=c.split(l.novel.rule.bksn);r[m]=i[0],i=i[1].split(l.novel.rule.bkty),r.sn=i[0],i=i[1].split(l.novel.rule.bktm),r.ty=i[0],i=i[1].split(l.novel.rule.bktmg);try{r.tm=i[0]?.length>3?n.As.getTime(6,new Date(i[0])):"",i=i[1].split(l.novel.rule.bkdesc),r.tg=i[0]?.length>3?n.As.getTime(6,new Date(i[0])):""}catch{}return m==="li"?(i=i[1].split(l.novel.rule.bkcontent),r.ds=i[0],r.co=i[1]):r.ds=i[1],r}return{cmNovelData:e.computed(()=>{const c=[];let r=l.novel.muzu.replaceAll(`\r
|
|
8
8
|
`,`
|
|
9
|
-
`).split(l.novel.rule.bkchannel),c,f,p;return d.forEach(u=>{u&&u.split(l.novel.rule.bkclass).forEach((g,k)=>{k==0?(c=s(g,"ch"),c.cc=[],i.push(c)):g.split(l.novel.rule.bklist).forEach((C,b)=>{b==0?(f=s(C,"cl"),f.cc=[],c.cc.push(f)):(p=s(C,"li"),f.cc.push(p))})})}),i})}}},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$global:n}=t.ujt;function o(a){const l=Number(n.location.query.pc)||0,s=l===0?0:Math.ceil(l/a);if(s===0)return[];let r=Math.min(Math.max(Number(n.location.query.pg)||1,1),s),i=Math.max(r-Math.floor(a/2),1),m=i+a-1;return m>s&&(m=s,i=Math.max(m-a+1,1)),Array.from({length:m-i+1},(d,c)=>i+c)}return{getPageList:o}}},Symbol.toStringTag,{value:"Module"})),nt=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$model:o,$db:a,$dbwork:l,$global:s}=t;function r(i="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs(i),m?.["$engine"+i]&&(Object.assign(n,m["$engine"+i]),m?.["$engineuse"+i]&&Object.assign(n,m["$engineuse"+i])),o[i]||(o[i]={}),l[i]||(l[i]={}),a[i]||(a[i]={}),n.setconfig=(c,f)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+c+".json",f),n.changelangpro=(c="")=>n.changelang(s.config.langcur||c).then(f=>{s?.sys?.local?.lang?i&&n.ws?.[i]&&n.ws[i].wsSend({id:"1",ty:"common/setlanguage",db:f}):n.setconfig("settinglang",{lang:c})}),n.changethemepro=(c="")=>s?.sys?.local?.theme?n.changetheme(c):n.setconfig("settingtheme",{theme:c});const d=[n.initlang(s.config.langcur||"")];return d.push(n.initmodel(i+"/dirmodel.json").then(c=>{c&&Object.assign(o[i],c)})),Promise.all(d)}return{initAppModel:r}}},Symbol.toStringTag,{value:"Module"})),ot=e.reactive({providedb:{data:{}}}),at=e.reactive({providedbwork:{data:{}}}),lt=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:""}}}}),st=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),v={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},it=Object.freeze(Object.defineProperty({__proto__:null,default:(t=null)=>{const n=window;Object.assign(v.providefn.data,t||{});const o={$db:ot.providedb.data,$dbwork:at.providedbwork.data,$ws:st.providews.data,$global:lt.provideglobal.data,$model:n.$GYS.$webmodel,$fn:v.providefn.data};o.$global.$cfg=n.$CFG||{},n.$GYS.ujt=o,o.$fn.lo=(...c)=>{if(o.$global.sys?.onconsole){if(!c?.[0])o.$model.gysfn.log();else if(c.length>0){let f="",p="",u="";if(c[1]&&typeof c[1]=="string"){const[h,g,...k]=c;p=g,u=k,Array.isArray(c[0])&&c[0].length===2?f=l(c[0][0],c[0][1],"12px"):typeof c[0]=="number"&&(f=a(h,12))}f?console.log("%c"+p,f,...u):console.log(...c)}}},o.$model.gysfn.log=()=>(console.log("%c$fn",a(6,18),s(o.$fn),o.$fn),console.log("%c$model",a(5,18),s(o.$model),o.$model),console.log("%c$global",a(4,18),s(o.$global),o.$global),console.log("%c$ws",a(3,18),s(o.$ws),o.$ws),console.log("%c$db",a(2,18),s(o.$db),o.$db),console.log("%c$dbwork",a(1,18),s(o.$dbwork),o.$dbwork),"Web Model Log。");function a(c,f=18){let p="";return c===1?p=l("black","pink",f+"px"):c===2?p=l("black","cyan",f+"px"):c===3?p=l("black","yellow",f+"px"):c===4?p=l("white","blue",f+"px"):c===5?p=l("white","red",f+"px"):c===6?p=l("white","green",f+"px"):c===7&&(p=l("white","purple",f+"px")),p}function l(c,f,p="18px"){return"font-size:"+p+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+c+";background-color:"+f+";"}function s(c){try{return"size=>"+((c&&JSON.stringify(c)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function r(c={}){o.$global.pop.popdefaultconfirm&&(o.$global.pop.popdefaultconfirm.stat=1,o.$global.pop.popdefaultconfirm.full=1,o.$global.pop.popdefaultconfirm.notit=1,Object.assign(o.$global.pop.popdefaultconfirm,c))}o.$fn.popConfirm=r,o.$fn.getWebPath=(c="")=>{const f=o?.$global?.$cfg?.webpath||"./";return c&&!c.startsWith("http")&&!c.startsWith(f)?f+c:c};const{fetchPublic:i}=o.$fn?.AsaiModel(o.$fn.getWebPath("webmodel/"));o.$fn.initmodel=i,o.$fn.startLink=()=>new Promise((c,f)=>{o.$fn.initmodel("sys/server.json").then(p=>{const u={api:{},ws:{}};["api","ws"].forEach(h=>{Object.keys(p?.[h]||{}).forEach(g=>{let k=p[h][g];k&&typeof k=="string"&&(k=u[h][k]),k||(k=p[h].default),u[h][g]={...k,url:o.$fn.As.getUrlByCfg(k,h=="ws"?1:0)}})}),o.$fn.As.localSet("as-link",JSON.stringify(u)),o.$global.link=u,c(o.$global.link)}).catch(p=>{f(p)})}),o.$fn.saveLink=c=>{o.$global.link=c,o.$fn.As.localSet("as-link",JSON.stringify(o.$global.link))},o.$fn.initLink=(c=0)=>new Promise((f,p)=>{if(c)o.$fn.startLink().then(u=>{f(u)}).catch(u=>{p(u)});else{let u=o.$fn.As.localGet("as-link");u?(o.$global.link=JSON.parse(u),o.$global.link?.api&&o.$global.link?.ws&&o.$global.link?.ws?.default?f(o.$global.link):o.$fn.startLink().then(h=>{f(h)}).catch(h=>{p(h)})):o.$fn.startLink().then(h=>{f(h)}).catch(h=>{p(h)})}});const m=new Map,d=/\$(\d+)/g;return o.$fn.lg=(c,f)=>{if(typeof c!="string"||!c)return;let p=m.get(c);p||(p=c.split("."),m.set(c,p));const u=p.reduce((k,y)=>k?.[y],o.$global.lang);if(!f||f.length===0)return u;const h=Array.isArray(f)?f:[f];return u?.replace(d,(k,y)=>{const C=parseInt(y,10)-1;return h[C]??k})},o.$fn.changetheme=(c="")=>new Promise((f,p)=>{try{let u="";o.$global?.sys?.local?.theme?u=o.$fn.As.localGet(o.$global?.sys?.local?.theme)||o.$model.data.sys.settingtheme.theme||o.$model.data.sys.configdata.theme[0]:u=o.$model.data.sys.settingtheme.theme||o.$model.data.sys.configdata.theme[0],c&&u===c?f():(c==="auto"?u=u==o.$model.data.sys.configdata.theme[0]?o.$model.data.sys.configdata.theme[1]:o.$model.data.sys.configdata.theme[0]:c&&(u=c),o.$global?.sys?.local?.theme&&o.$fn.As.localSet(o.$global?.sys?.local?.theme,u)),u&&o.$global?.config?.theme!==u&&(o.$global?.config?.theme&&document?.body?.classList?.contains(o.$global.config.theme)&&document.body.classList.remove(o.$global.config.theme),o.$global.config.theme=u),document?.body?.classList?.contains(u)||document.body.classList.add(u),f()}catch(u){p(u)}}),o.$fn.initlang=(c="")=>{let f="";return o.$global?.sys?.local?.lang?f=c||o.$fn.As.localGet(o.$global?.sys?.local?.lang)||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0]:f=c||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0],o.$global?.lang||(o.$global.lang={}),new Promise((p,u)=>{o.$fn.initmodel("lang/dirlang.json",f+"/").then(h=>{Object.assign(o.$global.lang,h),p(o.$global.lang)}).catch(h=>{u(h)})})},o.$fn.changelang=(c="")=>{let f="";return o.$global?.sys?.local?.lang?f=o.$fn.As.localGet(o.$global?.sys?.local?.lang)||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0]:f=o.$global.config.langcur||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0],new Promise((p,u)=>{c&&f===c&&o.$global?.lang?p(f):(c==="auto"?f=f==o.$model.data.sys.configdata?.lang[0]?o.$model.data.sys.configdata?.lang[1]:o.$model.data.sys.configdata?.lang[0]:c&&(f=c),o.$global?.sys?.local?.lang&&o.$fn.As.localSet(o.$global?.sys?.local?.lang,f),o.$global?.sys?.local?.lang||!o.$global.config.lang?(o.$global.config.lang=f,o.$fn.initlang(f).then(h=>{p(f)}).catch(h=>{u(h)})):p(f))})},o.$fn.initver=()=>{if(o.$global.sys?.ver){const c=o.$fn.As.localGet("as-ver");if(c){if(o.$global.sys?.ver!==c)return o.$fn.As.localInit(),!0}else o.$fn.As.localSet("as-ver",o.$global.sys?.ver||"")}return!1},o.$fn.initweb=async c=>{try{let f=function(){const{protocol:h,hostname:g,port:k,hash:y}=n.location;o.$global.location={protocol:h,hostname:g,port:k,hash:y.replace("#",""),comps:[],query:{}},o.$fn.AsRouter.initHash(o.$global.location),C();function C(){o.$fn.AsRouter.setRouter(o.$global.location)}o.$fn.setquery=(b={},$=0)=>{let w;$?w=new URLSearchParams({...o.$global.location.query||{},...b||{}}).toString():w=new URLSearchParams(b||{}).toString(),w?w=o.$global.location.hash.split("?")[0]+"?"+w:w=o.$global.location.hash.split("?")[0],o.$fn.AsRouter.setHash(o.$global.location,w),C()},o.$fn.sethash=(b="")=>{o.$fn.AsRouter.setHash(o.$global.location,b)},o.$fn.exit=(b=0)=>{o.$fn.As.localSet("as-user-info",""),o.$global.user.info=null,o.$global.code.token=null,b&&(o.$fn.sethash(""),o.$fn.As.localReload())},o.$fn.login=()=>{o.$fn.As.localSet("as-user-info",""),o.$global.user.info=null,o.$fn.sethash(o.$global.sys?.router?.config?.login||"user/login")}};Object.assign(o.$fn,c.$engineasai||{}),Object.assign(o.$fn,c.$engineasailib||{});const p=await o.$fn.initmodel("sys/dirglobal.json");if(o.$global.sys={},Object.keys(p).forEach(h=>{Object.assign(o.$global.sys,p[h])}),o.$fn.initver())return;o.$model.data.asai=await o.$fn.initmodel("asai/dirmodel.json");const u=await o.$fn.initmodel("asai/dirglobal.json");if(o.$global.asai={},Object.keys(u).forEach(h=>{Object.assign(o.$global.asai,u[h])}),o.$model.data.sys=await o.$fn.initmodel("sys/dirmodel.json"),o.$model.data.sys.configrouter){o.$global.sys.router=o.$model.data.sys.configrouter;for(let h=0;h<o.$global.sys.router.config.models.length;h++){const g=await o.$fn.initmodel(o.$global.sys.router.config.models[h]+"/configrouter.json");typeof g=="object"&&Object.entries(g).forEach(([k,y])=>{k==="rights"?Object.entries(y).forEach(([C,b])=>{b&&b.length&&b.forEach($=>{o.$global.sys.router.rights[C].includes($)||o.$global.sys.router.rights[C].push($)})}):Object.assign(o.$global.sys.router[k],y)})}}o.$fn.lo(),await o.$fn.initLink(),await o.$fn.changetheme(),f()}catch{}},o.$fn.offweb=()=>{o.$fn.AsRouter.offHash()},o.$fn.initrouter=()=>{if(o.$global?.sys?.devlevel&&!o.$global.url[o.$global.module.value]){o.$global.url[o.$global.module.value]=[],o.$global.url[o.$global.module.value].push(...Object.keys(o.$model.appmodules.indexRouters).map(f=>({value:f,label:f,type:"module"})));const c=/^\.\/(.*?)\/default\.vue$/;o.$global.url[o.$global.module.value].push(...[...Object.keys(o.$model.comps)?.map(f=>{if(c.test(f)){const p=f.match(c);if(p)return p[1]}return""}).filter(f=>f)].map(f=>({value:f,label:f})))}},o.$fn.inittoken=()=>{o.$global.code.pri&&o.$global.user.info?.us&&(o.$global.code.token=o.$fn.AsCode.asencode(o.$global.user.info?.us,o.$global.code.pri)+"##"+o.$fn.AsCode.asencode(o.$global.user.info?.lv||0,o.$global.code.pri)+"##"+o.$global.code.pub)},o.$fn.gettoken=(c=0)=>o.$global?.code?.token?o.$global.code.token:o.$global?.code?.pub&&c?o.$global?.code?.token||"####"+o.$global.code.pub:"",o.$fn.$log=(c=null)=>new Promise((f,p)=>{if(c){const u=(o.$global?.user?.info?.us||"")+"-"+c;o?.$fn?.lo?.(7,"log",u),o?.$global?.sys?.onweblog&&o?.$fn?.apisys.apiPost("/api/asailog/manage/add/",u).then(f).catch(p),f()}else f()}),o.$fn.checkOnline=()=>new Promise((c,f)=>{if(o?.$global?.sys?.oncheckonline)try{typeof o?.$fn?.ws?.web?.wsApi=="function"?o.$fn.ws.web.wsApi("ping")?.then(p=>{p=="pong"?c(p):f(p)}).catch(f):f()}catch(p){f(p)}else c()}),e.provide("$ujtasai",o),{...o,$ujtasai:o}}},Symbol.toStringTag,{value:"Module"})),rt=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$model:o,$global:a,$ws:l}=t;l?.beat||(l.beat={});function s(r="web",i=0){(i||a.sys?.tmbeat)&&(l.beat["bt"+r]=setInterval(()=>{l.beat["btm"+r]=setTimeout(()=>{clearInterval(l.beat["bt"+r]),l.beat["bt"+r]=null,n.exit()},(i||a.sys?.tmbeat)*1.5),n.ws[r].wsApi("ping").then(m=>{m==="pong"&&(clearTimeout(l.beat["btm"+r]),l.beat["btm"+r]=null)})},i||a.sys?.tmbeat))}return{pingPong:s}}},Symbol.toStringTag,{value:"Module"})),ct=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n="web")=>{const{$global:o,$fn:a}=t;return a.ws[n]||(a.ws[n]=new a.AsaiWs({wsurl:a.As.getUrlByCfg(o.link.ws[n],1),Userinfo:o.user.info,wsname:n,wsworker:o.link.ws[n]?.worker,wssec:o.link.ws[n]?.sec,ujt:t}),a.ws[n]&&o?.sys?.tyrobot==n&&(a.wssys=a.ws[n])),a.ws[n]}},Symbol.toStringTag,{value:"Module"})),dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiComponent",props:{ujt:{}},setup(t){const n=t,{$model:o,$global:a}=n.ujt,l=e.computed(()=>o.appmodules.indexRouters[(a.sys?.router?.config?.models?.includes(a.location?.hasharr?.[0])?a.location?.hasharr?.[0]:"")||a.sys?.router?.config?.models?.[0]]);return(s,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{ujt:t.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),mt=e.defineComponent({__name:"AsaiWebServer",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserver",class:e.normalizeClass("asaiweb asaiweb"+(e.unref(o).location?.hasharr?.[0]||"default"))},[e.createVNode(s,{ujt:t.ujt},null,8,["ujt"])],2)}}}),A=(t,n)=>{const o=t.__vccOpts||t;for(const[a,l]of n)o[a]=l;return o},ee=A(mt,[["__scopeId","data-v-aaec86d5"]]),ft=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"})),te=A(e.defineComponent({__name:"AsaiWebServerNode",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserToken:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return l(),(s,r)=>{const i=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebservernode",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.pub?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadServer"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-16432218"]]),pt=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"})),ne=A(e.defineComponent({__name:"AsaiWebServerUser",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserToken:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return l(),(s,r)=>{const i=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruser",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.token?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserToken"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-c0e5fdf2"]]),ut=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"})),ht={key:0,id:"asaiweb"},gt={id:"teleportpopbox"},yt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiInitPage",props:{appmodules:{},ujt:{}},setup(t){const n=t,o=e.inject("$vueProxy"),{$global:a,$fn:l,$model:s,$ws:r}=n.ujt;s.appmodules=n.appmodules;function i(){let u=l.As?.localGet("as-user-code");u&&(u=l.As.toObj(u),a.code.pri=u[0],a.code.pub=u[1]),a.code.pri&&l.As.localGet("as-user-info")&&(a.user.info=l.As.toObj(l.AsAES.dec(l.As.localGet("as-user-info")))),l.inittoken()}function m(){a?.sys?.nouser||l.ws.web.wsWatch({ty:"publish/web"},u=>{u?.db?.exit&&(l.exit(),l.sethash(a.sys?.router?.config?.login||"user/login")),u?.db?.lang&&(u.db.langpm?u.db.con=l.lg("asai.hostmsg."+u.db.lang,u.db.langpm)||u.db.con:u.db.con=l.lg("asai.hostmsg."+u.db.lang)||u.db.con),u?.db==="pong"?l.ws.web.wsApi("ping").then(h=>{}):u?.db?.bs?d(u.db.bs):u?.db?.con&&a.msg.fn(u.db)})}function d(u){if(Array.isArray(u)&&u[0]?.[0])try{u.forEach(h=>{l.As.setObjValByPath(r.wssys,h[0],h[1])})}catch{}}const c=e.computed(()=>!a.location.hash||a.location.hash=="/"||a.sys?.router?.rights?.lv0?.find(u=>a.location.hash.includes(u))?0:a.sys?.router?.rights?.lv1?.find(u=>a.location.hash.includes(u))?1:a.sys?.router?.rights?.lv2?.find(u=>a.location.hash.includes(u))?2:a.sys?.router?.rights?.lv3?.find(u=>a.location.hash.includes(u))?3:a.sys?.router?.config?.lv);function f(u,h){try{console.error(h+" Error:",u);let g="";u?.error?.stack&&typeof u?.error?.stack=="string"?g=u.error.stack:u?.error?.message&&typeof u?.error?.message=="string"?g=u.error.message:u?.message&&typeof u?.message=="string"?g=u.message:u?.reason?.message&&typeof u?.reason?.message=="string"?g=u.reason.message:u?.reason&&typeof u?.reason=="string"?g=u.reason:u&&typeof u=="string"&&(g=u),g&&(g="Web "+h+` Error:
|
|
10
|
-
`+g,console.error(g),l.$log(g),a?.msg?.fn?.({type:"err",con:g})),u.preventDefault()}catch(g){console.error("Try Error:",g)}}const p=e.reactive({catchErrorUnhandledrejection:null,catchErrorCatch:null});return e.onMounted(()=>{l.initweb(o).then(()=>{let u=[];l.useApi(n.ujt,"web"),a?.sys?.tyrobot&&(l.useApi(n.ujt,a.sys.tyrobot),l.useWs(n.ujt,a.sys.tyrobot)),a?.sys?.onuserws&&(l.useWs(n.ujt,"web"),i(),u.push(l.ws.web.init().then(()=>{m()}))),a?.sys?.local?.lang||u.push(l.initmodel("/sys/setting/settinglang.json").then(h=>{typeof h?.data=="string"?a.config.langcur=JSON.parse(h?.data||"{}")?.lang:a.config.langcur=(h?.data||{})?.lang})),Promise.all(u).then(()=>{l.changelang(a.config.langcur).then(h=>{!window?.$CFG?.title&&a.lang.sys?.webtit&&(document.title=a.lang.sys?.webtit),a.stat.webclient=1,a.sys.catcherror&&(p.catchErrorUnhandledrejection=k=>{f(k,"Unhandledrejection")},window?.addEventListener?.("unhandledrejection",p.catchErrorUnhandledrejection),p.catchErrorCatch=k=>{f(k,"Catch")},window?.addEventListener?.("error",p.catchErrorCatch))})})})}),e.onBeforeUnmount(()=>{l.offweb(),a.sys.catcherror&&(p.catchErrorUnhandledrejection&&(window.removeEventListener("unhandledrejection",p.catchErrorUnhandledrejection),p.catchErrorUnhandledrejection=null),p.catchErrorCatch&&(window.removeEventListener("error",p.catchErrorCatch),p.catchErrorCatch=null)),a?.sys?.nouser||l.ws.web.wsWatchOff({ty:"publish/web"})}),(u,h)=>{const g=e.resolveComponent("AsaiWebServerUserOnline"),k=e.resolveComponent("PopMsg"),y=e.resolveComponent("PopBoxConfirm"),C=e.resolveDirective("keyboard");return e.unref(a).stat.webclient?(e.openBlock(),e.createElementBlock("div",ht,[c.value===0?(e.openBlock(),e.createBlock(ee,{key:0,ujt:t.ujt},null,8,["ujt"])):c.value===1?(e.openBlock(),e.createBlock(te,{key:1,ujt:t.ujt},null,8,["ujt"])):c.value===2?(e.openBlock(),e.createBlock(ne,{key:2,ujt:t.ujt},null,8,["ujt"])):(e.openBlock(),e.createBlock(g,{key:3,ujt:t.ujt},null,8,["ujt"])),h[0]||(h[0]=e.createElementVNode("div",{id:"teleportasai"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("div",gt,[e.createVNode(k,{ujt:t.ujt},null,8,["ujt"]),e.createVNode(y,{ujt:t.ujt,id:"popdefaultconfirm"},null,8,["ujt"])])),[[C,{ujt:t.ujt}]])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadClient"),{key:1,ujt:t.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),bt={class:"app-area"},kt={class:"app-logo"},_t=["src"],$t={class:"app-menu-area"},Ct=["onPointerup"],wt={class:"menu-text"},jt={class:"app-login"},St=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemDefault",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>o.url?.[o.module.value]?.filter(s=>s.type==="module"||("/"+s.value+"/").startsWith(o.location.hash))||[]);return(s,r)=>{const i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",kt,[e.createElementVNode("img",{src:e.unref(o).$cfg.logo,width:"200"},null,8,_t)]),e.createElementVNode("div",$t,[(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:d=>e.unref(a).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",wt,e.toDisplayString(m.label),1)],42,Ct))),128))]),e.createElementVNode("div",jt,[e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemIndex",props:{ujt:{},ty:{}},setup(t){return(n,o)=>{const a=e.resolveComponent("RouterView");return e.openBlock(),e.createBlock(a,{ujt:t.ujt,ty:t.ty||2},null,8,["ujt","ty"])}}})},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModule",props:{ujt:{},module:{},ty:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;Object.assign(o.module,n.module),n.module?.ws&&a.useWs(n.ujt,o.module.value);const{initAppModel:l}=a.useInitApp(n.ujt);return o.stat[o.module.value]=0,l(o.module.value).then(s=>{o.stat[o.module.value]=1}),(s,r)=>{const i=e.resolveComponent("RouterView");return n.module?.value&&e.unref(o).stat[n.module.value]?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt,ty:t.ty||0},null,8,["ujt","ty"])):e.unref(o).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadErr"),{key:1,ujt:t.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),Vt={class:"app-area"},xt={class:"app-logo"},Nt=["src"],At={class:"app-menu-area"},Dt=["onPointerup"],Pt={class:"menu-text"},zt={class:"app-login"},Mt=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiWebModuleDefault",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return a.initrouter(),(l,s)=>{const r=e.resolveComponent("MenuShowFix"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{ujt:t.ujt,menus:e.unref(o).url[e.unref(o).module.value]},null,8,["ujt","menus"]),e.createElementVNode("div",Vt,[e.createElementVNode("div",xt,[e.createElementVNode("img",{src:e.unref(o).$cfg.logo,width:"200"},null,8,Nt)]),e.createElementVNode("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).url[e.unref(o).module.value],m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:d=>e.unref(a).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",Pt,e.toDisplayString(m.label),1)],42,Dt))),128))]),e.createElementVNode("div",zt,[e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])],64)}}}),[["__scopeId","data-v-0e6e2a63"]])},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModuleIndex",props:{ujt:{},ty:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return a.initrouter(),(l,s)=>{const r=e.resolveComponent("MenuShowFix"),i=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{ujt:t.ujt,menus:e.unref(o).url[e.unref(o).module.value]},null,8,["ujt","menus"]),e.unref(o).stat[e.unref(o).module.value]?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt,ty:t.ty||1},null,8,["ujt","ty"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiWebServerUserOnline",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserOnline:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return a.code.token&&l(),(s,r)=>{const i=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruseronline",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.token&&e.unref(a).user.online?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserTokenOnline"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-f25a2c98"]])},Symbol.toStringTag,{value:"Module"})),Lt={class:"as-channel-show as-form-align as-form-line asfselectarea"},Ut={class:"as-channel-btns"},It=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelAdd",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{addContent:l,initAddChannel:s,channelLang:r}=o.useChannel(n);s();const i={addContent:l,channelLang:r};return(m,d)=>{const c=e.resolveComponent("AsaiForm");return e.renderSlot(m.$slots,"default",{item:e.unref(a)[n.opt.channel],option:i},()=>[e.createElementVNode("div",Lt,[e.createVNode(c,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,opt:{isedit:0}},null,8,["ujt","asaidata"])]),e.createElementVNode("div",Ut,[e.createElementVNode("div",{class:"li cur",onClick:d[0]||(d[0]=f=>i.addContent())},e.toDisplayString(i.channelLang("ui.add")||"Add"),1)])])}}})},Symbol.toStringTag,{value:"Module"})),Ft={key:0,class:"btns"},Rt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelBtnsManage",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>3<e.unref(o).user?.info?.lv?(e.openBlock(),e.createElementBlock("div",Ft,[e.createElementVNode("div",{onClick:l[0]||(l[0]=e.withModifiers(s=>{t.option.popConfirm({con:t.option.channelLang("ui.delconfirm"),fn:()=>{t.option.delItem(t.item?.rfdata?.data?.[t.option.getSnKey()])}})},["stop"]))},e.toDisplayString(t.option.channelLang("ui.del")||"Del"),1),e.createElementVNode("div",{onClick:l[1]||(l[1]=e.withModifiers(s=>t.option.editItem(t.item?.rfdata?.data?.[t.option.getSnKey()]),["stop"]))},e.toDisplayString(t.option.channelLang("ui.edit")||"Edit"),1)])):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Wt=["title","onClick"],Ht=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelClass",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{setChannelClass:s,getClassKey:r}=o.useChannel(n),i={setChannelClass:s};return(m,d)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.entries(e.unref(l)[n.opt.channel]?.rfdata?.rule?.[e.unref(r)()]?.[e.unref(r)()+"data"]||{asai:"All"}),c=>e.renderSlot(m.$slots,"default",{key:c[0],item:c,option:i},()=>[e.createElementVNode("div",{title:c[1]||"",class:e.normalizeClass({cur:c[0]===e.unref(a).location.query?.fl||c[0]==="asai"&&!e.unref(a).location.query?.fl}),onClick:e.withModifiers(f=>i.setChannelClass(c[0]==="asai"?"":c[0]),["stop"])},e.toDisplayString(c[1])+" "+e.toDisplayString(c[1])+" "+e.toDisplayString(c[1]),11,Wt)])),128))}})},Symbol.toStringTag,{value:"Module"})),qt={class:"as-channel-show as-form-align as-form-line asfselectarea"},Kt={class:"as-channel-btns"},Xt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelEdit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{editContent:s,channelLang:r,readItem:i}=o.useChannel(n);!a[n.opt.channel]?.rfdata?.data&&l?.location?.query?.show&&i(l.location.query.show);const m={editContent:s,channelLang:r};return(d,c)=>{const f=e.resolveComponent("AsaiForm");return e.renderSlot(d.$slots,"default",{item:e.unref(a)[n.opt.channel],option:m},()=>[e.createElementVNode("div",qt,[e.createVNode(f,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,opt:{isedit:1}},null,8,["ujt","asaidata"])]),e.createElementVNode("div",Kt,[e.createElementVNode("div",{class:"li cur",onClick:c[0]||(c[0]=p=>m.editContent())},e.toDisplayString(m.channelLang("ui.edit")||"Edit"),1)])])}}})},Symbol.toStringTag,{value:"Module"})),Yt={class:"as-channel-class-area"},Gt={class:"as-channel-bar"},Jt={class:"as-channel-class"},Qt={key:0,class:"as-channel-io-area"},Zt={class:"as-channel-bar"},vt={key:0,class:"as-channel-opta"},en=["id"],tn={class:"as-channel-list-area-main"},nn={key:0,class:"as-channel-page"},on={key:0,class:"as-channel-show-area"},an={class:"as-channel-bar"},ln={class:"as-channel-opt"},sn={class:"as-channel-bar"},rn={class:"as-channel-opt"},cn={class:"as-channel-bar"},dn={class:"as-channel-opt"},mn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelIndex",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l,$model:s}=n.ujt,{initChannel:r,channelLang:i}=o.useChannel(n);return r(),e.onUnmounted(()=>{!n.opt.nonull&&(l[n.opt.channel]=null)}),(m,d)=>{const c=e.resolveComponent("ChannelClass"),f=e.resolveComponent("ChannelUpDown"),p=e.resolveComponent("ChannelOptAdd"),u=e.resolveComponent("ChannelOpt"),h=e.resolveComponent("ChannelListSearch"),g=e.resolveComponent("ChannelList"),k=e.resolveComponent("ChannelListPage"),y=e.resolveComponent("ChannelEdit"),C=e.resolveComponent("ChannelShow"),b=e.resolveComponent("ChannelAdd");return e.unref(l)[n.opt.channel].stat?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.opt.tyindex==1?"as-channel-column":"as-channel-row")},[e.createElementVNode("div",Yt,[e.createElementVNode("div",Gt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.listclass)+" "+e.toDisplayString(e.unref(i)("ui.class")||"Class"),1)]),e.createElementVNode("div",Jt,[e.createVNode(c,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])]),e.unref(l)[n.opt.channel].cfg?.imex?.keys?.length===8?(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(f,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(`as-channel-list-area${n?.opt?.pop?" as-channel-pop":""}`)},[e.createElementVNode("div",Zt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.listcontent)+" "+e.toDisplayString(e.unref(i)("ui.list")||"List"),1),n?.opt?.pop?(e.openBlock(),e.createElementBlock("div",vt,[e.createVNode(p,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"]),e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)]),e.createVNode(h,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"]),e.createElementVNode("div",{class:"as-channel-list",id:"popconfirm"+n.opt.channel+"area"},[e.createElementVNode("div",tn,[e.createVNode(g,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])],8,en),e.unref(l)[n.opt.channel].cmPageList.length>1?(e.openBlock(),e.createElementBlock("div",nn,[e.createVNode(k,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)],2),n?.opt?.pop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",on,[e.unref(a).location.query?.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(a).location.query?.showty?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",an,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.contentedit)+" "+e.toDisplayString(e.unref(i)("ui.edit")||"Edit"),1),e.createElementVNode("div",ln,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode(y,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",sn,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.contentshow)+" "+e.toDisplayString(e.unref(i)("ui.show")||"Show"),1),e.createElementVNode("div",rn,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode(C,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",cn,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.new)+" "+e.toDisplayString(e.unref(i)("ui.add")||"Add"),1),e.createElementVNode("div",dn,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode(b,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64))]))],2)):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelList",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{delItem:s,editItem:r,readItem:i,setShow:m,fetchContent:d,popConfirm:c,getSnKey:f,getTitleKey:p,channelLang:u}=o.useChannel(n);e.onMounted(()=>{d(0),l.location.query?.show&&i(l.location.query?.show)}),a[n.opt.channel].cmPageSize=e.computed(()=>Number(l.location.query?.ps)||a[n.opt.channel].cfg.config?.ps||5);const{getPageList:h}=o.usePage(n);a[n.opt.channel].cmPageList=e.computed(()=>h(a[n.opt?.channel]?.cmPageSize));const g={setShow:m,delItem:s,editItem:r,popConfirm:c,getSnKey:f,getTitleKey:p,channelLang:u};return(k,y)=>{const C=e.resolveComponent("ChannelBtnsManage"),b=e.resolveComponent("ChannelListType");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a)[n.opt.channel].contentList,($,w)=>e.renderSlot(k.$slots,"default",{key:"list"+($?.[e.unref(f)()]||w),item:$,option:g},()=>[e.createVNode(b,{ujt:t.ujt,opt:t.opt,pm:t.pm,item:$,option:g},{btns:e.withCtx(()=>[n.opt?.btnsty?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:{rfdata:{data:$}},option:g},null,8,["ujt","opt","pm","item"]))]),_:2},1032,["ujt","opt","pm","item"])])),128)}}})},Symbol.toStringTag,{value:"Module"})),pn=["onClick"],un=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListPage",props:{ujt:{},opt:{}},setup(t){const n=t,{$db:o,$global:a}=n.ujt;return(l,s)=>e.unref(o)[n.opt.channel].cmPageList.length>1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(o)[n.opt.channel].cmPageList,r=>e.renderSlot(l.$slots,"default",{key:"listpage"+(r||""),item:r,option:{}},()=>[e.createElementVNode("div",{onClick:e.withModifiers(i=>e.unref(o)[n.opt.channel]?.setpage(r),["stop"]),class:e.normalizeClass(r==e.unref(a).location.query?.pg||r==1&&!e.unref(a).location.query?.pg?"as-channel-active":"")},e.toDisplayString(r),11,pn)])),128)):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),hn={key:0,class:"as-channel-search"},gn={class:"as-channel-search-opt"},yn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListSearch",props:{ujt:{},opt:{}},setup(t){const n=t,{$db:o,$global:a,$fn:l}=n.ujt,{searchSubmit:s,channelLang:r}=l.useChannel(n),i={searchSubmit:s,channelLang:r};return(m,d)=>{const c=e.resolveComponent("AsfInput"),f=e.resolveComponent("AsfSelect");return e.renderSlot(m.$slots,"default",{item:e.unref(a).location.query,option:i},()=>[n.opt?.channel&&e.unref(o)[n.opt.channel].cfg?.sxs?.length?(e.openBlock(),e.createElementBlock("div",hn,[e.createVNode(c,{ujt:t.ujt,opt:{placeholder:e.unref(l).lg("asai.searchtips")},modelValue:e.unref(a).location.query.ss,"onUpdate:modelValue":d[0]||(d[0]=p=>e.unref(a).location.query.ss=p)},null,8,["ujt","opt","modelValue"]),e.createElementVNode("div",gn,[e.createVNode(f,{ujt:t.ujt,modelValue:e.unref(a).location.query.ssty,"onUpdate:modelValue":d[1]||(d[1]=p=>e.unref(a).location.query.ssty=p),opt:{valuedefault:"asai",selectdata:e.unref(o)[n.opt.channel].cfg.sss.map(p=>[p,p==="asai"?i.channelLang("ui.sss")||"Table":e.unref(o)[n.opt.channel].rfdata?.lang?.[p]])}},null,8,["ujt","modelValue","opt"]),e.createVNode(f,{ujt:t.ujt,modelValue:e.unref(a).location.query.sx,"onUpdate:modelValue":d[2]||(d[2]=p=>e.unref(a).location.query.sx=p),opt:{valuedefault:"asai",selectdata:e.unref(o)[n.opt.channel].cfg.sxs.map(p=>[p,p==="asai"?i.channelLang("ui.sxs")||"Sort":e.unref(o)[n.opt.channel].rfdata?.lang?.[p]])}},null,8,["ujt","modelValue","opt"]),e.createVNode(f,{ujt:t.ujt,modelValue:e.unref(a).location.query.sxty,"onUpdate:modelValue":d[3]||(d[3]=p=>e.unref(a).location.query.sxty=p),opt:{valuedefault:0,selectdata:i.channelLang("ui.sxtys")||[]}},null,8,["ujt","modelValue","opt"])]),e.createElementVNode("button",{onClick:d[4]||(d[4]=p=>i.searchSubmit())},e.toDisplayString(e.unref(l).lg("asai.search")),1)])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),bn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListSelect",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.reactive({list:[]}),{channelSelect:s,setShow:r}=o.useChannel(n);s(n.pm).then(m=>{l.list=m.data});const i={setShow:r};return(m,d)=>{const c=e.resolveComponent("ChannelListType");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(f,p)=>e.renderSlot(m.$slots,"default",{key:"list"+(f?.[m.getSnKey()]||p),item:f,option:i},()=>[e.createVNode(c,{ujt:t.ujt,opt:t.opt,pm:t.pm,item:f,option:i},null,8,["ujt","opt","pm","item"])])),128)}}})},Symbol.toStringTag,{value:"Module"})),kn=["title"],_n={key:0,class:"img"},$n=["src","alt"],Cn={class:"main"},wn={class:"tit"},jn={class:"des"},Sn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"blog",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{getTitleKey:s,getSnKey:r,getImgKey:i,getContentKey:m}=a.useChannel(n);return(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`blog${t.item?.[e.unref(r)()]&&e.unref(o).location.query?.show===t.item?.[e.unref(r)()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(l)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[e.unref(s)()]||"",onPointerup:c[0]||(c[0]=e.withModifiers(f=>t.option?.setShow(t.item),["stop"]))},[t.item?.[e.unref(i)()]?(e.openBlock(),e.createElementBlock("div",_n,[e.createElementVNode("img",{src:t.item[e.unref(i)()],alt:t.item?.[e.unref(s)()]||""},null,8,$n)])):e.createCommentVNode("",!0),e.createElementVNode("div",Cn,[e.createElementVNode("div",wn,e.toDisplayString(t.item?.[e.unref(s)()]||""),1),e.createElementVNode("div",jn,e.toDisplayString(t.item?.[e.unref(m)()]||""),1)])],40,kn),e.renderSlot(d.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),En=["title"],Bn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"list",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$db:a}=n.ujt;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`list${t.item?.[t.option.getSnKey()]&&e.unref(o).location.query?.show===t.item?.[t.option.getSnKey()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(a)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[t.option.getTitleKey()]||"",onClick:s[0]||(s[0]=e.withModifiers(r=>t.option?.setShow(t.item),["stop"]))},e.toDisplayString(t.item?.[t.option.getTitleKey()]||""),9,En),e.renderSlot(l.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),Vn=["title"],xn={class:"img"},Nn=["src","alt"],An={key:1,class:"imgstr"},Dn={class:"main"},Pn={class:"tit"},zn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"pic",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{getTitleKey:s,getSnKey:r,getImgKey:i}=a.useChannel(n);return(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`pic${t.item?.[e.unref(r)()]&&e.unref(o).location.query?.show===t.item?.[e.unref(r)()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(l)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[e.unref(s)()]||"",onPointerup:d[0]||(d[0]=e.withModifiers(c=>t.option?.setShow(t.item),["stop"]))},[e.createElementVNode("div",xn,[t.item?.[e.unref(i)()]?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.item[e.unref(i)()],alt:t.item?.[e.unref(s)()]||""},null,8,Nn)):(e.openBlock(),e.createElementBlock("div",An,e.toDisplayString(t.item?.[e.unref(s)()]||""),1))]),e.createElementVNode("div",Dn,[e.createElementVNode("div",Pn,e.toDisplayString(t.item?.[e.unref(s)()]||""),1)])],40,Vn),e.renderSlot(m.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),Mn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListType",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$db:o}=n.ujt,a=Object.assign({"./_comps/list/blog.vue":Sn,"./_comps/list/list.vue":Bn,"./_comps/list/pic.vue":zn});function l(r){const i=r.match(/([^\\/]+)(?=\.vue$)/);return i?i[1]:null}for(let r in a)a[l(r)||r]=a[r],delete a[r];function s(r){return a[r]?.default?a[r].default:null}return(r,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(n.opt?.lity?.ty||e.unref(o)[n.opt.channel]?.cfg?.lity?.ty||"list")),{ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},{btns:e.withCtx(()=>[e.renderSlot(r.$slots,"btns")]),_:3},8,["ujt","opt","pm","item","option"]))}})},Symbol.toStringTag,{value:"Module"})),On=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelOpt",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o}=n.ujt,{channelLang:a}=o.useChannel(n);function l(r){document.querySelectorAll(r).forEach(i=>{i.classList.contains("as-channel-nohidden")?i.classList.remove("as-channel-nohidden"):i.classList.add("as-channel-nohidden"),console.log(i.classList)})}const s={toggleShow:l,channelLang:a};return(r,i)=>e.renderSlot(r.$slots,"default",{item:{},option:s},()=>[e.createElementVNode("div",{class:"as-channel-opt-class",onClick:i[0]||(i[0]=m=>s.toggleShow(".as-channel-class-area"))}," ☰ "+e.toDisplayString(s.channelLang("ui.class")||"Class"),1),e.createElementVNode("div",{class:"as-channel-opt-list",onClick:i[1]||(i[1]=m=>s.toggleShow(".as-channel-list-area"))}," ☰ "+e.toDisplayString(s.channelLang("ui.list")||"List"),1)])}})},Symbol.toStringTag,{value:"Module"})),Tn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelOptAdd",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o}=n.ujt,{addItem:a,channelLang:l}=o.useChannel(n),s={addItem:a,channelLang:l};return(r,i)=>e.renderSlot(r.$slots,"default",{item:{},option:s},()=>[e.createElementVNode("div",{class:"as-channel-opta",onClick:i[0]||(i[0]=m=>s.addItem())}," ☰ "+e.toDisplayString(s.channelLang("ui.add")||"Add"),1)])}})},Symbol.toStringTag,{value:"Module"})),Ln={class:"as-channel-pop-area"},Un={class:"as-channel-pop-area"},In={class:"as-channel-pop-area"},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelPop",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("PopBoxConfirm"),r=e.resolveComponent("ChannelShow"),i=e.resolveComponent("PopBox"),m=e.resolveComponent("ChannelEdit"),d=e.resolveComponent("ChannelAdd");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(s,{ujt:t.ujt,id:"popconfirm"+n.opt.channel},null,8,["ujt","id"]),t.opt.pop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{ujt:t.ujt,id:"popshow"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",Ln,[e.unref(o).location.query?.show&&!e.unref(o).location.query?.showty?(e.openBlock(),e.createBlock(r,{key:0,ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])):e.createCommentVNode("",!0)])]),_:1},8,["ujt","id"]),e.createVNode(i,{ujt:t.ujt,id:"popedit"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",Un,[e.unref(o).location.query?.show&&e.unref(o).location.query?.showty?(e.openBlock(),e.createBlock(m,{key:0,ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])):e.createCommentVNode("",!0)])]),_:1},8,["ujt","id"]),e.createVNode(i,{ujt:t.ujt,id:"popadd"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",In,[e.createVNode(d,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),_:1},8,["ujt","id"])],64)):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),Rn={class:"as-channel-pos-area"},Wn=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChannelPos",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{setChannelHash:s,channelLang:r,addItem:i}=a.useChannel(n),m={setChannelHash:s,channelLang:r,addItem:i};return(d,c)=>e.renderSlot(d.$slots,"default",{item:e.unref(o).location.query,option:m},()=>[e.createElementVNode("div",Rn,[e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[0]||(c[0]=e.withModifiers(f=>m.setChannelHash("class"),["stop"]))},e.toDisplayString(m.channelLang("ui.class")||"Class"),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[1]||(c[1]=e.withModifiers(f=>m.setChannelHash("list"),["stop"]))},e.toDisplayString(m.channelLang("ui.list")||"List"),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[2]||(c[2]=e.withModifiers(f=>m.addItem(),["stop"]))},e.toDisplayString(m.channelLang("ui.add")||"Add"),33),e.unref(l)[n.opt.channel]?.cfg?.url?.reg?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[3]||(c[3]=e.withModifiers(f=>m.setChannelHash("reg"),["stop"]))},e.toDisplayString(m.channelLang("ui.reg")),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[4]||(c[4]=e.withModifiers(f=>m.setChannelHash("login"),["stop"]))},e.toDisplayString(m.channelLang("ui.login")),33),e.unref(o).user?.info?.us?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-channel-pos",onPointerup:c[5]||(c[5]=e.withModifiers(f=>m.setChannelHash("editmy"),["stop"]))},e.toDisplayString(m.channelLang("ui.editmy")),33)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:c[6]||(c[6]=e.withModifiers(f=>m.setChannelHash("exit"),["stop"]))},e.toDisplayString(m.channelLang("ui.exit")),33)],64)):e.createCommentVNode("",!0)])],!0)}}),[["__scopeId","data-v-768d4f66"]])},Symbol.toStringTag,{value:"Module"})),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShow",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{delItem:s,editItem:r,readItem:i,setShow:m,popConfirm:d,getSnKey:c,getTitleKey:f,getContentKey:p,getCommentsKey:u,channelLang:h,getBarData:g,channelBarShow:k,channelQkSave:y}=o.useChannel(n),{initChannelComments:C,saveChannelComments:b,resetChannelComments:$,commentsAction:w,commentsQKSave:_}=o.useChannelComments(n);!a[n.opt.channel]?.rfdata?.data&&l?.location?.query?.show&&i(l.location.query.show);const j={delItem:s,editItem:r,readItem:i,setShow:m,popConfirm:d,getSnKey:c,getTitleKey:f,getContentKey:p,getCommentsKey:u,channelLang:h,getBarData:g,channelBarShow:k,initChannelComments:C,saveChannelComments:b,resetChannelComments:$,channelQkSave:y,commentsAction:w,commentsQKSave:_};return(B,S)=>{const E=e.resolveComponent("ChannelShowType");return e.renderSlot(B.$slots,"default",{item:e.unref(a)[n.opt.channel],option:j},()=>[e.unref(a)[n.opt.channel]?.rfdata?.data?(e.openBlock(),e.createBlock(E,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:e.unref(a)[n.opt.channel],option:j},null,8,["ujt","opt","pm","item"])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),qn={key:0,class:"as-channel-show-comments"},Kn={class:"tit"},Xn={class:"form"},Yn={class:"as-btn-area"},Gn={key:0,class:"list"},Jn={class:"li"},Qn={class:"co"},Zn={class:"opt as-lr-area"},vn={class:"as-left"},eo={class:"as-right"},to=["onClick"],no=["onClick"],oo=["onClick"],ao={key:1,class:"as-nodata"},lo=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChannelShowComments",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.reactive({comments:null,data:"",newcomments:{us:o.user.info.us,co:"",tm:"",xi:0,yi:0}}),s=e.watch(()=>n.item.rfdata.data[n.option.getSnKey()],()=>{"hi"in n.item.rfdata.data&&n.option.channelQkSave({hi:["+",1]},{nomsg:1}),n.option.initChannelComments(l,n.item.rfdata.data)},{immediate:!0});function r(i,m){a.popConfirm({full:2,con:n.option.channelLang("ui.commentsconfirm"+m),fn:()=>{n.option.commentsAction(i,m,1),n.option.commentsQKSave(l,n.item.rfdata)}})}return e.onBeforeUnmount(()=>{s&&s.stop()}),(i,m)=>{const d=e.resolveComponent("AsfTextarea");return t.option.getCommentsKey()in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",qn,[e.createElementVNode("div",Kn,e.toDisplayString(t.option.channelLang("ui.commentstit")),1),e.createElementVNode("div",Xn,[e.createVNode(d,{opt:{style:{height:"100px"}},modelValue:l.newcomments.co,"onUpdate:modelValue":m[0]||(m[0]=c=>l.newcomments.co=c)},null,8,["modelValue"])]),e.createElementVNode("div",Yn,[e.createElementVNode("div",{class:"as-btn-cur",onClick:m[1]||(m[1]=c=>t.option.saveChannelComments(l,t.item.rfdata))},e.toDisplayString(t.option.channelLang("ui.commentssubmit")),1),e.createElementVNode("div",{class:"as-btn",onClick:m[2]||(m[2]=c=>t.option.resetChannelComments(l))},e.toDisplayString(e.unref(o).lang.asai.reset),1)]),l?.comments?.length?(e.openBlock(),e.createElementBlock("div",Gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.comments,(c,f)=>(e.openBlock(),e.createElementBlock("div",Jn,[e.createElementVNode("div",Qn,e.toDisplayString(c?.co),1),e.createElementVNode("div",Zn,[e.createElementVNode("div",vn,[e.createElementVNode("div",null,e.toDisplayString(c?.us),1),e.createElementVNode("div",null,e.toDisplayString(c?.tm),1)]),e.createElementVNode("div",eo,[e.createElementVNode("div",{onClick:p=>r(c,"xi")}," 👍"+e.toDisplayString(c?.xi),9,to),e.createElementVNode("div",{onClick:p=>r(c,"yi")}," 👎"+e.toDisplayString(c?.yi),9,no),e.unref(o).user?.info?.lv>8||c?.yi>1e3?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:p=>{e.unref(a).popConfirm({full:2,con:e.unref(o).lang.asai.delconfirm,fn:()=>{t.option.commentsAction(l.comments,"del",f),t.option.commentsQKSave(l,t.item.rfdata)}})}},e.toDisplayString(e.unref(o).lang.asai.del),9,oo)):e.createCommentVNode("",!0)])])]))),256))])):(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(t.option.channelLang("ui.commentsnone")),1))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-823a6715"]])},Symbol.toStringTag,{value:"Module"})),so={class:"as-channel-show-hci"},io=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShowHci",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",so,["xi"in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",{key:0,class:"xi",onClick:o[0]||(o[0]=a=>t.option.channelQkSave({xi:["+",1]},{nomsg:1}))},e.toDisplayString(t.item.rfdata.lang.xi)+":"+e.toDisplayString(t.item.rfdata.data.xi),1)):e.createCommentVNode("",!0),"yi"in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",{key:1,class:"yi",onClick:o[1]||(o[1]=a=>t.option.channelQkSave({yi:["+",1]},{nomsg:1}))},e.toDisplayString(t.item.rfdata.lang.yi)+":"+e.toDisplayString(t.item.rfdata.data.yi),1)):e.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),ro={class:"as-channel-show"},co={class:"tit"},mo={class:"bar"},fo={class:"con"},po=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"article",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ro,[e.createElementVNode("div",co,e.toDisplayString(t.item.rfdata.data[t.option.getTitleKey()]),1),e.createElementVNode("div",mo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.option.getBarData(t.item.rfdata.data),a=>(e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("b",null,e.toDisplayString(t.item.rfdata.lang[a[0]]),1),e.createElementVNode("i",null,e.toDisplayString(t.option.channelBarShow(a)),1)]))),256))]),e.createElementVNode("div",fo,e.toDisplayString(t.item.rfdata.data[t.option.getContentKey()]),1),e.renderSlot(n.$slots,"hci",{},void 0,!0),e.renderSlot(n.$slots,"comments",{},void 0,!0),e.renderSlot(n.$slots,"btns",{},void 0,!0)]))}}),[["__scopeId","data-v-dca02702"]])},Symbol.toStringTag,{value:"Module"})),uo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShowType",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,o=Object.assign({"./_comps/show/article.vue":po});function a(s){const r=s.match(/([^\\/]+)(?=\.vue$)/);return r?r[1]:null}for(let s in o)o[a(s)||s]=o[s],delete o[s];function l(s){return o[s]?.default?o[s].default:null}return(s,r)=>{const i=e.resolveComponent("ChannelBtnsManage"),m=e.resolveComponent("ChannelShowHci"),d=e.resolveComponent("ChannelShowComments");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(n.opt?.vity?.ty||"article")),{ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},{btns:e.withCtx(()=>[n.opt?.btnsty?(e.openBlock(),e.createBlock(i,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),hci:e.withCtx(()=>["xi"in t.item.rfdata.data||"yi"in t.item.rfdata.data?(e.openBlock(),e.createBlock(m,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),comments:e.withCtx(()=>[t.option.getCommentsKey()in t.item.rfdata.data?(e.openBlock(),e.createBlock(d,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),_:1},8,["ujt","opt","pm","item","option"])}}})},Symbol.toStringTag,{value:"Module"})),ho={class:"as-channel-io"},go=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUpDown",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{channelBookUpload:l,channelBookDownload:s}=o.useChannel(n);function r(m){l(m)}const i={onUpload:r,channelBookUpload:l,channelBookDownload:s};return(m,d)=>{const c=e.resolveComponent("AsUploadTxt");return e.renderSlot(m.$slots,"default",{item:{},option:i},()=>[e.createElementVNode("button",ho,[e.createVNode(c,{ujt:t.ujt,opt:{accept:".txt"},onOnUpload:i.onUpload},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lang.asai.upload),1)]),_:1},8,["ujt","onOnUpload"])]),e.createElementVNode("button",{class:"as-channel-io",onClick:d[0]||(d[0]=f=>i.channelBookDownload())},e.toDisplayString(e.unref(a).lang.asai.download),1)])}}})},Symbol.toStringTag,{value:"Module"})),yo={key:0,class:"as-usercard"},bo=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChannelUserCard",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l={};return(s,r)=>{const i=e.resolveComponent("AsSvg");return e.renderSlot(s.$slots,"default",{item:{},option:l},()=>[e.unref(a).lang?.asai?.usercard?(e.openBlock(),e.createElementBlock("div",yo,[e.createElementVNode("div",{onPointerdown:r[0]||(r[0]=m=>e.unref(o).sethash(e.unref(a).sys?.router?.config?.login||"user/login"))},[e.createVNode(i,{color:"var(--ch6)",height:"26px",src:"asai/login"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).lang.asai.usercard?.login),1)],32),e.createElementVNode("div",{onPointerdown:r[1]||(r[1]=m=>e.unref(o).As.localInit()),title:"ctrl+shift+r"},[e.createVNode(i,{color:"var(--ch6)",height:"26px",src:"asai/reset"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).lang.asai.usercard?.reset),1)],32)])):e.createCommentVNode("",!0)],!0)}}}),[["__scopeId","data-v-a425b87a"]])},Symbol.toStringTag,{value:"Module"})),ko={class:"as-userdrop-pop"},_o=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChannelUserDrop",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{initChannel:s,channelLang:r}=o.useChannel({ujt:n.ujt,opt:n.opt});s();function i(m=0){a.pop.popuserdrop.popstyle={width:"auto",height:"auto",top:"20px",right:"-20px"},a.pop.popuserdrop.zindex=101,a.pop.popuserdrop.stat=a.pop.popuserdrop.stat?0:1}return(m,d)=>{const c=e.resolveComponent("AsSvg"),f=e.resolveComponent("ChannelUserMain"),p=e.resolveComponent("PopDrop");return e.unref(l)[n.opt.channel]?.stat?(e.openBlock(),e.createBlock(p,{key:0,ujt:t.ujt,id:"popuserdrop"},{des:e.withCtx(()=>[e.unref(a).user.info?.us?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-userdrop-btn",onPointerdown:d[0]||(d[0]=e.withModifiers(u=>i(1),["stop"]))},[e.createVNode(c,{color:"var(--ch8)",height:"20px",src:"asai/user"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).user.info.us),1)],32)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-userdrop-btn",onPointerdown:d[1]||(d[1]=e.withModifiers(u=>i(0),["stop"]))},[e.createVNode(c,{color:"var(--ch8)",height:"20px",src:"asai/user"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("ui.droptit")),1)],32))]),pop:e.withCtx(()=>[e.createElementVNode("div",ko,[e.createVNode(f,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),_:1},8,["ujt"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-44fd6403"]])},Symbol.toStringTag,{value:"Module"})),$o={key:0,class:"as-channel-user as-form-area"},Co={class:"as-channel-btns"},wo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserEdit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{getSnKey:s,channelLang:r,setChannelHash:i}=o.useChannel(n),{editChannelUserContent:m,initChannelUserEdit:d}=o.useChannelUser(n);d({pw:{pw:"",pwn:"",pwnn:""}});function c(p=0){!p||a[n.opt.channel].rfdata.pw.pwn?m({nomsg:1}).then(()=>{o.popConfirm({con:o.lg("asai.successedit"),fn:()=>{o.AsRouter.setHref(a[n.opt.channel].cfg?.url?.login)}})}).catch(u=>{l.msg.fn({type:"err",con:u})}):l.msg.fn({type:"err",con:o.lg("asai.failedit")})}const f={getSnKey:s,editUser:c,editChannelUserContent:m,channelLang:r,setChannelHash:i};return(p,u)=>{const h=e.resolveComponent("AsfInput"),g=e.resolveComponent("AsaiSelect");return e.renderSlot(p.$slots,"default",{item:e.unref(a)[n.opt.channel],option:f},()=>[e.unref(a)[n.opt.channel]?.rfdata?.data?.[e.unref(s)()]&&e.unref(a)[n.opt.channel].rfdata?.pw?(e.openBlock(),e.createElementBlock("div",$o,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(f.channelLang("form.nm")),1),e.createVNode(h,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.nm,"onUpdate:modelValue":u[0]||(u[0]=k=>e.unref(a)[n.opt.channel].rfdata.data.nm=k)},null,8,["ujt","modelValue"])]),e.createVNode(g,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,formdata:e.unref(a)[n.opt.channel].rfdata.data,formkey:"cl"},null,8,["ujt","asaidata","formdata"]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(f.channelLang("ui.pw")),1),e.createVNode(h,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pw,"onUpdate:modelValue":u[1]||(u[1]=k=>e.unref(a)[n.opt.channel].rfdata.pw.pw=k)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(f.channelLang("ui.pwn")),1),e.createVNode(h,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pwn,"onUpdate:modelValue":u[2]||(u[2]=k=>e.unref(a)[n.opt.channel].rfdata.pw.pwn=k)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(f.channelLang("ui.pwnn")),1),e.createVNode(h,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pwnn,"onUpdate:modelValue":u[3]||(u[3]=k=>e.unref(a)[n.opt.channel].rfdata.pw.pwnn=k)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",Co,[e.createElementVNode("div",{class:"cur",onPointerdown:u[4]||(u[4]=k=>f.editUser())},e.toDisplayString(f.channelLang("ui.editmysubmit")),33),e.renderSlot(p.$slots,"btn")])])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),jo={class:"as-channel-btns"},So=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserExit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{channelLang:l,setChannelHash:s}=o.useChannel(n),{channelUserExit:r}=o.useChannelUser(n);r();const i={channelUserExit:r,channelLang:l,setChannelHash:s};return(m,d)=>e.renderSlot(m.$slots,"default",{item:e.unref(a)[n.opt.channel],option:i},()=>[e.renderSlot(m.$slots,"tit",{},()=>[e.createElementVNode("h1",null,e.toDisplayString(i.channelLang("ui.exittit")),1)]),e.createElementVNode("div",jo,[e.createElementVNode("div",{class:"li",onClick:d[0]||(d[0]=c=>i.setChannelHash("login"))},e.toDisplayString(i.channelLang("ui.login")),1),e.renderSlot(m.$slots,"btn")])])}})},Symbol.toStringTag,{value:"Module"})),Eo={class:"as-channel-user as-form-area"},Bo={class:"as-channel-btns"},Vo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserLogin",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{initAddChannel:l,channelLang:s,setChannelHash:r}=o.useChannel(n),{channelUserLogin:i,initChannelUserOnline:m}=o.useChannelUser(n);l();function d(f=null,p=null){i(f,p).then(u=>{m().then(h=>{a[n.opt.channel].cfg?.url?.login&&o.AsRouter.setHref(a[n.opt.channel].cfg?.url?.login)})}).catch(u=>{})}const c={channelUserLogin:i,channelLang:s,setChannelHash:r,userLogin:d,initChannelUserOnline:m};return(f,p)=>{const u=e.resolveComponent("AsfInput");return e.renderSlot(f.$slots,"default",{item:e.unref(a)[n.opt.channel],option:c},()=>[e.createElementVNode("div",Eo,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(c.channelLang("form.us")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.us,"onUpdate:modelValue":p[0]||(p[0]=h=>e.unref(a)[n.opt.channel].rfdata.data.us=h)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(c.channelLang("form.pw")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.pw,"onUpdate:modelValue":p[1]||(p[1]=h=>e.unref(a)[n.opt.channel].rfdata.data.pw=h)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",Bo,[e.createElementVNode("div",{class:"cur",onClick:p[2]||(p[2]=h=>c.userLogin(e.unref(a)[n.opt.channel].rfdata.data,{go:1}))},e.toDisplayString(c.channelLang("ui.login")),1),e.renderSlot(f.$slots,"btn")])])])}}})},Symbol.toStringTag,{value:"Module"})),xo={key:0,class:"as-usermain-area"},No={class:"as-usermain-top"},Ao={class:"as-usermain-page"},Do={class:"as-channel-column-area"},Po=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChannelUserMain",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{initChannel:s,channelLang:r}=o.useChannel({ujt:n.ujt,opt:n.opt});s();const{channelUserExit:i}=o.useChannelUser(n);function m(d){l[n.opt.channel].rfdata.dropty=d}return(d,c)=>{const f=e.resolveComponent("ChannelUserEdit"),p=e.resolveComponent("ChannelUserReg"),u=e.resolveComponent("ChannelUserLogin");return e.unref(l)[n.opt.channel]?.stat?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",No,e.toDisplayString(e.unref(a).user.info?.us?e.unref(r)("ui.editmy"):e.unref(l)[n.opt.channel].rfdata.dropty===0?e.unref(r)("ui.reg"):e.unref(r)("ui.login")),1),e.createElementVNode("div",Ao,[e.createElementVNode("div",Do,[e.unref(a).user.info?.us?(e.openBlock(),e.createBlock(f,{key:0,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:c[0]||(c[0]=h=>e.unref(i)())},e.toDisplayString(e.unref(r)("ui.exit")),1)]),_:1},8,["ujt","opt"])):e.unref(l)[n.opt.channel].rfdata.dropty===0?(e.openBlock(),e.createBlock(p,{key:1,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:c[1]||(c[1]=h=>m(1))},e.toDisplayString(e.unref(r)("ui.login")),1)]),_:1},8,["ujt","opt"])):(e.openBlock(),e.createBlock(u,{key:2,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:c[2]||(c[2]=h=>m(0))},e.toDisplayString(e.unref(r)("ui.login")),1)]),_:1},8,["ujt","opt"]))])])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-069c5688"]])},Symbol.toStringTag,{value:"Module"})),zo={class:"as-channel-user as-form-area"},Mo={class:"as-channel-btns"},Oo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserReg",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{initAddChannel:l,channelLang:s,setChannelHash:r}=o.useChannel(n),{channelUserReg:i}=o.useChannelUser(n);l();function m(c=null,f=null){i(c,f)}const d={channelUserReg:i,userReg:m,channelLang:s,setChannelHash:r};return(c,f)=>{const p=e.resolveComponent("AsfSelect"),u=e.resolveComponent("AsfInput");return e.renderSlot(c.$slots,"default",{item:e.unref(a)[n.opt.channel],option:d},()=>[e.createElementVNode("div",zo,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(d.channelLang("form.cl")),1),e.createVNode(p,{ujt:t.ujt,opt:{...e.unref(a)[n.opt.channel].rfdata?.rule?.cl?.opt||{},selectdata:e.unref(o).As.toArr(e.unref(a)[n.opt.channel].rfdata?.rule?.cl?.cldata)},modelValue:e.unref(a)[n.opt.channel].rfdata.data.cl,"onUpdate:modelValue":f[0]||(f[0]=h=>e.unref(a)[n.opt.channel].rfdata.data.cl=h)},null,8,["ujt","opt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(d.channelLang("form.nm")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.nm,"onUpdate:modelValue":f[1]||(f[1]=h=>e.unref(a)[n.opt.channel].rfdata.data.nm=h)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(d.channelLang("form.us")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.us,"onUpdate:modelValue":f[2]||(f[2]=h=>e.unref(a)[n.opt.channel].rfdata.data.us=h)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(d.channelLang("form.pw")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.pw,"onUpdate:modelValue":f[3]||(f[3]=h=>e.unref(a)[n.opt.channel].rfdata.data.pw=h)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",Mo,[e.createElementVNode("div",{class:"cur",onClick:f[4]||(f[4]=h=>d.userReg(e.unref(a)[n.opt.channel].rfdata.data,{go:1}))},e.toDisplayString(d.channelLang("ui.reg")),1),e.renderSlot(c.$slots,"btn")])])])}}})},Symbol.toStringTag,{value:"Module"})),To={class:"as-chat-room"},Lo={class:"as-chat-header"},Uo={class:"as-chat-tit"},Io={class:"as-chat-con"},Fo={class:"chat-message-content"},Ro={class:"chat-message-us"},Wo={class:"chat-message-bubble"},Ho=["src"],qo=["src"],Ko={class:"as-chat-footer"},Xo={class:"as-chat-pop-area"},Yo={key:0,class:"as-chat-pop"},Go={class:"as-chat-footer-main"},Jo={class:"as-chat-opt"},Qo={class:"as-chat-input"},Zo=["placeholder"],vo={key:1,class:"as-chat-stat"},ea={class:"as-chat-btn"},ta=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChatRoom",props:{ujt:{},room:{}},setup(t){const n=t,{$fn:o,$ws:a,$global:l}=n.ujt,{sendChatRoom:s}=o.useChatRoom(n),r=n?.room?.wsname||"web",i=n?.room?.roomname||"asai",m=e.ref(null),d=e.ref(null),c=e.reactive({mediaPress:null,mediaNew:null,mediaChunks:[],mediaWorking:!1,mediaBase64:null,optty:0,Inclusion:280,chatDomHeight:0,send:{us:n?.room?.us||l.user.info.us||"",ty:0,msg:""}});c.mediaFn=h=>{c.send.ty=c.optty,c.send.msg=h},c.optFn=()=>{c.optty=c.optty>0?0:1,c.send.ty=c.optty?c.optty:0,c.send.ty||(c.send.msg="")},c.insertFn=h=>{d.value&&(d.value.focus(),e.nextTick(()=>{try{const g=d.value;if(!g)return;const k=g.selectionStart!==null?g.selectionStart:g.value.length,y=g.selectionEnd!==null?g.selectionEnd:g.value.length,C=g.value,b=C.substring(0,k)+h+C.substring(y);g.value=b;const $=k+h.length;g.setSelectionRange($,$),g.dispatchEvent(new Event("input",{bubbles:!0})),c.send.msg=b}catch{const y=d.value.value+h;d.value.value=y,d.value.dispatchEvent(new Event("input",{bubbles:!0})),c.send.msg=y,setTimeout(()=>{d.value&&d.value.setSelectionRange(y.length,y.length)},0)}}))};function f(){s(i,r,c.send,"")}const p=e.watch(()=>a.rooms?.[i]?.length,(h,g)=>{h!=g&&u()});function u(){m.value&&m.value.scrollTop>c.chatDomHeight-c.Inclusion&&e.nextTick(()=>{m.value&&(c.chatDomHeight=m.value.scrollHeight,m.value.scrollTop=c.chatDomHeight)})}return e.onBeforeUnmount(()=>{p&&p.stop()}),(h,g)=>{const k=e.resolveComponent("ChatRoomOpt");return e.openBlock(),e.createElementBlock("div",To,[e.createElementVNode("div",Lo,[e.renderSlot(h.$slots,"chatheader",{opt:{chatlist:e.unref(a).rooms[e.unref(i)],chatdata:c,room:t.room}},()=>[e.createElementVNode("div",Uo,e.toDisplayString(t.room?.lang?.chat||e.unref(l).lang.asaichat.chat),1)],!0)]),e.createElementVNode("div",{class:"as-chat-body",ref_key:"chatContainer",ref:m},[e.renderSlot(h.$slots,"chatbody",{opt:{chatlist:e.unref(a).rooms[e.unref(i)],chatdata:c,room:t.room}},()=>[e.createElementVNode("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).rooms[e.unref(i)],(y,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:e.normalizeClass(["chat-message",{self:c.send.us===y.us}])},[e.createElementVNode("div",Fo,[e.createElementVNode("div",Ro,e.toDisplayString(y.us),1),e.createElementVNode("div",Wo,[y.ty==4?(e.openBlock(),e.createElementBlock("video",{key:0,style:{"max-width":"100%"},src:y.msg,controls:""},null,8,Ho)):y.ty==3?(e.openBlock(),e.createElementBlock("audio",{key:1,style:{"max-width":"100%"},src:y.msg,controls:""},null,8,qo)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(y.msg),1)],64))])])],2))),128))])],!0)],512),e.createElementVNode("div",Ko,[e.createElementVNode("div",Xo,[c.optty?(e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(k,{ujt:t.ujt,room:t.room,chatdata:c},null,8,["ujt","room","chatdata"])])):e.createCommentVNode("",!0)]),e.renderSlot(h.$slots,"chatfooter",{opt:{chatlist:e.unref(a).rooms[e.unref(i)],chatdata:c,room:t.room}},()=>[e.createElementVNode("div",Go,[e.createElementVNode("div",Jo,[e.createElementVNode("div",{class:"button",onClick:g[0]||(g[0]=(...y)=>c.optFn&&c.optFn(...y))},e.toDisplayString(t.room?.lang?.opt||e.unref(l).lang.asaichat.opt),1)]),e.createElementVNode("div",Qo,[c.send.ty<3?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputDom",ref:d,type:"text","onUpdate:modelValue":g[1]||(g[1]=y=>c.send.msg=y),placeholder:t.room?.lang?.placeholder||e.unref(l).lang.asaichat.placeholder,onKeyup:e.withKeys(f,["enter"])},null,40,Zo)),[[e.vModelText,c.send.msg]]):(e.openBlock(),e.createElementBlock("div",vo,e.toDisplayString(c.mediaWorking?c.send.ty==4?"正在录像...":"正在录音...":"等待操作..."),1))]),e.createElementVNode("div",ea,[e.createElementVNode("button",{onClick:f},e.toDisplayString(t.room?.lang?.send||e.unref(l).lang.asaichat.send),1)])])],!0)])])}}}),[["__scopeId","data-v-fb092ce6"]])},Symbol.toStringTag,{value:"Module"})),na={class:"as-audio-area"},oa={class:"as-media-view"},aa=["src"],la={class:"button-text"},sa={key:0,class:"recording-effects"},ia=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AudioRecorder",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{mediaOnPress:l,mediaOnHold:s,mediaOnRelease:r}=o.useMediaWork(n.ujt,n.mediadata),i=e.ref(null);return n.mediadata.mediaView=i,(m,d)=>{const c=e.resolveDirective("longpress");return e.openBlock(),e.createElementBlock("div",na,[e.createElementVNode("div",oa,[t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"as-media-working",ref_key:"mediaView",ref:i,autoplay:"",playsinline:"",muted:"",controls:""},null,512)):(e.openBlock(),e.createElementBlock("audio",{key:1,class:"as-media-show",src:t.mediadata.mediaBase64,autoplay:"",loop:"",controls:""},null,8,aa))]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["record-button",{recording:t.mediadata.mediaWorking}])},[e.createElementVNode("span",la,e.toDisplayString(t.mediadata.mediaWorking?e.unref(a).lang.asaichat.AudioRecorderEnd:e.unref(a).lang.asaichat.AudioRecorderStart),1),t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("div",sa,[...d[0]||(d[0]=[e.createStaticVNode('<div class="recording-indicator" data-v-f997cb37><div class="pulse" data-v-f997cb37></div><div class="pulse pulse-2" data-v-f997cb37></div><div class="pulse pulse-3" data-v-f997cb37></div></div><div class="audio-bars" data-v-f997cb37><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div></div>',2)])])):e.createCommentVNode("",!0)],2)),[[c,{press:e.unref(l),hold:e.unref(s),release:e.unref(r)}]])])}}}),[["__scopeId","data-v-f997cb37"]])},Symbol.toStringTag,{value:"Module"})),ra=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"EmojiList",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,o=e.computed(()=>Array.from("😀😃😄😁😆😅🤣😂🙂🙃😉😊😇🥰😍🤩😘😗😚😙🥲😋😛😜🤪😝🤑🤗🤭🤫🤔🤐🤨😐😑😶😏😒🙄😬🤥😌😔😪🤤😴😷🤒🤕🤢🤮🤧🥵🥶🥴😵🤯🤠🥳🥸😎🤓🧐😕😟🙁😮😯😲😳🥺😦😧😨😰😥😢😭😱😖😣😞😓😩😫🥱😤😡😠🤬👋🤚✋🖖👌🤌🤏🤞🤟🤘🤙👈👉👆🖕👇👍👎✊👊🤛🤜👏🙌👐🤲🤝🙏👦👧👨👩👴👵👶👱👮👲👳👷👸💂🎅👰👼💆💇🙍🙎🙅🙆💩🤡👹👺😈👿😺😸😹😻😼😽🙀😿😾🙈🙉🙊🐵🐒🐶🐕🐩🐺🐱🐈🐯🐅🐆🐴🐎🐮🐂🐃🐄🐷🐖🐗🐽🐏🐑🐐🐪🐫🐘🐭🐁🐀🐹🐰🐇🐻🐨🐼🐾🐔🐓🐣🐤🐥🐦🐧🐸🐊🐢🐍🐲🐉🐳🐋🐬🐟🐠🐡🐙🐚🐌🐛🐜🐝🐞🦋💐🌸💮🌹🌺🌻🌼🌷🌱🌲🌳🌴🌵🌾🌿🍀🍁🍂🍃🍇🍈🍉🍊🍋🍌🍍🍎🍏🍐🍑🍒🍓🍅🍆🌽🍄🌰🍞🍖🍗🍔🍟🍕🍳🍲🍱🍘🍙🍚🍛🍜🍝🍠🍢🍣🍤🍥🍡🍦🍧🍨🍩🍪🎂🍰🍫🍬🍭🍮🍯🍼🍵🍶🍷🍸🍹🍺🍻🍴🌍🌎🌏🌐🌋🗻🏠🏡🏢🏣🏤🏥🏦🏨🏩🏪🏫🏬🏭🏯🏰💒🗼🗽⛪⛲🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜🌝🌞⭐🌟🌠⛅🔥💧🌊💁🙋🙇👣👀👂👃👅👄💋🚶🏃👯💃👫👬👭💏💑👓👔👕👖👗👘👙👚👛👜👝🎒💼👞👟👠👡👢👑👒🎩🎓💄💅💍🌂💌💎🔪💈🚪🚽🚿🛁⌛⏳⌚⏰🎈🎉🎊🎎🎏🎐🎀🎁📯📻📱📲☎📞📟📠🔋🔌💻💽💾💿📀🎥📺📷📹📼🔍🔎🔬🔭📡💡🔦🏮📔📕📖📗📘📙📚📓📃📜📄📰📑🔖💰💴💵💶💷💸💳📧📨📩📤📥📦📫📪📬📭📮📝📁📂📅📆📇📈📉📊📋📌📍📎📏📐✂🔒🔓🔏🔐🔑🔨🔫🔧🔩🔗💉💊🚬🔮🚩🎌💦💨💣🚂🚃🚄🚅🚆🚇🚈🚉🚊🚝🚞🚋🚌🚍🚎🚏🚐🚑🚒🚓🚔🚕🚖🚗🚘🚚🚛🚜🚲⛽🚨🚥🚦🚧⚓⛵🚤🚢💺🚁🚟🚠🚡🚀🎪🎠🎡🎢🚣🛀🎫🏆⚽⚾🏀🏈🏉🎾🎱🎳⛳🎣🎽🎿🏂🏄🏇🏊🚴🚵🎯🎮🎲🎷🎸🎺🎻🎬🎭🎨🎰🀄🎴🔇🔈🔉🔊📢📣💤💢💬💭♨🌀🔔🔕💛💚💙💜🖤🤍🤎💘💝💖💗💓💞💕💌💯"));function a(l){const s=l.target.textContent;s?.length<10&&n.mediadata?.insertFn?.(s)}return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"as-emoji-area",onClick:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(r,i)=>(e.openBlock(),e.createElementBlock("i",{key:"emoji_"+i,class:"as-emoji-item"},e.toDisplayString(r),1))),128))]))}}),[["__scopeId","data-v-50968e0d"]])},Symbol.toStringTag,{value:"Module"})),ca={class:"as-message-area"},da=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"MessageManager",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,{$fn:o,$global:a,$ws:l}=n.ujt;function s(){l.rooms[n.room.roomname]=[]}function r(){l.rooms[n.room.roomname]?.length&&o.As.downloadTxt((n.room?.lang?.chat||a.lang.asaichat.chat)+"("+n.room.roomname+`)
|
|
9
|
+
`).split(l.novel.rule.bkchannel),i,p,f;return r.forEach(u=>{u&&u.split(l.novel.rule.bkclass).forEach((y,b)=>{b==0?(i=s(y,"ch"),i.cc=[],c.push(i)):y.split(l.novel.rule.bklist).forEach(($,_)=>{_==0?(p=s($,"cl"),p.cc=[],i.cc.push(p)):(f=s($,"li"),p.cc.push(f))})})}),c})}}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$global:n}=t.ujt;function o(a){const l=Number(n.location.query.pc)||0,s=l===0?0:Math.ceil(l/a);if(s===0)return[];let d=Math.min(Math.max(Number(n.location.query.pg)||1,1),s),c=Math.max(d-Math.floor(a/2),1),m=c+a-1;return m>s&&(m=s,c=Math.max(m-a+1,1)),Array.from({length:m-c+1},(r,i)=>c+i)}return{getPageList:o}}},Symbol.toStringTag,{value:"Module"})),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$model:o,$db:a,$dbwork:l,$global:s}=t;function d(c="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs(c),m?.["$engine"+c]&&(Object.assign(n,m["$engine"+c]),m?.["$engineuse"+c]&&Object.assign(n,m["$engineuse"+c])),o[c]||(o[c]={}),l[c]||(l[c]={}),a[c]||(a[c]={}),n.setconfig=(i,p)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+i+".json",p),n.changelangpro=(i="")=>n.changelang(s.config.langcur||i).then(p=>{s?.sys?.local?.lang?c&&n.ws?.[c]&&n.ws[c].wsSend({id:"1",ty:"common/setlanguage",db:p}):n.setconfig("settinglang",{lang:i})}),n.changethemepro=(i="")=>s?.sys?.local?.theme?n.changetheme(i):n.setconfig("settingtheme",{theme:i});const r=[n.initlang(s.config.langcur||"")];return r.push(n.initmodel(c+"/dirmodel.json").then(i=>{i&&Object.assign(o[c],i)})),Promise.all(r)}return{initAppModel:d}}},Symbol.toStringTag,{value:"Module"})),Ie=e.reactive({providedb:{data:{}}}),Re=e.reactive({providedbwork:{data:{}}}),Fe=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:""}}}}),We=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),Z={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},He=Object.freeze(Object.defineProperty({__proto__:null,default:(t=null)=>{const n=window;Object.assign(Z.providefn.data,t||{});const o={$db:Ie.providedb.data,$dbwork:Re.providedbwork.data,$ws:We.providews.data,$global:Fe.provideglobal.data,$model:n.$GYS.$webmodel,$fn:Z.providefn.data};o.$global.$cfg=n.$CFG||{},n.$GYS.ujt=o,o.$fn.lo=(...i)=>{if(o.$global.sys?.onconsole){if(!i?.[0])o.$model.gysfn.log();else if(i.length>0){let p="",f="",u="";if(i[1]&&typeof i[1]=="string"){const[g,y,...b]=i;f=y,u=b,Array.isArray(i[0])&&i[0].length===2?p=l(i[0][0],i[0][1],"12px"):typeof i[0]=="number"&&(p=a(g,12))}p?console.log("%c"+f,p,...u):console.log(...i)}}},o.$model.gysfn.log=()=>(console.log("%c$fn",a(6,18),s(o.$fn),o.$fn),console.log("%c$model",a(5,18),s(o.$model),o.$model),console.log("%c$global",a(4,18),s(o.$global),o.$global),console.log("%c$ws",a(3,18),s(o.$ws),o.$ws),console.log("%c$db",a(2,18),s(o.$db),o.$db),console.log("%c$dbwork",a(1,18),s(o.$dbwork),o.$dbwork),"Web Model Log。");function a(i,p=18){let f="";return i===1?f=l("black","pink",p+"px"):i===2?f=l("black","cyan",p+"px"):i===3?f=l("black","yellow",p+"px"):i===4?f=l("white","blue",p+"px"):i===5?f=l("white","red",p+"px"):i===6?f=l("white","green",p+"px"):i===7&&(f=l("white","purple",p+"px")),f}function l(i,p,f="18px"){return"font-size:"+f+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+i+";background-color:"+p+";"}function s(i){try{return"size=>"+((i&&JSON.stringify(i)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function d(i={}){o.$global.pop.popdefaultconfirm&&(o.$global.pop.popdefaultconfirm.stat=1,o.$global.pop.popdefaultconfirm.full=1,o.$global.pop.popdefaultconfirm.notit=1,Object.assign(o.$global.pop.popdefaultconfirm,i))}o.$fn.popConfirm=d,o.$fn.getWebPath=(i="")=>{const p=o?.$global?.$cfg?.webpath||"./";return i&&!i.startsWith("http")&&!i.startsWith(p)?p+i:i};const{fetchPublic:c}=o.$fn?.AsaiModel(o.$fn.getWebPath("webmodel/"));o.$fn.initmodel=c,o.$fn.startLink=()=>new Promise((i,p)=>{o.$fn.initmodel("sys/server.json").then(f=>{const u={api:{},ws:{}};["api","ws"].forEach(g=>{Object.keys(f?.[g]||{}).forEach(y=>{let b=f[g][y];b&&typeof b=="string"&&(b=u[g][b]),b||(b=f[g].default),u[g][y]={...b,url:o.$fn.As.getUrlByCfg(b,g=="ws"?1:0)}})}),o.$fn.As.localSet("as-link",JSON.stringify(u)),o.$global.link=u,i(o.$global.link)}).catch(f=>{p(f)})}),o.$fn.saveLink=i=>{o.$global.link=i,o.$fn.As.localSet("as-link",JSON.stringify(o.$global.link))},o.$fn.initLink=(i=0)=>new Promise((p,f)=>{if(i)o.$fn.startLink().then(u=>{p(u)}).catch(u=>{f(u)});else{let u=o.$fn.As.localGet("as-link");u?(o.$global.link=JSON.parse(u),o.$global.link?.api&&o.$global.link?.ws&&o.$global.link?.ws?.default?p(o.$global.link):o.$fn.startLink().then(g=>{p(g)}).catch(g=>{f(g)})):o.$fn.startLink().then(g=>{p(g)}).catch(g=>{f(g)})}});const m=new Map,r=/\$(\d+)/g;return o.$fn.lg=(i,p)=>{if(typeof i!="string"||!i)return;let f=m.get(i);f||(f=i.split("."),m.set(i,f));const u=f.reduce((b,h)=>b?.[h],o.$global.lang);if(!p||p.length===0)return u;const g=Array.isArray(p)?p:[p];return u?.replace(r,(b,h)=>{const $=parseInt(h,10)-1;return g[$]??b})},o.$fn.changetheme=(i="")=>new Promise((p,f)=>{try{let u="";o.$global?.sys?.local?.theme?u=o.$fn.As.localGet(o.$global?.sys?.local?.theme)||o.$model.data.sys.settingtheme.theme||o.$model.data.sys.configdata.theme[0]:u=o.$model.data.sys.settingtheme.theme||o.$model.data.sys.configdata.theme[0],i&&u===i?p():(i==="auto"?u=u==o.$model.data.sys.configdata.theme[0]?o.$model.data.sys.configdata.theme[1]:o.$model.data.sys.configdata.theme[0]:i&&(u=i),o.$global?.sys?.local?.theme&&o.$fn.As.localSet(o.$global?.sys?.local?.theme,u)),u&&o.$global?.config?.theme!==u&&(o.$global?.config?.theme&&document?.body?.classList?.contains(o.$global.config.theme)&&document.body.classList.remove(o.$global.config.theme),o.$global.config.theme=u),document?.body?.classList?.contains(u)||document.body.classList.add(u),p()}catch(u){f(u)}}),o.$fn.initlang=(i="")=>{let p="";return o.$global?.sys?.local?.lang?p=i||o.$fn.As.localGet(o.$global?.sys?.local?.lang)||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0]:p=i||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0],o.$global?.lang||(o.$global.lang={}),new Promise((f,u)=>{o.$fn.initmodel("lang/dirlang.json",p+"/").then(g=>{Object.assign(o.$global.lang,g),f(o.$global.lang)}).catch(g=>{u(g)})})},o.$fn.changelang=(i="")=>{let p="";return o.$global?.sys?.local?.lang?p=o.$fn.As.localGet(o.$global?.sys?.local?.lang)||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0]:p=o.$global.config.langcur||o.$model.data.sys.settinglang?.lang||o.$model.data.sys.configdata?.lang[0],new Promise((f,u)=>{i&&p===i&&o.$global?.lang?f(p):(i==="auto"?p=p==o.$model.data.sys.configdata?.lang[0]?o.$model.data.sys.configdata?.lang[1]:o.$model.data.sys.configdata?.lang[0]:i&&(p=i),o.$global?.sys?.local?.lang&&o.$fn.As.localSet(o.$global?.sys?.local?.lang,p),o.$global?.sys?.local?.lang||!o.$global.config.lang?(o.$global.config.lang=p,o.$fn.initlang(p).then(g=>{f(p)}).catch(g=>{u(g)})):f(p))})},o.$fn.initver=()=>{if(o.$global.sys?.ver){const i=o.$fn.As.localGet("as-ver");if(i){if(o.$global.sys?.ver!==i)return o.$fn.As.localInit(),!0}else o.$fn.As.localSet("as-ver",o.$global.sys?.ver||"")}return!1},o.$fn.initweb=async i=>{try{let p=function(){const{protocol:g,hostname:y,port:b,hash:h}=n.location;o.$global.location={protocol:g,hostname:y,port:b,hash:h.replace("#",""),comps:[],query:{}},o.$fn.AsRouter.initHash(o.$global.location),$();function $(){o.$fn.AsRouter.setRouter(o.$global.location)}o.$fn.setquery=(_={},k=0)=>{let S;k?S=new URLSearchParams({...o.$global.location.query||{},..._||{}}).toString():S=new URLSearchParams(_||{}).toString(),S?S=o.$global.location.hash.split("?")[0]+"?"+S:S=o.$global.location.hash.split("?")[0],o.$fn.AsRouter.setHash(o.$global.location,S),$()},o.$fn.sethash=(_="")=>{o.$fn.AsRouter.setHash(o.$global.location,_)},o.$fn.exit=(_=0)=>{o.$fn.As.localSet("as-user-info",""),o.$global.user.info=null,o.$global.code.token=null,_&&(o.$fn.sethash(""),o.$fn.As.localReload())},o.$fn.login=()=>{o.$fn.As.localSet("as-user-info",""),o.$global.user.info=null,o.$fn.sethash(o.$global.sys?.router?.config?.login||"user/login")}};Object.assign(o.$fn,i.$engineasai||{}),Object.assign(o.$fn,i.$engineasailib||{});const f=await o.$fn.initmodel("sys/dirglobal.json");if(o.$global.sys={},Object.keys(f).forEach(g=>{Object.assign(o.$global.sys,f[g])}),o.$fn.initver())return;o.$model.data.asai=await o.$fn.initmodel("asai/dirmodel.json");const u=await o.$fn.initmodel("asai/dirglobal.json");if(o.$global.asai={},Object.keys(u).forEach(g=>{Object.assign(o.$global.asai,u[g])}),o.$model.data.sys=await o.$fn.initmodel("sys/dirmodel.json"),o.$model.data.sys.configrouter){o.$global.sys.router=o.$model.data.sys.configrouter;for(let g=0;g<o.$global.sys.router.config.models.length;g++){const y=await o.$fn.initmodel(o.$global.sys.router.config.models[g]+"/configrouter.json");typeof y=="object"&&Object.entries(y).forEach(([b,h])=>{b==="rights"?Object.entries(h).forEach(([$,_])=>{_&&_.length&&_.forEach(k=>{o.$global.sys.router.rights[$].includes(k)||o.$global.sys.router.rights[$].push(k)})}):Object.assign(o.$global.sys.router[b],h)})}}o.$fn.lo(),await o.$fn.initLink(),await o.$fn.changetheme(),p()}catch{}},o.$fn.offweb=()=>{o.$fn.AsRouter.offHash()},o.$fn.initrouter=()=>{if(o.$global?.sys?.devlevel&&!o.$global.url[o.$global.module.value]){o.$global.url[o.$global.module.value]=[],o.$global.url[o.$global.module.value].push(...Object.keys(o.$model.appmodules.indexRouters).map(p=>({value:p,label:p,type:"module"})));const i=/^\.\/(.*?)\/default\.vue$/;o.$global.url[o.$global.module.value].push(...[...Object.keys(o.$model.comps)?.map(p=>{if(i.test(p)){const f=p.match(i);if(f)return f[1]}return""}).filter(p=>p)].map(p=>({value:p,label:p})))}},o.$fn.inittoken=()=>{o.$global.code.pri&&o.$global.user.info?.us&&(o.$global.code.token=o.$fn.AsCode.asencode(o.$global.user.info?.us,o.$global.code.pri)+"##"+o.$fn.AsCode.asencode(o.$global.user.info?.lv||0,o.$global.code.pri)+"##"+o.$global.code.pub)},o.$fn.gettoken=(i=0)=>o.$global?.code?.token?o.$global.code.token:o.$global?.code?.pub&&i?o.$global?.code?.token||"####"+o.$global.code.pub:"",o.$fn.$log=(i=null)=>new Promise((p,f)=>{if(i){const u=(o.$global?.user?.info?.us||"")+"-"+i;o?.$fn?.lo?.(7,"log",u),o?.$global?.sys?.onweblog&&o?.$fn?.apisys.apiPost("/api/asailog/manage/add/",u).then(p).catch(f),p()}else p()}),o.$fn.checkOnline=()=>new Promise((i,p)=>{if(o?.$global?.sys?.oncheckonline)try{typeof o?.$fn?.ws?.web?.wsApi=="function"?o.$fn.ws.web.wsApi("ping")?.then(f=>{f=="pong"?i(f):p(f)}).catch(p):p()}catch(f){p(f)}else i()}),e.provide("$ujtasai",o),{...o,$ujtasai:o}}},Symbol.toStringTag,{value:"Module"})),qe=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const{$fn:n,$model:o,$global:a,$ws:l}=t;l?.beat||(l.beat={});function s(d="web",c=0){(c||a.sys?.tmbeat)&&(l.beat["bt"+d]=setInterval(()=>{l.beat["btm"+d]=setTimeout(()=>{clearInterval(l.beat["bt"+d]),l.beat["bt"+d]=null,n.exit()},(c||a.sys?.tmbeat)*1.5),n.ws[d].wsApi("ping").then(m=>{m==="pong"&&(clearTimeout(l.beat["btm"+d]),l.beat["btm"+d]=null)})},c||a.sys?.tmbeat))}return{pingPong:s}}},Symbol.toStringTag,{value:"Module"})),Ke=Object.freeze(Object.defineProperty({__proto__:null,default:(t,n="web")=>{const{$global:o,$fn:a}=t;return a.ws[n]||(a.ws[n]=new a.AsaiWs({wsurl:a.As.getUrlByCfg(o.link.ws[n],1),Userinfo:o.user.info,wsname:n,wsworker:o.link.ws[n]?.worker,wssec:o.link.ws[n]?.sec,ujt:t}),a.ws[n]&&o?.sys?.tyrobot==n&&(a.wssys=a.ws[n])),a.ws[n]}},Symbol.toStringTag,{value:"Module"})),Xe=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiComponent",props:{ujt:{}},setup(t){const n=t,{$model:o,$global:a}=n.ujt,l=e.computed(()=>o.appmodules.indexRouters[(a.sys?.router?.config?.models?.includes(a.location?.hasharr?.[0])?a.location?.hasharr?.[0]:"")||a.sys?.router?.config?.models?.[0]]);return(s,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{ujt:t.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Ye=e.defineComponent({__name:"AsaiWebServer",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserver",class:e.normalizeClass("asaiweb asaiweb"+(e.unref(o).location?.hasharr?.[0]||"default"))},[e.createVNode(s,{ujt:t.ujt},null,8,["ujt"])],2)}}}),D=(t,n)=>{const o=t.__vccOpts||t;for(const[a,l]of n)o[a]=l;return o},v=D(Ye,[["__scopeId","data-v-aaec86d5"]]),Ge=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),ee=D(e.defineComponent({__name:"AsaiWebServerNode",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserToken:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return l(),(s,d)=>{const c=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebservernode",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.pub?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadServer"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-16432218"]]),Je=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"})),te=D(e.defineComponent({__name:"AsaiWebServerUser",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserToken:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return l(),(s,d)=>{const c=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruser",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.token?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserToken"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-c0e5fdf2"]]),Qe=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"})),Ze={key:0,id:"asaiweb"},ve={id:"teleportpopbox"},et=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiInitPage",props:{appmodules:{},ujt:{}},setup(t){const n=t,o=e.inject("$vueProxy"),{$global:a,$fn:l,$model:s,$ws:d}=n.ujt;s.appmodules=n.appmodules;function c(){let u=l.As?.localGet("as-user-code");u&&(u=l.As.toObj(u),a.code.pri=u[0],a.code.pub=u[1]),a.code.pri&&l.As.localGet("as-user-info")&&(a.user.info=l.As.toObj(l.AsAES.dec(l.As.localGet("as-user-info")))),l.inittoken()}function m(){a?.sys?.nouser||l.ws.web.wsWatch({ty:"publish/web"},u=>{u?.db?.exit&&(l.exit(),l.sethash(a.sys?.router?.config?.login||"user/login")),u?.db?.lang&&(u.db.langpm?u.db.con=l.lg("asai.hostmsg."+u.db.lang,u.db.langpm)||u.db.con:u.db.con=l.lg("asai.hostmsg."+u.db.lang)||u.db.con),u?.db==="pong"?l.ws.web.wsApi("ping").then(g=>{}):u?.db?.bs?r(u.db.bs):u?.db?.con&&a.msg.fn(u.db)})}function r(u){if(Array.isArray(u)&&u[0]?.[0])try{u.forEach(g=>{l.As.setObjValByPath(d.wssys,g[0],g[1])})}catch{}}const i=e.computed(()=>!a.location.hash||a.location.hash=="/"||a.sys?.router?.rights?.lv0?.find(u=>a.location.hash.includes(u))?0:a.sys?.router?.rights?.lv1?.find(u=>a.location.hash.includes(u))?1:a.sys?.router?.rights?.lv2?.find(u=>a.location.hash.includes(u))?2:a.sys?.router?.rights?.lv3?.find(u=>a.location.hash.includes(u))?3:a.sys?.router?.config?.lv);function p(u,g){try{console.error(g+" Error:",u);let y="";u?.error?.stack&&typeof u?.error?.stack=="string"?y=u.error.stack:u?.error?.message&&typeof u?.error?.message=="string"?y=u.error.message:u?.message&&typeof u?.message=="string"?y=u.message:u?.reason?.message&&typeof u?.reason?.message=="string"?y=u.reason.message:u?.reason&&typeof u?.reason=="string"?y=u.reason:u&&typeof u=="string"&&(y=u),y&&(y="Web "+g+` Error:
|
|
10
|
+
`+y,console.error(y),l.$log(y),a?.msg?.fn?.({type:"err",con:y})),u.preventDefault()}catch(y){console.error("Try Error:",y)}}const f=e.reactive({catchErrorUnhandledrejection:null,catchErrorCatch:null});return e.onMounted(()=>{l.initweb(o).then(()=>{let u=[];l.useApi(n.ujt,"web"),a?.sys?.tyrobot&&(l.useApi(n.ujt,a.sys.tyrobot),l.useWs(n.ujt,a.sys.tyrobot)),a?.sys?.onuserws&&(l.useWs(n.ujt,"web"),c(),u.push(l.ws.web.init().then(()=>{m()}))),a?.sys?.local?.lang||u.push(l.initmodel("/sys/setting/settinglang.json").then(g=>{typeof g?.data=="string"?a.config.langcur=JSON.parse(g?.data||"{}")?.lang:a.config.langcur=(g?.data||{})?.lang})),Promise.all(u).then(()=>{l.changelang(a.config.langcur).then(g=>{!window?.$CFG?.title&&a.lang.sys?.webtit&&(document.title=a.lang.sys?.webtit),a.stat.webclient=1,a.sys.catcherror&&(f.catchErrorUnhandledrejection=b=>{p(b,"Unhandledrejection")},window?.addEventListener?.("unhandledrejection",f.catchErrorUnhandledrejection),f.catchErrorCatch=b=>{p(b,"Catch")},window?.addEventListener?.("error",f.catchErrorCatch))})})})}),e.onBeforeUnmount(()=>{l.offweb(),a.sys.catcherror&&(f.catchErrorUnhandledrejection&&(window.removeEventListener("unhandledrejection",f.catchErrorUnhandledrejection),f.catchErrorUnhandledrejection=null),f.catchErrorCatch&&(window.removeEventListener("error",f.catchErrorCatch),f.catchErrorCatch=null)),a?.sys?.nouser||l.ws.web.wsWatchOff({ty:"publish/web"})}),(u,g)=>{const y=e.resolveComponent("AsaiWebServerUserOnline"),b=e.resolveComponent("PopMsg"),h=e.resolveComponent("PopBoxConfirm"),$=e.resolveDirective("keyboard");return e.unref(a).stat.webclient?(e.openBlock(),e.createElementBlock("div",Ze,[i.value===0?(e.openBlock(),e.createBlock(v,{key:0,ujt:t.ujt},null,8,["ujt"])):i.value===1?(e.openBlock(),e.createBlock(ee,{key:1,ujt:t.ujt},null,8,["ujt"])):i.value===2?(e.openBlock(),e.createBlock(te,{key:2,ujt:t.ujt},null,8,["ujt"])):(e.openBlock(),e.createBlock(y,{key:3,ujt:t.ujt},null,8,["ujt"])),g[0]||(g[0]=e.createElementVNode("div",{id:"teleportasai"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(b,{ujt:t.ujt},null,8,["ujt"]),e.createVNode(h,{ujt:t.ujt,id:"popdefaultconfirm"},null,8,["ujt"])])),[[$,{ujt:t.ujt}]])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadClient"),{key:1,ujt:t.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),tt={class:"app-area"},nt={class:"app-logo"},ot=["src"],at={class:"app-menu-area"},lt=["onPointerup"],st={class:"menu-text"},it={class:"app-login"},rt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemDefault",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>o.url?.[o.module.value]?.filter(s=>s.type==="module"||("/"+s.value+"/").startsWith(o.location.hash))||[]);return(s,d)=>{const c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",nt,[e.createElementVNode("img",{src:e.unref(o).$cfg.logo,width:"200"},null,8,ot)]),e.createElementVNode("div",at,[(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:r=>e.unref(a).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",st,e.toDisplayString(m.label),1)],42,lt))),128))]),e.createElementVNode("div",it,[e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ct=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemIndex",props:{ujt:{},ty:{}},setup(t){return(n,o)=>{const a=e.resolveComponent("RouterView");return e.openBlock(),e.createBlock(a,{ujt:t.ujt,ty:t.ty||2},null,8,["ujt","ty"])}}})},Symbol.toStringTag,{value:"Module"})),dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModule",props:{ujt:{},module:{},ty:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;Object.assign(o.module,n.module),n.module?.ws&&a.useWs(n.ujt,o.module.value);const{initAppModel:l}=a.useInitApp(n.ujt);return o.stat[o.module.value]=0,l(o.module.value).then(s=>{o.stat[o.module.value]=1}),(s,d)=>{const c=e.resolveComponent("RouterView");return n.module?.value&&e.unref(o).stat[n.module.value]?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt,ty:t.ty||0},null,8,["ujt","ty"])):e.unref(o).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadErr"),{key:1,ujt:t.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),mt={class:"app-area"},pt={class:"app-logo"},ft=["src"],ut={class:"app-menu-area"},ht=["onPointerup"],gt={class:"menu-text"},yt={class:"app-login"},_t=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsaiWebModuleDefault",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return a.initrouter(),(l,s)=>{const d=e.resolveComponent("MenuShowFix"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{ujt:t.ujt,menus:e.unref(o).url[e.unref(o).module.value]},null,8,["ujt","menus"]),e.createElementVNode("div",mt,[e.createElementVNode("div",pt,[e.createElementVNode("img",{src:e.unref(o).$cfg.logo,width:"200"},null,8,ft)]),e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).url[e.unref(o).module.value],m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:r=>e.unref(a).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",gt,e.toDisplayString(m.label),1)],42,ht))),128))]),e.createElementVNode("div",yt,[e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])],64)}}}),[["__scopeId","data-v-0e6e2a63"]])},Symbol.toStringTag,{value:"Module"})),bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModuleIndex",props:{ujt:{},ty:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return a.initrouter(),(l,s)=>{const d=e.resolveComponent("MenuShowFix"),c=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{ujt:t.ujt,menus:e.unref(o).url[e.unref(o).module.value]},null,8,["ujt","menus"]),e.unref(o).stat[e.unref(o).module.value]?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt,ty:t.ty||1},null,8,["ujt","ty"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),kt=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsaiWebServerUserOnline",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{initChannelUserOnline:l}=o.useChannelUser({ujt:n.ujt,opt:{channel:a?.sys?.db?.user?.channel||"channeluser"}});return a.code.token&&l(),(s,d)=>{const c=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruseronline",class:e.normalizeClass("asaiweb asaiweb"+e.unref(a).location?.hasharr?.[0])},[e.unref(a).code.token&&e.unref(a).user.online?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt},null,8,["ujt"])):e.unref(a).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserTokenOnline"),{key:1,ujt:t.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-f25a2c98"]])},Symbol.toStringTag,{value:"Module"})),$t={class:"as-channel-show as-form-align as-form-line asfselectarea"},wt={class:"as-channel-btns"},Ct=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelAdd",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{addContent:l,initAddChannel:s,channelLang:d}=o.useChannel(n);s();const c={addContent:l,channelLang:d};return(m,r)=>{const i=e.resolveComponent("AsaiForm");return e.renderSlot(m.$slots,"default",{item:e.unref(a)[n.opt.channel],option:c},()=>[e.createElementVNode("div",$t,[e.createVNode(i,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,opt:{isedit:0}},null,8,["ujt","asaidata"])]),e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"li cur",onClick:r[0]||(r[0]=p=>c.addContent())},e.toDisplayString(c.channelLang("ui.add")||"Add"),1)])])}}})},Symbol.toStringTag,{value:"Module"})),jt={key:0,class:"btns"},St=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelBtnsManage",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>3<e.unref(o).user?.info?.lv?(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("div",{onClick:l[0]||(l[0]=e.withModifiers(s=>{t.option.popConfirm({con:t.option.channelLang("ui.delconfirm"),fn:()=>{t.option.delItem(t.item?.rfdata?.data?.[t.option.getSnKey()])}})},["stop"]))},e.toDisplayString(t.option.channelLang("ui.del")||"Del"),1),e.createElementVNode("div",{onClick:l[1]||(l[1]=e.withModifiers(s=>t.option.editItem(t.item?.rfdata?.data?.[t.option.getSnKey()]),["stop"]))},e.toDisplayString(t.option.channelLang("ui.edit")||"Edit"),1)])):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Et=["title","onClick"],Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelClass",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{setChannelClass:s,getClassKey:d}=o.useChannel(n),c={setChannelClass:s};return(m,r)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.entries(e.unref(l)[n.opt.channel]?.rfdata?.rule?.[e.unref(d)()]?.[e.unref(d)()+"data"]||{asai:"All"}),i=>e.renderSlot(m.$slots,"default",{key:i[0],item:i,option:c},()=>[e.createElementVNode("div",{title:i[1]||"",class:e.normalizeClass({cur:i[0]===e.unref(a).location.query?.fl||i[0]==="asai"&&!e.unref(a).location.query?.fl}),onClick:e.withModifiers(p=>c.setChannelClass(i[0]==="asai"?"":i[0]),["stop"])},e.toDisplayString(i[1]),11,Et)])),128))}})},Symbol.toStringTag,{value:"Module"})),Vt={class:"as-channel-show as-form-align as-form-line asfselectarea"},xt={class:"as-channel-btns"},Nt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelEdit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{editContent:s,channelLang:d,readItem:c}=o.useChannel(n);!a[n.opt.channel]?.rfdata?.data&&l?.location?.query?.show&&c(l.location.query.show);const m={editContent:s,channelLang:d};return(r,i)=>{const p=e.resolveComponent("AsaiForm");return e.renderSlot(r.$slots,"default",{item:e.unref(a)[n.opt.channel],option:m},()=>[e.createElementVNode("div",Vt,[e.createVNode(p,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,opt:{isedit:1}},null,8,["ujt","asaidata"])]),e.createElementVNode("div",xt,[e.createElementVNode("div",{class:"li cur",onClick:i[0]||(i[0]=f=>m.editContent())},e.toDisplayString(m.channelLang("ui.edit")||"Edit"),1)])])}}})},Symbol.toStringTag,{value:"Module"})),Pt={class:"as-channel-class-area"},Dt={class:"as-channel-bar"},zt={class:"as-channel-class"},At={key:0,class:"as-channel-io-area"},Mt={class:"as-channel-bar"},Ot={key:0,class:"as-channel-opta"},Tt=["id"],Lt={class:"as-channel-list-area-main"},Ut={key:0,class:"as-channel-page"},It={key:0,class:"as-channel-show-area"},Rt={class:"as-channel-bar"},Ft={class:"as-channel-opt"},Wt={class:"as-channel-bar"},Ht={class:"as-channel-opt"},qt={class:"as-channel-bar"},Kt={class:"as-channel-opt"},Xt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelIndex",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l,$model:s}=n.ujt,{initChannel:d,channelLang:c}=o.useChannel(n);return d(),e.onUnmounted(()=>{!n.opt.nonull&&(l[n.opt.channel]=null)}),(m,r)=>{const i=e.resolveComponent("ChannelClass"),p=e.resolveComponent("ChannelUpDown"),f=e.resolveComponent("ChannelOptAdd"),u=e.resolveComponent("ChannelOpt"),g=e.resolveComponent("ChannelListSearch"),y=e.resolveComponent("ChannelList"),b=e.resolveComponent("ChannelListPage"),h=e.resolveComponent("ChannelEdit"),$=e.resolveComponent("ChannelShow"),_=e.resolveComponent("ChannelAdd");return e.unref(l)[n.opt.channel].stat?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.opt.tyindex==1?"as-channel-column":"as-channel-row")},[e.createElementVNode("div",Pt,[e.createElementVNode("div",Dt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.listclass)+" "+e.toDisplayString(e.unref(c)("ui.class")||"Class"),1)]),e.createElementVNode("div",zt,[e.createVNode(i,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])]),e.unref(l)[n.opt.channel].cfg?.imex?.keys?.length===8?(e.openBlock(),e.createElementBlock("div",At,[e.createVNode(p,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(`as-channel-list-area${n?.opt?.pop?" as-channel-pop":""}`)},[e.createElementVNode("div",Mt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.listcontent)+" "+e.toDisplayString(e.unref(c)("ui.list")||"List"),1),n?.opt?.pop?(e.openBlock(),e.createElementBlock("div",Ot,[e.createVNode(f,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"]),e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)]),e.createVNode(g,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"]),e.createElementVNode("div",{class:"as-channel-list",id:"popconfirm"+n.opt.channel+"area"},[e.createElementVNode("div",Lt,[e.createVNode(y,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])],8,Tt),e.unref(l)[n.opt.channel].cmPageList.length>1?(e.openBlock(),e.createElementBlock("div",Ut,[e.createVNode(b,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])):e.createCommentVNode("",!0)],2),n?.opt?.pop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",It,[e.unref(a).location.query?.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(a).location.query?.showty?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Rt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.contentedit)+" "+e.toDisplayString(e.unref(c)("ui.edit")||"Edit"),1),e.createElementVNode("div",Ft,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode(h,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Wt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.contentshow)+" "+e.toDisplayString(e.unref(c)("ui.show")||"Show"),1),e.createElementVNode("div",Ht,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode($,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",qt,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).data.asai.rulechanneltobook.new)+" "+e.toDisplayString(e.unref(c)("ui.add")||"Add"),1),e.createElementVNode("div",Kt,[e.createVNode(u,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),e.createVNode(_,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],64))]))],2)):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelList",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{delItem:s,editItem:d,readItem:c,setShow:m,fetchContent:r,popConfirm:i,getSnKey:p,getTitleKey:f,channelLang:u}=o.useChannel(n);e.onMounted(()=>{r(0),l.location.query?.show&&c(l.location.query?.show)}),a[n.opt.channel].cmPageSize=e.computed(()=>Number(l.location.query?.ps)||a[n.opt.channel].cfg.config?.ps||5);const{getPageList:g}=o.usePage(n);a[n.opt.channel].cmPageList=e.computed(()=>g(a[n.opt?.channel]?.cmPageSize));const y={setShow:m,delItem:s,editItem:d,popConfirm:i,getSnKey:p,getTitleKey:f,channelLang:u};return(b,h)=>{const $=e.resolveComponent("ChannelBtnsManage"),_=e.resolveComponent("ChannelListType");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a)[n.opt.channel].contentList,(k,S)=>e.renderSlot(b.$slots,"default",{key:"list"+(k?.[e.unref(p)()]||S),item:k,option:y},()=>[e.createVNode(_,{ujt:t.ujt,opt:t.opt,pm:t.pm,item:k,option:y},{btns:e.withCtx(()=>[n.opt?.btnsty?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:{rfdata:{data:k}},option:y},null,8,["ujt","opt","pm","item"]))]),_:2},1032,["ujt","opt","pm","item"])])),128)}}})},Symbol.toStringTag,{value:"Module"})),Gt=["onClick"],Jt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListPage",props:{ujt:{},opt:{}},setup(t){const n=t,{$db:o,$global:a}=n.ujt;return(l,s)=>e.unref(o)[n.opt.channel].cmPageList.length>1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(o)[n.opt.channel].cmPageList,d=>e.renderSlot(l.$slots,"default",{key:"listpage"+(d||""),item:d,option:{}},()=>[e.createElementVNode("div",{onClick:e.withModifiers(c=>e.unref(o)[n.opt.channel]?.setpage(d),["stop"]),class:e.normalizeClass(d==e.unref(a).location.query?.pg||d==1&&!e.unref(a).location.query?.pg?"as-channel-active":"")},e.toDisplayString(d),11,Gt)])),128)):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Qt={key:0,class:"as-channel-search"},Zt={class:"as-channel-search-opt"},vt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListSearch",props:{ujt:{},opt:{}},setup(t){const n=t,{$db:o,$global:a,$fn:l}=n.ujt,{searchSubmit:s,channelLang:d}=l.useChannel(n),c={searchSubmit:s,channelLang:d};return(m,r)=>{const i=e.resolveComponent("AsfInput"),p=e.resolveComponent("AsfSelect");return e.renderSlot(m.$slots,"default",{item:e.unref(a).location.query,option:c},()=>[n.opt?.channel&&e.unref(o)[n.opt.channel].cfg?.sxs?.length?(e.openBlock(),e.createElementBlock("div",Qt,[e.createVNode(i,{ujt:t.ujt,opt:{placeholder:e.unref(l).lg("asai.searchtips")},modelValue:e.unref(a).location.query.ss,"onUpdate:modelValue":r[0]||(r[0]=f=>e.unref(a).location.query.ss=f)},null,8,["ujt","opt","modelValue"]),e.createElementVNode("div",Zt,[e.createVNode(p,{ujt:t.ujt,modelValue:e.unref(a).location.query.ssty,"onUpdate:modelValue":r[1]||(r[1]=f=>e.unref(a).location.query.ssty=f),opt:{valuedefault:"asai",selectdata:e.unref(o)[n.opt.channel].cfg.sss.map(f=>[f,f==="asai"?c.channelLang("ui.sss")||"Table":e.unref(o)[n.opt.channel].rfdata?.lang?.[f]])}},null,8,["ujt","modelValue","opt"]),e.createVNode(p,{ujt:t.ujt,modelValue:e.unref(a).location.query.sx,"onUpdate:modelValue":r[2]||(r[2]=f=>e.unref(a).location.query.sx=f),opt:{valuedefault:"asai",selectdata:e.unref(o)[n.opt.channel].cfg.sxs.map(f=>[f,f==="asai"?c.channelLang("ui.sxs")||"Sort":e.unref(o)[n.opt.channel].rfdata?.lang?.[f]])}},null,8,["ujt","modelValue","opt"]),e.createVNode(p,{ujt:t.ujt,modelValue:e.unref(a).location.query.sxty,"onUpdate:modelValue":r[3]||(r[3]=f=>e.unref(a).location.query.sxty=f),opt:{valuedefault:0,selectdata:c.channelLang("ui.sxtys")||[]}},null,8,["ujt","modelValue","opt"])]),e.createElementVNode("button",{onClick:r[4]||(r[4]=f=>c.searchSubmit())},e.toDisplayString(e.unref(l).lg("asai.search")),1)])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),en=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListSelect",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.reactive({list:[]}),{channelSelect:s,setShow:d}=o.useChannel(n);s(n.pm).then(m=>{l.list=m.data});const c={setShow:d};return(m,r)=>{const i=e.resolveComponent("ChannelListType");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(p,f)=>e.renderSlot(m.$slots,"default",{key:"list"+(p?.[m.getSnKey()]||f),item:p,option:c},()=>[e.createVNode(i,{ujt:t.ujt,opt:t.opt,pm:t.pm,item:p,option:c},null,8,["ujt","opt","pm","item"])])),128)}}})},Symbol.toStringTag,{value:"Module"})),tn=["title"],nn={key:0,class:"img"},on=["src","alt"],an={class:"main"},ln={class:"tit"},sn={class:"des"},rn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"blog",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{getTitleKey:s,getSnKey:d,getImgKey:c,getContentKey:m}=a.useChannel(n);return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`blog${t.item?.[e.unref(d)()]&&e.unref(o).location.query?.show===t.item?.[e.unref(d)()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(l)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[e.unref(s)()]||"",onPointerup:i[0]||(i[0]=e.withModifiers(p=>t.option?.setShow(t.item),["stop"]))},[t.item?.[e.unref(c)()]?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("img",{src:t.item[e.unref(c)()],alt:t.item?.[e.unref(s)()]||""},null,8,on)])):e.createCommentVNode("",!0),e.createElementVNode("div",an,[e.createElementVNode("div",ln,e.toDisplayString(t.item?.[e.unref(s)()]||""),1),e.createElementVNode("div",sn,e.toDisplayString(t.item?.[e.unref(m)()]||""),1)])],40,tn),e.renderSlot(r.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),cn=["title"],dn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"list",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$db:a}=n.ujt;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`list${t.item?.[t.option.getSnKey()]&&e.unref(o).location.query?.show===t.item?.[t.option.getSnKey()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(a)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[t.option.getTitleKey()]||"",onClick:s[0]||(s[0]=e.withModifiers(d=>t.option?.setShow(t.item),["stop"]))},e.toDisplayString(t.item?.[t.option.getTitleKey()]||""),9,cn),e.renderSlot(l.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),mn=["title"],pn={class:"img"},fn=["src","alt"],un={key:1,class:"imgstr"},hn={class:"main"},gn={class:"tit"},yn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"pic",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{getTitleKey:s,getSnKey:d,getImgKey:c}=a.useChannel(n);return(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`pic${t.item?.[e.unref(d)()]&&e.unref(o).location.query?.show===t.item?.[e.unref(d)()]?" cur":""}`),style:e.normalizeStyle(n.opt.lity?.style||e.unref(l)[n.opt.channel]?.cfg?.lity?.style||{})},[e.createElementVNode("div",{class:"li",title:t.item?.[e.unref(s)()]||"",onPointerup:r[0]||(r[0]=e.withModifiers(i=>t.option?.setShow(t.item),["stop"]))},[e.createElementVNode("div",pn,[t.item?.[e.unref(c)()]?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.item[e.unref(c)()],alt:t.item?.[e.unref(s)()]||""},null,8,fn)):(e.openBlock(),e.createElementBlock("div",un,e.toDisplayString(t.item?.[e.unref(s)()]||""),1))]),e.createElementVNode("div",hn,[e.createElementVNode("div",gn,e.toDisplayString(t.item?.[e.unref(s)()]||""),1)])],40,mn),e.renderSlot(m.$slots,"btns")],6))}})},Symbol.toStringTag,{value:"Module"})),_n=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelListType",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$db:o}=n.ujt,a=Object.assign({"./_comps/list/blog.vue":rn,"./_comps/list/list.vue":dn,"./_comps/list/pic.vue":yn});function l(d){const c=d.match(/([^\\/]+)(?=\.vue$)/);return c?c[1]:null}for(let d in a)a[l(d)||d]=a[d],delete a[d];function s(d){return a[d]?.default?a[d].default:null}return(d,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(n.opt?.lity?.ty||e.unref(o)[n.opt.channel]?.cfg?.lity?.ty||"list")),{ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},{btns:e.withCtx(()=>[e.renderSlot(d.$slots,"btns")]),_:3},8,["ujt","opt","pm","item","option"]))}})},Symbol.toStringTag,{value:"Module"})),bn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelOpt",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o}=n.ujt,{channelLang:a}=o.useChannel(n);function l(d){document.querySelectorAll(d).forEach(c=>{c.classList.contains("as-channel-nohidden")?c.classList.remove("as-channel-nohidden"):c.classList.add("as-channel-nohidden"),console.log(c.classList)})}const s={toggleShow:l,channelLang:a};return(d,c)=>e.renderSlot(d.$slots,"default",{item:{},option:s},()=>[e.createElementVNode("div",{class:"as-channel-opt-class",onClick:c[0]||(c[0]=m=>s.toggleShow(".as-channel-class-area"))}," ☰ "+e.toDisplayString(s.channelLang("ui.class")||"Class"),1),e.createElementVNode("div",{class:"as-channel-opt-list",onClick:c[1]||(c[1]=m=>s.toggleShow(".as-channel-list-area"))}," ☰ "+e.toDisplayString(s.channelLang("ui.list")||"List"),1)])}})},Symbol.toStringTag,{value:"Module"})),kn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelOptAdd",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o}=n.ujt,{addItem:a,channelLang:l}=o.useChannel(n),s={addItem:a,channelLang:l};return(d,c)=>e.renderSlot(d.$slots,"default",{item:{},option:s},()=>[e.createElementVNode("div",{class:"as-channel-opta",onClick:c[0]||(c[0]=m=>s.addItem())}," ☰ "+e.toDisplayString(s.channelLang("ui.add")||"Add"),1)])}})},Symbol.toStringTag,{value:"Module"})),$n={class:"as-channel-pop-area"},wn={class:"as-channel-pop-area"},Cn={class:"as-channel-pop-area"},jn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelPop",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("PopBoxConfirm"),d=e.resolveComponent("ChannelShow"),c=e.resolveComponent("PopBox"),m=e.resolveComponent("ChannelEdit"),r=e.resolveComponent("ChannelAdd");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(s,{ujt:t.ujt,id:"popconfirm"+n.opt.channel},null,8,["ujt","id"]),t.opt.pop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(c,{ujt:t.ujt,id:"popshow"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",$n,[e.unref(o).location.query?.show&&!e.unref(o).location.query?.showty?(e.openBlock(),e.createBlock(d,{key:0,ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])):e.createCommentVNode("",!0)])]),_:1},8,["ujt","id"]),e.createVNode(c,{ujt:t.ujt,id:"popedit"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",wn,[e.unref(o).location.query?.show&&e.unref(o).location.query?.showty?(e.openBlock(),e.createBlock(m,{key:0,ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])):e.createCommentVNode("",!0)])]),_:1},8,["ujt","id"]),e.createVNode(c,{ujt:t.ujt,id:"popadd"+n.opt.channel},{default:e.withCtx(()=>[e.createElementVNode("div",Cn,[e.createVNode(r,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),_:1},8,["ujt","id"])],64)):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),Sn={class:"as-channel-pos-area"},En=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChannelPos",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o,$fn:a,$db:l}=n.ujt,{setChannelHash:s,channelLang:d,addItem:c}=a.useChannel(n),m={setChannelHash:s,channelLang:d,addItem:c};return(r,i)=>e.renderSlot(r.$slots,"default",{item:e.unref(o).location.query,option:m},()=>[e.createElementVNode("div",Sn,[e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[0]||(i[0]=e.withModifiers(p=>m.setChannelHash("class"),["stop"]))},e.toDisplayString(m.channelLang("ui.class")||"Class"),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[1]||(i[1]=e.withModifiers(p=>m.setChannelHash("list"),["stop"]))},e.toDisplayString(m.channelLang("ui.list")||"List"),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[2]||(i[2]=e.withModifiers(p=>m.addItem(),["stop"]))},e.toDisplayString(m.channelLang("ui.add")||"Add"),33),e.unref(l)[n.opt.channel]?.cfg?.url?.reg?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[3]||(i[3]=e.withModifiers(p=>m.setChannelHash("reg"),["stop"]))},e.toDisplayString(m.channelLang("ui.reg")),33),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[4]||(i[4]=e.withModifiers(p=>m.setChannelHash("login"),["stop"]))},e.toDisplayString(m.channelLang("ui.login")),33),e.unref(o).user?.info?.us?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-channel-pos",onPointerup:i[5]||(i[5]=e.withModifiers(p=>m.setChannelHash("editmy"),["stop"]))},e.toDisplayString(m.channelLang("ui.editmy")),33)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"as-channel-pos",onPointerup:i[6]||(i[6]=e.withModifiers(p=>m.setChannelHash("exit"),["stop"]))},e.toDisplayString(m.channelLang("ui.exit")),33)],64)):e.createCommentVNode("",!0)])],!0)}}),[["__scopeId","data-v-768d4f66"]])},Symbol.toStringTag,{value:"Module"})),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShow",props:{ujt:{},opt:{},pm:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{delItem:s,editItem:d,readItem:c,setShow:m,popConfirm:r,getSnKey:i,getTitleKey:p,getContentKey:f,getCommentsKey:u,channelLang:g,getBarData:y,channelBarShow:b,channelQkSave:h}=o.useChannel(n),{initChannelComments:$,saveChannelComments:_,resetChannelComments:k,commentsAction:S,commentsQKSave:C}=o.useChannelComments(n);!a[n.opt.channel]?.rfdata?.data&&l?.location?.query?.show&&c(l.location.query.show);const A={delItem:s,editItem:d,readItem:c,setShow:m,popConfirm:r,getSnKey:i,getTitleKey:p,getContentKey:f,getCommentsKey:u,channelLang:g,getBarData:y,channelBarShow:b,initChannelComments:$,saveChannelComments:_,resetChannelComments:k,channelQkSave:h,commentsAction:S,commentsQKSave:C};return(V,w)=>{const E=e.resolveComponent("ChannelShowType");return e.renderSlot(V.$slots,"default",{item:e.unref(a)[n.opt.channel],option:A},()=>[e.unref(a)[n.opt.channel]?.rfdata?.data?(e.openBlock(),e.createBlock(E,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:e.unref(a)[n.opt.channel],option:A},null,8,["ujt","opt","pm","item"])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),Vn={key:0,class:"as-channel-show-comments"},xn={class:"tit"},Nn={class:"form"},Pn={class:"as-btn-area"},Dn={key:0,class:"list"},zn={class:"li"},An={class:"co"},Mn={class:"opt as-lr-area"},On={class:"as-left"},Tn={class:"as-right"},Ln=["onClick"],Un=["onClick"],In=["onClick"],Rn={key:1,class:"as-nodata"},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChannelShowComments",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.reactive({comments:null,data:"",newcomments:{us:o.user.info.us,co:"",tm:"",xi:0,yi:0}}),s=e.watch(()=>n.item.rfdata.data[n.option.getSnKey()],()=>{"hi"in n.item.rfdata.data&&n.option.channelQkSave({hi:["+",1]},{nomsg:1}),n.option.initChannelComments(l,n.item.rfdata.data)},{immediate:!0});function d(c,m){a.popConfirm({full:2,con:n.option.channelLang("ui.commentsconfirm"+m),fn:()=>{n.option.commentsAction(c,m,1),n.option.commentsQKSave(l,n.item.rfdata)}})}return e.onBeforeUnmount(()=>{s&&s.stop()}),(c,m)=>{const r=e.resolveComponent("AsfTextarea");return t.option.getCommentsKey()in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",xn,e.toDisplayString(t.option.channelLang("ui.commentstit")),1),e.createElementVNode("div",Nn,[e.createVNode(r,{opt:{style:{height:"100px"}},modelValue:l.newcomments.co,"onUpdate:modelValue":m[0]||(m[0]=i=>l.newcomments.co=i)},null,8,["modelValue"])]),e.createElementVNode("div",Pn,[e.createElementVNode("div",{class:"as-btn-cur",onClick:m[1]||(m[1]=i=>t.option.saveChannelComments(l,t.item.rfdata))},e.toDisplayString(t.option.channelLang("ui.commentssubmit")),1),e.createElementVNode("div",{class:"as-btn",onClick:m[2]||(m[2]=i=>t.option.resetChannelComments(l))},e.toDisplayString(e.unref(o).lang.asai.reset),1)]),l?.comments?.length?(e.openBlock(),e.createElementBlock("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.comments,(i,p)=>(e.openBlock(),e.createElementBlock("div",zn,[e.createElementVNode("div",An,e.toDisplayString(i?.co),1),e.createElementVNode("div",Mn,[e.createElementVNode("div",On,[e.createElementVNode("div",null,e.toDisplayString(i?.us),1),e.createElementVNode("div",null,e.toDisplayString(i?.tm),1)]),e.createElementVNode("div",Tn,[e.createElementVNode("div",{onClick:f=>d(i,"xi")}," 👍"+e.toDisplayString(i?.xi),9,Ln),e.createElementVNode("div",{onClick:f=>d(i,"yi")}," 👎"+e.toDisplayString(i?.yi),9,Un),e.unref(o).user?.info?.lv>8||i?.yi>1e3?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:f=>{e.unref(a).popConfirm({full:2,con:e.unref(o).lang.asai.delconfirm,fn:()=>{t.option.commentsAction(l.comments,"del",p),t.option.commentsQKSave(l,t.item.rfdata)}})}},e.toDisplayString(e.unref(o).lang.asai.del),9,In)):e.createCommentVNode("",!0)])])]))),256))])):(e.openBlock(),e.createElementBlock("div",Rn,e.toDisplayString(t.option.channelLang("ui.commentsnone")),1))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-823a6715"]])},Symbol.toStringTag,{value:"Module"})),Wn={class:"as-channel-show-hci"},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShowHci",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Wn,["xi"in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",{key:0,class:"xi",onClick:o[0]||(o[0]=a=>t.option.channelQkSave({xi:["+",1]},{nomsg:1}))},e.toDisplayString(t.item.rfdata.lang.xi)+":"+e.toDisplayString(t.item.rfdata.data.xi),1)):e.createCommentVNode("",!0),"yi"in t.item.rfdata.data?(e.openBlock(),e.createElementBlock("div",{key:1,class:"yi",onClick:o[1]||(o[1]=a=>t.option.channelQkSave({yi:["+",1]},{nomsg:1}))},e.toDisplayString(t.item.rfdata.lang.yi)+":"+e.toDisplayString(t.item.rfdata.data.yi),1)):e.createCommentVNode("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),qn={class:"as-channel-show"},Kn={class:"tit"},Xn={class:"bar"},Yn={class:"con"},Gn=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"article",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",qn,[e.createElementVNode("div",Kn,e.toDisplayString(t.item.rfdata.data[t.option.getTitleKey()]),1),e.createElementVNode("div",Xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.option.getBarData(t.item.rfdata.data),a=>(e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("b",null,e.toDisplayString(t.item.rfdata.lang[a[0]]),1),e.createElementVNode("i",null,e.toDisplayString(t.option.channelBarShow(a)),1)]))),256))]),e.createElementVNode("div",Yn,e.toDisplayString(t.item.rfdata.data[t.option.getContentKey()]),1),e.renderSlot(n.$slots,"hci",{},void 0,!0),e.renderSlot(n.$slots,"comments",{},void 0,!0),e.renderSlot(n.$slots,"btns",{},void 0,!0)]))}}),[["__scopeId","data-v-dca02702"]])},Symbol.toStringTag,{value:"Module"})),Jn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelShowType",props:{ujt:{},opt:{},pm:{},item:{},option:{}},setup(t){const n=t,o=Object.assign({"./_comps/show/article.vue":Gn});function a(s){const d=s.match(/([^\\/]+)(?=\.vue$)/);return d?d[1]:null}for(let s in o)o[a(s)||s]=o[s],delete o[s];function l(s){return o[s]?.default?o[s].default:null}return(s,d)=>{const c=e.resolveComponent("ChannelBtnsManage"),m=e.resolveComponent("ChannelShowHci"),r=e.resolveComponent("ChannelShowComments");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(n.opt?.vity?.ty||"article")),{ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},{btns:e.withCtx(()=>[n.opt?.btnsty?(e.openBlock(),e.createBlock(c,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),hci:e.withCtx(()=>["xi"in t.item.rfdata.data||"yi"in t.item.rfdata.data?(e.openBlock(),e.createBlock(m,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),comments:e.withCtx(()=>[t.option.getCommentsKey()in t.item.rfdata.data?(e.openBlock(),e.createBlock(r,{key:0,ujt:t.ujt,opt:t.opt,pm:t.pm,item:t.item,option:t.option},null,8,["ujt","opt","pm","item","option"])):e.createCommentVNode("",!0)]),_:1},8,["ujt","opt","pm","item","option"])}}})},Symbol.toStringTag,{value:"Module"})),Qn={class:"as-channel-io"},Zn=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUpDown",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{channelBookUpload:l,channelBookDownload:s}=o.useChannel(n);function d(m){l(m)}const c={onUpload:d,channelBookUpload:l,channelBookDownload:s};return(m,r)=>{const i=e.resolveComponent("AsUploadTxt");return e.renderSlot(m.$slots,"default",{item:{},option:c},()=>[e.createElementVNode("button",Qn,[e.createVNode(i,{ujt:t.ujt,opt:{accept:".txt"},onOnUpload:c.onUpload},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lang.asai.upload),1)]),_:1},8,["ujt","onOnUpload"])]),e.createElementVNode("button",{class:"as-channel-io",onClick:r[0]||(r[0]=p=>c.channelBookDownload())},e.toDisplayString(e.unref(a).lang.asai.download),1)])}}})},Symbol.toStringTag,{value:"Module"})),vn={key:0,class:"as-usercard"},eo=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChannelUserCard",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l={};return(s,d)=>{const c=e.resolveComponent("AsSvg");return e.renderSlot(s.$slots,"default",{item:{},option:l},()=>[e.unref(a).lang?.asai?.usercard?(e.openBlock(),e.createElementBlock("div",vn,[e.createElementVNode("div",{onPointerdown:d[0]||(d[0]=m=>e.unref(o).sethash(e.unref(a).sys?.router?.config?.login||"user/login"))},[e.createVNode(c,{color:"var(--ch6)",height:"26px",src:"asai/login"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).lang.asai.usercard?.login),1)],32),e.createElementVNode("div",{onPointerdown:d[1]||(d[1]=m=>e.unref(o).As.localInit()),title:"ctrl+shift+r"},[e.createVNode(c,{color:"var(--ch6)",height:"26px",src:"asai/reset"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).lang.asai.usercard?.reset),1)],32)])):e.createCommentVNode("",!0)],!0)}}}),[["__scopeId","data-v-a425b87a"]])},Symbol.toStringTag,{value:"Module"})),to={class:"as-userdrop-pop"},no=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChannelUserDrop",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{initChannel:s,channelLang:d}=o.useChannel({ujt:n.ujt,opt:n.opt});s();function c(m=0){a.pop.popuserdrop.popstyle={width:"auto",height:"auto",top:"20px",right:"-20px"},a.pop.popuserdrop.zindex=101,a.pop.popuserdrop.stat=a.pop.popuserdrop.stat?0:1}return(m,r)=>{const i=e.resolveComponent("AsSvg"),p=e.resolveComponent("ChannelUserMain"),f=e.resolveComponent("PopDrop");return e.unref(l)[n.opt.channel]?.stat?(e.openBlock(),e.createBlock(f,{key:0,ujt:t.ujt,id:"popuserdrop"},{des:e.withCtx(()=>[e.unref(a).user.info?.us?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-userdrop-btn",onPointerdown:r[0]||(r[0]=e.withModifiers(u=>c(1),["stop"]))},[e.createVNode(i,{color:"var(--ch8)",height:"20px",src:"asai/user"}),e.createTextVNode(" "+e.toDisplayString(e.unref(a).user.info.us),1)],32)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-userdrop-btn",onPointerdown:r[1]||(r[1]=e.withModifiers(u=>c(0),["stop"]))},[e.createVNode(i,{color:"var(--ch8)",height:"20px",src:"asai/user"}),e.createTextVNode(" "+e.toDisplayString(e.unref(d)("ui.droptit")),1)],32))]),pop:e.withCtx(()=>[e.createElementVNode("div",to,[e.createVNode(p,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])])]),_:1},8,["ujt"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-44fd6403"]])},Symbol.toStringTag,{value:"Module"})),oo={key:0,class:"as-channel-user as-form-area"},ao={class:"as-channel-btns"},lo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserEdit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a,$global:l}=n.ujt,{getSnKey:s,channelLang:d,setChannelHash:c}=o.useChannel(n),{editChannelUserContent:m,initChannelUserEdit:r}=o.useChannelUser(n);r({pw:{pw:"",pwn:"",pwnn:""}});function i(f=0){!f||a[n.opt.channel].rfdata.pw.pwn?m({nomsg:1}).then(()=>{o.popConfirm({con:o.lg("asai.successedit"),fn:()=>{o.AsRouter.setHref(a[n.opt.channel].cfg?.url?.login)}})}).catch(u=>{l.msg.fn({type:"err",con:u})}):l.msg.fn({type:"err",con:o.lg("asai.failedit")})}const p={getSnKey:s,editUser:i,editChannelUserContent:m,channelLang:d,setChannelHash:c};return(f,u)=>{const g=e.resolveComponent("AsfInput"),y=e.resolveComponent("AsaiSelect");return e.renderSlot(f.$slots,"default",{item:e.unref(a)[n.opt.channel],option:p},()=>[e.unref(a)[n.opt.channel]?.rfdata?.data?.[e.unref(s)()]&&e.unref(a)[n.opt.channel].rfdata?.pw?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(p.channelLang("form.nm")),1),e.createVNode(g,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.nm,"onUpdate:modelValue":u[0]||(u[0]=b=>e.unref(a)[n.opt.channel].rfdata.data.nm=b)},null,8,["ujt","modelValue"])]),e.createVNode(y,{ujt:t.ujt,asaidata:e.unref(a)[n.opt.channel].rfdata,formdata:e.unref(a)[n.opt.channel].rfdata.data,formkey:"cl"},null,8,["ujt","asaidata","formdata"]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(p.channelLang("ui.pw")),1),e.createVNode(g,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pw,"onUpdate:modelValue":u[1]||(u[1]=b=>e.unref(a)[n.opt.channel].rfdata.pw.pw=b)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(p.channelLang("ui.pwn")),1),e.createVNode(g,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pwn,"onUpdate:modelValue":u[2]||(u[2]=b=>e.unref(a)[n.opt.channel].rfdata.pw.pwn=b)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(p.channelLang("ui.pwnn")),1),e.createVNode(g,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.pw.pwnn,"onUpdate:modelValue":u[3]||(u[3]=b=>e.unref(a)[n.opt.channel].rfdata.pw.pwnn=b)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",ao,[e.createElementVNode("div",{class:"cur",onPointerdown:u[4]||(u[4]=b=>p.editUser())},e.toDisplayString(p.channelLang("ui.editmysubmit")),33),e.renderSlot(f.$slots,"btn")])])):e.createCommentVNode("",!0)])}}})},Symbol.toStringTag,{value:"Module"})),so={class:"as-channel-btns"},io=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserExit",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{channelLang:l,setChannelHash:s}=o.useChannel(n),{channelUserExit:d}=o.useChannelUser(n);d();const c={channelUserExit:d,channelLang:l,setChannelHash:s};return(m,r)=>e.renderSlot(m.$slots,"default",{item:e.unref(a)[n.opt.channel],option:c},()=>[e.renderSlot(m.$slots,"tit",{},()=>[e.createElementVNode("h1",null,e.toDisplayString(c.channelLang("ui.exittit")),1)]),e.createElementVNode("div",so,[e.createElementVNode("div",{class:"li",onClick:r[0]||(r[0]=i=>c.setChannelHash("login"))},e.toDisplayString(c.channelLang("ui.login")),1),e.renderSlot(m.$slots,"btn")])])}})},Symbol.toStringTag,{value:"Module"})),ro={class:"as-channel-user as-form-area"},co={class:"as-channel-btns"},mo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserLogin",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{initAddChannel:l,channelLang:s,setChannelHash:d}=o.useChannel(n),{channelUserLogin:c,initChannelUserOnline:m}=o.useChannelUser(n);l();function r(p=null,f=null){c(p,f).then(u=>{m().then(g=>{a[n.opt.channel].cfg?.url?.login&&o.AsRouter.setHref(a[n.opt.channel].cfg?.url?.login)})}).catch(u=>{})}const i={channelUserLogin:c,channelLang:s,setChannelHash:d,userLogin:r,initChannelUserOnline:m};return(p,f)=>{const u=e.resolveComponent("AsfInput");return e.renderSlot(p.$slots,"default",{item:e.unref(a)[n.opt.channel],option:i},()=>[e.createElementVNode("div",ro,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(i.channelLang("form.us")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.us,"onUpdate:modelValue":f[0]||(f[0]=g=>e.unref(a)[n.opt.channel].rfdata.data.us=g)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(i.channelLang("form.pw")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.pw,"onUpdate:modelValue":f[1]||(f[1]=g=>e.unref(a)[n.opt.channel].rfdata.data.pw=g)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",co,[e.createElementVNode("div",{class:"cur",onClick:f[2]||(f[2]=g=>i.userLogin(e.unref(a)[n.opt.channel].rfdata.data,{go:1}))},e.toDisplayString(i.channelLang("ui.login")),1),e.renderSlot(p.$slots,"btn")])])])}}})},Symbol.toStringTag,{value:"Module"})),po={key:0,class:"as-usermain-area"},fo={class:"as-usermain-top"},uo={class:"as-usermain-page"},ho={class:"as-channel-column-area"},go=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChannelUserMain",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$global:a,$db:l}=n.ujt,{initChannel:s,channelLang:d}=o.useChannel({ujt:n.ujt,opt:n.opt});s();const{channelUserExit:c}=o.useChannelUser(n);function m(r){l[n.opt.channel].rfdata.dropty=r}return(r,i)=>{const p=e.resolveComponent("ChannelUserEdit"),f=e.resolveComponent("ChannelUserReg"),u=e.resolveComponent("ChannelUserLogin");return e.unref(l)[n.opt.channel]?.stat?(e.openBlock(),e.createElementBlock("div",po,[e.createElementVNode("div",fo,e.toDisplayString(e.unref(a).user.info?.us?e.unref(d)("ui.editmy"):e.unref(l)[n.opt.channel].rfdata.dropty===0?e.unref(d)("ui.reg"):e.unref(d)("ui.login")),1),e.createElementVNode("div",uo,[e.createElementVNode("div",ho,[e.unref(a).user.info?.us?(e.openBlock(),e.createBlock(p,{key:0,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:i[0]||(i[0]=g=>e.unref(c)())},e.toDisplayString(e.unref(d)("ui.exit")),1)]),_:1},8,["ujt","opt"])):e.unref(l)[n.opt.channel].rfdata.dropty===0?(e.openBlock(),e.createBlock(f,{key:1,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:i[1]||(i[1]=g=>m(1))},e.toDisplayString(e.unref(d)("ui.login")),1)]),_:1},8,["ujt","opt"])):(e.openBlock(),e.createBlock(u,{key:2,ujt:t.ujt,opt:t.opt},{btn:e.withCtx(()=>[e.createElementVNode("div",{onClick:i[2]||(i[2]=g=>m(0))},e.toDisplayString(e.unref(d)("ui.login")),1)]),_:1},8,["ujt","opt"]))])])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-069c5688"]])},Symbol.toStringTag,{value:"Module"})),yo={class:"as-channel-user as-form-area"},_o={class:"as-channel-btns"},bo=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ChannelUserReg",props:{ujt:{},opt:{}},setup(t){const n=t,{$fn:o,$db:a}=n.ujt,{initAddChannel:l,channelLang:s,setChannelHash:d}=o.useChannel(n),{channelUserReg:c}=o.useChannelUser(n);l();function m(i=null,p=null){c(i,p)}const r={channelUserReg:c,userReg:m,channelLang:s,setChannelHash:d};return(i,p)=>{const f=e.resolveComponent("AsfSelect"),u=e.resolveComponent("AsfInput");return e.renderSlot(i.$slots,"default",{item:e.unref(a)[n.opt.channel],option:r},()=>[e.createElementVNode("div",yo,[e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(r.channelLang("form.cl")),1),e.createVNode(f,{ujt:t.ujt,opt:{...e.unref(a)[n.opt.channel].rfdata?.rule?.cl?.opt||{},selectdata:e.unref(o).As.toArr(e.unref(a)[n.opt.channel].rfdata?.rule?.cl?.cldata)},modelValue:e.unref(a)[n.opt.channel].rfdata.data.cl,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(a)[n.opt.channel].rfdata.data.cl=g)},null,8,["ujt","opt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(r.channelLang("form.nm")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.nm,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(a)[n.opt.channel].rfdata.data.nm=g)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(r.channelLang("form.us")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"text"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.us,"onUpdate:modelValue":p[2]||(p[2]=g=>e.unref(a)[n.opt.channel].rfdata.data.us=g)},null,8,["ujt","modelValue"])]),e.createElementVNode("label",null,[e.createElementVNode("span",null,e.toDisplayString(r.channelLang("form.pw")),1),e.createVNode(u,{ujt:t.ujt,opt:{type:"password"},modelValue:e.unref(a)[n.opt.channel].rfdata.data.pw,"onUpdate:modelValue":p[3]||(p[3]=g=>e.unref(a)[n.opt.channel].rfdata.data.pw=g)},null,8,["ujt","modelValue"])]),e.createElementVNode("div",_o,[e.createElementVNode("div",{class:"cur",onClick:p[4]||(p[4]=g=>r.userReg(e.unref(a)[n.opt.channel].rfdata.data,{go:1}))},e.toDisplayString(r.channelLang("ui.reg")),1),e.renderSlot(i.$slots,"btn")])])])}}})},Symbol.toStringTag,{value:"Module"})),ko={class:"as-chat-room"},$o={class:"as-chat-header"},wo={class:"as-chat-tit"},Co={class:"as-chat-con"},jo={class:"chat-message-content"},So={class:"chat-message-us"},Eo={class:"chat-message-bubble"},Bo=["src"],Vo=["src"],xo={class:"as-chat-footer"},No={class:"as-chat-pop-area"},Po={key:0,class:"as-chat-pop"},Do={class:"as-chat-footer-main"},zo={class:"as-chat-opt"},Ao={class:"as-chat-input"},Mo=["placeholder"],Oo={key:1,class:"as-chat-stat"},To={class:"as-chat-btn"},Lo=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChatRoom",props:{ujt:{},room:{}},setup(t){const n=t,{$fn:o,$ws:a,$global:l}=n.ujt,{sendChatRoom:s}=o.useChatRoom(n),d=n?.room?.wsname||"web",c=n?.room?.roomname||"asai",m=e.ref(null),r=e.ref(null),i=e.reactive({mediaPress:null,mediaNew:null,mediaChunks:[],mediaWorking:!1,mediaBase64:null,optty:0,Inclusion:280,chatDomHeight:0,send:{us:n?.room?.us||l.user.info.us||"",ty:0,msg:""}});i.mediaFn=g=>{i.send.ty=i.optty,i.send.msg=g},i.optFn=()=>{i.optty=i.optty>0?0:1,i.send.ty=i.optty?i.optty:0,i.send.ty||(i.send.msg="")},i.insertFn=g=>{r.value&&(r.value.focus(),e.nextTick(()=>{try{const y=r.value;if(!y)return;const b=y.selectionStart!==null?y.selectionStart:y.value.length,h=y.selectionEnd!==null?y.selectionEnd:y.value.length,$=y.value,_=$.substring(0,b)+g+$.substring(h);y.value=_;const k=b+g.length;y.setSelectionRange(k,k),y.dispatchEvent(new Event("input",{bubbles:!0})),i.send.msg=_}catch{const h=r.value.value+g;r.value.value=h,r.value.dispatchEvent(new Event("input",{bubbles:!0})),i.send.msg=h,setTimeout(()=>{r.value&&r.value.setSelectionRange(h.length,h.length)},0)}}))};function p(){s(c,d,i.send,"")}const f=e.watch(()=>a.rooms?.[c]?.length,(g,y)=>{g!=y&&u()});function u(){m.value&&m.value.scrollTop>i.chatDomHeight-i.Inclusion&&e.nextTick(()=>{m.value&&(i.chatDomHeight=m.value.scrollHeight,m.value.scrollTop=i.chatDomHeight)})}return e.onBeforeUnmount(()=>{f&&f.stop()}),(g,y)=>{const b=e.resolveComponent("ChatRoomOpt");return e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("div",$o,[e.renderSlot(g.$slots,"chatheader",{opt:{chatlist:e.unref(a).rooms[e.unref(c)],chatdata:i,room:t.room}},()=>[e.createElementVNode("div",wo,e.toDisplayString(t.room?.lang?.chat||e.unref(l).lang.asaichat.chat),1)],!0)]),e.createElementVNode("div",{class:"as-chat-body",ref_key:"chatContainer",ref:m},[e.renderSlot(g.$slots,"chatbody",{opt:{chatlist:e.unref(a).rooms[e.unref(c)],chatdata:i,room:t.room}},()=>[e.createElementVNode("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).rooms[e.unref(c)],(h,$)=>(e.openBlock(),e.createElementBlock("div",{key:$,class:e.normalizeClass(["chat-message",{self:i.send.us===h.us}])},[e.createElementVNode("div",jo,[e.createElementVNode("div",So,e.toDisplayString(h.us),1),e.createElementVNode("div",Eo,[h.ty==4?(e.openBlock(),e.createElementBlock("video",{key:0,style:{"max-width":"100%"},src:h.msg,controls:""},null,8,Bo)):h.ty==3?(e.openBlock(),e.createElementBlock("audio",{key:1,style:{"max-width":"100%"},src:h.msg,controls:""},null,8,Vo)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(h.msg),1)],64))])])],2))),128))])],!0)],512),e.createElementVNode("div",xo,[e.createElementVNode("div",No,[i.optty?(e.openBlock(),e.createElementBlock("div",Po,[e.createVNode(b,{ujt:t.ujt,room:t.room,chatdata:i},null,8,["ujt","room","chatdata"])])):e.createCommentVNode("",!0)]),e.renderSlot(g.$slots,"chatfooter",{opt:{chatlist:e.unref(a).rooms[e.unref(c)],chatdata:i,room:t.room}},()=>[e.createElementVNode("div",Do,[e.createElementVNode("div",zo,[e.createElementVNode("div",{class:"button",onClick:y[0]||(y[0]=(...h)=>i.optFn&&i.optFn(...h))},e.toDisplayString(t.room?.lang?.opt||e.unref(l).lang.asaichat.opt),1)]),e.createElementVNode("div",Ao,[i.send.ty<3?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputDom",ref:r,type:"text","onUpdate:modelValue":y[1]||(y[1]=h=>i.send.msg=h),placeholder:t.room?.lang?.placeholder||e.unref(l).lang.asaichat.placeholder,onKeyup:e.withKeys(p,["enter"])},null,40,Mo)),[[e.vModelText,i.send.msg]]):(e.openBlock(),e.createElementBlock("div",Oo,e.toDisplayString(i.mediaWorking?i.send.ty==4?"正在录像...":"正在录音...":"等待操作..."),1))]),e.createElementVNode("div",To,[e.createElementVNode("button",{onClick:p},e.toDisplayString(t.room?.lang?.send||e.unref(l).lang.asaichat.send),1)])])],!0)])])}}}),[["__scopeId","data-v-fb092ce6"]])},Symbol.toStringTag,{value:"Module"})),Uo={class:"as-audio-area"},Io={class:"as-media-view"},Ro=["src"],Fo={class:"button-text"},Wo={key:0,class:"recording-effects"},Ho=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AudioRecorder",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{mediaOnPress:l,mediaOnHold:s,mediaOnRelease:d}=o.useMediaWork(n.ujt,n.mediadata),c=e.ref(null);return n.mediadata.mediaView=c,(m,r)=>{const i=e.resolveDirective("longpress");return e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",Io,[t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"as-media-working",ref_key:"mediaView",ref:c,autoplay:"",playsinline:"",muted:"",controls:""},null,512)):(e.openBlock(),e.createElementBlock("audio",{key:1,class:"as-media-show",src:t.mediadata.mediaBase64,autoplay:"",loop:"",controls:""},null,8,Ro))]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["record-button",{recording:t.mediadata.mediaWorking}])},[e.createElementVNode("span",Fo,e.toDisplayString(t.mediadata.mediaWorking?e.unref(a).lang.asaichat.AudioRecorderEnd:e.unref(a).lang.asaichat.AudioRecorderStart),1),t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("div",Wo,[...r[0]||(r[0]=[e.createStaticVNode('<div class="recording-indicator" data-v-f997cb37><div class="pulse" data-v-f997cb37></div><div class="pulse pulse-2" data-v-f997cb37></div><div class="pulse pulse-3" data-v-f997cb37></div></div><div class="audio-bars" data-v-f997cb37><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div><div class="bar" data-v-f997cb37></div></div>',2)])])):e.createCommentVNode("",!0)],2)),[[i,{press:e.unref(l),hold:e.unref(s),release:e.unref(d)}]])])}}}),[["__scopeId","data-v-f997cb37"]])},Symbol.toStringTag,{value:"Module"})),qo=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"EmojiList",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,o=e.computed(()=>Array.from("😀😃😄😁😆😅🤣😂🙂🙃😉😊😇🥰😍🤩😘😗😚😙🥲😋😛😜🤪😝🤑🤗🤭🤫🤔🤐🤨😐😑😶😏😒🙄😬🤥😌😔😪🤤😴😷🤒🤕🤢🤮🤧🥵🥶🥴😵🤯🤠🥳🥸😎🤓🧐😕😟🙁😮😯😲😳🥺😦😧😨😰😥😢😭😱😖😣😞😓😩😫🥱😤😡😠🤬👋🤚✋🖖👌🤌🤏🤞🤟🤘🤙👈👉👆🖕👇👍👎✊👊🤛🤜👏🙌👐🤲🤝🙏👦👧👨👩👴👵👶👱👮👲👳👷👸💂🎅👰👼💆💇🙍🙎🙅🙆💩🤡👹👺😈👿😺😸😹😻😼😽🙀😿😾🙈🙉🙊🐵🐒🐶🐕🐩🐺🐱🐈🐯🐅🐆🐴🐎🐮🐂🐃🐄🐷🐖🐗🐽🐏🐑🐐🐪🐫🐘🐭🐁🐀🐹🐰🐇🐻🐨🐼🐾🐔🐓🐣🐤🐥🐦🐧🐸🐊🐢🐍🐲🐉🐳🐋🐬🐟🐠🐡🐙🐚🐌🐛🐜🐝🐞🦋💐🌸💮🌹🌺🌻🌼🌷🌱🌲🌳🌴🌵🌾🌿🍀🍁🍂🍃🍇🍈🍉🍊🍋🍌🍍🍎🍏🍐🍑🍒🍓🍅🍆🌽🍄🌰🍞🍖🍗🍔🍟🍕🍳🍲🍱🍘🍙🍚🍛🍜🍝🍠🍢🍣🍤🍥🍡🍦🍧🍨🍩🍪🎂🍰🍫🍬🍭🍮🍯🍼🍵🍶🍷🍸🍹🍺🍻🍴🌍🌎🌏🌐🌋🗻🏠🏡🏢🏣🏤🏥🏦🏨🏩🏪🏫🏬🏭🏯🏰💒🗼🗽⛪⛲🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜🌝🌞⭐🌟🌠⛅🔥💧🌊💁🙋🙇👣👀👂👃👅👄💋🚶🏃👯💃👫👬👭💏💑👓👔👕👖👗👘👙👚👛👜👝🎒💼👞👟👠👡👢👑👒🎩🎓💄💅💍🌂💌💎🔪💈🚪🚽🚿🛁⌛⏳⌚⏰🎈🎉🎊🎎🎏🎐🎀🎁📯📻📱📲☎📞📟📠🔋🔌💻💽💾💿📀🎥📺📷📹📼🔍🔎🔬🔭📡💡🔦🏮📔📕📖📗📘📙📚📓📃📜📄📰📑🔖💰💴💵💶💷💸💳📧📨📩📤📥📦📫📪📬📭📮📝📁📂📅📆📇📈📉📊📋📌📍📎📏📐✂🔒🔓🔏🔐🔑🔨🔫🔧🔩🔗💉💊🚬🔮🚩🎌💦💨💣🚂🚃🚄🚅🚆🚇🚈🚉🚊🚝🚞🚋🚌🚍🚎🚏🚐🚑🚒🚓🚔🚕🚖🚗🚘🚚🚛🚜🚲⛽🚨🚥🚦🚧⚓⛵🚤🚢💺🚁🚟🚠🚡🚀🎪🎠🎡🎢🚣🛀🎫🏆⚽⚾🏀🏈🏉🎾🎱🎳⛳🎣🎽🎿🏂🏄🏇🏊🚴🚵🎯🎮🎲🎷🎸🎺🎻🎬🎭🎨🎰🀄🎴🔇🔈🔉🔊📢📣💤💢💬💭♨🌀🔔🔕💛💚💙💜🖤🤍🤎💘💝💖💗💓💞💕💌💯"));function a(l){const s=l.target.textContent;s?.length<10&&n.mediadata?.insertFn?.(s)}return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"as-emoji-area",onClick:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(d,c)=>(e.openBlock(),e.createElementBlock("i",{key:"emoji_"+c,class:"as-emoji-item"},e.toDisplayString(d),1))),128))]))}}),[["__scopeId","data-v-50968e0d"]])},Symbol.toStringTag,{value:"Module"})),Ko={class:"as-message-area"},Xo=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"MessageManager",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,{$fn:o,$global:a,$ws:l}=n.ujt;function s(){l.rooms[n.room.roomname]=[]}function d(){l.rooms[n.room.roomname]?.length&&o.As.downloadTxt((n.room?.lang?.chat||a.lang.asaichat.chat)+"("+n.room.roomname+`)
|
|
11
11
|
`+o.As.getTime(6)+`
|
|
12
12
|
|
|
13
|
-
`+l.rooms[n.room.roomname].map((
|
|
14
|
-
`),(n.room?.lang?.chat||a.lang.asaichat.chat)+"-"+n.room.roomname+".txt")}return(
|
|
15
|
-
`})},s.Shift=(d={})=>{n.keyMap.bd.Shift=!n.keyMap.bd.Shift},s.Ctrl=(d={})=>{n.keyMap.bd.Ctrl=!n.keyMap.bd.Ctrl},s.Hide=(d={})=>{o.keyboard.params?.ot?.fndscb(),o.keyboard.showkeyboard="",o.keyboard.params=null},s.Drag=(d={})=>{},s.Space=(d={})=>{n.keyMap.bd.Ctrl?(o.keyboard.areastyle={},n.keyMap.bd.Shift=!1,n.keyMap.bd.Ctrl=!1):i({...d,char:" "})},s.Cut=async(d={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.copyText&&o.keyboard.opt?.backText){o.keyboard.opt?.copyText()&&o.keyboard.opt?.backText();return}await a.As.copyToClipboard(d.elVal.slice(d.startPos,d.endPos)),d.startPos!=d.endPos&&await s.Backspace(d)}catch(c){console.error("copy fail: ",c)}},s.x=async(d={})=>{n.keyMap.bd.Ctrl?await s.Cut(d):i(d)},s.Copy=async(d={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.copyText){o.keyboard.opt?.copyText();return}await a.As.copyToClipboard(d.elVal.slice(d.startPos,d.endPos))}catch(c){console.error("copy fail: ",c)}},s.c=async(d={})=>{n.keyMap.bd.Ctrl?await s.Copy(d):i(d)},s.Paste=async(d={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.pasteText){o.keyboard.opt?.pasteText();return}const c=await a.As.readFromClipboard();i({...d,char:c})}catch(c){console.error("paste fail: ",c)}},s.v=async(d={})=>{n.keyMap.bd.Ctrl?await s.Paste(d):i(d)},s["▲"]=async(d={})=>{const f=d.elVal.split(".")[1]?.length||0;f?d.elVal=(+d.elVal+1/Math.pow(10,f)).toFixed(f):d.elVal++,r(d.elDom,d.elVal,d.startPos,0)},s["▼"]=async(d={})=>{const f=d.elVal.split(".")[1]?.length||0;f?d.elVal=(+d.elVal-1/Math.pow(10,f)).toFixed(f):d.elVal--,r(d.elDom,d.elVal,d.startPos,0)};function m(d={}){o.pop["popkeyboard"+d.key].stat=1}return n.keyMap.popkeys.forEach(d=>{d.startsWith("pop")?s[d]=(c={})=>{m(c),o.pop["popkeyboard"+d].fn=f=>{s.default({...c,key:f}),o.pop["popkeyboard"+d].stat=0}}:s[d]=(c={})=>{o.pop["popkeyboard"+d]={fn:f=>{s.default({...c,key:f})}}}}),{keysFun:s,updateInputValue:r,handleInsertChar:i}},Ba={class:"keyboard-area"},Va={class:"keyboard-top"},xa={class:"keyboard-menu"},Na=["onPointerdown"],Aa={class:"keyboard-opt"},Da={key:1,class:"keyboard-list"},Pa={key:0,class:"keyboard-zh"},za={class:"zh-keys"},Ma={key:0,class:"zh-list-area"},Oa={class:"zh-list"},Ta=["data-key"],La={class:"zh-desc"},Ua={key:1,class:"keyboard-zh"},Ia={class:"zh-desc"},Fa=["data-key"],Ra={key:2,class:"keyboard-key key-bg"},Wa=["data-key"],Ha={key:1},qa=["data-key"],Ka=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsKeyBoard",props:{ujt:{},opt:{}},setup(t){e.useCssVars(k=>({v05b376a9:s.cfg.theme.bg1,v05b38754:s.cfg.theme.fsd,v6347da88:s.cfg.theme.bg,v6347db2f:s.cfg.theme.gs,v6347db21:s.cfg.theme.ge,v05b376aa:s.cfg.theme.bg2,v05b376ec:s.cfg.theme.bgt,v05b376ab:s.cfg.theme.bg3,v6347db10:s.cfg.theme.fs}));const n=t,{$model:o,$global:a}=n.ujt,{initKeyboard:l}=Sa(n.ujt),s=e.reactive({...l()}),{keysFun:r}=Ea(n.ujt,{keyMap:s}),i=e.watch(()=>a.keyboard.showkeyboard,(k,y)=>{k&&k!==y&&f()}),m=e.computed(()=>s.askeytypes[a.keyboard.showkeyboard||".askey-default"]||s.askeytypes[".askey-default"]);function d(k){return k?.default?k.default:e.defineAsyncComponent(k)}const c=()=>{a.keyboard.params?.el&&(s.bd.pos=a.keyboard.params.el.selectionStart||0)},f=()=>{e.nextTick(()=>{setTimeout(()=>{c(),s.bd.Type=m?.value?.[0]},10)})},p=async k=>{const y=a.keyboard.params?.el;if(!y)return;const C=y.value;let b,$;b=y.selectionStart,$=y.selectionEnd,b==null&&(b=C.length,$=C.length),r[k]&&typeof r[k]=="function"?r[k]({key:k,elDom:y,elVal:C,startPos:b,endPos:$}):r.default({key:k,elDom:y,elVal:C,startPos:b,endPos:$,char:null,onsuggest:a.keyboard.params.type==="monaco"&&a.keyboard.opt?.pasteText?1:0})},u=k=>{const y=[];for(const[C,b]of Object.entries(o.data?.asai?.chinese||{}))C.startsWith(k)&&y.push(...b);return y},h=(k,y)=>{let C=!1;s.bd.Type==="Chinese"&&(k==="Backspace"?(s.bd.zhs&&(s.bd.zhs=s.bd.zhs.slice(0,-1),s.bd.zharr=u(s.bd.zhs),C=!0),s.bd.zhs||(s.bd.zharr=[],s.bd.zhindex=0)):["Space","Enter"].includes(k)?s.bd.zharr?.length&&(k=s.bd.zharr[s.bd.zhindex],s.bd.zhs="",s.bd.zhindex=0,s.bd.zharr=[]):"qwertyuiopasdfghjklzxcvbnm".includes(k)?(s.bd.zhs+=k,s.bd.zharr=u(s.bd.zhs),s.bd.zhindex=0,C=!0):k?.length>1&&r[k]||(s.bd.zhs&&(s.bd.zhs=""),s.bd.zharr?.length&&(y.classList.contains("zh-li")||(k=s.bd.zharr[0]+k),s.bd.zhs="",s.bd.zhindex=0,s.bd.zharr=[]))),!C&&p(k)},g=k=>{const y=k.target;if(!y.classList.contains("askey"))return;const C=y.dataset.key;if(!C)return;k.preventDefault(),k.stopPropagation();let b=y.classList.contains("zh-li");switch(k.type){case"pointerdown":!b&&h(C,y);break;case"pointerup":b&&h(C,y);break}};return e.onBeforeUnmount(()=>{i&&i.stop()}),(k,y)=>{const C=e.resolveComponent("PopDrop"),b=e.resolveDirective("dragzoom");return e.openBlock(),e.createElementBlock("div",{class:"keyboard-container",id:"keyboardarea",onPointerdown:g,onPointerup:g,onPointercancel:g},[e.createElementVNode("div",Ba,[e.withDirectives((e.openBlock(),e.createElementBlock("div",Va,[e.createElementVNode("div",xa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,$=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.bd.Type==$?"active":""),key:$,onPointerdown:e.withModifiers(w=>s.bd.Type=$,["stop"])},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.menu?.[$]||$),43,Na))),128))]),e.createElementVNode("div",Aa,[e.createElementVNode("div",null,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.Drag||"Drag"),1),e.createElementVNode("div",{onPointerdown:y[0]||(y[0]=e.withModifiers((...$)=>e.unref(r).Hide&&e.unref(r).Hide(...$),["stop"]))},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.Hide||"Hide"),33)])])),[[b,{ujt:t.ujt,pos:e.unref(a).keyboard.areastyle,domarea:"askeyboardarea",dommask:"askeyboardmask",scale:t.opt?.scale}]]),e.unref(a).keyboard.comps?.[s.bd.Type]?(e.openBlock(),e.createElementBlock("div",{key:0,onPointerdown:y[1]||(y[1]=$=>p(s.bd.Type)),class:"keyboard-comp"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(e.unref(a).keyboard.comps[s.bd.Type])),{ujt:t.ujt,onChange:e.unref(a).pop["popkeyboard"+s.bd.Type]?.fn},null,40,["ujt","onChange"]))],32)):(e.openBlock(),e.createElementBlock("div",Da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.mapkeys[s.bd.Type],($,w)=>(e.openBlock(),e.createElementBlock("div",{class:"keyboard-row",key:"row"+w},[s.bd.Type==="Chinese"&&w===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.bd.zhs?(e.openBlock(),e.createElementBlock("div",Pa,[e.createElementVNode("div",za,e.toDisplayString(s.bd.zhs),1),s.bd?.zharr?.length?(e.openBlock(),e.createElementBlock("div",Ma,[e.createElementVNode("div",Oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.bd.zharr,(_,j)=>(e.openBlock(),e.createElementBlock("div",{key:"zh"+j,class:e.normalizeClass(`askey zh-li${s.bd.zhindex==j?" zh-cur":""}`),"data-key":_},e.toDisplayString(_),11,Ta))),128))])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"zh-list-area",onPointerdown:y[2]||(y[2]=e.withModifiers(_=>s.bd.zhs="",["stop"]))},[e.createElementVNode("div",La,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.pynomatch),1)],32))])):(e.openBlock(),e.createElementBlock("div",Ua,[e.createElementVNode("div",Ia,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.pyclick),1)]))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList($,(_,j)=>(e.openBlock(),e.createElementBlock("div",{class:"keyboard-item",key:"k"+_?.[0],style:e.normalizeStyle({width:`${_[1]}%`})},[_[2]==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64)):_[3]?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(`askey keyboard-key${_[2]?" key-bg":""}${s.bd[_[3]]?" active":""}`),"data-key":_[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[_[0]]||_[0]),11,Fa)):_[0]==="Drag"?e.withDirectives((e.openBlock(),e.createElementBlock("button",Ra,[e.createTextVNode(e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[_[0]]||_[0]),1)])),[[b,{ujt:t.ujt,pos:e.unref(a).keyboard.areastyle,domarea:"askeyboardarea",dommask:"askeyboardmask",scale:t.opt?.scale}]]):s.popkeys.includes(_[0])?(e.openBlock(),e.createBlock(C,{key:3,ujt:t.ujt,id:"popkeyboard"+_[0]},{desarea:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(`askey keyboard-key${_[2]?" key-bg":""}`),"data-key":_[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[_[0]]||(s.bd.Shift?_[0].toUpperCase():_[0])),11,Wa)]),poparea:e.withCtx(()=>[e.unref(a).keyboard?.comps?.[_[0]]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass("as-pop-keyboard"+(s.popkeysx.includes(_[0])?"-r":""))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(e.unref(a).keyboard.comps[_[0]])),{ujt:t.ujt,onChange:e.unref(a).pop["popkeyboard"+_[0]].fn},null,40,["ujt","onChange"]))],2)):(e.openBlock(),e.createElementBlock("div",Ha,"No component!"))]),_:2},1032,["ujt","id"])):(e.openBlock(),e.createElementBlock("button",{key:4,class:e.normalizeClass(`askey keyboard-key${_[2]?" key-bg":""}`),"data-key":_[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[_[0]]||(s.bd.Shift?_[0].toUpperCase():_[0])),11,qa))],4))),128))]))),128))]))])],32)}}}),[["__scopeId","data-v-cc9a4f8e"]])},Symbol.toStringTag,{value:"Module"})),Xa=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsKeyBoardVue",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o,$model:a}=n.ujt,l=e.computed(()=>n.opt?.pos?.auto?{width:o.wd?.w,height:o.wd?.h}:{width:a.data.asai.keyboard.cfg?.size?.mw,height:a.data.asai.keyboard.cfg?.size?.mh}),s=e.computed(()=>o.keyboard.params?.ot?.style?.area?o.keyboard.params.ot.style.area:{width:l.value.width+"px",height:l.value.height+"px"}),r=e.computed(()=>{if(o.keyboard.params?.ot?.style?.main)return o.keyboard.params.ot.style.main;{const i={maxWidth:l.value.width,maxHeight:l.value.height};return o.keyboard.areastyle?.w==null&&(o.keyboard.areastyle.w=a.data.asai.keyboard.cfg?.size?.w),o.keyboard.areastyle?.h==null&&(o.keyboard.areastyle.h=a.data.asai.keyboard.cfg?.size?.h),o.keyboard.areastyle?.x==null&&(!n.opt?.pos?.auto||l.value.width)&&(o.keyboard.areastyle.x=(i.maxWidth-o.keyboard.areastyle.w)/2+n.opt?.pos?.x),o.keyboard.areastyle?.y==null&&(!n.opt?.pos?.auto||l.value.height)&&(o.keyboard.areastyle.y=i.maxHeight-o.keyboard.areastyle.h+n.opt?.pos?.y),i.maxWidth+="px",i.maxHeight+="px",i.transform=`translate(${o.keyboard.areastyle.x}px, ${o.keyboard.areastyle.y}px)`,i.width=o.keyboard.areastyle.w+"px",i.height=o.keyboard.areastyle.h+"px",i}});return e.onMounted(()=>{n.opt?.pos?.auto&&(o.wd.w=document?.documentElement?.clientWidth||document?.body?.clientWidth,o.wd.h=document?.documentElement?.clientHeight||document?.body?.clientHeight)}),(i,m)=>{const d=e.resolveComponent("AsKeyBoard"),c=e.resolveDirective("popresizezoom");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(s.value),id:"askeyboardmask"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:"askeyboardarea",style:e.normalizeStyle(r.value)},[e.createVNode(d,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],4)),[[c,{ujt:t.ujt,size:e.unref(o).keyboard.areastyle,scale:t.opt?.scale}]])],4)}}}),[["__scopeId","data-v-ce66c27e"]])},Symbol.toStringTag,{value:"Module"})),Ya={key:0,class:"as-link-area"},Ga={class:"as-link"},Ja={class:"as-link-type-tit"},Qa={key:0,class:"as-link-li"},Za={class:"as-link-li-tit"},va={class:"as-link-li-input"},el={key:0,class:"as-link-li-stat"},tl={class:"as-link-btns"},nl=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsLink",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a,$ws:l}=n.ujt,s=e.reactive({link:null});function r(){s.link=JSON.parse(JSON.stringify(o.link))}function i(){a.saveLink(s.link)}function m(){a.startLink().then(d=>{r()})}return e.onMounted(()=>{r()}),(d,c)=>{const f=e.resolveComponent("AsfInput");return s.link?(e.openBlock(),e.createElementBlock("div",Ya,[e.createElementVNode("div",Ga,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.link,(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:"as-link-type",key:"type"+u},[e.createElementVNode("div",Ja,e.toDisplayString(e.unref(o).lang.sys.link.class[u]),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(h,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"key"+g},[h?.close?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qa,[e.createElementVNode("div",Za,e.toDisplayString(e.unref(o).lang.sys.link[g]||g)+": ",1),e.createElementVNode("div",va,[e.createVNode(f,{ujt:t.ujt,opt:{type:"text"},modelValue:h.url,"onUpdate:modelValue":k=>h.url=k},null,8,["ujt","modelValue","onUpdate:modelValue"])]),u&&typeof u=="string"&&u=="ws"?(e.openBlock(),e.createElementBlock("div",el,e.toDisplayString(e.unref(l)?.[g]?.open?"☑":"☒"),1)):e.createCommentVNode("",!0)]))],64))),128))]))),128))]),e.createElementVNode("div",tl,[e.createElementVNode("div",{class:"btn",onClick:c[0]||(c[0]=p=>i())},"确认修改"),e.createElementVNode("div",{class:"btn",onClick:c[1]||(c[1]=p=>m())},"恢复默认"),e.createElementVNode("div",{class:"btn",onClick:c[2]||(c[2]=p=>r())},"取消修改")])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f4aeeac2"]])},Symbol.toStringTag,{value:"Module"})),ol={class:"novel-reader"},al={class:"reader-header"},ll={class:"header-content"},sl={class:"novel-title"},il={class:"search-container"},rl={class:"search-input-wrapper"},cl={key:0,class:"search-results"},dl=["onClick"],ml={class:"result-title"},fl=["innerHTML"],pl={key:1,class:"no-results"},ul={class:"reader-container"},hl={class:"volume-list"},gl={class:"sidebar-title"},yl=["onClick"],bl={class:"volume-title"},kl={class:"chapter-list"},_l=["onClick"],$l={class:"reader-content"},Cl={class:"content-container"},wl={class:"chapter-header"},jl={class:"chapter-title"},Sl={class:"chapter-meta"},El={key:0},Bl={class:"reader-controls"},Vl=["disabled"],xl={class:"font-controls"},Nl=["disabled"],Al={class:"font-size-display"},Dl=["disabled"],Pl=["disabled"],zl={key:0,class:"mobile-fab"},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsNovel",props:{ujt:{},book:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,{cmNovelData:l}=a.useNovel(n),s=e.reactive({tm:{timeout:null,starttime:0,endtime:0,wait:300,immediate:!1}}),r=e.ref(!1),i=e.ref(!1),m=e.ref(!1),d=e.ref(""),c=e.ref(16),f=e.ref([]),p=e.computed(()=>{let D={};return D=h.value?.find(T=>T.sn===o.location.query?.id),D?.sn||(D=l.value[0].cc[0].cc[0]),D}),u=e.ref([]),h=e.computed(()=>l.value[0].cc.flatMap(D=>D.cc)),g=e.computed(()=>h.value.findIndex(D=>D.sn===p.value?.sn)),k=e.computed(()=>g.value>0),y=e.computed(()=>g.value<h.value.length-1),C=()=>{r.value=!r.value},b=()=>{i.value=!i.value,i.value||(d.value="",u.value=[])},$=()=>{i.value=!1,d.value="",u.value=[]},w=D=>{const T=f.value.indexOf(D);T>-1?f.value.splice(T,1):f.value.push(D)},_=D=>{a.setquery({id:D.sn}),r.value=!1},j=()=>{g.value>0&&a.setquery({id:h.value[g.value-1].sn})},B=()=>{g.value<h.value.length-1&&a.setquery({id:h.value[g.value+1].sn})},S=()=>{c.value<24&&(c.value+=1)},E=()=>{c.value>12&&(c.value-=1)},x=()=>{a.As.debounce(()=>{const D=d.value.trim();if(!D){u.value=[];return}u.value=h.value?.filter(T=>T.co.includes(D)).slice(0,100).map(T=>{const U=T.co.split(D);return{sn:T.sn,li:T.li,preview:`...${U[0].slice(-20)}<b>${D}</b>${U[1].slice(0,20)}...`}})},s.tm)},V=D=>{D?.sn&&(a.setquery({id:D.sn}),i.value=!1,d.value="",u.value=[])},N=()=>{m.value=window.innerWidth<=768};return e.onMounted(()=>{N(),window.addEventListener("resize",N),l.value[0].cc.length>0&&f.value.push(l.value[0].cc[0].sn)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",N)}),(D,T)=>(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("header",al,[e.createElementVNode("div",ll,[e.createElementVNode("button",{class:"menu-toggle",onClick:C},[...T[1]||(T[1]=[e.createElementVNode("span",{class:"hamburger-icon"},null,-1)])]),e.createElementVNode("h1",sl,e.toDisplayString(e.unref(l)[0].ch),1),e.createElementVNode("button",{class:"search-toggle",onClick:b},[...T[2]||(T[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["search-panel",{active:i.value}])},[e.createElementVNode("div",il,[e.createElementVNode("div",rl,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":T[0]||(T[0]=U=>d.value=U),placeholder:"搜索小说内容...",class:"search-input",onInput:x},null,544),[[e.vModelText,d.value]]),e.createElementVNode("button",{class:"close-search",onClick:$},"×")]),u.value.length>0?(e.openBlock(),e.createElementBlock("div",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(U,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"search-result-item",onClick:G=>V(U)},[e.createElementVNode("div",ml,e.toDisplayString(U?.li),1),e.createElementVNode("div",{class:"result-preview",innerHTML:U?.preview},null,8,fl)],8,dl))),128))])):d.value&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",pl," 未找到相关内容 ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",ul,[e.createElementVNode("aside",{class:e.normalizeClass(["sidebar",{active:r.value}])},[e.createElementVNode("div",hl,[e.createElementVNode("h2",gl,e.toDisplayString(e.unref(l)[0].ch),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[0].cc,U=>(e.openBlock(),e.createElementBlock("div",{key:U.sn,class:"volume-item"},[e.createElementVNode("div",{class:"volume-header",onClick:R=>w(U.sn)},[e.createElementVNode("h3",bl,e.toDisplayString(U.cl),1),e.createElementVNode("span",{class:e.normalizeClass(["toggle-icon",{expanded:f.value.includes(U.sn)}])}," ▼ ",2)],8,yl),e.withDirectives(e.createElementVNode("ul",kl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.cc,R=>(e.openBlock(),e.createElementBlock("li",{key:R.sn,class:e.normalizeClass(["chapter-item",{active:p.value?.sn===R.sn}]),onClick:G=>_(R)},e.toDisplayString(R.li),11,_l))),128))],512),[[e.vShow,f.value.includes(U.sn)]])]))),128))])],2),e.createElementVNode("main",$l,[e.createElementVNode("div",Cl,[e.createElementVNode("div",wl,[e.createElementVNode("h2",jl,e.toDisplayString(p.value.li),1),e.createElementVNode("div",Sl,[e.createElementVNode("span",null," 第"+e.toDisplayString(g.value+1)+"章 ",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(p.value),U=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value[U]&&!["co","li","sn","ty"].includes(U)?(e.openBlock(),e.createElementBlock("span",El,e.toDisplayString(p.value[U]),1)):e.createCommentVNode("",!0)],64))),256))])]),e.createElementVNode("div",{class:"chapter-content",style:e.normalizeStyle({fontSize:c.value+"px"})},e.toDisplayString(p.value.co),5),e.createElementVNode("div",Bl,[e.createElementVNode("button",{class:"control-btn prev-next-btn",onClick:j,disabled:!k.value}," 上一章 ",8,Vl),e.createElementVNode("div",xl,[e.createElementVNode("button",{class:"font-btn",onClick:E,disabled:c.value<=12}," A- ",8,Nl),e.createElementVNode("span",Al,e.toDisplayString(c.value)+"px",1),e.createElementVNode("button",{class:"font-btn",onClick:S,disabled:c.value>=24}," A+ ",8,Dl)]),e.createElementVNode("button",{class:"control-btn prev-next-btn",onClick:B,disabled:!y.value}," 下一章 ",8,Pl)])])])]),m.value?(e.openBlock(),e.createElementBlock("div",zl,[e.createElementVNode("button",{class:"fab-btn",onClick:C},[...T[3]||(T[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.createElementVNode("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.createElementVNode("line",{x1:"3",y1:"18",x2:"21",y2:"18"})],-1)])])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-9e247518"]])},Symbol.toStringTag,{value:"Module"})),Ol={key:0,class:"as-pagebusy-area touch-none"},Tl={class:"as-pagebusy"},Ll={key:0,class:"as-pagebusy-v"},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsPageBusy",props:{ujt:{}},setup(t){e.useCssVars(r=>({v61912a2b:l.value}));const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>o.pagebusy?.zindex||9999);function s(){a.popConfirm({con:o.lang.asai.resetconfirm,zindex:l.value+1,fn:()=>{o.pagebusy=null,a.As.localInit()}})}return(r,i)=>{const m=e.resolveComponent("AsPageBusyGif"),d=e.resolveDirective("dbpointerdown");return e.unref(o).pagebusy?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ol,[e.createElementVNode("div",{class:"as-pagebusy-close",onClick:i[0]||(i[0]=e.withModifiers(c=>s(),["stop"]))}),e.createElementVNode("div",Tl,[e.createVNode(m,{ujt:t.ujt},null,8,["ujt"]),e.unref(o).pagebusy?.v?(e.openBlock(),e.createElementBlock("div",Ll,e.toDisplayString(e.unref(o).pagebusy?.v),1)):e.createCommentVNode("",!0)])])),[[d,()=>{e.unref(o).pagebusy?.keep||s()}]]):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-fd78dd2f"]])},Symbol.toStringTag,{value:"Module"})),Il=A(e.defineComponent({__name:"AsLoadingCircle",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:t=>t>0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"as-load-gif",style:e.normalizeStyle({width:t.size+"px",height:t.size+"px"})},null,4))}}),[["__scopeId","data-v-cef41e7c"]]),Fl=A(e.defineComponent({__name:"AsLoadingA3d",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:t=>t>0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"a3d-wrapper",style:e.normalizeStyle({"--cube-size":`${t.size}px`,"--half-size":`${t.size/2}px`})},[...o[0]||(o[0]=[e.createStaticVNode('<div class="a3d" data-v-59f08679><div class="a3d-face a3d-face-front" data-v-59f08679></div><div class="a3d-face a3d-face-back" data-v-59f08679></div><div class="a3d-face a3d-face-left" data-v-59f08679></div><div class="a3d-face a3d-face-right" data-v-59f08679></div><div class="a3d-face a3d-face-top" data-v-59f08679></div><div class="a3d-face a3d-face-bottom" data-v-59f08679></div></div>',1)])],4))}}),[["__scopeId","data-v-59f08679"]]),Rl=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsPageBusyGif",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>t.opt?.ty||e.unref(o).pagebusy?.ty?(e.openBlock(),e.createBlock(Fl,{key:0,size:t.opt?.size||e.unref(o).pagebusy?.size,ujt:t.ujt},null,8,["size","ujt"])):(e.openBlock(),e.createBlock(Il,{key:1,size:t.opt?.size||e.unref(o).pagebusy?.size,ujt:t.ujt},null,8,["size","ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Wl={class:"as-icon"},Hl={key:0,class:"as-icon-filter"},ql=["src"],Kl=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsSvg",props:{src:{type:String,default:""},height:{type:String,default:"24px"},width:{type:String,default:""},color:{type:String,default:"var(--cm8)"},showtype:{type:String,default:"mask"},webty:{type:String,default:""}},setup(t){const n=t,o=window?.$CFG?.webpath||"./";let a=e.ref("");const l=e.computed(()=>a.value?o+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+a.value+".svg":n.src.startsWith("http")||n.src.endsWith(".svg")||n.src.endsWith(".png")?n.src:o+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+n.src+".svg");function s(){a.value="default"}function r(){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 i(){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,d)=>(e.openBlock(),e.createElementBlock("i",Wl,[t.showtype==="filter"?(e.openBlock(),e.createElementBlock("i",Hl,[e.createElementVNode("img",{style:e.normalizeStyle(i()),src:l.value,onError:d[0]||(d[0]=c=>s())},null,44,ql)])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"as-icon-mask",style:e.normalizeStyle(r())},null,4))]))}}),[["__scopeId","data-v-01631e7e"]])},Symbol.toStringTag,{value:"Module"})),Xl=["accept"],Yl=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsUploadFile",props:{ujt:{},opt:{}},emits:["onUpload"],setup(t,{emit:n}){const o=t,{$fn:a}=o.ujt,l=n,s=e.ref(null);function r(m){const d=m.target.files[0];!o.opt?.size||d.size<=o.opt?.size?a.As.readFile(d).then(c=>{a.apisys.apiPost(`/api/asaifile/manage/upbase64/?path=${o.opt.path}`,c).then(f=>{l("onUpload",f?.data,d),s.value.value=""})}):(l("onUpload","",d),s.value.value="")}function i(){s.value.click()}return(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:"as-upload-file",onClick:d[0]||(d[0]=c=>i())},[e.createElementVNode("input",{hidden:"",ref_key:"rfUploadDom",ref:s,type:"file",accept:t.opt?.accept||".zip",onChange:r},null,40,Xl),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lg("asai.upload")),1)],!0)]))}}),[["__scopeId","data-v-412e390b"]])},Symbol.toStringTag,{value:"Module"})),Gl=["accept"],Jl=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsUploadTxt",props:{ujt:{},opt:{}},emits:["onUpload"],setup(t,{emit:n}){const o=t,{$fn:a}=o.ujt,l=n,s=e.ref(null);function r(m){const d=m.target.files[0];if(d)if(!o.opt?.size||d.size<=o.opt?.size){const c=new FileReader;c.onload=f=>{const p=f.target?.result;l("onUpload",p,d),s.value.value=""},c.readAsText(d)}else l("onUpload","",d),s.value.value=""}function i(){s.value.click()}return(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:"as-upload-txt",onClick:d[0]||(d[0]=c=>i())},[e.createElementVNode("input",{hidden:"",ref_key:"rfUploadDom",ref:s,type:"file",accept:t.opt?.accept||".txt,.json",onChange:r},null,40,Gl),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lg("asai.upload")),1)],!0)]))}}),[["__scopeId","data-v-c243814a"]])},Symbol.toStringTag,{value:"Module"})),Ql=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChangeLang",props:{ujt:{},fn:{}},setup(t){const n=t,{$fn:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"as-lang",onClick:l[0]||(l[0]=s=>t.fn?t.fn():e.unref(o).changelang("auto"))},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).lg("asai.langs.default")),1)],!0)]))}}),[["__scopeId","data-v-d95d3e1f"]])},Symbol.toStringTag,{value:"Module"})),Zl=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ChangeTheme",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"as-theme",onClick:s[0]||(s[0]=r=>e.unref(o).changetheme("auto"))},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).lg("asai.theme"+(e.unref(a).config.theme?.includes("dark")?"light":"dark"))),1)],!0)]))}}),[["__scopeId","data-v-a26abbd1"]])},Symbol.toStringTag,{value:"Module"})),vl={class:"container"},es={key:0,class:"preview-wrapper"},ts=["src"],ns={class:"controls"},os={key:0,class:"result-preview"},as=["src"],ls=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"ImgUploadCut",props:{ujt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,{$fn:a,$global:l}=o.ujt,s=n,r=e.computed({get(){return o.modelValue},set(B){s("update:modelValue",B)}}),i=e.ref(""),m=e.ref(""),d=e.ref(null),c=e.ref(null),f=e.ref({x:0,y:0,width:0,height:0,maxWidth:0,maxHeight:0}),p=e.ref({type:null,startX:0,startY:0,originalX:0,originalY:0,originalWidth:0,originalHeight:0,direction:null}),u=e.computed(()=>({transform:`translate(${f.value.x}px, ${f.value.y}px)`,width:`${f.value.width}px`,height:`${f.value.height}px`})),h=e.computed(()=>f.value.width>0&&f.value.height>0),g=B=>{const S=B.target.files[0];if(!S)return;const E=new FileReader;E.onload=x=>{i.value=x.target.result,m.value=""},E.readAsDataURL(S)},k=()=>{const B=d.value,S=c.value;if(!B||!S)return;const E=Math.min(S.clientWidth,B.naturalWidth),x=Math.min(S.clientHeight,B.naturalHeight),V=Math.min(E*.8,B.naturalWidth),N=Math.min(x*.8,B.naturalHeight);f.value={x:(E-V)/2,y:(x-N)/2,width:V,height:N,maxWidth:E,maxHeight:x}},y=(B,S=null)=>{const E=window.event||event,x=E.touches?E.touches[0]:E;p.value={type:B,startX:x.clientX,startY:x.clientY,originalX:f.value.x,originalY:f.value.y,originalWidth:f.value.width,originalHeight:f.value.height,direction:S};const V=N=>{requestAnimationFrame(()=>{B==="move"?C(N):b(N)})};window.addEventListener("mousemove",V),window.addEventListener("touchmove",V),window.addEventListener("mouseup",$),window.addEventListener("touchend",$)},C=B=>{const S=window.event||B,E=S.touches?S.touches[0]:S;if(p.value.type!=="move")return;const x=E.clientX-p.value.startX,V=E.clientY-p.value.startY,N=Math.max(0,Math.min(p.value.originalX+x,f.value.maxWidth-f.value.width)),D=Math.max(0,Math.min(p.value.originalY+V,f.value.maxHeight-f.value.height));Object.assign(f.value,{x:N,y:D})},b=B=>{const S=window.event||B,E=S.touches?S.touches[0]:S;if(p.value.type!=="resize")return;const x=E.clientX-p.value.startX,V=E.clientY-p.value.startY,N=p.value.direction;let D=p.value.originalWidth,T=p.value.originalHeight,U=p.value.originalX,R=p.value.originalY;switch(N){case"tr":D=Math.max(100,Math.min(p.value.originalWidth+x,f.value.maxWidth-U)),T=Math.max(100,p.value.originalHeight-V),R=Math.max(0,p.value.originalY+V);break;case"tl":D=Math.max(100,p.value.originalWidth-x),T=Math.max(100,p.value.originalHeight-V),U=Math.max(0,p.value.originalX+x),R=Math.max(0,p.value.originalY+V);break;case"br":D=Math.max(100,p.value.originalWidth+x),T=Math.max(100,p.value.originalHeight+V);break;case"bl":D=Math.max(100,p.value.originalWidth-x),T=Math.max(100,p.value.originalHeight+V),U=Math.max(0,p.value.originalX+x);break}D=Math.min(D,f.value.maxWidth-U),T=Math.min(T,f.value.maxHeight-R),Object.assign(f.value,{x:U,y:R,width:D,height:T})},$=()=>{p.value.type=null,window.removeEventListener("mousemove",C),window.removeEventListener("touchmove",C),window.removeEventListener("mousemove",b),window.removeEventListener("touchmove",b),window.removeEventListener("mouseup",$),window.removeEventListener("touchend",$)},w=()=>{const B=d.value,S=B.naturalWidth/B.width,E=B.naturalHeight/B.height,x=Math.min(f.value.width*S,B.naturalWidth),V=Math.min(f.value.height*E,B.naturalHeight),N=document.createElement("canvas");N.width=x,N.height=V,N.getContext("2d").drawImage(B,f.value.x*S,f.value.y*E,x,V,0,0,x,V),m.value=N.toDataURL("image/png",.9)},_=()=>{const B=document.createElement("a");B.download="cropped-image.png",B.href=m.value,B.click()},j=()=>{const B=m.value.split(",")[1],S=a.As.Uuid();a.apisys.apiPost("/api/asaifile/manage/upbase64/?path="+l.sys.path.updir+S+".png",B).then(E=>{r.value=E.data})};return(B,S)=>(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("input",{type:"file",accept:"image/*",onChange:g},null,32),i.value?(e.openBlock(),e.createElementBlock("div",es,[e.createElementVNode("div",{class:"preview-container",ref_key:"previewContainer",ref:c},[e.createElementVNode("img",{ref_key:"previewImage",ref:d,src:i.value,onLoad:k},null,40,ts),e.withDirectives(e.createElementVNode("div",{class:"crop-box",style:e.normalizeStyle(u.value),onPointerdown:S[8]||(S[8]=e.withModifiers(E=>y("move"),["prevent"])),onTouchstart:S[9]||(S[9]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:"crop-handle top-left",onPointerdown:S[0]||(S[0]=e.withModifiers(E=>y("resize","tl"),["stop"])),onTouchstart:S[1]||(S[1]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle top-right",onPointerdown:S[2]||(S[2]=e.withModifiers(E=>y("resize","tr"),["stop"])),onTouchstart:S[3]||(S[3]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle bottom-left",onPointerdown:S[4]||(S[4]=e.withModifiers(E=>y("resize","bl"),["stop"])),onTouchstart:S[5]||(S[5]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle bottom-right",onPointerdown:S[6]||(S[6]=e.withModifiers(E=>y("resize","br"),["stop"])),onTouchstart:S[7]||(S[7]=e.withModifiers(()=>{},["stop"]))},null,32)],36),[[e.vShow,h.value]])],512),e.createElementVNode("div",ns,[e.createElementVNode("button",{onPointerdown:w,onTouchstart:S[10]||(S[10]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.confirm")),33),m.value?(e.openBlock(),e.createElementBlock("button",{key:0,onPointerdown:_,onTouchstart:S[11]||(S[11]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.download")),33)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("button",{key:1,onPointerdown:j,onTouchstart:S[12]||(S[12]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.upload")),33)):e.createCommentVNode("",!0)]),m.value?(e.openBlock(),e.createElementBlock("div",os,[e.createElementVNode("img",{src:m.value},null,8,as)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-1390d8b9"]])},Symbol.toStringTag,{value:"Module"})),ss={class:"as-json-area as-form-line"},is={key:0,class:"as-json-tit"},rs=["value"],cs={class:"as-json-main"},ds={key:1,class:"as-json-btns"},ms=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"JsonEditor",props:{ujt:{},asaidata:{},fnapi:{}},setup(t){const n=t,{$fn:o}=n.ujt;!n.asaidata?.data&&n.asaidata.path&&a(),n.asaidata.ty==="txt"&&(n.asaidata.data=JSON.stringify(n.asaidata.data,null,2));function a(){n.fnapi?.apiGet("/api/asaijson/manage/select/?path="+n.asaidata.path).then(r=>{n.asaidata.data=r.data})}function l(){n.fnapi?.apiGet("/api/asaijson/manage/delete/?path="+n.asaidata.path).then(r=>{})}function s(){n.fnapi?.apiPost("/api/asaijson/manage/update/?path="+n.asaidata.path,n.asaidata.data).then(r=>{})}return(r,i)=>{const m=e.resolveComponent("AsaiForm");return e.openBlock(),e.createElementBlock("div",ss,[t.asaidata.btn?(e.openBlock(),e.createElementBlock("div",is,[e.createElementVNode("button",{onClick:i[0]||(i[0]=d=>a())},e.toDisplayString(e.unref(o).lg("asai.read")),1),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":i[1]||(i[1]=d=>t.asaidata.path=d)},null,512),[[e.vModelText,t.asaidata.path]]),t.asaidata.list?.length?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":i[2]||(i[2]=d=>t.asaidata.path=d)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.asaidata.list,d=>(e.openBlock(),e.createElementBlock("option",{value:d.value},e.toDisplayString(d.label),9,rs))),256))],512)),[[e.vModelSelect,t.asaidata.path]]):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",cs,[t.asaidata.ty=="txt"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,class:"as-json-txt","onUpdate:modelValue":i[3]||(i[3]=d=>t.asaidata.data=d)},null,512)),[[e.vModelText,t.asaidata.data]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.asaidata.eq>1?Array.isArray(t.asaidata)?"[":"{":"")+" ",1),e.createVNode(m,{ujt:t.ujt,asaidata:t.asaidata},null,8,["ujt","asaidata"]),e.createTextVNode(" "+e.toDisplayString(t.asaidata.eq>1?Array.isArray(t.asaidata)?"]":"}":""),1)],64))]),t.asaidata.btn?(e.openBlock(),e.createElementBlock("div",ds,[e.createElementVNode("button",{onClick:i[4]||(i[4]=d=>s())},e.toDisplayString(e.unref(o).lg("asai.submit")),1),e.createElementVNode("button",{onClick:i[5]||(i[5]=d=>l())},e.toDisplayString(e.unref(o).lg("asai.del")),1)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-1ab9e67c"]])},Symbol.toStringTag,{value:"Module"})),fs={key:0,class:"as-ed-dir"},ps={key:2,class:"as-ed-for"},us={class:"as-ed-item"},hs={key:1,class:"as-ed-dir"},gs={class:"as-ed-for"},ys={class:"as-ed-index"},bs={key:3,class:"as-ed-span"},Y=A(e.defineComponent({__name:"JsonTree",props:{ckey:{},cdata:{},cval:{}},setup(t){const n=t,o=e.reactive({});o.publishlist=!0,n?.ckey==="publishlist"&&n?.cdata&&n?.cdata[n?.ckey]&&Object.keys(n?.cdata[n?.ckey]).forEach(r=>{o[r]=!0});const a=e.computed(()=>{let r=typeof n.cdata[n.ckey];if(r==="object"){if(n.cdata[n.ckey]&&n.cdata[n.ckey]["@path"])return"path";if(n.cdata[n.ckey]){if(Array.isArray(n.cdata[n.ckey]))return"array"}else return"null"}return r});function l(r){o[r]=!o[r]}function s(){if(n?.cdata[n.ckey]["@path"]&&n?.cval?.apikeys){const r=n.cval.apikeys.findIndex(i=>i===n.cdata[n.ckey]["@path"]);r>-1?n.cval.apikeys.splice(r,1):n.cval.apikeys.push(n.cdata[n.ckey]["@path"])}n.cval.setapikeys(n.cval.apikeys)}return(r,i)=>a.value==="object"?(e.openBlock(),e.createElementBlock("div",fs,[t.ckey!=="publishlist"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o[t.ckey]?(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-ed-mg",onClick:i[1]||(i[1]=m=>l(t.ckey))}," - "+e.toDisplayString(t.ckey),1)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-ed-mg",onClick:i[0]||(i[0]=m=>l(t.ckey))}," + "+e.toDisplayString(t.ckey),1)),o[t.ckey]?(e.openBlock(),e.createElementBlock("div",ps,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(t.cdata[t.ckey]),m=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:m},[e.createElementVNode("div",us,[e.createVNode(Y,{cval:t.cval,ckey:m,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])])]))),128))])):e.createCommentVNode("",!0)],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Object.keys(t.cdata[t.ckey]),m=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:m},[e.createVNode(Y,{cval:t.cval,ckey:m,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])]))),128))])):a.value==="array"?(e.openBlock(),e.createElementBlock("div",hs,[e.createElementVNode("div",{class:"as-ed-mg",onClick:l},"+ "+e.toDisplayString(t.ckey),1),e.createElementVNode("div",gs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cdata[t.ckey],(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:d},[e.createElementVNode("div",ys,[e.createVNode(Y,{cval:t.cval,ckey:d,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])])]))),128))])])):a.value==="path"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(n.cval.apikeys.includes(n.cdata[n.ckey]["@path"])?"as-ed-path-cur":"as-ed-path"),onClick:i[2]||(i[2]=m=>s())},e.toDisplayString(t.ckey),3)):(e.openBlock(),e.createElementBlock("span",bs,e.toDisplayString(t.ckey),1))}}),[["__scopeId","data-v-b05aaab0"]]),ks=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"})),_s={class:"as-floating-menu"},$s={key:0},Cs={key:1},ws=["onPointerup"],js=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"MenuShowFix",props:{ujt:{},menus:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.ref(!1);function s(){l.value=!l.value}const r=e.computed(()=>[{value:"/",label:o.lg("asai.home"),type:"module"},{fn:()=>o.changetheme("auto"),label:o.lg("asai.theme"),type:"module"},{fn:()=>o.changelang("auto"),label:o.lg("asai.langs.default"),type:"module"},...n.menus||[]]);return(i,m)=>!e.unref(a).sys||e.unref(a).sys.devlevel>1?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",_s,[e.createElementVNode("button",{class:"as-floating-button",onClick:s},[l.value?(e.openBlock(),e.createElementBlock("span",$s,"×")):(e.openBlock(),e.createElementBlock("span",Cs,"☰"))]),e.createElementVNode("ul",{class:e.normalizeClass(["as-floating-menus",{open:l.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,c)=>(e.openBlock(),e.createElementBlock("li",{key:"menu"+c,class:e.normalizeClass(`${d.type==="module"?"module ":""}${d.value&&e.unref(a).location.hash.includes(d.value)?"active":""}`),onPointerup:f=>d.value?e.unref(o).sethash(d.value):d?.fn?.()},e.toDisplayString(c+1)+". "+e.toDisplayString(d.label||d.value),43,ws))),128))],2)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07d2f365"]])},Symbol.toStringTag,{value:"Module"})),Ss={class:"app-menu-area"},Es=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"RouterMap",props:{ujt:{},menus:{}},setup(t){const n=t,{$fn:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",Ss,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menus,s=>(e.openBlock(),e.createElementBlock("div",{class:"app-menu",onClick:l[0]||(l[0]=r=>e.unref(o).sethash("item.value"))},e.toDisplayString(s.label),1))),256))]))}}),[["__scopeId","data-v-dd49bf80"]])},Symbol.toStringTag,{value:"Module"})),Bs=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouterView",props:{ujt:{},ty:{}},setup(t){const n=t,{$model:o,$fn:a,$global:l}=n.ujt,s=e.shallowReactive({comp:null});a.getcomp=i=>{try{try{return e.defineAsyncComponent(o.comps[`./${i}.vue`])}catch{return i&&i.endsWith("/default")?e.defineAsyncComponent(o.comps[`./${i.slice(0,-8)}.vue`]):e.defineAsyncComponent(()=>Promise.resolve().then(()=>ke))}}catch{return e.defineAsyncComponent(()=>Promise.resolve().then(()=>ke))}};const r=e.watch(()=>l.location.comps[n.ty],(i,m)=>{i&&i!==m&&(s.comp=a.getcomp(i))},{immediate:!0});return e.onBeforeUnmount(()=>{r&&r.stop()}),(i,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(s).comp),{ujt:t.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Vs=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"VirtualList",props:{items:{type:Array,required:!0},itemHeight:{type:Number,default:50},buffer:{type:Number,default:5}},setup(t){const n=t,o=e.ref(null),a=e.ref(0),l=e.ref(0),s=e.ref(0),r=e.ref(new Array(n.items.length).fill(Math.round(n.itemHeight))),i=new Map,m=e.computed(()=>Math.round(n.items.reduce((g,k,y)=>g+d(y),0))),d=g=>g<0||g>=n.items.length?0:Math.round(r.value[g]??n.itemHeight),c=()=>{if(!o.value)return{start:0,end:Math.min(n.items.length,n.buffer*3)};const g=a.value,k=o.value.clientHeight;let y=0,C=n.items.length;for(;y<C;){const _=y+C>>>1;p(_)<=g?y=_+1:C=_}const b=Math.max(0,y-1),$=Math.ceil(k/n.itemHeight)+n.buffer*2,w=Math.min(n.items.length,b+$);return{start:b,end:w}},f=e.computed(()=>{const{start:g,end:k}=c();return n.items.slice(g,k).map((y,C)=>{const b=g+C;return{index:b,id:y.id||b,data:y,offset:p(b)}})}),p=g=>{if(g<=0)return 0;if(i.has(g))return i.get(g);let k=g-1;for(;k>0&&!i.has(k);)k--;let y=k>0?i.get(k):0;for(let b=k;b<g;b++)y+=d(b);const C=Math.round(y);return i.set(g,C),C},u=()=>{l.value&&cancelAnimationFrame(l.value),l.value=requestAnimationFrame(()=>{o.value&&(a.value=Math.round(o.value.scrollTop),s.value&&clearTimeout(s.value),s.value=window.setTimeout(()=>{const{start:g,end:k}=c(),y=n.buffer*2;for(const C of i.keys())(C<g-y||C>k+y)&&i.delete(C)},150))})};let h=null;return e.onMounted(()=>{o.value&&u(),h=e.watch(()=>n.items.length,g=>{g>r.value.length?r.value=[...r.value,...new Array(g-r.value.length).fill(Math.round(n.itemHeight))]:g<r.value.length&&(r.value=r.value.slice(0,g)),i.clear()})}),e.onBeforeUnmount(()=>{h&&h.stop(),l.value&&cancelAnimationFrame(l.value),s.value&&clearTimeout(s.value)}),(g,k)=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-container",onScroll:u,ref_key:"container",ref:o,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(f.value,y=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-item",key:"as"+y.index,style:e.normalizeStyle({transform:`translateY(${y.offset}px)`})},[e.renderSlot(g.$slots,"default",{item:y},void 0,!0)],4))),128))],4)],544))}}),[["__scopeId","data-v-ab56f7c3"]])},Symbol.toStringTag,{value:"Module"})),xs=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ZoomContainer",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;o.scale=1;const a=e.ref(null);let l=null;const s=()=>{const i=Math.min(window.innerWidth/(o.sys?.zoomwidth||1920),window.innerHeight/(o.sys?.zoomheight||1080));o.scale=i.toFixed(2)},r=()=>{clearTimeout(l),l=setTimeout(()=>{requestAnimationFrame(s)},150)};return o.cmscale=e.computed(()=>({width:o.sys?.zoomwidth?o.sys.zoomwidth+"px":"1920px",height:o.sys?.zoomheight?o.sys.zoomheight+"px":"1080px",transform:`scale(${o.scale}) translate(-50%,-50%)`})),e.onMounted(()=>{e.nextTick(s),window.addEventListener("resize",r)}),e.onUnmounted(()=>{window.removeEventListener("resize",r),clearTimeout(l)}),(i,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"zoom-container",id:"asaizoomarea",style:e.normalizeStyle(e.unref(o).cmscale)},[e.renderSlot(i.$slots,"default")],4))}})},Symbol.toStringTag,{value:"Module"})),Ns=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ZoomContainerStyle",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"zoom-container-style",style:e.normalizeStyle(e.unref(o).cmscale)},[e.renderSlot(a.$slots,"default")],4))}})},Symbol.toStringTag,{value:"Module"})),As={key:3},oe=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiFormLabel",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t;return(o,a)=>{const l=e.resolveComponent("AsaiFormLabelArea");return e.openBlock(),e.createBlock(l,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[n.asaidata.notit?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64)):Array.isArray(n.formdata)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"as-label-ico-arr":t.asaidata.ic>1&&typeof n.formdata[t.formkey]!="number","as-label-ico-arr-num":t.asaidata.ic>1&&typeof n.formdata[t.formkey]=="number","as-label-require":t.asaidata?.rule?.[t.formkey]?.require})},null,2)):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({"as-label-ico":t.asaidata.ic>1&&typeof n.formdata[t.formkey]!="number","as-label-ico-num":t.asaidata.ic>1&&typeof n.formdata[t.formkey]=="number","as-label-require":t.asaidata?.rule?.[t.formkey]?.require})},e.toDisplayString(t.asaidata.eq>2?'"':"")+e.toDisplayString(n.asaidata?.lang?.[t.formkey]||t.formkey)+e.toDisplayString(t.asaidata.eq>2?'"':"")+e.toDisplayString(t.asaidata.eq?":":""),3)),e.renderSlot(o.$slots,"default"),t.asaidata.eq>2?(e.openBlock(),e.createElementBlock("span",As,",")):e.createCommentVNode("",!0)]),_:3},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),ae=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiFormLabelArea",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t;return(o,a)=>n.asaidata.rule?.[t.formkey]?.nolabel||typeof n.formdata?.[t.formkey]=="object"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["label",t.asaidata?.rule?.[t.formkey]?.class||""]),style:e.normalizeStyle(t.asaidata?.rule?.[t.formkey]?.style||"")},[e.renderSlot(o.$slots,"default")],6)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(t.asaidata?.rule?.[t.formkey]?.class||""),style:e.normalizeStyle(t.asaidata?.rule?.[t.formkey]?.style||"")},[e.renderSlot(o.$slots,"default")],6))}})},Symbol.toStringTag,{value:"Module"})),le=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiFormLi",props:{ujt:{},asaidata:{},formdata:{},opt:{}},setup(t){const n=t;return(o,a)=>{const l=e.resolveComponent("AsaiFormShow"),s=e.resolveComponent("AsaiFormObject"),r=e.resolveComponent("AsaiInput");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.formdata,(i,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.asaidata.rule?.[m]?.[n.opt?.isedit?"noedit":"noadd"]==2?(e.openBlock(),e.createBlock(l,{key:0,ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:m},null,8,["ujt","asaidata","formdata","formkey"])):n.asaidata.rule?.[m]?.[n.opt?.isedit?"noedit":"noadd"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.asaidata?.cmComp&&t.asaidata?.cmComp(m)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.asaidata.cmComp(m)),{key:0,ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:m},null,8,["ujt","asaidata","formdata","formkey"])):typeof i=="object"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.asaidata?.cmComp&&t.asaidata?.cmComp("object")?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.asaidata.cmComp("object")),{key:0,ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:m},null,8,["ujt","asaidata","formdata","formkey"])):(e.openBlock(),e.createBlock(s,{key:1,ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:m},null,8,["ujt","asaidata","formdata","formkey"]))],64)):(e.openBlock(),e.createBlock(r,{key:2,ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:m},null,8,["ujt","asaidata","formdata","formkey"]))],64))],64))),256)}}})},Symbol.toStringTag,{value:"Module"})),Ds={key:0},se=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiFormObject",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,o=e.ref(!0);return(a,l)=>{const s=e.resolveComponent("AsaiFormLi");return typeof n.formdata[t.formkey]=="object"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`${t.asaidata.ic?"as-form-row as-form-obj":"as-form-row"}`)},[e.createElementVNode("span",{class:e.normalizeClass(`${t.asaidata.ic>1?o.value?"as-label-ico-close":"as-label-ico-open":""}`),onClick:l[0]||(l[0]=r=>o.value=!o.value)},[e.createTextVNode(e.toDisplayString(t.asaidata.eq>2?'"':"")+e.toDisplayString(n.asaidata?.lang&&n.asaidata?.lang[t.formkey]||t.formkey)+e.toDisplayString(t.asaidata.eq>2?'"':"")+e.toDisplayString(t.asaidata.eq?":":"")+" ",1),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ds,e.toDisplayString(t.asaidata.eq>1?Array.isArray(n.formdata[t.formkey])?"[":"{":"")+" ... "+e.toDisplayString(t.asaidata.eq>1?Array.isArray(n.formdata[t.formkey])?"]":"}":"")+e.toDisplayString(t.asaidata.eq>2?",":""),1))],2),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.asaidata.eq>1?Array.isArray(n.formdata[t.formkey])?"[":"{":"")+" ",1),e.createVNode(s,{ujt:t.ujt,asaidata:t.asaidata,formdata:n.formdata[t.formkey]},null,8,["ujt","asaidata","formdata"]),e.createTextVNode(" "+e.toDisplayString(t.asaidata.eq>1?Array.isArray(n.formdata[t.formkey])?"]":"}":"")+e.toDisplayString(t.asaidata.eq>2?",":""),1)],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiFormShow",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t;return(o,a)=>{const l=e.resolveComponent("AsfInput"),s=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':"")+" ",1),e.createVNode(l,{ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{},type:n.asaidata.rule?.[t.formkey]?.type||(typeof n.formdata[t.formkey]=="number"?"number":"text"),max:n.asaidata.rule?.[t.formkey]?.max,min:n.asaidata.rule?.[t.formkey]?.min,noedit:!0},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":a[0]||(a[0]=r=>n.formdata[t.formkey]=r)},null,8,["ujt","opt","modelValue"]),e.createTextVNode(" "+e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':""),1)]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),re=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiInput",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o}=n.ujt,a=e.computed(()=>o.As.toArr(n.asaidata?.lang?.[n.formkey+"data"])||o.As.toArr(n.asaidata?.rule?.[n.formkey]?.[n.formkey+"data"])||o.As.toArr(o.lg(n.asaidata?.rule?.[n.formkey]?.data))||[]);return(l,s)=>{const r=e.resolveComponent("AsfCheck"),i=e.resolveComponent("AsfInput"),m=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(m,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':"")+" ",1),n.asaidata.rule?.[t.formkey]?.type==="checkbox"||typeof n.formdata[t.formkey]=="boolean"?(e.openBlock(),e.createBlock(r,{key:0,ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{},selectdata:a.value},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":s[0]||(s[0]=d=>n.formdata[t.formkey]=d)},null,8,["ujt","opt","modelValue"])):(e.openBlock(),e.createBlock(i,{key:1,ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{},type:n.asaidata.rule?.[t.formkey]?.type||(typeof n.formdata[t.formkey]=="number"?"number":"text"),max:n.asaidata.rule?.[t.formkey]?.max,min:n.asaidata.rule?.[t.formkey]?.min},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":s[1]||(s[1]=d=>n.formdata[t.formkey]=d)},null,8,["ujt","opt","modelValue"])),e.createTextVNode(" "+e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':""),1)]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),Ps={class:"as-richtext-toolbar"},zs={value:""},Ms=["value"],Os={value:"p"},Ts=["value"],Ls=["title"],Us=["title"],Is=["title"],Fs=["title"],Rs=["title"],Ws=["title"],Hs=["title"],qs=["title"],Ks={class:"as-richtext-content"},Xs=["placeholder"],ce=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiRichEditor",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$global:o}=n.ujt,a={img:{maxWidth:288,quality:.8},imgurls:{}},l=e.ref(null),s=e.ref(null),r=e.ref(null),i=e.ref(n.asaidata?.rule?.[n.formkey]?.editorty||0);e.onMounted(m);function m(){s.value&&(s.value.innerHTML=n.formdata[n.formkey])}function d(w,_=0){const j=new Set(["a","figure","figure","img","video","ul","ol","li","h1","h2","h3","h4","h5","h6","p","strong","em","span","font","b","u","i","strike","nav","footer","section","article","div"]),B=new Set(["href","src","alt","size","color","title","style","controls","download"]),S=new DOMParser().parseFromString(w,"text/html");return Array.from(S.body.querySelectorAll("*")).reverse().forEach(E=>{const x=E.tagName.toLowerCase();if(!j.has(x))return E.remove();_&&x=="img"&&E?.src&&!a.imgurls?.[E.src]&&(E.setAttribute("crossOrigin","anonymous"),a.imgurls[E.src]="1"),Array.from(E.attributes).forEach(({name:V,value:N})=>{if(!B.has(V))return E.removeAttribute(V);if(["href","src"].includes(V)){const D=c(N,_);D?E.setAttribute(V,D):E.removeAttribute(V)}})}),S.body.innerHTML}function c(w,_=0){try{if(_)return w;const j=new URL(w,location.href);if(["http:","https:","mailto:","tel:","blob:","data:","ftp:"].includes(j.protocol))return j.href}catch{return w.startsWith("#")||!/:/.test(w)?w:""}return""}function f(){const w=window.prompt("请输入链接地址");w&&b("createLink",{target:{value:w}})}function p(w){l.value.accept=`${w}/*`,e.nextTick(()=>l.value?.click())}async function u(w){const _=w.target.files?.[0];if(!_)return;let j,B="";_.type.startsWith("image")?(j=await h(_),B=`<img src="${j}" style="max-width:100%">`):(_.size>1024*1024?j=URL.createObjectURL(_):j=await h(_),_.type.startsWith("video")?B=`<video controls src="${j}" style="max-width:100%"></video>`:B=`<a href="${j}" download="${_.name}">${_.name}</a>`),b("insertHTML",{target:{value:B}})}function h(w){return new Promise((_,j)=>{if(!w)return j(new Error("Invalid file"));const B=new FileReader;B.onload=S=>{w.type.startsWith("image/")?g(S.target.result).then(E=>{_(E)}).catch(E=>{j(E)}):_(S.target.result)},B.onerror=()=>j(new Error("File read failed")),B.readAsDataURL(w)})}function g(w){return new Promise((_,j)=>{const B=new Image,S=document.createElement("canvas"),E=S.getContext("2d",{willReadFrequently:!1});let x=!1;const V=()=>{x||(B.onload=B.onerror=null,B.src="",S.width=S.height=0,x=!0)};B.crossOrigin="anonymous",B.src=w,B.onload=()=>{try{const N=Math.min(a.img.maxWidth/B.width,1);S.width=N<1?a.img.maxWidth:B.width,S.height=N<1?B.height*N:B.height,E.imageSmoothingEnabled=!0,E.imageSmoothingQuality="high",E.clearRect(0,0,S.width,S.height),E.drawImage(B,0,0,S.width,S.height);const D=S.toDataURL("image/jpeg",a.img.quality);V(),_(D)}catch(N){V(),j(N)}},B.onerror=N=>{V(),j(new Error("Image load failed"))}})}function k(w){w.preventDefault(),Object.keys(a.imgurls).forEach(_=>{g(a.imgurls[_]).then(j=>{a.imgurls[_]=="1"&&(a.imgurls[_]="2",n.formdata[n.formkey].replaceAll(a.imgurls[_],j))})})}function y(w){w.preventDefault();const _=w.clipboardData?.getData("text/html")||"",j=d(_,1)||w.clipboardData?.getData("text/plain")||"";b("insertHTML",{target:{value:j}})}function C(w){s.value&&(n.formdata[n.formkey]=d(s.value.innerHTML))}function b(w,_=null){s.value&&document.execCommand(w,!1,_?.target?.value)}function $(){i.value++,i.value>2&&(i.value=0),e.nextTick(m)}return(w,_)=>(e.openBlock(),e.createElementBlock("div",{class:"as-richtext-area",style:e.normalizeStyle(n.asaidata.rule?.[n.formkey]?.style||{})},[e.createElementVNode("div",Ps,[e.createElementVNode("select",{onChange:_[0]||(_[0]=j=>b("fontSize",j))},[e.createElementVNode("option",zs,e.toDisplayString(e.unref(o).lang.richtexteditor.fontsize),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(8,j=>e.createElementVNode("option",{key:"size"+j,value:j*(j-1)+8},e.toDisplayString(j*(j-1)+8)+"px ",9,Ms)),64))],32),e.createElementVNode("select",{onChange:_[1]||(_[1]=j=>b("formatBlock",j))},[e.createElementVNode("option",Os,e.toDisplayString(e.unref(o).lang.richtexteditor.paragraph),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(6,j=>e.createElementVNode("option",{key:"h"+j,value:"h"+j},e.toDisplayString(e.unref(o).lang.richtexteditor.title)+e.toDisplayString(j),9,Ts)),64))],32),e.createElementVNode("button",{onClick:_[2]||(_[2]=j=>b("bold")),title:e.unref(o).lang.richtexteditor.bold}," B ",8,Ls),e.createElementVNode("button",{onClick:_[3]||(_[3]=j=>b("underline")),title:e.unref(o).lang.richtexteditor.underline}," U ",8,Us),e.createElementVNode("button",{onClick:_[4]||(_[4]=j=>b("italic")),title:e.unref(o).lang.richtexteditor.italic}," I ",8,Is),e.createElementVNode("button",{onClick:_[5]||(_[5]=j=>b("strikethrough")),title:e.unref(o).lang.richtexteditor.strikethrough}," S ",8,Fs),e.createElementVNode("input",{type:"color",onInput:_[6]||(_[6]=j=>b("foreColor",j)),title:e.unref(o).lang.richtexteditor.foreColor},null,40,Rs),e.createElementVNode("input",{type:"color",onInput:_[7]||(_[7]=j=>b("backColor",j)),title:e.unref(o).lang.richtexteditor.backColor},null,40,Ws),e.createElementVNode("button",{onClick:_[8]||(_[8]=j=>b("insertOrderedList")),title:e.unref(o).lang.richtexteditor.insertOrderedList}," 有 ",8,Hs),e.createElementVNode("button",{onClick:_[9]||(_[9]=j=>b("insertUnorderedList")),title:e.unref(o).lang.richtexteditor.insertUnorderedList}," 无 ",8,qs),e.createElementVNode("button",{onClick:_[10]||(_[10]=j=>b("justifyCenter")),title:"居中"}," 中 "),e.createElementVNode("button",{onClick:_[11]||(_[11]=j=>b("justifyFull")),title:"两端对齐"}," 两 "),e.createElementVNode("button",{onClick:_[12]||(_[12]=j=>b("justifyRight")),title:"右对齐"}," 右 "),e.createElementVNode("button",{onClick:_[13]||(_[13]=j=>b("justifyLeft")),title:"左对齐"}," 左 "),e.createElementVNode("button",{onClick:_[14]||(_[14]=j=>b("delete")),title:"删除"}," 删 "),e.createElementVNode("button",{onClick:_[15]||(_[15]=j=>f()),title:"链接"},"链"),e.createElementVNode("button",{onClick:_[16]||(_[16]=j=>b("unlink")),title:"删除链接"}," 除 "),e.createElementVNode("button",{onClick:_[17]||(_[17]=j=>p("image")),title:"图片"}," 🖼️ "),e.createElementVNode("button",{onClick:_[18]||(_[18]=j=>p("video")),title:"视频"}," 🎬 "),e.createElementVNode("button",{onClick:_[19]||(_[19]=j=>p("file")),title:"文件"}," 📎 "),e.createElementVNode("button",{onClick:k,title:"上传"},"上"),e.createElementVNode("button",{onClick:_[20]||(_[20]=j=>$()),title:"切换"},"HTML")]),e.createElementVNode("div",Ks,[i.value!=1?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:i.value>1?"50%":"100%"}),ref_key:"rfRichEditor",ref:s,contenteditable:"true",onPaste:y,onInput:C},null,36)):e.createCommentVNode("",!0),i.value>0?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,placeholder:n?.opt?.placeholder||"",ref_key:"rfRichCode",ref:r,"onUpdate:modelValue":_[21]||(_[21]=j=>n.formdata[n.formkey]=j),style:e.normalizeStyle({width:i.value>1?"50%":"100%"})},null,12,Xs)),[[e.vModelText,n.formdata[n.formkey]]]):e.createCommentVNode("",!0)]),e.createElementVNode("input",{ref_key:"fileInput",ref:l,type:"file",hidden:"",onChange:u},null,544)],4))}}),[["__scopeId","data-v-98e413e7"]])},Symbol.toStringTag,{value:"Module"})),de=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiSelect",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o}=n.ujt,a=e.computed(()=>o.As.toArr(n.asaidata?.lang?.[n.formkey+"data"])||o.As.toArr(n.asaidata?.rule?.[n.formkey]?.[n.formkey+"data"])||o.As.toArr(o.lg(n.asaidata?.rule?.[n.formkey]?.data))||[]);return(l,s)=>{const r=e.resolveComponent("AsfSelect"),i=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(i,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createVNode(r,{ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{},selectdata:a.value},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":s[0]||(s[0]=m=>n.formdata[t.formkey]=m)},null,8,["ujt","opt","modelValue"])]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),me=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiSelectLv",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.computed(()=>(o.As.toArr(n.asaidata?.lang?.[n.formkey+"data"])||o.As.toArr(n.asaidata?.rule?.[n.formkey]?.[n.formkey+"data"])||o.As.toArr(o.lg(n.asaidata?.rule?.[n.formkey]?.data))||[]).filter(s=>Number(s?.[0]||0)<Number(a.user.info.lv||0)));return(s,r)=>{const i=e.resolveComponent("AsfSelect"),m=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(m,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createVNode(i,{ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{},selectdata:l.value},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":r[0]||(r[0]=d=>n.formdata[t.formkey]=d)},null,8,["ujt","opt","modelValue"])]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),fe=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiTextJson",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t;return(o,a)=>{const l=e.resolveComponent("AsfTextarea"),s=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':"")+" ",1),e.createVNode(l,{ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{}},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":a[0]||(a[0]=r=>n.formdata[t.formkey]=r)},null,8,["ujt","opt","modelValue"]),e.createTextVNode(" "+e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':""),1)]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),pe=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiTextarea",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t;return(o,a)=>{const l=e.resolveComponent("AsfTextarea"),s=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':"")+" ",1),e.createVNode(l,{ujt:t.ujt,opt:{...n.asaidata.rule?.[t.formkey]?.opt||{}},modelValue:n.formdata[t.formkey],"onUpdate:modelValue":a[0]||(a[0]=r=>n.formdata[t.formkey]=r)},null,8,["ujt","opt","modelValue"]),e.createTextVNode(" "+e.toDisplayString(typeof n.formdata[t.formkey]=="string"&&t.asaidata.eq>2?'"':""),1)]),_:1},8,["ujt","asaidata","formdata","formkey"])}}})},Symbol.toStringTag,{value:"Module"})),Ys=["accept"],Gs={key:0},Js=["src","alt","title"],Qs=["title"],Zs=["title"],ue=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiUpBinary",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o,$global:a,$model:l}=n.ujt,s=e.ref(null),r=e.ref(null),i=e.ref("+"),m=async c=>{if(s.value.value){if(r.value=c.target.files[0],s.value.value="",!r.value){i.value=o.lg("asai.fail");return}try{o.apisys.apiUpload("/api/asaifile/manage/upbinary/?path="+a.sys.path.updir+n.asaidata?.rule?.[n.formkey]?.filename||o.As.getName(r.value.name),r.value).then(f=>{i.value="",n.formdata[n.formkey]=f.data})}catch(f){i.value=o.lg("asai.fail")+" "+f.message}}};function d(){s.value.click()}return(c,f)=>{const p=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(p,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[t.asaidata?.rule?.[t.formkey]?.accept?(e.openBlock(),e.createElementBlock("input",{key:0,accept:t.asaidata?.rule?.[t.formkey]?.accept,ref_key:"rfInputFile",ref:s,type:"file",hidden:"",onChange:m},null,40,Ys)):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"rfInputFile",ref:s,type:"file",hidden:"",onChange:m},null,544)),e.createElementVNode("div",{class:"as-upload-image",onClickOnce:e.withModifiers(d,["stop","prevent"])},[n.formdata[t.formkey]?(e.openBlock(),e.createElementBlock("div",Gs,[t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/")?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(o).As.getUrlByCfg(e.unref(a).link.api.web)+"/"+n.formdata[t.formkey],alt:n.formdata[t.formkey],title:n.formdata[t.formkey]},null,8,Js)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-upload-tit",title:n.formdata[t.formkey]},e.toDisplayString(n.formdata[t.formkey]),9,Qs))])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(i.value==="+"?"":"as-upload-tit"),title:i.value},e.toDisplayString(i.value),11,Zs))],32)]),_:1},8,["ujt","asaidata","formdata","formkey"])}}}),[["__scopeId","data-v-caa528b4"]])},Symbol.toStringTag,{value:"Module"})),vs={key:0},ei=["src","alt","title"],ti=["title"],ni=["title"],oi=["accept"],he=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiUpload",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o,$global:a,$model:l}=n.ujt,s=e.ref(null),r=e.ref(null),i=e.ref("+"),m=async c=>{if(s.value.value){if(r.value=c.target.files[0],s.value.value="",!r.value){i.value=o.lg("asai.fail");return}const f=new FileReader;f.onload=async()=>{const p=f.result.split(",")[1];try{o.apisys.apiPost("/api/asaifile/manage/upbase64/?path="+a.sys.path.updir+o.As.getName(r.value.name),p,{headers:{"Content-Type":"application/json"}}).then(u=>{i.value="",n.formdata[n.formkey]=u.data})}catch(u){i.value=o.lg("asai.fail")+" "+u.message}},f.readAsDataURL(r.value)}};function d(){s.value.click()}return(c,f)=>{const p=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createBlock(p,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"as-upload-image",onPointerdown:e.withModifiers(d,["prevent"])},[n.formdata[t.formkey]?(e.openBlock(),e.createElementBlock("div",vs,[t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/")?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(o).As.getUrlByCfg(e.unref(a).link.api.web)+"/"+n.formdata[t.formkey],alt:n.formdata[t.formkey],title:n.formdata[t.formkey]},null,8,ei)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-upload-tit",title:n.formdata[t.formkey]},e.toDisplayString(n.formdata[t.formkey]),9,ti))])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(i.value==="+"?"":"as-upload-tit"),title:i.value},e.toDisplayString(i.value),11,ni))],32),t.asaidata?.rule?.[t.formkey]?.accept?(e.openBlock(),e.createElementBlock("input",{key:0,accept:t.asaidata?.rule?.[t.formkey]?.accept,ref_key:"rfInputFile",ref:s,type:"file",hidden:"",onChange:m},null,40,oi)):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"rfInputFile",ref:s,type:"file",hidden:"",onChange:m},null,544))]),_:1},8,["ujt","asaidata","formdata","formkey"])}}}),[["__scopeId","data-v-7114096d"]])},Symbol.toStringTag,{value:"Module"})),ai={key:0},li=["src"],si=["title"],ge=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiUploadImg",props:{ujt:{},asaidata:{},formdata:{},formkey:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.ref(null),s=e.ref(null),r=e.ref("+"),i=async c=>{if(l.value.value){if(s.value=c.target.files[0],l.value.value="",!s.value){r.value=o.lg("asai.fail");return}const f=new FileReader;f.onload=async()=>{try{d({base64Data:f.result,asaidata:n.asaidata,formdata:n.formdata,formkey:n.formkey,fn:p=>{n.formdata[n.formkey]=p,a.pop["popupload"+n.formkey].stat=0}}),r.value=""}catch(p){r.value=o.lg("asai.fail")+" "+p.message}},f.readAsDataURL(s.value)}};function m(){l.value.click()}function d(c){a.pop["popupload"+n.formkey].stat=1,a.pop["popupload"+n.formkey].full=2,a.pop["popupload"+n.formkey].tit=o.lg("asai.upload"),a.pop["popupload"+n.formkey].params=c}return(c,f)=>{const p=e.resolveComponent("AsaiUploadImgCutPop"),u=e.resolveComponent("AsaiFormLabel");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{formkey:t.formkey,ujt:t.ujt},null,8,["formkey","ujt"]),e.createVNode(u,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.formdata,formkey:t.formkey},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"as-upload-image",onPointerdown:e.withModifiers(m,["prevent"])},[n.formdata[t.formkey]?(e.openBlock(),e.createElementBlock("div",ai,[e.createElementVNode("img",{src:n.formdata[t.formkey]},null,8,li)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.value==="+"?"":"as-upload-tit"),title:r.value},e.toDisplayString(r.value),11,si))],32),e.createElementVNode("input",{accept:"image/*",ref_key:"rfInputFile",ref:l,type:"file",hidden:"",onChange:i},null,544)]),_:1},8,["ujt","asaidata","formdata","formkey"])],64)}}}),[["__scopeId","data-v-46555023"]])},Symbol.toStringTag,{value:"Module"})),ii={class:"as-img-area"},ri={key:0,class:"as-img-preview"},ci=["src"],di={key:1,class:"as-img-cut-area"},mi=["src"],fi={class:"as-img-btns"},ye=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsaiUploadImgCut",props:{ujt:{},params:{}},setup(t){const n=t,o=e.ref(""),a=e.ref(null),l=e.ref(null),s=e.ref(null),r=n.params.min||1,i=e.ref({x:0,y:0,width:0,height:0,maxWidth:0,maxHeight:0}),m=e.ref({type:null,startX:0,startY:0,originalX:0,originalY:0,originalWidth:0,originalHeight:0,direction:null}),d=e.computed(()=>({transform:`translate(${i.value.x}px, ${i.value.y}px)`,width:`${i.value.width}px`,height:`${i.value.height}px`})),c=e.computed(()=>i.value.width>0&&i.value.height>0),f=()=>{const b=a.value,$=s.value;if(!b||!$){console.error("Image or container element not found.");return}const w=Math.min($.clientWidth,b.naturalWidth),_=Math.min($.clientHeight,b.naturalHeight),j=Math.min(w,b.naturalWidth),B=Math.min(_,b.naturalHeight);i.value={x:(w-j)/2,y:(_-B)/2,width:j,height:B,maxWidth:w,maxHeight:_}},p=(b,$=null)=>{const w=window.event||event,_=w.touches?w.touches[0]:w;m.value={type:b,startX:_.clientX,startY:_.clientY,originalX:i.value.x,originalY:i.value.y,originalWidth:i.value.width,originalHeight:i.value.height,direction:$};const j=B=>{requestAnimationFrame(()=>{b==="move"?u(B):h(B)})};window.addEventListener("mousemove",j),window.addEventListener("touchmove",j),window.addEventListener("mouseup",g),window.addEventListener("touchend",g)},u=b=>{const $=window.event||b,w=$.touches?$.touches[0]:$;if(m.value.type!=="move")return;const _=w.clientX-m.value.startX,j=w.clientY-m.value.startY,B=Math.max(0,Math.min(m.value.originalX+_,i.value.maxWidth-i.value.width)),S=Math.max(0,Math.min(m.value.originalY+j,i.value.maxHeight-i.value.height));Object.assign(i.value,{x:B,y:S})},h=b=>{const $=window.event||b,w=$.touches?$.touches[0]:$;if(m.value.type!=="resize")return;const _=w.clientX-m.value.startX,j=w.clientY-m.value.startY,B=m.value.direction;let S=m.value.originalWidth,E=m.value.originalHeight,x=m.value.originalX,V=m.value.originalY;switch(B){case"tr":S=Math.max(r,Math.min(m.value.originalWidth+_,i.value.maxWidth-x)),E=Math.max(r,m.value.originalHeight-j),V=Math.max(0,m.value.originalY+j);break;case"tl":S=Math.max(r,m.value.originalWidth-_),E=Math.max(r,m.value.originalHeight-j),x=Math.max(0,m.value.originalX+_),V=Math.max(0,m.value.originalY+j);break;case"br":S=Math.max(r,m.value.originalWidth+_),E=Math.max(r,m.value.originalHeight+j);break;case"bl":S=Math.max(r,m.value.originalWidth-_),E=Math.max(r,m.value.originalHeight+j),x=Math.max(0,m.value.originalX+_);break}S=Math.min(S,i.value.maxWidth-x),E=Math.min(E,i.value.maxHeight-V),Object.assign(i.value,{x,y:V,width:S,height:E})},g=()=>{m.value.type=null,window.removeEventListener("mousemove",u),window.removeEventListener("touchmove",u),window.removeEventListener("mousemove",h),window.removeEventListener("touchmove",h),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g)},k=()=>{const b=a.value,$=b.naturalWidth/b.width,w=b.naturalHeight/b.height,_=Math.min(i.value.width*$,b.naturalWidth),j=Math.min(i.value.height*w,b.naturalHeight),B=document.createElement("canvas");B.width=_,B.height=j,B.getContext("2d").drawImage(b,i.value.x*$,i.value.y*w,_,j,0,0,_,j),o.value=B.toDataURL("image/png",.9),n.params.asaidata?.rule?.[n.params?.formkey]?.data&&e.nextTick(()=>{let E=n.params.asaidata.rule[n.params.formkey].data,x={};if(E.width<_||E.height<j){E.height/j>E.width/_?(x.width=E.width,x.height=j*E.width/_):(x.width=_*E.height/j,x.height=E.height);const V=l.value,N=document.createElement("canvas");N.width=x.width,N.height=x.height,N.getContext("2d").drawImage(V,0,0,x.width,x.height),o.value=N.toDataURL("image/png",.9)}})},y=()=>{const b=document.createElement("a");b.download="cropped-image.png",b.href=o.value,b.click()},C=()=>{n.params.fn(o.value)};return(b,$)=>(e.openBlock(),e.createElementBlock("div",ii,[o.value?(e.openBlock(),e.createElementBlock("div",ri,[e.createElementVNode("img",{ref_key:"cutImage",ref:l,src:o.value},null,8,ci)])):(e.openBlock(),e.createElementBlock("div",di,[e.createElementVNode("div",{class:"as-img-cut",ref_key:"previewContainer",ref:s},[e.createElementVNode("img",{ref_key:"previewImage",ref:a,src:n.params.base64Data,onLoad:f},null,40,mi),e.withDirectives(e.createElementVNode("div",{class:"as-img-crop-box",style:e.normalizeStyle(d.value),onMousedown:$[8]||($[8]=e.withModifiers(w=>p("move"),["prevent"])),onTouchstart:$[9]||($[9]=e.withModifiers(w=>p("move"),["prevent"]))},[e.createElementVNode("div",{class:"as-img-crop-handle top-left",onMousedown:$[0]||($[0]=e.withModifiers(w=>p("resize","tl"),["stop"])),onTouchstart:$[1]||($[1]=e.withModifiers(w=>p("resize","tl"),["stop"]))},null,32),e.createElementVNode("div",{class:"as-img-crop-handle top-right",onMousedown:$[2]||($[2]=e.withModifiers(w=>p("resize","tr"),["stop"])),onTouchstart:$[3]||($[3]=e.withModifiers(w=>p("resize","tr"),["stop"]))},null,32),e.createElementVNode("div",{class:"as-img-crop-handle bottom-left",onMousedown:$[4]||($[4]=e.withModifiers(w=>p("resize","bl"),["stop"])),onTouchstart:$[5]||($[5]=e.withModifiers(w=>p("resize","bl"),["stop"]))},null,32),e.createElementVNode("div",{class:"as-img-crop-handle bottom-right",onMousedown:$[6]||($[6]=e.withModifiers(w=>p("resize","br"),["stop"])),onTouchstart:$[7]||($[7]=e.withModifiers(w=>p("resize","br"),["stop"]))},null,32)],36),[[e.vShow,c.value]])],512)])),e.createElementVNode("div",fi,[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{onClick:y},"下载图片"),e.createElementVNode("button",{onClick:C},"确认上传")],64)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:k},"确认裁剪"))])]))}}),[["__scopeId","data-v-acde7177"]])},Symbol.toStringTag,{value:"Module"})),be=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiUploadImgCutPop",props:{ujt:{},formkey:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("AsaiUploadImgCut"),r=e.resolveComponent("PopBox");return e.openBlock(),e.createBlock(r,{ujt:t.ujt,id:"popupload"+t.formkey},{default:e.withCtx(()=>[e.unref(o).pop["popupload"+t.formkey].stat?(e.openBlock(),e.createBlock(s,{key:0,ujt:t.ujt,params:e.unref(o).pop["popupload"+t.formkey].params},null,8,["ujt","params"])):e.createCommentVNode("",!0)]),_:1},8,["ujt","id"])}}})},Symbol.toStringTag,{value:"Module"})),pi={class:"as-form-area"},ui=e.defineComponent({__name:"AsaiForm",props:{ujt:{},asaidata:{},opt:{}},setup(t){const n=t;let o={};const a=Object.assign({"./AsaiForm.vue":Z,"./AsaiFormLabel.vue":oe,"./AsaiFormLabelArea.vue":ae,"./AsaiFormLi.vue":le,"./AsaiFormObject.vue":se,"./AsaiFormShow.vue":ie,"./AsaiInput.vue":re,"./AsaiRichEditor.vue":ce,"./AsaiSelect.vue":de,"./AsaiSelectLv.vue":me,"./AsaiTextJson.vue":fe,"./AsaiTextarea.vue":pe,"./AsaiUpBinary.vue":ue,"./AsaiUpload.vue":he,"./AsaiUploadImg.vue":ge,"./AsaiUploadImgCut.vue":ye,"./AsaiUploadImgCutPop.vue":be});function l(r){const i=r.match(/([^\\/]+)(?=\.vue$)/);return i?i[1]:null}for(let r in a)a[l(r)||r]=a[r],delete a[r];n.asaidata.comp?Object.assign(n.asaidata.comp,a):n.asaidata.comp={...a};function s(r){return r?.default?r.default:e.defineAsyncComponent(r)}return n.asaidata.cmComp=r=>(o[r]||(n.asaidata?.rule?.[r]?.comp&&n.asaidata.comp[n.asaidata.rule[r].comp]?o[r]=s(n.asaidata.comp[n.asaidata.rule[r].comp]):n.asaidata.comp[r]?o[r]=s(n.asaidata.comp[r]):r==="object"&&n.asaidata.comp&&n.asaidata.comp.object&&(o[r]=s(n.asaidata.comp.object))),o[r]),n.opt?.isedit&&(n.asaidata.isedit=1),e.onUnmounted(()=>{o=null}),(r,i)=>{const m=e.resolveComponent("AsaiFormLi");return e.openBlock(),e.createElementBlock("div",pi,[e.createVNode(m,{ujt:t.ujt,asaidata:t.asaidata,formdata:t.asaidata.data,opt:t.opt},null,8,["ujt","asaidata","formdata","opt"])])}}}),hi=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfCheck",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(c=>({v6810a458:m.value}));const o=t,{$global:a}=o.ujt,l=n;let s=e.computed({get(){return o.modelValue},set(c){o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(c,o.modelValue),l("update:modelValue",c)}});const r=e.computed(()=>Array.isArray(o.opt?.selectdata)&&o.opt?.selectdata?.length?o.opt.selectdata.map((c,f)=>Array.isArray(c)?c:typeof c=="object"?Object.entries(c):[!!f,c]):typeof o.opt?.selectdata=="object"&&Object.keys(o.opt?.selectdata)?.length?Object.entries(o.opt?.selectdata):[[!1,a?.lang?.asai?.off||"off"],[!0,a?.lang?.asai?.on||"on"]]),i=e.computed(()=>s.value===r.value?.[1]?.[0]),m=e.computed(()=>o?.opt?.height||"var(--fs2)");function d(c){i.value?s.value=r.value?.[0]?.[0]:s.value=r.value?.[1]?.[0]}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`asf-check${i.value?"-ck":""}`),style:e.normalizeStyle(o.opt?.style||{}),onClick:d},[e.createElementVNode("div",{class:e.normalizeClass(`asf-check-ico${i.value?"-ck":""}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(`asf-check-txt${i.value?"-ck":""}`)},e.toDisplayString(i.value?r.value?.[1]?.[1]:r.value?.[0]?.[1]),3)],6))}}),[["__scopeId","data-v-74fd25d3"]])},Symbol.toStringTag,{value:"Module"})),gi={class:"asf-input"},yi=["type","placeholder","value"],bi=["type","max","min","readonly","placeholder"],ki=["type","maxlength","readonly","placeholder"],_i=["step","type","readonly","placeholder"],$i=["type","readonly","placeholder"],Ci={key:5,class:"unit"},wi=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfInput",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(i=>({v13fec03a:s.value}));const o=t,a=n;let l=e.computed({get(){return o.modelValue},set(i){o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(i,o.modelValue),a("update:modelValue",i)}});const s=e.computed(()=>o?.opt?.height||"var(--fs2)"),r=e.computed(()=>o?.opt?.type||(o?.opt?.max?"number":"text"));return(i,m)=>(e.openBlock(),e.createElementBlock("div",gi,[t.opt?.noedit?(e.openBlock(),e.createElementBlock("input",{key:0,class:"input",style:e.normalizeStyle(o.opt?.style||{}),type:r.value,readonly:!0,placeholder:t.opt?.placeholder||"",value:t.modelValue},null,12,yi)):t.opt?.max?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,style:e.normalizeStyle(o.opt?.style||{}),type:r.value,max:t.opt?.max,min:t.opt?.min||0,readonly:!!t.opt?.readonly,placeholder:t.opt?.placeholder||"","onUpdate:modelValue":m[0]||(m[0]=d=>e.isRef(l)?l.value=d:l=d)},null,12,bi)),[[e.vModelDynamic,e.unref(l)]]):t.opt?.maxlength?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,style:e.normalizeStyle(o.opt?.style||{}),type:r.value,maxlength:t.opt?.maxlength,readonly:!!t.opt?.readonly,placeholder:t.opt?.placeholder||"","onUpdate:modelValue":m[1]||(m[1]=d=>e.isRef(l)?l.value=d:l=d)},null,12,ki)),[[e.vModelDynamic,e.unref(l)]]):t.opt?.step?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:3,style:e.normalizeStyle(o.opt?.style||{}),step:t.opt?.step,type:r.value,readonly:!!t.opt?.readonly,placeholder:t.opt?.placeholder||"","onUpdate:modelValue":m[2]||(m[2]=d=>e.isRef(l)?l.value=d:l=d)},null,12,_i)),[[e.vModelDynamic,e.unref(l)]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:4,style:e.normalizeStyle(o.opt?.style||{}),type:r.value,readonly:!!t.opt?.readonly,placeholder:t.opt?.placeholder||"","onUpdate:modelValue":m[3]||(m[3]=d=>e.isRef(l)?l.value=d:l=d)},null,12,$i)),[[e.vModelDynamic,e.unref(l)]]),t.opt?.unit?(e.openBlock(),e.createElementBlock("div",Ci,e.toDisplayString(t.opt?.unit),1)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-640e1ca8"]])},Symbol.toStringTag,{value:"Module"})),ji={class:"asf-inputsn"},Si=["onUpdate:modelValue","onInput","onKeydown"],Ei=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfInputSn",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,a=n,l=o.opt?.snge||0,s=o.opt?.snger||0,r=o.opt?.snlen||8,i=e.ref(Array(r).fill("")),m=e.ref([]),d=e.watch(()=>o.modelValue,h=>{h&&h.length===r&&(i.value=h.split(""))},{immediate:!0}),c=e.watch(i,h=>{a("update:modelValue",h.join(""))},{deep:!0});function f(h){i.value[h]&&h<r-1&&m.value[h+1].focus()}function p(h,g){g.key==="Backspace"&&!i.value[h]&&h>0&&m.value[h-1].focus()}function u(h){h.target.select()}return e.onBeforeUnmount(()=>{d&&d.stop(),c&&c.stop()}),(h,g)=>(e.openBlock(),e.createElementBlock("div",ji,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(k,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[y&&e.unref(l)&&!(y%e.unref(l))&&(!e.unref(s)||e.unref(s)&&y%e.unref(s))?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("-")],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref_key:"codeInputs",ref:m,"onUpdate:modelValue":C=>i.value[y]=C,type:"text",maxlength:"1",onInput:C=>f(y),onKeydown:C=>p(y,C),onFocus:u},null,40,Si),[[e.vModelText,i.value[y]]])],64))),128))]))}}),[["__scopeId","data-v-e090414c"]])},Symbol.toStringTag,{value:"Module"})),Bi={class:"asf-select"},Vi={class:"asf-select-cur-val"},xi={class:"asf-select-list-area"},Ni={key:0,class:"asf-select-list"},Ai={class:"asf-select-empty"},Di=["data-val"],Pi=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfSelect",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(h=>({v5b6020a4:i.value}));const o=t,{$global:a}=o.ujt,l=n;let s=e.computed({get(){return o.modelValue||o.opt?.valuedefault},set(h){o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(h,o.modelValue),l("update:modelValue",h)}});const r=e.reactive({inputinit:"",input:"",up:!1,stylelist:{}}),i=e.computed(()=>o?.opt?.height||"var(--fs2)"),m=e.computed(()=>{let h=[];return Array.isArray(o.opt?.selectdata)?h=o.opt.selectdata.map((g,k)=>Array.isArray(g)?g:typeof g=="object"?g.label&&g.value?[g.value,g.label]:Object.values(g):[k,g]):typeof o.opt?.selectdata=="object"&&(h=Object.entries(o.opt?.selectdata)),h}),d=e.computed(()=>{const h=[];if(o.opt?.input&&r.input){let g;m.value.forEach(k=>{k[1]==r.input&&!g?(g=k,s.value=g[0]):k[1].includes(r.input)?h.unshift(k):(k[0]===o.modelValue||o.opt.input>1)&&h.push(k)}),g&&h.unshift(g)}else return m.value;return h});r.stylelist["max-height"]=m.value?.length>10?"280px":m.value?.length>2?"180px":"128px",(o.opt?.input||o.opt?.checkin)&&(r.inputinit=m.value?.find(h=>h[0]==o.modelValue)?.[1],o.opt?.checkin&&!r.inputinit&&(s.value=m.value?.[0]?.[0],r.inputinit=m.value?.[0]?.[1]));function c(h){if(o.opt?.up==1)r.up=!0;else if(o.opt?.up==0)r.up=!1;else{const g=h.target,k=h.target.closest(".asfselectarea");if(k){const{y}=g?.getBoundingClientRect()||{y:0},{y:C,height:b}=k?.getBoundingClientRect()||{y:0,height:0};let $=y-C,w=b-$;$>w?(r.up=!0,$=($/Number(a?.scale||1)).toFixed(3),$<parseInt(r.stylelist["max-height"])&&(r.stylelist["max-height"]=$+"px")):(r.up=!1,w=(w/Number(a?.scale||1)).toFixed(3),w<parseInt(r.stylelist["max-height"])&&(r.stylelist["max-height"]=w+"px"))}else h.clientY>299?r.up=!0:r.up=!1}}function f(h){o.opt?.type=="number"?s.value=Number(h.target?.dataset?.val||0):o.opt?.type=="text"?s.value=h.target?.dataset?.val:typeof s.value=="number"?s.value=Number(h.target?.dataset?.val||0):s.value=h.target?.dataset?.val,o.opt?.input&&(r.input=m.value?.find(g=>g[0]==h.target?.dataset?.val)?.[1])}function p(h){o.opt?.input&&(r.input=h.target?.textContent||"")}function u(h){o.opt?.input&&h.target&&(h.target.textContent!==r.input||r.inputinit!==r.input)&&(h.target.textContent=m.value?.find(g=>g[0]==s.value)?.[1])}return(h,g)=>(e.openBlock(),e.createElementBlock("div",Bi,[o.opt?.input?(e.openBlock(),e.createElementBlock("div",{key:0,class:"asf-select-cur asf-select-cur-input",contenteditable:"true",onInput:p,onBlur:u,tabindex:"0",style:e.normalizeStyle(o.opt?.style||{}),onPointerdown:c},e.toDisplayString(r.inputinit),37)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"asf-select-cur",tabindex:"0",style:e.normalizeStyle(o.opt?.style||{}),onPointerdown:c},[e.createElementVNode("div",Vi,e.toDisplayString(m.value?.find(k=>k[0]==e.unref(s))?.[1]||e.unref(a).lang.asai.select||""),1),g[0]||(g[0]=e.createElementVNode("div",{class:"asf-select-cur-ic"},null,-1))],36)),e.createElementVNode("div",xi,[d.value?.length?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`asf-select-list${r.up?" asf-select-up":""}`),style:e.normalizeStyle({...r.stylelist,...o.opt?.stylelist||{}}),onPointerdown:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,k=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`asf-select-li${e.unref(s)==k[0]?"-active":""}`),"data-val":k[0],key:"sel"+k[0]},e.toDisplayString(k[1]),11,Di))),128))],38)):(e.openBlock(),e.createElementBlock("div",Ni,[e.createElementVNode("div",Ai,e.toDisplayString(e.unref(a).lang.asai.empty),1)]))])]))}}),[["__scopeId","data-v-d6b91f87"]])},Symbol.toStringTag,{value:"Module"})),zi={class:"asf-textarea"},Mi=["placeholder","readonly"],Oi=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfTextarea",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(r=>({v97b75d90:s.value}));const o=t,a=n;let l=e.computed({get(){return o.modelValue},set(r){o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(r,o.modelValue),a("update:modelValue",r)}});const s=e.computed(()=>o?.opt?.height||"var(--fs2)");return(r,i)=>(e.openBlock(),e.createElementBlock("div",zi,[e.withDirectives(e.createElementVNode("textarea",{style:e.normalizeStyle(o.opt?.style||{}),"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(l)?l.value=m:l=m),placeholder:t.opt?.placeholder,readonly:!!t.opt?.readonly},null,12,Mi),[[e.vModelText,e.unref(l)]])]))}}),[["__scopeId","data-v-2b966626"]])},Symbol.toStringTag,{value:"Module"})),Ti=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfTick",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(m=>({v292efd9d:r.value}));const o=t,a=n;let l=e.computed({get(){return JSON.parse(JSON.stringify(o.modelValue))},set(m){try{o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(m,JSON.parse(JSON.stringify(o.modelValue))),a("update:modelValue",m)}catch{a("update:modelValue",[])}}});const s=e.computed(()=>l.value?.includes?.(o.opt?.value)),r=e.computed(()=>o?.opt?.height||"var(--fs2)");function i(m){s.value?l.value=JSON.parse(JSON.stringify(l.value.filter(d=>d!==o.opt?.value))):(l.value.push(o.opt?.value),l.value=JSON.parse(JSON.stringify(l.value)))}return(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`asf-tick${s.value?"-ck":""}`),style:e.normalizeStyle(o.opt?.style||{}),onClick:i},null,6))}}),[["__scopeId","data-v-08538f13"]])},Symbol.toStringTag,{value:"Module"})),Li=["accept"],Ui=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfUploadFile",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(h=>({v5f92de5c:u.value}));const o=t,{$fn:a,$global:l}=o.ujt,s=n,r=e.reactive({val:""}),i=e.watch(()=>r.val,(h,g)=>{try{o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(h,g),s("update:modelValue",h)}catch{l.msg.fn({type:"err",con:"error!"})}}),m=e.ref(null),d=e.ref(null),c=e.ref("+"),f=async h=>{if(m.value.value){if(d.value=h.target.files[0],m.value.value="",!d.value){c.value=a.lg("asai.fail");return}r.val="";try{a.apisys.apiUpload("/api/asaifile/manage/upbinary/?path="+(o.opt?.path||"uploadtmp"),d.value).then(g=>{c.value="",r.val=g.data})}catch(g){c.value=a.lg("asai.fail")+" "+g.message}}};function p(){m.value.click()}const u=e.computed(()=>o?.opt?.height||"var(--fs2)");return e.onBeforeUnmount(()=>{i&&i.stop()}),(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`${o.opt?.css||"asf-upload-area"}`)},[e.renderSlot(h.$slots,"default",{option:{clickUpload:p}},()=>[e.createElementVNode("div",{class:"asf-upload",onClick:g[0]||(g[0]=k=>p())},e.toDisplayString(c.value),1)],!0),o.opt?.accept?(e.openBlock(),e.createElementBlock("input",{key:0,accept:o.opt?.accept,ref_key:"rfInputFile",ref:m,type:"file",hidden:"",onChange:f},null,40,Li)):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"rfInputFile",ref:m,type:"file",hidden:"",onChange:f},null,544))],2))}}),[["__scopeId","data-v-46ce1fc5"]])},Symbol.toStringTag,{value:"Module"})),Ii={class:"asf-upload-area"},Fi=["accept"],Ri=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"AsfUploadText",props:{ujt:{},opt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){e.useCssVars(k=>({v8309c6ee:g.value}));const o=t,{$fn:a,$global:l}=o.ujt,s=n,r=e.reactive({val:o.opt?.type=="json"?d(o.modelValue):o.modelValue}),i=e.watch(()=>r.val,(k,y)=>{try{const C=o.opt?.type=="json"?m(k):k;o.opt?.onChange&&typeof o.opt.onChange=="function"&&o.opt.onChange(C,o.opt?.type=="json"?m(y):y),s("update:modelValue",C)}catch{r.val=o.opt?.type=="json"?{}:"",l.msg.fn({type:"err",con:"error!"})}},{deep:!0});function m(k){try{return JSON.parse(k)}catch{return{}}}function d(k){try{return JSON.stringify(k)}catch{return"{}"}}const c=e.ref(null),f=e.ref(null),p=e.ref("+"),u=async k=>{if(c.value.value){if(f.value=k.target.files[0],c.value.value="",!f.value){p.value=a.lg("asai.fail");return}const y=new FileReader;y.onload=async()=>{r.val=y.result},y.readAsText(f.value)}};function h(){c.value.click()}const g=e.computed(()=>o?.opt?.height||"var(--fs2)");return e.onBeforeUnmount(()=>{i&&i.stop()}),(k,y)=>(e.openBlock(),e.createElementBlock("div",Ii,[e.renderSlot(k.$slots,"default",{option:{clickUpload:h}},()=>[e.createElementVNode("div",{class:"asf-upload",onClick:y[0]||(y[0]=C=>h())},e.toDisplayString(p.value),1)],!0),o.opt?.accept?(e.openBlock(),e.createElementBlock("input",{key:0,accept:o.opt?.accept,ref_key:"rfInputFile",ref:c,type:"file",hidden:"",onChange:u},null,40,Fi)):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"rfInputFile",ref:c,type:"file",hidden:"",onChange:u},null,544))]))}}),[["__scopeId","data-v-11541862"]])},Symbol.toStringTag,{value:"Module"})),Wi={class:"as-load-area"},Hi=["src"],qi={class:"tit",style:{color:"var(--cz8)"}},Ki=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageErr",props:{ujt:{}},setup(t){const n=window;function o(){n?.localStorage?.clear(),n?.location?.reload()}return(a,l)=>(e.openBlock(),e.createElementBlock("div",Wi,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=s=>o()),src:e.unref(n).$CFG.logo,width:"200"},null,40,Hi),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]=s=>e.unref(n)?.location?.reload())},[e.createElementVNode("div",qi,e.toDisplayString(e.unref(n).$GYS.$webmodel.lang[e.unref(n).$GYS.$webmodel.lang.langty].pageerr),1)])]))}})},Symbol.toStringTag,{value:"Module"})),Xi={class:"as-load-area"},Yi=["src"],Gi=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadClient",props:{ujt:{}},setup(t){const n=window;function o(){n?.localStorage?.clear(),n?.location?.reload()}return(a,l)=>(e.openBlock(),e.createElementBlock("div",Xi,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=s=>o()),src:e.unref(n).$CFG.logo,width:"200"},null,40,Yi),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]=s=>e.unref(n)?.location?.reload())}," Loading... ")]))}})},Symbol.toStringTag,{value:"Module"})),Ji={class:"as-load-area"},Qi=["src"],Zi={class:"as-load-icon"},vi={class:"as-load-msg"},er={class:"tit",style:{color:"var(--cz8)"}},tr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadErr",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const r=e.resolveComponent("AsPageBusyGif"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Ji,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Qi),e.createElementVNode("div",Zi,[e.createVNode(r,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",vi,[e.createElementVNode("div",er,e.toDisplayString(e.unref(a).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),nr={class:"as-load-area"},or=["src"],ar={class:"as-load-icon"},lr={class:"as-load-msg"},sr={class:"tit",style:{color:"var(--cy8)"}},ir=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadServer",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const r=e.resolveComponent("AsPageBusyGif"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",nr,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,or),e.createElementVNode("div",ar,[e.createVNode(r,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",lr,[e.createElementVNode("div",sr,e.toDisplayString(e.unref(a).lang.asai.page.loadserver),1),e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),rr={class:"as-load-area"},cr=["src"],dr={class:"as-load-icon"},mr={class:"as-load-msg"},fr={class:"tit",style:{color:"var(--cz8)"}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserToken",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const r=e.resolveComponent("AsPageBusyGif"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",rr,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,cr),e.createElementVNode("div",dr,[e.createVNode(r,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",mr,[e.createElementVNode("div",fr,e.toDisplayString(e.unref(a).lang.asai.page.loadusertoken),1),e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ur={class:"as-load-area"},hr=["src"],gr={class:"as-load-icon"},yr={class:"as-load-msg"},br={class:"tit",style:{color:"var(--cy8)"}},kr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserTokenOnline",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const r=e.resolveComponent("AsPageBusyGif"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",ur,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,hr),e.createElementVNode("div",gr,[e.createVNode(r,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",yr,[e.createElementVNode("div",br,e.toDisplayString(e.unref(a).lang.asai.page.loaduseronline),1),e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),_r={class:"as-load-area"},$r=["src"],Cr={class:"as-load-icon"},wr={class:"as-load-msg"},jr={class:"tit",style:{color:"var(--cz8)"}},Sr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadWs",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const r=e.resolveComponent("AsPageBusyGif"),i=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",_r,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,$r),e.createElementVNode("div",Cr,[e.createVNode(r,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",wr,[e.createElementVNode("div",jr,e.toDisplayString(e.unref(a).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(i,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Er=["id"],Br=["id"],Vr=["id"],xr=A(e.defineComponent({__name:"PopBoxMask",props:{ujt:{},id:{}},setup(t){e.useCssVars(s=>({v55f0441c:e.unref(o).pop[n.id].zindex,v48893091:a.value,v2b661e38:e.unref(o).scale}));const n=t,{$global:o}=n.ujt;o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101);const a=e.computed(()=>o.pop[n.id]?.event?o.pop[n.id]?.event:"auto");o.scale==null&&(o.scale=1);const l=e.computed(()=>{let s=o.pop[n.id]?.maskstyle||{};return o.pop[n.id].full==2?s={display:"block",...s}:o.pop[n.id].full==1?s={width:o?.sys?.zoomwidth+"px",height:o?.sys?.zoomheight+"px",...s}:s={display:"block",...s},a.value==="auto"&&(s["background-color"]="rgba(0, 0, 0, 0.3)"),s});return(s,r)=>e.unref(o).pop[n.id].full==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{to:"#teleportpopbox",key:"popmask-2-"+n.id},[e.createElementVNode("div",{class:"as-pop-box-mask-2",style:e.normalizeStyle(l.value),id:"popmask"+t.id},[e.renderSlot(s.$slots,"default",{},void 0,!0)],12,Er)])):e.createCommentVNode("",!0)],64)):e.unref(o).pop[n.id].full==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{to:"#teleportpopbox",key:"popmask-1-"+n.id},[e.createElementVNode("div",{class:"as-pop-box-mask-1",id:"popmask"+t.id},[e.createElementVNode("div",{class:"as-pop-box-mask-zoom",style:e.normalizeStyle(l.value)},[e.renderSlot(s.$slots,"default",{},void 0,!0)],4)],8,Br)])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock("div",{key:"popmask-0-"+n.id,class:"as-pop-box-mask-0",style:e.normalizeStyle(l.value),id:"popmask"+t.id},[e.renderSlot(s.$slots,"default",{},void 0,!0)],12,Vr)):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-432c0b07"]]),Nr={class:"as-pop-content-txt"},Ar={key:0,class:"as-pop-content-btns"},Dr=["onPointerup"],Pr=A(e.defineComponent({__name:"PopBoxContent",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>{const s={};return o.pop[n.id]?.nooverflow||(s.overflow=o.pop[n.id]?.conoverflow||"auto"),s});return(s,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"as-pop-content",style:e.normalizeStyle(l.value)},[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("div",Nr,e.toDisplayString(e.unref(o).pop[n.id]?.con||""),1)],!0)],4),e.unref(o).pop[n.id]?.btns?.length?(e.openBlock(),e.createElementBlock("div",Ar,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).pop[n.id].btns,(i,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.fn?(e.openBlock(),e.createElementBlock("div",{key:0,onTouchstart:r[0]||(r[0]=e.withModifiers((...d)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...d),["stop"])),onPointerdown:r[1]||(r[1]=e.withModifiers((...d)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...d),["stop"])),onPointerup:e.withModifiers(d=>i.fn(),["stop"]),class:e.normalizeClass(m?"":"cur"),style:e.normalizeStyle(`${i.bg?`background-color: ${i.bg};`:""}`)},e.toDisplayString(i.nm),47,Dr)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(m?"nofn":"cur nofn"),style:e.normalizeStyle(`${i.bg?`background-color: ${i.bg};`:""}`)},e.toDisplayString(i.nm),7))],64))),256))])):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-5b386073"]]),zr={class:"as-pop-bar"},Mr={key:0,class:"as-pop-opts"},Or=A(e.defineComponent({__name:"PopBoxBar",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o}=n.ujt;function a(){o.pop[n.id]?.closepop&&typeof o.pop[n.id].closepop=="function"?o.pop[n.id].closepop():o.pop[n.id].stat=0}return(l,s)=>{const r=e.resolveComponent("AsSvg");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",zr,[e.unref(o).pop[n.id].ico?(e.openBlock(),e.createBlock(r,{key:0,color:"var(--ch8)",height:"var(--fs4)",src:e.unref(o).pop[n.id].ico},null,8,["src"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(o).pop[n.id].tit||""),1)]),e.unref(o).pop[n.id]?.noclose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Mr,[e.createElementVNode("div",{onPointerdown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),onPointerup:s[1]||(s[1]=e.withModifiers(i=>a(),["stop","prevent"]))}," × ",32)]))],64)}}}),[["__scopeId","data-v-63839243"]]),Tr=["id"],Lr=["id"],Ur=["id"],Ir=A(e.defineComponent({__name:"PopBoxMain",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o,$model:a}=n.ujt;o.pop[n.id]?.noresize==null&&(o.pop[n.id].noresize=1);const l=e.reactive({w:0,h:0});e.onMounted(()=>{if(!o.pop[n.id].full){const r=document.getElementById("poparea"+n.id)||document.getElementById("popmask"+n.id)||document.getElementById(o.sys.zoomid)||document.getElementById("asaizoomarea");r&&(l.w=r?.offsetWidth,l.h=r?.offsetHeight)}});const s=e.computed(()=>{let r=o.pop[n.id]?.popstyle||{};return r={width:o.pop[n.id]?.width||"380px",height:o.pop[n.id]?.height||"auto",zIndex:o.pop[n.id].zindex+1,...r},o.pop[n.id]?.nooverflow||(r.overflow=o.pop[n.id]?.boxoverflow||"hidden"),o.pop[n.id].full==2?r={transform:`translate(calc(-50% + ${window.innerWidth/2}px),calc(-50% + ${window.innerHeight/2}px))`,...r}:o.pop[n.id].full==1?r={transform:`translate(calc(-50% + ${o?.sys?.zoomwidth/2}px),calc(-50% + ${o?.sys?.zoomheight/2}px))`,...r}:l.w&&l.h?r={transform:`translate(calc(-50% + ${l.w/2}px),calc(-50% + ${l.h/2}px))`,...r}:r={transform:`translate(calc(-50% + ${window.innerWidth/2}px),calc(-50% + ${window.innerHeight/2}px))`,...r},r});return(r,i)=>{const m=e.resolveDirective("popresizezoom");return e.unref(o).pop[n.id].noresize?(e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-1-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(r.$slots,"default",{},void 0,!0)],12,Tr)):e.unref(o).pop[n.id].full==2?e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-2-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(r.$slots,"default",{},void 0,!0)],12,Lr)),[[m,{ujt:t.ujt,scale:1}]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-0-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(r.$slots,"default",{},void 0,!0)],12,Ur)),[[m,{ujt:t.ujt}]])}}}),[["__scopeId","data-v-25351d70"]]),Fr=["id"],Rr=["id"],Wr=["id"],Hr=["id"],qr=A(e.defineComponent({__name:"PopBoxDragBar",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveDirective("drag"),r=e.resolveDirective("dragzoom");return e.unref(o).pop[n.id].notit?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64)):e.unref(o).pop[n.id].nodrag?(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,Fr)):e.unref(o).pop[n.id].full==2?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:2,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,Rr)),[[s,{domarea:"pop"+t.id,dommask:"popmask"+t.id}]]):e.unref(o).pop[n.id].full==1?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:3,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,Wr)),[[r,{ujt:t.ujt,dom:"popbar"+t.id,domarea:"pop"+t.id}]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:4,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,Hr)),[[r,{ujt:t.ujt,dom:"popbar"+t.id,domarea:"pop"+t.id}]])}}}),[["__scopeId","data-v-d58c6048"]]),Kr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PopBox",props:{ujt:{},id:{},full:{},maskstyle:{},popstyle:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefault"),o.pop[n.id]||(o.pop[n.id]={}),n.full&&!o.pop[n.id].full&&(o.pop[n.id].full=n.full),n.maskstyle&&!o.pop[n.id].maskstyle&&(o.pop[n.id].maskstyle=n.maskstyle),n.popstyle&&!o.pop[n.id].popstyle&&(o.pop[n.id].popstyle=n.popstyle),e.onUnmounted(()=>{o.pop[n.id]={}}),(a,l)=>e.unref(o).pop?.[n.id]?.stat?(e.openBlock(),e.createBlock(xr,{key:0,ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.KeepAlive,null,[e.createVNode(Ir,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.createVNode(qr,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.createVNode(Or,{ujt:t.ujt,id:t.id},null,8,["ujt","id"])]),_:1},8,["ujt","id"]),e.createVNode(Pr,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["ujt","id"])]),_:3},8,["ujt","id"])],1024))]),_:3},8,["ujt","id"])):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PopBoxConfirm",props:{ujt:{},id:{},full:{},popstyle:{},maskstyle:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaultboxconfirm"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.notit==null&&(o.pop[n.id].notit=1),o.pop[n.id]?.btns||(o.pop[n.id].btns=[{nm:e.computed(()=>o.lang?.asai?.confirm||"Confirm"),fn:()=>{o.pop[n.id].fn&&o.pop[n.id].fn(),o.pop[n.id].stat=0}},{nm:e.computed(()=>o.lang?.asai?.cancel||"Cancel"),fn:()=>{o.pop[n.id].stat=0}}]),(a,l)=>{const s=e.resolveComponent("PopBox");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,id:t.id,full:t.full,popstyle:t.popstyle,maskstyle:t.maskstyle},null,8,["ujt","id","full","popstyle","maskstyle"])}}})},Symbol.toStringTag,{value:"Module"})),Yr={class:"as-pop-pass"},Gr=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopBoxConfirmPass",props:{ujt:{},id:{},full:{},popstyle:{},maskstyle:{},pass:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return n.id||(n.id="popdefaultboxconfirmpass"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.tit||(o.pop[n.id].tit=a.lg("asai.confirmpass")),o.pop[n.id]?.pass||(o.pop[n.id].pass=""),o.pop[n.id]?.btns||(o.pop[n.id].btns=[{nm:e.computed(()=>o.lang?.asai?.confirm||"Confirm"),fn:()=>{n.pass&&o.pop[n.id].pass==n.pass?(o.pop[n.id].fn&&o.pop[n.id].fn(),o.pop[n.id].stat=0):o.msg.fn({type:"err",con:a.lg("asai.confirmpasserr")})}},{nm:e.computed(()=>o.lang?.asai?.cancel||"Cancel"),fn:()=>{o.pop[n.id].stat=0}}]),(l,s)=>{const r=e.resolveComponent("PopBox");return e.openBlock(),e.createBlock(r,{ujt:t.ujt,id:t.id,full:t.full,popstyle:t.popstyle,maskstyle:t.maskstyle},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>[e.createElementVNode("div",Yr,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a).lg("asai.confirmpassword")),1),e.createElementVNode("p",null,[e.withDirectives(e.createElementVNode("input",{type:"password","show-password":"","onUpdate:modelValue":s[0]||(s[0]=i=>e.unref(o).pop[n.id].pass=i)},null,512),[[e.vModelText,e.unref(o).pop[n.id].pass]])])])],!0)]),_:3},8,["ujt","id","full","popstyle","maskstyle"])}}}),[["__scopeId","data-v-6dbdffb6"]])},Symbol.toStringTag,{value:"Module"})),Jr={class:"as-pop-drop-area"},Qr=["id"],Zr=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopDrop",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(l=>({f9a6a412:a.value-1,v55cde999:a.value}));const n=t,{$global:o}=n.ujt;n.id||(n.id="popdefaulttip"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={width:"auto",height:"auto",top:0,right:0}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={});const a=e.computed(()=>{const l=o.pop[n.id]?.zindex;return Number(l)||101});return e.onUnmounted(()=>{o.pop[n.id]={}}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).pop[n.id]?.css||" as-pop-drop")},[e.unref(o).pop[n.id].stat&&e.unref(o).pop[n.id].popstyle?.top!=0?e.renderSlot(l.$slots,"poparea",{key:0},()=>[e.createElementVNode("div",Jr,[e.createElementVNode("div",{class:"as-pop-drop-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(l.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],4)])],!0):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"desarea",{},()=>[e.createElementVNode("div",{class:"as-pop-drop-des",onPointerdown:s[0]||(s[0]=e.withModifiers(r=>e.unref(o).pop[n.id].stat=e.unref(o).pop[n.id].stat?0:1,["stop"]))},[e.renderSlot(l.$slots,"des",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].des||""),1)],!0)],32)],!0),e.unref(o).pop[n.id].stat&&e.unref(o).pop[n.id].popstyle?.top==0?e.renderSlot(l.$slots,"poparea",{key:1},()=>[e.createElementVNode("div",{class:"as-pop-drop-area",id:"pop"+t.id},[e.createElementVNode("div",{class:"as-pop-drop-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(l.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],4)],8,Qr)],!0):e.createCommentVNode("",!0),e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock("div",{key:2,class:"as-pop-drop-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:s[1]||(s[1]=e.withModifiers(r=>e.unref(o).pop[n.id].stat=0,["stop"]))},null,36)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-67b87637"]])},Symbol.toStringTag,{value:"Module"})),vr=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopMod",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(a=>({v1a9a90a0:e.unref(o).pop[n.id].zindex-1,v0fc7b7d2:e.unref(o).pop[n.id].zindex}));const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaultmod"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={top:0,right:0,width:"180px",height:"100vh","background-color":"#ffffff88"}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={"background-color":"rgba(0, 0, 0, 0.02)"}),e.onUnmounted(()=>{o.pop[n.id]={}}),(a,l)=>e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"as-pop-mod-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:l[0]||(l[0]=s=>e.unref(o).pop[n.id].stat=0)},null,36),e.createElementVNode("div",{class:"as-pop-mod-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(a.$slots,"default",{},void 0,!0)],4)],64)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2439c68f"]])},Symbol.toStringTag,{value:"Module"})),ec={class:"as-pop-msg-list"},tc={class:"as-pop-msg-li"},nc={key:0,class:"as-pop-msg-tit"},oc={key:1,class:"as-pop-msg-con"},ac={key:2,class:"as-pop-msg-tm"},lc=["title"],sc=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopMsg",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;o.msg||(o.msg={tm:null,data:[],bak:[],fn:l});function l(r){let i=null;if(r===1?o?.msg?.data?.length&&(i=o.msg.data.shift(),i?.tmout&&(clearTimeout(i.tmout),delete i.tmout),o.msg.bak.push(i),o.msg.bak.length>100&&o.msg.bak.splice(80)):(!o?.msg?.data?.length||!o?.msg?.data?.find(m=>m.con===r.con&&m.tit===r.tit))&&(r.type==="err"&&(r.tit||r.con)&&a.$log((r.log||"")+(r.tit||r.con)),r.tm=a.As.getTime(),o.msg.data.push(r),r.tmout=setTimeout(()=>{o.msg.fn(1)},r?.time||3e3)),i)return i}function s(){let r=o.msg.data.length;for(;r--;)l(1)}return e.onBeforeUnmount(()=>{s()}),(r,i)=>e.unref(o).msg.data?.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-pop-msg-area",style:e.normalizeStyle(e.unref(o).msg.data?.maskstyle||{}),onPointerdown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onPointerup:i[1]||(i[1]=e.withModifiers(m=>s(),["stop"])),onTouchstart:i[2]||(i[2]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m))},[e.createElementVNode("div",ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).msg.data,m=>(e.openBlock(),e.createElementBlock("div",tc,[e.createElementVNode("div",{class:e.normalizeClass("as-pop-msg"+(m?.type||""))},[m?.tit?(e.openBlock(),e.createElementBlock("div",nc,e.toDisplayString(m.tit),1)):e.createCommentVNode("",!0),m?.con?(e.openBlock(),e.createElementBlock("div",oc,e.toDisplayString(m.con),1)):e.createCommentVNode("",!0),m?.tm?(e.openBlock(),e.createElementBlock("div",ac," ["+e.toDisplayString(m.tm)+"] ",1)):e.createCommentVNode("",!0)],2)]))),256))]),e.createElementVNode("div",{class:"as-pop-msg-btn",title:e.unref(o)?.lang?.asai?.clear},"×",8,lc)],36)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-92a9590b"]])},Symbol.toStringTag,{value:"Module"})),ic={key:0,class:"as-pop-msg-tit"},rc={key:1,class:"as-pop-msg-con"},cc={key:2,class:"as-pop-msg-tm"},dc=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopMsgOneByOne",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;if(!o.msg){let r=function(i){let m=null;if(i===1?o?.msg?.data?.length&&(m=o.msg.data.shift()):(!o?.msg?.data?.length||!o?.msg?.data?.find(d=>d.con===i.con&&d.tit===i.tit))&&(i.tm=a.As.getTime(),o.msg.data.push(i)),a.As.localSet(o.msg.key,o.msg.data),m)return m};o.msg={key:"as-pop-msg",tm:null,stat:0,data:[],bak:[],cur:{},fn:r}}function l(){o.msg.cur?.noclose||(o.msg.stat=0,o.msg.bak.push(o.msg.fn(1)),o.msg.bak.length>100&&o.msg.bak.splice(80),clearTimeout(o.msg.tm))}const s=e.computed(()=>o.msg.data.length?(o.msg.cur=o.msg.data[0],o.msg.stat||(o.msg.stat=1,clearTimeout(o.msg.tm),o.msg.tm=setTimeout(()=>{l()},o.msg.cur?.time||3e3)),o.msg.cur):null);if(!o.msg?.data?.length){const r=a.As.toObj(a.As.localGet(o.msg.key));r&&(o.msg.data=r)}return(r,i)=>s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-pop-msg-area",onPointerdown:i[0]||(i[0]=m=>l()),onTouchstart:i[1]||(i[1]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m)),style:e.normalizeStyle(s.value?.maskstyle||{})},[e.createElementVNode("div",{class:e.normalizeClass("as-pop-msg"+(s.value?.type||""))},[s.value?.tit?(e.openBlock(),e.createElementBlock("div",ic,e.toDisplayString(s.value.tit),1)):e.createCommentVNode("",!0),s.value?.con?(e.openBlock(),e.createElementBlock("div",rc,e.toDisplayString(s.value.con),1)):e.createCommentVNode("",!0),s.value?.tm?(e.openBlock(),e.createElementBlock("div",cc," ["+e.toDisplayString(s.value.tm)+"] ",1)):e.createCommentVNode("",!0)],2)],36)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07098c49"]])},Symbol.toStringTag,{value:"Module"})),mc=["id"],fc=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopTip",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(r=>({v378d9d3f:e.unref(o).pop[n.id].zindex,v50fe1e9d:e.unref(o).pop[n.id].zindex-1}));const n=t,{$global:o,$fn:a}=n.ujt;n.id||(n.id="popdefaulttip"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={width:"auto",height:"auto"}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={});function l(r){o.pop[n.id].popstyle.top=r.clientY+"px",o.pop[n.id].popstyle.left=r.clientX+"px",o.pop[n.id].popstyle.transform=`scale(${o.scale})`,o.pop[n.id].stat=o.pop[n.id].stat?0:1}function s(){o.pop[n.id].stat=0}return e.onUnmounted(()=>{o.pop[n.id]={}}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).pop[n.id]?.css+" as-pop-tip")},[e.createElementVNode("div",{class:"as-pop-tip-des",onPointerdown:e.withModifiers(l,["stop"])},[e.renderSlot(r.$slots,"des",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].des||""),1)],!0)],32),e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",{class:"as-pop-tip-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:i[1]||(i[1]=e.withModifiers(()=>{},["stop"])),onPointerup:i[2]||(i[2]=e.withModifiers(m=>s(),["stop"])),onTouchstart:i[3]||(i[3]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m))},[e.createElementVNode("div",{class:"as-pop-tip-pop",id:"pop"+t.id,style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle),onPointerdown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(r.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],44,mc)],36)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-426f5ea9"]])},Symbol.toStringTag,{value:"Module"})),pc={key:0,class:"as-pop-tipconfirm-pop"},uc={class:"as-pop-tipconfirm-content"},hc={class:"as-pop-tipconfirm-btns"},gc=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"PopTipConfirm",props:{ujt:{},id:{},popstyle:{},maskstyle:{},fn:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaulttipconfirm"),(a,l)=>{const s=e.resolveComponent("PopTip");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,id:t.id},{des:e.withCtx(()=>[e.renderSlot(a.$slots,"des",{},void 0,!0)]),pop:e.withCtx(()=>[e.unref(o).pop[t.id].stat?(e.openBlock(),e.createElementBlock("div",pc,[e.createElementVNode("div",uc,[e.renderSlot(a.$slots,"pop",{},void 0,!0)]),e.createElementVNode("div",hc,[n.fn?(e.openBlock(),e.createElementBlock("div",{key:0,onPointerdown:l[0]||(l[0]=r=>n.fn())},e.toDisplayString(e.unref(o)?.lang?.asai?.confirm),33)):e.createCommentVNode("",!0),e.createElementVNode("div",{onPointerdown:l[1]||(l[1]=r=>e.unref(o).pop[t.id].stat=0),class:"cur"},e.toDisplayString(e.unref(o)?.lang?.asai?.cancel),33)])])):e.createCommentVNode("",!0)]),_:3},8,["ujt","id"])}}}),[["__scopeId","data-v-526e2ae5"]])},Symbol.toStringTag,{value:"Module"})),yc={install(t,n){n.loadv({app:t,eager:!0,files:Object.assign({"./asdirectives/v-dbpointerdown/index.ts":$e,"./asdirectives/v-drag/index.ts":Ce,"./asdirectives/v-draggame/index.ts":we,"./asdirectives/v-dragzoom/index.ts":je,"./asdirectives/v-fullscreen/index.ts":Ee,"./asdirectives/v-keyboard/index.ts":Be,"./asdirectives/v-levelread/index.ts":Ve,"./asdirectives/v-longpress/index.ts":xe,"./asdirectives/v-popresizezoom/index.ts":Ne,"./asdirectives/v-resizeflexwidthzoom/index.ts":Ae,"./asdirectives/v-scrollbottom/index.ts":De,"./asdirectives/v-userlevel/index.ts":Pe})}),n.loadts({app:t,key:"$engineasai",eager:!0,files:Object.assign({"./asengine/api/useApi.ts":ze,"./asengine/channel/useChannel.ts":Me,"./asengine/channel/useChannelBase.ts":Oe,"./asengine/channel/useChannelBaseKey.ts":Te,"./asengine/channel/useChannelBook.ts":Le,"./asengine/channel/useChannelComments.ts":Ue,"./asengine/channel/useChannelUser.ts":Ie,"./asengine/common/As.ts":Fe,"./asengine/common/AsAES.ts":Re,"./asengine/common/AsCode.ts":We,"./asengine/common/AsFull.ts":He,"./asengine/common/AsRouter.ts":Ke,"./asengine/common/AsStyle.ts":Xe,"./asengine/common/_AsRouterInit.ts":Je,"./asengine/common/useChatRoom.ts":Qe,"./asengine/common/useLog.ts":Ze,"./asengine/common/useMediaWork.ts":ve,"./asengine/common/useNovel.ts":et,"./asengine/common/usePage.ts":tt,"./asengine/init/useInitApp.ts":nt,"./asengine/provide/useProvide.ts":it,"./asengine/ws/useBeat.ts":rt,"./asengine/ws/useWs.ts":ct})}),n.loadvue({loadfn:n.loadfn,app:t,eager:!0,files:Object.assign({"./asui/app/AsaiComponent.vue":dt,"./asui/app/AsaiInitPage.vue":yt,"./asui/app/AsaiWebItemDefault.vue":St,"./asui/app/AsaiWebItemIndex.vue":Et,"./asui/app/AsaiWebModule.vue":Bt,"./asui/app/AsaiWebModuleDefault.vue":Mt,"./asui/app/AsaiWebModuleIndex.vue":Ot,"./asui/app/AsaiWebServer.vue":ft,"./asui/app/AsaiWebServerNode.vue":pt,"./asui/app/AsaiWebServerUser.vue":ut,"./asui/app/AsaiWebServerUserOnline.vue":Tt,"./asui/channel/ChannelAdd.vue":It,"./asui/channel/ChannelBtnsManage.vue":Rt,"./asui/channel/ChannelClass.vue":Ht,"./asui/channel/ChannelEdit.vue":Xt,"./asui/channel/ChannelIndex.vue":mn,"./asui/channel/ChannelList.vue":fn,"./asui/channel/ChannelListPage.vue":un,"./asui/channel/ChannelListSearch.vue":yn,"./asui/channel/ChannelListSelect.vue":bn,"./asui/channel/ChannelListType.vue":Mn,"./asui/channel/ChannelOpt.vue":On,"./asui/channel/ChannelOptAdd.vue":Tn,"./asui/channel/ChannelPop.vue":Fn,"./asui/channel/ChannelPos.vue":Wn,"./asui/channel/ChannelShow.vue":Hn,"./asui/channel/ChannelShowComments.vue":lo,"./asui/channel/ChannelShowHci.vue":io,"./asui/channel/ChannelShowType.vue":uo,"./asui/channel/ChannelUpDown.vue":go,"./asui/channel/ChannelUserCard.vue":bo,"./asui/channel/ChannelUserDrop.vue":_o,"./asui/channel/ChannelUserEdit.vue":wo,"./asui/channel/ChannelUserExit.vue":So,"./asui/channel/ChannelUserLogin.vue":Vo,"./asui/channel/ChannelUserMain.vue":Po,"./asui/channel/ChannelUserReg.vue":Oo,"./asui/chat/ChatRoom.vue":ta,"./asui/chat/ChatRoomOpt.vue":ja,"./asui/common/AsKeyBoard.vue":Ka,"./asui/common/AsKeyBoardVue.vue":Xa,"./asui/common/AsLink.vue":nl,"./asui/common/AsNovel.vue":Ml,"./asui/common/AsPageBusy.vue":Ul,"./asui/common/AsPageBusyGif.vue":Rl,"./asui/common/AsSvg.vue":Kl,"./asui/common/AsUploadFile.vue":Yl,"./asui/common/AsUploadTxt.vue":Jl,"./asui/common/ChangeLang.vue":Ql,"./asui/common/ChangeTheme.vue":Zl,"./asui/common/ImgUploadCut.vue":ls,"./asui/common/JsonEditor.vue":ms,"./asui/common/JsonTree.vue":ks,"./asui/common/MenuShowFix.vue":js,"./asui/common/RouterMap.vue":Es,"./asui/common/RouterView.vue":Bs,"./asui/common/VirtualList.vue":Vs,"./asui/common/ZoomContainer.vue":xs,"./asui/common/ZoomContainerStyle.vue":Ns,"./asui/form/AsaiForm.vue":Z,"./asui/form/AsaiFormLabel.vue":oe,"./asui/form/AsaiFormLabelArea.vue":ae,"./asui/form/AsaiFormLi.vue":le,"./asui/form/AsaiFormObject.vue":se,"./asui/form/AsaiFormShow.vue":ie,"./asui/form/AsaiInput.vue":re,"./asui/form/AsaiRichEditor.vue":ce,"./asui/form/AsaiSelect.vue":de,"./asui/form/AsaiSelectLv.vue":me,"./asui/form/AsaiTextJson.vue":fe,"./asui/form/AsaiTextarea.vue":pe,"./asui/form/AsaiUpBinary.vue":ue,"./asui/form/AsaiUpload.vue":he,"./asui/form/AsaiUploadImg.vue":ge,"./asui/form/AsaiUploadImgCut.vue":ye,"./asui/form/AsaiUploadImgCutPop.vue":be,"./asui/formbase/AsfCheck.vue":hi,"./asui/formbase/AsfInput.vue":wi,"./asui/formbase/AsfInputSn.vue":Ei,"./asui/formbase/AsfSelect.vue":Pi,"./asui/formbase/AsfTextarea.vue":Oi,"./asui/formbase/AsfTick.vue":Ti,"./asui/formbase/AsfUploadFile.vue":Ui,"./asui/formbase/AsfUploadText.vue":Ri,"./asui/page/PageErr.vue":Ki,"./asui/page/PageLoadClient.vue":Gi,"./asui/page/PageLoadErr.vue":tr,"./asui/page/PageLoadServer.vue":ir,"./asui/page/PageLoadUserToken.vue":pr,"./asui/page/PageLoadUserTokenOnline.vue":kr,"./asui/page/PageLoadWs.vue":Sr,"./asui/pop/PopBox.vue":Kr,"./asui/pop/PopBoxConfirm.vue":Xr,"./asui/pop/PopBoxConfirmPass.vue":Gr,"./asui/pop/PopDrop.vue":Zr,"./asui/pop/PopMod.vue":vr,"./asui/pop/PopMsg.vue":sc,"./asui/pop/PopMsgOneByOne.vue":dc,"./asui/pop/PopTip.vue":fc,"./asui/pop/PopTipConfirm.vue":gc})})}},bc={class:"page-404"},kc={class:"content"},_c={key:0,class:"title"},$c={class:"description"},Cc={class:"footer"},ke=Object.freeze(Object.defineProperty({__proto__:null,default:A(e.defineComponent({__name:"Asai404",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",bc,[e.createElementVNode("div",kc,[l[0]||(l[0]=e.createElementVNode("div",{class:"error-code"},"404",-1)),e.unref(o).lang?.asai?.page?.page404?(e.openBlock(),e.createElementBlock("h1",_c,e.toDisplayString(e.unref(o).lang?.asai?.page?.page404||"页面未找到"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",$c,e.toDisplayString(e.unref(o).lang?.asai?.page?.reason404||"Sorry, Page not found!"),1)]),e.createElementVNode("div",Cc,[e.createVNode(s,{ujt:t.ujt},null,8,["ujt"])])])}}}),[["__scopeId","data-v-244f9395"]])},Symbol.toStringTag,{value:"Module"}));K.default=yc,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
13
|
+
`+l.rooms[n.room.roomname].map((c,m)=>"("+(m+1)+") "+c.us+":"+c.msg).join(`
|
|
14
|
+
`),(n.room?.lang?.chat||a.lang.asaichat.chat)+"-"+n.room.roomname+".txt")}return(c,m)=>(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",{onClick:m[0]||(m[0]=r=>s())},"清空聊天记录"),e.createElementVNode("div",{onClick:m[1]||(m[1]=r=>d())},"下载聊天记录")]))}}),[["__scopeId","data-v-935eb5ea"]])},Symbol.toStringTag,{value:"Module"})),Yo={class:"as-audio-area"},Go={class:"as-media-view"},Jo=["src"],Qo={class:"button-text"},Zo={key:0,class:"recording-effects"},vo=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"VedioRecorder",props:{ujt:{},room:{},mediadata:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,{mediaOnPress:l,mediaOnHold:s,mediaOnRelease:d}=o.useMediaWork(n.ujt,n.mediadata,1),c=e.ref(null);return n.mediadata.mediaFnView=async m=>{c.value.srcObject=m,await c.value.play()},(m,r)=>{const i=e.resolveDirective("longpress");return e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Go,[t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("video",{key:0,class:"as-media-working",ref_key:"mediaView",ref:c,autoplay:"",playsinline:"",muted:""},null,512)):(e.openBlock(),e.createElementBlock("video",{key:1,class:"as-media-show",src:t.mediadata.mediaBase64,autoplay:"",loop:"",controls:""},null,8,Jo))]),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["record-button",{recording:t.mediadata.mediaWorking}])},[e.createElementVNode("span",Qo,e.toDisplayString(t.mediadata.mediaWorking?e.unref(a).lang.asaichat.VedioRecorderEnd:e.unref(a).lang.asaichat.VedioRecorderStart),1),t.mediadata.mediaWorking?(e.openBlock(),e.createElementBlock("div",Zo,[...r[0]||(r[0]=[e.createStaticVNode('<div class="recording-indicator" data-v-5a88f096><div class="pulse" data-v-5a88f096></div><div class="pulse pulse-2" data-v-5a88f096></div><div class="pulse pulse-3" data-v-5a88f096></div></div><div class="audio-bars" data-v-5a88f096><div class="bar" data-v-5a88f096></div><div class="bar" data-v-5a88f096></div><div class="bar" data-v-5a88f096></div><div class="bar" data-v-5a88f096></div><div class="bar" data-v-5a88f096></div></div>',2)])])):e.createCommentVNode("",!0)],2)),[[i,{press:e.unref(l),hold:e.unref(s),release:e.unref(d)}]])])}}}),[["__scopeId","data-v-5a88f096"]])},Symbol.toStringTag,{value:"Module"})),ea={class:"as-chatopt-area"},ta=["onClick"],na={class:"as-chatopt-icon"},oa={class:"as-chatopt-tit"},aa={class:"as-chatopt-btns"},la={class:"as-chatopt-btns"},sa={key:0,class:"as-chatopt-poparea"},ia=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChatRoomOpt",props:{ujt:{},room:{},chatdata:{}},setup(t){const n=t,{$global:o}=n.ujt,a={types:[[2,"EmojiList","😄",0],[3,"MessageManager","📨",0],[11,"AudioRecorder","🎙️",7],[12,"VedioRecorder","📹",7]]},l=e.computed(()=>a.types.filter(r=>!r[3]||r[3]<=(o.user?.info?.lv||0))),s=Object.assign({"./_comps/AudioRecorder.vue":Ho,"./_comps/EmojiList.vue":qo,"./_comps/MessageManager.vue":Xo,"./_comps/VedioRecorder.vue":vo});function d(r){const i=r.match(/([^\\/]+)(?=\.vue$)/);return i?i[1]:null}for(let r in s)s[d(r)||r]=s[r],delete s[r];function c(r){return r&&s[r]?.default?s[r].default:null}function m(r=null){r?(n.chatdata.optty=r[0],n.chatdata.optcomp=r[1]):(n.chatdata.optty=1,n.chatdata.optcomp="")}return(r,i)=>(e.openBlock(),e.createElementBlock("div",ea,[t.chatdata.optty==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,p=>(e.openBlock(),e.createElementBlock("div",{class:"as-chatopt-li",onClick:f=>m(p),key:"li"+p[0]},[e.createElementVNode("div",na,e.toDisplayString(p[2]),1),e.createElementVNode("div",oa,e.toDisplayString(e.unref(o).lang.asaichat[p[1]]),1)],8,ta))),128)),e.createElementVNode("div",aa,[e.createElementVNode("div",{class:"as-chatopt-btn",onClick:i[0]||(i[0]=p=>t.chatdata.optFn())},e.toDisplayString(e.unref(o).lang.asaichat.optClose),1)])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",la,[e.createElementVNode("div",{class:"as-chatopt-btn",onClick:i[1]||(i[1]=p=>m())},e.toDisplayString(e.unref(o).lang.asaichat.optBack),1),e.createElementVNode("div",{class:"as-chatopt-btn",onClick:i[2]||(i[2]=p=>t.chatdata.optFn())},e.toDisplayString(e.unref(o).lang.asaichat.optClose),1)]),t.chatdata.optcomp?(e.openBlock(),e.createElementBlock("div",sa,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(t.chatdata.optcomp)),{ujt:t.ujt,room:t.room,mediadata:t.chatdata},null,8,["ujt","room","mediadata"]))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(o).lang.asaichat.optNoComp),1)],64))],64))]))}}),[["__scopeId","data-v-686d9b32"]])},Symbol.toStringTag,{value:"Module"})),ra=t=>{const{$model:n}=t;function o(){const a={};return Object.keys(n.data.asai.keyboard.mapkeys).forEach(l=>{Array.isArray(n.data.asai.keyboard.mapkeys[l])&&n.data.asai.keyboard.mapkeys[l].length==4?a[l]=[...n.data.asai.keyboard.mapkeys[l],n.data.asai.keyboard.bottomkeys]:a[l]=n.data.asai.keyboard.mapkeys[l]}),{...JSON.parse(JSON.stringify(n.data.asai.keyboard||{})),mapkeys:JSON.parse(JSON.stringify(a))}}return{initKeyboard:o}},ca=(t,n)=>{const{$global:o,$fn:a,$model:l}=t,s={},d=(r,i,p,f=null,u=null)=>{if(n.keyMap.bd.Type=="Chinese"&&f==="left"){n.keyMap.bd.zhindex<1?n.keyMap.bd.zhindex=0:n.keyMap.bd.zhindex--;return}else if(n.keyMap.bd.Type=="Chinese"&&f==="right"){n.keyMap.bd.zhindex>n.keyMap.bd.zharr.length-1?n.keyMap.bd.zhindex=n.keyMap.bd.zharr.length-1:n.keyMap.bd.zhindex++;return}else if(o.keyboard.params.type==="monaco"){if(n.keyMap.bd.Type!=="Chinese"&&o.keyboard.opt?.moveLeft&&f==="left"){o.keyboard.opt?.moveLeft();return}else if(n.keyMap.bd.Type!=="Chinese"&&o.keyboard.opt?.moveRight&&f==="right"){o.keyboard.opt?.moveRight();return}else if(o.keyboard.opt?.backText&&f===0){o.keyboard.opt?.backText();return}else if(o.keyboard.opt?.insertText&&f!=null){if(o.keyboard.opt?.backText){const{endColumn:g,endLineNumber:y,startColumn:b,startLineNumber:h}=l.lua.editor.getSelection();(g!==b||y!==h)&&o.keyboard.opt?.backText()}o.keyboard.opt?.insertText(f,u);return}}r.value=i,n.keyMap.bd.pos=p,r.dispatchEvent(new Event("input",{bubbles:!0}));try{r.focus(),r.setSelectionRange(p,p)}catch{o.keyboard.params?.ot?.fnnumcb?.()}},c=(r={})=>{r.char=r.char||(n.keyMap.bd.Shift?r.key.toUpperCase():r.key);const i=r.elVal.slice(0,r.startPos)+r.char+r.elVal.slice(r.endPos);return d(r.elDom,i,r.startPos+r.char.length,r.char,r.onsuggest),r.elDom.focus(),i};s.default=(r={})=>{o.keyboard.params.ot.isnumber&&!/[0-9.-]/.test(r.key)||c(r)},s.Backspace=(r={})=>{const i=r.startPos===r.endPos?r.startPos-1:r.startPos,p=r.elVal.slice(0,i)+r.elVal.slice(r.endPos);d(r.elDom,p,i,0)},s.Left=(r={})=>{d(r.elDom,r.elVal,r.startPos-1>0?r.startPos-1:0,"left")},s.Right=(r={})=>{d(r.elDom,r.elVal,r.endPos+1>r.elVal.length?r.elVal.length:r.endPos+1,"right")},s.Enter=(r={})=>{c({...r,char:`
|
|
15
|
+
`})},s.Shift=(r={})=>{n.keyMap.bd.Shift=!n.keyMap.bd.Shift},s.Ctrl=(r={})=>{n.keyMap.bd.Ctrl=!n.keyMap.bd.Ctrl},s.Hide=(r={})=>{o.keyboard.params?.ot?.fndscb(),o.keyboard.showkeyboard="",o.keyboard.params=null},s.Drag=(r={})=>{},s.Space=(r={})=>{n.keyMap.bd.Ctrl?(o.keyboard.areastyle={},n.keyMap.bd.Shift=!1,n.keyMap.bd.Ctrl=!1):c({...r,char:" "})},s.Cut=async(r={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.copyText&&o.keyboard.opt?.backText){o.keyboard.opt?.copyText()&&o.keyboard.opt?.backText();return}await a.As.copyToClipboard(r.elVal.slice(r.startPos,r.endPos)),r.startPos!=r.endPos&&await s.Backspace(r)}catch(i){console.error("copy fail: ",i)}},s.x=async(r={})=>{n.keyMap.bd.Ctrl?await s.Cut(r):c(r)},s.Copy=async(r={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.copyText){o.keyboard.opt?.copyText();return}await a.As.copyToClipboard(r.elVal.slice(r.startPos,r.endPos))}catch(i){console.error("copy fail: ",i)}},s.c=async(r={})=>{n.keyMap.bd.Ctrl?await s.Copy(r):c(r)},s.Paste=async(r={})=>{try{if(o.keyboard.params.type==="monaco"&&o.keyboard.opt?.pasteText){o.keyboard.opt?.pasteText();return}const i=await a.As.readFromClipboard();c({...r,char:i})}catch(i){console.error("paste fail: ",i)}},s.v=async(r={})=>{n.keyMap.bd.Ctrl?await s.Paste(r):c(r)},s["▲"]=async(r={})=>{const p=r.elVal.split(".")[1]?.length||0;p?r.elVal=(+r.elVal+1/Math.pow(10,p)).toFixed(p):r.elVal++,d(r.elDom,r.elVal,r.startPos,0)},s["▼"]=async(r={})=>{const p=r.elVal.split(".")[1]?.length||0;p?r.elVal=(+r.elVal-1/Math.pow(10,p)).toFixed(p):r.elVal--,d(r.elDom,r.elVal,r.startPos,0)};function m(r={}){o.pop["popkeyboard"+r.key].stat=1}return n.keyMap.popkeys.forEach(r=>{r.startsWith("pop")?s[r]=(i={})=>{m(i),o.pop["popkeyboard"+r].fn=p=>{s.default({...i,key:p}),o.pop["popkeyboard"+r].stat=0}}:s[r]=(i={})=>{o.pop["popkeyboard"+r]={fn:p=>{s.default({...i,key:p})}}}}),{keysFun:s,updateInputValue:d,handleInsertChar:c}},da={class:"keyboard-area"},ma={class:"keyboard-top"},pa={class:"keyboard-menu"},fa=["onPointerdown"],ua={class:"keyboard-opt"},ha={key:1,class:"keyboard-list"},ga={key:0,class:"keyboard-zh"},ya={class:"zh-keys"},_a={key:0,class:"zh-list-area"},ba={class:"zh-list"},ka=["data-key"],$a={class:"zh-desc"},wa={key:1,class:"keyboard-zh"},Ca={class:"zh-desc"},ja=["data-key"],Sa={key:2,class:"keyboard-key key-bg"},Ea=["data-key"],Ba={key:1},Va=["data-key"],xa=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsKeyBoard",props:{ujt:{},opt:{}},setup(t){e.useCssVars(b=>({v05b376a9:s.cfg.theme.bg1,v05b38754:s.cfg.theme.fsd,v6347da88:s.cfg.theme.bg,v6347db2f:s.cfg.theme.gs,v6347db21:s.cfg.theme.ge,v05b376aa:s.cfg.theme.bg2,v05b376ec:s.cfg.theme.bgt,v05b376ab:s.cfg.theme.bg3,v6347db10:s.cfg.theme.fs}));const n=t,{$model:o,$global:a}=n.ujt,{initKeyboard:l}=ra(n.ujt),s=e.reactive({...l()}),{keysFun:d}=ca(n.ujt,{keyMap:s}),c=e.watch(()=>a.keyboard.showkeyboard,(b,h)=>{b&&b!==h&&p()}),m=e.computed(()=>s.askeytypes[a.keyboard.showkeyboard||".askey-default"]||s.askeytypes[".askey-default"]);function r(b){return b?.default?b.default:e.defineAsyncComponent(b)}const i=()=>{a.keyboard.params?.el&&(s.bd.pos=a.keyboard.params.el.selectionStart||0)},p=()=>{e.nextTick(()=>{setTimeout(()=>{i(),s.bd.Type=m?.value?.[0]},10)})},f=async b=>{const h=a.keyboard.params?.el;if(!h)return;const $=h.value;let _,k;_=h.selectionStart,k=h.selectionEnd,_==null&&(_=$.length,k=$.length),d[b]&&typeof d[b]=="function"?d[b]({key:b,elDom:h,elVal:$,startPos:_,endPos:k}):d.default({key:b,elDom:h,elVal:$,startPos:_,endPos:k,char:null,onsuggest:a.keyboard.params.type==="monaco"&&a.keyboard.opt?.pasteText?1:0})},u=b=>{const h=[];for(const[$,_]of Object.entries(o.data?.asai?.chinese||{}))$.startsWith(b)&&h.push(..._);return h},g=(b,h)=>{let $=!1;s.bd.Type==="Chinese"&&(b==="Backspace"?(s.bd.zhs&&(s.bd.zhs=s.bd.zhs.slice(0,-1),s.bd.zharr=u(s.bd.zhs),$=!0),s.bd.zhs||(s.bd.zharr=[],s.bd.zhindex=0)):["Space","Enter"].includes(b)?s.bd.zharr?.length&&(b=s.bd.zharr[s.bd.zhindex],s.bd.zhs="",s.bd.zhindex=0,s.bd.zharr=[]):"qwertyuiopasdfghjklzxcvbnm".includes(b)?(s.bd.zhs+=b,s.bd.zharr=u(s.bd.zhs),s.bd.zhindex=0,$=!0):b?.length>1&&d[b]||(s.bd.zhs&&(s.bd.zhs=""),s.bd.zharr?.length&&(h.classList.contains("zh-li")||(b=s.bd.zharr[0]+b),s.bd.zhs="",s.bd.zhindex=0,s.bd.zharr=[]))),!$&&f(b)},y=b=>{const h=b.target;if(!h.classList.contains("askey"))return;const $=h.dataset.key;if(!$)return;b.preventDefault(),b.stopPropagation();let _=h.classList.contains("zh-li");switch(b.type){case"pointerdown":!_&&g($,h);break;case"pointerup":_&&g($,h);break}};return e.onBeforeUnmount(()=>{c&&c.stop()}),(b,h)=>{const $=e.resolveComponent("PopDrop"),_=e.resolveDirective("dragzoom");return e.openBlock(),e.createElementBlock("div",{class:"keyboard-container",id:"keyboardarea",onPointerdown:y,onPointerup:y,onPointercancel:y},[e.createElementVNode("div",da,[e.withDirectives((e.openBlock(),e.createElementBlock("div",ma,[e.createElementVNode("div",pa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,k=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.bd.Type==k?"active":""),key:k,onPointerdown:e.withModifiers(S=>s.bd.Type=k,["stop"])},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.menu?.[k]||k),43,fa))),128))]),e.createElementVNode("div",ua,[e.createElementVNode("div",null,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.Drag||"Drag"),1),e.createElementVNode("div",{onPointerdown:h[0]||(h[0]=e.withModifiers((...k)=>e.unref(d).Hide&&e.unref(d).Hide(...k),["stop"]))},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.Hide||"Hide"),33)])])),[[_,{ujt:t.ujt,pos:e.unref(a).keyboard.areastyle,domarea:"askeyboardarea",dommask:"askeyboardmask",scale:t.opt?.scale}]]),e.unref(a).keyboard.comps?.[s.bd.Type]?(e.openBlock(),e.createElementBlock("div",{key:0,onPointerdown:h[1]||(h[1]=k=>f(s.bd.Type)),class:"keyboard-comp"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(e.unref(a).keyboard.comps[s.bd.Type])),{ujt:t.ujt,onChange:e.unref(a).pop["popkeyboard"+s.bd.Type]?.fn},null,40,["ujt","onChange"]))],32)):(e.openBlock(),e.createElementBlock("div",ha,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.mapkeys[s.bd.Type],(k,S)=>(e.openBlock(),e.createElementBlock("div",{class:"keyboard-row",key:"row"+S},[s.bd.Type==="Chinese"&&S===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.bd.zhs?(e.openBlock(),e.createElementBlock("div",ga,[e.createElementVNode("div",ya,e.toDisplayString(s.bd.zhs),1),s.bd?.zharr?.length?(e.openBlock(),e.createElementBlock("div",_a,[e.createElementVNode("div",ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.bd.zharr,(C,A)=>(e.openBlock(),e.createElementBlock("div",{key:"zh"+A,class:e.normalizeClass(`askey zh-li${s.bd.zhindex==A?" zh-cur":""}`),"data-key":C},e.toDisplayString(C),11,ka))),128))])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"zh-list-area",onPointerdown:h[2]||(h[2]=e.withModifiers(C=>s.bd.zhs="",["stop"]))},[e.createElementVNode("div",$a,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.pynomatch),1)],32))])):(e.openBlock(),e.createElementBlock("div",wa,[e.createElementVNode("div",Ca,e.toDisplayString(e.unref(a).lang.sys?.keyboard?.pyclick),1)]))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(k,(C,A)=>(e.openBlock(),e.createElementBlock("div",{class:"keyboard-item",key:"k"+C?.[0],style:e.normalizeStyle({width:`${C[1]}%`})},[C[2]==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64)):C[3]?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(`askey keyboard-key${C[2]?" key-bg":""}${s.bd[C[3]]?" active":""}`),"data-key":C[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[C[0]]||C[0]),11,ja)):C[0]==="Drag"?e.withDirectives((e.openBlock(),e.createElementBlock("button",Sa,[e.createTextVNode(e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[C[0]]||C[0]),1)])),[[_,{ujt:t.ujt,pos:e.unref(a).keyboard.areastyle,domarea:"askeyboardarea",dommask:"askeyboardmask",scale:t.opt?.scale}]]):s.popkeys.includes(C[0])?(e.openBlock(),e.createBlock($,{key:3,ujt:t.ujt,id:"popkeyboard"+C[0]},{desarea:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(`askey keyboard-key${C[2]?" key-bg":""}`),"data-key":C[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[C[0]]||(s.bd.Shift?C[0].toUpperCase():C[0])),11,Ea)]),poparea:e.withCtx(()=>[e.unref(a).keyboard?.comps?.[C[0]]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass("as-pop-keyboard"+(s.popkeysx.includes(C[0])?"-r":""))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(e.unref(a).keyboard.comps[C[0]])),{ujt:t.ujt,onChange:e.unref(a).pop["popkeyboard"+C[0]].fn},null,40,["ujt","onChange"]))],2)):(e.openBlock(),e.createElementBlock("div",Ba,"No component!"))]),_:2},1032,["ujt","id"])):(e.openBlock(),e.createElementBlock("button",{key:4,class:e.normalizeClass(`askey keyboard-key${C[2]?" key-bg":""}`),"data-key":C[0]},e.toDisplayString(e.unref(a).lang.sys?.keyboard?.[C[0]]||(s.bd.Shift?C[0].toUpperCase():C[0])),11,Va))],4))),128))]))),128))]))])],32)}}}),[["__scopeId","data-v-cc9a4f8e"]])},Symbol.toStringTag,{value:"Module"})),Na=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsKeyBoardVue",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o,$model:a}=n.ujt,l=e.computed(()=>n.opt?.pos?.auto?{width:o.wd?.w,height:o.wd?.h}:{width:a.data.asai.keyboard.cfg?.size?.mw,height:a.data.asai.keyboard.cfg?.size?.mh}),s=e.computed(()=>o.keyboard.params?.ot?.style?.area?o.keyboard.params.ot.style.area:{width:l.value.width+"px",height:l.value.height+"px"}),d=e.computed(()=>{if(o.keyboard.params?.ot?.style?.main)return o.keyboard.params.ot.style.main;{const c={maxWidth:l.value.width,maxHeight:l.value.height};return o.keyboard.areastyle?.w==null&&(o.keyboard.areastyle.w=a.data.asai.keyboard.cfg?.size?.w),o.keyboard.areastyle?.h==null&&(o.keyboard.areastyle.h=a.data.asai.keyboard.cfg?.size?.h),o.keyboard.areastyle?.x==null&&(!n.opt?.pos?.auto||l.value.width)&&(o.keyboard.areastyle.x=(c.maxWidth-o.keyboard.areastyle.w)/2+n.opt?.pos?.x),o.keyboard.areastyle?.y==null&&(!n.opt?.pos?.auto||l.value.height)&&(o.keyboard.areastyle.y=c.maxHeight-o.keyboard.areastyle.h+n.opt?.pos?.y),c.maxWidth+="px",c.maxHeight+="px",c.transform=`translate(${o.keyboard.areastyle.x}px, ${o.keyboard.areastyle.y}px)`,c.width=o.keyboard.areastyle.w+"px",c.height=o.keyboard.areastyle.h+"px",c}});return e.onMounted(()=>{n.opt?.pos?.auto&&(o.wd.w=document?.documentElement?.clientWidth||document?.body?.clientWidth,o.wd.h=document?.documentElement?.clientHeight||document?.body?.clientHeight)}),(c,m)=>{const r=e.resolveComponent("AsKeyBoard"),i=e.resolveDirective("popresizezoom");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(s.value),id:"askeyboardmask"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:"askeyboardarea",style:e.normalizeStyle(d.value)},[e.createVNode(r,{ujt:t.ujt,opt:t.opt},null,8,["ujt","opt"])],4)),[[i,{ujt:t.ujt,size:e.unref(o).keyboard.areastyle,scale:t.opt?.scale}]])],4)}}}),[["__scopeId","data-v-ce66c27e"]])},Symbol.toStringTag,{value:"Module"})),Pa={key:0,class:"as-link-area"},Da={class:"as-link"},za={class:"as-link-type-tit"},Aa={key:0,class:"as-link-li"},Ma={class:"as-link-li-tit"},Oa={class:"as-link-li-input"},Ta={key:0,class:"as-link-li-stat"},La={class:"as-link-btns"},Ua=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsLink",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a,$ws:l}=n.ujt,s=e.reactive({link:null});function d(){s.link=JSON.parse(JSON.stringify(o.link))}function c(){a.saveLink(s.link)}function m(){a.startLink().then(r=>{d()})}return e.onMounted(()=>{d()}),(r,i)=>{const p=e.resolveComponent("AsfInput");return s.link?(e.openBlock(),e.createElementBlock("div",Pa,[e.createElementVNode("div",Da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.link,(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"as-link-type",key:"type"+u},[e.createElementVNode("div",za,e.toDisplayString(e.unref(o).lang.sys.link.class[u]),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,(g,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"key"+y},[g?.close?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Aa,[e.createElementVNode("div",Ma,e.toDisplayString(e.unref(o).lang.sys.link[y]||y)+": ",1),e.createElementVNode("div",Oa,[e.createVNode(p,{ujt:t.ujt,opt:{type:"text"},modelValue:g.url,"onUpdate:modelValue":b=>g.url=b},null,8,["ujt","modelValue","onUpdate:modelValue"])]),u&&typeof u=="string"&&u=="ws"?(e.openBlock(),e.createElementBlock("div",Ta,e.toDisplayString(e.unref(l)?.[y]?.open?"☑":"☒"),1)):e.createCommentVNode("",!0)]))],64))),128))]))),128))]),e.createElementVNode("div",La,[e.createElementVNode("div",{class:"btn",onClick:i[0]||(i[0]=f=>c())},"确认修改"),e.createElementVNode("div",{class:"btn",onClick:i[1]||(i[1]=f=>m())},"恢复默认"),e.createElementVNode("div",{class:"btn",onClick:i[2]||(i[2]=f=>d())},"取消修改")])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f4aeeac2"]])},Symbol.toStringTag,{value:"Module"})),Ia={class:"novel-reader"},Ra={class:"reader-header"},Fa={class:"header-content"},Wa={class:"novel-title"},Ha={class:"search-container"},qa={class:"search-input-wrapper"},Ka={key:0,class:"search-results"},Xa=["onClick"],Ya={class:"result-title"},Ga=["innerHTML"],Ja={key:1,class:"no-results"},Qa={class:"reader-container"},Za={class:"volume-list"},va={class:"sidebar-title"},el=["onClick"],tl={class:"volume-title"},nl={class:"chapter-list"},ol=["onClick"],al={class:"reader-content"},ll={class:"content-container"},sl={class:"chapter-header"},il={class:"chapter-title"},rl={class:"chapter-meta"},cl={key:0},dl={class:"reader-controls"},ml=["disabled"],pl={class:"font-controls"},fl=["disabled"],ul={class:"font-size-display"},hl=["disabled"],gl=["disabled"],yl={key:0,class:"mobile-fab"},_l=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsNovel",props:{ujt:{},book:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,{cmNovelData:l}=a.useNovel(n),s=e.reactive({tm:{timeout:null,starttime:0,endtime:0,wait:300,immediate:!1}}),d=e.ref(!1),c=e.ref(!1),m=e.ref(!1),r=e.ref(""),i=e.ref(16),p=e.ref([]),f=e.computed(()=>{let x={};return x=g.value?.find(T=>T.sn===o.location.query?.id),x?.sn||(x=l.value[0].cc[0].cc[0]),x}),u=e.ref([]),g=e.computed(()=>l.value[0].cc.flatMap(x=>x.cc)),y=e.computed(()=>g.value.findIndex(x=>x.sn===f.value?.sn)),b=e.computed(()=>y.value>0),h=e.computed(()=>y.value<g.value.length-1),$=()=>{d.value=!d.value},_=()=>{c.value=!c.value,c.value||(r.value="",u.value=[])},k=()=>{c.value=!1,r.value="",u.value=[]},S=x=>{const T=p.value.indexOf(x);T>-1?p.value.splice(T,1):p.value.push(x)},C=x=>{a.setquery({id:x.sn}),d.value=!1},A=()=>{y.value>0&&a.setquery({id:g.value[y.value-1].sn})},V=()=>{y.value<g.value.length-1&&a.setquery({id:g.value[y.value+1].sn})},w=()=>{i.value<24&&(i.value+=1)},E=()=>{i.value>12&&(i.value-=1)},B=()=>{a.As.debounce(()=>{const x=r.value.trim();if(!x){u.value=[];return}u.value=g.value?.filter(T=>T.co.includes(x)).slice(0,100).map(T=>{const U=T.co.split(x);return{sn:T.sn,li:T.li,preview:`...${U[0].slice(-20)}<b>${x}</b>${U[1].slice(0,20)}...`}})},s.tm)},j=x=>{x?.sn&&(a.setquery({id:x.sn}),c.value=!1,r.value="",u.value=[])},P=()=>{m.value=window.innerWidth<=768};return e.onMounted(()=>{P(),window.addEventListener("resize",P),l.value[0].cc.length>0&&p.value.push(l.value[0].cc[0].sn)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",P)}),(x,T)=>(e.openBlock(),e.createElementBlock("div",Ia,[e.createElementVNode("header",Ra,[e.createElementVNode("div",Fa,[e.createElementVNode("button",{class:"menu-toggle",onClick:$},[...T[1]||(T[1]=[e.createElementVNode("span",{class:"hamburger-icon"},null,-1)])]),e.createElementVNode("h1",Wa,e.toDisplayString(e.unref(l)[0].ch),1),e.createElementVNode("button",{class:"search-toggle",onClick:_},[...T[2]||(T[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["search-panel",{active:c.value}])},[e.createElementVNode("div",Ha,[e.createElementVNode("div",qa,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":T[0]||(T[0]=U=>r.value=U),placeholder:"搜索小说内容...",class:"search-input",onInput:B},null,544),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"close-search",onClick:k},"×")]),u.value.length>0?(e.openBlock(),e.createElementBlock("div",Ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(U,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:"search-result-item",onClick:G=>j(U)},[e.createElementVNode("div",Ya,e.toDisplayString(U?.li),1),e.createElementVNode("div",{class:"result-preview",innerHTML:U?.preview},null,8,Ga)],8,Xa))),128))])):r.value&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",Ja," 未找到相关内容 ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",Qa,[e.createElementVNode("aside",{class:e.normalizeClass(["sidebar",{active:d.value}])},[e.createElementVNode("div",Za,[e.createElementVNode("h2",va,e.toDisplayString(e.unref(l)[0].ch),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[0].cc,U=>(e.openBlock(),e.createElementBlock("div",{key:U.sn,class:"volume-item"},[e.createElementVNode("div",{class:"volume-header",onClick:F=>S(U.sn)},[e.createElementVNode("h3",tl,e.toDisplayString(U.cl),1),e.createElementVNode("span",{class:e.normalizeClass(["toggle-icon",{expanded:p.value.includes(U.sn)}])}," ▼ ",2)],8,el),e.withDirectives(e.createElementVNode("ul",nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.cc,F=>(e.openBlock(),e.createElementBlock("li",{key:F.sn,class:e.normalizeClass(["chapter-item",{active:f.value?.sn===F.sn}]),onClick:G=>C(F)},e.toDisplayString(F.li),11,ol))),128))],512),[[e.vShow,p.value.includes(U.sn)]])]))),128))])],2),e.createElementVNode("main",al,[e.createElementVNode("div",ll,[e.createElementVNode("div",sl,[e.createElementVNode("h2",il,e.toDisplayString(f.value.li),1),e.createElementVNode("div",rl,[e.createElementVNode("span",null," 第"+e.toDisplayString(y.value+1)+"章 ",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(f.value),U=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.value[U]&&!["co","li","sn","ty"].includes(U)?(e.openBlock(),e.createElementBlock("span",cl,e.toDisplayString(f.value[U]),1)):e.createCommentVNode("",!0)],64))),256))])]),e.createElementVNode("div",{class:"chapter-content",style:e.normalizeStyle({fontSize:i.value+"px"})},e.toDisplayString(f.value.co),5),e.createElementVNode("div",dl,[e.createElementVNode("button",{class:"control-btn prev-next-btn",onClick:A,disabled:!b.value}," 上一章 ",8,ml),e.createElementVNode("div",pl,[e.createElementVNode("button",{class:"font-btn",onClick:E,disabled:i.value<=12}," A- ",8,fl),e.createElementVNode("span",ul,e.toDisplayString(i.value)+"px",1),e.createElementVNode("button",{class:"font-btn",onClick:w,disabled:i.value>=24}," A+ ",8,hl)]),e.createElementVNode("button",{class:"control-btn prev-next-btn",onClick:V,disabled:!h.value}," 下一章 ",8,gl)])])])]),m.value?(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("button",{class:"fab-btn",onClick:$},[...T[3]||(T[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.createElementVNode("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.createElementVNode("line",{x1:"3",y1:"18",x2:"21",y2:"18"})],-1)])])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-9e247518"]])},Symbol.toStringTag,{value:"Module"})),bl={key:0,class:"as-pagebusy-area touch-none"},kl={class:"as-pagebusy"},$l={key:0,class:"as-pagebusy-v"},wl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsPageBusy",props:{ujt:{}},setup(t){e.useCssVars(d=>({v61912a2b:l.value}));const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>o.pagebusy?.zindex||9999);function s(){a.popConfirm({con:o.lang.asai.resetconfirm,zindex:l.value+1,fn:()=>{o.pagebusy=null,a.As.localInit()}})}return(d,c)=>{const m=e.resolveComponent("AsPageBusyGif"),r=e.resolveDirective("dbpointerdown");return e.unref(o).pagebusy?e.withDirectives((e.openBlock(),e.createElementBlock("div",bl,[e.createElementVNode("div",{class:"as-pagebusy-close",onClick:c[0]||(c[0]=e.withModifiers(i=>s(),["stop"]))}),e.createElementVNode("div",kl,[e.createVNode(m,{ujt:t.ujt},null,8,["ujt"]),e.unref(o).pagebusy?.v?(e.openBlock(),e.createElementBlock("div",$l,e.toDisplayString(e.unref(o).pagebusy?.v),1)):e.createCommentVNode("",!0)])])),[[r,()=>{e.unref(o).pagebusy?.keep||s()}]]):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-fd78dd2f"]])},Symbol.toStringTag,{value:"Module"})),Cl=D(e.defineComponent({__name:"AsLoadingCircle",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:t=>t>0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"as-load-gif",style:e.normalizeStyle({width:t.size+"px",height:t.size+"px"})},null,4))}}),[["__scopeId","data-v-cef41e7c"]]),jl=D(e.defineComponent({__name:"AsLoadingA3d",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:t=>t>0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"a3d-wrapper",style:e.normalizeStyle({"--cube-size":`${t.size}px`,"--half-size":`${t.size/2}px`})},[...o[0]||(o[0]=[e.createStaticVNode('<div class="a3d" data-v-59f08679><div class="a3d-face a3d-face-front" data-v-59f08679></div><div class="a3d-face a3d-face-back" data-v-59f08679></div><div class="a3d-face a3d-face-left" data-v-59f08679></div><div class="a3d-face a3d-face-right" data-v-59f08679></div><div class="a3d-face a3d-face-top" data-v-59f08679></div><div class="a3d-face a3d-face-bottom" data-v-59f08679></div></div>',1)])],4))}}),[["__scopeId","data-v-59f08679"]]),Sl=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsPageBusyGif",props:{ujt:{},opt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>t.opt?.ty||e.unref(o).pagebusy?.ty?(e.openBlock(),e.createBlock(jl,{key:0,size:t.opt?.size||e.unref(o).pagebusy?.size,ujt:t.ujt},null,8,["size","ujt"])):(e.openBlock(),e.createBlock(Cl,{key:1,size:t.opt?.size||e.unref(o).pagebusy?.size,ujt:t.ujt},null,8,["size","ujt"]))}})},Symbol.toStringTag,{value:"Module"})),El={class:"as-icon"},Bl={key:0,class:"as-icon-filter"},Vl=["src"],xl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsSvg",props:{src:{type:String,default:""},height:{type:String,default:"24px"},width:{type:String,default:""},color:{type:String,default:"var(--cm8)"},showtype:{type:String,default:"mask"},webty:{type:String,default:""}},setup(t){const n=t,o=window?.$CFG?.webpath||"./";let a=e.ref("");const l=e.computed(()=>a.value?o+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+a.value+".svg":n.src.startsWith("http")||n.src.endsWith(".svg")||n.src.endsWith(".png")?n.src:o+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+n.src+".svg");function s(){a.value="default"}function d(){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 c(){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,r)=>(e.openBlock(),e.createElementBlock("i",El,[t.showtype==="filter"?(e.openBlock(),e.createElementBlock("i",Bl,[e.createElementVNode("img",{style:e.normalizeStyle(c()),src:l.value,onError:r[0]||(r[0]=i=>s())},null,44,Vl)])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"as-icon-mask",style:e.normalizeStyle(d())},null,4))]))}}),[["__scopeId","data-v-01631e7e"]])},Symbol.toStringTag,{value:"Module"})),Nl=["accept"],Pl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsUploadFile",props:{ujt:{},opt:{}},emits:["onUpload"],setup(t,{emit:n}){const o=t,{$fn:a}=o.ujt,l=n,s=e.ref(null);function d(m){const r=m.target.files[0];!o.opt?.size||r.size<=o.opt?.size?a.As.readFile(r).then(i=>{a.apisys.apiPost(`/api/asaifile/manage/upbase64/?path=${o.opt.path}`,i).then(p=>{l("onUpload",p?.data,r),s.value.value=""})}):(l("onUpload","",r),s.value.value="")}function c(){s.value.click()}return(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:"as-upload-file",onClick:r[0]||(r[0]=i=>c())},[e.createElementVNode("input",{hidden:"",ref_key:"rfUploadDom",ref:s,type:"file",accept:t.opt?.accept||".zip",onChange:d},null,40,Nl),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lg("asai.upload")),1)],!0)]))}}),[["__scopeId","data-v-412e390b"]])},Symbol.toStringTag,{value:"Module"})),Dl=["accept"],zl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"AsUploadTxt",props:{ujt:{},opt:{}},emits:["onUpload"],setup(t,{emit:n}){const o=t,{$fn:a}=o.ujt,l=n,s=e.ref(null);function d(m){const r=m.target.files[0];if(r)if(!o.opt?.size||r.size<=o.opt?.size){const i=new FileReader;i.onload=p=>{const f=p.target?.result;l("onUpload",f,r),s.value.value=""},i.readAsText(r)}else l("onUpload","",r),s.value.value=""}function c(){s.value.click()}return(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:"as-upload-txt",onClick:r[0]||(r[0]=i=>c())},[e.createElementVNode("input",{hidden:"",ref_key:"rfUploadDom",ref:s,type:"file",accept:t.opt?.accept||".txt,.json",onChange:d},null,40,Dl),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a).lg("asai.upload")),1)],!0)]))}}),[["__scopeId","data-v-c243814a"]])},Symbol.toStringTag,{value:"Module"})),Al=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChangeLang",props:{ujt:{},fn:{}},setup(t){const n=t,{$fn:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"as-lang",onClick:l[0]||(l[0]=s=>t.fn?t.fn():e.unref(o).changelang("auto"))},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).lg("asai.langs.default")),1)],!0)]))}}),[["__scopeId","data-v-d95d3e1f"]])},Symbol.toStringTag,{value:"Module"})),Ml=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ChangeTheme",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"as-theme",onClick:s[0]||(s[0]=d=>e.unref(o).changetheme("auto"))},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).lg("asai.theme"+(e.unref(a).config.theme?.includes("dark")?"light":"dark"))),1)],!0)]))}}),[["__scopeId","data-v-a26abbd1"]])},Symbol.toStringTag,{value:"Module"})),Ol={class:"container"},Tl={key:0,class:"preview-wrapper"},Ll=["src"],Ul={class:"controls"},Il={key:0,class:"result-preview"},Rl=["src"],Fl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"ImgUploadCut",props:{ujt:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,{$fn:a,$global:l}=o.ujt,s=n,d=e.computed({get(){return o.modelValue},set(V){s("update:modelValue",V)}}),c=e.ref(""),m=e.ref(""),r=e.ref(null),i=e.ref(null),p=e.ref({x:0,y:0,width:0,height:0,maxWidth:0,maxHeight:0}),f=e.ref({type:null,startX:0,startY:0,originalX:0,originalY:0,originalWidth:0,originalHeight:0,direction:null}),u=e.computed(()=>({transform:`translate(${p.value.x}px, ${p.value.y}px)`,width:`${p.value.width}px`,height:`${p.value.height}px`})),g=e.computed(()=>p.value.width>0&&p.value.height>0),y=V=>{const w=V.target.files[0];if(!w)return;const E=new FileReader;E.onload=B=>{c.value=B.target.result,m.value=""},E.readAsDataURL(w)},b=()=>{const V=r.value,w=i.value;if(!V||!w)return;const E=Math.min(w.clientWidth,V.naturalWidth),B=Math.min(w.clientHeight,V.naturalHeight),j=Math.min(E*.8,V.naturalWidth),P=Math.min(B*.8,V.naturalHeight);p.value={x:(E-j)/2,y:(B-P)/2,width:j,height:P,maxWidth:E,maxHeight:B}},h=(V,w=null)=>{const E=window.event||event,B=E.touches?E.touches[0]:E;f.value={type:V,startX:B.clientX,startY:B.clientY,originalX:p.value.x,originalY:p.value.y,originalWidth:p.value.width,originalHeight:p.value.height,direction:w};const j=P=>{requestAnimationFrame(()=>{V==="move"?$(P):_(P)})};window.addEventListener("mousemove",j),window.addEventListener("touchmove",j),window.addEventListener("mouseup",k),window.addEventListener("touchend",k)},$=V=>{const w=window.event||V,E=w.touches?w.touches[0]:w;if(f.value.type!=="move")return;const B=E.clientX-f.value.startX,j=E.clientY-f.value.startY,P=Math.max(0,Math.min(f.value.originalX+B,p.value.maxWidth-p.value.width)),x=Math.max(0,Math.min(f.value.originalY+j,p.value.maxHeight-p.value.height));Object.assign(p.value,{x:P,y:x})},_=V=>{const w=window.event||V,E=w.touches?w.touches[0]:w;if(f.value.type!=="resize")return;const B=E.clientX-f.value.startX,j=E.clientY-f.value.startY,P=f.value.direction;let x=f.value.originalWidth,T=f.value.originalHeight,U=f.value.originalX,F=f.value.originalY;switch(P){case"tr":x=Math.max(100,Math.min(f.value.originalWidth+B,p.value.maxWidth-U)),T=Math.max(100,f.value.originalHeight-j),F=Math.max(0,f.value.originalY+j);break;case"tl":x=Math.max(100,f.value.originalWidth-B),T=Math.max(100,f.value.originalHeight-j),U=Math.max(0,f.value.originalX+B),F=Math.max(0,f.value.originalY+j);break;case"br":x=Math.max(100,f.value.originalWidth+B),T=Math.max(100,f.value.originalHeight+j);break;case"bl":x=Math.max(100,f.value.originalWidth-B),T=Math.max(100,f.value.originalHeight+j),U=Math.max(0,f.value.originalX+B);break}x=Math.min(x,p.value.maxWidth-U),T=Math.min(T,p.value.maxHeight-F),Object.assign(p.value,{x:U,y:F,width:x,height:T})},k=()=>{f.value.type=null,window.removeEventListener("mousemove",$),window.removeEventListener("touchmove",$),window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",k),window.removeEventListener("touchend",k)},S=()=>{const V=r.value,w=V.naturalWidth/V.width,E=V.naturalHeight/V.height,B=Math.min(p.value.width*w,V.naturalWidth),j=Math.min(p.value.height*E,V.naturalHeight),P=document.createElement("canvas");P.width=B,P.height=j,P.getContext("2d").drawImage(V,p.value.x*w,p.value.y*E,B,j,0,0,B,j),m.value=P.toDataURL("image/png",.9)},C=()=>{const V=document.createElement("a");V.download="cropped-image.png",V.href=m.value,V.click()},A=()=>{const V=m.value.split(",")[1],w=a.As.Uuid();a.apisys.apiPost("/api/asaifile/manage/upbase64/?path="+l.sys.path.updir+w+".png",V).then(E=>{d.value=E.data})};return(V,w)=>(e.openBlock(),e.createElementBlock("div",Ol,[e.createElementVNode("input",{type:"file",accept:"image/*",onChange:y},null,32),c.value?(e.openBlock(),e.createElementBlock("div",Tl,[e.createElementVNode("div",{class:"preview-container",ref_key:"previewContainer",ref:i},[e.createElementVNode("img",{ref_key:"previewImage",ref:r,src:c.value,onLoad:b},null,40,Ll),e.withDirectives(e.createElementVNode("div",{class:"crop-box",style:e.normalizeStyle(u.value),onPointerdown:w[8]||(w[8]=e.withModifiers(E=>h("move"),["prevent"])),onTouchstart:w[9]||(w[9]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:"crop-handle top-left",onPointerdown:w[0]||(w[0]=e.withModifiers(E=>h("resize","tl"),["stop"])),onTouchstart:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle top-right",onPointerdown:w[2]||(w[2]=e.withModifiers(E=>h("resize","tr"),["stop"])),onTouchstart:w[3]||(w[3]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle bottom-left",onPointerdown:w[4]||(w[4]=e.withModifiers(E=>h("resize","bl"),["stop"])),onTouchstart:w[5]||(w[5]=e.withModifiers(()=>{},["stop"]))},null,32),e.createElementVNode("div",{class:"crop-handle bottom-right",onPointerdown:w[6]||(w[6]=e.withModifiers(E=>h("resize","br"),["stop"])),onTouchstart:w[7]||(w[7]=e.withModifiers(()=>{},["stop"]))},null,32)],36),[[e.vShow,g.value]])],512),e.createElementVNode("div",Ul,[e.createElementVNode("button",{onPointerdown:S,onTouchstart:w[10]||(w[10]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.confirm")),33),m.value?(e.openBlock(),e.createElementBlock("button",{key:0,onPointerdown:C,onTouchstart:w[11]||(w[11]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.download")),33)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("button",{key:1,onPointerdown:A,onTouchstart:w[12]||(w[12]=e.withModifiers(()=>{},["stop"]))},e.toDisplayString(e.unref(a).lg("asai.upload")),33)):e.createCommentVNode("",!0)]),m.value?(e.openBlock(),e.createElementBlock("div",Il,[e.createElementVNode("img",{src:m.value},null,8,Rl)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-1390d8b9"]])},Symbol.toStringTag,{value:"Module"})),Wl={class:"as-json-area as-form-line"},Hl={key:0,class:"as-json-tit"},ql=["value"],Kl={class:"as-json-main"},Xl={key:1,class:"as-json-btns"},Yl=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"JsonEditor",props:{ujt:{},asaidata:{},fnapi:{}},setup(t){const n=t,{$fn:o}=n.ujt;!n.asaidata?.data&&n.asaidata.path&&a(),n.asaidata.ty==="txt"&&(n.asaidata.data=JSON.stringify(n.asaidata.data,null,2));function a(){n.fnapi?.apiGet("/api/asaijson/manage/select/?path="+n.asaidata.path).then(d=>{n.asaidata.data=d.data})}function l(){n.fnapi?.apiGet("/api/asaijson/manage/delete/?path="+n.asaidata.path).then(d=>{})}function s(){n.fnapi?.apiPost("/api/asaijson/manage/update/?path="+n.asaidata.path,n.asaidata.data).then(d=>{})}return(d,c)=>{const m=e.resolveComponent("AsaiForm");return e.openBlock(),e.createElementBlock("div",Wl,[t.asaidata.btn?(e.openBlock(),e.createElementBlock("div",Hl,[e.createElementVNode("button",{onClick:c[0]||(c[0]=r=>a())},e.toDisplayString(e.unref(o).lg("asai.read")),1),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":c[1]||(c[1]=r=>t.asaidata.path=r)},null,512),[[e.vModelText,t.asaidata.path]]),t.asaidata.list?.length?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":c[2]||(c[2]=r=>t.asaidata.path=r)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.asaidata.list,r=>(e.openBlock(),e.createElementBlock("option",{value:r.value},e.toDisplayString(r.label),9,ql))),256))],512)),[[e.vModelSelect,t.asaidata.path]]):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Kl,[t.asaidata.ty=="txt"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,class:"as-json-txt","onUpdate:modelValue":c[3]||(c[3]=r=>t.asaidata.data=r)},null,512)),[[e.vModelText,t.asaidata.data]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.asaidata.eq>1?Array.isArray(t.asaidata)?"[":"{":"")+" ",1),e.createVNode(m,{ujt:t.ujt,asaidata:t.asaidata},null,8,["ujt","asaidata"]),e.createTextVNode(" "+e.toDisplayString(t.asaidata.eq>1?Array.isArray(t.asaidata)?"]":"}":""),1)],64))]),t.asaidata.btn?(e.openBlock(),e.createElementBlock("div",Xl,[e.createElementVNode("button",{onClick:c[4]||(c[4]=r=>s())},e.toDisplayString(e.unref(o).lg("asai.submit")),1),e.createElementVNode("button",{onClick:c[5]||(c[5]=r=>l())},e.toDisplayString(e.unref(o).lg("asai.del")),1)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-1ab9e67c"]])},Symbol.toStringTag,{value:"Module"})),Gl={key:0,class:"as-ed-dir"},Jl={key:2,class:"as-ed-for"},Ql={class:"as-ed-item"},Zl={key:1,class:"as-ed-dir"},vl={class:"as-ed-for"},es={class:"as-ed-index"},ts={key:3,class:"as-ed-span"},Y=D(e.defineComponent({__name:"JsonTree",props:{ckey:{},cdata:{},cval:{}},setup(t){const n=t,o=e.reactive({});o.publishlist=!0,n?.ckey==="publishlist"&&n?.cdata&&n?.cdata[n?.ckey]&&Object.keys(n?.cdata[n?.ckey]).forEach(d=>{o[d]=!0});const a=e.computed(()=>{let d=typeof n.cdata[n.ckey];if(d==="object"){if(n.cdata[n.ckey]&&n.cdata[n.ckey]["@path"])return"path";if(n.cdata[n.ckey]){if(Array.isArray(n.cdata[n.ckey]))return"array"}else return"null"}return d});function l(d){o[d]=!o[d]}function s(){if(n?.cdata[n.ckey]["@path"]&&n?.cval?.apikeys){const d=n.cval.apikeys.findIndex(c=>c===n.cdata[n.ckey]["@path"]);d>-1?n.cval.apikeys.splice(d,1):n.cval.apikeys.push(n.cdata[n.ckey]["@path"])}n.cval.setapikeys(n.cval.apikeys)}return(d,c)=>a.value==="object"?(e.openBlock(),e.createElementBlock("div",Gl,[t.ckey!=="publishlist"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o[t.ckey]?(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-ed-mg",onClick:c[1]||(c[1]=m=>l(t.ckey))}," - "+e.toDisplayString(t.ckey),1)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-ed-mg",onClick:c[0]||(c[0]=m=>l(t.ckey))}," + "+e.toDisplayString(t.ckey),1)),o[t.ckey]?(e.openBlock(),e.createElementBlock("div",Jl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(t.cdata[t.ckey]),m=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:m},[e.createElementVNode("div",Ql,[e.createVNode(Y,{cval:t.cval,ckey:m,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])])]))),128))])):e.createCommentVNode("",!0)],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Object.keys(t.cdata[t.ckey]),m=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:m},[e.createVNode(Y,{cval:t.cval,ckey:m,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])]))),128))])):a.value==="array"?(e.openBlock(),e.createElementBlock("div",Zl,[e.createElementVNode("div",{class:"as-ed-mg",onClick:l},"+ "+e.toDisplayString(t.ckey),1),e.createElementVNode("div",vl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cdata[t.ckey],(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:"as-ed-for-item",key:r},[e.createElementVNode("div",es,[e.createVNode(Y,{cval:t.cval,ckey:r,cdata:t.cdata[t.ckey]},null,8,["cval","ckey","cdata"])])]))),128))])])):a.value==="path"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(n.cval.apikeys.includes(n.cdata[n.ckey]["@path"])?"as-ed-path-cur":"as-ed-path"),onClick:c[2]||(c[2]=m=>s())},e.toDisplayString(t.ckey),3)):(e.openBlock(),e.createElementBlock("span",ts,e.toDisplayString(t.ckey),1))}}),[["__scopeId","data-v-b05aaab0"]]),ns=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"})),os={class:"as-floating-menu"},as={key:0},ls={key:1},ss=["onPointerup"],is=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"MenuShowFix",props:{ujt:{},menus:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt,l=e.ref(!1);function s(){l.value=!l.value}const d=e.computed(()=>[{value:"/",label:o.lg("asai.home"),type:"module"},{fn:()=>o.changetheme("auto"),label:o.lg("asai.theme"),type:"module"},{fn:()=>o.changelang("auto"),label:o.lg("asai.langs.default"),type:"module"},...n.menus||[]]);return(c,m)=>!e.unref(a).sys||e.unref(a).sys.devlevel>1?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",os,[e.createElementVNode("button",{class:"as-floating-button",onClick:s},[l.value?(e.openBlock(),e.createElementBlock("span",as,"×")):(e.openBlock(),e.createElementBlock("span",ls,"☰"))]),e.createElementVNode("ul",{class:e.normalizeClass(["as-floating-menus",{open:l.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(r,i)=>(e.openBlock(),e.createElementBlock("li",{key:"menu"+i,class:e.normalizeClass(`${r.type==="module"?"module ":""}${r.value&&e.unref(a).location.hash.includes(r.value)?"active":""}`),onPointerup:p=>r.value?e.unref(o).sethash(r.value):r?.fn?.()},e.toDisplayString(i+1)+". "+e.toDisplayString(r.label||r.value),43,ss))),128))],2)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07d2f365"]])},Symbol.toStringTag,{value:"Module"})),rs={class:"app-menu-area"},cs=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"RouterMap",props:{ujt:{},menus:{}},setup(t){const n=t,{$fn:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",rs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menus,s=>(e.openBlock(),e.createElementBlock("div",{class:"app-menu",onClick:l[0]||(l[0]=d=>e.unref(o).sethash("item.value"))},e.toDisplayString(s.label),1))),256))]))}}),[["__scopeId","data-v-dd49bf80"]])},Symbol.toStringTag,{value:"Module"})),ds=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouterView",props:{ujt:{},ty:{}},setup(t){const n=t,{$model:o,$fn:a,$global:l}=n.ujt,s=e.shallowReactive({comp:null});a.getcomp=c=>{try{try{return e.defineAsyncComponent(o.comps[`./${c}.vue`])}catch{return c&&c.endsWith("/default")?e.defineAsyncComponent(o.comps[`./${c.slice(0,-8)}.vue`]):e.defineAsyncComponent(()=>Promise.resolve().then(()=>ne))}}catch{return e.defineAsyncComponent(()=>Promise.resolve().then(()=>ne))}};const d=e.watch(()=>l.location.comps[n.ty],(c,m)=>{c&&c!==m&&(s.comp=a.getcomp(c))},{immediate:!0});return e.onBeforeUnmount(()=>{d&&d.stop()}),(c,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(s).comp),{ujt:t.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),ms={key:0,class:"as-treemenu-area"},ps={class:"name"},fs={key:0,class:"as-treemenu-children"},us=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"TreeMenu",props:{item:{type:Object,required:!0},level:{type:Number,default:0}},setup(t){const n=t,o=e.ref(!1),a=e.computed(()=>n.level?n.item.children:n.item),l=e.computed(()=>a.value.length>0),s=()=>{l.value&&(o.value=!o.value)};return(d,c)=>{const m=e.resolveComponent("TreeMenu",!0);return t.level?(e.openBlock(),e.createElementBlock("li",ms,[e.createElementVNode("div",{class:e.normalizeClass(["as-treemenu-label",{"has-children":l.value}]),onClick:s},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon",{rotated:o.value}])}," ▶ ",2)):e.createCommentVNode("",!0),e.createElementVNode("span",ps,e.toDisplayString(t.item.name),1)],2),l.value&&o.value?(e.openBlock(),e.createElementBlock("ul",fs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,r=>(e.openBlock(),e.createBlock(m,{key:r.id,item:r,level:t.level+1},null,8,["item","level"]))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.value,r=>(e.openBlock(),e.createBlock(m,{key:r.id,item:r,level:t.level+1},null,8,["item","level"]))),128))}}}),[["__scopeId","data-v-bb4778dd"]])},Symbol.toStringTag,{value:"Module"})),hs=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"VirtualList",props:{items:{type:Array,required:!0},itemHeight:{type:Number,default:50},buffer:{type:Number,default:5}},setup(t){const n=t,o=e.ref(null),a=e.ref(0),l=e.ref(0),s=e.ref(0),d=e.ref(new Array(n.items.length).fill(Math.round(n.itemHeight))),c=new Map,m=e.computed(()=>Math.round(n.items.reduce((y,b,h)=>y+r(h),0))),r=y=>y<0||y>=n.items.length?0:Math.round(d.value[y]??n.itemHeight),i=()=>{if(!o.value)return{start:0,end:Math.min(n.items.length,n.buffer*3)};const y=a.value,b=o.value.clientHeight;let h=0,$=n.items.length;for(;h<$;){const C=h+$>>>1;f(C)<=y?h=C+1:$=C}const _=Math.max(0,h-1),k=Math.ceil(b/n.itemHeight)+n.buffer*2,S=Math.min(n.items.length,_+k);return{start:_,end:S}},p=e.computed(()=>{const{start:y,end:b}=i();return n.items.slice(y,b).map((h,$)=>{const _=y+$;return{index:_,id:h.id||_,data:h,offset:f(_)}})}),f=y=>{if(y<=0)return 0;if(c.has(y))return c.get(y);let b=y-1;for(;b>0&&!c.has(b);)b--;let h=b>0?c.get(b):0;for(let _=b;_<y;_++)h+=r(_);const $=Math.round(h);return c.set(y,$),$},u=()=>{l.value&&cancelAnimationFrame(l.value),l.value=requestAnimationFrame(()=>{o.value&&(a.value=Math.round(o.value.scrollTop),s.value&&clearTimeout(s.value),s.value=window.setTimeout(()=>{const{start:y,end:b}=i(),h=n.buffer*2;for(const $ of c.keys())($<y-h||$>b+h)&&c.delete($)},150))})};let g=null;return e.onMounted(()=>{o.value&&u(),g=e.watch(()=>n.items.length,y=>{y>d.value.length?d.value=[...d.value,...new Array(y-d.value.length).fill(Math.round(n.itemHeight))]:y<d.value.length&&(d.value=d.value.slice(0,y)),c.clear()})}),e.onBeforeUnmount(()=>{g&&g.stop(),l.value&&cancelAnimationFrame(l.value),s.value&&clearTimeout(s.value)}),(y,b)=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-container",onScroll:u,ref_key:"container",ref:o,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(p.value,h=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-item",key:"as"+h.index,style:e.normalizeStyle({transform:`translateY(${h.offset}px)`})},[e.renderSlot(y.$slots,"default",{item:h},void 0,!0)],4))),128))],4)],544))}}),[["__scopeId","data-v-ab56f7c3"]])},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ZoomContainer",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;o.scale=1;const a=e.ref(null);let l=null;const s=()=>{const c=Math.min(window.innerWidth/(o.sys?.zoomwidth||1920),window.innerHeight/(o.sys?.zoomheight||1080));o.scale=c.toFixed(2)},d=()=>{clearTimeout(l),l=setTimeout(()=>{requestAnimationFrame(s)},150)};return o.cmscale=e.computed(()=>({width:o.sys?.zoomwidth?o.sys.zoomwidth+"px":"1920px",height:o.sys?.zoomheight?o.sys.zoomheight+"px":"1080px",transform:`scale(${o.scale}) translate(-50%,-50%)`})),e.onMounted(()=>{e.nextTick(s),window.addEventListener("resize",d)}),e.onUnmounted(()=>{window.removeEventListener("resize",d),clearTimeout(l)}),(c,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"zoom-container",id:"asaizoomarea",style:e.normalizeStyle(e.unref(o).cmscale)},[e.renderSlot(c.$slots,"default")],4))}})},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"ZoomContainerStyle",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"zoom-container-style",style:e.normalizeStyle(e.unref(o).cmscale)},[e.renderSlot(a.$slots,"default")],4))}})},Symbol.toStringTag,{value:"Module"})),_s={class:"as-load-area"},bs=["src"],ks={class:"tit",style:{color:"var(--cz8)"}},$s=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageErr",props:{ujt:{}},setup(t){const n=window;function o(){n?.localStorage?.clear(),n?.location?.reload()}return(a,l)=>(e.openBlock(),e.createElementBlock("div",_s,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=s=>o()),src:e.unref(n).$CFG.logo,width:"200"},null,40,bs),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]=s=>e.unref(n)?.location?.reload())},[e.createElementVNode("div",ks,e.toDisplayString(e.unref(n).$GYS.$webmodel.lang[e.unref(n).$GYS.$webmodel.lang.langty].pageerr),1)])]))}})},Symbol.toStringTag,{value:"Module"})),ws={class:"as-load-area"},Cs=["src"],js=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadClient",props:{ujt:{}},setup(t){const n=window;function o(){n?.localStorage?.clear(),n?.location?.reload()}return(a,l)=>(e.openBlock(),e.createElementBlock("div",ws,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=s=>o()),src:e.unref(n).$CFG.logo,width:"200"},null,40,Cs),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]=s=>e.unref(n)?.location?.reload())}," Loading... ")]))}})},Symbol.toStringTag,{value:"Module"})),Ss={class:"as-load-area"},Es=["src"],Bs={class:"as-load-icon"},Vs={class:"as-load-msg"},xs={class:"tit",style:{color:"var(--cz8)"}},Ns=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadErr",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const d=e.resolveComponent("AsPageBusyGif"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Es),e.createElementVNode("div",Bs,[e.createVNode(d,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",Vs,[e.createElementVNode("div",xs,e.toDisplayString(e.unref(a).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Ps={class:"as-load-area"},Ds=["src"],zs={class:"as-load-icon"},As={class:"as-load-msg"},Ms={class:"tit",style:{color:"var(--cy8)"}},Os=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadServer",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const d=e.resolveComponent("AsPageBusyGif"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Ps,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Ds),e.createElementVNode("div",zs,[e.createVNode(d,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",As,[e.createElementVNode("div",Ms,e.toDisplayString(e.unref(a).lang.asai.page.loadserver),1),e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Ts={class:"as-load-area"},Ls=["src"],Us={class:"as-load-icon"},Is={class:"as-load-msg"},Rs={class:"tit",style:{color:"var(--cz8)"}},Fs=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserToken",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const d=e.resolveComponent("AsPageBusyGif"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Ts,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Ls),e.createElementVNode("div",Us,[e.createVNode(d,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",Is,[e.createElementVNode("div",Rs,e.toDisplayString(e.unref(a).lang.asai.page.loadusertoken),1),e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Ws={class:"as-load-area"},Hs=["src"],qs={class:"as-load-icon"},Ks={class:"as-load-msg"},Xs={class:"tit",style:{color:"var(--cy8)"}},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserTokenOnline",props:{ujt:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const d=e.resolveComponent("AsPageBusyGif"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Ws,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Hs),e.createElementVNode("div",qs,[e.createVNode(d,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ks,[e.createElementVNode("div",Xs,e.toDisplayString(e.unref(a).lang.asai.page.loaduseronline),1),e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Gs={class:"as-load-area"},Js=["src"],Qs={class:"as-load-icon"},Zs={class:"as-load-msg"},vs={class:"tit",style:{color:"var(--cz8)"}},ei=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadWs",props:{ujt:{},type:{}},setup(t){const n=t,{$fn:o,$global:a}=n.ujt;return(l,s)=>{const d=e.resolveComponent("AsPageBusyGif"),c=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Gs,[e.createElementVNode("img",{onDblclick:s[0]||(s[0]=m=>e.unref(o).As.localInit()),src:e.unref(a).$cfg.logo,width:"200"},null,40,Js),e.createElementVNode("div",Qs,[e.createVNode(d,{ujt:t.ujt},null,8,["ujt"])]),e.createElementVNode("div",Zs,[e.createElementVNode("div",vs,e.toDisplayString(e.unref(a).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(c,{ujt:t.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ti=["id"],ni=["id"],oi=["id"],ai=D(e.defineComponent({__name:"PopBoxMask",props:{ujt:{},id:{}},setup(t){e.useCssVars(s=>({v55f0441c:e.unref(o).pop[n.id].zindex,v48893091:a.value,v2b661e38:e.unref(o).scale}));const n=t,{$global:o}=n.ujt;o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101);const a=e.computed(()=>o.pop[n.id]?.event?o.pop[n.id]?.event:"auto");o.scale==null&&(o.scale=1);const l=e.computed(()=>{let s=o.pop[n.id]?.maskstyle||{};return o.pop[n.id].full==2?s={display:"block",...s}:o.pop[n.id].full==1?s={width:o?.sys?.zoomwidth+"px",height:o?.sys?.zoomheight+"px",...s}:s={display:"block",...s},a.value==="auto"&&(s["background-color"]="rgba(0, 0, 0, 0.3)"),s});return(s,d)=>e.unref(o).pop[n.id].full==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{to:"#teleportpopbox",key:"popmask-2-"+n.id},[e.createElementVNode("div",{class:"as-pop-box-mask-2",style:e.normalizeStyle(l.value),id:"popmask"+t.id},[e.renderSlot(s.$slots,"default",{},void 0,!0)],12,ti)])):e.createCommentVNode("",!0)],64)):e.unref(o).pop[n.id].full==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{to:"#teleportpopbox",key:"popmask-1-"+n.id},[e.createElementVNode("div",{class:"as-pop-box-mask-1",id:"popmask"+t.id},[e.createElementVNode("div",{class:"as-pop-box-mask-zoom",style:e.normalizeStyle(l.value)},[e.renderSlot(s.$slots,"default",{},void 0,!0)],4)],8,ni)])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock("div",{key:"popmask-0-"+n.id,class:"as-pop-box-mask-0",style:e.normalizeStyle(l.value),id:"popmask"+t.id},[e.renderSlot(s.$slots,"default",{},void 0,!0)],12,oi)):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-432c0b07"]]),li={class:"as-pop-content-txt"},si={key:0,class:"as-pop-content-btns"},ii=["onPointerup"],ri=D(e.defineComponent({__name:"PopBoxContent",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt,l=e.computed(()=>{const s={};return o.pop[n.id]?.nooverflow||(s.overflow=o.pop[n.id]?.conoverflow||"auto"),s});return(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"as-pop-content",style:e.normalizeStyle(l.value)},[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("div",li,e.toDisplayString(e.unref(o).pop[n.id]?.con||""),1)],!0)],4),e.unref(o).pop[n.id]?.btns?.length?(e.openBlock(),e.createElementBlock("div",si,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).pop[n.id].btns,(c,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.fn?(e.openBlock(),e.createElementBlock("div",{key:0,onTouchstart:d[0]||(d[0]=e.withModifiers((...r)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...r),["stop"])),onPointerdown:d[1]||(d[1]=e.withModifiers((...r)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...r),["stop"])),onPointerup:e.withModifiers(r=>c.fn(),["stop"]),class:e.normalizeClass(m?"":"cur"),style:e.normalizeStyle(`${c.bg?`background-color: ${c.bg};`:""}`)},e.toDisplayString(c.nm),47,ii)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(m?"nofn":"cur nofn"),style:e.normalizeStyle(`${c.bg?`background-color: ${c.bg};`:""}`)},e.toDisplayString(c.nm),7))],64))),256))])):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-5b386073"]]),ci={class:"as-pop-bar"},di={key:0,class:"as-pop-opts"},mi=D(e.defineComponent({__name:"PopBoxBar",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o}=n.ujt;function a(){o.pop[n.id]?.closepop&&typeof o.pop[n.id].closepop=="function"?o.pop[n.id].closepop():o.pop[n.id].stat=0}return(l,s)=>{const d=e.resolveComponent("AsSvg");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ci,[e.unref(o).pop[n.id].ico?(e.openBlock(),e.createBlock(d,{key:0,color:"var(--ch8)",height:"var(--fs4)",src:e.unref(o).pop[n.id].ico},null,8,["src"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(o).pop[n.id].tit||""),1)]),e.unref(o).pop[n.id]?.noclose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",di,[e.createElementVNode("div",{onPointerdown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),onPointerup:s[1]||(s[1]=e.withModifiers(c=>a(),["stop","prevent"]))}," × ",32)]))],64)}}}),[["__scopeId","data-v-63839243"]]),pi=["id"],fi=["id"],ui=["id"],hi=D(e.defineComponent({__name:"PopBoxMain",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o,$model:a}=n.ujt;o.pop[n.id]?.noresize==null&&(o.pop[n.id].noresize=1);const l=e.reactive({w:0,h:0});e.onMounted(()=>{if(!o.pop[n.id].full){const d=document.getElementById("poparea"+n.id)||document.getElementById("popmask"+n.id)||document.getElementById(o.sys.zoomid)||document.getElementById("asaizoomarea");d&&(l.w=d?.offsetWidth,l.h=d?.offsetHeight)}});const s=e.computed(()=>{let d=o.pop[n.id]?.popstyle||{};return d={width:o.pop[n.id]?.width||"380px",height:o.pop[n.id]?.height||"auto",zIndex:o.pop[n.id].zindex+1,...d},o.pop[n.id]?.nooverflow||(d.overflow=o.pop[n.id]?.boxoverflow||"hidden"),o.pop[n.id].full==2?d={transform:`translate(calc(-50% + ${window.innerWidth/2}px),calc(-50% + ${window.innerHeight/2}px))`,...d}:o.pop[n.id].full==1?d={transform:`translate(calc(-50% + ${o?.sys?.zoomwidth/2}px),calc(-50% + ${o?.sys?.zoomheight/2}px))`,...d}:l.w&&l.h?d={transform:`translate(calc(-50% + ${l.w/2}px),calc(-50% + ${l.h/2}px))`,...d}:d={transform:`translate(calc(-50% + ${window.innerWidth/2}px),calc(-50% + ${window.innerHeight/2}px))`,...d},d});return(d,c)=>{const m=e.resolveDirective("popresizezoom");return e.unref(o).pop[n.id].noresize?(e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-1-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(d.$slots,"default",{},void 0,!0)],12,pi)):e.unref(o).pop[n.id].full==2?e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-2-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(d.$slots,"default",{},void 0,!0)],12,fi)),[[m,{ujt:t.ujt,scale:1}]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"as-pop-area",key:"popmain-0-"+n.id,style:e.normalizeStyle(s.value),id:"pop"+t.id},[e.renderSlot(d.$slots,"default",{},void 0,!0)],12,ui)),[[m,{ujt:t.ujt}]])}}}),[["__scopeId","data-v-25351d70"]]),gi=["id"],yi=["id"],_i=["id"],bi=["id"],ki=D(e.defineComponent({__name:"PopBoxDragBar",props:{ujt:{},id:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveDirective("drag"),d=e.resolveDirective("dragzoom");return e.unref(o).pop[n.id].notit?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64)):e.unref(o).pop[n.id].nodrag?(e.openBlock(),e.createElementBlock("div",{key:1,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,gi)):e.unref(o).pop[n.id].full==2?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:2,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,yi)),[[s,{domarea:"pop"+t.id,dommask:"popmask"+t.id}]]):e.unref(o).pop[n.id].full==1?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:3,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,_i)),[[d,{ujt:t.ujt,dom:"popbar"+t.id,domarea:"pop"+t.id}]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:4,class:"as-pop-drag-bar",id:"popbar"+t.id},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,bi)),[[d,{ujt:t.ujt,dom:"popbar"+t.id,domarea:"pop"+t.id}]])}}}),[["__scopeId","data-v-d58c6048"]]),$i=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PopBox",props:{ujt:{},id:{},full:{},maskstyle:{},popstyle:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefault"),o.pop[n.id]||(o.pop[n.id]={}),n.full&&!o.pop[n.id].full&&(o.pop[n.id].full=n.full),n.maskstyle&&!o.pop[n.id].maskstyle&&(o.pop[n.id].maskstyle=n.maskstyle),n.popstyle&&!o.pop[n.id].popstyle&&(o.pop[n.id].popstyle=n.popstyle),e.onUnmounted(()=>{o.pop[n.id]={}}),(a,l)=>e.unref(o).pop?.[n.id]?.stat?(e.openBlock(),e.createBlock(ai,{key:0,ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.KeepAlive,null,[e.createVNode(hi,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.createVNode(ki,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.createVNode(mi,{ujt:t.ujt,id:t.id},null,8,["ujt","id"])]),_:1},8,["ujt","id"]),e.createVNode(ri,{ujt:t.ujt,id:t.id},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["ujt","id"])]),_:3},8,["ujt","id"])],1024))]),_:3},8,["ujt","id"])):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),wi=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PopBoxConfirm",props:{ujt:{},id:{},full:{},popstyle:{},maskstyle:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaultboxconfirm"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.notit==null&&(o.pop[n.id].notit=1),o.pop[n.id]?.btns||(o.pop[n.id].btns=[{nm:e.computed(()=>o.lang?.asai?.confirm||"Confirm"),fn:()=>{o.pop[n.id].fn&&o.pop[n.id].fn(),o.pop[n.id].stat=0}},{nm:e.computed(()=>o.lang?.asai?.cancel||"Cancel"),fn:()=>{o.pop[n.id].stat=0}}]),(a,l)=>{const s=e.resolveComponent("PopBox");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,id:t.id,full:t.full,popstyle:t.popstyle,maskstyle:t.maskstyle},null,8,["ujt","id","full","popstyle","maskstyle"])}}})},Symbol.toStringTag,{value:"Module"})),Ci={class:"as-pop-pass"},ji=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopBoxConfirmPass",props:{ujt:{},id:{},full:{},popstyle:{},maskstyle:{},pass:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;return n.id||(n.id="popdefaultboxconfirmpass"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.tit||(o.pop[n.id].tit=a.lg("asai.confirmpass")),o.pop[n.id]?.pass||(o.pop[n.id].pass=""),o.pop[n.id]?.btns||(o.pop[n.id].btns=[{nm:e.computed(()=>o.lang?.asai?.confirm||"Confirm"),fn:()=>{n.pass&&o.pop[n.id].pass==n.pass?(o.pop[n.id].fn&&o.pop[n.id].fn(),o.pop[n.id].stat=0):o.msg.fn({type:"err",con:a.lg("asai.confirmpasserr")})}},{nm:e.computed(()=>o.lang?.asai?.cancel||"Cancel"),fn:()=>{o.pop[n.id].stat=0}}]),(l,s)=>{const d=e.resolveComponent("PopBox");return e.openBlock(),e.createBlock(d,{ujt:t.ujt,id:t.id,full:t.full,popstyle:t.popstyle,maskstyle:t.maskstyle},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>[e.createElementVNode("div",Ci,[e.createElementVNode("p",null,e.toDisplayString(e.unref(a).lg("asai.confirmpassword")),1),e.createElementVNode("p",null,[e.withDirectives(e.createElementVNode("input",{type:"password","show-password":"","onUpdate:modelValue":s[0]||(s[0]=c=>e.unref(o).pop[n.id].pass=c)},null,512),[[e.vModelText,e.unref(o).pop[n.id].pass]])])])],!0)]),_:3},8,["ujt","id","full","popstyle","maskstyle"])}}}),[["__scopeId","data-v-6dbdffb6"]])},Symbol.toStringTag,{value:"Module"})),Si={class:"as-pop-drop-area"},Ei=["id"],Bi=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopDrop",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(l=>({f9a6a412:a.value-1,v55cde999:a.value}));const n=t,{$global:o}=n.ujt;n.id||(n.id="popdefaulttip"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={width:"auto",height:"auto",top:0,right:0}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={});const a=e.computed(()=>{const l=o.pop[n.id]?.zindex;return Number(l)||101});return e.onUnmounted(()=>{o.pop[n.id]={}}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).pop[n.id]?.css||" as-pop-drop")},[e.unref(o).pop[n.id].stat&&e.unref(o).pop[n.id].popstyle?.top!=0?e.renderSlot(l.$slots,"poparea",{key:0},()=>[e.createElementVNode("div",Si,[e.createElementVNode("div",{class:"as-pop-drop-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(l.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],4)])],!0):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"desarea",{},()=>[e.createElementVNode("div",{class:"as-pop-drop-des",onPointerdown:s[0]||(s[0]=e.withModifiers(d=>e.unref(o).pop[n.id].stat=e.unref(o).pop[n.id].stat?0:1,["stop"]))},[e.renderSlot(l.$slots,"des",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].des||""),1)],!0)],32)],!0),e.unref(o).pop[n.id].stat&&e.unref(o).pop[n.id].popstyle?.top==0?e.renderSlot(l.$slots,"poparea",{key:1},()=>[e.createElementVNode("div",{class:"as-pop-drop-area",id:"pop"+t.id},[e.createElementVNode("div",{class:"as-pop-drop-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(l.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],4)],8,Ei)],!0):e.createCommentVNode("",!0),e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock("div",{key:2,class:"as-pop-drop-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:s[1]||(s[1]=e.withModifiers(d=>e.unref(o).pop[n.id].stat=0,["stop"]))},null,36)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-67b87637"]])},Symbol.toStringTag,{value:"Module"})),Vi=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopMod",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(a=>({v1a9a90a0:e.unref(o).pop[n.id].zindex-1,v0fc7b7d2:e.unref(o).pop[n.id].zindex}));const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaultmod"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={top:0,right:0,width:"180px",height:"100vh","background-color":"#ffffff88"}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={"background-color":"rgba(0, 0, 0, 0.02)"}),e.onUnmounted(()=>{o.pop[n.id]={}}),(a,l)=>e.unref(o).pop[n.id].stat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"as-pop-mod-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:l[0]||(l[0]=s=>e.unref(o).pop[n.id].stat=0)},null,36),e.createElementVNode("div",{class:"as-pop-mod-pop",style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle)},[e.renderSlot(a.$slots,"default",{},void 0,!0)],4)],64)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2439c68f"]])},Symbol.toStringTag,{value:"Module"})),xi={class:"as-pop-msg-list"},Ni={class:"as-pop-msg-li"},Pi={key:0,class:"as-pop-msg-tit"},Di={key:1,class:"as-pop-msg-con"},zi={key:2,class:"as-pop-msg-tm"},Ai=["title"],Mi=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopMsg",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;o.msg||(o.msg={tm:null,data:[],bak:[],fn:l});function l(d){let c=null;if(d===1?o?.msg?.data?.length&&(c=o.msg.data.shift(),c?.tmout&&(clearTimeout(c.tmout),delete c.tmout),o.msg.bak.push(c),o.msg.bak.length>100&&o.msg.bak.splice(80)):(!o?.msg?.data?.length||!o?.msg?.data?.find(m=>m.con===d.con&&m.tit===d.tit))&&(d.type==="err"&&(d.tit||d.con)&&a.$log((d.log||"")+(d.tit||d.con)),d.tm=a.As.getTime(),o.msg.data.push(d),d.tmout=setTimeout(()=>{o.msg.fn(1)},d?.time||3e3)),c)return c}function s(){let d=o.msg.data.length;for(;d--;)l(1)}return e.onBeforeUnmount(()=>{s()}),(d,c)=>e.unref(o).msg.data?.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-pop-msg-area",style:e.normalizeStyle(e.unref(o).msg.data?.maskstyle||{}),onPointerdown:c[0]||(c[0]=e.withModifiers(()=>{},["stop"])),onPointerup:c[1]||(c[1]=e.withModifiers(m=>s(),["stop"])),onTouchstart:c[2]||(c[2]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m))},[e.createElementVNode("div",xi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).msg.data,m=>(e.openBlock(),e.createElementBlock("div",Ni,[e.createElementVNode("div",{class:e.normalizeClass("as-pop-msg"+(m?.type||""))},[m?.tit?(e.openBlock(),e.createElementBlock("div",Pi,e.toDisplayString(m.tit),1)):e.createCommentVNode("",!0),m?.con?(e.openBlock(),e.createElementBlock("div",Di,e.toDisplayString(m.con),1)):e.createCommentVNode("",!0),m?.tm?(e.openBlock(),e.createElementBlock("div",zi," ["+e.toDisplayString(m.tm)+"] ",1)):e.createCommentVNode("",!0)],2)]))),256))]),e.createElementVNode("div",{class:"as-pop-msg-btn",title:e.unref(o)?.lang?.asai?.clear},"×",8,Ai)],36)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-92a9590b"]])},Symbol.toStringTag,{value:"Module"})),Oi={key:0,class:"as-pop-msg-tit"},Ti={key:1,class:"as-pop-msg-con"},Li={key:2,class:"as-pop-msg-tm"},Ui=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopMsgOneByOne",props:{ujt:{}},setup(t){const n=t,{$global:o,$fn:a}=n.ujt;if(!o.msg){let d=function(c){let m=null;if(c===1?o?.msg?.data?.length&&(m=o.msg.data.shift()):(!o?.msg?.data?.length||!o?.msg?.data?.find(r=>r.con===c.con&&r.tit===c.tit))&&(c.tm=a.As.getTime(),o.msg.data.push(c)),a.As.localSet(o.msg.key,o.msg.data),m)return m};o.msg={key:"as-pop-msg",tm:null,stat:0,data:[],bak:[],cur:{},fn:d}}function l(){o.msg.cur?.noclose||(o.msg.stat=0,o.msg.bak.push(o.msg.fn(1)),o.msg.bak.length>100&&o.msg.bak.splice(80),clearTimeout(o.msg.tm))}const s=e.computed(()=>o.msg.data.length?(o.msg.cur=o.msg.data[0],o.msg.stat||(o.msg.stat=1,clearTimeout(o.msg.tm),o.msg.tm=setTimeout(()=>{l()},o.msg.cur?.time||3e3)),o.msg.cur):null);if(!o.msg?.data?.length){const d=a.As.toObj(a.As.localGet(o.msg.key));d&&(o.msg.data=d)}return(d,c)=>s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"as-pop-msg-area",onPointerdown:c[0]||(c[0]=m=>l()),onTouchstart:c[1]||(c[1]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m)),style:e.normalizeStyle(s.value?.maskstyle||{})},[e.createElementVNode("div",{class:e.normalizeClass("as-pop-msg"+(s.value?.type||""))},[s.value?.tit?(e.openBlock(),e.createElementBlock("div",Oi,e.toDisplayString(s.value.tit),1)):e.createCommentVNode("",!0),s.value?.con?(e.openBlock(),e.createElementBlock("div",Ti,e.toDisplayString(s.value.con),1)):e.createCommentVNode("",!0),s.value?.tm?(e.openBlock(),e.createElementBlock("div",Li," ["+e.toDisplayString(s.value.tm)+"] ",1)):e.createCommentVNode("",!0)],2)],36)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07098c49"]])},Symbol.toStringTag,{value:"Module"})),Ii=["id"],Ri=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopTip",props:{ujt:{},id:{},popstyle:{},maskstyle:{}},setup(t){e.useCssVars(d=>({v378d9d3f:e.unref(o).pop[n.id].zindex,v50fe1e9d:e.unref(o).pop[n.id].zindex-1}));const n=t,{$global:o,$fn:a}=n.ujt;n.id||(n.id="popdefaulttip"),o.pop[n.id]||(o.pop[n.id]={}),o.pop[n.id]?.zindex||(o.pop[n.id].zindex=101),o.pop[n.id]?.popstyle||(n?.popstyle?o.pop[n.id].popstyle=n.popstyle:o.pop[n.id].popstyle={width:"auto",height:"auto"}),o.pop[n.id]?.maskstyle||(n?.maskstyle?o.pop[n.id].maskstyle=n.maskstyle:o.pop[n.id].maskstyle={});function l(d){o.pop[n.id].popstyle.top=d.clientY+"px",o.pop[n.id].popstyle.left=d.clientX+"px",o.pop[n.id].popstyle.transform=`scale(${o.scale})`,o.pop[n.id].stat=o.pop[n.id].stat?0:1}function s(){o.pop[n.id].stat=0}return e.onUnmounted(()=>{o.pop[n.id]={}}),(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).pop[n.id]?.css+" as-pop-tip")},[e.createElementVNode("div",{class:"as-pop-tip-des",onPointerdown:e.withModifiers(l,["stop"])},[e.renderSlot(d.$slots,"des",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].des||""),1)],!0)],32),e.unref(o).pop[n.id].stat?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",{class:"as-pop-tip-mask",style:e.normalizeStyle(e.unref(o).pop[n.id].maskstyle),onPointerdown:c[1]||(c[1]=e.withModifiers(()=>{},["stop"])),onPointerup:c[2]||(c[2]=e.withModifiers(m=>s(),["stop"])),onTouchstart:c[3]||(c[3]=(...m)=>e.unref(a).As.eStop&&e.unref(a).As.eStop(...m))},[e.createElementVNode("div",{class:"as-pop-tip-pop",id:"pop"+t.id,style:e.normalizeStyle(e.unref(o).pop[n.id].popstyle),onPointerdown:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(d.$slots,"pop",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(o).pop[n.id].con||""),1)],!0)],44,Ii)],36)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-426f5ea9"]])},Symbol.toStringTag,{value:"Module"})),Fi={key:0,class:"as-pop-tipconfirm-pop"},Wi={class:"as-pop-tipconfirm-content"},Hi={class:"as-pop-tipconfirm-btns"},qi=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"PopTipConfirm",props:{ujt:{},id:{},popstyle:{},maskstyle:{},fn:{}},setup(t){const n=t,{$global:o}=n.ujt;return n.id||(n.id="popdefaulttipconfirm"),(a,l)=>{const s=e.resolveComponent("PopTip");return e.openBlock(),e.createBlock(s,{ujt:t.ujt,id:t.id},{des:e.withCtx(()=>[e.renderSlot(a.$slots,"des",{},void 0,!0)]),pop:e.withCtx(()=>[e.unref(o).pop[t.id].stat?(e.openBlock(),e.createElementBlock("div",Fi,[e.createElementVNode("div",Wi,[e.renderSlot(a.$slots,"pop",{},void 0,!0)]),e.createElementVNode("div",Hi,[n.fn?(e.openBlock(),e.createElementBlock("div",{key:0,onPointerdown:l[0]||(l[0]=d=>n.fn())},e.toDisplayString(e.unref(o)?.lang?.asai?.confirm),33)):e.createCommentVNode("",!0),e.createElementVNode("div",{onPointerdown:l[1]||(l[1]=d=>e.unref(o).pop[t.id].stat=0),class:"cur"},e.toDisplayString(e.unref(o)?.lang?.asai?.cancel),33)])])):e.createCommentVNode("",!0)]),_:3},8,["ujt","id"])}}}),[["__scopeId","data-v-526e2ae5"]])},Symbol.toStringTag,{value:"Module"})),Ki={install(t,n){n.loadv({app:t,eager:!0,files:Object.assign({"./asdirectives/v-dbpointerdown/index.ts":ae,"./asdirectives/v-drag/index.ts":le,"./asdirectives/v-draggame/index.ts":se,"./asdirectives/v-dragzoom/index.ts":ie,"./asdirectives/v-fullscreen/index.ts":ce,"./asdirectives/v-keyboard/index.ts":de,"./asdirectives/v-levelread/index.ts":me,"./asdirectives/v-longpress/index.ts":pe,"./asdirectives/v-popresizezoom/index.ts":fe,"./asdirectives/v-resizeflexwidthzoom/index.ts":ue,"./asdirectives/v-scrollbottom/index.ts":he,"./asdirectives/v-userlevel/index.ts":ge})}),n.loadts({app:t,key:"$engineasai",eager:!0,files:Object.assign({"./asengine/api/useApi.ts":ye,"./asengine/channel/useChannel.ts":_e,"./asengine/channel/useChannelBase.ts":be,"./asengine/channel/useChannelBaseKey.ts":ke,"./asengine/channel/useChannelBook.ts":$e,"./asengine/channel/useChannelComments.ts":we,"./asengine/channel/useChannelUser.ts":Ce,"./asengine/common/As.ts":je,"./asengine/common/AsAES.ts":Se,"./asengine/common/AsCode.ts":Ee,"./asengine/common/AsFull.ts":Be,"./asengine/common/AsRouter.ts":xe,"./asengine/common/AsStyle.ts":Ne,"./asengine/common/_AsRouterInit.ts":ze,"./asengine/common/useChatRoom.ts":Ae,"./asengine/common/useLog.ts":Me,"./asengine/common/useMediaWork.ts":Oe,"./asengine/common/useNovel.ts":Te,"./asengine/common/usePage.ts":Le,"./asengine/init/useInitApp.ts":Ue,"./asengine/provide/useProvide.ts":He,"./asengine/ws/useBeat.ts":qe,"./asengine/ws/useWs.ts":Ke})}),n.loadvue({loadfn:n.loadfn,app:t,eager:!0,files:Object.assign({"./asui/app/AsaiComponent.vue":Xe,"./asui/app/AsaiInitPage.vue":et,"./asui/app/AsaiWebItemDefault.vue":rt,"./asui/app/AsaiWebItemIndex.vue":ct,"./asui/app/AsaiWebModule.vue":dt,"./asui/app/AsaiWebModuleDefault.vue":_t,"./asui/app/AsaiWebModuleIndex.vue":bt,"./asui/app/AsaiWebServer.vue":Ge,"./asui/app/AsaiWebServerNode.vue":Je,"./asui/app/AsaiWebServerUser.vue":Qe,"./asui/app/AsaiWebServerUserOnline.vue":kt,"./asui/channel/ChannelAdd.vue":Ct,"./asui/channel/ChannelBtnsManage.vue":St,"./asui/channel/ChannelClass.vue":Bt,"./asui/channel/ChannelEdit.vue":Nt,"./asui/channel/ChannelIndex.vue":Xt,"./asui/channel/ChannelList.vue":Yt,"./asui/channel/ChannelListPage.vue":Jt,"./asui/channel/ChannelListSearch.vue":vt,"./asui/channel/ChannelListSelect.vue":en,"./asui/channel/ChannelListType.vue":_n,"./asui/channel/ChannelOpt.vue":bn,"./asui/channel/ChannelOptAdd.vue":kn,"./asui/channel/ChannelPop.vue":jn,"./asui/channel/ChannelPos.vue":En,"./asui/channel/ChannelShow.vue":Bn,"./asui/channel/ChannelShowComments.vue":Fn,"./asui/channel/ChannelShowHci.vue":Hn,"./asui/channel/ChannelShowType.vue":Jn,"./asui/channel/ChannelUpDown.vue":Zn,"./asui/channel/ChannelUserCard.vue":eo,"./asui/channel/ChannelUserDrop.vue":no,"./asui/channel/ChannelUserEdit.vue":lo,"./asui/channel/ChannelUserExit.vue":io,"./asui/channel/ChannelUserLogin.vue":mo,"./asui/channel/ChannelUserMain.vue":go,"./asui/channel/ChannelUserReg.vue":bo,"./asui/chat/ChatRoom.vue":Lo,"./asui/chat/ChatRoomOpt.vue":ia,"./asui/common/AsKeyBoard.vue":xa,"./asui/common/AsKeyBoardVue.vue":Na,"./asui/common/AsLink.vue":Ua,"./asui/common/AsNovel.vue":_l,"./asui/common/AsPageBusy.vue":wl,"./asui/common/AsPageBusyGif.vue":Sl,"./asui/common/AsSvg.vue":xl,"./asui/common/AsUploadFile.vue":Pl,"./asui/common/AsUploadTxt.vue":zl,"./asui/common/ChangeLang.vue":Al,"./asui/common/ChangeTheme.vue":Ml,"./asui/common/ImgUploadCut.vue":Fl,"./asui/common/JsonEditor.vue":Yl,"./asui/common/JsonTree.vue":ns,"./asui/common/MenuShowFix.vue":is,"./asui/common/RouterMap.vue":cs,"./asui/common/RouterView.vue":ds,"./asui/common/TreeMenu.vue":us,"./asui/common/VirtualList.vue":hs,"./asui/common/ZoomContainer.vue":gs,"./asui/common/ZoomContainerStyle.vue":ys,"./asui/page/PageErr.vue":$s,"./asui/page/PageLoadClient.vue":js,"./asui/page/PageLoadErr.vue":Ns,"./asui/page/PageLoadServer.vue":Os,"./asui/page/PageLoadUserToken.vue":Fs,"./asui/page/PageLoadUserTokenOnline.vue":Ys,"./asui/page/PageLoadWs.vue":ei,"./asui/pop/PopBox.vue":$i,"./asui/pop/PopBoxConfirm.vue":wi,"./asui/pop/PopBoxConfirmPass.vue":ji,"./asui/pop/PopDrop.vue":Bi,"./asui/pop/PopMod.vue":Vi,"./asui/pop/PopMsg.vue":Mi,"./asui/pop/PopMsgOneByOne.vue":Ui,"./asui/pop/PopTip.vue":Ri,"./asui/pop/PopTipConfirm.vue":qi})})}},Xi={class:"page-404"},Yi={class:"content"},Gi={key:0,class:"title"},Ji={class:"description"},Qi={class:"footer"},ne=Object.freeze(Object.defineProperty({__proto__:null,default:D(e.defineComponent({__name:"Asai404",props:{ujt:{}},setup(t){const n=t,{$global:o}=n.ujt;return(a,l)=>{const s=e.resolveComponent("ChannelUserCard");return e.openBlock(),e.createElementBlock("div",Xi,[e.createElementVNode("div",Yi,[l[0]||(l[0]=e.createElementVNode("div",{class:"error-code"},"404",-1)),e.unref(o).lang?.asai?.page?.page404?(e.openBlock(),e.createElementBlock("h1",Gi,e.toDisplayString(e.unref(o).lang?.asai?.page?.page404||"页面未找到"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",Ji,e.toDisplayString(e.unref(o).lang?.asai?.page?.reason404||"Sorry, Page not found!"),1)]),e.createElementVNode("div",Qi,[e.createVNode(s,{ujt:t.ujt},null,8,["ujt"])])])}}}),[["__scopeId","data-v-244f9395"]])},Symbol.toStringTag,{value:"Module"}));K.default=Ki,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|