dphelper 1.6.1 β 1.6.2
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/CHANGELOG.md +10 -0
- package/FUNDING.yml +16 -0
- package/LICENSE +21 -0
- package/README.md +155 -0
- package/SECURITY.md +3 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## Changelog
|
|
2
|
+
|
|
3
|
+
New minor (feature) releases of this app/software are released every six months and
|
|
4
|
+
patch (bugfix) releases are released every month. More information on the
|
|
5
|
+
release cycle: see package.json
|
|
6
|
+
|
|
7
|
+
## Previous
|
|
8
|
+
|
|
9
|
+
Please see the git history for the details of previous versions.
|
|
10
|
+
You can see HISTORY.md for all information.
|
package/FUNDING.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: passariello
|
|
4
|
+
patreon: passariello
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: passariello
|
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: passariello
|
|
10
|
+
issuehunt: passariello
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom:
|
|
13
|
+
[
|
|
14
|
+
"https://dario.passariello.ca",
|
|
15
|
+
"https://www.indiegogo.com/individuals/28513718",
|
|
16
|
+
]
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Dario Passariello
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# I am dpHelper
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
**Manager | DevTools** by [Dario Passariello](https://dario.passariello.ca) (c)
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## About π₯
|
|
12
|
+
|
|
13
|
+
dpHelper is a pricise and complete collection of 190+ tools ready to use in all web/SaaS application. State and Store Management are now easy and global. Just for example **state.myData = "hello world"** and your string is ready everywhere in your Ajax or React app. It's more easy and intuitive of Redux.
|
|
14
|
+
You don't need to creare any extra files, dispatch or reducer.
|
|
15
|
+
|
|
16
|
+
Please, read the [LICENSE](/LICENSE.txt) agreement before to implementing in your application.
|
|
17
|
+
|
|
18
|
+
## Live demo
|
|
19
|
+
|
|
20
|
+
[https://a51.dev/tests/](https://a51.dev/tests/)
|
|
21
|
+
|
|
22
|
+
You can see an HTML version where dpHelper and LayerPro works.
|
|
23
|
+
You can use with html, react, vue or any other frontend / library.
|
|
24
|
+
|
|
25
|
+
## What you need to know about "no-refresh/reload" π§
|
|
26
|
+
|
|
27
|
+
dpHelper is designed to work primaly with website, application and portals that use "AJAX / XMLHttpRequest" technology like PWA, SPA, Angular, React, JQuery etc.
|
|
28
|
+
What mean?... So, modern browser and modern application use "NO REFRESH" behavior and these render only the part of browser needs changes instead re-render o refresh the entire page. Refresh o reload the entire page cause the lose of entire "states" ... my suggestion is to redesign/rewamp your code using a technology more robust and faster. So, if you want to use dpHelper as state / store manager you can use only store function in a non Ajax engine. Feel free to contact me in case you need support or more information.
|
|
29
|
+
|
|
30
|
+
Here some links for you:
|
|
31
|
+
|
|
32
|
+
[Ajax_(programming)](https://en.wikipedia.org/wiki/Ajax_(programming))
|
|
33
|
+
|
|
34
|
+
[SPA (Single-page application)](https://developer.mozilla.org/en-US/docs/Glossary/SPA)
|
|
35
|
+
|
|
36
|
+
[XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)
|
|
37
|
+
|
|
38
|
+
<!--You are not a tech guy, nerd or geek? ... no worries. Fix it... go to hiring one π€-->
|
|
39
|
+
|
|
40
|
+
## The Best Way To Use State and Store π₯
|
|
41
|
+
|
|
42
|
+
You can use "state" to store all what you want and reuse everywhere. Like other state manager you can store information in JSON format and you can use them in react, useEffect, dispatch in a very easy way.
|
|
43
|
+
|
|
44
|
+
_example:_
|
|
45
|
+
|
|
46
|
+
You can use browser's devtools console and type " **state.test = 'I am ready'** ".
|
|
47
|
+
Every time you want to use '**test**' values you need just recall **state.test**.
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
// Set a state
|
|
51
|
+
state.test = "I am ready";
|
|
52
|
+
|
|
53
|
+
// Get the state
|
|
54
|
+
state.test
|
|
55
|
+
|
|
56
|
+
// List all states
|
|
57
|
+
state
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Observer π
|
|
61
|
+
|
|
62
|
+
If you want to run a function everytime a state change... you can use:
|
|
63
|
+
|
|
64
|
+
```javascript
|
|
65
|
+
/**
|
|
66
|
+
* Observer is a non cumulative listener,
|
|
67
|
+
* is trigged from customEvent / dispatch from state
|
|
68
|
+
* @parameters
|
|
69
|
+
* [ name, function ]
|
|
70
|
+
*/
|
|
71
|
+
observer("test", ()=> alert( "Test Changes to: " + state.test ) )
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
You can use it everywere. Works like "useState" in react but with more flexibility ( use one observer each state! )
|
|
75
|
+
|
|
76
|
+
## State vs Store π
|
|
77
|
+
|
|
78
|
+
**INFO**: if you want to use as permanent storage (localStorage) you need to use " **store** " instead state.
|
|
79
|
+
**IMPORTANT**: Store use localStorage... data are persistant and you need to remove if necessary for security (like logout)
|
|
80
|
+
|
|
81
|
+
**SECURITY**: Do not store any sensitive data. Data stay in the computer if are not properly removed ( use store.clearAll() )
|
|
82
|
+
|
|
83
|
+
```javascript
|
|
84
|
+
// Set a store:
|
|
85
|
+
store.set("test",{test:"test"})
|
|
86
|
+
|
|
87
|
+
// Get a store:
|
|
88
|
+
store.get("test") -> {test:"test"}
|
|
89
|
+
|
|
90
|
+
// Remove a store:
|
|
91
|
+
store.delete("test") -> "ok"
|
|
92
|
+
|
|
93
|
+
// Remove all:
|
|
94
|
+
store.clearAll() -> "ok"
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Install for react + webpack projects
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
npm i dphelper --save-dev
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
or update:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
npm i dphelper@latest --save-dev
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
in the index (and only there):
|
|
113
|
+
|
|
114
|
+
```javascript
|
|
115
|
+
import "dphelper";
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
or
|
|
119
|
+
|
|
120
|
+
```javascript
|
|
121
|
+
require("dphelper");
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Install for ejs or other type of projects (like html)
|
|
125
|
+
|
|
126
|
+
note: you don't need to use npm install in this case or you get an error
|
|
127
|
+
|
|
128
|
+
```html
|
|
129
|
+
<script src="https://unpkg.com/dphelper@latest/index.js"></script>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## How to use it
|
|
133
|
+
|
|
134
|
+
type 'dphelper' in the console of your browser to have a look about all available & tools that you can use!
|
|
135
|
+
|
|
136
|
+
You can call these from everywhere without import (just one time in main / root page)
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Browser Extension (Chrome/Edge) β₯οΈ
|
|
141
|
+
|
|
142
|
+

|
|
143
|
+
|
|
144
|
+

|
|
145
|
+
|
|
146
|
+

|
|
147
|
+
|
|
148
|
+
Chrome: [Download from Google Web Store](https://chrome.google.com/webstore/detail/dphelper-manager-dev-tool/oppppldaoknfddeikfloonnialijngbk)
|
|
149
|
+
Edge: [Download from Microsoft Addons](https://microsoftedge.microsoft.com/addons/detail/dphelper-manager-dev-to/kphabkbdpaljlfagldhojilhfammepnk)
|
|
150
|
+
|
|
151
|
+
This extension allows you to manage your app's dpHelper NPM. Here you will find all the tools with description and methods of use. Designed to simplify API operations, data manipulation and retention. You will be able to monitor memory usage and localStorage. You will always be updated on updates and tricks for your daily work. The dpHelper tool is a collection of scripts to simplify, improve and speed up your work. Designed to be easy to install and use. Just use "import 'dphelper'" in your project index. All scripts work in global and are reachable everywhere.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
Dario Passariello Copyright (c) 2019 - 2024, All rights reserved
|
package/SECURITY.md
ADDED
package/index.js
CHANGED
|
@@ -39,4 +39,4 @@ const n={name:"log",active:!0,subCommand:[{name:"list",version:"0.0.1",example:"
|
|
|
39
39
|
Licensed under MIT License, see
|
|
40
40
|
https://dario.passariello.ca
|
|
41
41
|
*/
|
|
42
|
-
const n={name:"socket",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.socket.info(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"start",version:"0.0.1",example:"dphelper.socket.start(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"conn",version:"0.0.1",example:"dphelper.socket.conn(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"connect",version:"0.0.1",example:"dphelper.socket.connect(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"open",version:"0.0.1",example:"dphelper.socket.open(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"send",version:"0.0.1",example:"dphelper.socket.send(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"receive",version:"0.0.1",example:"dphelper.socket.receive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"keepAlive",version:"0.0.1",example:"dphelper.socket.keepAlive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.socket.check()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Start check how many websocket conection are opens",subCommand:Array},{name:"list",version:"0.0.1",example:"dphelper.socket.list()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"List of all websocket connection in realtime",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.socket={info:()=>"Created by Dario Passariello",start:(e,t)=>{dphelper.socket.connect(t),dphelper.socket.receive(e)},conn:(e,t)=>{if(!e||!t)return void console.debug("please use connect!");const r=new WebSocket(t);return r.binaryType="blob",[r,e]},connect:e=>{e&&dphelper.socket.open(dphelper.security.uuid.v5(),e)},open:(e,t)=>{e&&(globalThis.websocket=dphelper.socket.conn(e,t),globalThis.websocket[0].onopen=()=>dphelper.log.reg(e+" connected"),globalThis.websocket[0].onclose=e=>dphelper.log.debug(e.wasClean?"Disconnected":"Connection break: "+(e.reason||e.code)),globalThis.websocket[0].onerror=e=>dphelper.log.error(e.message))},send:(e,t="reg")=>{var r;if(!(null===(r=globalThis.websocket)||void 0===r?void 0:r[1])||!e)return;const n=globalThis.websocket[0],o=globalThis.websocket[1],i=t?`{"${t}":"(${o}:${e})"}`:e;n.send(i)},ping:()=>{var e;if(!(null===(e=globalThis.websocket)||void 0===e?void 0:e[1]))return;const t=globalThis.websocket[0];globalThis.websocket[1],t.send('{"debug":"__ping__"}')},receive:(e=null)=>{var t;(null===(t=globalThis.websocket)||void 0===t?void 0:t[1])&&globalThis.websocket[0].addEventListener("message",(function(t){let r;try{r=Object.values(JSON.parse(t.data)),e&&$(e).prepend(r[0])}catch(e){return t.data}dphelper.log.reg(t.data)}))},keepAlive:()=>{let e,t=globalThis.websocket[0];const r=(t=5e3)=>{dphelper.socket.ping(),e=setTimeout((()=>{}),t)};t.onopen=function(){setInterval(r,3e4)},t.onmessage=function(t){try{if("__ping__"===Object.values(JSON.parse(t.data))[0])return void clearTimeout(e)}catch(e){}}},check:()=>{const e=WebSocket.prototype.send;dphelper._list.sockets=[],WebSocket.prototype.send=function(...t){return-1===dphelper._list.sockets.indexOf(this)&&dphelper._list.sockets.push(this),e.call(this,...t)}},list:()=>dphelper._list.sockets},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.socket.check()},1148:(e,t,r)=>{"use strict";r.r(t);const n={name:"state",active:!0,subCommand:[{name:"state",type:"function",version:"0.0.1",example:"to set: state.name = value; to get: state.name",description:"set and get state",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240928",active:!0,subCommand:Array},{name:"list",type:"function",version:"0.0.1",example:"state.list",description:"show all states out of proxy",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array},{name:"remove",type:"function",version:"0.0.1",example:"state.remove([state])",description:"remove a state",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n);const o=[],i={event(e){dphelper.dispatch.set(String(e),{detail:{name:String(e)}})},set:(e,t,r)=>(e[t]||o.push(t),i.event(t),e[t]=r,state.mex({property:t,value:r}),!0),get:function(e,t){return"object"===t&&null!==t?new Proxy(e[t],i):e[t]}};Object.defineProperty(globalThis,"state",{value:new Proxy(state,i),enumerable:!1,configurable:!1}),Object.defineProperties(state,{list:{get(){console.info(Object.assign({},state))}},remove:{value:e=>{e in state?(delete state[e],console.warn(`State '${e}' deleted`)):console.error(`'${e}' not exist`)},writable:!1,configurable:!1},mex:{value:e=>{$("#dpConsole").append(`<span>\n <span style="color: green">State ${e.property} changed: <span style="color: yellow">"${e.value}"</span></span>\n </span>`)},writable:!1,configurable:!1}}),dphelper.setProps(globalThis,n,{lock:!1})},6212:(e,t,r)=>{"use strict";r.r(t);const n={name:"store",active:!0,subCommand:[{name:"get",version:"0.0.1",example:"store.get(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"set",version:"0.0.1",example:"store.set(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"store.delete(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"store.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"quota",version:"0.0.1",example:"store.quota()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"size",version:"0.0.1",example:"store.size()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),Object.defineProperty(globalThis,"store",{value:{},enumerable:!1,configurable:!1}),Object.defineProperties(store,{get:{value(e){if(e)try{if("object"==typeof JSON.parse(localStorage.getItem(e)))return JSON.parse(localStorage.getItem(e))}catch(t){return String(localStorage.getItem(e))}}},set:{value(e,t){e&&("object"==typeof t?localStorage.setItem(e,JSON.stringify(t)):localStorage.setItem(e,String(t)))}},delete:{value(e){if(e)return localStorage.getItem(e)?(localStorage.removeItem(e),!0):void 0}},clearAll:{value:()=>(localStorage.clear(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}))}},size:{value(){let e,t,r=0;for(t in localStorage)localStorage.hasOwnProperty(t)&&(e=localStorage[t].length,r+=e);return r}}}),dphelper.setProps(globalThis,n,{lock:!0})},9011:(e,t,r)=>{"use strict";r.r(t);const n={name:"svg",active:!0,subCommand:[{name:"init",version:"0.0.1",example:"dphelper.svg.init(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.svg.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"update",version:"0.0.1",example:"dphelper.svg.update(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getCurve",version:"0.0.1",example:"dphelper.svg.getCurve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getIntersection",version:"0.0.1",example:"dphelper.svg.getIntersection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"setConnector",version:"0.0.1",example:"dphelper.svg.setConnector(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"removeConnection",version:"0.0.1",example:"dphelper.svg.removeConnection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeScrollable",version:"0.0.1",example:"dphelper.svg.makeScrollable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeDraggable",version:"0.0.1",example:"dphelper.svg.makeDraggable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.1",example:"dphelper.svg.toggle(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.svg.convert([Object])",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240401",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.svg={init:function(e,t,r,n){$(e).find("svg")&&dphelper.svg_removeConnection(e),t=dphelper.svg.setConnector(t[0],t[1]),r=dphelper.svg.setConnector(r[0],r[1]);const o=e.getBoundingClientRect(),i="http://www.w3.org/2000/svg",a=10*e.offsetWidth,s=10*e.offsetHeight,l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.setAttributeNS(null,"id","pathConnection"),l.setAttributeNS(null,"viewBox","0 0 "+a+" "+s),l.setAttributeNS(null,"width",String(a)),l.setAttributeNS(null,"height",String(s)),l.style.display="block";const c=document.createElementNS(i,"rect");let d=t.getBoundingClientRect();c.setAttributeNS(null,"x",String(d.left-o.left)),c.setAttributeNS(null,"y",String(d.top-o.top)),c.setAttributeNS(null,"width",d.width),c.setAttributeNS(null,"height",d.height),l.appendChild(c);const u=document.createElementNS(i,"rect");d=r.getBoundingClientRect(),u.setAttributeNS(null,"x",String(d.left-o.left)),u.setAttributeNS(null,"y",String(d.top-o.top)),u.setAttributeNS(null,"width",d.width),u.setAttributeNS(null,"height",d.height),l.appendChild(u);const p=document.createElementNS(i,"path");p.setAttributeNS(null,"id","connection"),p.setAttributeNS(null,"marker-end","url(#head)"),l.appendChild(p),e.appendChild(l),dphelper.svg.update($(c)[0],$(u)[0],$("#connection")[0]),"function"==typeof n&&n(t,r)},check:()=>{if(void 0===dphelper.svg.check.supported){const e=document.body.appendChild(document.createElement("div"));e.innerHTML='<v:shape id="vml_flag1" adj="1" />';const t=e.firstChild;t.style.behavior="url(#default#VML)",dphelper.svg.check.supported=!t||"object"==typeof t.adj,e.parentNode.removeChild(e)}return dphelper.svg.check.supported},update:function(e,t,r){const n=parseFloat(e.getAttribute("x")),o=parseFloat(e.getAttribute("y")),i=parseFloat(t.getAttribute("x")),a=parseFloat(t.getAttribute("y")),s=parseFloat(e.getAttribute("width"))/2,l=parseFloat(e.getAttribute("height"))/2,c=parseFloat(t.getAttribute("width"))/2,d=parseFloat(t.getAttribute("height"))/2,u=n+s,p=o+l,h=i+c,f=a+d,m=h-u,v=f-p,g=dphelper.svg.getIntersection(m,v,u,p,s,l),y=dphelper.svg.getIntersection(-m,-v,h,f,c,d),b=y[0]-g[0],x=dphelper.svg.getCurve(g,y,b);r.setAttributeNS(null,"d","M"+u+","+p+x+h+","+f)},getCurve:function(e,t,r){const n=r/2;return" C"+(n+e[0])+","+e[1]+" "+(t[0]-n)+","+t[1]+" "},getIntersection:function(e,t,r,n,o,i){return Math.abs(t/e)<i/o?[r+(e>0?o:-o),n+t*o/Math.abs(e)]:[r+e*i/Math.abs(t),n+(t>0?i:-i)]},setConnector:function(e,t){let r;const n=$('<span class="connector"></span>');switch($(e).css("position","relative"),n.css({position:"absolute",width:"5px",height:"5px"}),t){case"top":r={left:"50%",top:"2.5px",marginLeft:"2.5px"};break;case"right":r={top:"50%",right:"2.5px",marginTop:"-2.5px"};break;case"bottom":r={left:"50%",bottom:"-2.5px",marginLeft:"2.5px"};break;case"left":r={top:"50%",left:"-2.5px",marginTop:"-2.5px"};break;default:r={}}return n.css(r),$(e).append(n),$(n)[0]},removeConnection:function(e){$(e).find("svg#pathConnection").each((function(e,t){$(t).remove()}))},makeScrollable:function(e,t,r,n,o,i){const a=e.getBoundingClientRect(),s=[r,n],l=s.length,c=[o,i],d=[];for(let e=0;e<l;e++)d[e]=s[e].getBoundingClientRect(),c[e].setAttributeNS(null,"x",d[e].left-a.left),c[e].setAttributeNS(null,"y",d[e].top-a.top),c[e].setAttributeNS(null,"width",d[e].width),c[e].setAttributeNS(null,"height",d[e].height);dphelper.svg.update($(o)[0],$(i)[0],$("#connection")[0])},makeDraggable:function(e){const t=e.target;function r(r){const n=t.getScreenCTM();return{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}}let n,o;t.addEventListener("mousedown",(function(e){e.target.classList.contains("draggable")&&(n=e.target,o=r(),o.x-=parseFloat(n.getAttributeNS(null,"x")),o.y-=parseFloat(n.getAttributeNS(null,"y")))})),t.addEventListener("mousemove",(function(e){if(n){const e=r();n.setAttributeNS(null,"x",e.x-o.x),n.setAttributeNS(null,"y",e.y-o.y),dphelper.svg.update()}})),t.addEventListener("mouseup",(function(e){n=null}))},toggle:function(e,t,r,n){$(e.target).prop("checked")&&$(r).length&&$(n).length?(dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:1,time:365}),dphelper.svg_initConnection(t[0],[$(r)[0],"right"],[$(n)[0],"left"],(function(e,r){$("#parts-left-body").on("scroll",(function(n){dphelper.svg.makeScrollable($(t)[0],$("#parts-left-body")[0],$(e)[0],$(r)[0],$("#parts svg rect")[0],$("#parts svg rect")[1])}))}))):(dphelper.svg_removeConnection(t),$("#parts-left-body").unbind("scroll"),dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:0,time:365}))},convert:({children:e,active:t=!0,size:r=[1920,1080],fit:n=["100%","100%"],preserveAspectRatio:o="none",style:i=`width:${n[0]}; height:${n[1]}`,zoom:a=1})=>{if(!e)return"Please pass ID of element for SVG conversion";if(t){const t=$(e).clone(),s=`\n <svg\n viewBox="0 0 ${r[0]} ${r[1]}"\n preserveAspectRatio="${o}"\n xmlns="http://www.w3.org/2000/svg"\n style="${i}; zoom:${a}"\n >\n <foreignObject\n x="0"\n y="0"\n width="${n[0]}"\n height="${n[1]}"\n style="${i}; zoom:${a}"\n >\n </foreignObject>\n </svg >\n `;$(e).html(s).find("foreignObject").html(t)}}},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.svg.check()},5698:(e,t,r)=>{"use strict";r.r(t);const n={name:"system",active:!0,subCommand:[{name:"multiSplit",version:"0.0.1",example:"dphelper.system.multiSplit()",author:"Dario Passariello",creationDate:"20231121",lastMod:"20231121",type:"system",active:!0,description:"Run only one time when you load your App ... extend the .split with array as argument (example.split([',', ':', ';', '?', '/'])[0])",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.system={multiSplit:()=>{const e=String.prototype.split;String.prototype.split=function(){if(arguments[0].length>0&&"[object Array]"==Object.prototype.toString.call(arguments[0]))return function(e,t){for(var r=t[0],n=1;n<t.length;++n)e=e.split(t[n]).join(r);return e.split(r)}(this,arguments[0]);const t=arguments;return e.apply(this,t)}}},dphelper.setProps(dphelper,n,{lock:!0})},963:(e,t,r)=>{"use strict";r.r(t);const n={name:"terminal",active:!0,subCommand:[{name:"terminal",version:"0.0.1",example:"dphelper.terminal([dom])",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.terminal=function(e){if(!e)throw Error("Parent dom element required!");let t=!1,r=console.log,n=console.info,o=console.warn,i=console.error;const a=document.getElementById("terminal"),s=function(e){var t=Array.prototype.slice.call(arguments[1]).join(" ");t=e===l.WARN?'<font color="#FF6600">* WARN: '+t:e===l.ERR?'<font color="#FF0000">* ERR: '+t:"* "+t,this.domElement.innerHTML+=t+"<br/>",a&&(a.scrollTop=a.scrollHeight)},l={LOG:0,INFO:1,WARN:2,ERR:3};this.autoScroll=!0,this.disableConsoleLogging=!1;var c=document.createElement("div");c.id="debugConsole",e.appendChild(c),this.domElement=c,this.initKeyMappings=function(){t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=function(){console.log=function(){this.disableConsoleLogging||(s.call(this,l.LOG),r.apply(console))}.bind(this),console.info=function(){state.disableConsoleLogging||(s.call(this,l.INFO),n.apply(console))}.bind(this),console.warn=function(){state.disableConsoleLogging||(s.call(this,l.WARN),o.apply(console))}.bind(this),console.error=function(){state.disableConsoleLogging||(s.call(this,l.ERR),i.apply(console))}.bind(this),onerror=function(e,t,r){var n=[`${e} in <a href="${t}" target='_blank'>${null==t?void 0:t.split("/").pop()}</a>: ${r}`];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e&&(this.domElement.style.display="",this.domElement.scrollTop=this.domElement.scrollHeight)},configurable:!0},top:{get:function(){return this.domElement.style.top},set:function(e){this.domElement.style.top=e}},left:{get:function(){return this.domElement.style.left},set:function(e){this.domElement.style.left=e}},bottom:{get:function(){return this.domElement.style.bottom},set:function(e){this.domElement.style.bottom=e}},right:{get:function(){return this.domElement.style.right},set:function(e){this.domElement.style.right=e}},width:{get:function(){return this.domElement.style.width},set:function(e){this.domElement.style.width=e}},height:{get:function(){return this.domElement.style.height},set:function(e){this.domElement.style.height=e}}})},dphelper.setProps(dphelper,n,{lock:!0})},2764:(e,t,r)=>{"use strict";r.r(t);const n={name:"text",active:!0,subCommand:[{name:"trim",version:"0.0.1",example:"dphelper.text.trim(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"capitalize",version:"0.0.1",example:"dphelper.text.capitalize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"lower",version:"0.0.1",example:"dphelper.text.lower(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"upper",version:"0.0.1",example:"dphelper.text.upper(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"nl2br",version:"0.0.1",example:"dphelper.text.nl2br(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.text.sanitize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"camelCase",version:"0.0.1",example:"dphelper.text.camelCase(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"toSpace",version:"0.0.1",example:"dphelper.text.camelCase.toSpace(...)",type:"function",active:!0,description:"",subCommand:Array},{name:"toUnderscore",version:"0.0.1",example:"dphelper.text.camelCase.toUnderscore(...)",type:"function",active:!0,description:"",subCommand:Array}]},{name:"fitContainer",version:"0.0.1",example:"dphelper.font.fitContainer([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.text={trim:(e,t,r,n)=>e.charAt(0)===t?e.substring(r,n):e,capitalize:e=>e.toLowerCase().replace(/\b\w/g,(function(e){return e.toUpperCase()})),lower:e=>e.toLowerCase(),upper:e=>e.toUpperCase(),nl2br:e=>e.replace(/(?:\r\n|\r|\n)/g,"<br>"),sanitize:e=>e.replace(/<(|\/|[^>\bi]|\/[^>bi]|[^/>][^>]+|\/[^>][^>]+)>/g,""),camelCase:{toSpace:e=>e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()})),toUnderscore:e=>e.replace(/\.?([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},fitContainer:e=>{e&&dphelper.addListenerMulti(window,"load resize",(()=>{!function(e){const t=document.querySelectorAll(e),r=t.length;if(!(r<=0))for(let e=0;e<r;e++){const r=.05*t[e].offsetWidth;t[e].style.fontSize=r+"px"}}(e)}))}},dphelper.setProps(dphelper,n,{lock:!0})},6584:(e,t,r)=>{"use strict";r.r(t);const n={name:"timer",active:!0,subCommand:[{name:"sleep",version:"0.0.1",example:"dphelper.timer.sleep(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"percentage",version:"0.0.1",example:"dphelper.timer.percentage(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.timer={sleep:e=>new Promise((t=>setTimeout(t,e))),percentage:(e,t)=>{function r(e){const t=e.split(":");return 3600*t[0]+60*t[1]+t[2]}return(100*r(e)/r(t)).toFixed(2)}},dphelper.setProps(dphelper,n,{lock:!0})},3890:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"tools",active:!0,subCommand:[{name:"byteSize",description:"Give you the total in 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb', 'Zb', 'Yb' starting from bytes",example:"dphelper.tools.byteSize(bytes)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"hashPass",description:"",example:"dphelper.tools.hashPass(number, total)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"zIndex",description:"",example:"dphelper.tools.zIndex()",version:"0.0.1",author:"Dario Passariello",creationDate:"20240807",lastMod:"20240807",type:"function",active:!0,subCommand:Array},{name:"zeroToFalse",description:"",example:"dphelper.tools.zeroToFalse(num)",version:"0.0.1",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o),globalThis.getip=null,fetch("https://api.ipify.org?format=json").then((e=>e.json())).then((e=>globalThis.getip=btoa(null==e?void 0:e.ip))),Object.defineProperty(globalThis,"getip",{configurable:!1,enumerable:!1}),dphelper.tools={byteSize:e=>{const t=1024;if(Math.abs(e)<t)return e+"b";const r=["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"];let n=-1;do{e/=t,++n}while(Math.abs(e)>=t&&n<r.length-1);return e.toFixed(1)+r[n]},hashPass:(e,t)=>(0,n.sH)(void 0,void 0,void 0,(function*(){const r=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),n=yield crypto.subtle.digest("SHA-1",r);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")})),zIndex:()=>[...$("body *")].map((e=>parseFloat(getComputedStyle(e).zIndex))).reduce(((e,t)=>t>e?t:e),1),zeroToFalse:e=>0!==e&&e,getIp:()=>atob(globalThis.getip)},dphelper.setProps(dphelper,o,{lock:!0})},1938:(e,t,r)=>{"use strict";r.r(t);const n={name:"translators",active:!0,subCommand:[{name:"convertMatrixToScale",version:"0.0.1",example:"dphelper.translators.convertMatrixToScale({value})",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.translators={convertMatrixToScale:e=>{const t=(e=(e=(e=e.split("(")[1]).split(")")[0]).split(","))[0],r=e[1];return Math.sqrt(t*t+r*r)}},dphelper.setProps(dphelper,n,{lock:!0})},7822:(e,t,r)=>{"use strict";r.r(t);const n={name:"trigger",active:!0,subCommand:[{name:"click",version:"0.0.1",example:"dphelper.trigger.click(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"change",version:"0.0.1",example:"dphelper.trigger.change(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.trigger={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),r=new Event("__"+e,{bubbles:!0});r.simulated=!0,dphelper.dispatch.set("__"+e,r),t.dispatchEvent(r)}},dphelper.setProps(dphelper,n,{lock:!0})},3656:(e,t,r)=>{"use strict";r.r(t);const n={name:"type",active:!0,subCommand:[{name:"of",version:"0.0.1",example:"dphelper.type.of(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"instOfObj",version:"0.0.1",example:"dphelper.type.instOfObj(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNaN",version:"0.0.1",example:"dphelper.type.isNaN(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isPrime",version:"0.0.1",example:"dphelper.type.isPrime(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isBool",version:"0.0.1",example:"dphelper.type.isBool(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.type={of:e=>typeof e,instOfObj:e=>e instanceof Object,isNaN:e=>function(t){return!e(t)},isPrime:e=>{let t=e/2,r=!0;for(;t>1;)e%t==0?(r=!1,t=0):t-=1;return!0===r},isBool:e=>!e||null==e.length||"1"===e},dphelper.setProps(dphelper,n,{lock:!0})},4245:()=>{},3583:(e,t,r)=>{"use strict";r.r(t);const n={name:"window",active:!0,subCommand:[{name:"enhancement",version:"0.0.1",example:"dphelper.window.enhancement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use only one time at end of application",subCommand:Array},{name:"center",version:"0.0.1",example:"dphelper.window.center({ url, title, name, w, h })",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use to center popup to screen",subCommand:Array},{name:"onBeforeUnLoad",version:"0.0.1",example:"dphelper.window.onBeforeUnLoad()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"message during leave the site",subCommand:Array},{name:"purge",version:"0.0.1",example:"dphelper.window.purge()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Purge from memory",subCommand:Array},{name:"stopZoomWheel",version:"0.0.1",example:"dphelper.window.stopZoomWheel(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Stop Zoom Generated by Mouse Wheel",subCommand:Array},{name:"setZoom",version:"0.0.1",example:"dphelper.window.setZoom([el,1])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array},{name:"getZoom",version:"0.0.1",example:"dphelper.window.getZoom([el])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.window={enhancement:()=>{globalThis.offScreenBuffering="auto",dphelper.window.animationframe()},animationframe:()=>{const e=globalThis;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/120)}},center:({url:e,title:t,name:r,w:n,h:o})=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,a=void 0!==window.screenTop?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,c=s/window.screen.availWidth,d=(s-n)/2/c+i,u=(l-o)/2/c+a,p=window.open(e,t,`\n scrollbars=yes,\n width=${n/c},\n height=${o/c},\n top=${u},\n left=${d}\n `);window.onfocus=()=>null==p?void 0:p.focus()},onBeforeUnLoad:e=>{let t=!1,r=!1;const n="You have made some changes which you might want to save.",o=e=>(e.preventDefault(),n),i=document.querySelector(e.target);i&&i.addEventListener("input",(t=>{""!==e.target.value?addEventListener("beforeunload",o,{capture:!0}):removeEventListener("beforeunload",o,{capture:!0})})),!1===r&&(document.body.addEventListener("click",(r=>{if("IMG"===e.target.tagName&&!0===t){if(!0===confirm(n))return t=!1;r.preventDefault()}})),r=!0),addEventListener("popstate",(e=>{if(!0===t)return!0===confirm(n)?t=!1:(e.stopImmediatePropagation(),e.preventDefault(),n)})),window.onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout((()=>{if(!e)return null;let t=e.attributes;if(t){const r=t.length;for(let n=0;n<r;n+=1){const r=t[n].name;"function"==typeof e[r]&&(e[r]=null),void 0===e[r]&&(e[r]=null)}}if(t=e.childNodes,t){const r=t.length;for(let t=0;t<r;t+=1)dphelper.purge(e.childNodes[t])}}),t)},stopZoomWheel:e=>{addEventListener("wheel",(e=>{e.ctrlKey&&e.preventDefault()}),{passive:!1}),addEventListener("keydown",(e=>{const t=dphelper.event.keys(e);["+","-","="].includes(t.key)&&t.ctrl&&e.preventDefault()}))},setZoom:(e="html",t=1)=>(t<0&&(t=1),$(e).css("zoom",t),`New zoom value: ${100*t}% (css: ${t})`),getZoom:(e="html")=>Number($(e).css("zoom"))},dphelper.setProps(dphelper,n,{lock:!0})},8343:function(e,t){var r,n,o;!function(i,a){"use strict";n=[],void 0===(o="function"==typeof(r=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var r={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function n(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function i(e,r,n){if("property"===t.arrayAccessForm&&(e[r]instanceof Array?e[r+"_asArray"]=e[r]:e[r+"_asArray"]=[e[r]]),!(e[r]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===n){o=!0;break}}else if(a instanceof RegExp){if(a.test(n)){o=!0;break}}else if("function"==typeof a&&a(r,n)){o=!0;break}}o&&(e[r]=[e[r]])}}function a(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function s(e,o){for(var s={__cnt:0},c=e.childNodes,d=0;d<c.length;d++){var u=c.item(d),p=n(u);u.nodeType!==r.COMMENT_NODE&&(s.__cnt++,null==s[p]?(s[p]=l(u,o+"."+p),i(s,p,o+"."+p)):(s[p]instanceof Array||(s[p]=[s[p]],i(s,p,o+"."+p)),s[p][s[p].length]=l(u,o+"."+p)))}for(var h=0;h<e.attributes.length;h++){var f=e.attributes.item(h);s.__cnt++;for(var m=f.value,v=0;v<t.attributeConverters.length;v++){var g=t.attributeConverters[v];g.test.call(null,f.name,f.value)&&(m=g.convert.call(null,f.name,f.value))}s[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(s.__cnt++,s.__prefix=y),s["#text"]&&(s.__text=s["#text"],s.__text instanceof Array&&(s.__text=s.__text.join("\n")),t.escapeMode&&(s.__text=s.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(s.__text=s.__text.trim()),delete s["#text"],"property"===t.arrayAccessForm&&delete s["#text_asArray"],s.__text=function(e,r,n){if(t.datetimeAccessFormPaths.length>0)for(var o=n.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var s=t.datetimeAccessFormPaths[i];if("string"==typeof s){if(s===o)return a(e)}else if(s instanceof RegExp){if(s.test(o))return a(e)}else if("function"==typeof s&&s(o))return a(e)}return e}(s.__text,0,o+".#text")),s.hasOwnProperty("#cdata-section")&&(s.__cdata=s["#cdata-section"],delete s["#cdata-section"],"property"===t.arrayAccessForm&&delete s["#cdata-section_asArray"]),1===s.__cnt&&s.__text&&!t.keepText?s=s.__text:0===s.__cnt&&"text"===t.emptyNodeForm?s="":s.__cnt>1&&void 0!==s.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===s.__text||""===s.__text.trim())&&delete s.__text,delete s.__cnt,t.keepCData||s.hasOwnProperty("__text")||!s.hasOwnProperty("__cdata")||1!==Object.keys(s).length?(t.enableToStringFunc&&(s.__text||s.__cdata)&&(s.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),s):s.__cdata?s.__cdata:""}function l(e,o){return e.nodeType===r.DOCUMENT_NODE?function(e){for(var o={},i=e.childNodes,a=0;a<i.length;a++){var s=i.item(a);if(s.nodeType===r.ELEMENT_NODE){var c=n(s);t.ignoreRoot?o=l(s,c):o[c]=l(s,c)}}return o}(e):e.nodeType===r.ELEMENT_NODE?s(e,o):e.nodeType===r.TEXT_NODE||e.nodeType===r.CDATA_SECTION_NODE?e.nodeValue:null}function c(e,r,n,i){var a="<"+(e&&e.__prefix?e.__prefix+":":"")+r;if(n)for(var s=0;s<n.length;s++){var l=n[s],c=e[l];t.escapeMode&&(c=o(c)),a+=" "+l.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?a+='"'+c+'"':a+="'"+c+"'"}return a+(i?" />":">")}function d(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function u(e,r){return!!("property"===t.arrayAccessForm&&(n=r.toString(),o="_asArray",-1!==n.indexOf(o,n.length-o.length))||0===r.toString().indexOf(t.attributePrefix)||0===r.toString().indexOf("__")||e[r]instanceof Function);var n,o}function p(e){var t=0;if(e instanceof Object)for(var r in e)u(e,r)||t++;return t}function h(e){var r=[];if(e instanceof Object)for(var n in e)-1===n.toString().indexOf("__")&&0===n.toString().indexOf(t.attributePrefix)&&r.push(n);return r}function f(e){var r="";return e instanceof Object?r+=function(e){var r="";return e.__cdata&&(r+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?r+=o(e.__text):r+=e.__text),r}(e):null!==e&&(t.escapeMode?r+=o(e):r+=e),r}function m(e,r,n){var o="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,r,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,r,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?o+=function(e,t,r){var n="";if(0===e.length)n+=c(e,t,r,!0);else for(var o=0;o<e.length;o++)n+=m(e[o],t,h(e[o]));return n}(e,r,n):e instanceof Date?(o+=c(e,r,n,!1),o+=t.jsDateUTC?e.toUTCString():e.toISOString(),o+=d(e,r)):p(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(o+=c(e,r,n,!1),o+=v(e),o+=d(e,r)):t.selfClosingElements?o+=c(e,r,n,!0):(o+=c(e,r,n,!1),o+=d(e,r)):(o+=c(e,r,n,!1),o+=f(e),o+=d(e,r)):o+=c(e,r,n,!0)),o}function v(e){var t="";if(p(e)>0)for(var r in e)if(!u(e,r)){var n=e[r];t+=m(n,r,h(n))}return t+f(e)}function g(r){if(void 0===r)return null;if("string"!=typeof r)return null;var n=null,o=null;if(e)o=(n=new e(t.xmldomOptions)).parseFromString(r,"text/xml");else if(window&&window.DOMParser){n=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=n.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{o=n.parseFromString(r,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(e){o=null}}else 0===r.indexOf("<?")&&(r=r.substr(r.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(r);return o}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?a(e):e},this.xml2dom=function(e){return g(e)},this.dom2js=function(e){return l(e,null)},this.js2dom=function(e){return g(this.js2xml(e))},this.xml2js=function(e){var t=g(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return v(e)},this.getVersion=function(){return"3.4.4"}}})?r.apply(t,n):r)||(e.exports=o)}()},670:(e,t,r)=>{var n={".":8907,"./":8907,"./index":8907,"./index.ts":8907};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=670},6245:(e,t,r)=>{var n={"./@/over.ts":5815,"./@/setProps.ts":35,"./anchor/index.ts":9634,"./array/index.ts":4292,"./audio/index.ts":7331,"./avoid/index.ts":8292,"./browser/index.ts":8705,"./cache/index.ts":3119,"./checks/index.ts":7026,"./color/index.ts":8598,"./console/index.ts":7424,"./console/mapped.ts":1585,"./cookie/index.ts":2057,"./coords/index.ts":9553,"./credits/index.ts":8527,"./date/index.ts":4459,"./disable/index.ts":2373,"./dispatch/index.ts":493,"./elements/index.ts":3906,"./events/index.ts":1434,"./form/index.ts":753,"./format/index.ts":4472,"./functions/index.ts":5308,"./idb/index.ts":6668,"./imports/index.ts":4111,"./json/index.ts":21,"./load/index.ts":8907,"./logs/index.ts":404,"./math/index.ts":3169,"./memory/index.ts":2084,"./objects/index.ts":6957,"./observer/index.ts":2553,"./path/index.ts":1236,"./promise/index.ts":984,"./screen/index.ts":6627,"./scrollbar/index.ts":5155,"./security/index.ts":2725,"./shortcut/index.ts":1765,"./socket/index.ts":8562,"./state/index.ts":1148,"./store/index.ts":6212,"./svg/index.ts":9011,"./system/index.ts":5698,"./terminal/index.ts":963,"./text/index.ts":2764,"./timer/index.ts":6584,"./tools/index.ts":3890,"./translators/index.ts":1938,"./triggers/index.ts":7822,"./types/index.ts":3656,"./ui/index.ts":4245,"./window/index.ts":3583};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=6245},477:()=>{},1635:(e,t,r)=>{"use strict";function n(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}r.d(t,{sH:()=>n}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},4787:e=>{"use strict";e.exports=JSON.parse('{"info":{"title":"List","description":"Complete list of tools"},"categories":["3dparty","system","financial","memory","numbers","time","path","file","forms","ui","other"]}')},1809:e=>{"use strict";e.exports=JSON.parse('{"100":{"code":100,"message":"Continue","description":"The server has received the request headers, and the client should proceed to send the request body."},"101":{"code":101,"message":"Switching Protocols","description":"The requester has asked the server to switch protocols."},"102":{"code":102,"message":"Processing","description":"This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost."},"103":{"code":103,"message":"Early Hints","description":"Used to return some response headers before final HTTP message."},"200":{"code":200,"message":"OK","description":"The request is OK (this is the standard response for successful HTTP requests)."},"201":{"code":201,"message":"Created","description":"The request has been fulfilled, and a new resource is created."},"202":{"code":202,"message":"Accepted","description":"The request has been accepted for processing, but the processing has not been completed."},"203":{"code":203,"message":"Non-Authoritative Information","description":"The request has been successfully processed, but is returning information that may be from another source."},"204":{"code":204,"message":"No Content","description":"The request has been successfully processed, but is not returning any content."},"205":{"code":205,"message":"Reset Content","description":"The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view."},"206":{"code":206,"message":"Partial Content","description":"The server is delivering only part of the resource due to a range header sent by the client."},"207":{"code":207,"message":"Multi-Status","description":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made."},"208":{"code":208,"message":"Already Reported","description":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again."},"218":{"code":218,"message":"This is fine (Apache Web Server)","description":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled."},"226":{"code":226,"message":"IM Used","description":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."},"300":{"code":300,"message":"Multiple Choices","description":"A link list. The user can select a link and go to that location. Maximum five addresses."},"301":{"code":301,"message":"Moved Permanently","description":"The requested page has moved to a new URL."},"302":{"code":302,"message":"Found","description":"The requested page has moved temporarily to a new URL."},"303":{"code":303,"message":"See Other","description":"The requested page can be found under a different URL."},"304":{"code":304,"message":"Not Modified","description":"Indicates the requested page has not been modified since last requested."},"306":{"code":306,"message":"Switch Proxy","description":"No longer used. Originally meant \\"Subsequent requests should use the specified proxy.\\""},"307":{"code":307,"message":"Temporary Redirect","description":"The requested page has moved temporarily to a new URL."},"308":{"code":308,"message":"Resume Incomplete","description":"Used in the resumable requests proposal to resume aborted PUT or POST requests."},"400":{"code":400,"message":"Bad Request","description":"The request cannot be fulfilled due to bad syntax."},"401":{"code":401,"message":"Unauthorized","description":"The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided."},"402":{"code":402,"message":"Payment Required","description":"Not yet implemented by RFC standards, but reserved for future use."},"403":{"code":403,"message":"Forbidden","description":"The request was a legal request, but the server is refusing to respond to it."},"404":{"code":404,"message":"Not Found","description":"The requested page could not be found but may be available again in the future."},"405":{"code":405,"message":"Method Not Allowed","description":"A request was made of a page using a request method not supported by that page."},"406":{"code":406,"message":"Not Acceptable","description":"The server can only generate a response that is not accepted by the client."},"407":{"code":407,"message":"Proxy Authentication Required","description":"The client must first authenticate itself with the proxy."},"408":{"code":408,"message":"Request Timeout","description":"The server timed out waiting for the request."},"409":{"code":409,"message":"Conflict","description":"The request could not be completed because of a conflict in the request."},"410":{"code":410,"message":"Gone","description":"The requested page is no longer available."},"411":{"code":411,"message":"Length Required","description":"The \\"Content-Length\\" is not defined. The server will not accept the request without it."},"412":{"code":412,"message":"Precondition Failed","description":"The precondition given in the request evaluated to false by the server."},"413":{"code":413,"message":"Request Entity Too Large","description":"The server will not accept the request, because the request entity is too large."},"414":{"code":414,"message":"Request-URI Too Long","description":"The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information."},"415":{"code":415,"message":"Unsupported Media Type","description":"The server will not accept the request, because the media type is not supported."},"416":{"code":416,"message":"Requested Range Not Satisfiable","description":"The client has asked for a portion of the file, but the server cannot supply that portion."},"417":{"code":417,"message":"Expectation Failed","description":"The server cannot meet the requirements of the Expect request-header field."},"418":{"code":418,"message":"I\'m a teapot","description":"Any attempt to brew coffee with a teapot should result in the error code \\"418 I\'m a teapot\\". The resulting entity body MAY be short and stout."},"419":{"code":419,"message":"Page Expired (Laravel Framework)","description":"Used by the Laravel Framework when a CSRF Token is missing or expired."},"420":{"code":420,"message":"Method Failure (Spring Framework)","description":"A deprecated response used by the Spring Framework when a method has failed."},"421":{"code":421,"message":"Misdirected Request","description":"The request was directed at a server that is not able to produce a response (for example because a connection reuse)."},"422":{"code":422,"message":"Unprocessable Entity","description":"The request was well-formed but was unable to be followed due to semantic errors."},"423":{"code":423,"message":"Locked","description":"The resource that is being accessed is locked."},"424":{"code":424,"message":"Failed Dependency","description":"The request failed due to failure of a previous request (e.g., a PROPPATCH)."},"426":{"code":426,"message":"Upgrade Required","description":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field."},"428":{"code":428,"message":"Precondition Required","description":"The origin server requires the request to be conditional."},"429":{"code":429,"message":"Too Many Requests","description":"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes."},"431":{"code":431,"message":"Request Header Fields Too Large","description":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large."},"440":{"code":440,"message":"Login Time-out","description":"The client\'s session has expired and must log in again. (IIS)"},"444":{"code":444,"message":"Connection Closed Without Response","description":"A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests."},"449":{"code":449,"message":"Retry With","description":"The server cannot honour the request because the user has not provided the required information. (IIS)"},"450":{"code":450,"message":"Blocked by Windows Parental Controls","description":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage."},"451":{"code":451,"message":"Unavailable For Legal Reasons","description":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource."},"494":{"code":494,"message":"Request Header Too Large","description":"Used by nginx to indicate the client sent too large of a request or header line that is too long."},"495":{"code":495,"message":"SSL Certificate Error","description":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate."},"496":{"code":496,"message":"SSL Certificate Required","description":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided."},"497":{"code":497,"message":"HTTP Request Sent to HTTPS Port","description":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests."},"498":{"code":498,"message":"Invalid Token (Esri)","description":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token."},"499":{"code":499,"message":"Client Closed Request","description":"A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request."},"500":{"code":500,"message":"Internal Server Error","description":"An error has occurred in a server side script, a no more specific message is suitable."},"501":{"code":501,"message":"Not Implemented","description":"The server either does not recognize the request method, or it lacks the ability to fulfill the request."},"502":{"code":502,"message":"Bad Gateway","description":"The server was acting as a gateway or proxy and received an invalid response from the upstream server."},"503":{"code":503,"message":"Service Unavailable","description":"The server is currently unavailable (overloaded or down)."},"504":{"code":504,"message":"Gateway Timeout","description":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server."},"505":{"code":505,"message":"HTTP Version Not Supported","description":"The server does not support the HTTP protocol version used in the request."},"506":{"code":506,"message":"Variant Also Negotiates","description":"Transparent content negotiation for the request results in a circular reference."},"507":{"code":507,"message":"Insufficient Storage","description":"The server is unable to store the representation needed to complete the request."},"508":{"code":508,"message":"Loop Detected","description":"The server detected an infinite loop while processing the request (sent instead of 208 Already Reported)."},"509":{"code":509,"message":"Bandwidth Limit Exceeded","description":"The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers."},"510":{"code":510,"message":"Not Extended","description":"Further extensions to the request are required for the server to fulfil it."},"511":{"code":511,"message":"Network Authentication Required","description":"The client needs to authenticate to gain network access."},"520":{"code":520,"message":"Unknown Error","description":"The 520 error is used as a \\"catch-all response for when the origin server returns something unexpected\\", listing connection resets, large headers, and empty or invalid responses as common triggers."},"521":{"code":521,"message":"Web Server Is Down","description":"The origin server has refused the connection from Cloudflare."},"522":{"code":522,"message":"Connection Timed Out","description":"Cloudflare could not negotiate a TCP handshake with the origin server."},"523":{"code":523,"message":"Origin Is Unreachable","description":"Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect."},"524":{"code":524,"message":"A Timeout Occurred","description":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response."},"525":{"code":525,"message":"SSL Handshake Failed","description":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server."},"526":{"code":526,"message":"Invalid SSL Certificate","description":"Used by Cloudflare and Cloud Foundry\'s gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented."},"527":{"code":527,"message":"Railgun Listener to Origin Error","description":"Error 527 indicates that the request timed out or failed after the WAN connection had been established."},"530":{"code":530,"message":"Origin DNS Error","description":"Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server."},"598":{"code":598,"message":"Network Read Timeout Error","description":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy."},"1xx":{"code":"1xx","message":"Information","description":"1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action."},"2xx":{"code":"2xx","message":"Successful","description":"2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully."},"3xx":{"code":"3xx","message":"Redirection","description":"3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource."},"4xx":{"code":"4xx","message":"Client Error","description":"4xx codes generally are error responses specifying an issue at the clientβs end. Potentially a network issue."},"5xx":{"code":"5xx","message":"Server Error","description":"5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host."}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"dphelper","version":"1.6.1","displayName":"dphelper","description":"dphelper devtools | tools, store and state management brave developers by Dario Passariello","copyright":"Dario Passariello","license":"MIT","relaseType":"gold","port":3000,"code":"vulcano","codeRelease":"dphelper","folder":"/","appPort":"","main":"./index.ts","logo":"","typeID":0,"theme":"default","deprecated":false,"target":"web","targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"port":3000,"code":"dphelper","name":"dphelper","type":"beta","folder":"/","appPort":"","main":"index.ts","target":"web","proxy":{},"api":{"dir":"/api/","local":"https://api.biglogic.ca","dev":"https://api.biglogic.ca","prod":"https://api.biglogic.ca"},"socket":{"test":"https://ws.biglogic.ca","dev":"https://ws.biglogic.ca","prod":"https://ws.biglogic.ca"},"url":{"dev":"http://localhost"},"info":{"type":"gold","code":"dphelper","codeRelease":"dphelper"},"cdn":{}},"homepage":"https://github.com/passariello/dphelper","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"cordova":{"platforms":["android"]},"npmName":"dphelper","npmFileMap":[{"basePath":"./dist/","files":["*.js"]}],"types":"./index.d.ts","typings":"./types/*","globals":{"dphelper":{},"jQuery":{},"$":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"engines":{"node":">=18.0.0"},"keywords":["helper","dphelper","utils","tools","uuid","random","window","store","easy","pro","powerful","state","status","dpHelper","dp helper","helper","local","storage","indexeddb","idb","devtool","dario","passariello"],"repository":{"type":"git","url":"git+https://github.com/passariello/dphelper.git","help":"git+https://github.com/passariello/dphelper.git#readme"},"bugs":{"url":"https://github.com/passariello/dphelper/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode=development --config webpack.ts","make-dist":"webpack --progress --color --mode=production --config webpack.ts","-":"--------------","git":"git push --all -u && git add . && git commit -m \\"update\\" && git pull && git push --all","--":"-------------","tsc":"tsc -b","eslint":"eslint","---":"------------","pack":"cd dist && npm pack","backup":"cd mcp/batch && backup.bat","update":"cd mcp/javascripts && node npmUpdate"},"devDependencies":{"@types/webpack-env":"1.18.5","compression-webpack-plugin":"11.1.0","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","file-loader":"6.2.0","javascript-obfuscator":"4.1.1","jest":"29.7.0","jquery":"3.7.1","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.6.2","webpack":"^5.95.0","webpack-cli":"5.1.4","webpack-dev-server":"^5.1.0","x2js":"3.4.4"}}')}},n={};function o(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=n[e]={exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=n,o.i=[],o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"5a8c819a8c86be1dd996",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="dphelper:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,r,n={},i=o.c,a=[],s=[],l="idle",c=0,d=[];function u(e){l=e;for(var t=[],r=0;r<s.length;r++)t[r]=s[r].call(null,e);return Promise.all(t).then((function(){}))}function p(){0==--c&&u("ready").then((function(){if(0===c){var e=d;d=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(o.hmrM).then((function(r){return r?u("prepare").then((function(){var n=[];return t=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,t,n),e}),[])).then((function(){return t=function(){return e?m(e):u("ready").then((function(){return n}))},0===c?t():new Promise((function(e){d.push((function(){e(t())}))}));var t}))})):u(v()?"ready":"idle").then((function(){return null}))}))}function f(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},v();var n=t.map((function(t){return t(e)}));t=void 0;var o=n.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return u("abort").then((function(){throw o[0]}));var i=u("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var a,s=u("apply"),l=function(e){a||(a=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,s]).then((function(){return a?u("fail").then((function(){throw a})):r?m(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function v(){if(r)return t||(t=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,t)}))})),r=void 0,!0}o.hmrD=n,o.i.push((function(d){var m,v,g,y,b=d.module,x=function(t,r){var n=i[r];if(!n)return t;var o=function(o){if(n.hot.active){if(i[o]){var s=i[o].parents;-1===s.indexOf(r)&&s.push(r)}else a=[r],e=o;-1===n.children.indexOf(o)&&n.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return t(o)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&"e"!==d&&Object.defineProperty(o,d,s(d));return o.e=function(e,r){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,r))},o}(d.require,d.id);b.hot=(m=d.id,v=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){a=v.parents.slice(),e=g?void 0:m,o(m)},active:!0,accept:function(e,t,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._acceptedDependencies[e[n]]=t||function(){},y._acceptedErrorHandlers[e[n]]=r;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)})),u("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,y),b.parents=a,b.children=[],a=[],d.require=x})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,t,r,n,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=o.p+o.hu(t),i=new Error;o.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r(i)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var i=n.pop(),a=i.id,s=i.chain,c=o.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var d=0;d<c.parents.length;d++){var u=c.parents[d],p=o.c[u];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([u]),moduleId:a,parentId:u};-1===t.indexOf(u)&&(p.hot._acceptedDependencies[a]?(r[u]||(r[u]=[]),l(r[u],[a])):(delete r[u],t.push(u),n.push({chain:s.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}}o.f&&delete o.f.jsonpHmr,t=void 0;var c={},d=[],u={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(o.o(r,h)){var f=r[h],m=f?s(h):{type:"disposed",moduleId:h},v=!1,g=!1,y=!1,b="";switch(m.chain&&(b="\nUpdate propagation: "+m.chain.join(" -> ")),m.type){case"self-declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of self decline: "+m.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+m.moduleId+" in "+m.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(m),e.ignoreUnaccepted||(v=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(m),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(m),y=!0;break;default:throw new Error("Unexception type "+m.type)}if(v)return{error:v};if(g)for(h in u[h]=f,l(d,m.outdatedModules),m.outdatedDependencies)o.o(m.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],m.outdatedDependencies[h]));y&&(l(d,[m.moduleId]),u[h]=p)}r=void 0;for(var x,w=[],D=0;D<d.length;D++){var C=d[D],A=o.c[C];A&&(A.hot._selfAccepted||A.hot._main)&&u[C]!==p&&!A.hot._selfInvalidated&&w.push({module:C,require:A.hot._requireSelf,errorHandler:A.hot._selfAccepted})}return{dispose:function(){var e;n.forEach((function(e){delete a[e]})),n=void 0;for(var t,r=d.slice();r.length>0;){var i=r.pop(),s=o.c[i];if(s){var l={},u=s.hot._disposeHandlers;for(D=0;D<u.length;D++)u[D].call(null,l);for(o.hmrD[i]=l,s.hot.active=!1,delete o.c[i],delete c[i],D=0;D<s.children.length;D++){var p=o.c[s.children[D]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var h in c)if(o.o(c,h)&&(s=o.c[h]))for(x=c[h],D=0;D<x.length;D++)t=x[D],(e=s.children.indexOf(t))>=0&&s.children.splice(e,1)},apply:function(t){for(var r in u)o.o(u,r)&&(o.m[r]=u[r]);for(var n=0;n<i.length;n++)i[n](o);for(var a in c)if(o.o(c,a)){var s=o.c[a];if(s){x=c[a];for(var l=[],p=[],h=[],f=0;f<x.length;f++){var m=x[f],v=s.hot._acceptedDependencies[m],g=s.hot._acceptedErrorHandlers[m];if(v){if(-1!==l.indexOf(v))continue;l.push(v),p.push(g),h.push(m)}}for(var y=0;y<l.length;y++)try{l[y].call(null,x)}catch(r){if("function"==typeof p[y])try{p[y](r,{moduleId:a,dependencyId:h[y]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:a,dependencyId:h[y],error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:a,dependencyId:h[y],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var D=w[b],C=D.module;try{D.require(C)}catch(r){if("function"==typeof D.errorHandler)try{D.errorHandler(r,{moduleId:C,module:o.c[C]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:r}),e.ignoreErrored||t(r)}}return d}}}self.webpackHotUpdatedphelper=(t,n,a)=>{for(var l in n)o.o(n,l)&&(r[l]=n[l],e&&e.push(l));a&&i.push(a),s[t]&&(s[t](),s[t]=void 0)},o.hmrI.jsonp=function(e,t){r||(r={},i=[],n=[],t.push(c)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,s,d,u,p,h){p.push(c),t={},n=s,r=d.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){t&&o.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o(7695)})();
|
|
42
|
+
const n={name:"socket",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.socket.info(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"start",version:"0.0.1",example:"dphelper.socket.start(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"conn",version:"0.0.1",example:"dphelper.socket.conn(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"connect",version:"0.0.1",example:"dphelper.socket.connect(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"open",version:"0.0.1",example:"dphelper.socket.open(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"send",version:"0.0.1",example:"dphelper.socket.send(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"receive",version:"0.0.1",example:"dphelper.socket.receive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"keepAlive",version:"0.0.1",example:"dphelper.socket.keepAlive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.socket.check()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Start check how many websocket conection are opens",subCommand:Array},{name:"list",version:"0.0.1",example:"dphelper.socket.list()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"List of all websocket connection in realtime",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.socket={info:()=>"Created by Dario Passariello",start:(e,t)=>{dphelper.socket.connect(t),dphelper.socket.receive(e)},conn:(e,t)=>{if(!e||!t)return void console.debug("please use connect!");const r=new WebSocket(t);return r.binaryType="blob",[r,e]},connect:e=>{e&&dphelper.socket.open(dphelper.security.uuid.v5(),e)},open:(e,t)=>{e&&(globalThis.websocket=dphelper.socket.conn(e,t),globalThis.websocket[0].onopen=()=>dphelper.log.reg(e+" connected"),globalThis.websocket[0].onclose=e=>dphelper.log.debug(e.wasClean?"Disconnected":"Connection break: "+(e.reason||e.code)),globalThis.websocket[0].onerror=e=>dphelper.log.error(e.message))},send:(e,t="reg")=>{var r;if(!(null===(r=globalThis.websocket)||void 0===r?void 0:r[1])||!e)return;const n=globalThis.websocket[0],o=globalThis.websocket[1],i=t?`{"${t}":"(${o}:${e})"}`:e;n.send(i)},ping:()=>{var e;if(!(null===(e=globalThis.websocket)||void 0===e?void 0:e[1]))return;const t=globalThis.websocket[0];globalThis.websocket[1],t.send('{"debug":"__ping__"}')},receive:(e=null)=>{var t;(null===(t=globalThis.websocket)||void 0===t?void 0:t[1])&&globalThis.websocket[0].addEventListener("message",(function(t){let r;try{r=Object.values(JSON.parse(t.data)),e&&$(e).prepend(r[0])}catch(e){return t.data}dphelper.log.reg(t.data)}))},keepAlive:()=>{let e,t=globalThis.websocket[0];const r=(t=5e3)=>{dphelper.socket.ping(),e=setTimeout((()=>{}),t)};t.onopen=function(){setInterval(r,3e4)},t.onmessage=function(t){try{if("__ping__"===Object.values(JSON.parse(t.data))[0])return void clearTimeout(e)}catch(e){}}},check:()=>{const e=WebSocket.prototype.send;dphelper._list.sockets=[],WebSocket.prototype.send=function(...t){return-1===dphelper._list.sockets.indexOf(this)&&dphelper._list.sockets.push(this),e.call(this,...t)}},list:()=>dphelper._list.sockets},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.socket.check()},1148:(e,t,r)=>{"use strict";r.r(t);const n={name:"state",active:!0,subCommand:[{name:"state",type:"function",version:"0.0.1",example:"to set: state.name = value; to get: state.name",description:"set and get state",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240928",active:!0,subCommand:Array},{name:"list",type:"function",version:"0.0.1",example:"state.list",description:"show all states out of proxy",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array},{name:"remove",type:"function",version:"0.0.1",example:"state.remove([state])",description:"remove a state",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n);const o=[],i={event(e){dphelper.dispatch.set(String(e),{detail:{name:String(e)}})},set:(e,t,r)=>(e[t]||o.push(t),i.event(t),e[t]=r,state.mex({property:t,value:r}),!0),get:function(e,t){return"object"===t&&null!==t?new Proxy(e[t],i):e[t]}};Object.defineProperty(globalThis,"state",{value:new Proxy(state,i),enumerable:!1,configurable:!1}),Object.defineProperties(state,{list:{get(){console.info(Object.assign({},state))}},remove:{value:e=>{e in state?(delete state[e],console.warn(`State '${e}' deleted`)):console.error(`'${e}' not exist`)},writable:!1,configurable:!1},mex:{value:e=>{$("#dpConsole").append(`<span>\n <span style="color: green">State ${e.property} changed: <span style="color: yellow">"${e.value}"</span></span>\n </span>`)},writable:!1,configurable:!1}}),dphelper.setProps(globalThis,n,{lock:!1})},6212:(e,t,r)=>{"use strict";r.r(t);const n={name:"store",active:!0,subCommand:[{name:"get",version:"0.0.1",example:"store.get(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"set",version:"0.0.1",example:"store.set(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"store.delete(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"store.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"quota",version:"0.0.1",example:"store.quota()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"size",version:"0.0.1",example:"store.size()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),Object.defineProperty(globalThis,"store",{value:{},enumerable:!1,configurable:!1}),Object.defineProperties(store,{get:{value(e){if(e)try{if("object"==typeof JSON.parse(localStorage.getItem(e)))return JSON.parse(localStorage.getItem(e))}catch(t){return String(localStorage.getItem(e))}}},set:{value(e,t){e&&("object"==typeof t?localStorage.setItem(e,JSON.stringify(t)):localStorage.setItem(e,String(t)))}},delete:{value(e){if(e)return localStorage.getItem(e)?(localStorage.removeItem(e),!0):void 0}},clearAll:{value:()=>(localStorage.clear(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)}))}},size:{value(){let e,t,r=0;for(t in localStorage)localStorage.hasOwnProperty(t)&&(e=localStorage[t].length,r+=e);return r}}}),dphelper.setProps(globalThis,n,{lock:!0})},9011:(e,t,r)=>{"use strict";r.r(t);const n={name:"svg",active:!0,subCommand:[{name:"init",version:"0.0.1",example:"dphelper.svg.init(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.svg.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"update",version:"0.0.1",example:"dphelper.svg.update(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getCurve",version:"0.0.1",example:"dphelper.svg.getCurve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getIntersection",version:"0.0.1",example:"dphelper.svg.getIntersection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"setConnector",version:"0.0.1",example:"dphelper.svg.setConnector(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"removeConnection",version:"0.0.1",example:"dphelper.svg.removeConnection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeScrollable",version:"0.0.1",example:"dphelper.svg.makeScrollable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeDraggable",version:"0.0.1",example:"dphelper.svg.makeDraggable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.1",example:"dphelper.svg.toggle(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.svg.convert([Object])",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240401",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.svg={init:function(e,t,r,n){$(e).find("svg")&&dphelper.svg_removeConnection(e),t=dphelper.svg.setConnector(t[0],t[1]),r=dphelper.svg.setConnector(r[0],r[1]);const o=e.getBoundingClientRect(),i="http://www.w3.org/2000/svg",a=10*e.offsetWidth,s=10*e.offsetHeight,l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.setAttributeNS(null,"id","pathConnection"),l.setAttributeNS(null,"viewBox","0 0 "+a+" "+s),l.setAttributeNS(null,"width",String(a)),l.setAttributeNS(null,"height",String(s)),l.style.display="block";const c=document.createElementNS(i,"rect");let d=t.getBoundingClientRect();c.setAttributeNS(null,"x",String(d.left-o.left)),c.setAttributeNS(null,"y",String(d.top-o.top)),c.setAttributeNS(null,"width",d.width),c.setAttributeNS(null,"height",d.height),l.appendChild(c);const u=document.createElementNS(i,"rect");d=r.getBoundingClientRect(),u.setAttributeNS(null,"x",String(d.left-o.left)),u.setAttributeNS(null,"y",String(d.top-o.top)),u.setAttributeNS(null,"width",d.width),u.setAttributeNS(null,"height",d.height),l.appendChild(u);const p=document.createElementNS(i,"path");p.setAttributeNS(null,"id","connection"),p.setAttributeNS(null,"marker-end","url(#head)"),l.appendChild(p),e.appendChild(l),dphelper.svg.update($(c)[0],$(u)[0],$("#connection")[0]),"function"==typeof n&&n(t,r)},check:()=>{if(void 0===dphelper.svg.check.supported){const e=document.body.appendChild(document.createElement("div"));e.innerHTML='<v:shape id="vml_flag1" adj="1" />';const t=e.firstChild;t.style.behavior="url(#default#VML)",dphelper.svg.check.supported=!t||"object"==typeof t.adj,e.parentNode.removeChild(e)}return dphelper.svg.check.supported},update:function(e,t,r){const n=parseFloat(e.getAttribute("x")),o=parseFloat(e.getAttribute("y")),i=parseFloat(t.getAttribute("x")),a=parseFloat(t.getAttribute("y")),s=parseFloat(e.getAttribute("width"))/2,l=parseFloat(e.getAttribute("height"))/2,c=parseFloat(t.getAttribute("width"))/2,d=parseFloat(t.getAttribute("height"))/2,u=n+s,p=o+l,h=i+c,f=a+d,m=h-u,v=f-p,g=dphelper.svg.getIntersection(m,v,u,p,s,l),y=dphelper.svg.getIntersection(-m,-v,h,f,c,d),b=y[0]-g[0],x=dphelper.svg.getCurve(g,y,b);r.setAttributeNS(null,"d","M"+u+","+p+x+h+","+f)},getCurve:function(e,t,r){const n=r/2;return" C"+(n+e[0])+","+e[1]+" "+(t[0]-n)+","+t[1]+" "},getIntersection:function(e,t,r,n,o,i){return Math.abs(t/e)<i/o?[r+(e>0?o:-o),n+t*o/Math.abs(e)]:[r+e*i/Math.abs(t),n+(t>0?i:-i)]},setConnector:function(e,t){let r;const n=$('<span class="connector"></span>');switch($(e).css("position","relative"),n.css({position:"absolute",width:"5px",height:"5px"}),t){case"top":r={left:"50%",top:"2.5px",marginLeft:"2.5px"};break;case"right":r={top:"50%",right:"2.5px",marginTop:"-2.5px"};break;case"bottom":r={left:"50%",bottom:"-2.5px",marginLeft:"2.5px"};break;case"left":r={top:"50%",left:"-2.5px",marginTop:"-2.5px"};break;default:r={}}return n.css(r),$(e).append(n),$(n)[0]},removeConnection:function(e){$(e).find("svg#pathConnection").each((function(e,t){$(t).remove()}))},makeScrollable:function(e,t,r,n,o,i){const a=e.getBoundingClientRect(),s=[r,n],l=s.length,c=[o,i],d=[];for(let e=0;e<l;e++)d[e]=s[e].getBoundingClientRect(),c[e].setAttributeNS(null,"x",d[e].left-a.left),c[e].setAttributeNS(null,"y",d[e].top-a.top),c[e].setAttributeNS(null,"width",d[e].width),c[e].setAttributeNS(null,"height",d[e].height);dphelper.svg.update($(o)[0],$(i)[0],$("#connection")[0])},makeDraggable:function(e){const t=e.target;function r(r){const n=t.getScreenCTM();return{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}}let n,o;t.addEventListener("mousedown",(function(e){e.target.classList.contains("draggable")&&(n=e.target,o=r(),o.x-=parseFloat(n.getAttributeNS(null,"x")),o.y-=parseFloat(n.getAttributeNS(null,"y")))})),t.addEventListener("mousemove",(function(e){if(n){const e=r();n.setAttributeNS(null,"x",e.x-o.x),n.setAttributeNS(null,"y",e.y-o.y),dphelper.svg.update()}})),t.addEventListener("mouseup",(function(e){n=null}))},toggle:function(e,t,r,n){$(e.target).prop("checked")&&$(r).length&&$(n).length?(dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:1,time:365}),dphelper.svg_initConnection(t[0],[$(r)[0],"right"],[$(n)[0],"left"],(function(e,r){$("#parts-left-body").on("scroll",(function(n){dphelper.svg.makeScrollable($(t)[0],$("#parts-left-body")[0],$(e)[0],$(r)[0],$("#parts svg rect")[0],$("#parts svg rect")[1])}))}))):(dphelper.svg_removeConnection(t),$("#parts-left-body").unbind("scroll"),dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:0,time:365}))},convert:({children:e,active:t=!0,size:r=[1920,1080],fit:n=["100%","100%"],preserveAspectRatio:o="none",style:i=`width:${n[0]}; height:${n[1]}`,zoom:a=1})=>{if(!e)return"Please pass ID of element for SVG conversion";if(t){const t=$(e).clone(),s=`\n <svg\n viewBox="0 0 ${r[0]} ${r[1]}"\n preserveAspectRatio="${o}"\n xmlns="http://www.w3.org/2000/svg"\n style="${i}; zoom:${a}"\n >\n <foreignObject\n x="0"\n y="0"\n width="${n[0]}"\n height="${n[1]}"\n style="${i}; zoom:${a}"\n >\n </foreignObject>\n </svg >\n `;$(e).html(s).find("foreignObject").html(t)}}},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.svg.check()},5698:(e,t,r)=>{"use strict";r.r(t);const n={name:"system",active:!0,subCommand:[{name:"multiSplit",version:"0.0.1",example:"dphelper.system.multiSplit()",author:"Dario Passariello",creationDate:"20231121",lastMod:"20231121",type:"system",active:!0,description:"Run only one time when you load your App ... extend the .split with array as argument (example.split([',', ':', ';', '?', '/'])[0])",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.system={multiSplit:()=>{const e=String.prototype.split;String.prototype.split=function(){if(arguments[0].length>0&&"[object Array]"==Object.prototype.toString.call(arguments[0]))return function(e,t){for(var r=t[0],n=1;n<t.length;++n)e=e.split(t[n]).join(r);return e.split(r)}(this,arguments[0]);const t=arguments;return e.apply(this,t)}}},dphelper.setProps(dphelper,n,{lock:!0})},963:(e,t,r)=>{"use strict";r.r(t);const n={name:"terminal",active:!0,subCommand:[{name:"terminal",version:"0.0.1",example:"dphelper.terminal([dom])",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.terminal=function(e){if(!e)throw Error("Parent dom element required!");let t=!1,r=console.log,n=console.info,o=console.warn,i=console.error;const a=document.getElementById("terminal"),s=function(e){var t=Array.prototype.slice.call(arguments[1]).join(" ");t=e===l.WARN?'<font color="#FF6600">* WARN: '+t:e===l.ERR?'<font color="#FF0000">* ERR: '+t:"* "+t,this.domElement.innerHTML+=t+"<br/>",a&&(a.scrollTop=a.scrollHeight)},l={LOG:0,INFO:1,WARN:2,ERR:3};this.autoScroll=!0,this.disableConsoleLogging=!1;var c=document.createElement("div");c.id="debugConsole",e.appendChild(c),this.domElement=c,this.initKeyMappings=function(){t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=function(){console.log=function(){this.disableConsoleLogging||(s.call(this,l.LOG),r.apply(console))}.bind(this),console.info=function(){state.disableConsoleLogging||(s.call(this,l.INFO),n.apply(console))}.bind(this),console.warn=function(){state.disableConsoleLogging||(s.call(this,l.WARN),o.apply(console))}.bind(this),console.error=function(){state.disableConsoleLogging||(s.call(this,l.ERR),i.apply(console))}.bind(this),onerror=function(e,t,r){var n=[`${e} in <a href="${t}" target='_blank'>${null==t?void 0:t.split("/").pop()}</a>: ${r}`];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e&&(this.domElement.style.display="",this.domElement.scrollTop=this.domElement.scrollHeight)},configurable:!0},top:{get:function(){return this.domElement.style.top},set:function(e){this.domElement.style.top=e}},left:{get:function(){return this.domElement.style.left},set:function(e){this.domElement.style.left=e}},bottom:{get:function(){return this.domElement.style.bottom},set:function(e){this.domElement.style.bottom=e}},right:{get:function(){return this.domElement.style.right},set:function(e){this.domElement.style.right=e}},width:{get:function(){return this.domElement.style.width},set:function(e){this.domElement.style.width=e}},height:{get:function(){return this.domElement.style.height},set:function(e){this.domElement.style.height=e}}})},dphelper.setProps(dphelper,n,{lock:!0})},2764:(e,t,r)=>{"use strict";r.r(t);const n={name:"text",active:!0,subCommand:[{name:"trim",version:"0.0.1",example:"dphelper.text.trim(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"capitalize",version:"0.0.1",example:"dphelper.text.capitalize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"lower",version:"0.0.1",example:"dphelper.text.lower(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"upper",version:"0.0.1",example:"dphelper.text.upper(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"nl2br",version:"0.0.1",example:"dphelper.text.nl2br(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.text.sanitize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"camelCase",version:"0.0.1",example:"dphelper.text.camelCase(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"toSpace",version:"0.0.1",example:"dphelper.text.camelCase.toSpace(...)",type:"function",active:!0,description:"",subCommand:Array},{name:"toUnderscore",version:"0.0.1",example:"dphelper.text.camelCase.toUnderscore(...)",type:"function",active:!0,description:"",subCommand:Array}]},{name:"fitContainer",version:"0.0.1",example:"dphelper.font.fitContainer([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.text={trim:(e,t,r,n)=>e.charAt(0)===t?e.substring(r,n):e,capitalize:e=>e.toLowerCase().replace(/\b\w/g,(function(e){return e.toUpperCase()})),lower:e=>e.toLowerCase(),upper:e=>e.toUpperCase(),nl2br:e=>e.replace(/(?:\r\n|\r|\n)/g,"<br>"),sanitize:e=>e.replace(/<(|\/|[^>\bi]|\/[^>bi]|[^/>][^>]+|\/[^>][^>]+)>/g,""),camelCase:{toSpace:e=>e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()})),toUnderscore:e=>e.replace(/\.?([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},fitContainer:e=>{e&&dphelper.addListenerMulti(window,"load resize",(()=>{!function(e){const t=document.querySelectorAll(e),r=t.length;if(!(r<=0))for(let e=0;e<r;e++){const r=.05*t[e].offsetWidth;t[e].style.fontSize=r+"px"}}(e)}))}},dphelper.setProps(dphelper,n,{lock:!0})},6584:(e,t,r)=>{"use strict";r.r(t);const n={name:"timer",active:!0,subCommand:[{name:"sleep",version:"0.0.1",example:"dphelper.timer.sleep(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"percentage",version:"0.0.1",example:"dphelper.timer.percentage(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.timer={sleep:e=>new Promise((t=>setTimeout(t,e))),percentage:(e,t)=>{function r(e){const t=e.split(":");return 3600*t[0]+60*t[1]+t[2]}return(100*r(e)/r(t)).toFixed(2)}},dphelper.setProps(dphelper,n,{lock:!0})},3890:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"tools",active:!0,subCommand:[{name:"byteSize",description:"Give you the total in 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb', 'Zb', 'Yb' starting from bytes",example:"dphelper.tools.byteSize(bytes)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"hashPass",description:"",example:"dphelper.tools.hashPass(number, total)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"zIndex",description:"",example:"dphelper.tools.zIndex()",version:"0.0.1",author:"Dario Passariello",creationDate:"20240807",lastMod:"20240807",type:"function",active:!0,subCommand:Array},{name:"zeroToFalse",description:"",example:"dphelper.tools.zeroToFalse(num)",version:"0.0.1",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o),globalThis.getip=null,fetch("https://api.ipify.org?format=json").then((e=>e.json())).then((e=>globalThis.getip=btoa(null==e?void 0:e.ip))),Object.defineProperty(globalThis,"getip",{configurable:!1,enumerable:!1}),dphelper.tools={byteSize:e=>{const t=1024;if(Math.abs(e)<t)return e+"b";const r=["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"];let n=-1;do{e/=t,++n}while(Math.abs(e)>=t&&n<r.length-1);return e.toFixed(1)+r[n]},hashPass:(e,t)=>(0,n.sH)(void 0,void 0,void 0,(function*(){const r=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),n=yield crypto.subtle.digest("SHA-1",r);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")})),zIndex:()=>[...$("body *")].map((e=>parseFloat(getComputedStyle(e).zIndex))).reduce(((e,t)=>t>e?t:e),1),zeroToFalse:e=>0!==e&&e,getIp:()=>atob(globalThis.getip)},dphelper.setProps(dphelper,o,{lock:!0})},1938:(e,t,r)=>{"use strict";r.r(t);const n={name:"translators",active:!0,subCommand:[{name:"convertMatrixToScale",version:"0.0.1",example:"dphelper.translators.convertMatrixToScale({value})",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.translators={convertMatrixToScale:e=>{const t=(e=(e=(e=e.split("(")[1]).split(")")[0]).split(","))[0],r=e[1];return Math.sqrt(t*t+r*r)}},dphelper.setProps(dphelper,n,{lock:!0})},7822:(e,t,r)=>{"use strict";r.r(t);const n={name:"trigger",active:!0,subCommand:[{name:"click",version:"0.0.1",example:"dphelper.trigger.click(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"change",version:"0.0.1",example:"dphelper.trigger.change(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.trigger={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),r=new Event("__"+e,{bubbles:!0});r.simulated=!0,dphelper.dispatch.set("__"+e,r),t.dispatchEvent(r)}},dphelper.setProps(dphelper,n,{lock:!0})},3656:(e,t,r)=>{"use strict";r.r(t);const n={name:"type",active:!0,subCommand:[{name:"of",version:"0.0.1",example:"dphelper.type.of(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"instOfObj",version:"0.0.1",example:"dphelper.type.instOfObj(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNaN",version:"0.0.1",example:"dphelper.type.isNaN(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isPrime",version:"0.0.1",example:"dphelper.type.isPrime(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isBool",version:"0.0.1",example:"dphelper.type.isBool(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.type={of:e=>typeof e,instOfObj:e=>e instanceof Object,isNaN:e=>function(t){return!e(t)},isPrime:e=>{let t=e/2,r=!0;for(;t>1;)e%t==0?(r=!1,t=0):t-=1;return!0===r},isBool:e=>!e||null==e.length||"1"===e},dphelper.setProps(dphelper,n,{lock:!0})},4245:()=>{},3583:(e,t,r)=>{"use strict";r.r(t);const n={name:"window",active:!0,subCommand:[{name:"enhancement",version:"0.0.1",example:"dphelper.window.enhancement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use only one time at end of application",subCommand:Array},{name:"center",version:"0.0.1",example:"dphelper.window.center({ url, title, name, w, h })",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use to center popup to screen",subCommand:Array},{name:"onBeforeUnLoad",version:"0.0.1",example:"dphelper.window.onBeforeUnLoad()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"message during leave the site",subCommand:Array},{name:"purge",version:"0.0.1",example:"dphelper.window.purge()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Purge from memory",subCommand:Array},{name:"stopZoomWheel",version:"0.0.1",example:"dphelper.window.stopZoomWheel(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Stop Zoom Generated by Mouse Wheel",subCommand:Array},{name:"setZoom",version:"0.0.1",example:"dphelper.window.setZoom([el,1])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array},{name:"getZoom",version:"0.0.1",example:"dphelper.window.getZoom([el])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.window={enhancement:()=>{globalThis.offScreenBuffering="auto",dphelper.window.animationframe()},animationframe:()=>{const e=globalThis;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/120)}},center:({url:e,title:t,name:r,w:n,h:o})=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,a=void 0!==window.screenTop?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,c=s/window.screen.availWidth,d=(s-n)/2/c+i,u=(l-o)/2/c+a,p=window.open(e,t,`\n scrollbars=yes,\n width=${n/c},\n height=${o/c},\n top=${u},\n left=${d}\n `);window.onfocus=()=>null==p?void 0:p.focus()},onBeforeUnLoad:e=>{let t=!1,r=!1;const n="You have made some changes which you might want to save.",o=e=>(e.preventDefault(),n),i=document.querySelector(e.target);i&&i.addEventListener("input",(t=>{""!==e.target.value?addEventListener("beforeunload",o,{capture:!0}):removeEventListener("beforeunload",o,{capture:!0})})),!1===r&&(document.body.addEventListener("click",(r=>{if("IMG"===e.target.tagName&&!0===t){if(!0===confirm(n))return t=!1;r.preventDefault()}})),r=!0),addEventListener("popstate",(e=>{if(!0===t)return!0===confirm(n)?t=!1:(e.stopImmediatePropagation(),e.preventDefault(),n)})),window.onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout((()=>{if(!e)return null;let t=e.attributes;if(t){const r=t.length;for(let n=0;n<r;n+=1){const r=t[n].name;"function"==typeof e[r]&&(e[r]=null),void 0===e[r]&&(e[r]=null)}}if(t=e.childNodes,t){const r=t.length;for(let t=0;t<r;t+=1)dphelper.purge(e.childNodes[t])}}),t)},stopZoomWheel:e=>{addEventListener("wheel",(e=>{e.ctrlKey&&e.preventDefault()}),{passive:!1}),addEventListener("keydown",(e=>{const t=dphelper.event.keys(e);["+","-","="].includes(t.key)&&t.ctrl&&e.preventDefault()}))},setZoom:(e="html",t=1)=>(t<0&&(t=1),$(e).css("zoom",t),`New zoom value: ${100*t}% (css: ${t})`),getZoom:(e="html")=>Number($(e).css("zoom"))},dphelper.setProps(dphelper,n,{lock:!0})},8343:function(e,t){var r,n,o;!function(i,a){"use strict";n=[],void 0===(o="function"==typeof(r=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var r={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function n(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function i(e,r,n){if("property"===t.arrayAccessForm&&(e[r]instanceof Array?e[r+"_asArray"]=e[r]:e[r+"_asArray"]=[e[r]]),!(e[r]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===n){o=!0;break}}else if(a instanceof RegExp){if(a.test(n)){o=!0;break}}else if("function"==typeof a&&a(r,n)){o=!0;break}}o&&(e[r]=[e[r]])}}function a(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function s(e,o){for(var s={__cnt:0},c=e.childNodes,d=0;d<c.length;d++){var u=c.item(d),p=n(u);u.nodeType!==r.COMMENT_NODE&&(s.__cnt++,null==s[p]?(s[p]=l(u,o+"."+p),i(s,p,o+"."+p)):(s[p]instanceof Array||(s[p]=[s[p]],i(s,p,o+"."+p)),s[p][s[p].length]=l(u,o+"."+p)))}for(var h=0;h<e.attributes.length;h++){var f=e.attributes.item(h);s.__cnt++;for(var m=f.value,v=0;v<t.attributeConverters.length;v++){var g=t.attributeConverters[v];g.test.call(null,f.name,f.value)&&(m=g.convert.call(null,f.name,f.value))}s[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(s.__cnt++,s.__prefix=y),s["#text"]&&(s.__text=s["#text"],s.__text instanceof Array&&(s.__text=s.__text.join("\n")),t.escapeMode&&(s.__text=s.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(s.__text=s.__text.trim()),delete s["#text"],"property"===t.arrayAccessForm&&delete s["#text_asArray"],s.__text=function(e,r,n){if(t.datetimeAccessFormPaths.length>0)for(var o=n.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var s=t.datetimeAccessFormPaths[i];if("string"==typeof s){if(s===o)return a(e)}else if(s instanceof RegExp){if(s.test(o))return a(e)}else if("function"==typeof s&&s(o))return a(e)}return e}(s.__text,0,o+".#text")),s.hasOwnProperty("#cdata-section")&&(s.__cdata=s["#cdata-section"],delete s["#cdata-section"],"property"===t.arrayAccessForm&&delete s["#cdata-section_asArray"]),1===s.__cnt&&s.__text&&!t.keepText?s=s.__text:0===s.__cnt&&"text"===t.emptyNodeForm?s="":s.__cnt>1&&void 0!==s.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===s.__text||""===s.__text.trim())&&delete s.__text,delete s.__cnt,t.keepCData||s.hasOwnProperty("__text")||!s.hasOwnProperty("__cdata")||1!==Object.keys(s).length?(t.enableToStringFunc&&(s.__text||s.__cdata)&&(s.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),s):s.__cdata?s.__cdata:""}function l(e,o){return e.nodeType===r.DOCUMENT_NODE?function(e){for(var o={},i=e.childNodes,a=0;a<i.length;a++){var s=i.item(a);if(s.nodeType===r.ELEMENT_NODE){var c=n(s);t.ignoreRoot?o=l(s,c):o[c]=l(s,c)}}return o}(e):e.nodeType===r.ELEMENT_NODE?s(e,o):e.nodeType===r.TEXT_NODE||e.nodeType===r.CDATA_SECTION_NODE?e.nodeValue:null}function c(e,r,n,i){var a="<"+(e&&e.__prefix?e.__prefix+":":"")+r;if(n)for(var s=0;s<n.length;s++){var l=n[s],c=e[l];t.escapeMode&&(c=o(c)),a+=" "+l.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?a+='"'+c+'"':a+="'"+c+"'"}return a+(i?" />":">")}function d(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function u(e,r){return!!("property"===t.arrayAccessForm&&(n=r.toString(),o="_asArray",-1!==n.indexOf(o,n.length-o.length))||0===r.toString().indexOf(t.attributePrefix)||0===r.toString().indexOf("__")||e[r]instanceof Function);var n,o}function p(e){var t=0;if(e instanceof Object)for(var r in e)u(e,r)||t++;return t}function h(e){var r=[];if(e instanceof Object)for(var n in e)-1===n.toString().indexOf("__")&&0===n.toString().indexOf(t.attributePrefix)&&r.push(n);return r}function f(e){var r="";return e instanceof Object?r+=function(e){var r="";return e.__cdata&&(r+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?r+=o(e.__text):r+=e.__text),r}(e):null!==e&&(t.escapeMode?r+=o(e):r+=e),r}function m(e,r,n){var o="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,r,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,r,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?o+=function(e,t,r){var n="";if(0===e.length)n+=c(e,t,r,!0);else for(var o=0;o<e.length;o++)n+=m(e[o],t,h(e[o]));return n}(e,r,n):e instanceof Date?(o+=c(e,r,n,!1),o+=t.jsDateUTC?e.toUTCString():e.toISOString(),o+=d(e,r)):p(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(o+=c(e,r,n,!1),o+=v(e),o+=d(e,r)):t.selfClosingElements?o+=c(e,r,n,!0):(o+=c(e,r,n,!1),o+=d(e,r)):(o+=c(e,r,n,!1),o+=f(e),o+=d(e,r)):o+=c(e,r,n,!0)),o}function v(e){var t="";if(p(e)>0)for(var r in e)if(!u(e,r)){var n=e[r];t+=m(n,r,h(n))}return t+f(e)}function g(r){if(void 0===r)return null;if("string"!=typeof r)return null;var n=null,o=null;if(e)o=(n=new e(t.xmldomOptions)).parseFromString(r,"text/xml");else if(window&&window.DOMParser){n=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=n.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{o=n.parseFromString(r,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(e){o=null}}else 0===r.indexOf("<?")&&(r=r.substr(r.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(r);return o}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?a(e):e},this.xml2dom=function(e){return g(e)},this.dom2js=function(e){return l(e,null)},this.js2dom=function(e){return g(this.js2xml(e))},this.xml2js=function(e){var t=g(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return v(e)},this.getVersion=function(){return"3.4.4"}}})?r.apply(t,n):r)||(e.exports=o)}()},670:(e,t,r)=>{var n={".":8907,"./":8907,"./index":8907,"./index.ts":8907};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=670},6245:(e,t,r)=>{var n={"./@/over.ts":5815,"./@/setProps.ts":35,"./anchor/index.ts":9634,"./array/index.ts":4292,"./audio/index.ts":7331,"./avoid/index.ts":8292,"./browser/index.ts":8705,"./cache/index.ts":3119,"./checks/index.ts":7026,"./color/index.ts":8598,"./console/index.ts":7424,"./console/mapped.ts":1585,"./cookie/index.ts":2057,"./coords/index.ts":9553,"./credits/index.ts":8527,"./date/index.ts":4459,"./disable/index.ts":2373,"./dispatch/index.ts":493,"./elements/index.ts":3906,"./events/index.ts":1434,"./form/index.ts":753,"./format/index.ts":4472,"./functions/index.ts":5308,"./idb/index.ts":6668,"./imports/index.ts":4111,"./json/index.ts":21,"./load/index.ts":8907,"./logs/index.ts":404,"./math/index.ts":3169,"./memory/index.ts":2084,"./objects/index.ts":6957,"./observer/index.ts":2553,"./path/index.ts":1236,"./promise/index.ts":984,"./screen/index.ts":6627,"./scrollbar/index.ts":5155,"./security/index.ts":2725,"./shortcut/index.ts":1765,"./socket/index.ts":8562,"./state/index.ts":1148,"./store/index.ts":6212,"./svg/index.ts":9011,"./system/index.ts":5698,"./terminal/index.ts":963,"./text/index.ts":2764,"./timer/index.ts":6584,"./tools/index.ts":3890,"./translators/index.ts":1938,"./triggers/index.ts":7822,"./types/index.ts":3656,"./ui/index.ts":4245,"./window/index.ts":3583};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=6245},477:()=>{},1635:(e,t,r)=>{"use strict";function n(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}r.d(t,{sH:()=>n}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},4787:e=>{"use strict";e.exports=JSON.parse('{"info":{"title":"List","description":"Complete list of tools"},"categories":["3dparty","system","financial","memory","numbers","time","path","file","forms","ui","other"]}')},1809:e=>{"use strict";e.exports=JSON.parse('{"100":{"code":100,"message":"Continue","description":"The server has received the request headers, and the client should proceed to send the request body."},"101":{"code":101,"message":"Switching Protocols","description":"The requester has asked the server to switch protocols."},"102":{"code":102,"message":"Processing","description":"This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost."},"103":{"code":103,"message":"Early Hints","description":"Used to return some response headers before final HTTP message."},"200":{"code":200,"message":"OK","description":"The request is OK (this is the standard response for successful HTTP requests)."},"201":{"code":201,"message":"Created","description":"The request has been fulfilled, and a new resource is created."},"202":{"code":202,"message":"Accepted","description":"The request has been accepted for processing, but the processing has not been completed."},"203":{"code":203,"message":"Non-Authoritative Information","description":"The request has been successfully processed, but is returning information that may be from another source."},"204":{"code":204,"message":"No Content","description":"The request has been successfully processed, but is not returning any content."},"205":{"code":205,"message":"Reset Content","description":"The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view."},"206":{"code":206,"message":"Partial Content","description":"The server is delivering only part of the resource due to a range header sent by the client."},"207":{"code":207,"message":"Multi-Status","description":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made."},"208":{"code":208,"message":"Already Reported","description":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again."},"218":{"code":218,"message":"This is fine (Apache Web Server)","description":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled."},"226":{"code":226,"message":"IM Used","description":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."},"300":{"code":300,"message":"Multiple Choices","description":"A link list. The user can select a link and go to that location. Maximum five addresses."},"301":{"code":301,"message":"Moved Permanently","description":"The requested page has moved to a new URL."},"302":{"code":302,"message":"Found","description":"The requested page has moved temporarily to a new URL."},"303":{"code":303,"message":"See Other","description":"The requested page can be found under a different URL."},"304":{"code":304,"message":"Not Modified","description":"Indicates the requested page has not been modified since last requested."},"306":{"code":306,"message":"Switch Proxy","description":"No longer used. Originally meant \\"Subsequent requests should use the specified proxy.\\""},"307":{"code":307,"message":"Temporary Redirect","description":"The requested page has moved temporarily to a new URL."},"308":{"code":308,"message":"Resume Incomplete","description":"Used in the resumable requests proposal to resume aborted PUT or POST requests."},"400":{"code":400,"message":"Bad Request","description":"The request cannot be fulfilled due to bad syntax."},"401":{"code":401,"message":"Unauthorized","description":"The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided."},"402":{"code":402,"message":"Payment Required","description":"Not yet implemented by RFC standards, but reserved for future use."},"403":{"code":403,"message":"Forbidden","description":"The request was a legal request, but the server is refusing to respond to it."},"404":{"code":404,"message":"Not Found","description":"The requested page could not be found but may be available again in the future."},"405":{"code":405,"message":"Method Not Allowed","description":"A request was made of a page using a request method not supported by that page."},"406":{"code":406,"message":"Not Acceptable","description":"The server can only generate a response that is not accepted by the client."},"407":{"code":407,"message":"Proxy Authentication Required","description":"The client must first authenticate itself with the proxy."},"408":{"code":408,"message":"Request Timeout","description":"The server timed out waiting for the request."},"409":{"code":409,"message":"Conflict","description":"The request could not be completed because of a conflict in the request."},"410":{"code":410,"message":"Gone","description":"The requested page is no longer available."},"411":{"code":411,"message":"Length Required","description":"The \\"Content-Length\\" is not defined. The server will not accept the request without it."},"412":{"code":412,"message":"Precondition Failed","description":"The precondition given in the request evaluated to false by the server."},"413":{"code":413,"message":"Request Entity Too Large","description":"The server will not accept the request, because the request entity is too large."},"414":{"code":414,"message":"Request-URI Too Long","description":"The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information."},"415":{"code":415,"message":"Unsupported Media Type","description":"The server will not accept the request, because the media type is not supported."},"416":{"code":416,"message":"Requested Range Not Satisfiable","description":"The client has asked for a portion of the file, but the server cannot supply that portion."},"417":{"code":417,"message":"Expectation Failed","description":"The server cannot meet the requirements of the Expect request-header field."},"418":{"code":418,"message":"I\'m a teapot","description":"Any attempt to brew coffee with a teapot should result in the error code \\"418 I\'m a teapot\\". The resulting entity body MAY be short and stout."},"419":{"code":419,"message":"Page Expired (Laravel Framework)","description":"Used by the Laravel Framework when a CSRF Token is missing or expired."},"420":{"code":420,"message":"Method Failure (Spring Framework)","description":"A deprecated response used by the Spring Framework when a method has failed."},"421":{"code":421,"message":"Misdirected Request","description":"The request was directed at a server that is not able to produce a response (for example because a connection reuse)."},"422":{"code":422,"message":"Unprocessable Entity","description":"The request was well-formed but was unable to be followed due to semantic errors."},"423":{"code":423,"message":"Locked","description":"The resource that is being accessed is locked."},"424":{"code":424,"message":"Failed Dependency","description":"The request failed due to failure of a previous request (e.g., a PROPPATCH)."},"426":{"code":426,"message":"Upgrade Required","description":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field."},"428":{"code":428,"message":"Precondition Required","description":"The origin server requires the request to be conditional."},"429":{"code":429,"message":"Too Many Requests","description":"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes."},"431":{"code":431,"message":"Request Header Fields Too Large","description":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large."},"440":{"code":440,"message":"Login Time-out","description":"The client\'s session has expired and must log in again. (IIS)"},"444":{"code":444,"message":"Connection Closed Without Response","description":"A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests."},"449":{"code":449,"message":"Retry With","description":"The server cannot honour the request because the user has not provided the required information. (IIS)"},"450":{"code":450,"message":"Blocked by Windows Parental Controls","description":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage."},"451":{"code":451,"message":"Unavailable For Legal Reasons","description":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource."},"494":{"code":494,"message":"Request Header Too Large","description":"Used by nginx to indicate the client sent too large of a request or header line that is too long."},"495":{"code":495,"message":"SSL Certificate Error","description":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate."},"496":{"code":496,"message":"SSL Certificate Required","description":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided."},"497":{"code":497,"message":"HTTP Request Sent to HTTPS Port","description":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests."},"498":{"code":498,"message":"Invalid Token (Esri)","description":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token."},"499":{"code":499,"message":"Client Closed Request","description":"A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request."},"500":{"code":500,"message":"Internal Server Error","description":"An error has occurred in a server side script, a no more specific message is suitable."},"501":{"code":501,"message":"Not Implemented","description":"The server either does not recognize the request method, or it lacks the ability to fulfill the request."},"502":{"code":502,"message":"Bad Gateway","description":"The server was acting as a gateway or proxy and received an invalid response from the upstream server."},"503":{"code":503,"message":"Service Unavailable","description":"The server is currently unavailable (overloaded or down)."},"504":{"code":504,"message":"Gateway Timeout","description":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server."},"505":{"code":505,"message":"HTTP Version Not Supported","description":"The server does not support the HTTP protocol version used in the request."},"506":{"code":506,"message":"Variant Also Negotiates","description":"Transparent content negotiation for the request results in a circular reference."},"507":{"code":507,"message":"Insufficient Storage","description":"The server is unable to store the representation needed to complete the request."},"508":{"code":508,"message":"Loop Detected","description":"The server detected an infinite loop while processing the request (sent instead of 208 Already Reported)."},"509":{"code":509,"message":"Bandwidth Limit Exceeded","description":"The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers."},"510":{"code":510,"message":"Not Extended","description":"Further extensions to the request are required for the server to fulfil it."},"511":{"code":511,"message":"Network Authentication Required","description":"The client needs to authenticate to gain network access."},"520":{"code":520,"message":"Unknown Error","description":"The 520 error is used as a \\"catch-all response for when the origin server returns something unexpected\\", listing connection resets, large headers, and empty or invalid responses as common triggers."},"521":{"code":521,"message":"Web Server Is Down","description":"The origin server has refused the connection from Cloudflare."},"522":{"code":522,"message":"Connection Timed Out","description":"Cloudflare could not negotiate a TCP handshake with the origin server."},"523":{"code":523,"message":"Origin Is Unreachable","description":"Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect."},"524":{"code":524,"message":"A Timeout Occurred","description":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response."},"525":{"code":525,"message":"SSL Handshake Failed","description":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server."},"526":{"code":526,"message":"Invalid SSL Certificate","description":"Used by Cloudflare and Cloud Foundry\'s gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented."},"527":{"code":527,"message":"Railgun Listener to Origin Error","description":"Error 527 indicates that the request timed out or failed after the WAN connection had been established."},"530":{"code":530,"message":"Origin DNS Error","description":"Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server."},"598":{"code":598,"message":"Network Read Timeout Error","description":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy."},"1xx":{"code":"1xx","message":"Information","description":"1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action."},"2xx":{"code":"2xx","message":"Successful","description":"2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully."},"3xx":{"code":"3xx","message":"Redirection","description":"3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource."},"4xx":{"code":"4xx","message":"Client Error","description":"4xx codes generally are error responses specifying an issue at the clientβs end. Potentially a network issue."},"5xx":{"code":"5xx","message":"Server Error","description":"5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host."}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"dphelper","version":"1.6.2","displayName":"dphelper","description":"dphelper devtools | tools, store and state management brave developers by Dario Passariello","copyright":"Dario Passariello","license":"MIT","relaseType":"gold","port":3000,"code":"vulcano","codeRelease":"dphelper","folder":"/","appPort":"","main":"./index.ts","logo":"","typeID":0,"theme":"default","deprecated":false,"target":"web","targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"port":3000,"code":"dphelper","name":"dphelper","type":"beta","folder":"/","appPort":"","main":"index.ts","target":"web","proxy":{},"api":{"dir":"/api/","local":"https://api.biglogic.ca","dev":"https://api.biglogic.ca","prod":"https://api.biglogic.ca"},"socket":{"test":"https://ws.biglogic.ca","dev":"https://ws.biglogic.ca","prod":"https://ws.biglogic.ca"},"url":{"dev":"http://localhost"},"info":{"type":"gold","code":"dphelper","codeRelease":"dphelper"},"cdn":{}},"homepage":"https://github.com/passariello/dphelper","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"cordova":{"platforms":["android"]},"npmName":"dphelper","npmFileMap":[{"basePath":"./dist/","files":["*.js"]}],"types":"./index.d.ts","typings":"./types/*","globals":{"dphelper":{},"jQuery":{},"$":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"engines":{"node":">=18.0.0"},"keywords":["helper","dphelper","utils","tools","uuid","random","window","store","easy","pro","powerful","state","status","dpHelper","dp helper","helper","local","storage","indexeddb","idb","devtool","dario","passariello"],"repository":{"type":"git","url":"git+https://github.com/passariello/dphelper.git","help":"git+https://github.com/passariello/dphelper.git#readme"},"bugs":{"url":"https://github.com/passariello/dphelper/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode=development --config webpack.ts","make-dist":"webpack --progress --color --mode=production --config webpack.ts","-":"--------------","git":"git push --all -u && git add . && git commit -m \\"update\\" && git pull && git push --all","--":"-------------","tsc":"tsc -b","eslint":"eslint","---":"------------","pack":"cd dist && npm pack","backup":"cd mcp/batch && backup.bat","update":"cd mcp/javascripts && node npmUpdate"},"devDependencies":{"@types/webpack-env":"1.18.5","compression-webpack-plugin":"11.1.0","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","file-loader":"6.2.0","javascript-obfuscator":"4.1.1","jest":"29.7.0","jquery":"3.7.1","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.6.2","webpack":"^5.95.0","webpack-cli":"5.1.4","webpack-dev-server":"^5.1.0","x2js":"3.4.4"}}')}},n={};function o(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=n[e]={exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=n,o.i=[],o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"45f554f08e62b625ad22",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="dphelper:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,r,n={},i=o.c,a=[],s=[],l="idle",c=0,d=[];function u(e){l=e;for(var t=[],r=0;r<s.length;r++)t[r]=s[r].call(null,e);return Promise.all(t).then((function(){}))}function p(){0==--c&&u("ready").then((function(){if(0===c){var e=d;d=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(o.hmrM).then((function(r){return r?u("prepare").then((function(){var n=[];return t=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,t,n),e}),[])).then((function(){return t=function(){return e?m(e):u("ready").then((function(){return n}))},0===c?t():new Promise((function(e){d.push((function(){e(t())}))}));var t}))})):u(v()?"ready":"idle").then((function(){return null}))}))}function f(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},v();var n=t.map((function(t){return t(e)}));t=void 0;var o=n.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return u("abort").then((function(){throw o[0]}));var i=u("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var a,s=u("apply"),l=function(e){a||(a=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,s]).then((function(){return a?u("fail").then((function(){throw a})):r?m(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function v(){if(r)return t||(t=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,t)}))})),r=void 0,!0}o.hmrD=n,o.i.push((function(d){var m,v,g,y,b=d.module,x=function(t,r){var n=i[r];if(!n)return t;var o=function(o){if(n.hot.active){if(i[o]){var s=i[o].parents;-1===s.indexOf(r)&&s.push(r)}else a=[r],e=o;-1===n.children.indexOf(o)&&n.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return t(o)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&"e"!==d&&Object.defineProperty(o,d,s(d));return o.e=function(e,r){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,r))},o}(d.require,d.id);b.hot=(m=d.id,v=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){a=v.parents.slice(),e=g?void 0:m,o(m)},active:!0,accept:function(e,t,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._acceptedDependencies[e[n]]=t||function(){},y._acceptedErrorHandlers[e[n]]=r;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)})),u("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,y),b.parents=a,b.children=[],a=[],d.require=x})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,t,r,n,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=o.p+o.hu(t),i=new Error;o.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r(i)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var i=n.pop(),a=i.id,s=i.chain,c=o.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var d=0;d<c.parents.length;d++){var u=c.parents[d],p=o.c[u];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([u]),moduleId:a,parentId:u};-1===t.indexOf(u)&&(p.hot._acceptedDependencies[a]?(r[u]||(r[u]=[]),l(r[u],[a])):(delete r[u],t.push(u),n.push({chain:s.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}}o.f&&delete o.f.jsonpHmr,t=void 0;var c={},d=[],u={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(o.o(r,h)){var f=r[h],m=f?s(h):{type:"disposed",moduleId:h},v=!1,g=!1,y=!1,b="";switch(m.chain&&(b="\nUpdate propagation: "+m.chain.join(" -> ")),m.type){case"self-declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of self decline: "+m.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+m.moduleId+" in "+m.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(m),e.ignoreUnaccepted||(v=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(m),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(m),y=!0;break;default:throw new Error("Unexception type "+m.type)}if(v)return{error:v};if(g)for(h in u[h]=f,l(d,m.outdatedModules),m.outdatedDependencies)o.o(m.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],m.outdatedDependencies[h]));y&&(l(d,[m.moduleId]),u[h]=p)}r=void 0;for(var x,w=[],D=0;D<d.length;D++){var C=d[D],A=o.c[C];A&&(A.hot._selfAccepted||A.hot._main)&&u[C]!==p&&!A.hot._selfInvalidated&&w.push({module:C,require:A.hot._requireSelf,errorHandler:A.hot._selfAccepted})}return{dispose:function(){var e;n.forEach((function(e){delete a[e]})),n=void 0;for(var t,r=d.slice();r.length>0;){var i=r.pop(),s=o.c[i];if(s){var l={},u=s.hot._disposeHandlers;for(D=0;D<u.length;D++)u[D].call(null,l);for(o.hmrD[i]=l,s.hot.active=!1,delete o.c[i],delete c[i],D=0;D<s.children.length;D++){var p=o.c[s.children[D]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var h in c)if(o.o(c,h)&&(s=o.c[h]))for(x=c[h],D=0;D<x.length;D++)t=x[D],(e=s.children.indexOf(t))>=0&&s.children.splice(e,1)},apply:function(t){for(var r in u)o.o(u,r)&&(o.m[r]=u[r]);for(var n=0;n<i.length;n++)i[n](o);for(var a in c)if(o.o(c,a)){var s=o.c[a];if(s){x=c[a];for(var l=[],p=[],h=[],f=0;f<x.length;f++){var m=x[f],v=s.hot._acceptedDependencies[m],g=s.hot._acceptedErrorHandlers[m];if(v){if(-1!==l.indexOf(v))continue;l.push(v),p.push(g),h.push(m)}}for(var y=0;y<l.length;y++)try{l[y].call(null,x)}catch(r){if("function"==typeof p[y])try{p[y](r,{moduleId:a,dependencyId:h[y]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:a,dependencyId:h[y],error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:a,dependencyId:h[y],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var D=w[b],C=D.module;try{D.require(C)}catch(r){if("function"==typeof D.errorHandler)try{D.errorHandler(r,{moduleId:C,module:o.c[C]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:r}),e.ignoreErrored||t(r)}}return d}}}self.webpackHotUpdatedphelper=(t,n,a)=>{for(var l in n)o.o(n,l)&&(r[l]=n[l],e&&e.push(l));a&&i.push(a),s[t]&&(s[t](),s[t]=void 0)},o.hmrI.jsonp=function(e,t){r||(r={},i=[],n=[],t.push(c)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,s,d,u,p,h){p.push(c),t={},n=s,r=d.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){t&&o.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o(7695)})();
|
package/package.json
CHANGED