layerpro 3.1.1 → 3.1.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.
package/index.js CHANGED
@@ -1,17 +1,20 @@
1
- ;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--raised-background:rgba(0,0,0,.3);--popup-z-index:1000;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--raised-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);font-size:1.1em;}#popup [class*=popup_option_]{display:flex;margin-right:15px;}#popup [class*=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class*=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class*=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class*=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class*=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class*=popup_option_] button:hover::after{opacity:1;}#popup [class*=popup_option_] button [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjE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C9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Im1heGltaXplLnN2ZyIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc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LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpwYWdlY2hlY2tlcmJvYXJkPSIwIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTM3NjUiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTI5MS43MDgzMikiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAuMTQ3MDQ1NCIKICAgICAgIGlkPSJyZWN0MzczMiIKICAgICAgIHdpZHRoPSI0Ljc2MjQ5OTgiCiAgICAgICBoZWlnaHQ9IjQuNzYyNDk5OCIKICAgICAgIHg9IjAuMjkxODUyNTMiCiAgICAgICB5PSIyOTIuMDEwNDQiCiAgICAgICByeT0iMC42NjcxMjEyMyIgLz4KICA8L2c+Cjwvc3ZnPgo=) !important;}#popup .close:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0i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ydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();import { createRoot as e } from "react-dom/client";
1
+ ;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--raised-background:rgba(0,0,0,.3);--popup-z-index:1000;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--raised-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);font-size:1.1em;}#popup [class*=popup_option_]{display:flex;margin-right:15px;}#popup [class*=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class*=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class*=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class*=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class*=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class*=popup_option_] button:hover::after{opacity:1;}#popup [class*=popup_option_] button [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi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uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25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yMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI3IgogICAgIGlua3NjYXBlOndpbmRvdy14PSItOCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTgiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpwYWdlY2hlY2tlcmJvYXJkPSIwIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTM3NjUiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTI5MS43MDgzMikiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAuMTQ3MDQ1NCIKICAgICAgIGlkPSJyZWN0MzczMiIKICAgICAgIHdpZHRoPSI0Ljc2MjQ5OTgiCiAgICAgICBoZWlnaHQ9IjQuNzYyNDk5OCIKICAgICAgIHg9IjAuMjkxODUyNTMiCiAgICAgICB5PSIyOTIuMDEwNDQiCiAgICAgICByeT0iMC42NjcxMjEyMyIgLz4KICA8L2c+Cjwvc3ZnPgo=) !important;}#popup .close:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiB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0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();var e = Object.defineProperty, t = (t, o, i) => ((t, o, i) => o in t ? e(t, o, {
2
+ enumerable: !0,
3
+ configurable: !0,
4
+ writable: !0,
5
+ value: i
6
+ }) : t[o] = i)(t, o + "", i), o = globalThis;
2
7
 
