layerpro 3.1.1 → 3.2.0

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