hortimagic 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  // ==UserScript==
2
2
  // @name hortimagic
3
3
  // @namespace hortimagic
4
- // @version 1.0.2
4
+ // @version 1.0.5
5
5
  // @description 园艺魔法,花园插件
6
6
  // @author Narlen
7
7
  // @match https://iirose.com/messages.html
8
8
  // @grant none
9
9
  // @run-at onmessage-end
10
10
  // @license MIT
11
- // @buildtime 2025-10-30T15:12:57.619Z
11
+ // @buildtime 2026-01-02T08:46:49.166Z
12
12
  // ==/UserScript==
13
- top.window.hortimagic=window.hortimagic=function(t){"use strict";async function e(t){return new Promise(e=>setTimeout(e,t))}function i(t){return t=(t=(t=(t=(t=(t=t.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;")).replace("'","&#039;")).replace("\\","&#092;")}function o(t){return t=(t=(t=(t=(t=(t=t.replace("&lt;","<")).replace("&gt;",">")).replace("&quot;",'"')).replace("&#039;","'")).replace("&#092;","\\")).replace("&amp;","&")}function n(){return window.myself?window.myself:null}function s(){return window.uid?window.uid:null}function r(){return window.avatar2&&window.avatarconv?window.avatarconv(window.avatar2):null}function l(){return window.inputcolorhex?window.inputcolorhex:null}const a=Object.freeze(Object.defineProperty({__proto__:null,addStyle:function(t){let e=document.createElement("style");e.innerText=t,document.body.append(e)},changeRoom:function(t){(t=String(t))&&window.Objs.mapHolder?.function?.roomchanger(t)},compressCSS:function(t){return t=(t=(t=(t=(t=t.replace(/\s{2,}/g," ")).replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s*([{};:,])\s*/g,"$1")).replace(/;\s*}/g,"}")).trim()},compressHTML:function(t){return t=(t=(t=(t=t.replace(/>\s+</g,"><")).replace(/\s{2,}/g," ")).replace(/<!--[\s\S]*?-->/g,"")).trim()},generatePrivateMessageBubble:function(t,e,o){window.privatechatfunc&&window.privatechatfunc([Math.floor(Date.now()/1e3).toString(10),s(),i(n()),i(r()),i(e),i(l()),"",i(l()),"","",o,t,"","","","",""].join(">"))},getAllOnlineUserInfo:function(){let t=window.Objs.mapHolder.Assets.userJson;return t?Object.keys(t).map(e=>{let i=t[e];return{name:i[2],uid:i[8],color:i[3],avatar:i[0],roomId:i[4],personalizedSignature:i[6]}}):null},getOnlineUserInfoById:function(t){t=String(t);let e=window.Objs.mapHolder?.function?.findUserByUid?.(t);return e?{name:e[2],uid:t,color:e[3],avatar:e[0],roomId:e[4],personalizedSignature:e[6]}:null},getRoomId:function(){return window.roomn?window.roomn:null},getRoomInfoById:function(t){let e=window.Objs.mapHolder?.Assets?.roomJson?.[t];if(e){let t=e[5].split("&&").map(t=>t.split(" & ")),i=o(t[0][0]),n=i.indexOf(" ");return{name:e[1],color:e[2],roomPath:e[0].split("_"),description:i.slice(n+1),roomImage:i.slice(0,n),currentUserNum:"number"==typeof e[7]?e[7]:"hidden",ownerName:t[1][0],member:t[4].map(t=>({name:o(t.slice(1)),auth:"0"==t[0]?"member":"1"==t[0]?"admin":"unknow"}))}}return null},getUserInputColor:l,getUserName:n,getUserProfilePictureUrl:r,getUserUid:s,htmlSpecialCharsDecode:o,htmlSpecialCharsEscape:i,sleep:e,switchRoom:function(t){window.Objs.mapHolder?.function?.roomchanger&&window.Objs.mapHolder.function.roomchanger(t)}},Symbol.toStringTag,{value:"Module"}));class c{constructor(){this.timeStamp="",this.headPortrait="",this.name="",this.message="",this.color="",this.gender="",this.uid="",this.designation="",this.messageUid="",this.messageClass="public"}}class h{constructor(){this.timeStamp="",this.headPortrait="",this.name="",this.message="",this.color="",this.gender="",this.uid="",this.messageUid="",this.messageClass="private"}}class d{constructor(){this.messageName="",this.uid="",this.data="",this.messageClass="hidden"}}class p{constructor(){this.username="",this.avatar="",this.message="",this.color="",this.gender="",this.timeStamp="",this.uid="",this.messageClass="danmu"}}class u{constructor(){this.privateUID="",this.uid="",this.messageUid="",this.dataUid="",this.messageClass="withdrawn"}}class m{constructor(){this.userMessageList=[],this.messageClass="system"}}class g{constructor(){this.result="",this.stockPrice=NaN,this.totalStock=NaN,this.holdingAmount=NaN,this.totalEquity=NaN,this.balance=NaN,this.messageClass="stock"}}class f{constructor(){this.message="",this.messageClass="unkonw"}}const v=Object.freeze(Object.defineProperty({__proto__:null,Danmu:p,Hidden:d,Private:h,Public:c,Stock:g,System:m,Unkonw:f,Withdrawn:u},Symbol.toStringTag,{value:"Module"}));let b=[];function y(t){let e=new c,i=t.split(">");return e.timeStamp=i[0],e.headPortrait=i[1],e.name=i[2],e.message=i[3],e.color=i[5],e.gender=i[6],e.uid=i[8],e.designation=i[9],e.messageUid=i[10],e}function w(t){let e=new h,i=t.split(">");return e.timeStamp=i[0].slice(1),e.uid=i[1],e.name=i[2],e.headPortrait=i[3],e.message=i[4],e.color=i[5],e.gender=i[8],e.messageUid=i[10],e}function _(t){let e=new p,i=t.split(">");return e.username=i[0],e.message=i[1],e.color=i[2],e.gender=i[4],e.avatar=i[5],e.timeStamp=i[6],e.uid=i[7],e}function $(t){if(b=[],/^"[^"].*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)b.push(y(e[t]))}else if(/^"".*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)b.push(w(e[t]))}else if(/^=.*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)b.push(_(e[t]))}else/^[/]<.*>[0-9|a-z]{13}:.*/gs.test(t)?b.push(function(t){let e,i=new d;return e=t.match(/(?<=^[/]<).*(?=>[0-9|a-z]{13}:.*)/gs),i.messageName=null==e?"":e[0],e=t.match(/(?<=^[/]<.*>)[0-9|a-z]{13}(?=:.*)/gs),i.uid=null==e?"":e[0],e=t.match(/(?<=^[/]<.*>[0-9|a-z]{13}:).*/gs),i.data=null==e?"":e[0],i}(t)):/^v0.*/gs.test(t)?b.push(function(t){let e=new u;return"#"==t[2]?(e.privateUID="",e.uid=t.slice(3,16),e.messageUid=t.slice(17,29),e.dataUid=t.slice(3,29)):(e.privateUID=t.slice(3,16),e.uid=t.slice(17,30),e.messageUid=t.slice(31),e.dataUid=t.slice(17)),e}(t)):/^%\*".*/gs.test(t)?b.push(function(t){let e=new m;return e.userMessageList=t.split("<"),e}(t)):/^>.*/gs.test(t)?b.push(function(t){let e=new g;if(e.result=t[2],"*"==e.result)return e;if(">"==e.result)return e.holdingAmount=parseInt(t.slice(2)),e;if("<"==e.result)return e.balance=parseInt(t.slice(2)),e;{let i=t.split('"');if(5==i.length)return e.stockPrice=parseFloat(i[2]),e.totalStock=parseInt(i[0].slice(1)),e.holdingAmount=parseInt(i[3]),e.totalEquity=parseFloat(i[1]),e.balance=parseFloat(i[4]),e;if(4==i.length)return e.stockPrice=parseFloat(i[1])/parseInt(i[0].slice(1)),e.totalStock=parseInt(i[0].slice(1)),e.holdingAmount=parseInt(i[2]),e.totalEquity=parseFloat(i[1]),e.balance=parseFloat(i[3]),e}return e}(t)):b.push(function(t){let e=new f;return e.message=t,e}(t))}const x=Object.freeze(Object.defineProperty({__proto__:null,decodeMessage:$,get messageObjList(){return b}},Symbol.toStringTag,{value:"Module"}));var S,k={exports:{}};var C=function(){if(S)return k.exports;function t(){}return S=1,t.prototype={on:function(t,e,i){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var o=this;function n(){o.off(t,n),e.apply(i,arguments)}return n._=e,this.on(t,n,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),o=0,n=i.length;o<n;o++)i[o].fn.apply(i[o].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),o=i[t],n=[];if(o&&e)for(var s=0,r=o.length;s<r;s++)o[s].fn!==e&&o[s].fn._!==e&&n.push(o[s]);return n.length?i[t]=n:delete i[t],this}},k.exports=t,k.exports.TinyEmitter=t,k.exports}();let A=new C.TinyEmitter;const E=Object.freeze(Object.defineProperty({__proto__:null,TinyEmitter:C.TinyEmitter,emitter:A},Symbol.toStringTag,{value:"Module"}));async function O(){for(let i=0;i<30;i++)try{if(null==window.socket.__onmessage&&null!=window.socket._onmessage&&null!=window.socket.send)break;await e(500);continue}catch(t){}null==window.socket.__onmessage&&null!=window.socket._onmessage&&null!=window.socket.send&&(T.originalSend=window.socket.send,window.socket.send=T.send,T.originalOnmessage=window.socket._onmessage,window.socket._onmessage=T.onmessage)}const T={beforeSend:async function(t){return t},originalSend:function(t){return t},afterSend:function(t){return t},send:async function(t){let e=await T.beforeSend(t);try{null!=e&&(T.originalSend(e),T.afterSend(e))}catch(i){}},beforeOnmessage:async function(t){return $(t),t},originalOnmessage:function(t){return t},afterOnmessage:async function(t){for(let e of b)A.emit(e.messageClass,e);return t},onmessage:async function(t){let e=await T.beforeOnmessage(t);try{null!=e&&(T.originalOnmessage(e),T.afterOnmessage(e))}catch(i){}},initSocket:O},P=Object.freeze(Object.defineProperty({__proto__:null,initSocket:O,sockets:T},Symbol.toStringTag,{value:"Module"}));function M(t,e){return"cut"===t?`{0${JSON.stringify({m:t,mc:e,i:Math.random().toString().slice(2,12)})}`:JSON.stringify({m:t,mc:e,i:Math.random().toString().slice(2,12)})}const H=Object.freeze(Object.defineProperty({__proto__:null,danmu:function(t,e,i="0"){return`~{"t":"${t}","c":"${e}","v":${i}}`},hidden:function(t,e,i){return`/<${t}>${e}:${i}`},like:function(t,e=""){return`+*${t}${e}`},musicCard:function(t,e,i,o,n,s){return M(`m__4=${t}>${e}>${i}>${o}>${n}>${s}`,n)},privateChat:function(t,e,i){return JSON.stringify({g:t,m:e,mc:i,i:Math.random().toString().slice(2,12)})},publicChat:M,stockRequest:function(t){return null==t?">#":t>0?`>$${Math.round(Math.abs(t))}`:t<0?`>@${Math.round(Math.abs(t))}`:">#"},videoCard:function(t,e,i,o,n,s,r){return M(`m__4*${t}>${e}>${i}>${o}>${n}>${s}>${r}`,n)},withdrawn:function(t,e=""){return""==e?`v0#${t}`:`v0*${e}#${t}`}},Symbol.toStringTag,{value:"Module"}));let j={movePanelHolder:document.querySelector("#movePanelHolder"),functionHolder:document.querySelector("#functionHolder"),functionButtonGroupList:[...document.querySelectorAll(".functionButton.functionButtonGroup")],msgholderBox:document.querySelector("#msgholder .fullBox.msgholderBox"),homeHolderMsgBox:document.querySelector("#homeHolder .homeHolderMsgContentBox .homeHolderMsgBox.fullBox"),sessionHolderPmTaskBoxItems:[...document.querySelectorAll(".sessionHolderPmTaskBoxItem.whoisTouch2")],moveinputDisplay:document.querySelector("#moveinputDisplay"),moveinput:document.getElementById("moveinput"),moveinputSendBtnFunc:document.querySelector("#moveinputDisplay #moveinputSendBtnFunc"),moveinputSendBtnSend:document.querySelector("#moveinputDisplay #moveinputSendBtnSend")};function z(){j.movePanelHolder=document.querySelector("#movePanelHolder"),j.functionHolder=document.querySelector("#functionHolder"),j.functionButtonGroupList=[...document.querySelectorAll(".functionButton.functionButtonGroup")],j.msgholderBox=document.querySelector("#msgholder .fullBox .fullBox.msgholderBox"),j.homeHolderMsgBox=document.querySelector("#homeHolder .homeHolderMsgContentBox .homeHolderMsgBox.fullBox"),j.sessionHolderPmTaskBoxItems=[...document.querySelectorAll(".sessionHolderPmTaskBoxItem.whoisTouch2")],j.moveinputDisplay=document.querySelector("#moveinputDisplay"),j.moveinput=document.getElementById("moveinput"),j.moveinputSendBtnFunc=document.querySelector("#moveinputDisplay #moveinputSendBtnFunc"),j.moveinputSendBtnSend=document.querySelector("#moveinputDisplay #moveinputSendBtnSend")}let B={elementHooks:{moveinput:{oninputBefore:()=>!0,oninputAfter:()=>!0,onblurBefore:()=>!0,onblurAfter:()=>!0,onfocusBefore:()=>!0,onfocusAfter:()=>!0}},functionHooks:{processer:{onBefore:(t,e,i,o)=>!0,onAfter:(t,e,i,o)=>!0}},replaceMoveinput:()=>{try{let t=j.moveinput.oninput;j.moveinput.oninput=function(){1==B.elementHooks.moveinput.oninputBefore()&&(t?.call(j.moveinput),B.elementHooks.moveinput.oninputAfter())}}catch(t){}try{let t=j.moveinput.oninput;j.moveinput.onblur=function(){1==B.elementHooks.moveinput.onblurBefore()&&(t?.call(j.moveinput),B.elementHooks.moveinput.onblurAfter())}}catch(t){}try{let t=j.moveinput.oninput;j.moveinput.onfocus=function(){1==B.elementHooks.moveinput.onfocusBefore()&&(t?.call(j.moveinput),B.elementHooks.moveinput.onfocusAfter())}}catch(t){}},replaceButtonProcesser:()=>{try{let t=buttonProcesser;buttonProcesser=(e,i,o,n)=>{1==B.functionHooks.processer.onBefore(e,i,o,n)&&(t(e,i,o,n),B.functionHooks.processer.onAfter(e,i,o,n))}}catch(t){}}};function I(){B.replaceMoveinput(),B.replaceButtonProcesser()}const D=Object.freeze(Object.defineProperty({__proto__:null,Hooks:B,elements:j,initHooks:I,refreshAll:z},Symbol.toStringTag,{value:"Module"}));class N{constructor(t,e,i=!0,o=!1){this.name=t,this.url=e,this.enable=i,this.ingected=o}}let U=[];function L(t){if(""==t.name||""==t.url)return _alert("脚本名字或链接不能为空"),!1;for(let e of U){if(e.name===t.name)return e.url=t.url,e.enable=t.enable,e.ingected=t.ingected,!1;if(e.url===t.url)return e.name=t.name,e.enable=t.enable,e.ingected=t.ingected,!1}return U.push(t),!0}function R(t){U=U.filter(e=>e.name!==t.name&&e.url!==t.url)}function q(t){if(t.ingected)return _alert(`脚本 ${t.name} 已经注入`),t.ingected;const e=document.createElement("script");return e.src=t.url,e.onload=()=>{_alert(`脚本 ${t.name} 注入成功`),t.ingected=!0},e.onerror=()=>{_alert(`脚本 ${t.name} 注入失败`),t.enable=!1},document.head.appendChild(e),t.ingected}function V(t){for(let e of t)e.enable&&!e.ingected&&q(e)}function W(){let t=localStorage.getItem("hortiMagicScriptList");U=null==t?[]:JSON.parse(t);for(let e of U)e.ingected=!1}function X(){localStorage.setItem("hortiMagicScriptList",JSON.stringify(U)),_alert("脚本列表已保存")}function F(){W(),V(U)}const J=Object.freeze(Object.defineProperty({__proto__:null,Script:N,addScriptToList:L,ingectlocalScript:F,injectScript:q,injectScriptList:V,readScriptList:W,removeScriptFromList:R,saveScriptList:X,get scriptList(){return U}},Symbol.toStringTag,{value:"Module"})),G=Object.freeze(Object.defineProperty({__proto__:null,Message:v,decoder:x,elements_hooks:D,encoder:H,event_emitter:E,iirose_socket:P,script_tools:J,tools:a},Symbol.toStringTag,{value:"Module"})),Z=globalThis,Y=Z.ShadowRoot&&(void 0===Z.ShadyCSS||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K=Symbol(),Q=new WeakMap;let tt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==K)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Y&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Q.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Q.set(e,t))}return t}toString(){return this.cssText}};const et=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new tt(i,t,K)},it=Y?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new tt("string"==typeof t?t:t+"",void 0,K))(e)})(t):t,{is:ot,defineProperty:nt,getOwnPropertyDescriptor:st,getOwnPropertyNames:rt,getOwnPropertySymbols:lt,getPrototypeOf:at}=Object,ct=globalThis,ht=ct.trustedTypes,dt=ht?ht.emptyScript:"",pt=ct.reactiveElementPolyfillSupport,ut=(t,e)=>t,mt={toAttribute(t,e){switch(e){case Boolean:t=t?dt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(o){i=null}}return i}},gt=(t,e)=>!ot(t,e),ft={attribute:!0,type:String,converter:mt,reflect:!1,useDefault:!1,hasChanged:gt};Symbol.metadata??=Symbol("metadata"),ct.litPropertyMetadata??=new WeakMap;let vt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&nt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:n}=st(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=o?.call(this);n?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ft}static _$Ei(){if(this.hasOwnProperty(ut("elementProperties")))return;const t=at(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ut("properties"))){const t=this.properties,e=[...rt(t),...lt(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const t=this._$Eu(e,i);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(it(t))}else void 0!==t&&e.push(it(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Y)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),o=Z.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:mt).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:mt;this._$Em=o;const s=n.fromAttribute(e,t.type);this[o]=s??this._$Ej?.get(o)??s,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,n=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??gt)(n,e)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:n},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==n||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},vt[ut("elementProperties")]=new Map,vt[ut("finalized")]=new Map,pt?.({ReactiveElement:vt}),(ct.reactiveElementVersions??=[]).push("2.1.1");const bt=globalThis,yt=bt.trustedTypes,wt=yt?yt.createPolicy("lit-html",{createHTML:t=>t}):void 0,_t="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,xt="?"+$t,St=`<${xt}>`,kt=document,Ct=()=>kt.createComment(""),At=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Et=Array.isArray,Ot="[ \t\n\f\r]",Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pt=/-->/g,Mt=/>/g,Ht=RegExp(`>|${Ot}(?:([^\\s"'>=/]+)(${Ot}*=${Ot}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,zt=/"/g,Bt=/^(?:script|style|textarea|title)$/i,It=(Rt=1,(t,...e)=>({_$litType$:Rt,strings:t,values:e})),Dt=Symbol.for("lit-noChange"),Nt=Symbol.for("lit-nothing"),Ut=new WeakMap,Lt=kt.createTreeWalker(kt,129);var Rt;function qt(t,e){if(!Et(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==wt?wt.createHTML(e):e}class Vt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,c]=((t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":3===e?"<math>":"",r=Tt;for(let l=0;l<i;l++){const e=t[l];let i,a,c=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===Tt?"!--"===a[1]?r=Pt:void 0!==a[1]?r=Mt:void 0!==a[2]?(Bt.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=Ht):void 0!==a[3]&&(r=Ht):r===Ht?">"===a[0]?(r=n??Tt,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,i=a[1],r=void 0===a[3]?Ht:'"'===a[3]?zt:jt):r===zt||r===jt?r=Ht:r===Pt||r===Mt?r=Tt:(r=Ht,n=void 0);const d=r===Ht&&t[l+1].startsWith("/>")?" ":"";s+=r===Tt?e+St:c>=0?(o.push(i),e.slice(0,c)+_t+e.slice(c)+$t+d):e+$t+(-2===c?l:d)}return[qt(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=Vt.createElement(a,i),Lt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Lt.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(_t)){const e=c[s++],i=o.getAttribute(t).split($t),r=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?Gt:"?"===r[1]?Zt:"@"===r[1]?Yt:Jt}),o.removeAttribute(t)}else t.startsWith($t)&&(l.push({type:6,index:n}),o.removeAttribute(t));if(Bt.test(o.tagName)){const t=o.textContent.split($t),e=t.length-1;if(e>0){o.textContent=yt?yt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Ct()),Lt.nextNode(),l.push({type:2,index:++n});o.append(t[e],Ct())}}}else if(8===o.nodeType)if(o.data===xt)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf($t,t+1));)l.push({type:7,index:n}),t+=$t.length-1}n++}}static createElement(t,e){const i=kt.createElement("template");return i.innerHTML=t,i}}function Wt(t,e,i=t,o){if(e===Dt)return e;let n=void 0!==o?i._$Co?.[o]:i._$Cl;const s=At(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),void 0===s?n=void 0:(n=new s(t),n._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=n:i._$Cl=n),void 0!==n&&(e=Wt(t,n._$AS(t,e.values),n,o)),e}class Xt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??kt).importNode(e,!0);Lt.currentNode=o;let n=Lt.nextNode(),s=0,r=0,l=i[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Ft(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Kt(n,this,t)),this._$AV.push(e),l=i[++r]}s!==l?.index&&(n=Lt.nextNode(),s++)}return Lt.currentNode=kt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ft{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=Nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Wt(this,t,e),At(t)?t===Nt||null==t||""===t?(this._$AH!==Nt&&this._$AR(),this._$AH=Nt):t!==this._$AH&&t!==Dt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Et(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Nt&&At(this._$AH)?this._$AA.nextSibling.data=t:this.T(kt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Vt.createElement(qt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Xt(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=Ut.get(t.strings);return void 0===e&&Ut.set(t.strings,e=new Vt(t)),e}k(t){Et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Ft(this.O(Ct()),this.O(Ct()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Jt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,n){this.type=1,this._$AH=Nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Nt}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Wt(this,t,e,0),s=!At(t)||t!==this._$AH&&t!==Dt,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=Wt(this,o[i+r],e,r),l===Dt&&(l=this._$AH[r]),s||=!At(l)||l!==this._$AH[r],l===Nt?t=Nt:t!==Nt&&(t+=(l??"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===Nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Gt extends Jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Nt?void 0:t}}class Zt extends Jt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Nt)}}class Yt extends Jt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){if((t=Wt(this,t,e,0)??Nt)===Dt)return;const i=this._$AH,o=t===Nt&&i!==Nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==Nt&&(i===Nt||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Kt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Wt(this,t)}}const Qt=bt.litHtmlPolyfillSupport;Qt?.(Vt,Ft),(bt.litHtmlVersions??=[]).push("3.3.1");const te=(t,e,i)=>{const o=i?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=i?.renderBefore??null;o._$litPart$=n=new Ft(e.insertBefore(Ct(),t),t,void 0,i??{})}return n._$AI(t),n},ee=globalThis;let ie=class extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=te(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Dt}};ie._$litElement$=!0,ie.finalized=!0,ee.litElementHydrateSupport?.({LitElement:ie});const oe=ee.litElementPolyfillSupport;oe?.({LitElement:ie}),(ee.litElementVersions??=[]).push("4.2.1");const ne=t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},se={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:gt},re=(t=se,e,i)=>{const{kind:o,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(void 0===s&&globalThis.litPropertyMetadata.set(n,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const n=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const n=this[o];e.call(this,i),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function le(t){return(e,i)=>"object"==typeof i?re(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}const ae=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i);function ce(t,e){return(e,i,o)=>ae(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}var he=Object.defineProperty,de=Object.getOwnPropertyDescriptor,pe=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?de(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&he(e,i,s),s};let ue=[],me=99999,ge=class extends ie{constructor(){super(),this.width=320,this.height=490,this.headerBackgroundColor="rgba(66,134,182,0.9)",this.headerColor="rgb(255,255,255)",this.bodyBackgroundColor="rgba(255,255,255,0.7)",this.bodyColor="rgba(23, 23, 23, 0.9)",this.footerBackgroundColor="rgba(255,255,255,0.7)",this.buttonBackgroundColor="rgba(255,255,255,0.9)",this.buttonColor="rgba(66,134,182,0.9)",this.titleContent="面板",this.leftButtonText="按钮1",this.rightButtonText="按钮2",this.isDisplay=!1,this.zIndex=me,this.icon="magic-wand",this.left=(window.innerWidth-this.width)/2,this.top=(window.innerHeight-(this.height+80))/2,this.dragging=!1,ue.push(this),this.zIndex=++me}handleLeftClick(){this.hideMovePanel()}handleRightClick(){this.hideMovePanel()}hideMovePanel(){this.isDisplay=!1,this.dispatchEvent(new CustomEvent("close",{detail:{isDisplay:this.isDisplay,message:"关闭事件"},bubbles:!0,composed:!0}))}showMovePanel(){this.isDisplay=!0,this.dispatchEvent(new CustomEvent("show",{detail:{isDisplay:this.isDisplay},bubbles:!0,composed:!0}))}toogleDisplay(){this.isDisplay?this.hideMovePanel():this.showMovePanel()}mouseDragging(t){let e=this.left,i=this.top,o=t.clientX-e,n=t.clientY-i;0==this.dragging&&(this.dragging=!0),document.onmousemove=t=>{this.dragging&&(this.left=t.clientX-o,this.top=t.clientY-n)},document.onmouseup=()=>{this.dragging&&(this.dragging=!1),document.onmousemove=null}}touchDragging(t){let e=this.left,i=this.top,o=t.touches[0].clientX-e,n=t.touches[0].clientY-i;0==this.dragging&&(this.dragging=!0),document.ontouchmove=t=>{this.dragging&&(this.left=t.touches[0].clientX-o,this.top=t.touches[0].clientY-n)},document.ontouchend=()=>{this.dragging&&(this.dragging=!1),document.onmousemove=null}}putTop(){let t=!1;if(ue.includes(this)){for(let t=0;t<ue.length;t++)ue[t].zIndex>this.zIndex&&(ue[t].zIndex=ue[t].zIndex-1);this.zIndex=me,t=!0}else t=!1;return t}putTopToggel(){this.zIndex!=me?(this.putTop(),this.showMovePanel()):this.toogleDisplay()}render(){return It`
13
+ top.window.hortimagic=window.hortimagic=function(t){"use strict";async function e(t){return new Promise(e=>setTimeout(e,t))}function o(t){return t=(t=(t=(t=(t=(t=t.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;")).replace("'","&#039;")).replace("\\","&#092;")}function i(t){return t=(t=(t=(t=(t=(t=t.replace("&lt;","<")).replace("&gt;",">")).replace("&quot;",'"')).replace("&#039;","'")).replace("&#092;","\\")).replace("&amp;","&")}function n(){return window.myself?window.myself:null}function s(){return window.uid?window.uid:null}function r(){return window.inputcolorhex?window.inputcolorhex:null}const l=Object.freeze(Object.defineProperty({__proto__:null,addStyle:function(t){let e=document.createElement("style");e.innerText=t,document.body.append(e)},changeRoom:function(t){(t=String(t))&&window.Objs.mapHolder?.function?.roomchanger(t)},compressCSS:function(t){return t=(t=(t=(t=(t=t.replace(/\s{2,}/g," ")).replace(/\/\*[\s\S]*?\*\//g,"")).replace(/\s*([{};:,])\s*/g,"$1")).replace(/;\s*}/g,"}")).trim()},compressHTML:function(t){return t=(t=(t=(t=t.replace(/>\s+</g,"><")).replace(/\s{2,}/g," ")).replace(/<!--[\s\S]*?-->/g,"")).trim()},generatePrivateMessageBubble:function(t,e,i){window.privatechatfunc&&window.privatechatfunc([Math.floor(Date.now()/1e3).toString(10),s(),o(n()),o(window.avatar2&&window.avatarconv?window.avatarconv(window.avatar2):null),o(e),o(r()),"",o(r()),"","",i,t,"","","","",""].join(">"))},getAllOnlineUserInfo:function(){let t=window.Objs.mapHolder.Assets.userJson;return t?Object.keys(t).map(e=>{let o=t[e];return{name:o[2],uid:o[8],color:o[3],avatar:o[0],roomId:o[4],personalizedSignature:o[6]}}):null},getOnlineUserInfoById:function(t){t=String(t);let e=window.Objs.mapHolder?.function?.findUserByUid?.(t);return e?{name:e[2],uid:t,color:e[3],avatar:e[0],roomId:e[4],personalizedSignature:e[6]}:null},getRoomId:function(){return window.roomn?window.roomn:null},getRoomInfoById:function(t){let e=window.Objs.mapHolder?.Assets?.roomJson?.[t];if(e){let t=e[5].split("&&").map(t=>t.split(" & ")),o=i(t[0][0]),n=o.indexOf(" ");return{name:e[1],color:e[2],roomPath:e[0].split("_"),description:o.slice(n+1),roomImage:o.slice(0,n),currentUserNum:"number"==typeof e[7]?e[7]:"hidden",ownerName:t[1][0],member:t[4].map(t=>({name:i(t.slice(1)),auth:"0"==t[0]?"member":"1"==t[0]?"admin":"unknow"}))}}return null},getUserInputColor:r,getUserName:n,getUserUid:s,htmlSpecialCharsDecode:i,htmlSpecialCharsEscape:o,sleep:e,switchRoom:function(t){window.Objs.mapHolder?.function?.roomchanger&&window.Objs.mapHolder.function.roomchanger(t)}},Symbol.toStringTag,{value:"Module"}));class a{constructor(){this.timeStamp="",this.headPortrait="",this.name="",this.message="",this.color="",this.gender="",this.uid="",this.designation="",this.messageUid=""}}class c{constructor(){this.timeStamp="",this.headPortrait="",this.name="",this.message="",this.color="",this.gender="",this.uid="",this.messageUid=""}}class h{constructor(){this.messageName="",this.uid="",this.data=""}}class d{constructor(){this.username="",this.avatar="",this.message="",this.color="",this.gender="",this.timeStamp="",this.uid=""}}class p{constructor(){this.privateUID="",this.uid="",this.messageUid="",this.dataUid=""}}class u{constructor(){this.userMessageList=[]}}class g{constructor(){this.result="",this.stockPrice=NaN,this.totalStock=NaN,this.holdingAmount=NaN,this.totalEquity=NaN,this.balance=NaN}}class m{constructor(){this.message=""}}const f=Object.freeze(Object.defineProperty({__proto__:null,Danmu:d,Hidden:h,Private:c,Public:a,Stock:g,System:u,Unkonw:m,Withdrawn:p},Symbol.toStringTag,{value:"Module"}));let v=[];function b(t){return t instanceof a?"public":t instanceof c?"private":t instanceof h?"hidden":t instanceof d?"danmu":t instanceof p?"withdrawn":t instanceof u?"system":t instanceof g?"stock":"unknown"}function y(t){let e=new a,o=t.split(">");return e.timeStamp=o[0],e.headPortrait=o[1],e.name=o[2],e.message=o[3],e.color=o[5],e.gender=o[6],e.uid=o[8],e.designation=o[9],e.messageUid=o[10],e}function w(t){let e=new c,o=t.split(">");return e.timeStamp=o[0].slice(1),e.uid=o[1],e.name=o[2],e.headPortrait=o[3],e.message=o[4],e.color=o[5],e.gender=o[8],e.messageUid=o[10],e}function x(t){let e=new d,o=t.split(">");return e.username=o[0],e.message=o[1],e.color=o[2],e.gender=o[4],e.avatar=o[5],e.timeStamp=o[6],e.uid=o[7],e}function $(t){if(v=[],/^"[^"].*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)v.push(y(e[t]))}else if(/^"".*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)v.push(w(e[t]))}else if(/^=.*/gs.test(t)){let e=t.slice(1).split("<");for(let t=e.length-1;t>=0;t--)v.push(x(e[t]))}else/^[/]<.*>[0-9|a-z]{13}:.*/gs.test(t)?v.push(function(t){let e,o=new h;return e=t.match(/(?<=^[/]<).*(?=>[0-9|a-z]{13}:.*)/gs),o.messageName=null==e?"":e[0],e=t.match(/(?<=^[/]<.*>)[0-9|a-z]{13}(?=:.*)/gs),o.uid=null==e?"":e[0],e=t.match(/(?<=^[/]<.*>[0-9|a-z]{13}:).*/gs),o.data=null==e?"":e[0],o}(t)):/^v0.*/gs.test(t)?v.push(function(t){let e=new p;return"#"==t[2]?(e.privateUID="",e.uid=t.slice(3,16),e.messageUid=t.slice(17,29),e.dataUid=t.slice(3,29)):(e.privateUID=t.slice(3,16),e.uid=t.slice(17,30),e.messageUid=t.slice(31),e.dataUid=t.slice(17)),e}(t)):/^%\*".*/gs.test(t)?v.push(function(t){let e=new u;return e.userMessageList=t.split("<"),e}(t)):/^>.*/gs.test(t)?v.push(function(t){let e=new g;if(e.result=t[2],"*"==e.result)return e;if(">"==e.result)return e.holdingAmount=parseInt(t.slice(2)),e;if("<"==e.result)return e.balance=parseInt(t.slice(2)),e;{let o=t.split('"');if(5==o.length)return e.stockPrice=parseFloat(o[2]),e.totalStock=parseInt(o[0].slice(1)),e.holdingAmount=parseInt(o[3]),e.totalEquity=parseFloat(o[1]),e.balance=parseFloat(o[4]),e;if(4==o.length)return e.stockPrice=parseFloat(o[1])/parseInt(o[0].slice(1)),e.totalStock=parseInt(o[0].slice(1)),e.holdingAmount=parseInt(o[2]),e.totalEquity=parseFloat(o[1]),e.balance=parseFloat(o[3]),e}return e}(t)):v.push(function(t){let e=new m;return e.message=t,e}(t))}const _=Object.freeze(Object.defineProperty({__proto__:null,decodeMessage:$,judegMessageClass:b,get messageObjList(){return v}},Symbol.toStringTag,{value:"Module"}));class S{constructor(){this.events={}}on(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}off(t,e){this.events[t]&&(e?this.events[t]=this.events[t].filter(t=>t!==e):delete this.events[t])}once(t,e){const o=(...i)=>{e(...i),this.off(t,o)};this.on(t,o)}emit(t,...e){const o=this.events[t];return!(!o||0===o.length)&&([...o].forEach(t=>t(...e)),!0)}}const k=Symbol(),A=Object.getPrototypeOf,C=new WeakMap,O=t=>(t=>t&&(C.has(t)?C.get(t):A(t)===Object.prototype||A(t)===Array.prototype))(t)&&t[k]||null,E=(t,e=!0)=>{C.set(t,e)},M={},z=t=>"object"==typeof t&&null!==t,H=(t,e)=>{const o=j.get(t);if((null==o?void 0:o[0])===e)return o[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return E(i,!0),j.set(t,[e,i]),Reflect.ownKeys(t).forEach(e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const o=Reflect.get(t,e),{enumerable:n}=Reflect.getOwnPropertyDescriptor(t,e),s={value:o,enumerable:n,configurable:!0};if(P.has(o))E(o,!1);else if(T.has(o)){const[t,e]=T.get(o);s.value=H(t,e())}Object.defineProperty(i,e,s)}),Object.preventExtensions(i)},T=new WeakMap,P=new WeakSet,j=new WeakMap,L=[1],B=new WeakMap;let I=Object.is,D=(t,e)=>new Proxy(t,e),N=t=>z(t)&&!P.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)&&!(t instanceof Promise),U=H,R=(t,e,o,i)=>({deleteProperty(t,e){const n=Reflect.get(t,e);o(e);const s=Reflect.deleteProperty(t,e);return s&&i(["delete",[e],n]),s},set(n,s,r,l){const a=!t()&&Reflect.has(n,s),c=Reflect.get(n,s,l);if(a&&(I(c,r)||B.has(r)&&I(c,B.get(r))))return!0;o(s),z(r)&&(r=O(r)||r);const h=!T.has(r)&&N(r)?V(r):r;return e(s,h),Reflect.set(n,s,h,l),i(["set",[s],r,c]),!0}});function V(t={}){if(!z(t))throw new Error("object required");const e=B.get(t);if(e)return e;let o=L[0];const i=new Set,n=(t,e=++L[0])=>{o!==e&&(s=o=e,i.forEach(o=>o(t,e)))};let s=o;const r=t=>(e,o)=>{const i=[...e];i[1]=[t,...i[1]],n(i,o)},l=new Map;let a=!0;const c=R(()=>a,(t,e)=>{const o=!P.has(e)&&T.get(e);if(o){if("production"!==(M?"production":void 0)&&l.has(t))throw new Error("prop listener already exists");if(i.size){const e=o[2](r(t));l.set(t,[o,e])}else l.set(t,[o])}},t=>{var e;const o=l.get(t);o&&(l.delete(t),null==(e=o[1])||e.call(o))},n),h=D(t,c);B.set(t,h);const d=[t,(t=L[0])=>(s!==t&&(s=t,l.forEach(([e])=>{const i=e[1](t);i>o&&(o=i)})),o),t=>{i.add(t),1===i.size&&l.forEach(([t,e],o)=>{if("production"!==(M?"production":void 0)&&e)throw new Error("remove already exists");const i=t[2](r(o));l.set(o,[t,i])});return()=>{i.delete(t),0===i.size&&l.forEach(([t,e],o)=>{e&&(e(),l.set(o,[t]))})}}];return T.set(h,d),Reflect.ownKeys(t).forEach(e=>{const o=Object.getOwnPropertyDescriptor(t,e);"value"in o&&o.writable&&(h[e]=t[e])}),a=!1,h}function F(t,e,o){const i=T.get(t);let n;"production"===(M?"production":void 0)||i||console.warn("Please use proxy object");const s=[],r=i[2];let l=!1;const a=r(t=>{s.push(t),o?e(s.splice(0)):n||(n=Promise.resolve().then(()=>{n=void 0,l&&e(s.splice(0))}))});return l=!0,()=>{l=!1,a()}}const q="store",W="HortimagicStore",G={proxy:V,subscribe:F,snapshot:function(t){const e=T.get(t);"production"===(M?"production":void 0)||e||console.warn("Please use proxy object");const[o,i]=e;return U(o,i())}},X=V({autoSave:!1,logFlag:{log:!1,info:!0,debug:!0,warn:!0,error:!0},messageLogFlag:{send:!1,decode:!1,emit:!0,receive:!1},logListLength:20,scriptList:[]});function J(){localStorage.setItem(W,JSON.stringify(X)),tt.debug(q,"保存至本地存储")}function Z(){let t=localStorage.getItem(W);if(null!=t){const e=JSON.parse(t);e.autoSave?X.autoSave=1==e.autoSave:X.autoSave=!1,e.logFlag?X.logFlag=e.logFlag:isNaN(e.logLevel)&&(X.logFlag=e.logLevel),e.scriptList&&(X.scriptList=e.scriptList),e.logListLength&&(X.logListLength=e.logListLength)}else X.logFlag.log=!0,X.logFlag.info=!0,X.logFlag.debug=!0,X.logFlag.warn=!0,X.logFlag.error=!0,X.autoSave=!0,X.logListLength=20,X.messageLogFlag.decode=!1,X.messageLogFlag.emit=!0,X.messageLogFlag.send=!1,X.messageLogFlag.receive=!1,X.scriptList=[],tt.debug(q,"没有读取到配置,使用默认配置"),J();tt.debug(q,"从本地存储加载")}function Y(){Z(),F(X,()=>{X.autoSave&&J()})}const K=Object.freeze(Object.defineProperty({__proto__:null,HortimagicStore:X,initStore:Y,loadStore:Z,reactive:G,saveStore:J},Symbol.toStringTag,{value:"Module"})),Q=new S,tt={log(t,...e){X.logFlag.log&&(Q.emit("log",t,...e),console.log(t,...e))},debug(t,...e){X.logFlag.debug&&(Q.emit("log",t,...e),console.debug(t,...e))},info(t,...e){X.logFlag.info&&(Q.emit("log",t,...e),console.info(t,...e))},warn(t,...e){X.logFlag.warn&&(Q.emit("log",t,...e),console.warn(t,...e))},error(t,...e){X.logFlag.error&&(Q.emit("log",t,...e),console.error(t,...e))}},et=Object.freeze(Object.defineProperty({__proto__:null,logEmitter:Q,logger:tt},Symbol.toStringTag,{value:"Module"})),ot="socket-tools",it=new S;async function nt(){tt.debug(ot,"代理网络");for(let o=0;o<30;o++)try{if(tt.debug(ot,"等待网络连接",o),null==window.socket.__onmessage&&null!=window.socket._onmessage&&null!=window.socket.send){tt.debug(ot,"网络连接成功");break}await e(500);continue}catch(t){tt.error(ot,t)}null==window.socket.__onmessage&&null!=window.socket._onmessage&&null!=window.socket.send?(st.originalSend=window.socket.send,window.socket.send=st.send,st.originalOnmessage=window.socket._onmessage,window.socket._onmessage=st.onmessage):tt.error("连接失败")}const st={beforeSend:async function(t){return t},originalSend:function(t){return t},afterSend:function(t){return t},send:async function(t){X.messageLogFlag.send&&tt.debug(ot,"发送",{message:t});let e=await st.beforeSend(t);try{null!=e&&(st.originalSend(e),st.afterSend(e))}catch(o){tt.error(ot,o)}},beforeOnmessage:async function(t){return X.messageLogFlag.decode&&tt.debug(ot,"解码",{message:t}),$(t),t},originalOnmessage:function(t){return t},afterOnmessage:async function(t){for(let e of v)X.messageLogFlag.emit&&tt.debug(ot,`触发${b(e)}消息`,{message:t,messageObj:e}),it.emit(b(e),e);return t},onmessage:async function(t){X.messageLogFlag.receive&&tt.debug(ot,"接收",{message:t});let e=await st.beforeOnmessage(t);try{null!=e&&(st.originalOnmessage(e),st.afterOnmessage(e))}catch(o){tt.error("捕获到错误",o)}},initSocket:nt},rt=Object.freeze(Object.defineProperty({__proto__:null,initSocket:nt,messageEmitter:it,socketTools:st},Symbol.toStringTag,{value:"Module"}));function lt(t,e){return"cut"===t?`{0${JSON.stringify({m:t,mc:e,i:Math.random().toString().slice(2,12)})}`:JSON.stringify({m:t,mc:e,i:Math.random().toString().slice(2,12)})}const at=Object.freeze(Object.defineProperty({__proto__:null,danmu:function(t,e,o="0"){return`~{"t":"${t}","c":"${e}","v":${o}}`},hidden:function(t,e,o){return`/<${t}>${e}:${o}`},like:function(t,e=""){return`+*${t}${e}`},musicCard:function(t,e,o,i,n,s){return lt(`m__4=${t}>${e}>${o}>${i}>${n}>${s}`,n)},privateChat:function(t,e,o){return JSON.stringify({g:t,m:e,mc:o,i:Math.random().toString().slice(2,12)})},publicChat:lt,stockRequest:function(t){return null==t?">#":t>0?`>$${Math.round(Math.abs(t))}`:t<0?`>@${Math.round(Math.abs(t))}`:">#"},videoCard:function(t,e,o,i,n,s,r){return lt(`m__4*${t}>${e}>${o}>${i}>${n}>${s}>${r}`,n)},withdrawn:function(t,e=""){return""==e?`v0#${t}`:`v0*${e}#${t}`}},Symbol.toStringTag,{value:"Module"})),ct="elements-hooks";let ht={movePanelHolder:document.querySelector("#movePanelHolder"),functionHolder:document.querySelector("#functionHolder"),functionButtonGroupList:[...document.querySelectorAll(".functionButton.functionButtonGroup")],msgholderBox:document.querySelector("#msgholder .fullBox.msgholderBox"),homeHolderMsgBox:document.querySelector("#homeHolder .homeHolderMsgContentBox .homeHolderMsgBox.fullBox"),sessionHolderPmTaskBoxItems:[...document.querySelectorAll(".sessionHolderPmTaskBoxItem.whoisTouch2")],moveinputDisplay:document.querySelector("#moveinputDisplay"),moveinput:document.getElementById("moveinput"),moveinputSendBtnFunc:document.querySelector("#moveinputDisplay #moveinputSendBtnFunc"),moveinputSendBtnSend:document.querySelector("#moveinputDisplay #moveinputSendBtnSend")};function dt(){ht.movePanelHolder=document.querySelector("#movePanelHolder"),ht.functionHolder=document.querySelector("#functionHolder"),ht.functionButtonGroupList=[...document.querySelectorAll(".functionButton.functionButtonGroup")],ht.msgholderBox=document.querySelector("#msgholder .fullBox .fullBox.msgholderBox"),ht.homeHolderMsgBox=document.querySelector("#homeHolder .homeHolderMsgContentBox .homeHolderMsgBox.fullBox"),ht.sessionHolderPmTaskBoxItems=[...document.querySelectorAll(".sessionHolderPmTaskBoxItem.whoisTouch2")],ht.moveinputDisplay=document.querySelector("#moveinputDisplay"),ht.moveinput=document.getElementById("moveinput"),ht.moveinputSendBtnFunc=document.querySelector("#moveinputDisplay #moveinputSendBtnFunc"),ht.moveinputSendBtnSend=document.querySelector("#moveinputDisplay #moveinputSendBtnSend")}let pt={elementHooks:{moveinput:{oninputBefore:()=>!0,oninputAfter:()=>!0,onblurBefore:()=>!0,onblurAfter:()=>!0,onfocusBefore:()=>!0,onfocusAfter:()=>!0}},functionHooks:{processer:{onBefore:(t,e,o,i)=>!0,onAfter:(t,e,o,i)=>!0}},replaceMoveinput:()=>{try{let t=ht.moveinput.oninput;ht.moveinput.oninput=function(){1==pt.elementHooks.moveinput.oninputBefore()&&(t?.call(ht.moveinput),pt.elementHooks.moveinput.oninputAfter())}}catch(t){tt.error(ct,t)}try{let t=ht.moveinput.oninput;ht.moveinput.onblur=function(){1==pt.elementHooks.moveinput.onblurBefore()&&(t?.call(ht.moveinput),pt.elementHooks.moveinput.onblurAfter())}}catch(t){tt.error(ct,t)}try{let t=ht.moveinput.oninput;ht.moveinput.onfocus=function(){1==pt.elementHooks.moveinput.onfocusBefore()&&(t?.call(ht.moveinput),pt.elementHooks.moveinput.onfocusAfter())}}catch(t){tt.error(ct,t)}},replaceButtonProcesser:()=>{try{let t=buttonProcesser;buttonProcesser=(e,o,i,n)=>{1==pt.functionHooks.processer.onBefore(e,o,i,n)&&(t(e,o,i,n),pt.functionHooks.processer.onAfter(e,o,i,n))}}catch(t){tt.error(ct,t)}}};function ut(){pt.replaceMoveinput(),pt.replaceButtonProcesser()}const gt=Object.freeze(Object.defineProperty({__proto__:null,Hooks:pt,elements:ht,initHooks:ut,refreshAll:dt},Symbol.toStringTag,{value:"Module"})),mt="script-tools",ft=[];class vt{constructor(t,e,o=!0){this.name=t,this.url=e,this.enable=o}}function bt(t){return tt.debug(mt,`添加${t.name},${t.url}`),xt(t.url)>=0||$t(t.name)>=0?(tt.warn(mt,`脚本${t.name}${t.url}已经存在`),!1):(X.scriptList.push(t),!0)}function yt(t){tt.debug(mt,`更新脚本${t.name}${t.url}`);for(let e=0;e<X.scriptList.length;e++){if(X.scriptList[e].name===t.name)return X.scriptList[e]=t,!0;if(X.scriptList[e].url===t.url)return X.scriptList[e]=t,!0}return!1}function wt(t){tt.debug(mt,`删除${t.name},${t.url}`);let e=$t(t.name);return e>=0?(X.scriptList.splice(e,1),!0):(e=xt(t.url),e>=0&&(X.scriptList.splice(e,1),!0))}function xt(t){for(let e=0;e<X.scriptList.length;e++)if(X.scriptList[e].url==t)return e;return-1}function $t(t){for(let e=0;e<X.scriptList.length;e++)if(X.scriptList[e].name==t)return e;return-1}function _t(t){if(ft.includes(t.url))return tt.warn(mt,`脚本${t.name}${t.url}已经注入`),!1;{const e=document.createElement("script");return e.src=t.url,document.body.appendChild(e),ft.push(t.url),tt.debug(mt,`注入${t.name}`),!0}}function St(){X.scriptList.forEach(t=>{t.enable&&!ft.includes(t.url)&&_t(t)})}const kt=Object.freeze(Object.defineProperty({__proto__:null,Script:vt,addScriptToList:bt,clearScriptList:function(){X.scriptList=[]},findScriptByName:$t,findScriptByUrl:xt,ingecteScript:_t,ingecteScriptList:St,ingectedUrlList:ft,removeScriptFromList:wt,updateScriptInList:yt},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,Emitter:S,Message:f,decoder:_,elements_hooks:gt,encoder:at,log_tools:et,script_tools:kt,socket_tools:rt,store:K,tools:l},Symbol.toStringTag,{value:"Module"})),Ct=globalThis,Ot=Ct.ShadowRoot&&(void 0===Ct.ShadyCSS||Ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),Mt=new WeakMap;let zt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ot&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=Mt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}};const Ht=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new zt(o,t,Et)},Tt=Ot?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new zt("string"==typeof t?t:t+"",void 0,Et))(e)})(t):t,{is:Pt,defineProperty:jt,getOwnPropertyDescriptor:Lt,getOwnPropertyNames:Bt,getOwnPropertySymbols:It,getPrototypeOf:Dt}=Object,Nt=globalThis,Ut=Nt.trustedTypes,Rt=Ut?Ut.emptyScript:"",Vt=Nt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,qt={toAttribute(t,e){switch(e){case Boolean:t=t?Rt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(i){o=null}}return o}},Wt=(t,e)=>!Pt(t,e),Gt={attribute:!0,type:String,converter:qt,reflect:!1,useDefault:!1,hasChanged:Wt};Symbol.metadata??=Symbol("metadata"),Nt.litPropertyMetadata??=new WeakMap;let Xt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&jt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:n}=Lt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const s=i?.call(this);n?.call(this,e),this.requestUpdate(t,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Gt}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const t=Dt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,e=[...Bt(t),...It(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[e,o]of this.elementProperties){const t=this._$Eu(e,o);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Tt(t))}else void 0!==t&&e.push(Tt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ot)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const o of e){const e=document.createElement("style"),i=Ct.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:qt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:qt;this._$Em=i;const s=n.fromAttribute(e,t.type);this[i]=s??this._$Ej?.get(i)??s,this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){const i=this.constructor,n=this[t];if(o??=i.getPropertyOptions(t),!((o.hasChanged??Wt)(n,e)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:i,wrapped:n},s){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==n||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t){const{wrapped:t}=o,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,o,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};Xt.elementStyles=[],Xt.shadowRootOptions={mode:"open"},Xt[Ft("elementProperties")]=new Map,Xt[Ft("finalized")]=new Map,Vt?.({ReactiveElement:Xt}),(Nt.reactiveElementVersions??=[]).push("2.1.1");const Jt=globalThis,Zt=Jt.trustedTypes,Yt=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Qt=`lit$${Math.random().toFixed(9).slice(2)}$`,te="?"+Qt,ee=`<${te}>`,oe=document,ie=()=>oe.createComment(""),ne=t=>null===t||"object"!=typeof t&&"function"!=typeof t,se=Array.isArray,re="[ \t\n\f\r]",le=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,ce=/>/g,he=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),de=/'/g,pe=/"/g,ue=/^(?:script|style|textarea|title)$/i,ge=(ye=1,(t,...e)=>({_$litType$:ye,strings:t,values:e})),me=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),ve=new WeakMap,be=oe.createTreeWalker(oe,129);var ye;function we(t,e){if(!se(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Yt?Yt.createHTML(e):e}class xe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,c]=((t,e)=>{const o=t.length-1,i=[];let n,s=2===e?"<svg>":3===e?"<math>":"",r=le;for(let l=0;l<o;l++){const e=t[l];let o,a,c=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===le?"!--"===a[1]?r=ae:void 0!==a[1]?r=ce:void 0!==a[2]?(ue.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=he):void 0!==a[3]&&(r=he):r===he?">"===a[0]?(r=n??le,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,o=a[1],r=void 0===a[3]?he:'"'===a[3]?pe:de):r===pe||r===de?r=he:r===ae||r===ce?r=le:(r=he,n=void 0);const d=r===he&&t[l+1].startsWith("/>")?" ":"";s+=r===le?e+ee:c>=0?(i.push(o),e.slice(0,c)+Kt+e.slice(c)+Qt+d):e+Qt+(-2===c?l:d)}return[we(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]})(t,e);if(this.el=xe.createElement(a,o),be.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=be.nextNode())&&l.length<r;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Kt)){const e=c[s++],o=i.getAttribute(t).split(Qt),r=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?Ae:"?"===r[1]?Ce:"@"===r[1]?Oe:ke}),i.removeAttribute(t)}else t.startsWith(Qt)&&(l.push({type:6,index:n}),i.removeAttribute(t));if(ue.test(i.tagName)){const t=i.textContent.split(Qt),e=t.length-1;if(e>0){i.textContent=Zt?Zt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],ie()),be.nextNode(),l.push({type:2,index:++n});i.append(t[e],ie())}}}else if(8===i.nodeType)if(i.data===te)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(Qt,t+1));)l.push({type:7,index:n}),t+=Qt.length-1}n++}}static createElement(t,e){const o=oe.createElement("template");return o.innerHTML=t,o}}function $e(t,e,o=t,i){if(e===me)return e;let n=void 0!==i?o._$Co?.[i]:o._$Cl;const s=ne(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),void 0===s?n=void 0:(n=new s(t),n._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=n:o._$Cl=n),void 0!==n&&(e=$e(t,n._$AS(t,e.values),n,i)),e}class _e{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??oe).importNode(e,!0);be.currentNode=i;let n=be.nextNode(),s=0,r=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Se(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Ee(n,this,t)),this._$AV.push(e),l=o[++r]}s!==l?.index&&(n=be.nextNode(),s++)}return be.currentNode=oe,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class Se{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=$e(this,t,e),ne(t)?t===fe||null==t||""===t?(this._$AH!==fe&&this._$AR(),this._$AH=fe):t!==this._$AH&&t!==me&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>se(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==fe&&ne(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=xe.createElement(we(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new _e(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=ve.get(t.strings);return void 0===e&&ve.set(t.strings,e=new xe(t)),e}k(t){se(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const n of t)i===e.length?e.push(o=new Se(this.O(ie()),this.O(ie()),this,this.options)):o=e[i],o._$AI(n),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ke{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,n){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=fe}_$AI(t,e=this,o,i){const n=this.strings;let s=!1;if(void 0===n)t=$e(this,t,e,0),s=!ne(t)||t!==this._$AH&&t!==me,s&&(this._$AH=t);else{const i=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=$e(this,i[o+r],e,r),l===me&&(l=this._$AH[r]),s||=!ne(l)||l!==this._$AH[r],l===fe?t=fe:t!==fe&&(t+=(l??"")+n[r+1]),this._$AH[r]=l}s&&!i&&this.j(t)}j(t){t===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ae extends ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===fe?void 0:t}}class Ce extends ke{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==fe)}}class Oe extends ke{constructor(t,e,o,i,n){super(t,e,o,i,n),this.type=5}_$AI(t,e=this){if((t=$e(this,t,e,0)??fe)===me)return;const o=this._$AH,i=t===fe&&o!==fe||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==fe&&(o===fe||i);i&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Ee{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const Me=Jt.litHtmlPolyfillSupport;Me?.(xe,Se),(Jt.litHtmlVersions??=[]).push("3.3.1");const ze=globalThis;let He=class extends Xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=o?.renderBefore??null;i._$litPart$=n=new Se(e.insertBefore(ie(),t),t,void 0,o??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return me}};He._$litElement$=!0,He.finalized=!0,ze.litElementHydrateSupport?.({LitElement:He});const Te=ze.litElementPolyfillSupport;Te?.({LitElement:He}),(ze.litElementVersions??=[]).push("4.2.1");const Pe=t=>(e,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},je={attribute:!0,type:String,converter:qt,reflect:!1,hasChanged:Wt},Le=(t=je,e,o)=>{const{kind:i,metadata:n}=o;let s=globalThis.litPropertyMetadata.get(n);if(void 0===s&&globalThis.litPropertyMetadata.set(n,s=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),s.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const n=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,n,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=o;return function(o){const n=this[i];e.call(this,o),this.requestUpdate(i,n,t)}}throw Error("Unsupported decorator location: "+i)};function Be(t){return(e,o)=>"object"==typeof o?Le(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}function Ie(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}var De=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Ue=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Ne(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&De(e,o,s),s};let Re=[],Ve=99999,Fe=class extends He{constructor(){super(),this.width=320,this.height=490,this.headerBackgroundColor="rgba(66,134,182,0.9)",this.headerColor="rgb(255,255,255)",this.bodyBackgroundColor="rgba(255,255,255,0.7)",this.bodyColor="rgba(23, 23, 23, 0.9)",this.footerBackgroundColor="rgba(255,255,255,0.7)",this.buttonBackground="rgba(255,255,255,0.9)",this.buttonColor="rgba(66,134,182,0.9)",this.titleContent="面板",this.leftButtonText="",this.rightButtonText="",this.isDisplay=!1,this.zIndex=Ve,this.icon="magic-wand",this.leftIcon="magic-wand",this.rightIcon="magic-wand",this.left=(window.innerWidth-this.width)/2,this.top=(window.innerHeight-(this.height+80))/2,this.dragging=!1,Re.push(this),this.zIndex=++Ve}hideMovePanel(){this.isDisplay=!1,this.dispatchEvent(new CustomEvent("close",{detail:{isDisplay:this.isDisplay,message:"关闭事件"},bubbles:!0,composed:!0}))}showMovePanel(){this.isDisplay=!0,this.dispatchEvent(new CustomEvent("show",{detail:{isDisplay:this.isDisplay},bubbles:!0,composed:!0}))}toogleDisplay(){this.isDisplay?this.hideMovePanel():this.showMovePanel()}mouseDragging(t){let e=this.left,o=this.top,i=t.clientX-e,n=t.clientY-o;0==this.dragging&&(this.dragging=!0),document.onmousemove=t=>{this.dragging&&(this.left=t.clientX-i,this.top=t.clientY-n)},document.onmouseup=()=>{this.dragging&&(this.dragging=!1),document.onmousemove=null}}touchDragging(t){let e=this.left,o=this.top,i=t.touches[0].clientX-e,n=t.touches[0].clientY-o;0==this.dragging&&(this.dragging=!0),document.ontouchmove=t=>{this.dragging&&(this.left=t.touches[0].clientX-i,this.top=t.touches[0].clientY-n)},document.ontouchend=()=>{this.dragging&&(this.dragging=!1),document.onmousemove=null}}putTop(){let t=!1;if(Re.includes(this)){for(let t=0;t<Re.length;t++)Re[t].zIndex>this.zIndex&&(Re[t].zIndex=Re[t].zIndex-1);this.zIndex=Ve,t=!0}else tt.warn("MovePanel","置顶失败,窗口不在列表中"),t=!1;return t}putTopToggel(){this.zIndex!=Ve?(this.putTop(),this.showMovePanel()):this.toogleDisplay()}render(){return ge`
14
14
  <div
15
15
  class="panel"
16
16
  style="
@@ -53,28 +53,28 @@ top.window.hortimagic=window.hortimagic=function(t){"use strict";async function
53
53
  <div class="footer" style="background-color: ${this.footerBackgroundColor};width:${this.width}px;">
54
54
  <hm-button
55
55
  class="footer-button footer-button-left"
56
- icon="magic-wand"
56
+ icon="${this.leftIcon}
57
57
  width="100%"
58
- backgroundColor="${this.buttonBackgroundColor}"
58
+ background="${this.buttonBackground}"
59
59
  color="${this.buttonColor}"
60
- @click="${this._handleLeftButtonClick}"
60
+ @click="${this.handleLeftButtonClick}"
61
61
  >
62
62
  ${this.leftButtonText}
63
63
  </hm-button>
64
64
  <hm-button
65
65
  class="footer-button footer-button-right"
66
- icon="magic-wand"
66
+ icon="${this.rightIcon}"
67
67
  width="100%"
68
- backgroundColor="${this.buttonColor}"
69
- color="${this.buttonBackgroundColor}"
70
- @click="${this._handleRightButtonClick}"
68
+ background="${this.buttonColor}"
69
+ color="${this.buttonBackground}"
70
+ @click="${this.handleRightButtonClick}"
71
71
  >
72
72
  ${this.rightButtonText}
73
73
  </hm-button>
74
74
  </div>
75
75
  </div>
76
76
 
77
- `}_handleClose(){this.hideMovePanel()}_handleLeftButtonClick(){this.dispatchEvent(new CustomEvent("left-button-click",{detail:{message:"左侧按钮被点击"},bubbles:!0,composed:!0}))}_handleRightButtonClick(){this.dispatchEvent(new CustomEvent("right-button-click",{detail:{message:"右侧按钮被点击"},bubbles:!0,composed:!0}))}};var fe;ge.styles=et`
77
+ `}_handleClose(){this.hideMovePanel()}handleLeftButtonClick(){this.dispatchEvent(new CustomEvent("left-button-click",{detail:{message:"左侧按钮被点击"},bubbles:!0,composed:!0}))}handleRightButtonClick(){this.dispatchEvent(new CustomEvent("right-button-click",{detail:{message:"右侧按钮被点击"},bubbles:!0,composed:!0}))}};Fe.styles=Ht`
78
78
  .panel {
79
79
  position: absolute;
80
80
  display: block;
@@ -151,14 +151,14 @@ top.window.hortimagic=window.hortimagic=function(t){"use strict";async function
151
151
  .footer-button:active {
152
152
  transform: scale(0.98);
153
153
  }
154
- `,pe([le({type:Number})],ge.prototype,"width",2),pe([le({type:Number})],ge.prototype,"height",2),pe([le({type:String,attribute:"header-background-color"})],ge.prototype,"headerBackgroundColor",2),pe([le({type:String,attribute:"header-color"})],ge.prototype,"headerColor",2),pe([le({type:String,attribute:"body-background-color"})],ge.prototype,"bodyBackgroundColor",2),pe([le({type:String,attribute:"body-color"})],ge.prototype,"bodyColor",2),pe([le({type:String,attribute:"footer-background-color"})],ge.prototype,"footerBackgroundColor",2),pe([le({type:String,attribute:"button-background-color"})],ge.prototype,"buttonBackgroundColor",2),pe([le({type:String,attribute:"button-color"})],ge.prototype,"buttonColor",2),pe([le({type:String})],ge.prototype,"titleContent",2),pe([le({type:String,attribute:"left-button-text"})],ge.prototype,"leftButtonText",2),pe([le({type:String,attribute:"right-button-text"})],ge.prototype,"rightButtonText",2),pe([le({type:Boolean,attribute:"is-display"})],ge.prototype,"isDisplay",2),pe([le({type:Number})],ge.prototype,"zIndex",2),pe([le({type:String})],ge.prototype,"icon",2),pe([le({type:Number})],ge.prototype,"left",2),pe([le({type:Number})],ge.prototype,"top",2),pe([(fe=".body",(t,e)=>ae(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(fe)??null}}))],ge.prototype,"body",2),ge=pe([ne("hm-move-panel")],ge);const ve=Object.freeze(Object.defineProperty({__proto__:null,get HmMovePanel(){return ge},movePanelItemList:ue,get movePanelItemMaxZindex(){return me}},Symbol.toStringTag,{value:"Module"})),be=2;class ye{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}class we extends ye{constructor(t){if(super(t),this.it=Nt,t.type!==be)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Nt||null==t)return this._t=void 0,this.it=t;if(t===Dt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}we.directiveName="unsafeHTML",we.resultType=1;class _e extends we{}_e.directiveName="unsafeSVG",_e.resultType=2;const $e=(t=>(...e)=>({_$litDirective$:t,values:e}))(_e);var xe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,ke=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Se(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&xe(e,i,s),s};const Ce=new Map([["magic-wand",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.64 1.87l-.84 2.48a.41.41 0 0 0 0 .37l1.57 2.1a.4.4 0 0 1-.33.64h-2.62a.43.43 0 0 0-.33.17l-1.46 2.1a.4.4 0 0 1-.71-.11l-.78-2.5a.38.38 0 0 0-.26-.26l-2.5-.78a.4.4 0 0 1-.11-.71l2.14-1.51a.43.43 0 0 0 .17-.33V.91a.4.4 0 0 1 .6-.33l2.1 1.57a.41.41 0 0 0 .37.05l2.48-.84a.4.4 0 0 1 .51.51m-5.6 5.09L.5 13.5" stroke-width="1"/></svg>'],["close",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z"/></svg>'],["open",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 21q-.425 0-.712-.288T3 20v-6q0-.425.288-.712T4 13t.713.288T5 14v3.6L17.6 5H14q-.425 0-.712-.288T13 4t.288-.712T14 3h6q.425 0 .713.288T21 4v6q0 .425-.288.713T20 11t-.712-.288T19 10V6.4L6.4 19H10q.425 0 .713.288T11 20t-.288.713T10 21z"/></svg>'],["arrow-up",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1a2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1"/></svg>'],["arrow-down",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05a2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17"/></svg>'],["template",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><mask id="SVGZZ153dkC"><path fill="#4d4d4d" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M23 4H4v22h19zm21 30H4v9h40zm0-30H31v8h13zm0 14H31v8h13z"/></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGZZ153dkC)"/></svg>'],["js",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" d="M10.77 7.3h.002c1.045.393 2.479.93 2.479 2.45a2.5 2.5 0 0 1-.224 1.02a2.5 2.5 0 0 1-1.515 1.364a2.5 2.5 0 0 1-1.035.115a2 2 0 0 1-.214.012a2.5 2.5 0 0 1-1.673-.65a2.52 2.52 0 0 1-.838-1.859c0-.202.078-.39.22-.532a.77.77 0 0 1 1.06 0a.74.74 0 0 1 .221.53c0 .952 1.041 1 1.25 1s1.25-.048 1.25-1c0-.413-.447-.648-1.514-1.048h-.003C9.19 8.307 7.753 7.77 7.753 6.25q.005-.537.224-1.02a2.5 2.5 0 0 1 .614-.842a2.5 2.5 0 0 1 .9-.52a3.5 3.5 0 0 1 2.023 0a2.52 2.52 0 0 1 1.738 2.381c0 .201-.078.39-.22.531a.77.77 0 0 1-1.061 0a.74.74 0 0 1-.22-.53c0-.952-1.041-1-1.25-1s-1.25.048-1.25 1c0 .413.447.648 1.514 1.048zM5.751 4.5c0-.2.078-.388.22-.53a.77.77 0 0 1 1.06 0c.142.141.22.33.22.53v5a2.75 2.75 0 0 1-4.695 1.945A2.73 2.73 0 0 1 1.75 9.5V9c0-.2.078-.388.22-.53a.77.77 0 0 1 1.061 0c.142.141.22.33.22.53v.5c0 .33.134.652.366.884c.465.465 1.303.465 1.768 0c.232-.233.366-.555.366-.884z"/></svg>'],["filter",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3 4c2.01 2.59 7 9 7 9v7h4v-7s4.98-6.41 7-9z"/></svg>'],["filter-off",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3.004 1.59L3 1.586L1.586 3l4.928 4.928L10 12.818V21h4v-5.585l7 7l1.41-1.41L3 1.595zm12.266 9.446L21 3H7.234z"/></svg>'],["eye",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11v2h-1v1h-1v1h-1v1h-2v-1h-1v-1H9v-1H8v-2h2v-1h1V8h2v1h1v1h1v1z"/><path fill="currentColor" d="M22 11V9h-1V8h-1V7h-1V6h-2V5H7v1H5v1H4v1H3v1H2v2H1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2zm-4 2h-1v2h-1v1h-1v1h-2v1h-2v-1H9v-1H8v-1H7v-2H6v-2h1V9h1V8h1V7h2V6h2v1h2v1h1v1h1v2h1z"/></svg>'],["eye-off",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 13H1v-2h1V9h1V8h1V7h1V6h2V5h8v1h-1v1h-1V6h-2v1H9v1H8v1H7v2H6v2h1v1H6v1H5v1H3v-1H2z"/><path fill="currentColor" d="M8 11h1v1H8zm3-3h1v1h-1zm-2 9H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H9zm3-2h1v1h-1zm1-1h1v1h-1zm2-2h1v1h-1zm-1 1h1v1h-1z"/><path fill="currentColor" d="M23 11v2h-1v2h-1v1h-1v1h-1v1h-2v1H9v-1h1v-1h1v1h2v-1h2v-1h1v-1h1v-2h1v-2h-1v-1h1V9h1V8h2v1h1v2z"/></svg>']]);function Ae(t){return Ce.get(t)||'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.64 1.87l-.84 2.48a.41.41 0 0 0 0 .37l1.57 2.1a.4.4 0 0 1-.33.64h-2.62a.43.43 0 0 0-.33.17l-1.46 2.1a.4.4 0 0 1-.71-.11l-.78-2.5a.38.38 0 0 0-.26-.26l-2.5-.78a.4.4 0 0 1-.11-.71l2.14-1.51a.43.43 0 0 0 .17-.33V.91a.4.4 0 0 1 .6-.33l2.1 1.57a.41.41 0 0 0 .37.05l2.48-.84a.4.4 0 0 1 .51.51m-5.6 5.09L.5 13.5" stroke-width="1"/></svg>'}let Ee=class extends ie{constructor(){super(...arguments),this.icon="magic-wand",this.size="16px"}handelClick(){this.dispatchEvent(new CustomEvent("hm-icon-click"))}render(){return It`
154
+ `,Ue([Be({type:Number})],Fe.prototype,"width",2),Ue([Be({type:Number})],Fe.prototype,"height",2),Ue([Be({type:String,attribute:"header-background-color"})],Fe.prototype,"headerBackgroundColor",2),Ue([Be({type:String,attribute:"header-color"})],Fe.prototype,"headerColor",2),Ue([Be({type:String,attribute:"body-background-color"})],Fe.prototype,"bodyBackgroundColor",2),Ue([Be({type:String,attribute:"body-color"})],Fe.prototype,"bodyColor",2),Ue([Be({type:String,attribute:"footer-background-color"})],Fe.prototype,"footerBackgroundColor",2),Ue([Be({type:String,attribute:"button-background-color"})],Fe.prototype,"buttonBackground",2),Ue([Be({type:String,attribute:"button-color"})],Fe.prototype,"buttonColor",2),Ue([Be({type:String})],Fe.prototype,"titleContent",2),Ue([Be({type:String,attribute:"left-button-text"})],Fe.prototype,"leftButtonText",2),Ue([Be({type:String,attribute:"right-button-text"})],Fe.prototype,"rightButtonText",2),Ue([Be({type:Boolean,attribute:"is-display"})],Fe.prototype,"isDisplay",2),Ue([Be({type:Number})],Fe.prototype,"zIndex",2),Ue([Be({type:String})],Fe.prototype,"icon",2),Ue([Be({type:String,attribute:"left-icon"})],Fe.prototype,"leftIcon",2),Ue([Be({type:String,attribute:"right-icon"})],Fe.prototype,"rightIcon",2),Ue([Be({type:Number})],Fe.prototype,"left",2),Ue([Be({type:Number})],Fe.prototype,"top",2),Fe=Ue([Pe("hm-move-panel")],Fe);const qe=Object.freeze(Object.defineProperty({__proto__:null,get HmMovePanel(){return Fe},movePanelItemList:Re,get movePanelItemMaxZindex(){return Ve}},Symbol.toStringTag,{value:"Module"})),We=2,Ge=t=>(...e)=>({_$litDirective$:t,values:e});class Xe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}let Je=class extends Xe{constructor(t){if(super(t),this.it=fe,t.type!==We)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===fe||null==t)return this._t=void 0,this.it=t;if(t===me)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Je.directiveName="unsafeHTML",Je.resultType=1;class Ze extends Je{}Ze.directiveName="unsafeSVG",Ze.resultType=2;const Ye=Ge(Ze);var Ke=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,to=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Qe(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&Ke(e,o,s),s};const eo=new Map([["magic-wand",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.64 1.87l-.84 2.48a.41.41 0 0 0 0 .37l1.57 2.1a.4.4 0 0 1-.33.64h-2.62a.43.43 0 0 0-.33.17l-1.46 2.1a.4.4 0 0 1-.71-.11l-.78-2.5a.38.38 0 0 0-.26-.26l-2.5-.78a.4.4 0 0 1-.11-.71l2.14-1.51a.43.43 0 0 0 .17-.33V.91a.4.4 0 0 1 .6-.33l2.1 1.57a.41.41 0 0 0 .37.05l2.48-.84a.4.4 0 0 1 .51.51m-5.6 5.09L.5 13.5" stroke-width="1"/></svg>'],["close",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z"/></svg>'],["open",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 21q-.425 0-.712-.288T3 20v-6q0-.425.288-.712T4 13t.713.288T5 14v3.6L17.6 5H14q-.425 0-.712-.288T13 4t.288-.712T14 3h6q.425 0 .713.288T21 4v6q0 .425-.288.713T20 11t-.712-.288T19 10V6.4L6.4 19H10q.425 0 .713.288T11 20t-.288.713T10 21z"/></svg>'],["led-on",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M11 0v4h2V0zm7.3 2.29l-3.06 3l1.4 1.42l3.06-3zm-12.59 0L4.29 3.71l3 3l1.42-1.42zM12 6a4 4 0 0 0-4 4v6H6v2h3v5h2v-5h2v5h2v-5h3v-2h-2v-6a4 4 0 0 0-4-4M2 9v2h4V9zm16 0v2h4V9z"/></svg>'],["led-off",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6a4 4 0 0 0-4 4v6H6v2h3v5h2v-5h2v5h2v-5h3v-2h-2v-6a4 4 0 0 0-4-4"/></svg>'],["arrow-up",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1a2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1"/></svg>'],["arrow-down",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05a2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17"/></svg>'],["template",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><mask id="SVGZZ153dkC"><path fill="#4d4d4d" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M23 4H4v22h19zm21 30H4v9h40zm0-30H31v8h13zm0 14H31v8h13z"/></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGZZ153dkC)"/></svg>'],["js",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" d="M10.77 7.3h.002c1.045.393 2.479.93 2.479 2.45a2.5 2.5 0 0 1-.224 1.02a2.5 2.5 0 0 1-1.515 1.364a2.5 2.5 0 0 1-1.035.115a2 2 0 0 1-.214.012a2.5 2.5 0 0 1-1.673-.65a2.52 2.52 0 0 1-.838-1.859c0-.202.078-.39.22-.532a.77.77 0 0 1 1.06 0a.74.74 0 0 1 .221.53c0 .952 1.041 1 1.25 1s1.25-.048 1.25-1c0-.413-.447-.648-1.514-1.048h-.003C9.19 8.307 7.753 7.77 7.753 6.25q.005-.537.224-1.02a2.5 2.5 0 0 1 .614-.842a2.5 2.5 0 0 1 .9-.52a3.5 3.5 0 0 1 2.023 0a2.52 2.52 0 0 1 1.738 2.381c0 .201-.078.39-.22.531a.77.77 0 0 1-1.061 0a.74.74 0 0 1-.22-.53c0-.952-1.041-1-1.25-1s-1.25.048-1.25 1c0 .413.447.648 1.514 1.048zM5.751 4.5c0-.2.078-.388.22-.53a.77.77 0 0 1 1.06 0c.142.141.22.33.22.53v5a2.75 2.75 0 0 1-4.695 1.945A2.73 2.73 0 0 1 1.75 9.5V9c0-.2.078-.388.22-.53a.77.77 0 0 1 1.061 0c.142.141.22.33.22.53v.5c0 .33.134.652.366.884c.465.465 1.303.465 1.768 0c.232-.233.366-.555.366-.884z"/></svg>'],["filter",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3 4c2.01 2.59 7 9 7 9v7h4v-7s4.98-6.41 7-9z"/></svg>'],["filter-off",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3.004 1.59L3 1.586L1.586 3l4.928 4.928L10 12.818V21h4v-5.585l7 7l1.41-1.41L3 1.595zm12.266 9.446L21 3H7.234z"/></svg>'],["eye",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11v2h-1v1h-1v1h-1v1h-2v-1h-1v-1H9v-1H8v-2h2v-1h1V8h2v1h1v1h1v1z"/><path fill="currentColor" d="M22 11V9h-1V8h-1V7h-1V6h-2V5H7v1H5v1H4v1H3v1H2v2H1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2zm-4 2h-1v2h-1v1h-1v1h-2v1h-2v-1H9v-1H8v-1H7v-2H6v-2h1V9h1V8h1V7h2V6h2v1h2v1h1v1h1v2h1z"/></svg>'],["eye-off",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 13H1v-2h1V9h1V8h1V7h1V6h2V5h8v1h-1v1h-1V6h-2v1H9v1H8v1H7v2H6v2h1v1H6v1H5v1H3v-1H2z"/><path fill="currentColor" d="M8 11h1v1H8zm3-3h1v1h-1zm-2 9H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H9zm3-2h1v1h-1zm1-1h1v1h-1zm2-2h1v1h-1zm-1 1h1v1h-1z"/><path fill="currentColor" d="M23 11v2h-1v2h-1v1h-1v1h-1v1h-2v1H9v-1h1v-1h1v1h2v-1h2v-1h1v-1h1v-2h1v-2h-1v-1h1V9h1V8h2v1h1v2z"/></svg>'],["config",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="4"><path d="m24 4l-6 6h-8v8l-6 6l6 6v8h8l6 6l6-6h8v-8l6-6l-6-6v-8h-8z"/><path d="M24 30a6 6 0 1 0 0-12a6 6 0 0 0 0 12Z"/></g></svg>'],["log",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.5 2.5v11h9v-11zM3 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm5 10a.75.75 0 0 1 .75-.75h1.75a.75.75 0 0 1 0 1.5H8.75A.75.75 0 0 1 8 11m-2 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2m2-4a.75.75 0 0 1 .75-.75h1.75a.75.75 0 0 1 0 1.5H8.75A.75.75 0 0 1 8 8M6 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2m2-4a.75.75 0 0 1 .75-.75h1.75a.75.75 0 0 1 0 1.5H8.75A.75.75 0 0 1 8 5M6 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2" clip-rule="evenodd"/></svg>'],["edit",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="44" stroke-dashoffset="44" d="M7 17v-4l10 -10l4 4l-10 10h-4"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.3s" dur="0.5s" to="0"/><animate fill="freeze" attributeName="fill-opacity" begin="1s" dur="0.15s" to="0.3"/></path><g fill="none"><path stroke-dasharray="20" d="M3 21h18"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="20;0"/></path><path stroke-dasharray="8" stroke-dashoffset="8" d="M14 6l4 4"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.8s" dur="0.2s" to="0"/></path></g></g></svg>'],["run",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" d="M4.506 3.503L12.501 8l-8 4.5zm-.004-1.505C3.718 1.998 3 2.626 3 3.5v9c0 .874.718 1.502 1.502 1.502c.245 0 .496-.061.733-.195l8-4.5c1.019-.573 1.019-2.041 0-2.615l-8-4.499a1.5 1.5 0 0 0-.733-.195"/></svg>'],["delete",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M7 4a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a1 1 0 1 1 0 2h-1.069l-.867 12.142A2 2 0 0 1 17.069 22H6.93a2 2 0 0 1-1.995-1.858L4.07 8H3a1 1 0 0 1 0-2h4zm2 2h6V4H9zM6.074 8l.857 12H17.07l.857-12zM10 10a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1"/></svg>'],["video",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 15.75v-7.5a2 2 0 0 1 2-2h8.5a2 2 0 0 1 2 2v7.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2m17.168-8.759l-4 3.563a.5.5 0 0 0-.168.373v1.778a.5.5 0 0 0 .168.373l4 3.563a.5.5 0 0 0 .832-.374V7.365a.5.5 0 0 0-.832-.374"/></svg>'],["play-video",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M85.527 80.647a4.97 4.97 0 0 0 4.973-4.974V24.327a4.97 4.97 0 0 0-4.973-4.974H14.474A4.97 4.97 0 0 0 9.5 24.327v51.346a4.97 4.97 0 0 0 4.974 4.974zm-4.974-9.948H19.446V29.301h61.107z"/><path fill="currentColor" d="m64.819 50.288l-11.98 6.913l-11.974 6.917V36.462l11.974 6.918z"/></svg>'],["game",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.96 13.33h32.08a3.455 3.455 0 0 1 3.46 3.448v14.429a3.455 3.455 0 0 1-3.446 3.464H7.96A3.455 3.455 0 0 1 4.5 31.22V16.793a3.455 3.455 0 0 1 3.446-3.464z" stroke-width="1"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.25 16.938v5.401H8.11v3.385h5.14v5.338h3.577v-5.338h5.334V22.34h-5.334v-5.4zm19.513 9.68a2.58 2.58 0 0 1-2.582 2.583h0a2.58 2.58 0 0 1-2.58-2.583a2.582 2.582 0 1 1 5.162-.001zm7.076-5.235a2.58 2.58 0 0 1-2.58 2.584h0a2.58 2.58 0 0 1-2.583-2.583v0A2.58 2.58 0 0 1 37.26 18.8h0a2.58 2.58 0 0 1 2.581 2.583" stroke-width="1"/></svg>'],["save",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M64 48c-8.726 0-16 7.274-16 16v384c0 8.726 7.274 16 16 16h215v-16H64V64h63.375v97.53c0 3.924 3.443 7.095 7.72 7.095h169.81c4.277 0 7.72-3.17 7.72-7.094V64h69.22c.428.318.8.548 1.467 1.094c2.05 1.675 4.962 4.264 8.375 7.406c6.827 6.283 15.65 14.837 24.313 23.5s17.217 17.486 23.5 24.313c3.142 3.413 5.73 6.324 7.406 8.374c.546.668.776 1.04 1.094 1.47V330.25l16 16V128c0-2.68-.657-3.402-1.03-4.156a15 15 0 0 0-1.095-1.844c-.74-1.1-1.575-2.19-2.594-3.438c-2.036-2.492-4.768-5.55-8.03-9.093c-6.524-7.09-15.155-16-23.938-24.782s-17.692-17.414-24.78-23.938c-3.545-3.262-6.6-5.994-9.094-8.03c-1.247-1.02-2.337-1.855-3.438-2.595c-.55-.37-1.09-.72-1.844-1.094c-.754-.373-1.477-1.03-4.156-1.03zm87.72 16h48.56c4.277 0 7.72 4.425 7.72 9.938v70.124c0 5.513-3.443 9.938-7.72 9.938h-48.56c-4.277 0-7.72-4.425-7.72-9.938V73.938c0-5.512 3.443-9.937 7.72-9.937zM114 212c-4.432 0-8 3.568-8 8v184c0 4.432 3.568 8 8 8h165v-28h-76.72l15.345-15.375l128-128L352 234.28l6.375 6.345L406 288.25V220c0-4.432-3.568-8-8-8zm238 47.75L245.75 366H297v128h110V366h51.25zM448 384v64h-23v16h23c8.726 0 16-7.274 16-16v-64z"/></svg>'],["load",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M64 48c-8.726 0-16 7.274-16 16v384c0 8.726 7.274 16 16 16h236.25l-16-16H64V64h63.375v97.53c0 3.924 3.443 7.095 7.72 7.095h169.81c4.277 0 7.72-3.17 7.72-7.094V64h69.22c.428.318.8.548 1.467 1.094c2.05 1.675 4.962 4.264 8.375 7.406c6.827 6.283 15.65 14.837 24.313 23.5s17.217 17.486 23.5 24.313c3.142 3.413 5.73 6.324 7.406 8.374c.546.668.776 1.04 1.094 1.47V366h16V128c0-2.68-.657-3.402-1.03-4.156a15 15 0 0 0-1.095-1.844c-.74-1.1-1.575-2.19-2.594-3.438c-2.036-2.492-4.768-5.55-8.03-9.093c-6.524-7.09-15.155-16-23.938-24.782s-17.692-17.414-24.78-23.938c-3.545-3.262-6.6-5.994-9.094-8.03c-1.247-1.02-2.337-1.855-3.438-2.595c-.55-.37-1.09-.72-1.844-1.094c-.754-.373-1.477-1.03-4.156-1.03zm87.72 16h48.56c4.277 0 7.72 4.425 7.72 9.938v70.124c0 5.513-3.443 9.938-7.72 9.938h-48.56c-4.277 0-7.72-4.425-7.72-9.938V73.938c0-5.512 3.443-9.937 7.72-9.937zM114 212c-4.432 0-8 3.568-8 8v184c0 4.432 3.568 8 8 8h134.25l-30.625-30.625L202.28 366H279V238h127v-18c0-4.432-3.568-8-8-8zm183 44v128h-51.25L352 490.25L458.25 384H407V256zm167 147.75l-16 16V448h-28.25l-16 16H448c8.726 0 16-7.274 16-16z"/></svg>'],["refresh",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"/></svg>'],["post-add",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h9v2H5v14h14v-9h2v9q0 .825-.587 1.413T19 21zm3-4v-2h8v2zm0-3v-2h8v2zm0-3V9h8v2zm9-2V7h-2V5h2V3h2v2h2v2h-2v2z"/></svg>']]);function oo(t){return eo.get(t)||'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.64 1.87l-.84 2.48a.41.41 0 0 0 0 .37l1.57 2.1a.4.4 0 0 1-.33.64h-2.62a.43.43 0 0 0-.33.17l-1.46 2.1a.4.4 0 0 1-.71-.11l-.78-2.5a.38.38 0 0 0-.26-.26l-2.5-.78a.4.4 0 0 1-.11-.71l2.14-1.51a.43.43 0 0 0 .17-.33V.91a.4.4 0 0 1 .6-.33l2.1 1.57a.41.41 0 0 0 .37.05l2.48-.84a.4.4 0 0 1 .51.51m-5.6 5.09L.5 13.5" stroke-width="1"/></svg>'}let io=class extends He{constructor(){super(...arguments),this.icon="magic-wand",this.size="16px"}handelClick(){this.dispatchEvent(new CustomEvent("hm-icon-click"))}render(){return ge`
155
155
  <div class="icon"
156
156
  style="width:${this.size}; height:${this.size};"
157
157
  @click="${this.handelClick}"
158
158
  >
159
- ${$e(Ae(this.icon))}
159
+ ${Ye(oo(this.icon))}
160
160
  </div>
161
- `}};Ee.styles=et`
161
+ `}};io.styles=Ht`
162
162
  :host {
163
163
  display: inline-block;
164
164
  }
@@ -174,7 +174,7 @@ style="width:${this.size}; height:${this.size};"
174
174
  width: 100%;
175
175
  height: 100%;
176
176
  }
177
- `,ke([le({type:String})],Ee.prototype,"icon",2),ke([le({type:String})],Ee.prototype,"size",2),Ee=ke([ne("hm-icon")],Ee);const Oe=Object.freeze(Object.defineProperty({__proto__:null,get HmIcon(){return Ee},getIcon:Ae,registerIcon:function(t,e){Ce.set(t,e)}},Symbol.toStringTag,{value:"Module"}));var Te=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Me=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Pe(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&Te(e,i,s),s};let He=class extends ie{constructor(){super(...arguments),this.icon="magic-wand",this.content="HortiMagic",this.flag=!1,this.isMenuItem=!1}handleClick(){this.isMenuItem||(this.flag=!this.flag),this.dispatchEvent(new CustomEvent("hm-menu-click"))}render(){return It`
177
+ `,to([Be({type:String})],io.prototype,"icon",2),to([Be({type:String})],io.prototype,"size",2),io=to([Pe("hm-icon")],io);const no=Object.freeze(Object.defineProperty({__proto__:null,get HmIcon(){return io},getIcon:oo,iconMap:eo,registerIcon:function(t,e){eo.set(t,e)}},Symbol.toStringTag,{value:"Module"}));var so=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,lo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?ro(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&so(e,o,s),s};let ao=class extends He{constructor(){super(...arguments),this.icon="magic-wand",this.content="HortiMagicMenu",this.flag=!1,this.isMenuItem=!1}handleClick(){this.isMenuItem||(this.flag=!this.flag),this.dispatchEvent(new CustomEvent("hm-menu-click"))}render(){return ge`
178
178
  <div
179
179
  class="menu ${this.isMenuItem?"is-menu-item":"not-menu-item"}"
180
180
  style="display:${this.isMenuItem&&!this.flag?"none":"flex"}"
@@ -186,7 +186,7 @@ style="width:${this.size}; height:${this.size};"
186
186
  </div>
187
187
  <div class="right">
188
188
  <slot name="right">
189
- ${this.isMenuItem?"":It`<hm-icon
189
+ ${this.isMenuItem?"":ge`<hm-icon
190
190
  class="icon right"
191
191
  icon="${this.flag?"arrow-up":"arrow-down"}"
192
192
  ></hm-icon
@@ -198,7 +198,7 @@ style="width:${this.size}; height:${this.size};"
198
198
 
199
199
 
200
200
 
201
- `}};He.styles=et`
201
+ `}};ao.styles=Ht`
202
202
  :host {
203
203
  color: rgb(33,33,33);
204
204
  height: 56px;
@@ -239,14 +239,14 @@ style="width:${this.size}; height:${this.size};"
239
239
  .not-menu-item {
240
240
  background:rgb(255,255,255);
241
241
  }
242
- `,Me([le({type:String})],He.prototype,"icon",2),Me([le({type:String})],He.prototype,"content",2),Me([le({type:Boolean})],He.prototype,"flag",2),Me([le({type:Boolean})],He.prototype,"isMenuItem",2),He=Me([ne("hm-menu")],He);const je=Object.freeze(Object.defineProperty({__proto__:null,get HmMenu(){return He}},Symbol.toStringTag,{value:"Module"}));var ze=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ie=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Be(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&ze(e,i,s),s};let De=class extends ie{constructor(){super(...arguments),this.leftIcon="magic-wand",this.title="HortiMagic",this.content="Hello iirose!",this.rightIcon="",this.displayTime=999999,this.color="rgb(33,33,33)",this.backgroundColor="rgba(255,255,255,0.9)"}firstUpdated(){this.displayTime>0&&setTimeout(()=>{this.startLeaveAnimation()},this.displayTime)}startLeaveAnimation(){this.setAttribute("leaving",""),setTimeout(()=>{this.remove()},300)}render(){return It`
242
+ `,lo([Be({type:String})],ao.prototype,"icon",2),lo([Be({type:String})],ao.prototype,"content",2),lo([Be({type:Boolean})],ao.prototype,"flag",2),lo([Be({type:Boolean})],ao.prototype,"isMenuItem",2),ao=lo([Pe("hm-menu")],ao);const co=Object.freeze(Object.defineProperty({__proto__:null,get HmMenu(){return ao}},Symbol.toStringTag,{value:"Module"}));var ho=Object.defineProperty,po=Object.getOwnPropertyDescriptor,uo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?po(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&ho(e,o,s),s};let go=class extends He{constructor(){super(...arguments),this.leftIcon="magic-wand",this.title="HortiMagic",this.content="Hello iirose!",this.rightIcon="",this.displayTime=999999,this.color="rgb(33,33,33)",this.backgroundColor="rgba(255,255,255,0.9)"}firstUpdated(){this.displayTime>0&&setTimeout(()=>{this.startLeaveAnimation()},this.displayTime)}startLeaveAnimation(){this.setAttribute("leaving",""),setTimeout(()=>{this.remove()},300)}render(){return ge`
243
243
  <div
244
244
  class="hm-notification"
245
245
  style="${this.color?`border-color: ${this.color};`:""}
246
246
  ${this.color?`color: ${this.color};`:""}
247
247
  ${this.backgroundColor?`background-color: ${this.backgroundColor};`:""}"
248
248
  >
249
- ${this.leftIcon?It`
249
+ ${this.leftIcon?ge`
250
250
  <div class="icondiv">
251
251
  <hm-icon icon="${this.leftIcon}" size="24px"></hm-icon>
252
252
  </div>
@@ -256,13 +256,13 @@ style="width:${this.size}; height:${this.size};"
256
256
  <div class="hm-notification-title">${this.title}</div>
257
257
  <div class="hm-notification-content">${this.content}</div>
258
258
  </div>
259
- ${this.rightIcon?It`
259
+ ${this.rightIcon?ge`
260
260
  <div class="icondiv">
261
261
  <hm-icon icon="${this.rightIcon}" size="24px"></hm-icon>
262
262
  </div>
263
263
  `:""}
264
264
  </div>
265
- `}};De.styles=et`
265
+ `}};go.styles=Ht`
266
266
  :host{
267
267
  display: block;
268
268
  width: auto;
@@ -325,16 +325,16 @@ style="width:${this.size}; height:${this.size};"
325
325
  width: 44px;
326
326
  height: 44px;
327
327
  }
328
- `,Ie([le()],De.prototype,"leftIcon",2),Ie([le()],De.prototype,"title",2),Ie([le()],De.prototype,"content",2),Ie([le()],De.prototype,"rightIcon",2),Ie([le()],De.prototype,"displayTime",2),Ie([le()],De.prototype,"color",2),Ie([le()],De.prototype,"backgroundColor",2),De=Ie([ne("hm-notification")],De);const Ne=Object.freeze(Object.defineProperty({__proto__:null,get HmNotification(){return De}},Symbol.toStringTag,{value:"Module"}));var Ue=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Re=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Le(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&Ue(e,i,s),s};let qe=class extends ie{constructor(){super(...arguments),this.icon="",this.content="",this.fontSize="14px",this.color="",this.background="",this.width="",this.height="",this.enable=!0,this.loading=!1}render(){const t=`\n ${this.color?`color: ${this.color};`:""}\n ${this.background?`background-color: ${this.background};`:""}\n ${this.width?`width: ${this.width};`:""}\n ${this.height?`height: ${this.height};`:""}\n ${this.fontSize?`font-size: ${this.fontSize};`:"14px"}\n `;return It`
328
+ `,uo([Be()],go.prototype,"leftIcon",2),uo([Be()],go.prototype,"title",2),uo([Be()],go.prototype,"content",2),uo([Be()],go.prototype,"rightIcon",2),uo([Be()],go.prototype,"displayTime",2),uo([Be()],go.prototype,"color",2),uo([Be()],go.prototype,"backgroundColor",2),go=uo([Pe("hm-notification")],go);const mo=Object.freeze(Object.defineProperty({__proto__:null,get HmNotification(){return go}},Symbol.toStringTag,{value:"Module"}));var fo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,bo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?vo(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&fo(e,o,s),s};let yo=class extends He{constructor(){super(...arguments),this.icon="",this.content="",this.fontSize="14px",this.color="",this.background="",this.width="",this.height="",this.enable=!0,this.loading=!1}render(){const t=`\n ${this.color?`color: ${this.color};`:""}\n ${this.background?`background: ${this.background};`:""}\n ${this.width?`width: ${this.width};`:""}\n ${this.height?`height: ${this.height};`:""}\n ${this.fontSize?`font-size: ${this.fontSize};`:"14px"}\n `;return ge`
329
329
  <button
330
330
  class="button"
331
331
  style="${t}"
332
332
  ?disabled="${!this.enable||this.loading}"
333
333
  @click="${this._handleClick}">
334
334
 
335
- ${this.loading?It`
335
+ ${this.loading?ge`
336
336
  <div class="loading-spinner"></div>
337
- `:this.icon?It`
337
+ `:this.icon?ge`
338
338
  <slot name="icon">
339
339
  <hm-icon icon="${this.icon}" style="margin-right: 8px;"></hm-icon>
340
340
  </slot>
@@ -344,12 +344,13 @@ style="width:${this.size}; height:${this.size};"
344
344
  <slot>${this.content}</slot>
345
345
  </span>
346
346
  </button>
347
- `}_handleClick(t){this.enable&&!this.loading?this.dispatchEvent(new CustomEvent("hm-button-click")):t.stopPropagation()}};qe.styles=et`
347
+ `}_handleClick(t){this.enable&&!this.loading?this.dispatchEvent(new CustomEvent("hm-button-click")):t.stopPropagation()}};yo.styles=Ht`
348
348
  :host {
349
349
  display: inline-block;
350
350
  }
351
351
 
352
352
  .button {
353
+ width: 100%;
353
354
  display: inline-flex;
354
355
  align-items: center;
355
356
  justify-content: center;
@@ -398,7 +399,7 @@ style="width:${this.size}; height:${this.size};"
398
399
  display: flex;
399
400
  align-items: center;
400
401
  }
401
- `,Re([le({type:String})],qe.prototype,"icon",2),Re([le({type:String})],qe.prototype,"content",2),Re([le({type:String})],qe.prototype,"fontSize",2),Re([le({type:String})],qe.prototype,"color",2),Re([le({type:String})],qe.prototype,"background",2),Re([le({type:String})],qe.prototype,"width",2),Re([le({type:String})],qe.prototype,"height",2),Re([le({type:Boolean})],qe.prototype,"enable",2),Re([le({type:Boolean})],qe.prototype,"loading",2),qe=Re([ne("hm-button")],qe);const Ve=Object.freeze(Object.defineProperty({__proto__:null,get HmButton(){return qe}},Symbol.toStringTag,{value:"Module"}));var We=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Fe=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Xe(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&We(e,i,s),s};let Je=class extends ie{constructor(){super(...arguments),this.titleName="单元格",this.descripthion="描述信息",this.content="内容",this.titleClickCallback=()=>{},this.contentClickCallback=()=>{}}render(){return It`
402
+ `,bo([Be({type:String})],yo.prototype,"icon",2),bo([Be({type:String})],yo.prototype,"content",2),bo([Be({type:String})],yo.prototype,"fontSize",2),bo([Be({type:String})],yo.prototype,"color",2),bo([Be({type:String})],yo.prototype,"background",2),bo([Be({type:String})],yo.prototype,"width",2),bo([Be({type:String})],yo.prototype,"height",2),bo([Be({type:Boolean})],yo.prototype,"enable",2),bo([Be({type:Boolean})],yo.prototype,"loading",2),yo=bo([Pe("hm-button")],yo);const wo=Object.freeze(Object.defineProperty({__proto__:null,get HmButton(){return yo}},Symbol.toStringTag,{value:"Module"}));var xo=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,_o=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?$o(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&xo(e,o,s),s};let So=class extends He{constructor(){super(...arguments),this.titleName="单元格",this.descripthion="描述信息",this.content="内容",this.titleClickCallback=()=>{},this.contentClickCallback=()=>{}}render(){return ge`
402
403
  <div class="cell" part="cell">
403
404
  <div
404
405
  class="left-section"
@@ -417,13 +418,11 @@ style="width:${this.size}; height:${this.size};"
417
418
  part="right-section"
418
419
  @click="${this.contentClickCallback}"
419
420
  >
420
- <div class="content" part="content">
421
- <slot name="content">${this.content}</slot>
422
- </div>
421
+ <div class="content" part="content"><slot>${this.content}</slot></div>
423
422
  </div>
424
423
  </div>
425
424
 
426
- `}};Je.styles=et`
425
+ `}};So.styles=Ht`
427
426
  :host {
428
427
  display: block;
429
428
  width: 100%;
@@ -458,7 +457,7 @@ style="width:${this.size}; height:${this.size};"
458
457
  }
459
458
 
460
459
  .description {
461
- font-size: var(--hm-cell-description-font-size, 14px);
460
+ font-size: var(--hm-cell-description-font-size, 12px);
462
461
  color: var(--hm-cell-description-color, #666666);
463
462
  line-height: 1.4;
464
463
  }
@@ -509,15 +508,88 @@ style="width:${this.size}; height:${this.size};"
509
508
  /* 可选:添加文字阴影增强视觉效果 */
510
509
  text-shadow: var(--hm-cell-hover-text-shadow, 0 0 5px rgba(24, 144, 255, 0.2));
511
510
  }
512
- `,Fe([le()],Je.prototype,"titleName",2),Fe([le()],Je.prototype,"descripthion",2),Fe([le()],Je.prototype,"content",2),Fe([le()],Je.prototype,"titleClickCallback",2),Fe([le()],Je.prototype,"contentClickCallback",2),Je=Fe([ne("hm-cell")],Je);const Ge=Object.freeze(Object.defineProperty({__proto__:null,get HmCell(){return Je}},Symbol.toStringTag,{value:"Module"}));var Ze=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Ke=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?Ye(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&Ze(e,i,s),s};let Qe=class extends ie{constructor(){super(...arguments),this._isDragging=!1,this._startX=0,this._currentTranslate=0,this._prevTranslate=0,this._animationId=0,this._velocity=0,this._lastX=0,this._lastTime=0,this._isOpen=!1,this.rightButtonName="右侧按钮",this.rightButtonCallback=function(){},this.leftActionsWidth=0,this.rightActionsWidth=0,this.onDragStart=t=>{t.preventDefault(),this.startDrag(t.clientX),this.sliderElement.style.cursor="grabbing",this.sliderElement.style.transition="none"},this.onTouchStart=t=>{t.preventDefault(),this.startDrag(t.touches[0].clientX),this.sliderElement.style.transition="none"},this.startDrag=t=>{this._isDragging=!0,this._startX=t,this._lastX=t,this._lastTime=Date.now(),this._isOpen=Math.abs(this._prevTranslate)>10,this.calculateActionWidths()},this.onDragMove=t=>{this._isDragging&&(t.preventDefault(),this.handleMove(t.clientX))},this.onTouchMove=t=>{this._isDragging&&(t.preventDefault(),this.handleMove(t.touches[0].clientX))},this.onDragEnd=()=>{this.finishDrag(),this.sliderElement.style.cursor="grab"},this.onTouchEnd=()=>{this.finishDrag()}}firstUpdated(){this.calculateActionWidths(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}calculateActionWidths(){this.leftActionsWidth=this.leftActions?this.leftActions.offsetWidth:0,this.rightActionsWidth=this.rightActions?this.rightActions.offsetWidth:0}addEventListeners(){this.sliderElement.addEventListener("mousedown",this.onDragStart),this.sliderElement.addEventListener("touchstart",this.onTouchStart,{passive:!1}),document.addEventListener("mousemove",this.onDragMove),document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onTouchEnd)}removeEventListeners(){this.sliderElement.removeEventListener("mousedown",this.onDragStart),this.sliderElement.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onTouchEnd)}handleMove(t){const e=Date.now(),i=e-this._lastTime;i>0&&(this._velocity=(t-this._lastX)/i,this._lastX=t,this._lastTime=e);const o=t-this._startX;let n=this._prevTranslate+o;if(n>this.leftActionsWidth){const t=n-this.leftActionsWidth;n=this.leftActionsWidth+this.easeOut(t,30)}else if(n<-this.rightActionsWidth){const t=n+this.rightActionsWidth;n=-this.rightActionsWidth+this.easeOut(t,30)}this._currentTranslate=n,this.updateSliderPosition()}easeOut(t,e){return.2*t}finishDrag(){this._isDragging=!1,this.sliderElement.style.transition="transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)";let t=0;if(t=this._currentTranslate>5||this._currentTranslate>0&&this._velocity>.1?this.leftActionsWidth:this._currentTranslate<-5||this._currentTranslate<0&&this._velocity<-.1?-this.rightActionsWidth:0,this._isOpen){const e=5;t=this._prevTranslate>0&&this._currentTranslate<this._prevTranslate-e||this._prevTranslate<0&&this._currentTranslate>this._prevTranslate+e?0:this._prevTranslate}this._currentTranslate=t,this._prevTranslate=t,this.updateSliderPosition(),this._velocity=0}updateSliderPosition(){this._animationId&&cancelAnimationFrame(this._animationId),this._animationId=requestAnimationFrame(()=>{if(this.sliderElement.style.transform=`translateX(${this._currentTranslate}px)`,this._currentTranslate>0){const t=Math.min(this._currentTranslate/this.leftActionsWidth,1);this.leftActions.style.transform=`translateX(${100*t-100}%)`,this.rightActions.style.transform="translateX(100%)"}else if(this._currentTranslate<0){const t=Math.min(-this._currentTranslate/this.rightActionsWidth,1);this.rightActions.style.transform=`translateX(${100-100*t}%)`,this.leftActions.style.transform="translateX(-100%)"}else this.leftActions.style.transform="translateX(-100%)",this.rightActions.style.transform="translateX(100%)"})}render(){return It`
511
+ `,_o([Be({attribute:"title-name"})],So.prototype,"titleName",2),_o([Be()],So.prototype,"descripthion",2),_o([Be()],So.prototype,"content",2),_o([Be()],So.prototype,"titleClickCallback",2),_o([Be()],So.prototype,"contentClickCallback",2),So=_o([Pe("hm-cell")],So);const ko=Object.freeze(Object.defineProperty({__proto__:null,get HmCell(){return So}},Symbol.toStringTag,{value:"Module"})),Ao=(t,e)=>{const o=t._$AN;if(void 0===o)return!1;for(const i of o)i._$AO?.(e,!1),Ao(i,e);return!0},Co=t=>{let e,o;do{if(void 0===(e=t._$AM))break;o=e._$AN,o.delete(t),t=e}while(0===o?.size)},Oo=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(void 0===o)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),zo(e)}};function Eo(t){void 0!==this._$AN?(Co(this),this._$AM=t,Oo(this)):this._$AM=t}function Mo(t,e=!1,o=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let s=o;s<i.length;s++)Ao(i[s],!1),Co(i[s]);else null!=i&&(Ao(i,!1),Co(i));else Ao(this,t)}const zo=t=>{t.type==We&&(t._$AP??=Mo,t._$AQ??=Eo)};class Ho extends Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),Oo(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Ao(this,t),Co(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class To{}const Po=new WeakMap,jo=Ge(class extends Ho{render(t){return fe}update(t,[e]){const o=e!==this.G;return o&&void 0!==this.G&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),fe}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let o=Po.get(e);void 0===o&&(o=new WeakMap,Po.set(e,o)),void 0!==o.get(this.G)&&this.G.call(this.ht,void 0),o.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?Po.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Lo=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Io=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Bo(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&Lo(e,o,s),s};let Do=class extends He{constructor(){super(),this.index=0,this.value=0,this.labelList=[["0",0]],this.disabled=!1,this.selectRef=new To}connectedCallback(){super.connectedCallback(),this.index=this.index<this.labelList.length?this.index:0,this.index<this.labelList.length&&(this.value=this.labelList[this.index][1])}render(){return ge`
512
+ <div class="select-wrapper">
513
+ <select
514
+ ${jo(this.selectRef)}
515
+ ?disabled="${this.disabled}"
516
+ @change="${this._handleChange}"
517
+ >
518
+ ${this.labelList.map(([t,e],o)=>ge`
519
+ <option
520
+ value="${e}"
521
+ ?selected="${o===this.index}"
522
+ >
523
+ ${t}
524
+ </option>
525
+ `)}
526
+ </select>
527
+ <span class="select-icon"></span>
528
+ </div>
529
+ `}_handleChange(t){const e=t.target,o=e.selectedIndex,i=e.options[o];this.index=o,o<this.labelList.length?this.value=this.labelList[o][1]:this.value=i.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:i.value,label:i.text,index:o},bubbles:!0,composed:!0}))}getValue(){if(this.selectRef.value){const t=this.selectRef.value.value,e=Array.from(this.selectRef.value.options).findIndex(e=>e.value===t);return-1!==e&&e<this.labelList.length?this.labelList[e][1]:t}return this.value}setValue(t){const e=this.labelList.findIndex(e=>e[1]===t);this.selectRef.value&&(this.selectRef.value.value=String(-1!==e?this.labelList[e][1]:t)),this.value=t,-1!==e&&(this.index=e)}};Do.styles=Ht`
530
+ :host {
531
+ display: inline-block;
532
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
533
+ font-size: 14px;
534
+ }
535
+
536
+ .select-wrapper {
537
+ position: relative;
538
+ display: inline-block;
539
+ }
540
+
541
+ select {
542
+ width: 100%;
543
+ padding: 8px 12px;
544
+ border: 1px solid #ccc;
545
+ border-radius: 4px;
546
+ background-color: #fff;
547
+ font-size: inherit;
548
+ cursor: pointer;
549
+ box-sizing: border-box;
550
+ appearance: none;
551
+ padding-right: 30px;
552
+ }
553
+
554
+ select:focus {
555
+ outline: none;
556
+ border-color: #007cba;
557
+ box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
558
+ }
559
+
560
+ select:disabled {
561
+ background-color: #f5f5f5;
562
+ color: #999;
563
+ cursor: not-allowed;
564
+ }
565
+
566
+ .select-icon {
567
+ position: absolute;
568
+ right: 8px;
569
+ top: 50%;
570
+ transform: translateY(-50%);
571
+ pointer-events: none;
572
+ color: #666;
573
+ }
574
+
575
+ .select-wrapper::after {
576
+ content: '';
577
+ position: absolute;
578
+ right: 10px;
579
+ top: 50%;
580
+ transform: translateY(-50%) rotate(0deg);
581
+ border-left: 5px solid transparent;
582
+ border-right: 5px solid transparent;
583
+ border-top: 5px solid #666;
584
+ pointer-events: none;
585
+ }
586
+ `,Io([Be({type:Number,reflect:!0})],Do.prototype,"index",2),Io([Be({reflect:!0})],Do.prototype,"value",2),Io([Be({type:Array,attribute:"label-list"})],Do.prototype,"labelList",2),Io([Be({type:Boolean})],Do.prototype,"disabled",2),Do=Io([Pe("hm-select")],Do);const No=Object.freeze(Object.defineProperty({__proto__:null,get HmSelect(){return Do}},Symbol.toStringTag,{value:"Module"}));var Uo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Vo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Ro(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&Uo(e,o,s),s};let Fo=class extends He{constructor(){super(...arguments),this._isDragging=!1,this._startX=0,this._currentTranslate=0,this._prevTranslate=0,this._animationId=0,this._velocity=0,this._lastX=0,this._lastTime=0,this._isOpen=!1,this.rightButtonName="右侧按钮",this.rightButtonCallback=function(){tt.log("cell","点击了一下")},this.leftActionsWidth=0,this.rightActionsWidth=0,this.onDragStart=t=>{t.preventDefault(),this.startDrag(t.clientX),this.sliderElement.style.cursor="grabbing",this.sliderElement.style.transition="none"},this.onTouchStart=t=>{t.preventDefault(),this.startDrag(t.touches[0].clientX),this.sliderElement.style.transition="none"},this.startDrag=t=>{this._isDragging=!0,this._startX=t,this._lastX=t,this._lastTime=Date.now(),this._isOpen=Math.abs(this._prevTranslate)>10,this.calculateActionWidths()},this.onDragMove=t=>{this._isDragging&&(t.preventDefault(),this.handleMove(t.clientX))},this.onTouchMove=t=>{this._isDragging&&(t.preventDefault(),this.handleMove(t.touches[0].clientX))},this.onDragEnd=()=>{this.finishDrag(),this.sliderElement.style.cursor="grab"},this.onTouchEnd=()=>{this.finishDrag()}}firstUpdated(){this.calculateActionWidths(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}calculateActionWidths(){this.leftActionsWidth=this.leftActions?this.leftActions.offsetWidth:0,this.rightActionsWidth=this.rightActions?this.rightActions.offsetWidth:0}addEventListeners(){this.sliderElement.addEventListener("mousedown",this.onDragStart),this.sliderElement.addEventListener("touchstart",this.onTouchStart,{passive:!1}),document.addEventListener("mousemove",this.onDragMove),document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onTouchEnd)}removeEventListeners(){this.sliderElement.removeEventListener("mousedown",this.onDragStart),this.sliderElement.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onTouchEnd)}handleMove(t){const e=Date.now(),o=e-this._lastTime;o>0&&(this._velocity=(t-this._lastX)/o,this._lastX=t,this._lastTime=e);const i=t-this._startX;let n=this._prevTranslate+i;if(n>this.leftActionsWidth){const t=n-this.leftActionsWidth;n=this.leftActionsWidth+this.easeOut(t,30)}else if(n<-this.rightActionsWidth){const t=n+this.rightActionsWidth;n=-this.rightActionsWidth+this.easeOut(t,30)}this._currentTranslate=n,this.updateSliderPosition()}easeOut(t,e){return.2*t}finishDrag(){this._isDragging=!1,this.sliderElement.style.transition="transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)";let t=0;if(t=this._currentTranslate>5||this._currentTranslate>0&&this._velocity>.1?this.leftActionsWidth:this._currentTranslate<-5||this._currentTranslate<0&&this._velocity<-.1?-this.rightActionsWidth:0,this._isOpen){const e=5;t=this._prevTranslate>0&&this._currentTranslate<this._prevTranslate-e||this._prevTranslate<0&&this._currentTranslate>this._prevTranslate+e?0:this._prevTranslate}this._currentTranslate=t,this._prevTranslate=t,this.updateSliderPosition(),this._velocity=0}updateSliderPosition(){this._animationId&&cancelAnimationFrame(this._animationId),this._animationId=requestAnimationFrame(()=>{if(this.sliderElement.style.transform=`translateX(${this._currentTranslate}px)`,this._currentTranslate>0){const t=Math.min(this._currentTranslate/this.leftActionsWidth,1);this.leftActions.style.transform=`translateX(${100*t-100}%)`,this.rightActions.style.transform="translateX(100%)"}else if(this._currentTranslate<0){const t=Math.min(-this._currentTranslate/this.rightActionsWidth,1);this.rightActions.style.transform=`translateX(${100-100*t}%)`,this.leftActions.style.transform="translateX(-100%)"}else this.leftActions.style.transform="translateX(-100%)",this.rightActions.style.transform="translateX(100%)"})}render(){return ge`
513
587
  <div class="swipe-container">
514
588
  <div class="actions left-actions">
515
589
  <slot name="left-actions"> </slot>
516
590
  </div>
517
591
  <div class="slider">
518
- <slot name="content" class="content">
519
- <hm-cell></hm-cell>
520
- </slot>
592
+ <slot><hm-cell class="content"></hm-cell></slot>
521
593
  </div>
522
594
  <div class="actions right-actions">
523
595
  <slot name="right-actions">
@@ -527,7 +599,7 @@ style="width:${this.size}; height:${this.size};"
527
599
  </slot>
528
600
  </div>
529
601
  </div>
530
- `}};Qe.styles=et`
602
+ `}};Fo.styles=Ht`
531
603
  :host {
532
604
  display: block;
533
605
  overflow: hidden;
@@ -648,7 +720,7 @@ style="width:${this.size}; height:${this.size};"
648
720
  .contentslot{
649
721
  width: 100%;
650
722
  }
651
- `,Ke([le()],Qe.prototype,"_isDragging",2),Ke([le()],Qe.prototype,"_startX",2),Ke([le()],Qe.prototype,"_currentTranslate",2),Ke([le()],Qe.prototype,"_prevTranslate",2),Ke([le()],Qe.prototype,"_animationId",2),Ke([le()],Qe.prototype,"_velocity",2),Ke([le()],Qe.prototype,"_lastX",2),Ke([le()],Qe.prototype,"_lastTime",2),Ke([le()],Qe.prototype,"_isOpen",2),Ke([le()],Qe.prototype,"rightButtonName",2),Ke([le()],Qe.prototype,"rightButtonCallback",2),Ke([ce(".slider")],Qe.prototype,"sliderElement",2),Ke([ce(".content")],Qe.prototype,"contentElement",2),Ke([ce(".left-actions")],Qe.prototype,"leftActions",2),Ke([ce(".right-actions")],Qe.prototype,"rightActions",2),Qe=Ke([ne("hm-swipe-cell")],Qe);const ti=Object.freeze(Object.defineProperty({__proto__:null,get HmSwipeCell(){return Qe}},Symbol.toStringTag,{value:"Module"}));var ei=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,oi=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?ii(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&ei(e,i,s),s};let ni=class extends ie{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.loading=!1,this.color="#1890ff",this.openContent="",this.closeContent="",this.openIcon="",this.closeIcon=""}change(){this.disabled||this.loading||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("hm-switch-change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){return It`
723
+ `,Vo([Be()],Fo.prototype,"_isDragging",2),Vo([Be()],Fo.prototype,"_startX",2),Vo([Be()],Fo.prototype,"_currentTranslate",2),Vo([Be()],Fo.prototype,"_prevTranslate",2),Vo([Be()],Fo.prototype,"_animationId",2),Vo([Be()],Fo.prototype,"_velocity",2),Vo([Be()],Fo.prototype,"_lastX",2),Vo([Be()],Fo.prototype,"_lastTime",2),Vo([Be()],Fo.prototype,"_isOpen",2),Vo([Be()],Fo.prototype,"rightButtonName",2),Vo([Be()],Fo.prototype,"rightButtonCallback",2),Vo([Ie(".slider")],Fo.prototype,"sliderElement",2),Vo([Ie(".content")],Fo.prototype,"contentElement",2),Vo([Ie(".left-actions")],Fo.prototype,"leftActions",2),Vo([Ie(".right-actions")],Fo.prototype,"rightActions",2),Fo=Vo([Pe("hm-swipe-cell")],Fo);const qo=Object.freeze(Object.defineProperty({__proto__:null,get HmSwipeCell(){return Fo}},Symbol.toStringTag,{value:"Module"}));var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Xo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Go(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&Wo(e,o,s),s};let Jo=class extends He{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.loading=!1,this.color="#1890ff",this.openContent="",this.closeContent="",this.openIcon="",this.closeIcon=""}change(){this.disabled||this.loading||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("hm-switch-change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){return ge`
652
724
  <div
653
725
  class="switch ${this.disabled?"disabled":""} ${this.loading?"loading":""} ${this.checked?"checked":""}"
654
726
  @click="${this.change}"
@@ -656,10 +728,10 @@ style="width:${this.size}; height:${this.size};"
656
728
  style="--switch-color: ${this.color}"
657
729
  >
658
730
  <div class="switch-inner">
659
- ${this.checked?this.openIcon?It`<hm-icon icon="${this.openIcon}" size="14px"></hm-icon>`:this.openContent?It`<span>${this.openContent}</span>`:"":this.closeIcon?It`<hm-icon icon="${this.closeIcon}" size="14px"></hm-icon>`:this.closeContent?It`<span>${this.closeContent}</span>`:""}
731
+ ${this.checked?this.openIcon?ge`<hm-icon icon="${this.openIcon}" size="14px"></hm-icon>`:this.openContent?ge`<span>${this.openContent}</span>`:"":this.closeIcon?ge`<hm-icon icon="${this.closeIcon}" size="14px"></hm-icon>`:this.closeContent?ge`<span>${this.closeContent}</span>`:""}
660
732
  </div>
661
733
  </div>
662
- `}};ni.styles=et`
734
+ `}};Jo.styles=Ht`
663
735
  .switch {
664
736
  position: relative;
665
737
  display: inline-block;
@@ -740,21 +812,17 @@ style="width:${this.size}; height:${this.size};"
740
812
  align-items: center;
741
813
  justify-content: center;
742
814
  }
743
- `,oi([le({type:Boolean})],ni.prototype,"checked",2),oi([le({type:Boolean})],ni.prototype,"disabled",2),oi([le({type:Boolean})],ni.prototype,"loading",2),oi([le({type:String})],ni.prototype,"color",2),oi([le({type:String})],ni.prototype,"openContent",2),oi([le({type:String})],ni.prototype,"closeContent",2),oi([le({type:String})],ni.prototype,"openIcon",2),oi([le({type:String})],ni.prototype,"closeIcon",2),ni=oi([ne("hm-switch")],ni);const si=Object.freeze(Object.defineProperty({__proto__:null,get HmSwitch(){return ni}},Symbol.toStringTag,{value:"Module"}));var ri=Object.defineProperty,li=Object.getOwnPropertyDescriptor,ai=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?li(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&ri(e,i,s),s};let ci=class extends ie{constructor(){super(...arguments),this.maxHeight="500px",this.items=[],this.expanded=!1}togglePanel(){this.expanded=!this.expanded}render(){return It`
815
+ `,Xo([Be({type:Boolean})],Jo.prototype,"checked",2),Xo([Be({type:Boolean})],Jo.prototype,"disabled",2),Xo([Be({type:Boolean})],Jo.prototype,"loading",2),Xo([Be({type:String})],Jo.prototype,"color",2),Xo([Be({type:String,attribute:"open-content"})],Jo.prototype,"openContent",2),Xo([Be({type:String,attribute:"close-content"})],Jo.prototype,"closeContent",2),Xo([Be({type:String,attribute:"open-icon"})],Jo.prototype,"openIcon",2),Xo([Be({type:String,attribute:"close-icon"})],Jo.prototype,"closeIcon",2),Jo=Xo([Pe("hm-switch")],Jo);const Zo=Object.freeze(Object.defineProperty({__proto__:null,get HmSwitch(){return Jo}},Symbol.toStringTag,{value:"Module"}));var Yo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Qo=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?Ko(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&Yo(e,o,s),s};let ti=class extends He{constructor(){super(...arguments),this.maxHeight="500px",this.items=[],this.titleContent="标题内容",this.expanded=!1}togglePanel(){this.expanded=!this.expanded}render(){return ge`
744
816
  <div class="accordion-container" style="max-height: ${this.maxHeight}">
745
817
  <div class="accordion-header" @click=${this.togglePanel}>
746
- <slot name="header">面板标题</slot>
818
+ <slot name="header">${this.titleContent}</slot>
747
819
  <div class="accordion-toggle">
748
- ${this.expanded?It`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
749
- <path d="M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"/>
750
- </svg>`:It`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
751
- <path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/>
752
- </svg>`}
820
+ ${this.expanded?ge`<hm-icon icon="arrow-up"></hm-icon>`:ge`<hm-icon icon="arrow-down"></hm-icon>`}
753
821
  </div>
754
822
  </div>
755
823
 
756
824
  <div class="accordion-content" ?hidden=${!this.expanded}>
757
- ${this.items.length>0?this.items.map(t=>It`<div class="accordion-item">${t}</div>`):It`<slot></slot>`}
825
+ ${this.items.length>0?this.items.map(t=>ge`<div class="accordion-item">${t}</div>`):ge`<slot></slot>`}
758
826
  </div>
759
827
 
760
828
  <div class="accordion-footer" ?hidden=${!this.expanded}>
@@ -763,7 +831,7 @@ style="width:${this.size}; height:${this.size};"
763
831
  </slot>
764
832
  </div>
765
833
  </div>
766
- `}};ci.styles=et`
834
+ `}};ti.styles=Ht`
767
835
  :host {
768
836
  display: block;
769
837
  width: 100%;
@@ -837,10 +905,10 @@ style="width:${this.size}; height:${this.size};"
837
905
  .accordion-item:hover {
838
906
  background-color: #f8f9fa;
839
907
  }
840
- `,ai([le({type:String,attribute:"max-height"})],ci.prototype,"maxHeight",2),ai([le({type:Array})],ci.prototype,"items",2),ai([le({type:Boolean})],ci.prototype,"expanded",2),ci=ai([ne("hm-accordion")],ci);const hi=Object.freeze(Object.defineProperty({__proto__:null,get HmAccordion(){return ci}},Symbol.toStringTag,{value:"Module"}));var di=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ui=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?pi(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&di(e,i,s),s};let mi=class extends ie{constructor(){super(...arguments),this.type="text",this.icon="",this.label="输入框",this.placeholder="",this.enable=!0,this.readonly=!1,this.value=""}_handleKeyDown(t){t.stopPropagation()}_handleInput(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("hm-input-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return It`
908
+ `,Qo([Be({type:String,attribute:"max-height"})],ti.prototype,"maxHeight",2),Qo([Be({type:Array})],ti.prototype,"items",2),Qo([Be({type:String,attribute:"title-content"})],ti.prototype,"titleContent",2),Qo([Be({type:Boolean})],ti.prototype,"expanded",2),ti=Qo([Pe("hm-accordion")],ti);const ei=Object.freeze(Object.defineProperty({__proto__:null,get HmAccordion(){return ti}},Symbol.toStringTag,{value:"Module"}));var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ni=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?ii(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&oi(e,o,s),s};let si=class extends He{constructor(){super(...arguments),this.type="text",this.icon="",this.label="输入框",this.placeholder="",this.enable=!0,this.readonly=!1,this.value=""}_handleKeyDown(t){t.stopPropagation()}_handleInput(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("hm-input-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return ge`
841
909
  <div class="input-container">
842
910
  <span class="label">${this.label}</span>
843
- ${this.icon?It`<hm-icon icon="${this.icon}" class="icon"></hm-icon>`:""}
911
+ ${this.icon?ge`<hm-icon icon="${this.icon}" class="icon"></hm-icon>`:""}
844
912
  <input
845
913
  type="${this.type}"
846
914
  value="${this.value}"
@@ -854,7 +922,7 @@ style="width:${this.size}; height:${this.size};"
854
922
  <slot name="right">
855
923
  </slot>
856
924
  </div>
857
- `}};mi.styles=et`
925
+ `}};si.styles=Ht`
858
926
  :host {
859
927
  display: block;
860
928
  }
@@ -889,7 +957,7 @@ style="width:${this.size}; height:${this.size};"
889
957
  width: 16px;
890
958
  height: 16px;
891
959
  }
892
- `,ui([le({type:String})],mi.prototype,"type",2),ui([le({type:String})],mi.prototype,"icon",2),ui([le({type:String})],mi.prototype,"label",2),ui([le({type:String})],mi.prototype,"placeholder",2),ui([le({type:Boolean})],mi.prototype,"enable",2),ui([le({type:Boolean})],mi.prototype,"readonly",2),ui([le()],mi.prototype,"value",2),mi=ui([ne("hm-input")],mi);const gi=Object.freeze(Object.defineProperty({__proto__:null,get HmInput(){return mi}},Symbol.toStringTag,{value:"Module"}));var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,bi=(t,e,i,o)=>{for(var n,s=o>1?void 0:o?vi(e,i):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(o?n(e,i,s):n(s))||s);return o&&s&&fi(e,i,s),s};let yi=class extends ie{constructor(){super(...arguments),this.isOpen=!1,this.dialog=this}open(){this.isOpen=!0,this.dispatchEvent(new CustomEvent("hm-dialog-open"))}close(){this.isOpen=!1,this.dispatchEvent(new CustomEvent("hm-dialog-close"))}confirm(){this.close(),this.dispatchEvent(new CustomEvent("hm-dialog-confirm"))}cancel(){this.close(),this.dispatchEvent(new CustomEvent("hm-dialog-cancel"))}updated(t){t.has("isOpen")&&(this.isOpen?this.style.display="block":this.style.display="none")}render(){return It`
960
+ `,ni([Be({type:String})],si.prototype,"type",2),ni([Be({type:String})],si.prototype,"icon",2),ni([Be({type:String})],si.prototype,"label",2),ni([Be({type:String})],si.prototype,"placeholder",2),ni([Be({type:Boolean})],si.prototype,"enable",2),ni([Be({type:Boolean})],si.prototype,"readonly",2),ni([Be()],si.prototype,"value",2),si=ni([Pe("hm-input")],si);const ri=Object.freeze(Object.defineProperty({__proto__:null,get HmInput(){return si}},Symbol.toStringTag,{value:"Module"}));var li=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,ci=(t,e,o,i)=>{for(var n,s=i>1?void 0:i?ai(e,o):e,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(i?n(e,o,s):n(s))||s);return i&&s&&li(e,o,s),s};let hi=class extends He{constructor(){super(...arguments),this.isOpen=!1,this.dialog=this}open(){this.isOpen=!0,this.dispatchEvent(new CustomEvent("hm-dialog-open"))}close(){this.isOpen=!1,this.dispatchEvent(new CustomEvent("hm-dialog-close"))}confirm(){this.close(),this.dispatchEvent(new CustomEvent("hm-dialog-confirm"))}cancel(){this.close(),this.dispatchEvent(new CustomEvent("hm-dialog-cancel"))}updated(t){t.has("isOpen")&&(this.isOpen?this.style.display="block":this.style.display="none")}render(){return ge`
893
961
  <div class="overlay"
894
962
  @click="${this.close}"
895
963
  ></div>
@@ -897,12 +965,12 @@ style="width:${this.size}; height:${this.size};"
897
965
  <slot></slot>
898
966
  <div class="footer">
899
967
  <slot name="footer">
900
- <hm-button @click="${()=>{this.cancel()}}">取消</hm-button>
901
- <hm-button @click="${()=>{this.confirm()}}">确定</hm-button>
968
+ <hm-button @hm-button-click="${()=>{this.cancel()}}">取消</hm-button>
969
+ <hm-button @hm-button-click="${()=>{this.confirm()}}">确定</hm-button>
902
970
  </slot>
903
971
  </div>
904
972
  </div>
905
- `}};yi.styles=et`
973
+ `}};hi.styles=Ht`
906
974
  :host {
907
975
  display: none;
908
976
  position: fixed;
@@ -947,8 +1015,8 @@ style="width:${this.size}; height:${this.size};"
947
1015
  hm-button {
948
1016
  min-width: 80px;
949
1017
  }
950
- `,bi([le({type:Boolean,attribute:"isopen"})],yi.prototype,"isOpen",2),yi=bi([ne("hm-dialog")],yi);const wi=Object.freeze(Object.defineProperty({__proto__:null,get HmDialog(){return yi}},Symbol.toStringTag,{value:"Module"})),_i=Object.freeze(Object.defineProperty({__proto__:null,hm_accordion:hi,hm_button:Ve,hm_cell:Ge,hm_dialog:wi,hm_icon:Oe,hm_input:gi,hm_menu:je,hm_move_panel:ve,hm_notification:Ne,hm_swipe_cell:ti,hm_switch:si},Symbol.toStringTag,{value:"Module"}));let $i=document.createElement("div");function xi(){$i.id="hmMenuHolder";let t=document.querySelector("#functionHolderImg");null!==t&&t.parentElement.insertAdjacentElement("afterend",$i)}const Si=Object.freeze(Object.defineProperty({__proto__:null,initMenuHolder:xi,menuHolder:$i},Symbol.toStringTag,{value:"Module"}));let ki=document.createElement("div");function Ci(){ki.id="hmMovePanelHolder",ki.style.zIndex="999999",document.body.append(ki)}const Ai=Object.freeze(Object.defineProperty({__proto__:null,initMovePanelHolder:Ci,movePanelHolder:ki},Symbol.toStringTag,{value:"Module"}));let Ei=document.createElement("div");function Oi(){Ei.id="hmNotificationHolder",Ei.style.zIndex="999999",document.body.append(Ei)}const Ti=Object.freeze(Object.defineProperty({__proto__:null,initNotificationHolder:Oi,notificationHolder:Ei},Symbol.toStringTag,{value:"Module"}));let Pi=document.createElement("div");function Mi(){Pi.id="hmDialogHolder",Pi.style.zIndex="999999",document.body.append(Pi)}const Hi=Object.freeze(Object.defineProperty({__proto__:null,dialogHolder:Pi,initDialogHolder:Mi},Symbol.toStringTag,{value:"Module"}));var ji=Object.defineProperty,zi=(t,e,i,o)=>{for(var n,s=void 0,r=t.length-1;r>=0;r--)(n=t[r])&&(s=n(e,i,s)||s);return s&&ji(e,i,s),s};class Bi extends ie{constructor(){super(...arguments),this.dialogOpen=!1,this.message="请做出选择",this.closeCallback=null,this.cancelCallback=null,this.confirmCallback=null}handelClick(){this.dispatchEvent(new CustomEvent("hmclick"))}static{this.styles=et`
951
- `}render(){return It`
1018
+ `,ci([Be({type:Boolean,attribute:"isopen"})],hi.prototype,"isOpen",2),hi=ci([Pe("hm-dialog")],hi);const di=Object.freeze(Object.defineProperty({__proto__:null,get HmDialog(){return hi}},Symbol.toStringTag,{value:"Module"})),pi=Object.freeze(Object.defineProperty({__proto__:null,hm_accordion:ei,hm_button:wo,hm_cell:ko,hm_dialog:di,hm_icon:no,hm_input:ri,hm_menu:co,hm_move_panel:qe,hm_notification:mo,hm_select:No,hm_swipe_cell:qo,hm_switch:Zo},Symbol.toStringTag,{value:"Module"}));let ui=document.createElement("div");function gi(){ui.id="hmMenuHolder";let t=document.querySelector("#functionHolderImg");console.debug(t),console.debug(ui),null!==t&&t.parentElement.insertAdjacentElement("afterend",ui)}const mi=Object.freeze(Object.defineProperty({__proto__:null,initMenuHolder:gi,menuHolder:ui},Symbol.toStringTag,{value:"Module"}));let fi=document.createElement("div");function vi(){fi.id="hmMovePanelHolder",fi.style.zIndex="999999",document.body.append(fi)}const bi=Object.freeze(Object.defineProperty({__proto__:null,initMovePanelHolder:vi,movePanelHolder:fi},Symbol.toStringTag,{value:"Module"}));let yi=document.createElement("div");function wi(){yi.id="hmNotificationHolder",yi.style.zIndex="999999",document.body.append(yi)}const xi=Object.freeze(Object.defineProperty({__proto__:null,initNotificationHolder:wi,notificationHolder:yi},Symbol.toStringTag,{value:"Module"}));let $i=document.createElement("div");function _i(){$i.id="hmDialogHolder",$i.style.zIndex="999999",document.body.append($i)}const Si=Object.freeze(Object.defineProperty({__proto__:null,dialogHolder:$i,initDialogHolder:_i},Symbol.toStringTag,{value:"Module"}));var ki=Object.defineProperty,Ai=(t,e,o,i)=>{for(var n,s=void 0,r=t.length-1;r>=0;r--)(n=t[r])&&(s=n(e,o,s)||s);return s&&ki(e,o,s),s};class Ci extends He{constructor(){super(...arguments),this.dialogOpen=!1,this.message="请做出选择",this.closeCallback=null,this.cancelCallback=null,this.confirmCallback=null}handelClick(){this.dispatchEvent(new CustomEvent("hmclick"))}static{this.styles=Ht`
1019
+ `}render(){return ge`
952
1020
  <hm-dialog
953
1021
  ?isopen="${this.dialogOpen}"
954
1022
  @hm-dialog-close="${()=>{this.dialogOpen=!1}}"
@@ -957,220 +1025,272 @@ style="width:${this.size}; height:${this.size};"
957
1025
  >
958
1026
  <p>${this.message}</p>
959
1027
  </hm-dialog>
960
- `}}let Ii;async function Di(){customElements.define("hm-dialog-app",Bi),Ii=document.createElement("hm-dialog-app"),Ii.dialogOpen=!1,Ii.message="请做出选择",Ii.closeCallback=null,Ii.cancelCallback=null,Ii.confirmCallback=null,Pi.append(Ii)}zi([le({type:Boolean})],Bi.prototype,"dialogOpen"),zi([le({type:String})],Bi.prototype,"message"),zi([le({type:Function})],Bi.prototype,"closeCallback"),zi([le({type:Function})],Bi.prototype,"cancelCallback"),zi([le({type:Function})],Bi.prototype,"confirmCallback");const Ni=Object.freeze(Object.defineProperty({__proto__:null,get dialogApp(){return Ii},initDialogApp:Di},Symbol.toStringTag,{value:"Module"}));let Ui={success(t,e,i=2e3){let o=document.createElement("hm-notification");o.title=t,o.content=e,o.displayTime=i,o.backgroundColor="rgba(57, 231, 34, 0.7)",o.color="rgb(255,255,255)",Ei.append(o)},warning(t,e,i=2e3){let o=document.createElement("hm-notification");o.title=t,o.content=e,o.displayTime=i,o.backgroundColor="rgba(255,193,7,0.7)",o.color="rgb(255,255,255)",Ei.append(o)},error(t,e,i=2e3){let o=document.createElement("hm-notification");o.title=t,o.content=e,o.displayTime=i,o.backgroundColor="rgba(255,0,0,0.7)",o.color="rgb(255,255,255)",Ei.append(o)},normal(t,e,i=2e3){let o=document.createElement("hm-notification");o.title=t,o.content=e,o.displayTime=i,o.backgroundColor="rgba(33,33,33,0.7)",o.color="rgb(255,255,255)",Ei.append(o)}};const Li=Object.freeze(Object.defineProperty({__proto__:null,confirm:function(t,e,i,o){Ii.message=t,Ii.confirmCallback=e||null,Ii.cancelCallback=i||null,Ii.closeCallback=o||null,Ii.dialogOpen=!0},notice:Ui},Symbol.toStringTag,{value:"Module"}));async function Ri(){let t=document.createElement("hm-move-panel");t.titleContent="组件模板",t.icon="template",ki.appendChild(t);let e=It`
961
-
962
- <h3>输入框</h3>
963
- 基本使用
964
- <hm-input label="用户名" placeholder="请输入用户名"></hm-input>
965
- 带图标的输入框
966
- <hm-input label="密码" icon="password" placeholder="请输入密码"></hm-input>
967
- 禁用状态
968
- <hm-input label="禁用输入框" value="已禁用" enable="false"></hm-input>
969
- 只读状态
970
- <hm-input label="只读输入框" value="只读内容" readonly="true"></hm-input>
971
- <h3>折叠面板</h3>
972
- <hm-accordion>
973
- <span slot="header">我的折叠面板</span>
974
- <div>内容项 1</div>
975
- <div>内容项 2</div>
976
- </hm-accordion>
977
- <h3>滑动开关</h3>
978
- <!-- 基础用法 -->
979
- <hm-switch></hm-switch>
980
-
981
- <!-- 默认开启 -->
982
- <hm-switch checked></hm-switch>
983
-
984
- <!-- 禁用状态 -->
985
- <hm-switch disabled></hm-switch>
986
-
987
- <!-- 加载状态 -->
988
- <hm-switch loading></hm-switch>
989
-
990
- <!-- 自定义颜色 -->
991
- <hm-switch color="#ff4757"></hm-switch>
992
- hc-s
993
- <!-- 带图标 -->
994
- <hm-switch openIcon="check" closeIcon="close"></hm-switch>
995
-
996
- <!-- 监听状态变化 -->
997
- <hm-switch
998
-
999
- @hm-switch-change
1000
- ="${t=>{}}"></hm-switch>
1001
- <h3>滑动单元格</h3>
1002
- <hm-swipe-cell>
1003
- <!-- 主内容 -->
1004
- <div slot="content">主内容</div>
1005
- <!-- 左侧操作按钮 -->
1006
- <div slot="left-actions">左侧操作</div>
1007
- <!-- 右侧操作按钮 -->
1008
- <div slot="right-actions">右侧操作</div>
1009
- </hm-swipe-cell>
1010
- <hm-swipe-cell>
1011
- <!-- 主内容 -->
1012
- <hm-cell
1013
- slot="content"
1014
- titleName="单元格标题"
1015
- descripthion="这是描述信息"
1016
- content="内容区域"
1017
- >
1018
- </hm-cell>
1019
- <!-- 左侧操作按钮 -->
1020
- <div slot="left-actions"><hm-button>删除</hm-button></div>
1021
- <!-- 右侧操作按钮 -->
1022
- <div slot="right-actions">
1023
- <hm-button>修改</hm-button>
1024
- <hm-button>运行</hm-button>
1025
- </div>
1026
- </hm-swipe-cell>
1027
-
1028
- <h3>单元格</h3>
1029
- <hm-cell>
1030
- <hm-switch slot="content"></hm-switch>
1031
- </hm-cell>
1032
- <hm-cell titleName="单元格标题" descripthion="这是描述信息" content="内容区域">
1033
- </hm-cell>
1034
- <!-- 使用插槽自定义内容 -->
1035
- <hm-cell>
1036
- <div slot="title">自定义标题</div>
1037
- <div slot="description">自定义描述</div>
1038
- <div slot="content">自定义内容</div>
1039
- </hm-cell>
1040
-
1041
- <!-- 带点击事件 -->
1042
- <hm-cell
1043
- titleName="可点击标题"
1044
- content="点击查看详情"
1045
- .titleClickCallback="${()=>{}}"
1046
- .contentClickCallback="${()=>{}}"
1047
- >
1048
- </hm-cell>
1049
-
1050
- <!-- 自定义样式 -->
1051
- <hm-cell
1052
- titleName="自定义样式"
1053
- content="特殊样式"
1054
- style="--hm-cell-background: #f0f8ff; --hm-cell-title-color: #1890ff"
1055
- >
1056
- </hm-cell>
1057
- <h3>通知</h3>
1058
- <hm-button
1059
- content="成功通知"
1060
- @click="${()=>Ui.success("成功","这是成功提示",2e3)}"
1061
- ></hm-button>
1062
- <hm-button
1063
- content="普通通知"
1064
- @click="${()=>Ui.normal("普通","这是普通提示",3e3)}"
1065
- ></hm-button>
1066
- <hm-button
1067
- content="警告通知"
1068
- @click="${()=>Ui.warning("警告","这是警告提示",4e3)}"
1069
- ></hm-button>
1070
- <hm-button
1071
- content="错误通知"
1072
- @click="${()=>Ui.error("错误","这是错误提示",5e3)}"
1073
- ></hm-button>
1074
- <h3>按钮</h3>
1075
-
1076
- <!-- 基础用法 -->
1077
- <hm-button content="普通按钮"></hm-button>
1078
-
1079
- <!-- 带图标按钮 -->
1080
- <hm-button icon="plus" content="添加"></hm-button>
1081
-
1082
- <!-- 自定义颜色 -->
1083
- <hm-button content="自定义样式" color="#ffffff" background="#4caf50"></hm-button>
1084
- </hm-button>
1085
-
1086
- <!-- 禁用状态 -->
1087
- <hm-button content="禁用按钮" .enable="${!1}"></hm-button>
1088
-
1089
- <!-- 加载状态 -->
1090
- <hm-button content="加载中" .loading="${!0}"></hm-button>
1091
-
1092
- <!-- 自定义尺寸 -->
1093
- <hm-button content="大按钮" width="200px" height="50px"></hm-button>
1094
- <hm-button content="小按钮" width="60px" height="30px" fontSize="8px"></hm-button>
1095
- <h3>图标</h3>
1096
- <hm-icon></hm-icon>
1097
- `;te(e,await t.body);let i=document.createElement("hm-menu");return i.content="组件模板",i.isMenuItem=!0,i.icon="template",i.addEventListener("hm-menu-click",function(){t.putTopToggel()}),i}const qi=Object.freeze(Object.defineProperty({__proto__:null,initExampleApp:Ri},Symbol.toStringTag,{value:"Module"}));var Vi=Object.defineProperty,Wi=(t,e,i,o)=>{for(var n,s=void 0,r=t.length-1;r>=0;r--)(n=t[r])&&(s=n(e,i,s)||s);return s&&Vi(e,i,s),s};class Xi extends ie{constructor(){super(...arguments),this.scriptName="",this.scriptUrl="",this.scriptEnable=!0,this.scriptIngected=!1,this.dialogOpen=!1,this.scriptList=U}static{this.styles=et`
1098
- :host {
1099
- display:block;
1100
- width: 100%;
1101
- }
1102
- `}render(){return It`
1103
- <hm-dialog
1104
- ?isopen="${this.dialogOpen}"
1028
+ `}}Ai([Be({type:Boolean})],Ci.prototype,"dialogOpen"),Ai([Be({type:String})],Ci.prototype,"message"),Ai([Be({type:Function})],Ci.prototype,"closeCallback"),Ai([Be({type:Function})],Ci.prototype,"cancelCallback"),Ai([Be({type:Function})],Ci.prototype,"confirmCallback");const Oi=document.createElement("hm-dialog-app");async function Ei(){customElements.define("hm-dialog-app",Ci),Oi.dialogOpen=!1,Oi.message="请做出选择",Oi.closeCallback=null,Oi.cancelCallback=null,Oi.confirmCallback=null,$i.append(Oi)}const Mi=Object.freeze(Object.defineProperty({__proto__:null,HmDialogApp:Ci,dialogApp:Oi,initDialogApp:Ei},Symbol.toStringTag,{value:"Module"})),zi={success(t,e,o=3e3){let i=document.createElement("hm-notification");i.title=t,i.content=e,i.displayTime=o,i.backgroundColor="rgba(57, 231, 34, 0.7)",i.color="rgb(255,255,255)",yi.append(i)},warning(t,e,o=3e3){let i=document.createElement("hm-notification");i.title=t,i.content=e,i.displayTime=o,i.backgroundColor="rgba(255,193,7,0.7)",i.color="rgb(255,255,255)",yi.append(i)},error(t,e,o=3e3){let i=document.createElement("hm-notification");i.title=t,i.content=e,i.displayTime=o,i.backgroundColor="rgba(255,0,0,0.7)",i.color="rgb(255,255,255)",yi.append(i)},normal(t,e,o=3e3){let i=document.createElement("hm-notification");i.title=t,i.content=e,i.displayTime=o,i.backgroundColor="rgba(33,33,33,0.7)",i.color="rgb(255,255,255)",yi.append(i)}};function Hi(t,e,o,i){Oi.message=t,Oi.confirmCallback=e||null,Oi.cancelCallback=o||null,Oi.closeCallback=i||null,Oi.dialogOpen=!0,console.debug("弹窗已打开",Oi)}const Ti=Object.freeze(Object.defineProperty({__proto__:null,confirm:Hi,notice:zi},Symbol.toStringTag,{value:"Module"}));var Pi=Object.defineProperty,ji=(t,e,o,i)=>{for(var n,s=void 0,r=t.length-1;r>=0;r--)(n=t[r])&&(s=n(e,o,s)||s);return s&&Pi(e,o,s),s};const Li="hm-script-app";class Bi extends He{constructor(){super(),this.scriptName="",this.scriptUrl="",this.scriptEnable=!0,this.scriptIngected=!1,this.dialogOpen=!1,this.isUpdate=!1,this.storeSnap=G.snapshot(X),G.subscribe(X,()=>{this.storeSnap=G.snapshot(X),this.requestUpdate()})}render(){return ge`
1029
+ <hm-dialog ?isopen="${this.dialogOpen}"
1105
1030
  @hm-dialog-close="${()=>{this.dialogOpen=!1}}"
1106
- @hm-dialog-confirm="${()=>{if(""==this.scriptName.trim()||""==this.scriptUrl.trim())return void Ui.error("脚本管理","请填写完整的脚本信息");this.scriptEnable=!0,this.scriptIngected=!1,L(new N(this.scriptName,this.scriptUrl,this.scriptEnable,this.scriptIngected)),X(),this.scriptList=U}}"
1031
+ @hm-dialog-confirm="${()=>{if(""==this.scriptName.trim()||""==this.scriptUrl.trim())return void zi.error(Li,"请填写完整的脚本信息");this.scriptEnable=!0,this.scriptIngected=!1;let t=new vt(this.scriptName,this.scriptUrl,this.scriptEnable),e=!1;e=this.isUpdate?yt(t):bt(t),e?zi.success(Li,"脚本添加成功"):zi.error(Li,"脚本添加失败"),this.isUpdate=!1,this.dialogOpen=!1,this.storeSnap=G.snapshot(X)}}"
1107
1032
  >
1108
1033
  <h2>修改或添加脚本</h2>
1109
1034
  <hm-input
1110
- label="脚本名称"
1035
+ label=" 脚本名称"
1111
1036
  placeholder="请输入脚本名称"
1112
1037
  value="${this.scriptName}"
1113
1038
  @hm-input-change="${t=>{this.scriptName=t.detail.value}}"
1114
- ></hm-input>
1039
+ >
1040
+ </hm-input>
1115
1041
  <hm-input
1116
1042
  label="脚本链接"
1117
1043
  placeholder="请输入https的脚本链接"
1118
1044
  value="${this.scriptUrl}"
1119
1045
  @hm-input-change="${t=>{this.scriptUrl=t.detail.value}}"
1120
- ></hm-input>
1121
- </hm-dialog>
1122
-
1123
- <hm-accordion>
1124
- <span slot="header">脚本列表</span>
1125
- ${this.scriptList.map(t=>It`
1126
- <hm-swipe-cell>
1127
- <div slot="left-actions">
1128
- <hm-button
1129
- @hm-button-click="${()=>{R(t),X(),this.scriptList=U}}"
1130
- >删除</hm-button
1131
- >
1132
- </div>
1133
- <hm-cell
1134
- slot="content"
1135
- titleName="${t.name}"
1136
- descripthion="${t.url}"
1137
1046
  >
1138
- <hm-switch
1139
- slot="content"
1140
- ?checked="${t.enable}"
1141
- @hm-switch-change="${e=>{t.enable=e.detail.checked,L(t),X(),this.scriptList=U}}"
1142
- ></hm-switch>
1143
- </hm-cell>
1047
+ </hm-input>
1144
1048
 
1145
- <div slot="right-actions">
1146
- <hm-button
1147
- @hm-button-click="${()=>{this.scriptName=t.name,this.scriptUrl=t.url,this.dialogOpen=!0}}"
1148
- >修改</hm-button
1149
- >
1150
- <hm-button
1151
- ?enable="${!t.ingected}"
1152
- @hm-button-click="${()=>{t.ingected=q(t),L(t),this.scriptList=U}}"
1153
- >运行</hm-button
1154
- >
1155
- </div>
1156
- </hm-swipe-cell>
1157
-
1158
- `)}
1159
- <div slot="footer">
1160
- <hm-button
1161
- @click="${()=>{W(),this.scriptList=U}}"
1162
- >刷新</hm-button
1163
- >
1164
- <hm-button
1165
- @click="${()=>{this.scriptName="",this.scriptUrl="",this.scriptEnable=!0,this.scriptIngected=!1,this.dialogOpen=!0}}"
1166
- >添加</hm-button
1167
- >
1168
- <hm-button @click="${()=>{X()}}"
1169
- >保存</hm-button
1170
- >
1171
- </div>
1172
- </hm-accordion>
1049
+ </hm-dialog>
1173
1050
 
1174
- `}}async function Fi(){customElements.define("hm-script-app",Xi);let t=document.createElement("hm-move-panel");t.titleContent="脚本管理",t.icon="js",ki.appendChild(t);let e=It`
1175
- <hm-script-app></hm-script-app>
1176
- `;te(e,await t.body);let i=document.createElement("hm-menu");return i.content="脚本管理",i.isMenuItem=!0,i.icon="js",i.addEventListener("hm-menu-click",function(){t.putTopToggel()}),i}Wi([le({type:String})],Xi.prototype,"scriptName"),Wi([le({type:String})],Xi.prototype,"scriptUrl"),Wi([le({type:Boolean})],Xi.prototype,"scriptEnable"),Wi([le({type:Boolean})],Xi.prototype,"scriptIngected"),Wi([le({type:Boolean})],Xi.prototype,"dialogOpen"),Wi([le({type:Array})],Xi.prototype,"scriptList");const Ji=Object.freeze(Object.defineProperty({__proto__:null,initScriptApp:Fi},Symbol.toStringTag,{value:"Module"})),Gi={name:"hortimagic",private:!1,version:"1.0.2",changelog:"增加了对话框函数,添加了一些图标,增加了一些说明文件注释",author:"Narlen",description:"园艺魔法,花园插件",keywords:["iirose","plugins","hortimagic"],repository:{type:"git",url:"https://github.com/NarlenHua/hortimagic.git"},license:"MIT",type:"module",scripts:{dev:"vite",build:"tsc && vite build",preview:"vite preview"},dependencies:{lit:"^3.3.1",terser:"^5.44.0","tiny-emitter":"^2.1.0","vite-plugin-dts":"^4.5.4"},devDependencies:{"@types/node":"^24.9.1",typescript:"~5.9.3",vite:"^7.1.7"},main:"dist/Horticraft.life.js",module:"dist/HortiCraft.es.js",typings:"dist/index.d.ts",types:"dist/index.d.ts",files:["dist","src/components","types"]};async function Zi(){try{Oi(),xi(),Ci(),Mi(),Ui.normal(Gi.name,"注入网络钩子函数"),await O(),Ui.normal(Gi.name,"注入钩子函数"),z(),I(),Ui.normal(Gi.name,"注入脚本"),F(),Ui.normal(Gi.name,"生成菜单");let t=document.createElement("hm-menu");t.content="HortiMagic",t.isMenuItem=!1,$i.appendChild(t);let e=await Ri(),i=await Fi();await Di(),t.addEventListener("hm-menu-click",function(){e.flag=t.flag,i.flag=t.flag}),$i.append(t,e,i),Ui.success(Gi.name,`${Gi.version} 已加载`,3e3)}catch(t){}}const Yi=Object.freeze(Object.defineProperty({__proto__:null,init:Zi},Symbol.toStringTag,{value:"Module"})),Ki=Object.freeze(Object.defineProperty({__proto__:null,app_tools:Li,dialog_app:Ni,example_app:qi,main_app:Yi,script_app:Ji},Symbol.toStringTag,{value:"Module"})),Qi=Object.freeze(Object.defineProperty({__proto__:null,dialog:Hi,menu:Si,move_panel:Ai,notification:Ti},Symbol.toStringTag,{value:"Module"})),to={name:Gi.name,version:Gi.version,changelog:Gi.changelog,description:Gi.description,author:Gi.author,license:Gi.license,repository:Gi.repository,buildTime:(new Date).toISOString()};return async function(){Zi()}(),t.apps=Ki,t.components=_i,t.core=G,t.holders=Qi,t.information=to,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
1051
+ <hm-accordion>
1052
+ <span slot="header"> 脚本列表 </span>
1053
+ ${this.storeSnap.scriptList.map(t=>ge`
1054
+ <hm-swipe-cell>
1055
+ <div slot="left-actions">
1056
+ <hm-button
1057
+ icon="delete"
1058
+ @hm-button-click="${()=>{wt(t)?zi.success(Li,"脚本删除成功"):zi.error(Li,"脚本已经不在脚本列表中"),this.storeSnap=G.snapshot(X)}}"
1059
+ >删除</hm-button
1060
+ >
1061
+ </div>
1062
+ <hm-cell title-name="${t.name}" descripthion="${t.url}">
1063
+ <hm-switch
1064
+ ?checked="${t.enable}"
1065
+ @hm-switch-change="${e=>{yt(new vt(t.name,t.url,e.detail.checked))?zi.success(Li,"脚本修改成功"):zi.error(Li,"脚本修改失败")}}"
1066
+ ></hm-switch>
1067
+ </hm-cell>
1068
+ <div slot="right-actions">
1069
+ <hm-button
1070
+ icon="edit"
1071
+ @hm-button-click="${()=>{this.scriptName=t.name,this.scriptUrl=t.url,this.scriptEnable=t.enable,this.isUpdate=!0,this.dialogOpen=!0}}"
1072
+ >修改</hm-button
1073
+ >
1074
+ <hm-button
1075
+ icon="run"
1076
+ ?enable="${!ft.includes(t.url)}"
1077
+ @hm-button-click="${()=>{_t(t)?zi.success(Li,"脚本运行成功"):zi.error(Li,"脚本运行失败,脚本已经在运行了")}}"
1078
+ >运行</hm-button
1079
+ >
1080
+ </div>
1081
+ </hm-swipe-cell>
1082
+ `)}
1083
+ <div slot="footer">
1084
+ <hm-button
1085
+ icon="refresh"
1086
+ @click="${()=>{Z(),this.storeSnap=G.snapshot(X)}}"
1087
+ >
1088
+ 刷新
1089
+ </hm-button>
1090
+ <hm-button
1091
+ icon="post-add"
1092
+ @click="${()=>{this.dialogOpen=!0}}"
1093
+ >
1094
+ 添加
1095
+ </hm-button>
1096
+ <hm-button
1097
+ icon="save"
1098
+ @click="${()=>{J()}}">
1099
+ 保存
1100
+ </hm-button>
1101
+ </div>
1102
+ </hm-accordion>`}}ji([Be({type:String})],Bi.prototype,"scriptName"),ji([Be({type:String})],Bi.prototype,"scriptUrl"),ji([Be({type:Boolean})],Bi.prototype,"scriptEnable"),ji([Be({type:Boolean})],Bi.prototype,"scriptIngected"),ji([Be({type:Boolean})],Bi.prototype,"dialogOpen");const Ii={name:"hortimagic",private:!1,version:"1.0.5",changelog:"重新构建了插件,实现了响应式状态管理",author:"Narlen",description:"园艺魔法,花园插件",keywords:["iirose","plugins","hortimagic"],repository:{type:"git",url:"https://github.com/NarlenHua/hortimagic.git"},license:"MIT",type:"module",scripts:{dev:"vite",build:"tsc && vite build",preview:"vite preview"},dependencies:{lit:"^3.3.1",terser:"^5.44.0",valtio:"^2.2.0","vite-plugin-dts":"^4.5.4"},devDependencies:{"@types/node":"^24.9.1",typescript:"~5.9.3",vite:"^7.1.7"},main:"dist/Horticraft.life.js",module:"dist/HortiCraft.es.js",typings:"dist/index.d.ts",types:"dist/index.d.ts",files:["dist","src/components","types"]};class Di extends He{constructor(){super(...arguments),this.storeSnap=G.snapshot(X)}static{this.styles=Ht`
1103
+ .config-item {
1104
+ margin: 10px 0;
1105
+ }
1106
+ `}render(){return ge`
1107
+ <div class="config-item">
1108
+ <hm-cell title-name="自动保存设置" description="修改设置或脚本列表后,将自动保存设置。">
1109
+ <hm-switch
1110
+ ?checked="${this.storeSnap.autoSave}"
1111
+ @hm-switch-change="${t=>{X.autoSave=t.detail.checked,J()}}"
1112
+ ></hm-switch>
1113
+ </hm-cell>
1114
+ </div>
1115
+
1116
+ <div class="config-item">
1117
+ <hm-cell title-name="允许LOG输出" description="是否允许LOG级别的日志输出">
1118
+ <hm-switch
1119
+ ?checked="${this.storeSnap.logFlag.log}"
1120
+ @hm-switch-change="${t=>{X.logFlag.log=t.detail.checked}}"
1121
+ ></hm-switch>
1122
+ </hm-cell>
1123
+ </div>
1124
+
1125
+ <div class="config-item">
1126
+ <hm-cell title-name="允许INFO输出" description="是否允许INFO级别的日志输出">
1127
+ <hm-switch
1128
+ ?checked="${this.storeSnap.logFlag.info}"
1129
+ @hm-switch-change="${t=>{X.logFlag.info=t.detail.checked}}"
1130
+ ></hm-switch>
1131
+ </hm-cell>
1132
+ </div>
1133
+
1134
+ <div class="config-item">
1135
+ <hm-cell title-name="允许DEBUG输出" description="是否允许DEBUG级别的日志输出">
1136
+ <hm-switch
1137
+ ?checked="${this.storeSnap.logFlag.debug}"
1138
+ @hm-switch-change="${t=>{X.logFlag.debug=t.detail.checked}}"
1139
+ ></hm-switch>
1140
+ </hm-cell>
1141
+ </div>
1142
+
1143
+ <div class="config-item">
1144
+ <hm-cell title-name="允许WARN输出" description="是否允许WARN级别的日志输出">
1145
+ <hm-switch
1146
+ ?checked="${this.storeSnap.logFlag.warn}"
1147
+ @hm-switch-change="${t=>{X.logFlag.warn=t.detail.checked}}"
1148
+ ></hm-switch>
1149
+ </hm-cell>
1150
+ </div>
1151
+
1152
+ <div class="config-item">
1153
+ <hm-cell title-name="允许ERROR输出" description="是否允许ERROR级别的日志输出">
1154
+ <hm-switch
1155
+ ?checked="${this.storeSnap.logFlag.error}"
1156
+ @hm-switch-change="${t=>{X.logFlag.error=t.detail.checked}}"
1157
+ ></hm-switch>
1158
+ </hm-cell>
1159
+ </div>
1160
+
1161
+ <div class="config-item">
1162
+ <hm-input
1163
+ label="日志列表长度"
1164
+ type="number"
1165
+ .value="${this.storeSnap.logListLength}"
1166
+ @hm-input-change="${t=>{const e=parseInt(t.detail.value)||100;X.logListLength=e,tt.debug("log list length changed:",e)}}"
1167
+ ></hm-input>
1168
+ </div>
1169
+ `}}var Ni=Object.defineProperty;class Ui extends He{constructor(){super(),this.logList=[],this.foldState=new Map,X.logListLength<1&&(X.logListLength=50),Q.on("log",(t,...e)=>{let o="log";if(e.length>0){const t=e[0];"string"==typeof t&&(t.startsWith("[DEBUG]")?o="debug":t.startsWith("[INFO]")?o="info":t.startsWith("[WARN]")?o="warn":t.startsWith("[ERROR]")&&(o="error"))}const i=[...e];i.length>0&&"string"==typeof i[0]&&["[DEBUG]","[INFO]","[WARN]","[ERROR]"].some(t=>i[0].startsWith(t))&&i.shift();const n={timestamp:new Date,level:o,tag:t,message:i};for(;this.logList.length>=X.logListLength;)this.logList.shift();this.logList.push(n),this.requestUpdate()})}static{this.styles=Ht`
1170
+ .log-container {
1171
+ height: 400px;
1172
+ overflow-y: auto;
1173
+ padding: 10px;
1174
+ font-family: monospace;
1175
+ background-color: #f5f5f5;
1176
+ border: 1px solid #ddd;
1177
+ }
1178
+
1179
+ .log-entry {
1180
+ padding: 8px 0;
1181
+ border-bottom: 1px solid #eee;
1182
+ display: flex;
1183
+ flex-direction: column;
1184
+ margin-bottom: 10px; /* 增加日志条目之间的间距 */
1185
+ }
1186
+
1187
+ .log-header {
1188
+ display: flex;
1189
+ gap: 10px;
1190
+ align-items: center;
1191
+ }
1192
+
1193
+ .timestamp {
1194
+ color: #999;
1195
+ min-width: 100px;
1196
+ flex-shrink: 0;
1197
+ font-size: 12px; /* 调整时间戳字体大小 */
1198
+ }
1199
+
1200
+ .level {
1201
+ min-width: 50px;
1202
+ flex-shrink: 0;
1203
+ font-weight: bold;
1204
+ font-size: 14px; /* 调整日志级别字体大小 */
1205
+ }
1206
+
1207
+ .level.debug { color: #0099cc; }
1208
+ .level.info { color: #009900; }
1209
+ .level.warn { color: #ff9900; }
1210
+ .level.error { color: #ff3333; }
1211
+
1212
+ .tag {
1213
+ color: #666;
1214
+ font-weight: bold;
1215
+ min-width: 80px;
1216
+ flex-shrink: 0;
1217
+ font-size: 14px; /* 调整标签字体大小 */
1218
+ }
1219
+
1220
+ .message {
1221
+ flex: 1;
1222
+ word-break: break-word;
1223
+ margin-top: 4px;
1224
+ max-height: 60px; /* 限制高度,触发折叠 */
1225
+ overflow: hidden;
1226
+ cursor: pointer;
1227
+ position: relative;
1228
+ display: block; /* 确保每条消息独占一行 */
1229
+ // 强制显示滚动条
1230
+ scrollbar-width: auto; /* Firefox */
1231
+ -ms-overflow-style: scrollbar; /* IE and Edge */
1232
+ overflow-y: scroll; /* 强制显示垂直滚动条 */
1233
+ font-size: 14px; /* 调整消息字体大小 */
1234
+ line-height: 1.5; /* 调整行高 */
1235
+ background-color: #fff; /* 设置背景色 */
1236
+ padding: 5px; /* 添加内边距 */
1237
+ border-radius: 4px; /* 圆角 */
1238
+ }
1239
+
1240
+ .message.collapsed::after {
1241
+ content: " ...";
1242
+ color: #999;
1243
+ position: absolute;
1244
+ bottom: 0;
1245
+ right: 0;
1246
+ background: linear-gradient(to right, transparent, #f5f5f5 70%);
1247
+ }
1248
+
1249
+ .message.expanded {
1250
+ max-height: none;
1251
+ overflow: visible;
1252
+ }
1253
+
1254
+ .controls {
1255
+ padding: 10px;
1256
+ display: flex;
1257
+ gap: 10px;
1258
+ background-color: #eaeaea; /* 设置控制区域背景色 */
1259
+ border-bottom: 1px solid #ddd; /* 添加下边框 */
1260
+ }
1261
+
1262
+ .clear-btn {
1263
+ background: #ff3333;
1264
+ color: white;
1265
+ border: none;
1266
+ padding: 5px 10px;
1267
+ cursor: pointer;
1268
+ border-radius: 3px;
1269
+ }
1270
+
1271
+ .clear-btn:hover {
1272
+ background: #cc0000;
1273
+ }
1274
+ `}render(){return ge`
1275
+ <div class="controls">
1276
+ <button class="clear-btn" @click="${this.clearLogs}">清空日志</button>
1277
+ <span>共 ${this.logList.length} 条日志</span>
1278
+ </div>
1279
+ <div class="log-container">
1280
+ ${this.logList.map(t=>{const e=`${t.timestamp.getTime()}-${t.tag}-${t.level}`,o=this.foldState.get(e)??!1,i=t.message.map(t=>"object"==typeof t?JSON.stringify(t):String(t)).join(" "),n=i.length>100;return ge`
1281
+ <div class="log-entry">
1282
+ <div class="log-header">
1283
+ <span class="timestamp">${this.formatTime(t.timestamp)}</span>
1284
+ <span class="level ${t.level}">[${t.level.toUpperCase()}]</span>
1285
+ <span class="tag">${t.tag}</span>
1286
+ </div>
1287
+ <div
1288
+ class="message ${o||!n?"expanded":"collapsed"}"
1289
+ @click="${()=>this.toggleFold(e)}"
1290
+ >
1291
+ ${o||!n?i:i.substring(0,100)}
1292
+ </div>
1293
+ </div>
1294
+ `})}
1295
+ </div>
1296
+ `}formatTime(t){return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}.${String(t.getMilliseconds()).padStart(3,"0")}`}clearLogs(){this.logList=[],this.requestUpdate()}toggleFold(t){const e=this.foldState.get(t)??!1;this.foldState.set(t,!e),this.requestUpdate()}}async function Ri(){try{Y(),wi(),_i(),await Ei(),gi(),vi(),zi.normal(Ii.name,"注入网络钩子函数"),await nt(),zi.normal(Ii.name,"注入钩子函数"),dt(),ut(),zi.normal(Ii.name,"注入脚本"),St(),zi.normal(Ii.name,"生成菜单");let t=document.createElement("hm-menu");t.content="HortiMagic",t.isMenuItem=!1;let e=function(){customElements.define("hm-config-app",Di);let t=document.createElement("hm-move-panel");t.titleContent="设置",t.icon="config",t.leftButtonText="读取",t.leftIcon="load",t.addEventListener("left-button-click",function(){Z()}),t.rightButtonText="保存",t.rightIcon="save",t.addEventListener("right-button-click",function(){J()}),fi.appendChild(t),t.innerHTML="\n <hm-config-app></hm-config-app>\n ";let e=document.createElement("hm-menu");return e.content="设置",e.isMenuItem=!0,e.icon="config",e.addEventListener("hm-menu-click",function(){t.putTopToggel()}),e}(),o=function(){customElements.define("hm-log-app",Ui);let t=document.createElement("hm-move-panel");t.titleContent="日志",t.icon="log",t.width=400,fi.appendChild(t),t.innerHTML="<hm-log-app></hm-log-app>";let e=document.createElement("hm-menu");return e.content="日志",e.isMenuItem=!0,e.icon="log",e.addEventListener("hm-menu-click",function(){t.putTopToggel()}),e}(),i=function(){customElements.define("hm-script-app",Bi);let t=document.createElement("hm-move-panel");t.titleContent="脚本管理",t.icon="js",t.leftButtonText="读取",t.leftIcon="load",t.addEventListener("left-button-click",function(){Z()}),t.rightButtonText="保存",t.rightIcon="save",t.addEventListener("right-button-click",function(){J()}),fi.appendChild(t),t.innerHTML="<hm-script-app> </hm-script-app>\n ";let e=document.createElement("hm-menu");return e.content="脚本管理",e.isMenuItem=!0,e.icon="js",e.addEventListener("hm-menu-click",function(){t.putTopToggel()}),e}();t.addEventListener("hm-menu-click",function(){e.flag=t.flag,o.flag=t.flag,i.flag=t.flag}),ui.append(t,e,o,i),zi.success(Ii.name,`${Ii.version} 已加载`)}catch(t){console.error(t)}}((t,e,o)=>{for(var i,n=void 0,s=t.length-1;s>=0;s--)(i=t[s])&&(n=i(e,o,n)||n);n&&Ni(e,o,n)})([Be({type:Array})],Ui.prototype,"logList");const Vi=Object.freeze(Object.defineProperty({__proto__:null,init:Ri},Symbol.toStringTag,{value:"Module"})),Fi=Object.freeze(Object.defineProperty({__proto__:null,dialog_app:Mi,main_app:Vi},Symbol.toStringTag,{value:"Module"})),qi=Object.freeze(Object.defineProperty({__proto__:null,dialog:Si,menu:mi,move_panel:bi,notification:xi},Symbol.toStringTag,{value:"Module"})),Wi={name:Ii.name,version:Ii.version,changelog:Ii.changelog,description:Ii.description,author:Ii.author,license:Ii.license,repository:Ii.repository,buildTime:(new Date).toISOString(),ingected:!1};return async function(){await Ri(),Wi.ingected=!0}(),t.apps=Fi,t.components=pi,t.confirm=Hi,t.core=At,t.easy_tools=Ti,t.holders=qi,t.information=Wi,t.logger=tt,t.notice=zi,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});