diff --git a/data_svelte/build/bundle.css b/data_svelte/build/bundle.css index 5c5c667a..cddf9ed2 100644 --- a/data_svelte/build/bundle.css +++ b/data_svelte/build/bundle.css @@ -11,4 +11,4 @@ Consolas, 'Liberation Mono', Menlo, - monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type='button']{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,::before,::after{--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.cards-grid{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));justify-items:center;gap:1rem}@media(min-width: 640px){.cards-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 1024px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media(min-width: 1280px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media(min-width: 1536px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}.cards-grid-inline{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));justify-items:center}.card{width:100%;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity));padding:0.5rem;--tw-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}@media(min-width: 640px){.card{padding:0.5rem}}@media(min-width: 768px){.card{padding:0.5rem}}@media(min-width: 1024px){.card{padding:0.5rem;--tw-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}}@media(min-width: 1280px){.card{padding-left:2rem;padding-right:2rem;padding-top:1rem;padding-bottom:1rem}}@media(min-width: 1536px){.card{padding-left:2rem;padding-right:2rem;padding-top:1rem;padding-bottom:1rem}}.card-header{padding-bottom:1rem;text-align:center;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.card-items-psn{margin-bottom:1rem;display:flex;height:2rem;align-items:center}.widget-descr-width{width:66.666667%}.widget-descr-style{padding-right:1rem;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.widget-width{display:flex;width:33.333333%;justify-content:flex-end}.widget-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-radius:0.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.widget-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.widget-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:1rem;text-align:right;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.widget-input:focus{outline:2px solid transparent;outline-offset:2px}.json-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-radius:0.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.json-input:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.json-input{--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.json-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.json-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:1rem;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.json-input:focus{outline:2px solid transparent;outline-offset:2px}.widget-anydata-style{text-align:center;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.table-head-element{width:25%;overflow-wrap:break-word;border-width:1px;--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity));text-align:center;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.table-body-element{width:25%;overflow-wrap:break-word;border-width:1px;--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity));text-align:center}.table-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-width:2px;--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.table-input:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.table-input{--tw-bg-opacity:1;background-color:rgba(243, 244, 246, var(--tw-bg-opacity))}.table-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.table-input{text-align:center;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.table-input:focus{outline:2px solid transparent;outline-offset:2px}.long-button{margin-top:1rem;display:flex;height:2rem;width:100%;align-content:center;justify-content:center;overflow-wrap:break-word;border-radius:0.25rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(219, 234, 254, var(--tw-bg-opacity))}.long-button:hover{--tw-bg-opacity:1;background-color:rgba(191, 219, 254, var(--tw-bg-opacity))}.long-button{font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-1{top:0.25rem}.left-1{left:0.25rem}.m-0{margin:0px}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-10{height:2.5rem}.w-4{width:1rem}.w-8{width:2rem}.w-10{width:2.5rem}.w-1\/4{width:25%}.w-full{width:100%}.table-fixed{table-layout:fixed}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,100%{transform:scale(2);opacity:0}}@keyframes ping{75%,100%{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,100%{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(0.8,0,1,1);animation-timing-function:cubic-bezier(0.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,0.2,1);animation-timing-function:cubic-bezier(0,0,0.2,1)}}@keyframes bounce{0%,100%{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(0.8,0,1,1);animation-timing-function:cubic-bezier(0.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,0.2,1);animation-timing-function:cubic-bezier(0,0,0.2,1)}}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-4{gap:1rem}.break-words{overflow-wrap:break-word}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:0.5rem}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgba(239, 68, 68, var(--tw-border-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgba(249, 250, 251, var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243, 244, 246, var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgba(75, 85, 99, var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgba(254, 226, 226, var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgba(248, 113, 113, var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgba(209, 250, 229, var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgba(219, 234, 254, var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgba(99, 102, 241, var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgba(191, 219, 254, var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgba(67, 56, 202, var(--tw-bg-opacity))}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.bg-cover{background-size:cover}.p-2{padding:0.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.pt-8{padding-top:2rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-semibold{font-weight:600}.font-bold{font-weight:700}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity:1;color:rgba(0, 0, 0, var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgba(239, 68, 68, var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgba(16, 185, 129, var(--tw-text-opacity))}*,::before,::after{--tw-shadow:0 0 #0000}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,::before,::after{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgba(129, 140, 248, var(--tw-ring-opacity))}.transition{transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}#menu__toggle{opacity:0}#menu__toggle:checked~.menu__btn>span{transform:rotate(45deg)}#menu__toggle:checked~.menu__btn>span::before{top:0;transform:rotate(0)}#menu__toggle:checked~.menu__btn>span::after{top:0;transform:rotate(90deg)}#menu__toggle:checked~.menu__box{visibility:visible;left:0}#menu__toggle:checked~.menu__main{margin-left:150px;transition-duration:0.25s}.menu__btn{display:flex;align-items:center;position:fixed;z-index:1;top:10px;left:20px;width:20px;height:20px;cursor:pointer}.menu__btn>span,.menu__btn>span::before,.menu__btn>span::after{display:block;position:absolute;width:100%;height:2px;background-color:#616161;transition-duration:0.25s}.menu__btn>span::before{content:"";top:-8px}.menu__btn>span::after{content:"";top:8px}.menu__box{display:block;position:fixed;visibility:hidden;top:0;left:-100%;width:150px;height:100%;margin:0;padding:80px 0;list-style:none;background-color:#eceff1;box-shadow:1px 0px 6px rgba(0, 0, 0, 0.2);transition-duration:0.25s}.menu__item{display:block;padding:12px 24px;color:rgba(51, 51, 51, 0.788);font-family:"Roboto", sans-serif;font-size:15px;font-weight:600;text-decoration:none;transition-duration:0.25s}.menu__item:hover{background-color:#cfd8dc}.upper__bar{background-color:rgba(51, 51, 51, 0.144);height:70px;position:fixed;z-index:-1;top:0px;left:0;width:100%;margin:0;padding:0;box-shadow:1px 0px 3px rgba(0, 0, 0, 0.2)}input[type="date"]::-webkit-calendar-picker-indicator{margin-left:5px;margin-right:-8px}input[type="time"]::-webkit-calendar-picker-indicator{margin-left:5px;margin-right:-8px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{margin-left:7px;margin-right:-6px;width:30px;height:30px;opacity:1}input:checked~.dot{transform:translateX(100%)}@media(min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.sm\:p-2{padding:0.5rem}}@media(min-width: 768px){.md\:p-2{padding:0.5rem}}@media(min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.lg\:p-2{padding:0.5rem}}@media(min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.xl\:px-8{padding-left:2rem;padding-right:2rem}.xl\:py-4{padding-top:1rem;padding-bottom:1rem}}@media(min-width: 1536px){.\32xl\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.\32xl\:px-8{padding-left:2rem;padding-right:2rem}.\32xl\:py-4{padding-top:1rem;padding-bottom:1rem}} \ No newline at end of file + monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type='button']{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,::before,::after{--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.cards-grid{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));justify-items:center;gap:1rem}@media(min-width: 640px){.cards-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 1024px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media(min-width: 1280px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media(min-width: 1536px){.cards-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}.cards-grid-inline{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));justify-items:center}.card{width:100%;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity));padding:0.5rem;--tw-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}@media(min-width: 640px){.card{padding:0.5rem}}@media(min-width: 768px){.card{padding:0.5rem}}@media(min-width: 1024px){.card{padding:0.5rem;--tw-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}}@media(min-width: 1280px){.card{padding-left:2rem;padding-right:2rem;padding-top:1rem;padding-bottom:1rem}}@media(min-width: 1536px){.card{padding-left:2rem;padding-right:2rem;padding-top:1rem;padding-bottom:1rem}}.card-header{padding-bottom:1rem;text-align:center;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.card-items-psn{margin-bottom:1rem;display:flex;height:2rem;align-items:center}.widget-descr-width{width:66.666667%}.widget-descr-style{padding-right:1rem;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.widget-width{display:flex;width:33.333333%;justify-content:flex-end}.widget-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-radius:0.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.widget-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.widget-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:1rem;text-align:right;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.widget-input:focus{outline:2px solid transparent;outline-offset:2px}.json-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-radius:0.25rem;border-width:2px;--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.json-input:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.json-input{--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.json-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.json-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:1rem;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.json-input:focus{outline:2px solid transparent;outline-offset:2px}.widget-anydata-style{text-align:center;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.table-head-element{overflow-wrap:break-word;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.5rem;padding-bottom:0.5rem;text-align:center;font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.table-body-element{overflow-wrap:break-word;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.5rem;padding-bottom:0.5rem;text-align:center}.table-input{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;border-width:2px;--tw-border-opacity:1;border-color:rgba(243, 244, 246, var(--tw-border-opacity))}.table-input:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.table-input{--tw-bg-opacity:1;background-color:rgba(249, 250, 251, var(--tw-bg-opacity))}.table-input:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.table-input{text-align:center;line-height:1.25;--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.table-input:focus{outline:2px solid transparent;outline-offset:2px}.long-button{margin-top:1rem;display:flex;height:2rem;width:100%;align-content:center;justify-content:center;overflow-wrap:break-word;border-radius:0.25rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(219, 234, 254, var(--tw-bg-opacity))}.long-button:hover{--tw-bg-opacity:1;background-color:rgba(191, 219, 254, var(--tw-bg-opacity))}.long-button{font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.table-button{display:flex;height:1.5rem;width:2.5rem;align-content:center;justify-content:center;border-width:1px;--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity));font-weight:700;--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-1{top:0.25rem}.left-1{left:0.25rem}.m-0{margin:0px}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-10{height:2.5rem}.w-4{width:1rem}.w-8{width:2rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-full{width:100%}.table-fixed{table-layout:fixed}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,100%{transform:scale(2);opacity:0}}@keyframes ping{75%,100%{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,100%{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(0.8,0,1,1);animation-timing-function:cubic-bezier(0.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,0.2,1);animation-timing-function:cubic-bezier(0,0,0.2,1)}}@keyframes bounce{0%,100%{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(0.8,0,1,1);animation-timing-function:cubic-bezier(0.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,0.2,1);animation-timing-function:cubic-bezier(0,0,0.2,1)}}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-4{gap:1rem}.break-words{overflow-wrap:break-word}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:0.5rem}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgba(243, 244, 246, var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209, 213, 219, var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgba(239, 68, 68, var(--tw-border-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgba(99, 102, 241, var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgba(249, 250, 251, var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243, 244, 246, var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229, 231, 235, var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgba(75, 85, 99, var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgba(254, 242, 242, var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgba(254, 226, 226, var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgba(248, 113, 113, var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgba(236, 253, 245, var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgba(209, 250, 229, var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgba(219, 234, 254, var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgba(99, 102, 241, var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity:1;background-color:rgba(254, 202, 202, var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity:1;background-color:rgba(167, 243, 208, var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgba(191, 219, 254, var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgba(67, 56, 202, var(--tw-bg-opacity))}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity))}.bg-cover{background-size:cover}.p-2{padding:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.pt-8{padding-top:2rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-semibold{font-weight:600}.font-bold{font-weight:700}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity:1;color:rgba(0, 0, 0, var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107, 114, 128, var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55, 65, 81, var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgba(239, 68, 68, var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgba(16, 185, 129, var(--tw-text-opacity))}*,::before,::after{--tw-shadow:0 0 #0000}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,::before,::after{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgba(129, 140, 248, var(--tw-ring-opacity))}.transition{transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}#menu__toggle{opacity:0}#menu__toggle:checked~.menu__btn>span{transform:rotate(45deg)}#menu__toggle:checked~.menu__btn>span::before{top:0;transform:rotate(0)}#menu__toggle:checked~.menu__btn>span::after{top:0;transform:rotate(90deg)}#menu__toggle:checked~.menu__box{visibility:visible;left:0}#menu__toggle:checked~.menu__main{margin-left:150px;transition-duration:0.25s}.menu__btn{display:flex;align-items:center;position:fixed;z-index:1;top:10px;left:20px;width:20px;height:20px;cursor:pointer}.menu__btn>span,.menu__btn>span::before,.menu__btn>span::after{display:block;position:absolute;width:100%;height:2px;background-color:#616161;transition-duration:0.25s}.menu__btn>span::before{content:"";top:-8px}.menu__btn>span::after{content:"";top:8px}.menu__box{display:block;position:fixed;visibility:hidden;top:0;left:-100%;width:150px;height:100%;margin:0;padding:80px 0;list-style:none;background-color:#eceff1;box-shadow:1px 0px 6px rgba(0, 0, 0, 0.2);transition-duration:0.25s}.menu__item{display:block;padding:12px 24px;color:rgba(51, 51, 51, 0.788);font-family:"Roboto", sans-serif;font-size:15px;font-weight:600;text-decoration:none;transition-duration:0.25s}.menu__item:hover{background-color:#cfd8dc}.upper__bar{background-color:rgba(51, 51, 51, 0.144);height:70px;position:fixed;z-index:-1;top:0px;left:0;width:100%;margin:0;padding:0;box-shadow:1px 0px 3px rgba(0, 0, 0, 0.2)}input[type="date"]::-webkit-calendar-picker-indicator{margin-left:5px;margin-right:-8px}input[type="time"]::-webkit-calendar-picker-indicator{margin-left:5px;margin-right:-8px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{margin-left:7px;margin-right:-6px;width:30px;height:30px;opacity:1}input:checked~.dot{transform:translateX(100%)}@media(min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.sm\:p-2{padding:0.5rem}}@media(min-width: 768px){.md\:p-2{padding:0.5rem}}@media(min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.lg\:p-2{padding:0.5rem}}@media(min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.xl\:px-8{padding-left:2rem;padding-right:2rem}.xl\:py-4{padding-top:1rem;padding-bottom:1rem}}@media(min-width: 1536px){.\32xl\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}.\32xl\:px-8{padding-left:2rem;padding-right:2rem}.\32xl\:py-4{padding-top:1rem;padding-bottom:1rem}} \ No newline at end of file diff --git a/data_svelte/build/bundle.js b/data_svelte/build/bundle.js index ec554502..c453a1eb 100644 --- a/data_svelte/build/bundle.js +++ b/data_svelte/build/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function s(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const s=l(t,e,n,r);return t[0](s)}}function l(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function c(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let r=0;r32){const e=[],n=t.ctx.length/32;for(let t=0;tt.removeEventListener(e,n,r)}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t){return""===t?null:+t}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function S(t,e){t.value=null==e?"":e}function E(t,e){for(let n=0;n{D.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function V(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function X(t){t&&t.c()}function tt(t,n,o,i){const{fragment:a,on_mount:l,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),i||R((()=>{const n=l.map(e).filter(s);c?c.push(...n):r(n),t.$$.on_mount=[]})),u.forEach(R)}function et(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function nt(e,s,o,i,a,l,c,u=[-1]){const d=N;O(e);const p=e.$$={fragment:null,ctx:null,props:l,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:s.target||d.$$.root};c&&c(p.root);let f=!1;if(p.ctx=o?o(e,s.props||{},((t,n,...r)=>{const s=r.length?r[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=s)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](s),f&&function(t,e){-1===t.$$.dirty[0]&&(T.push(t),I(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const st=[];function ot(e,n=t){let r;const s=new Set;function i(t){if(o(e,t)&&(e=t,r)){const t=!st.length;for(const t of s)t[1](),st.push(t,e);if(t){for(let t=0;t{s.delete(l),0===s.size&&(r(),r=null)}}}}function it(t,e=!1){return(t=t.slice(t.startsWith("/#")?2:0,t.endsWith("/*")?-2:void 0)).startsWith("/")||(t="/"+t),"/"===t&&(t=""),e&&!t.endsWith("/")&&(t+="/"),t}function at(t,e,n){if(""===n)return t;if("/"===n[0])return n;let r=t=>t.split("/").filter((t=>""!==t)),s=r(t);return"/"+(e?r(e):[]).map(((t,e)=>s[e])).join("/")+"/"+n}function lt(t,e,n,r){let s=[e,"data-"+e].reduce(((e,r)=>{let s=t.getAttribute(r);return n&&t.removeAttribute(r),null===s?e:s}),!1);return!r&&""===s||(s||r||!1)}function ct(t){let e=t.split("&").map((t=>t.split("="))).reduce(((t,e)=>{let n=e[0];if(!n)return t;let r=!(e.length>1)||e[e.length-1];return"string"==typeof r&&r.includes(",")&&(r=r.split(",")),void 0===t[n]?t[n]=[r]:t[n].push(r),t}),{});return Object.entries(e).reduce(((t,e)=>(t[e[0]]=e[1].length>1?e[1]:e[1][0],t)),{})}var ut,dt,pt={HISTORY:1,HASH:2,MEMORY:3,OFF:4,run:function(t,e,n,r){return 1===t?e&&e():2===t?n&&n():r&&r()},getDeafault:function(){return window&&"srcdoc"!==window.location.pathname?1:3}},ft=function(){let t,e=pt.getDeafault(),n=n=>t&&t(gt(e));function r(t){t&&(e=t),window.onhashchange=window.onpopstate=dt=null,e!==pt.OFF&&pt.run(e,(t=>window.onpopstate=n),(t=>window.onhashchange=n))&&n()}return{mode:t=>r(t),get:t=>gt(e),go(t,r){(function(t,e,n){let r=t=>history[n?"replaceState":"pushState"]({},"",t);pt.run(t,(t=>r(e)),(t=>r(`#${e}`)),(t=>dt=e))})(e,t,r),n()},start(e){t=e,r()},stop(){t=null,r(pt.OFF)}}}();function gt(t){let e=ut,n=ut=pt.run(t,(t=>window.location.pathname+window.location.search),(t=>String(window.location.hash.slice(1)||"/")),(t=>dt||"/")),r=n.match(/^([^?#]+)(?:\?([^#]+))?(?:\#(.+))?$/);return{url:n,from:e,path:r[1]||"",query:ct(r[2]||""),hash:r[3]||""}}function mt(t){let e=H("tinro");e&&(e.exact||e.fallback)&&function(t){throw new Error("[Tinro] "+t)}(`${t.fallback?"":``} can't be inside ${e.fallback?"":` with exact path`}`);let n=t.fallback?"fallbacks":"childs",r=ot({}),s={router:{},exact:!1,pattern:null,meta:{},parent:e,fallback:t.fallback,redirect:!1,firstmatch:!1,breadcrumb:null,matched:!1,childs:new Set,activeChilds:new Set,fallbacks:new Set,update(t){s.exact=!t.path.endsWith("/*"),s.pattern=it(`${s.parent&&s.parent.pattern||""}${t.path}`),s.redirect=t.redirect,s.firstmatch=t.firstmatch,s.breadcrumb=t.breadcrumb,s.match()},register:()=>{if(s.parent)return s.parent[n].add(s),()=>{s.parent[n].delete(s),s.router.un&&s.router.un()}},show:()=>{t.onShow(),!s.fallback&&s.parent&&s.parent.activeChilds.add(s)},hide:()=>{t.onHide(),!s.fallback&&s.parent&&s.parent.activeChilds.delete(s)},match:async()=>{s.matched=!1;let{path:e,url:n,from:o,query:i}=s.router,a=function(t,e){t=it(t,!0),e=it(e,!0);let n=[],r={},s=!0,o=t.split("/").map((t=>t.startsWith(":")?(n.push(t.slice(1)),"([^\\/]+)"):t)).join("\\/"),i=e.match(new RegExp(`^${o}$`));return i||(s=!1,i=e.match(new RegExp(`^${o}`))),i?(n.forEach(((t,e)=>r[t]=i[e+1])),{exact:s,params:r,part:i[0].slice(0,-1)}):null}(s.pattern,e);if(!s.fallback&&a&&s.redirect&&(!s.exact||s.exact&&a.exact)){await J();let t=at(e,s.parent&&s.parent.pattern,s.redirect);return $t.goto(t,!0)}if(s.meta=a&&{from:o,url:n,query:i,match:a.part,pattern:s.pattern,breadcrumbs:s.parent&&s.parent.meta&&s.parent.meta.breadcrumbs.slice()||[],params:a.params,subscribe:r.subscribe},s.breadcrumb&&s.meta&&s.meta.breadcrumbs.push({name:s.breadcrumb,path:a.part}),r.set(s.meta),!a||s.fallback||!(!s.exact||s.exact&&a.exact)||s.parent&&s.parent.firstmatch&&s.parent.matched?s.hide():(t.onMeta(s.meta),s.parent&&(s.parent.matched=!0),s.show()),await J(),a&&!s.fallback&&(s.childs.size>0&&0==s.activeChilds.size||0==s.childs.size&&s.fallbacks.size>0)){let t=s;for(;0==t.fallbacks.size;)if(t=t.parent,!t)return;t&&t.fallbacks.forEach((t=>{if(t.redirect){let e=at("/",t.parent&&t.parent.pattern,t.redirect);$t.goto(e,!0)}else t.show()}))}}};return o="tinro",i=s,P().$$.context.set(o,i),A((()=>s.register())),s.router.un=$t.subscribe((t=>{s.router.path=t.path,s.router.url=t.url,s.router.query=t.query,s.router.from=t.from,null!==s.pattern&&s.match()})),s;var o,i}function ht(){return H("tinro").meta}var $t=function(){let{subscribe:t}=ot(ft.get(),(t=>{ft.start(t);let e=function(t){let e=e=>{let n=e.target.closest("a[href]"),r=n&<(n,"target",!1,"_self"),s=n&<(n,"tinro-ignore"),o=e.ctrlKey||e.metaKey||e.altKey||e.shiftKey;if("_self"==r&&!s&&!o&&n){let r=n.getAttribute("href").replace(/^\/#/,"");/^\/\/|^[a-zA-Z]+:/.test(r)||(e.preventDefault(),t(r.startsWith("/")?r:n.href.replace(window.location.origin,"")))}};return addEventListener("click",e),()=>removeEventListener("click",e)}(ft.go);return()=>{ft.stop(),e()}}));return{subscribe:t,goto:ft.go,params:bt,meta:ht,useHashNavigation:t=>ft.mode(t?pt.HASH:pt.HISTORY),mode:{hash:()=>ft.mode(pt.HASH),history:()=>ft.mode(pt.HISTORY),memory:()=>ft.mode(pt.MEMORY)}}}();function bt(){return H("tinro").meta.params}const wt=t=>({params:2&t,meta:4&t}),yt=t=>({params:t[1],meta:t[2]});function xt(t){let e;const n=t[9].default,r=a(n,t,t[8],yt);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,s){r&&r.p&&(!e||262&s)&&u(r,n,t,t[8],e?c(n,t[8],s,wt):d(t[8]),yt)},i(t){e||(G(r,t),e=!0)},o(t){U(r,t),e=!1},d(t){r&&r.d(t)}}}function vt(t){let e,n,r=t[0]&&xt(t);return{c(){r&&r.c(),e=y()},m(t,s){r&&r.m(t,s),f(t,e,s),n=!0},p(t,[n]){t[0]?r?(r.p(t,n),1&n&&G(r,1)):(r=xt(t),r.c(),G(r,1),r.m(e.parentNode,e)):r&&(Z(),U(r,1,1,(()=>{r=null})),Q())},i(t){n||(G(r),n=!0)},o(t){U(r),n=!1},d(t){r&&r.d(t),t&&g(e)}}}function _t(t,e,n){let{$$slots:r={},$$scope:s}=e,{path:o="/*"}=e,{fallback:i=!1}=e,{redirect:a=!1}=e,{firstmatch:l=!1}=e,{breadcrumb:c=null}=e,u=!1,d={},p={};const f=mt({fallback:i,onShow(){n(0,u=!0)},onHide(){n(0,u=!1)},onMeta(t){n(2,p=t),n(1,d=p.params)}});return t.$$set=t=>{"path"in t&&n(3,o=t.path),"fallback"in t&&n(4,i=t.fallback),"redirect"in t&&n(5,a=t.redirect),"firstmatch"in t&&n(6,l=t.firstmatch),"breadcrumb"in t&&n(7,c=t.breadcrumb),"$$scope"in t&&n(8,s=t.$$scope)},t.$$.update=()=>{232&t.$$.dirty&&f.update({path:o,redirect:a,firstmatch:l,breadcrumb:c})},[u,d,p,o,i,a,l,c,s,r]}class kt extends rt{constructor(t){super(),nt(this,t,_t,vt,o,{path:3,fallback:4,redirect:5,firstmatch:6,breadcrumb:7})}}function St(t){let e,n,r,s,o;const i=t[2].default,l=a(i,t,t[1],null);return{c(){e=h("div"),n=h("h1"),r=b(t[0]),s=w(),l&&l.c(),v(n,"class","card-header"),v(e,"class","card")},m(t,i){f(t,e,i),p(e,n),p(n,r),p(e,s),l&&l.m(e,null),o=!0},p(t,[e]){(!o||1&e)&&k(r,t[0]),l&&l.p&&(!o||2&e)&&u(l,i,t,t[1],o?c(i,t[1],e,null):d(t[1]),null)},i(t){o||(G(l,t),o=!0)},o(t){U(l,t),o=!1},d(t){t&&g(e),l&&l.d(t)}}}function Et(t,e,n){let{$$slots:r={},$$scope:s}=e,{title:o}=e;return t.$$set=t=>{"title"in t&&n(0,o=t.title),"$$scope"in t&&n(1,s=t.$$scope)},[o,s,r]}class Nt extends rt{constructor(t){super(),nt(this,t,Et,St,o,{title:0})}}function Ot(t){let e,n,s,o;return{c(){e=h("input"),v(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),v(e,"step","0.1"),v(e,"type","number")},m(n,r){f(n,e,r),S(e,t[0].status),s||(o=[x(e,"change",t[2]),x(e,"input",t[3])],s=!0)},p(t,r){1&r&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&v(e,"class",n),1&r&&_(e.value)!==t[0].status&&S(e,t[0].status)},d(t){t&&g(e),s=!1,r(o)}}}function Pt(t){let e,n,s,o;return{c(){e=h("input"),v(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),v(e,"type","text")},m(n,r){f(n,e,r),S(e,t[0].status),s||(o=[x(e,"change",t[4]),x(e,"input",t[5])],s=!0)},p(t,r){1&r&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&v(e,"class",n),1&r&&e.value!==t[0].status&&S(e,t[0].status)},d(t){t&&g(e),s=!1,r(o)}}}function At(t){let e,n,s,o;return{c(){e=h("input"),v(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),v(e,"type","date")},m(n,r){f(n,e,r),S(e,t[0].status),s||(o=[x(e,"change",t[6]),x(e,"input",t[7])],s=!0)},p(t,r){1&r&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&v(e,"class",n),1&r&&S(e,t[0].status)},d(t){t&&g(e),s=!1,r(o)}}}function Ht(t){let e,n,s,o;return{c(){e=h("input"),v(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),v(e,"type","time")},m(n,r){f(n,e,r),S(e,t[0].status),s||(o=[x(e,"change",t[8]),x(e,"input",t[9])],s=!0)},p(t,r){1&r&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&v(e,"class",n),1&r&&S(e,t[0].status)},d(t){t&&g(e),s=!1,r(o)}}}function Tt(e){let n,r,s,o,i,a,l,c,u,d=(e[0].descr?e[0].descr:"")+"",m="number"==e[0].type&&Ot(e),$="text"==e[0].type&&Pt(e),y="date"==e[0].type&&At(e),x="time"==e[0].type&&Ht(e);return{c(){n=h("div"),r=h("div"),s=h("label"),o=b(d),i=w(),a=h("div"),m&&m.c(),l=w(),$&&$.c(),c=w(),y&&y.c(),u=w(),x&&x.c(),v(s,"class","widget-descr-style"),v(r,"class","widget-descr-width"),v(a,"class","widget-width"),v(n,"class","card-items-psn")},m(t,e){f(t,n,e),p(n,r),p(r,s),p(s,o),p(n,i),p(n,a),m&&m.m(a,null),p(a,l),$&&$.m(a,null),p(a,c),y&&y.m(a,null),p(a,u),x&&x.m(a,null)},p(t,[e]){1&e&&d!==(d=(t[0].descr?t[0].descr:"")+"")&&k(o,d),"number"==t[0].type?m?m.p(t,e):(m=Ot(t),m.c(),m.m(a,l)):m&&(m.d(1),m=null),"text"==t[0].type?$?$.p(t,e):($=Pt(t),$.c(),$.m(a,c)):$&&($.d(1),$=null),"date"==t[0].type?y?y.p(t,e):(y=At(t),y.c(),y.m(a,u)):y&&(y.d(1),y=null),"time"==t[0].type?x?x.p(t,e):(x=Ht(t),x.c(),x.m(a,null)):x&&(x.d(1),x=null)},i:t,o:t,d(t){t&&g(n),m&&m.d(),$&&$.d(),y&&y.d(),x&&x.d()}}}function Ct(t,e,n){let{widget:r}=e,{wsPushProp:s=((t,e,n)=>{})}=e;return t.$$set=t=>{"widget"in t&&n(0,r=t.widget),"wsPushProp"in t&&n(1,s=t.wsPushProp)},[r,s,()=>(n(0,r.send=!0,r),s(r.ws,r.topic,r.status)),function(){r.status=_(this.value),n(0,r)},()=>(n(0,r.send=!0,r),s(r.ws,r.topic,r.status)),function(){r.status=this.value,n(0,r)},()=>(n(0,r.send=!0,r),s(r.ws,r.topic,r.status)),function(){r.status=this.value,n(0,r)},()=>(n(0,r.send=!0,r),s(r.ws,r.topic,r.status)),function(){r.status=this.value,n(0,r)}]}class Lt extends rt{constructor(t){super(),nt(this,t,Ct,Tt,o,{widget:0,wsPushProp:1})}}function Mt(e){let n,s,o,i,a,l,c,u,d,m,$,y,_,E,N,O,P,A,H=(e[0].descr?e[0].descr:"")+"";return{c(){n=h("div"),s=h("div"),o=h("label"),i=b(H),a=w(),l=h("div"),c=h("label"),u=h("div"),d=h("input"),$=w(),y=h("div"),_=w(),E=h("div"),v(o,"class","widget-descr-style"),v(s,"class","widget-descr-width"),v(d,"id",m=e[0].topic),v(d,"type","checkbox"),v(d,"class","sr-only"),v(y,"class","block bg-gray-600 w-10 h-6 rounded-full"),v(E,"class",N="dot "+(1==e[0].send?"bg-red-400":"bg-white")+" absolute left-1 top-1 w-4 h-4 rounded-full transition"),v(u,"class","relative"),v(c,"for",O=e[0].topic),v(c,"class","items-center cursor-pointer"),v(l,"class","widget-width"),v(n,"class","card-items-psn")},m(t,r){f(t,n,r),p(n,s),p(s,o),p(o,i),p(n,a),p(n,l),p(l,c),p(c,u),p(u,d),S(d,e[0].status),p(u,$),p(u,y),p(u,_),p(u,E),P||(A=[x(d,"change",e[2]),x(d,"change",e[3])],P=!0)},p(t,[e]){1&e&&H!==(H=(t[0].descr?t[0].descr:"")+"")&&k(i,H),1&e&&m!==(m=t[0].topic)&&v(d,"id",m),1&e&&S(d,t[0].status),1&e&&N!==(N="dot "+(1==t[0].send?"bg-red-400":"bg-white")+" absolute left-1 top-1 w-4 h-4 rounded-full transition")&&v(E,"class",N),1&e&&O!==(O=t[0].topic)&&v(c,"for",O)},i:t,o:t,d(t){t&&g(n),P=!1,r(A)}}}function jt(t,e,n){let{widget:r}=e,{wsPushProp:s=((t,e,n)=>{})}=e;return t.$$set=t=>{"widget"in t&&n(0,r=t.widget),"wsPushProp"in t&&n(1,s=t.wsPushProp)},[r,s,()=>(n(0,r.send=!0,r),s(r.ws,r.topic,r.status)),function(){r.status=this.value,n(0,r)}]}class zt extends rt{constructor(t){super(),nt(this,t,jt,Mt,o,{widget:0,wsPushProp:1})}}function It(e){let n,r,s,o,i,a,l,c,u,d,m,$,y=(e[0].descr?e[0].descr:"")+"",x=(e[0].status?e[0].status:"")+"",_=(e[0].after?e[0].after:"")+"";return{c(){n=h("div"),r=h("div"),s=h("label"),o=b(y),i=w(),a=h("div"),l=h("label"),c=b(x),u=w(),d=h("label"),m=b(" "),$=b(_),v(s,"class","widget-descr-style"),v(r,"class","widget-descr-width"),v(l,"class","widget-anydata-style"),v(d,"class","widget-anydata-style"),v(a,"class","widget-width"),v(n,"class","card-items-psn")},m(t,e){f(t,n,e),p(n,r),p(r,s),p(s,o),p(n,i),p(n,a),p(a,l),p(l,c),p(a,u),p(a,d),p(d,m),p(d,$)},p(t,[e]){1&e&&y!==(y=(t[0].descr?t[0].descr:"")+"")&&k(o,y),1&e&&x!==(x=(t[0].status?t[0].status:"")+"")&&k(c,x),1&e&&_!==(_=(t[0].after?t[0].after:"")+"")&&k($,_)},i:t,o:t,d(t){t&&g(n)}}}function Jt(t,e,n){let{widget:r}=e;return t.$$set=t=>{"widget"in t&&n(0,r=t.widget)},[r]}class Rt extends rt{constructor(t){super(),nt(this,t,Jt,It,o,{widget:0})}}function qt(t,e,n){const r=t.slice();return r[50]=e[n],r}function Wt(t,e,n){const r=t.slice();return r[53]=e[n],r[55]=n,r}function Ft(t,e,n){const r=t.slice();return r[56]=e[n],r[57]=e,r[58]=n,r}function Bt(t,e,n){const r=t.slice();return r[59]=e[n],r[55]=n,r}function Yt(t,e,n){const r=t.slice();return r[61]=e[n],r[62]=e,r[55]=n,r}function Dt(t,e,n){const r=t.slice();return r[50]=e[n],r}function Kt(t){let e,n,r,s,o=t[50].name+"";return{c(){e=h("option"),n=b(o),r=w(),e.__value=s=t[50],e.value=e.__value},m(t,s){f(t,e,s),p(e,n),p(e,r)},p(t,r){64&r[0]&&o!==(o=t[50].name+"")&&k(n,o),64&r[0]&&s!==(s=t[50])&&(e.__value=s,e.value=e.__value)},d(t){t&&g(e)}}}function Zt(t){let e,n,r,s,o="input"===t[61].widget&&Qt(t),i="toggle"===t[61].widget&&Gt(t),a="anydata"===t[61].widget&&Ut(t);return{c(){o&&o.c(),e=w(),i&&i.c(),n=w(),a&&a.c(),r=y()},m(t,l){o&&o.m(t,l),f(t,e,l),i&&i.m(t,l),f(t,n,l),a&&a.m(t,l),f(t,r,l),s=!0},p(t,s){"input"===t[61].widget?o?(o.p(t,s),2&s[0]&&G(o,1)):(o=Qt(t),o.c(),G(o,1),o.m(e.parentNode,e)):o&&(Z(),U(o,1,1,(()=>{o=null})),Q()),"toggle"===t[61].widget?i?(i.p(t,s),2&s[0]&&G(i,1)):(i=Gt(t),i.c(),G(i,1),i.m(n.parentNode,n)):i&&(Z(),U(i,1,1,(()=>{i=null})),Q()),"anydata"===t[61].widget?a?(a.p(t,s),2&s[0]&&G(a,1)):(a=Ut(t),a.c(),G(a,1),a.m(r.parentNode,r)):a&&(Z(),U(a,1,1,(()=>{a=null})),Q())},i(t){s||(G(o),G(i),G(a),s=!0)},o(t){U(o),U(i),U(a),s=!1},d(t){o&&o.d(t),t&&g(e),i&&i.d(t),t&&g(n),a&&a.d(t),t&&g(r)}}}function Qt(t){let e,n,r;function s(e){t[18](e,t[61])}let o={widget:t[61],wsPushProp:t[17]};return void 0!==t[61].status&&(o.value=t[61].status),e=new Lt({props:o}),C.push((()=>V(e,"value",s))),{c(){X(e.$$.fragment)},m(t,n){tt(e,t,n),r=!0},p(r,s){t=r;const o={};2&s[0]&&(o.widget=t[61]),!n&&2&s[0]&&(n=!0,o.value=t[61].status,q((()=>n=!1))),e.$set(o)},i(t){r||(G(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){et(e,t)}}}function Gt(t){let e,n,r;function s(e){t[20](e,t[61])}let o={widget:t[61],wsPushProp:t[19]};return void 0!==t[61].status&&(o.value=t[61].status),e=new zt({props:o}),C.push((()=>V(e,"value",s))),{c(){X(e.$$.fragment)},m(t,n){tt(e,t,n),r=!0},p(r,s){t=r;const o={};2&s[0]&&(o.widget=t[61]),!n&&2&s[0]&&(n=!0,o.value=t[61].status,q((()=>n=!1))),e.$set(o)},i(t){r||(G(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){et(e,t)}}}function Ut(t){let e,n,r;function s(e){t[21](e,t[61])}let o={widget:t[61]};return void 0!==t[61].status&&(o.value=t[61].status),e=new Rt({props:o}),C.push((()=>V(e,"value",s))),{c(){X(e.$$.fragment)},m(t,n){tt(e,t,n),r=!0},p(r,s){t=r;const o={};2&s[0]&&(o.widget=t[61]),!n&&2&s[0]&&(n=!0,o.value=t[61].status,q((()=>n=!1))),e.$set(o)},i(t){r||(G(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){et(e,t)}}}function Vt(t){let e,n,r=t[61].page===t[59].page&&Zt(t);return{c(){r&&r.c(),e=y()},m(t,s){r&&r.m(t,s),f(t,e,s),n=!0},p(t,n){t[61].page===t[59].page?r?(r.p(t,n),6&n[0]&&G(r,1)):(r=Zt(t),r.c(),G(r,1),r.m(e.parentNode,e)):r&&(Z(),U(r,1,1,(()=>{r=null})),Q())},i(t){n||(G(r),n=!0)},o(t){U(r),n=!1},d(t){r&&r.d(t),t&&g(e)}}}function Xt(t){let e,n,r=t[1],s=[];for(let e=0;eU(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;tU(i[t],1,1,(()=>{i[t]=null}));return r=new Nt({props:{title:"Редактор JSON",$$slots:{default:[ee]},$$scope:{ctx:t}}}),{c(){e=h("div");for(let t=0;tТип \n Подтип \n Id',r=w(),s=h("tbody");for(let t=0;tНазвание устройства \n IP адрес \n Идентификатор \n Состояние',r=w(),s=h("tbody");for(let t=0;t",N=w(),O=h("ul"),P=h("li"),A=h("a"),A.textContent="Управление",H=w(),T=h("li"),C=h("a"),C.textContent="Конфигуратор",L=w(),M=h("li"),j=h("a"),j.textContent="Подключение",z=w(),I=h("li"),J=h("a"),J.textContent="Утилиты",q=w(),W=h("li"),F=h("a"),F.textContent="Лог",B=w(),Y=h("li"),D=h("a"),D.textContent="Устройства",K=w(),Z=h("li"),Q=h("a"),Q.textContent="О проекте",V=w(),nt=h("ul"),rt=h("div"),X(st.$$.fragment),ot=w(),X(it.$$.fragment),at=w(),X(lt.$$.fragment),ct=w(),X(ut.$$.fragment),dt=w(),X(pt.$$.fragment),ft=w(),X(gt.$$.fragment),mt=w(),X(ht.$$.fragment),void 0===t[5]&&R((()=>t[15].call(i))),v(o,"class","px-15 py-2"),v(u,"stroke","none"),v(u,"d","M0 0h24v24H0z"),v(d,"d","M7 18a4.6 4.4 0 0 1 0 -9h0a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12"),v(c,"class",b="h-8 w-8 "+(!0===t[4]?"text-green-500":"text-red-500")),v(c,"width","24"),v(c,"height","24"),v(c,"viewBox","0 0 24 24"),v(c,"stroke-width","2"),v(c,"stroke","currentColor"),v(c,"fill","none"),v(c,"stroke-linecap","round"),v(c,"stroke-linejoin","round"),v(l,"class","px-10 py-1"),v(s,"class","flex justify-end content-center"),v(n,"class","fixed m-0 h-10 w-full bg-gray-100 shadow-md"),v(_,"id","menu__toggle"),v(_,"type","checkbox"),v(S,"class","menu__btn"),v(S,"for","menu__toggle"),v(A,"class","menu__item"),v(A,"href","/"),v(C,"class","menu__item"),v(C,"href","/config"),v(j,"class","menu__item"),v(j,"href","/connection"),v(J,"class","menu__item"),v(J,"href","/utilities"),v(F,"class","menu__item"),v(F,"href","/log"),v(D,"class","menu__item"),v(D,"href","/list"),v(Q,"class","menu__item"),v(Q,"href","/about"),v(O,"class","menu__box"),v(rt,"class","bg-cover bg-gray-50 pt-8 px-4"),v(nt,"class","menu__main")},m(r,g){f(r,e,g),p(e,n),p(n,s),p(s,o),p(o,i);for(let t=0;tn(34,r=t))),$t.mode.hash();let s=document.location.hostname,o=!1,a=[],l=[];a=[{widget:"input",type:"date",status:"2021-10-17",page:"Inputs",order:"4",descr:"Switch on boiler date",topic:"/prefix/00000-00004/date1",ws:0},{widget:"input",type:"time",status:"12:00",page:"Inputs",order:"1",descr:"Switch on boiler time",topic:"/prefix/00000-00001/time",ws:0},{widget:"input",type:"number",status:"30.5",after:"°С",page:"Inputs",order:"2",descr:"Boiler temperature",topic:"/prefix/00000-00002/temp",ws:0},{widget:"input",type:"text",status:"Hello",page:"Inputs",order:"3",descr:"Message to be send",topic:"/prefix/00000-00003/text",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn1",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn2",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn3",ws:0},{widget:"anydata",status:30.5,after:"°С",page:"Any data",order:"3",descr:"Temperature",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:1032,after:"mm",page:"Any data",order:"3",descr:"Pressure",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:50,after:"%",page:"Any data",order:"3",descr:"Level",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:"opened",page:"Any data",order:"3",descr:"Status",topic:"/prefix/00000-00003/tmp10",ws:0}];let c,u,d=[],p=[],f=[],g=!1,m={},h=[],$=!0,b={},w=[];function y(){let t=0;h.forEach((e=>{e.ws=t,e.status||(v(t),k(t)),t++})),n(6,h),n(4,g=m.status)}function x(t,e){h.forEach((n=>{n.ws===t&&(n.status=e,n.status?console.log("[i]",n.ip,"status online"):console.log("[i]",n.ip,"status offline"))})),n(6,h),n(4,g=m.status)}function v(t){let e=_(t);"error"===e?console.log("[e]","device list wrong"):(f[t]=new WebSocket("ws://"+e+":81"),console.log("[i]",e,"started connecting..."))}function _(t){let e="error";return h.forEach((n=>{t===n.ws&&(e=n.ip)})),e}function k(t){if(f[t]){let e=_(t);console.log("[i]",e,"web socket events added"),f[t].addEventListener("open",(function(n){console.log("[i]",e,"completed connecting"),x(t,!0),L()})),f[t].addEventListener("message",(function(t){let e=t.data.toString();e.includes("[log]")?(e=e.replace("[log]",""),P(e)):e.includes("/config.json")&&(e=e.replace("/config.json",""),p+=e,e.includes("]}")&&(p=p.replace("]}","]"),function(t){try{JSON.parse(t)}catch(t){return!1}return!0}(p)&&(n(3,d=JSON.parse(p)),p=[],n(3,d),console.log("[i]","parsed"))))})),f[t].addEventListener("close",(n=>{console.log("[e]",e,"connection closed"),x(t,!1)})),f[t].addEventListener("error",(function(n){console.log("[e]",e,"connection error"),x(t,!1)}))}else console.log("[e]","socket not exist")}function S(t,e,n){let r=e+" "+n;console.log("[i]","send to ws msg:",r),N(t,r)}function E(){setTimeout(E,6e4),console.log("[i]","----timer tick----"),$||h.forEach((t=>{!function(t){let e=!1;return h.forEach((n=>{t===n.ws&&(e=n.status)})),e}(t.ws)?(v(t.ws),k(t.ws)):N(t.ws,"tst")})),$=!1}function N(t,e){f[t]&&1===f[t].readyState?(f[t].send(e),console.log("[i]",_(t),"msg send success",e)):console.log("[e]",_(t),"msg not send",e)}function O(){n(2,l=[]);Array.from(new Set(Array.from(a,(({page:t})=>t)))).forEach((function(t,e,r){n(2,l=[...l,JSON.parse(JSON.stringify({page:t}))])})),l.sort((function(t,e){return t.pagee.page?1:0}))}h=[{name:"Устройство 1",id:"987654321",ip:"192.168.88.233",status:!1},{name:"Устройство 2",id:"987654321",ip:"192.168.88.235",status:!1}],$t.subscribe((function(){C(),u=r.path.toString(),console.log("[i]","user on page:",u),L()}));const P=t=>{w.length>Number(10)&&n(8,w=w.slice(0));const e=(new Date).getTime();n(8,w=[...w,{time:e,msg:t}]),w.sort((function(t,e){return t.time>e.time?-1:t.time{console.log("[i]","mounted"),y(),E(),n(4,g=m.status),H(),O()}));return[o,a,l,d,g,m,h,b,w,S,function(){n(1,a=JSON.parse(document.getElementById("text1").value)),O()},H,T,t=>{try{t=JSON.stringify(JSON.parse(t),null,4)}catch(e){return t}return t=(t=t.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(t){return t}))},M,function(){m=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(5,m),n(6,h)},()=>H(),(t,e,n)=>S(t,e,n),function(e,r){t.$$.not_equal(r.status,e)&&(r.status=e,n(1,a))},(t,e,n)=>S(t,e,n),function(e,r){t.$$.not_equal(r.status,e)&&(r.status=e,n(1,a))},function(e,r){t.$$.not_equal(r.status,e)&&(r.status=e,n(1,a))},function(t,e){t[e].subtype=this.value,n(3,d)},function(t,e){t[e].id=this.value,n(3,d)},()=>M(),function(){b.name=this.value,n(7,b)},function(){b.ip=this.value,n(7,b)},function(){b.id=this.value,n(7,b)},()=>(n(0,o=!o),T())]}return new class extends rt{constructor(t){super(),nt(this,t,me,ge,o,{},null,[-1,-1,-1])}}({target:document.body,props:{name:"world"}})}(); +var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function s(t){t.forEach(e)}function r(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(e,n,s){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const s=e.subscribe(...n);return s.unsubscribe?()=>s.unsubscribe():s}(n,s))}function a(t,e,n,s){if(t){const r=i(t,e,n,s);return t[0](r)}}function i(t,e,n,s){return t[1]&&s?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](s(e))):n.ctx}function c(t,e,n,s){if(t[2]&&s){const r=t[2](s(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let s=0;s32){const e=[],n=t.ctx.length/32;for(let t=0;tt.removeEventListener(e,n,s)}function x(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t){return""===t?null:+t}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function S(t,e){t.value=null==e?"":e}function E(t,e){for(let n=0;n{K.delete(t),s&&(n&&t.d(1),s())})),t.o(e)}}function X(t,e,n){const s=t.$$.props[e];void 0!==s&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function tt(t){t&&t.c()}function et(t,n,o,l){const{fragment:a,on_mount:i,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),l||q((()=>{const n=i.map(e).filter(r);c?c.push(...n):s(n),t.$$.on_mount=[]})),u.forEach(q)}function nt(t,e){const n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function st(e,r,o,l,a,i,c,u=[-1]){const d=O;P(e);const p=e.$$={fragment:null,ctx:null,props:i,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:r.target||d.$$.root};c&&c(p.root);let f=!1;if(p.ctx=o?o(e,r.props||{},((t,n,...s)=>{const r=s.length?s[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),f&&function(t,e){-1===t.$$.dirty[0]&&(L.push(t),J(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ot=[];function lt(e,n=t){let s;const r=new Set;function l(t){if(o(e,t)&&(e=t,s)){const t=!ot.length;for(const t of r)t[1](),ot.push(t,e);if(t){for(let t=0;t{r.delete(i),0===r.size&&(s(),s=null)}}}}function at(t,e=!1){return(t=t.slice(t.startsWith("/#")?2:0,t.endsWith("/*")?-2:void 0)).startsWith("/")||(t="/"+t),"/"===t&&(t=""),e&&!t.endsWith("/")&&(t+="/"),t}function it(t,e,n){if(""===n)return t;if("/"===n[0])return n;let s=t=>t.split("/").filter((t=>""!==t)),r=s(t);return"/"+(e?s(e):[]).map(((t,e)=>r[e])).join("/")+"/"+n}function ct(t,e,n,s){let r=[e,"data-"+e].reduce(((e,s)=>{let r=t.getAttribute(s);return n&&t.removeAttribute(s),null===r?e:r}),!1);return!s&&""===r||(r||s||!1)}function ut(t){let e=t.split("&").map((t=>t.split("="))).reduce(((t,e)=>{let n=e[0];if(!n)return t;let s=!(e.length>1)||e[e.length-1];return"string"==typeof s&&s.includes(",")&&(s=s.split(",")),void 0===t[n]?t[n]=[s]:t[n].push(s),t}),{});return Object.entries(e).reduce(((t,e)=>(t[e[0]]=e[1].length>1?e[1]:e[1][0],t)),{})}var dt,pt,ft={HISTORY:1,HASH:2,MEMORY:3,OFF:4,run:function(t,e,n,s){return 1===t?e&&e():2===t?n&&n():s&&s()},getDeafault:function(){return window&&"srcdoc"!==window.location.pathname?1:3}},gt=function(){let t,e=ft.getDeafault(),n=n=>t&&t(mt(e));function s(t){t&&(e=t),window.onhashchange=window.onpopstate=pt=null,e!==ft.OFF&&ft.run(e,(t=>window.onpopstate=n),(t=>window.onhashchange=n))&&n()}return{mode:t=>s(t),get:t=>mt(e),go(t,s){(function(t,e,n){let s=t=>history[n?"replaceState":"pushState"]({},"",t);ft.run(t,(t=>s(e)),(t=>s(`#${e}`)),(t=>pt=e))})(e,t,s),n()},start(e){t=e,s()},stop(){t=null,s(ft.OFF)}}}();function mt(t){let e=dt,n=dt=ft.run(t,(t=>window.location.pathname+window.location.search),(t=>String(window.location.hash.slice(1)||"/")),(t=>pt||"/")),s=n.match(/^([^?#]+)(?:\?([^#]+))?(?:\#(.+))?$/);return{url:n,from:e,path:s[1]||"",query:ut(s[2]||""),hash:s[3]||""}}function ht(t){let e=A("tinro");e&&(e.exact||e.fallback)&&function(t){throw new Error("[Tinro] "+t)}(`${t.fallback?"":``} can't be inside ${e.fallback?"":` with exact path`}`);let n=t.fallback?"fallbacks":"childs",s=lt({}),r={router:{},exact:!1,pattern:null,meta:{},parent:e,fallback:t.fallback,redirect:!1,firstmatch:!1,breadcrumb:null,matched:!1,childs:new Set,activeChilds:new Set,fallbacks:new Set,update(t){r.exact=!t.path.endsWith("/*"),r.pattern=at(`${r.parent&&r.parent.pattern||""}${t.path}`),r.redirect=t.redirect,r.firstmatch=t.firstmatch,r.breadcrumb=t.breadcrumb,r.match()},register:()=>{if(r.parent)return r.parent[n].add(r),()=>{r.parent[n].delete(r),r.router.un&&r.router.un()}},show:()=>{t.onShow(),!r.fallback&&r.parent&&r.parent.activeChilds.add(r)},hide:()=>{t.onHide(),!r.fallback&&r.parent&&r.parent.activeChilds.delete(r)},match:async()=>{r.matched=!1;let{path:e,url:n,from:o,query:l}=r.router,a=function(t,e){t=at(t,!0),e=at(e,!0);let n=[],s={},r=!0,o=t.split("/").map((t=>t.startsWith(":")?(n.push(t.slice(1)),"([^\\/]+)"):t)).join("\\/"),l=e.match(new RegExp(`^${o}$`));return l||(r=!1,l=e.match(new RegExp(`^${o}`))),l?(n.forEach(((t,e)=>s[t]=l[e+1])),{exact:r,params:s,part:l[0].slice(0,-1)}):null}(r.pattern,e);if(!r.fallback&&a&&r.redirect&&(!r.exact||r.exact&&a.exact)){await R();let t=it(e,r.parent&&r.parent.pattern,r.redirect);return bt.goto(t,!0)}if(r.meta=a&&{from:o,url:n,query:l,match:a.part,pattern:r.pattern,breadcrumbs:r.parent&&r.parent.meta&&r.parent.meta.breadcrumbs.slice()||[],params:a.params,subscribe:s.subscribe},r.breadcrumb&&r.meta&&r.meta.breadcrumbs.push({name:r.breadcrumb,path:a.part}),s.set(r.meta),!a||r.fallback||!(!r.exact||r.exact&&a.exact)||r.parent&&r.parent.firstmatch&&r.parent.matched?r.hide():(t.onMeta(r.meta),r.parent&&(r.parent.matched=!0),r.show()),await R(),a&&!r.fallback&&(r.childs.size>0&&0==r.activeChilds.size||0==r.childs.size&&r.fallbacks.size>0)){let t=r;for(;0==t.fallbacks.size;)if(t=t.parent,!t)return;t&&t.fallbacks.forEach((t=>{if(t.redirect){let e=it("/",t.parent&&t.parent.pattern,t.redirect);bt.goto(e,!0)}else t.show()}))}}};return o="tinro",l=r,H().$$.context.set(o,l),T((()=>r.register())),r.router.un=bt.subscribe((t=>{r.router.path=t.path,r.router.url=t.url,r.router.query=t.query,r.router.from=t.from,null!==r.pattern&&r.match()})),r;var o,l}function $t(){return A("tinro").meta}var bt=function(){let{subscribe:t}=lt(gt.get(),(t=>{gt.start(t);let e=function(t){let e=e=>{let n=e.target.closest("a[href]"),s=n&&ct(n,"target",!1,"_self"),r=n&&ct(n,"tinro-ignore"),o=e.ctrlKey||e.metaKey||e.altKey||e.shiftKey;if("_self"==s&&!r&&!o&&n){let s=n.getAttribute("href").replace(/^\/#/,"");/^\/\/|^[a-zA-Z]+:/.test(s)||(e.preventDefault(),t(s.startsWith("/")?s:n.href.replace(window.location.origin,"")))}};return addEventListener("click",e),()=>removeEventListener("click",e)}(gt.go);return()=>{gt.stop(),e()}}));return{subscribe:t,goto:gt.go,params:wt,meta:$t,useHashNavigation:t=>gt.mode(t?ft.HASH:ft.HISTORY),mode:{hash:()=>gt.mode(ft.HASH),history:()=>gt.mode(ft.HISTORY),memory:()=>gt.mode(ft.MEMORY)}}}();function wt(){return A("tinro").meta.params}const yt=t=>({params:2&t,meta:4&t}),vt=t=>({params:t[1],meta:t[2]});function xt(t){let e;const n=t[9].default,s=a(n,t,t[8],vt);return{c(){s&&s.c()},m(t,n){s&&s.m(t,n),e=!0},p(t,r){s&&s.p&&(!e||262&r)&&u(s,n,t,t[8],e?c(n,t[8],r,yt):d(t[8]),vt)},i(t){e||(U(s,t),e=!0)},o(t){V(s,t),e=!1},d(t){s&&s.d(t)}}}function _t(t){let e,n,s=t[0]&&xt(t);return{c(){s&&s.c(),e=y()},m(t,r){s&&s.m(t,r),f(t,e,r),n=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&U(s,1)):(s=xt(t),s.c(),U(s,1),s.m(e.parentNode,e)):s&&(Q(),V(s,1,1,(()=>{s=null})),G())},i(t){n||(U(s),n=!0)},o(t){V(s),n=!1},d(t){s&&s.d(t),t&&g(e)}}}function kt(t,e,n){let{$$slots:s={},$$scope:r}=e,{path:o="/*"}=e,{fallback:l=!1}=e,{redirect:a=!1}=e,{firstmatch:i=!1}=e,{breadcrumb:c=null}=e,u=!1,d={},p={};const f=ht({fallback:l,onShow(){n(0,u=!0)},onHide(){n(0,u=!1)},onMeta(t){n(2,p=t),n(1,d=p.params)}});return t.$$set=t=>{"path"in t&&n(3,o=t.path),"fallback"in t&&n(4,l=t.fallback),"redirect"in t&&n(5,a=t.redirect),"firstmatch"in t&&n(6,i=t.firstmatch),"breadcrumb"in t&&n(7,c=t.breadcrumb),"$$scope"in t&&n(8,r=t.$$scope)},t.$$.update=()=>{232&t.$$.dirty&&f.update({path:o,redirect:a,firstmatch:i,breadcrumb:c})},[u,d,p,o,l,a,i,c,r,s]}class St extends rt{constructor(t){super(),st(this,t,kt,_t,o,{path:3,fallback:4,redirect:5,firstmatch:6,breadcrumb:7})}}function Et(t){let e,n,s,r,o;const l=t[2].default,i=a(l,t,t[1],null);return{c(){e=h("div"),n=h("h1"),s=b(t[0]),r=w(),i&&i.c(),x(n,"class","card-header"),x(e,"class","card")},m(t,l){f(t,e,l),p(e,n),p(n,s),p(e,r),i&&i.m(e,null),o=!0},p(t,[e]){(!o||1&e)&&k(s,t[0]),i&&i.p&&(!o||2&e)&&u(i,l,t,t[1],o?c(l,t[1],e,null):d(t[1]),null)},i(t){o||(U(i,t),o=!0)},o(t){V(i,t),o=!1},d(t){t&&g(e),i&&i.d(t)}}}function Nt(t,e,n){let{$$slots:s={},$$scope:r}=e,{title:o}=e;return t.$$set=t=>{"title"in t&&n(0,o=t.title),"$$scope"in t&&n(1,r=t.$$scope)},[o,r,s]}class Ot extends rt{constructor(t){super(),st(this,t,Nt,Et,o,{title:0})}}function Pt(t){let e,n,r,o;return{c(){e=h("input"),x(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),x(e,"step","0.1"),x(e,"type","number")},m(n,s){f(n,e,s),S(e,t[0].status),r||(o=[v(e,"change",t[2]),v(e,"input",t[3])],r=!0)},p(t,s){1&s&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&x(e,"class",n),1&s&&_(e.value)!==t[0].status&&S(e,t[0].status)},d(t){t&&g(e),r=!1,s(o)}}}function Ht(t){let e,n,r,o;return{c(){e=h("input"),x(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),x(e,"type","text")},m(n,s){f(n,e,s),S(e,t[0].status),r||(o=[v(e,"change",t[4]),v(e,"input",t[5])],r=!0)},p(t,s){1&s&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&x(e,"class",n),1&s&&e.value!==t[0].status&&S(e,t[0].status)},d(t){t&&g(e),r=!1,s(o)}}}function Tt(t){let e,n,r,o;return{c(){e=h("input"),x(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),x(e,"type","date")},m(n,s){f(n,e,s),S(e,t[0].status),r||(o=[v(e,"change",t[6]),v(e,"input",t[7])],r=!0)},p(t,s){1&s&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&x(e,"class",n),1&s&&S(e,t[0].status)},d(t){t&&g(e),r=!1,s(o)}}}function At(t){let e,n,r,o;return{c(){e=h("input"),x(e,"class",n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500"),x(e,"type","time")},m(n,s){f(n,e,s),S(e,t[0].status),r||(o=[v(e,"change",t[8]),v(e,"input",t[9])],r=!0)},p(t,s){1&s&&n!==(n=1==t[0].send?"widget-input border-red-500":"widget-input focus:border-indigo-500")&&x(e,"class",n),1&s&&S(e,t[0].status)},d(t){t&&g(e),r=!1,s(o)}}}function Lt(e){let n,s,r,o,l,a,i,c,u,d=(e[0].descr?e[0].descr:"")+"",m="number"==e[0].type&&Pt(e),$="text"==e[0].type&&Ht(e),y="date"==e[0].type&&Tt(e),v="time"==e[0].type&&At(e);return{c(){n=h("div"),s=h("div"),r=h("label"),o=b(d),l=w(),a=h("div"),m&&m.c(),i=w(),$&&$.c(),c=w(),y&&y.c(),u=w(),v&&v.c(),x(r,"class","widget-descr-style"),x(s,"class","widget-descr-width"),x(a,"class","widget-width"),x(n,"class","card-items-psn")},m(t,e){f(t,n,e),p(n,s),p(s,r),p(r,o),p(n,l),p(n,a),m&&m.m(a,null),p(a,i),$&&$.m(a,null),p(a,c),y&&y.m(a,null),p(a,u),v&&v.m(a,null)},p(t,[e]){1&e&&d!==(d=(t[0].descr?t[0].descr:"")+"")&&k(o,d),"number"==t[0].type?m?m.p(t,e):(m=Pt(t),m.c(),m.m(a,i)):m&&(m.d(1),m=null),"text"==t[0].type?$?$.p(t,e):($=Ht(t),$.c(),$.m(a,c)):$&&($.d(1),$=null),"date"==t[0].type?y?y.p(t,e):(y=Tt(t),y.c(),y.m(a,u)):y&&(y.d(1),y=null),"time"==t[0].type?v?v.p(t,e):(v=At(t),v.c(),v.m(a,null)):v&&(v.d(1),v=null)},i:t,o:t,d(t){t&&g(n),m&&m.d(),$&&$.d(),y&&y.d(),v&&v.d()}}}function Mt(t,e,n){let{widget:s}=e,{wsPushProp:r=((t,e,n)=>{})}=e;return t.$$set=t=>{"widget"in t&&n(0,s=t.widget),"wsPushProp"in t&&n(1,r=t.wsPushProp)},[s,r,()=>(n(0,s.send=!0,s),r(s.ws,s.topic,s.status)),function(){s.status=_(this.value),n(0,s)},()=>(n(0,s.send=!0,s),r(s.ws,s.topic,s.status)),function(){s.status=this.value,n(0,s)},()=>(n(0,s.send=!0,s),r(s.ws,s.topic,s.status)),function(){s.status=this.value,n(0,s)},()=>(n(0,s.send=!0,s),r(s.ws,s.topic,s.status)),function(){s.status=this.value,n(0,s)}]}class Ct extends rt{constructor(t){super(),st(this,t,Mt,Lt,o,{widget:0,wsPushProp:1})}}function jt(e){let n,r,o,l,a,i,c,u,d,m,$,y,_,E,N,O,P,H,T=(e[0].descr?e[0].descr:"")+"";return{c(){n=h("div"),r=h("div"),o=h("label"),l=b(T),a=w(),i=h("div"),c=h("label"),u=h("div"),d=h("input"),$=w(),y=h("div"),_=w(),E=h("div"),x(o,"class","widget-descr-style"),x(r,"class","widget-descr-width"),x(d,"id",m=e[0].topic),x(d,"type","checkbox"),x(d,"class","sr-only"),x(y,"class","block bg-gray-600 w-10 h-6 rounded-full"),x(E,"class",N="dot "+(1==e[0].send?"bg-red-400":"bg-white")+" absolute left-1 top-1 w-4 h-4 rounded-full transition"),x(u,"class","relative"),x(c,"for",O=e[0].topic),x(c,"class","items-center cursor-pointer"),x(i,"class","widget-width"),x(n,"class","card-items-psn")},m(t,s){f(t,n,s),p(n,r),p(r,o),p(o,l),p(n,a),p(n,i),p(i,c),p(c,u),p(u,d),S(d,e[0].status),p(u,$),p(u,y),p(u,_),p(u,E),P||(H=[v(d,"change",e[2]),v(d,"change",e[3])],P=!0)},p(t,[e]){1&e&&T!==(T=(t[0].descr?t[0].descr:"")+"")&&k(l,T),1&e&&m!==(m=t[0].topic)&&x(d,"id",m),1&e&&S(d,t[0].status),1&e&&N!==(N="dot "+(1==t[0].send?"bg-red-400":"bg-white")+" absolute left-1 top-1 w-4 h-4 rounded-full transition")&&x(E,"class",N),1&e&&O!==(O=t[0].topic)&&x(c,"for",O)},i:t,o:t,d(t){t&&g(n),P=!1,s(H)}}}function zt(t,e,n){let{widget:s}=e,{wsPushProp:r=((t,e,n)=>{})}=e;return t.$$set=t=>{"widget"in t&&n(0,s=t.widget),"wsPushProp"in t&&n(1,r=t.wsPushProp)},[s,r,()=>(n(0,s.send=!0,s),r(s.ws,s.topic,s.status)),function(){s.status=this.value,n(0,s)}]}class It extends rt{constructor(t){super(),st(this,t,zt,jt,o,{widget:0,wsPushProp:1})}}function Jt(e){let n,s,r,o,l,a,i,c,u,d,m,$,y=(e[0].descr?e[0].descr:"")+"",v=(e[0].status?e[0].status:"")+"",_=(e[0].after?e[0].after:"")+"";return{c(){n=h("div"),s=h("div"),r=h("label"),o=b(y),l=w(),a=h("div"),i=h("label"),c=b(v),u=w(),d=h("label"),m=b(" "),$=b(_),x(r,"class","widget-descr-style"),x(s,"class","widget-descr-width"),x(i,"class","widget-anydata-style"),x(d,"class","widget-anydata-style"),x(a,"class","widget-width"),x(n,"class","card-items-psn")},m(t,e){f(t,n,e),p(n,s),p(s,r),p(r,o),p(n,l),p(n,a),p(a,i),p(i,c),p(a,u),p(a,d),p(d,m),p(d,$)},p(t,[e]){1&e&&y!==(y=(t[0].descr?t[0].descr:"")+"")&&k(o,y),1&e&&v!==(v=(t[0].status?t[0].status:"")+"")&&k(c,v),1&e&&_!==(_=(t[0].after?t[0].after:"")+"")&&k($,_)},i:t,o:t,d(t){t&&g(n)}}}function Rt(t,e,n){let{widget:s}=e;return t.$$set=t=>{"widget"in t&&n(0,s=t.widget)},[s]}class qt extends rt{constructor(t){super(),st(this,t,Rt,Jt,o,{widget:0})}}function Wt(t,e,n){const s=t.slice();return s[54]=e[n],s}function Ft(t,e,n){const s=t.slice();return s[57]=e[n],s[59]=n,s}function Bt(t,e,n){const s=t.slice();return s[60]=e[n],s[61]=e,s[62]=n,s}function Yt(t,e,n){const s=t.slice();return s[54]=e[n],s}function Dt(t,e,n){const s=t.slice();return s[65]=e[n],s[59]=n,s}function Kt(t,e,n){const s=t.slice();return s[67]=e[n],s[68]=e,s[59]=n,s}function Zt(t,e,n){const s=t.slice();return s[54]=e[n],s}function Qt(t){let e,n,s,r,o=t[54].name+"";return{c(){e=h("option"),n=b(o),s=w(),e.__value=r=t[54],e.value=e.__value},m(t,r){f(t,e,r),p(e,n),p(e,s)},p(t,s){64&s[0]&&o!==(o=t[54].name+"")&&k(n,o),64&s[0]&&r!==(r=t[54])&&(e.__value=r,e.value=e.__value)},d(t){t&&g(e)}}}function Gt(t){let e,n,s,r,o="input"===t[67].widget&&Ut(t),l="toggle"===t[67].widget&&Vt(t),a="anydata"===t[67].widget&&Xt(t);return{c(){o&&o.c(),e=w(),l&&l.c(),n=w(),a&&a.c(),s=y()},m(t,i){o&&o.m(t,i),f(t,e,i),l&&l.m(t,i),f(t,n,i),a&&a.m(t,i),f(t,s,i),r=!0},p(t,r){"input"===t[67].widget?o?(o.p(t,r),2&r[0]&&U(o,1)):(o=Ut(t),o.c(),U(o,1),o.m(e.parentNode,e)):o&&(Q(),V(o,1,1,(()=>{o=null})),G()),"toggle"===t[67].widget?l?(l.p(t,r),2&r[0]&&U(l,1)):(l=Vt(t),l.c(),U(l,1),l.m(n.parentNode,n)):l&&(Q(),V(l,1,1,(()=>{l=null})),G()),"anydata"===t[67].widget?a?(a.p(t,r),2&r[0]&&U(a,1)):(a=Xt(t),a.c(),U(a,1),a.m(s.parentNode,s)):a&&(Q(),V(a,1,1,(()=>{a=null})),G())},i(t){r||(U(o),U(l),U(a),r=!0)},o(t){V(o),V(l),V(a),r=!1},d(t){o&&o.d(t),t&&g(e),l&&l.d(t),t&&g(n),a&&a.d(t),t&&g(s)}}}function Ut(t){let e,n,s;function r(e){t[18](e,t[67])}let o={widget:t[67],wsPushProp:t[17]};return void 0!==t[67].status&&(o.value=t[67].status),e=new Ct({props:o}),M.push((()=>X(e,"value",r))),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),s=!0},p(s,r){t=s;const o={};2&r[0]&&(o.widget=t[67]),!n&&2&r[0]&&(n=!0,o.value=t[67].status,W((()=>n=!1))),e.$set(o)},i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){nt(e,t)}}}function Vt(t){let e,n,s;function r(e){t[20](e,t[67])}let o={widget:t[67],wsPushProp:t[19]};return void 0!==t[67].status&&(o.value=t[67].status),e=new It({props:o}),M.push((()=>X(e,"value",r))),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),s=!0},p(s,r){t=s;const o={};2&r[0]&&(o.widget=t[67]),!n&&2&r[0]&&(n=!0,o.value=t[67].status,W((()=>n=!1))),e.$set(o)},i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){nt(e,t)}}}function Xt(t){let e,n,s;function r(e){t[21](e,t[67])}let o={widget:t[67]};return void 0!==t[67].status&&(o.value=t[67].status),e=new qt({props:o}),M.push((()=>X(e,"value",r))),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),s=!0},p(s,r){t=s;const o={};2&r[0]&&(o.widget=t[67]),!n&&2&r[0]&&(n=!0,o.value=t[67].status,W((()=>n=!1))),e.$set(o)},i(t){s||(U(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){nt(e,t)}}}function te(t){let e,n,s=t[67].page===t[65].page&&Gt(t);return{c(){s&&s.c(),e=y()},m(t,r){s&&s.m(t,r),f(t,e,r),n=!0},p(t,n){t[67].page===t[65].page?s?(s.p(t,n),6&n[0]&&U(s,1)):(s=Gt(t),s.c(),U(s,1),s.m(e.parentNode,e)):s&&(Q(),V(s,1,1,(()=>{s=null})),G())},i(t){n||(U(s),n=!0)},o(t){V(s),n=!1},d(t){s&&s.d(t),t&&g(e)}}}function ee(t){let e,n,s=t[1],r=[];for(let e=0;eV(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;tV(l[t],1,1,(()=>{l[t]=null}));return s=new Ot({props:{title:"Редактор JSON",$$slots:{default:[se]},$$scope:{ctx:t}}}),{c(){e=h("div");for(let t=0;t',M=w(),C=h("td"),C.innerHTML='',j=w(),x(n,"class","table-body-element"),x(a,"class","table-input"),x(a,"type","text"),x(l,"class","table-body-element"),x(u,"class","table-input"),x(u,"type","text"),x(c,"class","table-body-element"),x(y,"class","table-input"),void 0===t[5]&&q((()=>t[24].call(y))),x($,"class","table-body-element"),x(O,"class","table-input"),x(O,"type","text"),x(N,"class","table-body-element"),x(T,"class","table-input"),x(T,"type","text"),x(H,"class","table-body-element"),x(L,"class","table-body-element"),x(C,"class","table-body-element")},m(s,g){f(s,e,g),p(e,n),p(n,r),p(e,o),p(e,l),p(l,a),S(a,t[60].subtype),p(e,i),p(e,c),p(c,u),S(u,t[60].id),p(e,d),p(e,$),p($,y);for(let t=0;tТип \n Подтип \n Id \n Виджет \n Вкладка \n Название \n \n ',s=w(),r=h("tbody");for(let t=0;tНазвание устройства \n IP адрес \n Идентификатор \n Состояние',s=w(),r=h("tbody");for(let t=0;t",N=w(),O=h("ul"),P=h("li"),H=h("a"),H.textContent="Управление",T=w(),A=h("li"),L=h("a"),L.textContent="Конфигуратор",M=w(),C=h("li"),j=h("a"),j.textContent="Подключение",z=w(),I=h("li"),J=h("a"),J.textContent="Утилиты",R=w(),W=h("li"),F=h("a"),F.textContent="Лог",B=w(),Y=h("li"),D=h("a"),D.textContent="Устройства",K=w(),Z=h("li"),Q=h("a"),Q.textContent="О проекте",G=w(),X=h("ul"),st=h("div"),tt(rt.$$.fragment),ot=w(),tt(lt.$$.fragment),at=w(),tt(it.$$.fragment),ct=w(),tt(ut.$$.fragment),dt=w(),tt(pt.$$.fragment),ft=w(),tt(gt.$$.fragment),mt=w(),tt(ht.$$.fragment),void 0===t[5]&&q((()=>t[15].call(l))),x(o,"class","px-15 py-2"),x(u,"stroke","none"),x(u,"d","M0 0h24v24H0z"),x(d,"d","M7 18a4.6 4.4 0 0 1 0 -9h0a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12"),x(c,"class",b="h-8 w-8 "+(!0===t[4]?"text-green-500":"text-red-500")),x(c,"width","24"),x(c,"height","24"),x(c,"viewBox","0 0 24 24"),x(c,"stroke-width","2"),x(c,"stroke","currentColor"),x(c,"fill","none"),x(c,"stroke-linecap","round"),x(c,"stroke-linejoin","round"),x(i,"class","px-10 py-1"),x(r,"class","flex justify-end content-center"),x(n,"class","fixed m-0 h-10 w-full bg-gray-100 shadow-md"),x(_,"id","menu__toggle"),x(_,"type","checkbox"),x(S,"class","menu__btn"),x(S,"for","menu__toggle"),x(H,"class","menu__item"),x(H,"href","/"),x(L,"class","menu__item"),x(L,"href","/config"),x(j,"class","menu__item"),x(j,"href","/connection"),x(J,"class","menu__item"),x(J,"href","/utilities"),x(F,"class","menu__item"),x(F,"href","/log"),x(D,"class","menu__item"),x(D,"href","/list"),x(Q,"class","menu__item"),x(Q,"href","/about"),x(O,"class","menu__box"),x(st,"class","bg-cover bg-gray-50 pt-8 px-4"),x(X,"class","menu__main")},m(s,g){f(s,e,g),p(e,n),p(n,r),p(r,o),p(o,l);for(let t=0;tn(38,s=t))),bt.mode.hash();let r=document.location.hostname,o=!1,a=[],i=[];a=[{widget:"input",type:"date",status:"2021-10-17",page:"Inputs",order:"4",descr:"Switch on boiler date",topic:"/prefix/00000-00004/date1",ws:0},{widget:"input",type:"time",status:"12:00",page:"Inputs",order:"1",descr:"Switch on boiler time",topic:"/prefix/00000-00001/time",ws:0},{widget:"input",type:"number",status:"30.5",after:"°С",page:"Inputs",order:"2",descr:"Boiler temperature",topic:"/prefix/00000-00002/temp",ws:0},{widget:"input",type:"text",status:"Hello",page:"Inputs",order:"3",descr:"Message to be send",topic:"/prefix/00000-00003/text",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn1",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn2",ws:0},{widget:"toggle",status:0,page:"Toggles",order:"3",descr:"Light in my room",topic:"/prefix/00000-00003/btn3",ws:0},{widget:"anydata",status:30.5,after:"°С",page:"Any data",order:"3",descr:"Temperature",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:1032,after:"mm",page:"Any data",order:"3",descr:"Pressure",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:50,after:"%",page:"Any data",order:"3",descr:"Level",topic:"/prefix/00000-00003/tmp10",ws:0},{widget:"anydata",status:"opened",page:"Any data",order:"3",descr:"Status",topic:"/prefix/00000-00003/tmp10",ws:0}];let c,u,d=[],p=[],f=[],g=!1,m={},h=[],$=!0,b={},w=[];function y(){let t=0;h.forEach((e=>{e.ws=t,e.status||(x(t),k(t)),t++})),n(6,h),n(4,g=m.status)}function v(t,e){h.forEach((n=>{n.ws===t&&(n.status=e,n.status?console.log("[i]",n.ip,"status online"):console.log("[i]",n.ip,"status offline"))})),n(6,h),n(4,g=m.status)}function x(t){let e=_(t);"error"===e?console.log("[e]","device list wrong"):(f[t]=new WebSocket("ws://"+e+":81"),console.log("[i]",e,"started connecting..."))}function _(t){let e="error";return h.forEach((n=>{t===n.ws&&(e=n.ip)})),e}function k(t){if(f[t]){let e=_(t);console.log("[i]",e,"web socket events added"),f[t].addEventListener("open",(function(n){console.log("[i]",e,"completed connecting"),v(t,!0),C()})),f[t].addEventListener("message",(function(t){let e=t.data.toString();e.includes("[log]")?(e=e.replace("[log]",""),H(e)):e.includes("/config.json")&&(e=e.replace("/config.json",""),p+=e,e.includes("]}")&&(p=p.replace("]}","]"),function(t){try{JSON.parse(t)}catch(t){return!1}return!0}(p)&&(n(3,d=JSON.parse(p)),p=[],n(3,d),console.log("[i]","parsed"))))})),f[t].addEventListener("close",(n=>{console.log("[e]",e,"connection closed"),v(t,!1)})),f[t].addEventListener("error",(function(n){console.log("[e]",e,"connection error"),v(t,!1)}))}else console.log("[e]","socket not exist")}function S(t,e,n){let s=e+" "+n;console.log("[i]","send to ws msg:",s),O(t,s)}function E(){setTimeout(E,6e4),console.log("[i]","----timer tick----"),$||h.forEach((t=>{!function(t){let e=!1;return h.forEach((n=>{t===n.ws&&(e=n.status)})),e}(t.ws)?(x(t.ws),k(t.ws)):O(t.ws,"tst")})),$=!1}function O(t,e){f[t]&&1===f[t].readyState?(f[t].send(e),console.log("[i]",_(t),"msg send success",e)):console.log("[e]",_(t),"msg not send",e)}function P(){n(2,i=[]);Array.from(new Set(Array.from(a,(({page:t})=>t)))).forEach((function(t,e,s){n(2,i=[...i,JSON.parse(JSON.stringify({page:t}))])})),i.sort((function(t,e){return t.pagee.page?1:0}))}h=[{name:"Устройство 1",id:"987654321",ip:"192.168.88.233",status:!1},{name:"Устройство 2",id:"987654321",ip:"192.168.88.235",status:!1}],bt.subscribe((function(){M(),u=s.path.toString(),console.log("[i]","user on page:",u),C()}));const H=t=>{w.length>Number(10)&&n(8,w=w.slice(0));const e=(new Date).getTime();n(8,w=[...w,{time:e,msg:t}]),w.sort((function(t,e){return t.time>e.time?-1:t.time{console.log("[i]","mounted"),y(),E(),n(4,g=m.status),A(),P()}));return[o,a,i,d,g,m,h,b,w,S,function(){n(1,a=JSON.parse(document.getElementById("text1").value)),P()},A,L,t=>{try{t=JSON.stringify(JSON.parse(t),null,4)}catch(e){return t}return t=(t=t.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(t){return t}))},j,function(){m=N(this),n(5,m),n(6,h)},()=>A(),(t,e,n)=>S(t,e,n),function(e,s){t.$$.not_equal(s.status,e)&&(s.status=e,n(1,a))},(t,e,n)=>S(t,e,n),function(e,s){t.$$.not_equal(s.status,e)&&(s.status=e,n(1,a))},function(e,s){t.$$.not_equal(s.status,e)&&(s.status=e,n(1,a))},function(t,e){t[e].subtype=this.value,n(3,d)},function(t,e){t[e].id=this.value,n(3,d)},function(){m=N(this),n(5,m),n(6,h)},function(t,e){t[e].subtype=this.value,n(3,d)},function(t,e){t[e].subtype=this.value,n(3,d)},()=>j(),function(){b.name=this.value,n(7,b)},function(){b.ip=this.value,n(7,b)},function(){b.id=this.value,n(7,b)},()=>(n(0,o=!o),L())]}return new class extends rt{constructor(t){super(),st(this,t,we,be,o,{},null,[-1,-1,-1])}}({target:document.body,props:{name:"world"}})}(); //# sourceMappingURL=bundle.js.map diff --git a/data_svelte/config.json b/data_svelte/config.json index efa38a10..39331033 100644 --- a/data_svelte/config.json +++ b/data_svelte/config.json @@ -1,559 +1,56 @@ [ { - "type": "binary", + "type": "Variable", "subtype": "button-out", "id": "btn1", - "gpio": 1, + "widget": "toggle", + "page": "Кнопки", + "descr": "Освещение", + "gpio": 13, "inv": false }, { - "type": "sensor1", - "subtype": "bme280", - "units": "temp", - "id": "tmp1", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 + "type": "Variable", + "subtype": "pwm-out", + "id": "pwm1", + "widget": "range", + "page": "Регуляторы", + "descr": "Освещение", + "gpio": 14, + "inv": false }, { - "type": "sensor2", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 + "type": "Reading", + "subtype": "button-in", + "id": "btn", + "widget": "toggle", + "page": "Кнопки", + "descr": "Освещение", + "gpio": 12, + "inv": false }, { - "type": "sensor3", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 + "type": "Reading", + "subtype": "output-value", + "id": "txt", + "widget": "anydata", + "page": "Предупреждения", + "descr": "Статус" }, { - "type": "sensor4", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 + "type": "Reading", + "subtype": "input-value", + "id": "txt", + "widget": "input", + "page": "Лимиты", + "descr": "Порог" }, { - "type": "sensor5", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor6", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor7", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor8", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor9", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor10", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor11", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor12", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor13", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor14", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor15", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor16", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor17", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor18", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor19", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor20", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor21", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor22", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor23", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor24", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor25", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor26", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor27", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor28", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor29", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor30", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor31", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor32", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor33", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor34", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor35", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor36", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor37", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor38", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor39", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor40", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor41", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor42", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor43", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor44", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor45", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor46", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor47", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor48", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor49", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor50", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor51", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor52", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor53", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor54", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 - }, - { - "type": "sensor55", - "subtype": "bme280", - "units": "temp", - "id": "tmp2", - "addr": "0x48", - "int": 10, - "c": 1, - "s": 0 + "type": "Reading", + "subtype": "analog-adc", + "id": "t", + "widget": "anydata", + "page": "Сенсоры", + "descr": "Температура" } ] \ No newline at end of file