3
- var t = globalThis;
4
-
5
- t.layerpro || Object.defineProperty(t, "layerpro", {
8
+ o.layerpro || Object.defineProperty(o, "layerpro", {
6
9
  value: {},
7
10
  writable: !1,
8
11
  configurable: !1,
9
12
  enumerable: !1
10
13
  });
11
14
 
12
- var o = t.layerpro;
15
+ var i = o.layerpro;
13
16
 
14
- if (!o.setProps) {
17
+ if (!i.setProps) {
15
18
  const e = (t, o) => {
16
19
  Reflect.ownKeys(t).forEach(i => {
17
20
  const n = Object.getOwnPropertyDescriptor(t, i);
@@ -21,31 +24,31 @@ if (!o.setProps) {
21
24
  "object" == typeof s && null !== s && e(s, o);
22
25
  });
23
26
  };
24
- Object.defineProperty(o, "setProps", {
27
+ Object.defineProperty(i, "setProps", {
25
28
  value: e,
26
29
  writable: !1,
27
30
  configurable: !1
28
31
  });
29
32
  }
30
33
 
31
- var i = globalThis.layerpro;
34
+ var n = globalThis.layerpro;
32
35
 
33
- Object.defineProperty(i, "credits", {
36
+ Object.defineProperty(n, "credits", {
34
37
  value: e => {},
35
38
  writable: !1,
36
39
  configurable: !1
37
40
  });
38
41
 
39
- var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, r = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], a = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), l = (e, t) => "number" != typeof t || a.has(e.toLowerCase()) ? String(t) : `${t}px`, c = (e, t, o, i) => {
40
- const s = e => o(e), p = i?.ns ? `${t}.${i.ns}` : t;
41
- e.addEventListener(t, s, i);
42
- let r = n.get(e);
43
- r || (r = new Map, n.set(e, r)), r.set(p, {
44
- handler: s,
42
+ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, a = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], l = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), c = (e, t) => "number" != typeof t || l.has(e.toLowerCase()) ? String(t) : `${t}px`, d = (e, t, o, i) => {
43
+ const n = e => o(e), p = i?.ns ? `${t}.${i.ns}` : t;
44
+ e.addEventListener(t, n, i);
45
+ let r = s.get(e);
46
+ r || (r = new Map, s.set(e, r)), r.set(p, {
47
+ handler: n,
45
48
  opts: i ?? {}
46
49
  });
47
- }, d = (e, t, o) => {
48
- const i = n.get(e);
50
+ }, u = (e, t, o) => {
51
+ const i = s.get(e);
49
52
  if (i) {
50
53
  if (o?.ns) {
51
54
  const n = `${t}.${o.ns}`, s = i.get(n);
@@ -54,10 +57,9 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
54
57
  for (const [o, n] of [ ...i ]) (o === t || o.startsWith(`${t}.`)) && (e.removeEventListener(t, n.handler, n.opts),
55
58
  i.delete(o));
56
59
  }
57
- }, u = class e {
58
- el;
60
+ }, h = class e {
59
61
  constructor(e) {
60
- this.el = e;
62
+ t(this, "el"), this.el = e;
61
63
  }
62
64
  append(t) {
63
65
  return t instanceof e ? this.el.appendChild(t.el) : "string" == typeof t ? this.el.appendChild(document.createTextNode(t)) : this.el.appendChild(t),
@@ -66,7 +68,7 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
66
68
  appendTo(t) {
67
69
  let o;
68
70
  if (t instanceof e) o = t.el; else {
69
- const e = p(t);
71
+ const e = r(t);
70
72
  o = e === document ? document.body : e;
71
73
  }
72
74
  return o.appendChild(this.el), this;
@@ -78,19 +80,19 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
78
80
  return this.el.textContent = e, this;
79
81
  }
80
82
  css(e, t) {
81
- if ("object" == typeof e && null !== e) for (const [t, o] of Object.entries(e)) this.el.style.setProperty(t.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), l(t, o)); else this.el.style.setProperty(e.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), l(e, t));
83
+ if ("object" == typeof e && null !== e) for (const [t, o] of Object.entries(e)) this.el.style.setProperty(t.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), c(t, o)); else this.el.style.setProperty(e.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), c(e, t));
82
84
  return this;
83
85
  }
84
86
  addClass(e) {
85
- for (const t of r(e)) this.el.classList.add(t);
87
+ for (const t of a(e)) this.el.classList.add(t);
86
88
  return this;
87
89
  }
88
90
  removeClass(e) {
89
- for (const t of r(e)) this.el.classList.remove(t);
91
+ for (const t of a(e)) this.el.classList.remove(t);
90
92
  return this;
91
93
  }
92
94
  toggleClass(e, t) {
93
- for (const o of r(e)) this.el.classList.toggle(o, t);
95
+ for (const o of a(e)) this.el.classList.toggle(o, t);
94
96
  return this;
95
97
  }
96
98
  hasClass(e) {
@@ -127,18 +129,18 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
127
129
  return this.el.style.display = "none" === this.el.style.display ? "" : "none", this;
128
130
  }
129
131
  on(e, t, o) {
130
- return c(this.el, e, t, o), this;
132
+ return d(this.el, e, t, o), this;
131
133
  }
132
134
  off(e, t) {
133
- return d(this.el, e, t), this;
135
+ return u(this.el, e, t), this;
134
136
  }
135
137
  data(e, t) {
136
- let o = s.get(this.el);
137
- return o || (o = new Map, s.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
138
+ let o = p.get(this.el);
139
+ return o || (o = new Map, p.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
138
140
  this);
139
141
  }
140
142
  removeData(e) {
141
- return s.get(this.el)?.delete(e), this;
143
+ return p.get(this.el)?.delete(e), this;
142
144
  }
143
145
  offset() {
144
146
  const e = this.el.getBoundingClientRect();
@@ -191,7 +193,7 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
191
193
  let n = 200, s = o;
192
194
  "function" == typeof t ? s = t : n = t;
193
195
  const p = Object.keys(e), r = {};
194
- for (const t of p) r[t] = l(t, e[t]);
196
+ for (const t of p) r[t] = c(t, e[t]);
195
197
  return i.style.transition = "none", i.offsetWidth, i.style.transition = `${p.join(", ")} ${n}ms ease`,
196
198
  Object.assign(i.style, r), this.finishTransition(n, () => {
197
199
  i.style.transition = "", s?.();
@@ -209,94 +211,114 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
209
211
  }
210
212
  };
211
213
 
212
- function h(e, t) {
213
- const o = p(t).querySelector(e);
214
- return o ? new u(o) : null;
214
+ function f(e, t) {
215
+ const o = r(t).querySelector(e);
216
+ return o ? new h(o) : null;
215
217
  }
216
218
 
217
- function f(e, t) {
218
- return [ ...p(t).querySelectorAll(e) ].map(e => new u(e));
219
+ function m(e, t) {
220
+ return [ ...r(t).querySelectorAll(e) ].map(e => new h(e));
219
221
  }
220
222
 
221
- var m = e => {
223
+ var b = e => {
222
224
  const t = document.createElement("div");
223
225
  t.innerHTML = e.trim();
224
226
  const o = t.firstElementChild;
225
- return new u(o);
226
- }, b = {
227
+ return new h(o);
228
+ }, g = {
227
229
  on(e, t, o) {
228
- c(document, e, t, o);
230
+ d(document, e, t, o);
229
231
  },
230
232
  off(e, t) {
231
- d(document, e, t);
233
+ u(document, e, t);
232
234
  }
233
235
  }, _ = {
234
236
  on(e, t, o) {
235
- c(window, e, t, o);
237
+ d(window, e, t, o);
236
238
  },
237
239
  off(e, t) {
238
- d(window, e, t);
240
+ u(window, e, t);
239
241
  },
240
242
  height: () => window.innerHeight,
241
243
  width: () => window.innerWidth,
242
244
  scrollTop: () => window.scrollY || document.documentElement.scrollTop || 0,
243
245
  scrollLeft: () => window.scrollX || document.documentElement.scrollLeft || 0
244
- }, g = new Map, v = new Map, y = {
246
+ }, v = new Map, y = new Map, w = {
245
247
  "&": "&",
246
248
  "<": "&lt;",
247
249
  ">": "&gt;",
248
250
  '"': "&quot;",
249
251
  "'": "&#39;"
250
- }, w = e => e.replace(/[&<>"']/g, e => y[e]), z = t => {
251
- if (t.body && !t.source) {
252
- const o = t.body;
253
- if ("object" == typeof o && null !== o && void 0 !== o.type && "object" == typeof o.props && null !== o.props) {
254
- const o = document.querySelector(".popup_body_" + t.id);
255
- if (!o) return;
256
- try {
257
- const i = e(o);
258
- i.render(t.body), g.set(String(t.id), i);
259
- } catch (e) {
260
- const t = e?.message || String(e);
261
- t.includes("Invalid hook call") || t.includes("hooks");
262
- }
263
- } else if ("string" == typeof t.body && t.body.trim().startsWith("<")) {
264
- const e = w(t.body);
265
- h(`.popup_body_${t.id}`)?.html(e).fadeIn(t.fadeIn);
252
+ }, z = e => e.replace(/[&<>"']/g, e => w[e]), x = e => {
253
+ if (!e.source) return;
254
+ const t = f(`.popup_body_${e.id}`), o = String(e.source);
255
+ let i;
256
+ try {
257
+ i = new URL(o, window.location.origin);
258
+ } catch {
259
+ return;
260
+ }
261
+ if (i.origin !== window.location.origin) return;
262
+ const n = new AbortController;
263
+ v.set(String(e.id), n), fetch(o, {
264
+ mode: "same-origin",
265
+ signal: n.signal
266
+ }).then(e => {
267
+ if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
268
+ return e.text();
269
+ }).then(o => {
270
+ if (!v.get(String(e.id)) || n.signal.aborted) return;
271
+ const i = z(o);
272
+ t?.hide().html(i).fadeIn(e.fadeIn);
273
+ }).catch(e => {
274
+ e.name;
275
+ });
276
+ }, k = e => {
277
+ if (e.body && !e.source) {
278
+ const t = e.body;
279
+ if ("object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props) {
280
+ const t = document.querySelector(".popup_body_" + e.id);
281
+ if (!t) return;
282
+ "function" == typeof layerpro.popup.useReactAdapter ? layerpro.popup.useReactAdapter(e, t) : import("layerpro/react").then(o => {
283
+ o.default && o.default(e, t, null);
284
+ }).catch(e => {});
285
+ } else if ("string" == typeof e.body && e.body.trim().startsWith("<")) {
286
+ const t = z(e.body);
287
+ f(`.popup_body_${e.id}`)?.html(t).fadeIn(e.fadeIn);
266
288
  } else {
267
- const e = w(String(t.body));
268
- h(`.popup_body_${t.id}`)?.text(e).fadeIn(t.fadeIn);
289
+ const t = z(String(e.body));
290
+ f(`.popup_body_${e.id}`)?.text(t).fadeIn(e.fadeIn);
269
291
  }
270
292
  }
271
- }, x = e => {
293
+ }, T = e => {
272
294
  if (e.buttons) {
273
- if (m('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
274
- const t = w(e.buttons.confirm.text.toUpperCase()), o = m(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(".buttons");
295
+ if (b('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
296
+ const t = z(e.buttons.confirm.text.toUpperCase()), o = b(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(".buttons");
275
297
  e.buttons.confirm.cb && o.on("click", () => {
276
298
  e.buttons?.confirm?.cb?.(), layerpro.popup.close(e);
277
299
  });
278
300
  }
279
301
  if (e.buttons.cancel) {
280
- const t = w(e.buttons.cancel.text.toUpperCase());
281
- m(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(".buttons").on("click", () => {
302
+ const t = z(e.buttons.cancel.text.toUpperCase());
303
+ b(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(".buttons").on("click", () => {
282
304
  e.buttons?.cancel?.cb?.(), layerpro.popup.close(e);
283
305
  });
284
306
  }
285
307
  }
286
- }, k = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, T = () => {
308
+ }, $ = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, E = () => {
287
309
  if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
288
310
  const e = (() => {
289
311
  if ("undefined" == typeof navigator) return !1;
290
312
  const e = navigator.userAgent;
291
313
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
292
- })() || k();
314
+ })() || $();
293
315
  return ("ontouchstart" in window || navigator.maxTouchPoints > 0) && e ? "touch" : "mouse";
294
- }, $ = T(), E = !k(), C = null;
316
+ }, C = E(), L = !$(), S = null;
295
317
 
296
318
  if ("undefined" != typeof window) {
297
319
  const e = window.matchMedia("(max-width: 1024px)"), t = () => {
298
- const e = T(), t = $, o = !k();
299
- $ = e, E !== o && (E = o, C && C(e, t));
320
+ const e = E(), t = C, o = !$();
321
+ C = e, L !== o && (L = o, S && S(e, t));
300
322
  };
301
323
  let o;
302
324
  e.addListener ? e.addListener(t) : e.addEventListener("change", t), window.addEventListener("resize", () => {
@@ -304,10 +326,16 @@ if ("undefined" != typeof window) {
304
326
  });
305
327
  }
306
328
 
307
- var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX, M = e => void 0 !== e.clientY ? e.clientY : e.touches && e.touches.length > 0 ? e.touches[0].clientY : e.clientY, S = 250, N = 150, O = !1, I = 1e3, A = !1, P = 0, H = 0, j = 0, W = 0, R = 0, D = 0, q = 0, B = 0, X = 0, Y = new Map, U = new Map, K = () => h("body"), F = e => "object" == typeof e && null !== e ? e.id : e, Z = {
329
+ var M = e => {
330
+ const t = e;
331
+ return void 0 !== t.clientX ? t.clientX : t.touches && t.touches.length > 0 ? t.touches[0].clientX : 0;
332
+ }, O = e => {
333
+ const t = e;
334
+ return void 0 !== t.clientY ? t.clientY : t.touches && t.touches.length > 0 ? t.touches[0].clientY : 0;
335
+ }, N = 250, A = 150, H = !1, I = 1e3, P = !1, j = 0, W = new Map, R = new Map, B = null, D = () => f("body"), X = e => "object" == typeof e && null !== e ? e.id : e, Y = {
308
336
  open: e => {
309
337
  if (!e) return e;
310
- e.id = e.id ?? "popup_" + ++P, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
338
+ e.id = e.id ?? "popup_" + ++j, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
311
339
  e.height = e.height ?? 220, e.minWidth = e.minWidth ?? 340, e.minHeight = e.minHeight ?? 220,
312
340
  e.name = e.name ?? "popUp_" + e.id, e.source = e.source ?? null, e.icon = e.icon ?? null,
313
341
  e.iconize = e.iconize ?? null, e.maximize = e.maximize ?? null, e.isMaximize = e.isMaximize ?? null,
@@ -315,21 +343,21 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
315
343
  e.movable = e.movable ?? null, e.resizable = e.resizable ?? null, e.store = e.store ?? !1,
316
344
  e.top = e.top ?? "auto", e.left = e.left ?? "auto", e.right = e.right ?? "auto",
317
345
  e.bottom = e.bottom ?? "auto", e.fadeIn = e.fadeIn ?? 100, e.fadeOut = e.fadeOut ?? 100,
318
- S = e.minWidth, N = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
346
+ N = e.minWidth, A = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
319
347
  e.height < e.minHeight && (e.height, e.height = e.minHeight), "auto" === e.width && (e.width = "100%"),
320
- "auto" === e.height && (e.height = "100%"), h("#popup") || m('<div id="popup">').appendTo("body").css({
348
+ "auto" === e.height && (e.height = "100%"), f("#popup") || b('<div id="popup">').appendTo("body").css({
321
349
  "pointer-events": "none",
322
- "z-index": Z.zIndex() + 1
350
+ "z-index": Y.zIndex() + 1
323
351
  });
324
- return h(".popup_window_" + e.id, "#popup") ? (Z.index(e), layerpro.popup.unmount(String(e.id)),
325
- z(e), x(e)) : (e => {
352
+ return f(".popup_window_" + e.id, "#popup") ? (Y.index(e), layerpro.popup.unmount(String(e.id)),
353
+ k(e), T(e)) : (e => {
326
354
  if ("function" == typeof e.body) return;
327
355
  const t = !0 === e.raised ? ".popup_raised_" + e.id : "#popup";
328
- f('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), f('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
329
- f('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.raised && m(`<div class="popup_raised_${e.id} popup_raised">`).appendTo("#popup").css({
356
+ m('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
357
+ m('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.raised && b(`<div class="popup_raised_${e.id} popup_raised">`).appendTo("#popup").css({
330
358
  "pointer-events": "auto",
331
359
  "z-index": layerpro.popup.zIndex() + 1e3
332
- }), m(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
360
+ }), b(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
333
361
  top: e.top,
334
362
  left: e.left,
335
363
  right: e.right,
@@ -345,67 +373,73 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
345
373
  }).on("pointerdown", () => {
346
374
  layerpro.popup.index(e);
347
375
  }).hide().fadeIn(e.fadeIn);
348
- const o = m(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
376
+ const o = b(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
349
377
  "pointer-events": "auto"
350
378
  }).addClass("zHigh").addClass(e.class), i = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
351
379
  if (!0 === e.center || 0 === i) {
352
- const t = f('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
380
+ const t = m('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
353
381
  layerpro.popup.center(e, o);
354
382
  }
355
383
  layerpro.popup.unmount = e => {
356
- const t = g.get(e);
357
- t && (t.unmount(), g.delete(e));
384
+ const t = layerpro.popup.getReactRoots();
385
+ if (t) {
386
+ const o = t.get(e);
387
+ o && (o.unmount(), t.delete(e));
388
+ }
358
389
  }, layerpro.popup.cleanupEvents = e => {
359
- const t = v.get(e);
360
- t && (t.iconClick && h(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && h(`.icon_close_${e}`, "#popup_dock")?.off("click"),
361
- t.buttonIconize && h(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && h(`.button_maximize_${e}`)?.off("click"),
362
- t.buttonClose && h(`.button_close_${e}`)?.off("click"), t.escKey && b.off("keydown", {
390
+ const t = y.get(e);
391
+ t && (t.iconClick && f(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && f(`.icon_close_${e}`, "#popup_dock")?.off("click"),
392
+ t.buttonIconize && f(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && f(`.button_maximize_${e}`)?.off("click"),
393
+ t.buttonClose && f(`.button_close_${e}`)?.off("click"), t.escKey && g.off("keydown", {
363
394
  ns: `esc-${e}`
364
- }), v.delete(e));
365
- }, layerpro.popup.getReactRoot = e => g.get(e), m(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
366
- e.icon && m(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
367
- const n = w(String(e.name));
368
- m(`<div class="popup_drag_${e.id} popup_drag">${n}</div>`).appendTo(`.popup_bar_${e.id}`),
369
- m(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
370
- !0 !== e.iconize || h("#popup_dock") || (h("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
371
- m('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
395
+ }), y.delete(e));
396
+ }, layerpro.popup.getReactRoots = () => null, layerpro.popup.abortSource = e => {
397
+ const t = v.get(e);
398
+ t && (t.abort(), v.delete(e));
399
+ }, b(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
400
+ e.icon && b(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
401
+ const n = z(String(e.name));
402
+ b(`<div class="popup_drag_${e.id} popup_drag">${n}</div>`).appendTo(`.popup_bar_${e.id}`),
403
+ b(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
404
+ !0 !== e.iconize || f("#popup_dock") || (f("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
405
+ b('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
372
406
  pointerEvents: "auto",
373
407
  zIndex: layerpro.popup.zIndex() + 1e3
374
408
  }));
375
- if (h("#popup_dock") && !0 === e.dockable) {
409
+ if (f("#popup_dock") && !0 === e.dockable) {
376
410
  const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${n}</span>\n </div>\n `, i = () => {
377
- const t = h(".popup_overflow_" + e.id, "#popup");
411
+ const t = f(".popup_overflow_" + e.id, "#popup");
378
412
  t && t.data("iconize") ? (layerpro.popup.index(e), layerpro.popup.iconize(e)) : layerpro.popup.iconize(e),
379
413
  layerpro.popup.index(e);
380
414
  }, s = t => {
381
415
  t?.stopPropagation(), e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
382
416
  };
383
- v.set(t, {
417
+ y.set(t, {
384
418
  iconClick: !0,
385
419
  iconClose: !0
386
- }), m(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", i),
387
- m(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
420
+ }), b(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", i),
421
+ b(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
388
422
  }
389
423
  if (!0 === e.iconize) {
390
424
  const t = String(e.id), o = () => {
391
425
  layerpro.popup.iconize(e);
392
- }, i = v.get(t) || {};
393
- i.buttonIconize = !0, v.set(t, i), m(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
426
+ }, i = y.get(t) || {};
427
+ i.buttonIconize = !0, y.set(t, i), b(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
394
428
  }
395
429
  if (!0 === e.maximize) {
396
430
  const t = String(e.id), o = () => {
397
431
  layerpro.popup.maximize(e);
398
- }, i = v.get(t) || {};
399
- i.buttonMaximize = !0, v.set(t, i), m(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
432
+ }, i = y.get(t) || {};
433
+ i.buttonMaximize = !0, y.set(t, i), b(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
400
434
  }
401
435
  if (!0 === e.close) {
402
436
  const t = String(e.id), o = () => {
403
437
  e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
404
- }, i = v.get(t) || {};
405
- i.buttonClose = !0, v.set(t, i), m(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
438
+ }, i = y.get(t) || {};
439
+ i.buttonClose = !0, y.set(t, i), b(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
406
440
  }
407
- const s = String(e.id), p = v.get(s) || {};
408
- if (p.escKey = !0, v.set(s, p), b.on("keydown", t => {
441
+ const s = String(e.id), p = y.get(s) || {};
442
+ if (p.escKey = !0, y.set(s, p), g.on("keydown", t => {
409
443
  const o = t;
410
444
  "Escape" !== o.key && 27 !== o.keyCode || (e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(),
411
445
  layerpro.popup.close(e));
@@ -417,93 +451,75 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
417
451
  layerpro.popup.close(e), clearTimeout(t[String(`st_${e.id}`)]);
418
452
  }, e.timer);
419
453
  }
420
- if (e.source) {
421
- const t = h(`.popup_body_${e.id}`), o = String(e.source);
422
- let i;
423
- try {
424
- i = new URL(o, window.location.origin);
425
- } catch {
426
- return;
427
- }
428
- if (i.origin !== window.location.origin) return;
429
- fetch(o, {
430
- mode: "same-origin"
431
- }).then(e => {
432
- if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
433
- return e.text();
434
- }).then(o => {
435
- const i = w(o);
436
- t?.hide().html(i).fadeIn(e.fadeIn);
437
- }).catch(e => {});
438
- }
439
454
  e.movable && layerpro.popup.movable(e), e.resizable && layerpro.popup.resizable(e),
440
- e.isMaximize && layerpro.popup.maximize(e), m(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
441
- m(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
442
- z(e), x(e);
455
+ e.isMaximize && layerpro.popup.maximize(e), b(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
456
+ b(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
457
+ x(e), k(e), T(e);
443
458
  });
444
459
  })(e), e;
445
460
  },
446
461
  dispatch: e => {
447
- Z.store(e);
462
+ Y.store(e);
448
463
  },
449
464
  store: e => {},
450
465
  show: e => {
451
- const t = e instanceof u ? e : "string" == typeof e ? h(e) : null;
466
+ const t = e instanceof h ? e : "string" == typeof e ? f(e) : null;
452
467
  t?.toggle();
453
468
  },
454
469
  vfx: (e, t, o = !1) => {
455
470
  setTimeout(() => {
456
- f('[class^="popup_overflow_"]', "#popup").forEach(e => {
471
+ m('[class^="popup_overflow_"]', "#popup").forEach(e => {
457
472
  e.css("opacity", !0 === t ? 1 : .5), e.find('[class^="popup_body_"]')?.css({
458
473
  "content-visibility": !0 === t ? "auto" : "hidden"
459
474
  });
460
475
  });
461
- const i = e instanceof u ? e : "string" == typeof e ? h(e) : null;
462
- i?.css("opacity", 1), !o && i && f('[class^="popup_body_"]', i.el).forEach(e => e.css("content-visibility", "visible"));
476
+ const i = e instanceof h ? e : "string" == typeof e ? f(e) : null;
477
+ i?.css("opacity", 1), !o && i && m('[class^="popup_body_"]', i.el).forEach(e => e.css("content-visibility", "visible"));
463
478
  }, 1), dispatchEvent(new Event("layerProResize"));
464
479
  },
465
480
  center: (e, t = 0) => {
466
- const o = h(".popup_overflow_" + F(e), "#popup");
481
+ const o = f(".popup_overflow_" + X(e), "#popup");
467
482
  o && (o.css("top", Math.max(0, (_.height() - o.outerHeight()) / 2 + _.scrollTop() + t)),
468
483
  o.css("left", Math.max(0, (_.width() - o.outerWidth()) / 2 + _.scrollLeft() + t)));
469
484
  },
470
- checkArea: e => [ L(e), M(e), _.scrollLeft(), _.scrollTop(), _.height(), _.width() ],
485
+ checkArea: e => [ M(e), O(e), _.scrollLeft(), _.scrollTop(), _.height(), _.width() ],
471
486
  close: e => {
472
487
  let t;
473
488
  if (e) {
474
- t = F(e);
489
+ t = X(e);
475
490
  const o = "object" == typeof e && null !== e ? e : void 0;
476
- layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t));
477
- const i = Y.get(String(t));
491
+ layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.abortSource && layerpro.popup.abortSource(String(t)),
492
+ layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t));
493
+ const i = W.get(String(t));
478
494
  if (i) {
479
495
  const e = {
480
496
  passive: !1
481
497
  };
482
498
  i.move && document.removeEventListener("pointermove", i.move, e), i.up && document.removeEventListener("pointerup", i.up, e),
483
- Y.delete(String(t));
499
+ W.delete(String(t));
484
500
  }
485
- const n = U.get(String(t));
501
+ const n = R.get(String(t));
486
502
  if (n) {
487
503
  const e = {
488
504
  passive: !1
489
505
  };
490
506
  n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
491
- U.delete(String(t));
507
+ R.delete(String(t));
492
508
  }
493
- (o ? !0 === o.raised : !!h(".popup_raised_" + t)) ? h(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => h(".popup_raised_" + t)?.remove()) : h(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
494
- h(".popup_overflow_" + t)?.remove(), h(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => h(".popup_raised_" + t)?.remove());
509
+ (o ? !0 === o.raised : !!f(".popup_raised_" + t)) ? f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove()) : f(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
510
+ f(".popup_overflow_" + t)?.remove(), f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove());
495
511
  });
496
- } else h("#popup")?.fadeOut(() => h("#popup")?.remove());
497
- setTimeout(() => Z.removeDock(e), 300);
512
+ } else f("#popup")?.fadeOut(() => f("#popup")?.remove());
513
+ setTimeout(() => Y.removeDock(e), 300);
498
514
  },
499
515
  removeDock: e => {
500
- const t = F(e);
501
- h(".icon_" + t)?.remove(), f('[class^="popup_overflow_"]', "#popup").length < 1 && (h("#root")?.css("margin", "0"),
502
- h("#popup_dock")?.remove());
516
+ const t = X(e);
517
+ f(".icon_" + t)?.remove(), m('[class^="popup_overflow_"]', "#popup").length < 1 && (f("#root")?.css("margin", "0"),
518
+ f("#popup_dock")?.remove());
503
519
  },
504
520
  iconize: e => {
505
- const t = F(e), o = h(".popup_overflow_" + t, "#popup");
506
- if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (Z.vfx(o, !1, !0),
521
+ const t = X(e), o = f(".popup_overflow_" + t, "#popup");
522
+ if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (Y.vfx(o, !1, !0),
507
523
  o.data("iconize")) {
508
524
  if (o.data("iconize")) {
509
525
  const e = o.data("iconize");
@@ -513,10 +529,10 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
513
529
  width: e.w,
514
530
  height: e.h,
515
531
  opacity: 1
516
- }), Z.vfx(o, !0), o.removeData("iconize");
532
+ }), Y.vfx(o, !0), o.removeData("iconize");
517
533
  }
518
534
  } else {
519
- const e = h(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
535
+ const e = f(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
520
536
  o.data("iconize", {
521
537
  y: o.el.offsetTop,
522
538
  x: o.el.offsetLeft,
@@ -528,12 +544,12 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
528
544
  width: 0,
529
545
  height: 0,
530
546
  opacity: 0
531
- }), Z.vfx(o, !0);
547
+ }), Y.vfx(o, !0);
532
548
  }
533
549
  },
534
550
  maximize: e => {
535
- const t = h(".popup_overflow_" + F(e), "#popup"), o = t ? h('[class^="resize_"]', t.el) : null;
536
- if (Z.vfx(t, !1, !0), t?.data("store")) {
551
+ const t = f(".popup_overflow_" + X(e), "#popup"), o = t ? f('[class^="resize_"]', t.el) : null;
552
+ if (Y.vfx(t, !1, !0), t?.data("store")) {
537
553
  if (t?.data("store")) {
538
554
  const i = t.data("store");
539
555
  t.css({
@@ -545,8 +561,8 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
545
561
  width: i.w,
546
562
  height: i.h
547
563
  }), o?.on("pointerdown", function(t) {
548
- Z.resizeModals(t, this, e);
549
- }), Z.vfx(t, !0), t.removeData("store");
564
+ Y.resizeModals(t, this, e);
565
+ }), Y.vfx(t, !0), t.removeData("store");
550
566
  }
551
567
  } else t.data("store", {
552
568
  y: t.el.offsetTop,
@@ -561,39 +577,39 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
561
577
  bottom: 39,
562
578
  width: "auto",
563
579
  height: "auto"
564
- }), o?.off("pointerdown"), Z.vfx(t, !0, !0);
580
+ }), o?.off("pointerdown"), Y.vfx(t, !0, !0);
565
581
  },
566
582
  movable: e => {
567
583
  if (!1 === e.movable) return;
568
- const t = F(e), o = String(t), i = h(".popup_overflow_" + t, "#popup"), n = i ? h(".popup_drag_" + t, i.el) : null, s = i ? h(".popup_body_" + t, i.el) : null;
584
+ const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup"), n = i ? f(".popup_drag_" + t, i.el) : null, s = i ? f(".popup_body_" + t, i.el) : null;
569
585
  i?.css("touch-action", "none");
570
586
  let p = 0, r = 0, a = 0, l = 0;
571
587
  const c = e => {
572
588
  e.preventDefault();
573
- const t = L(e), o = M(e);
574
- p = a - t, r = l - o, a = t, l = o, Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && i?.css("top", i.el.offsetTop - r),
575
- Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && i?.css("left", i.el.offsetLeft - p);
589
+ const t = M(e), o = O(e);
590
+ p = a - t, r = l - o, a = t, l = o, Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && i?.css("top", i.el.offsetTop - r),
591
+ Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && i?.css("left", i.el.offsetLeft - p);
576
592
  }, d = () => {
577
593
  const e = {
578
594
  passive: !1
579
595
  };
580
596
  document.removeEventListener("pointermove", c, e), document.removeEventListener("pointerup", d, e),
581
- Y.delete(o), s?.css("pointer-events", "auto"), Z.vfx(i, !0);
597
+ W.delete(o), s?.css("pointer-events", "auto"), Y.vfx(i, !0);
582
598
  };
583
- Y.set(o, {
599
+ W.set(o, {
584
600
  move: c,
585
601
  up: d
586
602
  });
587
603
  n?.el.addEventListener("pointerdown", e => {
588
604
  "fixed" !== i?.el.style.position && (e.preventDefault(), s?.css("pointer-events", "none"),
589
- u(e), Z.vfx(i, !1));
605
+ u(e), Y.vfx(i, !1));
590
606
  }, {
591
607
  passive: !1
592
608
  }), e.maximize && n?.on("dblclick", () => {
593
609
  layerpro.popup.maximize(e);
594
610
  });
595
611
  const u = e => {
596
- a = L(e), l = M(e);
612
+ a = M(e), l = O(e);
597
613
  const t = {
598
614
  passive: !1
599
615
  };
@@ -602,134 +618,142 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
602
618
  },
603
619
  resizable: e => {
604
620
  if (!e.resizable) return;
605
- const t = F(e), o = String(t), i = h(".popup_overflow_" + t, "#popup");
606
- for (let e = 4; e--; ) m(`<div class='resize_${e}'>`).appendTo(i?.el).css("touch-action", "none"),
607
- m(`<div class='resize_corner_${e}'>`).appendTo(i?.el).css("touch-action", "none");
608
- const n = U.get(o) || {};
621
+ const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup");
622
+ for (let e = 4; e--; ) b(`<div class='resize_${e}'>`).appendTo(i?.el).css("touch-action", "none"),
623
+ b(`<div class='resize_corner_${e}'>`).appendTo(i?.el).css("touch-action", "none");
624
+ const n = R.get(o) || {};
609
625
  n.down = function(t) {
610
- Z.resizeModals(t, this, e);
611
- }, U.set(o, n);
626
+ Y.resizeModals(t, this, e);
627
+ }, R.set(o, n);
612
628
  const s = {
613
629
  passive: !1
614
630
  };
615
- f("[class^=resize_]").forEach(t => {
631
+ m("[class^=resize_]").forEach(t => {
616
632
  t.el.addEventListener("pointerdown", o => {
617
- o.preventDefault(), Z.resizeModals(o, t.el, e);
633
+ o.preventDefault(), Y.resizeModals(o, t.el, e);
618
634
  }, s);
619
635
  });
620
636
  },
621
637
  resizeModals: (e, t, o) => {
622
- const i = t instanceof HTMLElement ? new u(t) : h(t), n = i?.parent(), s = String(o.id);
638
+ const i = t instanceof HTMLElement ? new h(t) : f(t), n = i?.parent(), s = String(o.id);
623
639
  n?.el.style.setProperty("transition", "none");
624
- const p = L(e), r = M(e), a = [ p - _.scrollLeft(), r - _.scrollTop() ];
625
- o.minWidth, K()?.css("pointer-events", "none"), n?.css("pointer-events", "none"),
626
- Z.vfx(n, !1);
640
+ const p = M(e), r = O(e), a = [ p - _.scrollLeft(), r - _.scrollTop() ];
641
+ o.minWidth, D()?.css("pointer-events", "none"), n?.css("pointer-events", "none"),
642
+ Y.vfx(n, !1);
627
643
  const l = e => {
628
- Z.doRes(e, t);
644
+ Y.doRes(e, t);
629
645
  }, c = () => {
630
- Z.stopRes(t, s);
631
- }, d = U.get(s) || {};
632
- d.move = l, d.up = c, U.set(s, d);
633
- const f = {
646
+ Y.stopRes(t, s);
647
+ }, d = R.get(s) || {};
648
+ d.move = l, d.up = c, R.set(s, d);
649
+ const u = {
634
650
  passive: !1
635
651
  };
636
- document.addEventListener("pointermove", l, f), document.addEventListener("pointerup", c, f),
637
- H = a[0], j = a[1], W = n?.width() ?? 0, R = n?.height() ?? 0, D = n?.position().left ?? 0,
638
- q = n?.position().top ?? 0, B = q + R + 1, X = D + W + 1, O = t;
652
+ document.addEventListener("pointermove", l, u), document.addEventListener("pointerup", c, u);
653
+ const m = n?.position().left ?? 0, b = n?.position().top ?? 0, g = n?.width() ?? 0, v = n?.height() ?? 0;
654
+ B = {
655
+ id: String(o.id),
656
+ startX: a[0],
657
+ startY: a[1],
658
+ startWidth: g,
659
+ startHeight: v,
660
+ startLeft: m,
661
+ startTop: b,
662
+ startBottom: b + v + 1,
663
+ startRight: m + g + 1
664
+ }, H = t;
639
665
  },
640
666
  doRes: (e, t) => {
641
667
  dispatchEvent(new Event("layerProResize"));
642
- const o = t instanceof HTMLElement ? new u(t) : h(t), i = o?.parent(), n = L(e), s = M(e), p = [ n - _.scrollLeft(), s - _.scrollTop() ];
643
- if (t === O) {
644
- let t = W + p[0] - H, n = R + p[1] - j;
645
- const s = W - p[0] + H, r = R - p[1] + j;
646
- t <= 0 && (t = 0), n <= 0 && (n = 0), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && o?.hasClass("resize_0") && (i && i.height() <= N && r > N && i.css({
647
- height: Number(N + 1)
648
- }), i && i.height() > N && N <= r && i.css({
649
- top: Number(B - r),
650
- height: parseInt(String(r))
651
- })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && o?.hasClass("resize_1") && (i && i.width() >= S && i.css({
652
- width: Number(t),
653
- right: Number(D - t)
654
- }), i && i.width() <= S && i.css({
655
- width: Number(S + 1)
656
- })), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && o?.hasClass("resize_2") && (i && i.height() >= N && i.css({
657
- height: Number(n)
658
- }), i && i.height() <= N && n > N && i.css({
659
- height: Number(N + 1)
660
- })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && o?.hasClass("resize_3") && (i && i.width() <= S && s > S && i.css({
661
- width: Number(S + 1)
662
- }), i && i.width() > S && S <= s && i.css({
663
- width: parseInt(String(s)),
664
- left: Number(X - s)
665
- })), Z.checkArea(e)[1] < Z.checkArea(e)[4] && Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && 1 === Math.sign(Z.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (i && i.height() >= N && r > N && i.css({
666
- top: Number(B - r),
667
- height: parseInt(String(r))
668
- }), i && i.height() <= N && r > N && i.css({
669
- height: Number(N + 1)
670
- }), i && i.width() >= S && s > S && i.css({
671
- width: parseInt(String(s)),
672
- left: Number(X - s)
673
- }), i && i.width() <= S && s > S && i.css({
674
- width: Number(S + 1)
675
- })), o?.hasClass("resize_corner_1") && (i && i.height() >= N && r > N && i.css({
676
- top: Number(B - r),
677
- height: Number(r)
678
- }), i && i.height() <= N && r > N && i.css({
679
- height: Number(N + 1)
680
- }), i && i.width() >= S && i.css({
681
- width: Number(t),
682
- right: Number(D - t)
683
- }), i && i.width() <= S && s > S && i.css({
684
- width: Number(S + 1)
685
- })), o?.hasClass("resize_corner_2") && (i && i.height() >= N && i.css({
686
- height: Number(n)
687
- }), i && i.height() <= N && n > N && i.css({
688
- height: Number(N + 1)
689
- }), i && i.width() >= S && i.css({
690
- width: Number(t),
691
- right: Number(D - t)
692
- }), i && i.width() <= S && i.css({
693
- width: Number(S + 1)
694
- })), o?.hasClass("resize_corner_3") && (i && i.height() >= N && n > N && i.css({
695
- height: Number(n)
696
- }), i && i.height() <= N && n > N && i.css({
697
- height: Number(N + 1)
698
- }), i && i.width() >= S && s > S && i.css({
699
- width: Number(s),
700
- left: Number(X - s)
701
- }), i && i.width() <= S && s > S && i.css({
702
- width: Number(S + 1)
668
+ const o = t instanceof HTMLElement ? new h(t) : f(t), i = o?.parent(), n = M(e), s = O(e), p = [ n - _.scrollLeft(), s - _.scrollTop() ];
669
+ if (t === H && B) {
670
+ const t = B;
671
+ let n = t.startWidth + p[0] - t.startX, s = t.startHeight + p[1] - t.startY;
672
+ const r = t.startWidth - p[0] + t.startX, a = t.startHeight - p[1] + t.startY;
673
+ n <= 0 && (n = 0), s <= 0 && (s = 0), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_0") && (i && i.height() <= A && a > A && i.css({
674
+ height: Number(A + 1)
675
+ }), i && i.height() > A && A <= a && i.css({
676
+ top: Number(t.startBottom - a),
677
+ height: parseInt(String(a))
678
+ })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_1") && (i && i.width() >= N && i.css({
679
+ width: Number(n),
680
+ right: Number(t.startLeft - n)
681
+ }), i && i.width() <= N && i.css({
682
+ width: Number(N + 1)
683
+ })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_2") && (i && i.height() >= A && i.css({
684
+ height: Number(s)
685
+ }), i && i.height() <= A && s > A && i.css({
686
+ height: Number(A + 1)
687
+ })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_3") && (i && i.width() <= N && r > N && i.css({
688
+ width: Number(N + 1)
689
+ }), i && i.width() > N && N <= r && i.css({
690
+ width: parseInt(String(r)),
691
+ left: Number(t.startRight - r)
692
+ })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && 1 === Math.sign(Y.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (i && i.height() >= A && a > A && i.css({
693
+ top: Number(t.startBottom - a),
694
+ height: parseInt(String(a))
695
+ }), i && i.height() <= A && a > A && i.css({
696
+ height: Number(A + 1)
697
+ }), i && i.width() >= N && r > N && i.css({
698
+ width: parseInt(String(r)),
699
+ left: Number(t.startRight - r)
700
+ }), i && i.width() <= N && r > N && i.css({
701
+ width: Number(N + 1)
702
+ })), o?.hasClass("resize_corner_1") && (i && i.height() >= A && a > A && i.css({
703
+ top: Number(t.startBottom - a),
704
+ height: Number(a)
705
+ }), i && i.height() <= A && a > A && i.css({
706
+ height: Number(A + 1)
707
+ }), i && i.width() >= N && i.css({
708
+ width: Number(n),
709
+ right: Number(t.startLeft - n)
710
+ }), i && i.width() <= N && r > N && i.css({
711
+ width: Number(N + 1)
712
+ })), o?.hasClass("resize_corner_2") && (i && i.height() >= A && i.css({
713
+ height: Number(s)
714
+ }), i && i.height() <= A && s > A && i.css({
715
+ height: Number(A + 1)
716
+ }), i && i.width() >= N && i.css({
717
+ width: Number(n),
718
+ right: Number(t.startLeft - n)
719
+ }), i && i.width() <= N && i.css({
720
+ width: Number(N + 1)
721
+ })), o?.hasClass("resize_corner_3") && (i && i.height() >= A && s > A && i.css({
722
+ height: Number(s)
723
+ }), i && i.height() <= A && s > A && i.css({
724
+ height: Number(A + 1)
725
+ }), i && i.width() >= N && r > N && i.css({
726
+ width: Number(r),
727
+ left: Number(t.startRight - r)
728
+ }), i && i.width() <= N && r > N && i.css({
729
+ width: Number(N + 1)
703
730
  })));
704
731
  }
705
732
  },
706
733
  stopRes: (e, t) => {
707
- const o = e instanceof HTMLElement ? new u(e) : h(e), i = o?.parent();
734
+ const o = e instanceof HTMLElement ? new h(e) : f(e), i = o?.parent();
708
735
  i?.el.style.setProperty("transition", ""), o?.el.style.setProperty("transition", ""),
709
- K()?.css("pointer-events", "auto"), i?.css("pointer-events", "auto"), Z.vfx(i, !0),
710
- O = !1;
711
- const n = U.get(t);
736
+ D()?.css("pointer-events", "auto"), i?.css("pointer-events", "auto"), Y.vfx(i, !0),
737
+ H = !1, B?.id === t && (B = null);
738
+ const n = R.get(t);
712
739
  if (n) {
713
740
  const e = {
714
741
  passive: !1
715
742
  };
716
743
  n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
717
- U.delete(t);
744
+ R.delete(t);
718
745
  }
719
746
  },
720
747
  index: e => {
721
- const t = F(e), o = f('[class^="popup_overflow_"]', "#popup");
722
- f('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), f('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
723
- f('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
724
- o.forEach(e => {
725
- const t = parseInt(e.el.style.zIndex || "0", 10);
726
- e.css("zIndex", t - 1);
727
- }), h(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), h(".popup_overflow_" + t, "#popup")?.css("zIndex", Z.zIndex()),
728
- h(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), h(".popup_window_" + t, "#popup")?.addClass("zHigh");
748
+ const t = X(e);
749
+ m('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
750
+ m('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
751
+ f(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_overflow_" + t, "#popup")?.css("zIndex", Y.zIndex()),
752
+ f(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_window_" + t, "#popup")?.addClass("zHigh");
729
753
  },
730
754
  zIndex: () => {
731
- if (!A) {
732
- A = !0;
755
+ if (!P) {
756
+ P = !0;
733
757
  try {
734
758
  const e = getComputedStyle(document.documentElement).getPropertyValue("--popup-z-index").trim();
735
759
  if (e) {
@@ -743,35 +767,37 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
743
767
  };
744
768
 
745
769
  Object.defineProperty(layerpro, "popup", {
746
- value: Z,
770
+ value: Y,
747
771
  writable: !1,
748
772
  configurable: !1
749
- }), globalThis.popup = Z, Object.defineProperty(window, "popup", {
773
+ }), globalThis.popup = Y, Object.defineProperty(window, "popup", {
750
774
  enumerable: !1
751
775
  });
752
776
 
753
- var G = {
777
+ var q = {
754
778
  "&": "&amp;",
755
779
  "<": "&lt;",
756
780
  ">": "&gt;",
757
781
  '"': "&quot;",
758
782
  "'": "&#39;"
759
- }, J = e => e.replace(/[&<>"']/g, e => G[e]), V = globalThis.alert, Q = globalThis.confirm, ee = globalThis.prompt, te = globalThis.message;
783
+ }, U = e => e.replace(/[&<>"']/g, e => q[e]), K = globalThis.alert, F = globalThis.confirm, G = globalThis.prompt, Z = globalThis.message, J = () => {
784
+ globalThis.message = (e, t) => layerpro.message(e, t), globalThis.alert = e => layerpro.alert(e),
785
+ globalThis.confirm = (e, t, o) => layerpro.confirm(e, t, o), globalThis.prompt = (e, t, o) => layerpro.prompt(e, t),
786
+ Object.defineProperty(window, "alert", {
787
+ enumerable: !1
788
+ }), Object.defineProperty(window, "prompt", {
789
+ enumerable: !1
790
+ }), Object.defineProperty(window, "message", {
791
+ enumerable: !1
792
+ }), Object.defineProperty(window, "confirm", {
793
+ enumerable: !1
794
+ });
795
+ };
760
796
 
761
- globalThis.message = (e, t) => layerpro.message(e, t), globalThis.alert = e => layerpro.alert(e),
762
- globalThis.confirm = (e, t, o) => layerpro.confirm(e, t, o), globalThis.prompt = (e, t, o) => layerpro.prompt(e, t),
763
- Object.defineProperty(window, "alert", {
764
- enumerable: !1
765
- }), Object.defineProperty(window, "prompt", {
766
- enumerable: !1
767
- }), Object.defineProperty(window, "message", {
768
- enumerable: !1
769
- }), Object.defineProperty(window, "confirm", {
770
- enumerable: !1
771
- }), Object.defineProperties(layerpro, {
797
+ J(), Object.defineProperties(layerpro, {
772
798
  prompt: {
773
799
  value: (e, t) => {
774
- const o = t || "_prompt", i = J(String(e)), n = layerpro.popup.open({
800
+ const o = t || "_prompt", i = U(String(e)), n = layerpro.popup.open({
775
801
  id: "__prompt",
776
802
  name: "Prompt",
777
803
  icon: "&#9998;",
@@ -786,13 +812,13 @@ Object.defineProperty(window, "alert", {
786
812
  movable: !0,
787
813
  resizable: !1
788
814
  }), s = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${n.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${n.id}" type="button">OK</button>\n <button id="b_${n.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
789
- h(".popup_body_" + n.id)?.html(s);
790
- const p = h("#input_" + n.id);
815
+ f(".popup_body_" + n.id)?.html(s);
816
+ const p = f("#input_" + n.id);
791
817
  p?.on("focus", () => {
792
818
  p.attr("placeholder", "");
793
819
  })?.on("blur", () => {
794
820
  p.attr("placeholder", "write here");
795
- }), h("#a_" + n.id)?.on("click", () => {
821
+ }), f("#a_" + n.id)?.on("click", () => {
796
822
  const e = p?.val() ?? "";
797
823
  if (e > "") {
798
824
  if ("function" == typeof o) {
@@ -802,14 +828,14 @@ Object.defineProperty(window, "alert", {
802
828
  if (String(o) === o) return JSON.stringify(e);
803
829
  layerpro.popup.close(n);
804
830
  } else alert("input can't be empty!");
805
- }), h("#b_" + n.id)?.on("click", () => {
831
+ }), f("#b_" + n.id)?.on("click", () => {
806
832
  layerpro.popup.close(n);
807
833
  });
808
834
  }
809
835
  },
810
836
  alert: {
811
837
  value: e => {
812
- const t = J(String(e)), o = layerpro.popup.open({
838
+ const t = U(String(e)), o = layerpro.popup.open({
813
839
  id: "__alert",
814
840
  name: "Warning",
815
841
  icon: "&#9888;",
@@ -824,14 +850,14 @@ Object.defineProperty(window, "alert", {
824
850
  movable: !0,
825
851
  resizable: !1
826
852
  }), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + o.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
827
- h(".popup_body_" + o.id)?.html(i), h("#a_" + o.id)?.on("click", () => {
853
+ f(".popup_body_" + o.id)?.html(i), f("#a_" + o.id)?.on("click", () => {
828
854
  layerpro.popup.close(o);
829
855
  });
830
856
  }
831
857
  },
832
858
  message: {
833
859
  value: (e, t) => {
834
- const o = J(String(e)), i = layerpro.popup.open({
860
+ const o = U(String(e)), i = layerpro.popup.open({
835
861
  id: "__message",
836
862
  name: "Message",
837
863
  icon: "&#9965;",
@@ -846,15 +872,15 @@ Object.defineProperty(window, "alert", {
846
872
  movable: !0,
847
873
  resizable: !1
848
874
  }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${o}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
849
- h(".popup_body_" + i.id)?.html(n), h("#a_" + i.id)?.on("click", () => {
875
+ f(".popup_body_" + i.id)?.html(n), f("#a_" + i.id)?.on("click", () => {
850
876
  t && t(), layerpro.popup.close(i);
851
877
  });
852
878
  }
853
879
  },
854
880
  confirm: {
855
881
  value: (e, t, o) => {
856
- if (!h(".confirm")) {
857
- const i = J(String(e)), n = layerpro.popup.open({
882
+ if (!f(".confirm")) {
883
+ const i = U(String(e)), n = layerpro.popup.open({
858
884
  id: "__confirm",
859
885
  name: "Confirm",
860
886
  icon: "&#9745;",
@@ -869,27 +895,27 @@ Object.defineProperty(window, "alert", {
869
895
  movable: !0,
870
896
  resizable: !1
871
897
  }), s = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
872
- h(".popup_body_" + n.id)?.html(s), h("#a_" + n.id)?.on("click", () => {
898
+ f(".popup_body_" + n.id)?.html(s), f("#a_" + n.id)?.on("click", () => {
873
899
  t && t(), layerpro.popup.close(n);
874
- }), h("#b_" + n.id)?.on("click", () => {
900
+ }), f("#b_" + n.id)?.on("click", () => {
875
901
  o && o(), layerpro.popup.close(n);
876
902
  });
877
903
  }
878
904
  }
879
905
  },
906
+ installGlobals: {
907
+ value: J
908
+ },
880
909
  noGlobals: {
881
910
  value: () => {
882
911
  const e = globalThis;
883
- e.alert = V, e.confirm = Q, e.prompt = ee, void 0 === te ? delete e.message : e.message = te;
912
+ e.alert = K, e.confirm = F, e.prompt = G, void 0 === Z ? delete e.message : e.message = Z;
884
913
  }
885
914
  }
886
- }), globalThis.layerpro.offScreenBuffering = !0, addEventListener("wheel", e => {}, {
887
- capture: !0,
888
- passive: !0
889
915
  });
890
916
 
891
- C = (e, t) => {
892
- f('[class^="popup_overflow_"]').forEach(e => {
917
+ S = (e, t) => {
918
+ m('[class^="popup_overflow_"]').forEach(e => {
893
919
  const t = e.el.className.match(/popup_overflow_(\d+)/);
894
920
  t && t[1] && layerpro.popup.close({
895
921
  id: t[1],
@@ -898,10 +924,10 @@ C = (e, t) => {
898
924
  });
899
925
  };
900
926
 
901
- var oe = globalThis.layerpro;
927
+ var V = globalThis.layerpro;
902
928
 
903
- oe.setProps(oe, {
929
+ V.setProps(V, {
904
930
  configurable: !1,
905
931
  enumerable: !1,
906
932
  writable: !1
907
- }), Object.freeze(oe);
933
+ }), Object.freeze(V);