verstak/cmd/verstak-gui/frontend-dist/assets/main-DtITCkHU.js

17 lines
97 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Hi=Object.defineProperty;var ji=(l,e,t)=>e in l?Hi(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var dt=(l,e,t)=>ji(l,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function q(){}function ln(l){return l()}function Vt(){return Object.create(null)}function se(l){l.forEach(ln)}function nn(l){return typeof l=="function"}function Be(l,e){return l!=l?e==e:l!==e||l&&typeof l=="object"||typeof l=="function"}let Xe;function Ye(l,e){return l===e?!0:(Xe||(Xe=document.createElement("a")),Xe.href=e,l===Xe.href)}function Bi(l){return Object.keys(l).length===0}function Oi(l){return l??""}function f(l,e){l.appendChild(e)}function g(l,e,t){l.insertBefore(e,t||null)}function h(l){l.parentNode&&l.parentNode.removeChild(l)}function ue(l,e){for(let t=0;t<l.length;t+=1)l[t]&&l[t].d(e)}function u(l){return document.createElement(l)}function x(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function E(l){return document.createTextNode(l)}function C(){return E(" ")}function he(){return E("")}function H(l,e,t,n){return l.addEventListener(e,t,n),()=>l.removeEventListener(e,t,n)}function ge(l){return function(e){return e.stopPropagation(),l.call(this,e)}}function Ke(l){return function(e){e.target===this&&l.call(this,e)}}function a(l,e,t){t==null?l.removeAttribute(e):l.getAttribute(e)!==t&&l.setAttribute(e,t)}function on(l){return l===""?null:+l}function Pi(l){return Array.from(l.childNodes)}function O(l,e){e=""+e,l.data!==e&&(l.data=e)}function _e(l,e){l.value=e??""}function Rt(l,e,t){for(let n=0;n<l.options.length;n+=1){const i=l.options[n];if(i.__value===e){i.selected=!0;return}}(!t||e!==void 0)&&(l.selectedIndex=-1)}function zi(l){const e=l.querySelector(":checked");return e&&e.__value}function Wt(l,e,t){l.classList.toggle(e,!!t)}function Vi(l,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(l,{detail:e,bubbles:t,cancelable:n})}let We;function Re(l){We=l}function mt(){if(!We)throw new Error("Function called outside component initialization");return We}function sn(l){mt().$$.on_mount.push(l)}function an(l){mt().$$.on_destroy.push(l)}function et(){const l=mt();return(e,t,{cancelable:n=!1}={})=>{const i=l.$$.callbacks[e];if(i){const s=Vi(e,t,{cancelable:n});return i.slice().forEach(o=>{o.call(l,s)}),!s.defaultPrevented}return!0}}function Ri(l,e){const t=l.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ae=[],Kt=[];let He=[];const xt=[],Wi=Promise.resolve();let _t=!1;function Ki(){_t||(_t=!0,Wi.then(rn))}function Qe(l){He.push(l)}const kt=new Set;let Fe=0;function rn(){if(Fe!==0)return;const l=We;do{try{for(;Fe<Ae.length;){const e=Ae[Fe];Fe++,Re(e),xi(e.$$)}}catch(e){throw Ae.length=0,Fe=0,e}for(Re(null),Ae.length=0,Fe=0;Kt.length;)Kt.pop()();for(let e=0;e<He.length;e+=1){const t=He[e];kt.has(t)||(kt.add(t),t())}He.length=0}while(Ae.length);for(;xt.length;)xt.pop()();_t=!1,kt.clear(),Re(l)}function xi(l){if(l.fragment!==null){l.update(),se(l.before_update);const e=l.dirty;l.dirty=[-1],l.fragment&&l.fragment.p(l.ctx,e),l.after_update.forEach(Qe)}}function qi(l){const e=[],t=[];He.forEach(n=>l.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),He=e}const Ze=new Set;let De;function ye(){De={r:0,c:[],p:De}}function we(){De.r||se(De.c),De=De.p}function ie(l,e){l&&l.i&&(Ze.delete(l),l.i(e))}function re(l,e,t,n){if(l&&l.o){if(Ze.has(l))return;Ze.add(l),De.c.push(()=>{Ze.delete(l),n&&(t&&l.d(1),n())}),l.o(e)}else n&&n()}function te(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}function Gi(l,e){re(l,1,1,()=>{e.delete(l.key)})}function Ui(l,e,t,n,i,s,o,r,c,k,m,v){let _=l.length,p=s.length,b=_;const y={};for(;b--;)y[l[b].key]=b;const w=[],T=new Map,S=new Map,A=[];for(b=p;b--;){const I=v(i,s,b),F=t(I);let L=o.get(F);L?A.push(()=>L.p(I,e)):(L=k(F,I),L.c()),T.set(F,w[b]=L),F in y&&S.set(F,Math.abs(b-y[F]))}const M=new Set,j=new Set;function B(I){ie(I,1),I.m(r,m),o.set(I.key,I),m=I.first,p--}for(;_&&p;){const I=w[p-1],F=l[_-1],L=I.key,N=F.key;I===F?(m=I.first,_--,p--):T.has(N)?!o.has(L)||M.has(L)?B(I):j.has(N)?_--:S.get(L)>S.get(N)?(j.add(L),B(I)):(M.add(N),_--):(c(F,o),_--)}for(;_--;){const I=l[_];T.has(I.key)||c(I,o)}for(;p;)B(w[p-1]);return se(A),w}function Ie(l){l&&l.c()}function Me(l,e,t){const{fragment:n,after_update:i}=l.$$;n&&n.m(e,t),Qe(()=>{const s=l.$$.on_mount.map(ln).filter(nn);l.$$.on_destroy?l.$$.on_destroy.push(...s):se(s),l.$$.on_mount=[]}),i.forEach(Qe)}function Le(l,e){const t=l.$$;t.fragment!==null&&(qi(t.after_update),se(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ji(l,e){l.$$.dirty[0]===-1&&(Ae.push(l),Ki(),l.$$.dirty.fill(0)),l.$$.dirty[e/31|0]|=1<<e%31}function Oe(l,e,t,n,i,s,o=null,r=[-1]){const c=We;Re(l);const k=l.$$={fragment:null,ctx:[],props:s,update:q,not_equal:i,bound:Vt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Vt(),dirty:r,skip_bound:!1,root:e.target||c.$$.root};o&&o(k.root);let m=!1;if(k.ctx=t?t(l,e.props||{},(v,_,...p)=>{const b=p.length?p[0]:_;return k.ctx&&i(k.ctx[v],k.ctx[v]=b)&&(!k.skip_bound&&k.bound[v]&&k.bound[v](b),m&&Ji(l,v)),_}):[],k.update(),m=!0,se(k.before_update),k.fragment=n?n(k.ctx):!1,e.target){if(e.hydrate){const v=Pi(e.target);k.fragment&&k.fragment.l(v),v.forEach(h)}else k.fragment&&k.fragment.c();e.intro&&ie(l.$$.fragment),Me(l,e.target,e.anchor),rn()}Re(c)}class Pe{constructor(){dt(this,"$$");dt(this,"$$set")}$destroy(){Le(this,1),this.$destroy=q}$on(e,t){if(!nn(t))return q;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!Bi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Xi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xi);function Zi(l){let e,t;return{c(){e=x("path"),t=x("polyline"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8")},m(n,i){g(n,e,i),g(n,t,i)},d(n){n&&(h(e),h(t))}}}function Yi(l){let e,t,n,i,s;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("line"),s=x("polyline"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8"),a(n,"x1","16"),a(n,"y1","13"),a(n,"x2","8"),a(n,"y2","13"),a(i,"x1","16"),a(i,"y1","17"),a(i,"x2","8"),a(i,"y2","17"),a(s,"points","10 9 9 9 8 9")},m(o,r){g(o,e,r),g(o,t,r),g(o,n,r),g(o,i,r),g(o,s,r)},d(o){o&&(h(e),h(t),h(n),h(i),h(s))}}}function Qi(l){let e,t;return{c(){e=x("polyline"),t=x("polyline"),a(e,"points","16 18 22 12 16 6"),a(t,"points","8 6 2 12 8 18")},m(n,i){g(n,e,i),g(n,t,i)},d(n){n&&(h(e),h(t))}}}function $i(l){let e,t,n,i;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("rect"),a(e,"d","M21 8v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8"),a(t,"points","7 3 12 8 17 3"),a(n,"x1","3"),a(n,"y1","8"),a(n,"x2","21"),a(n,"y2","8"),a(i,"x","10"),a(i,"y","12"),a(i,"width","4"),a(i,"height","4"),a(i,"rx","1")},m(s,o){g(s,e,o),g(s,t,o),g(s,n,o),g(s,i,o)},d(s){s&&(h(e),h(t),h(n),h(i))}}}function eo(l){let e,t,n,i,s;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("line"),s=x("line"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8"),a(n,"x1","9"),a(n,"y1","12"),a(n,"x2","15"),a(n,"y2","12"),a(i,"x1","9"),a(i,"y1","15"),a(i,"x2","13"),a(i,"y2","15"),a(s,"x1","12"),a(s,"y1","15"),a(s,"x2","12"),a(s,"y2","18")},m(o,r){g(o,e,r),g(o,t,r),g(o,n,r),g(o,i,r),g(o,s,r)},d(o){o&&(h(e),h(t),h(n),h(i),h(s))}}}function to(l){let e,t,n,i,s,o;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("line"),s=x("line"),o=x("line"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8"),a(n,"x1","8"),a(n,"y1","12"),a(n,"x2","16"),a(n,"y2","12"),a(i,"x1","8"),a(i,"y1","16"),a(i,"x2","16"),a(i,"y2","16"),a(s,"x1","8"),a(s,"y1","14"),a(s,"x2","12"),a(s,"y2","14"),a(o,"x1","12"),a(o,"y1","12"),a(o,"x2","12"),a(o,"y2","18")},m(r,c){g(r,e,c),g(r,t,c),g(r,n,c),g(r,i,c),g(r,s,c),g(r,o,c)},d(r){r&&(h(e),h(t),h(n),h(i),h(s),h(o))}}}function lo(l){let e,t,n,i;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("line"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8"),a(n,"x1","16"),a(n,"y1","13"),a(n,"x2","8"),a(n,"y2","13"),a(i,"x1","16"),a(i,"y1","17"),a(i,"x2","8"),a(i,"y2","17")},m(s,o){g(s,e,o),g(s,t,o),g(s,n,o),g(s,i,o)},d(s){s&&(h(e),h(t),h(n),h(i))}}}function no(l){let e,t,n,i,s;return{c(){e=x("path"),t=x("polyline"),n=x("line"),i=x("line"),s=x("line"),a(e,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),a(t,"points","14 2 14 8 20 8"),a(n,"x1","8"),a(n,"y1","12"),a(n,"x2","16"),a(n,"y2","12"),a(i,"x1","8"),a(i,"y1","16"),a(i,"x2","16"),a(i,"y2","16"),a(s,"x1","8"),a(s,"y1","14"),a(s,"x2","12"),a(s,"y2","14")},m(o,r){g(o,e,r),g(o,t,r),g(o,n,r),g(o,i,r),g(o,s,r)},d(o){o&&(h(e),h(t),h(n),h(i),h(s))}}}function io(l){let e,t,n;return{c(){e=x("path"),t=x("circle"),n=x("circle"),a(e,"d","M9 18V5l12-2v13"),a(t,"cx","6"),a(t,"cy","18"),a(t,"r","3"),a(n,"cx","18"),a(n,"cy","16"),a(n,"r","3")},m(i,s){g(i,e,s),g(i,t,s),g(i,n,s)},d(i){i&&(h(e),h(t),h(n))}}}function oo(l){let e,t;return{c(){e=x("rect"),t=x("polyline"),a(e,"x","2"),a(e,"y","4"),a(e,"width","20"),a(e,"height","16"),a(e,"rx","2"),a(t,"points","10 9 16 12 10 15 10 9")},m(n,i){g(n,e,i),g(n,t,i)},d(n){n&&(h(e),h(t))}}}function so(l){let e,t,n;return{c(){e=x("rect"),t=x("circle"),n=x("polyline"),a(e,"x","3"),a(e,"y","3"),a(e,"width","18"),a(e,"height","18"),a(e,"rx","2"),a(e,"ry","2"),a(t,"cx","8.5"),a(t,"cy","8.5"),a(t,"r","1.5"),a(n,"points","21 15 16 10 5 21")},m(i,s){g(i,e,s),g(i,t,s),g(i,n,s)},d(i){i&&(h(e),h(t),h(n))}}}function ao(l){let e;return{c(){e=x("path"),a(e,"d","M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z")},m(t,n){g(t,e,n)},d(t){t&&h(e)}}}function ro(l){let e;function t(s,o){return s[0]==="folder"?ao:s[0]==="image"?so:s[0]==="video"?oo:s[0]==="audio"?io:s[0]==="pdf"?no:s[0]==="document"?lo:s[0]==="spreadsheet"?to:s[0]==="presentation"?eo:s[0]==="archive"?$i:s[0]==="code"?Qi:s[0]==="text"?Yi:Zi}let n=t(l),i=n(l);return{c(){e=x("svg"),i.c(),a(e,"width",l[1]),a(e,"height",l[1]),a(e,"viewBox","0 0 24 24"),a(e,"fill","none"),a(e,"stroke","currentColor"),a(e,"stroke-width","1.5"),a(e,"stroke-linecap","round"),a(e,"stroke-linejoin","round"),a(e,"xmlns","http://www.w3.org/2000/svg")},m(s,o){g(s,e,o),i.m(e,null)},p(s,[o]){n!==(n=t(s))&&(i.d(1),i=n(s),i&&(i.c(),i.m(e,null))),o&2&&a(e,"width",s[1]),o&2&&a(e,"height",s[1])},i:q,o:q,d(s){s&&h(e),i.d()}}}function co(l,e,t){let{kind:n="generic"}=e,{size:i=20}=e;return l.$$set=s=>{"kind"in s&&t(0,n=s.kind),"size"in s&&t(1,i=s.size)},[n,i]}class cn extends Pe{constructor(e){super(),Oe(this,e,co,ro,Be,{kind:0,size:1})}}function $e(l){if(l==null||l<0)return"—";if(l===0)return"0 B";const e=["B","KB","MB","GB"],t=Math.min(Math.floor(Math.log(l)/Math.log(1024)),e.length-1),n=l/Math.pow(1024,t);return(t===0?n.toFixed(0):n.toFixed(1))+" "+e[t]}const pt={"image/jpeg":"Изображение JPEG","image/png":"Изображение PNG","image/gif":"Изображение GIF","image/webp":"Изображение WebP","image/svg+xml":"Изображение SVG","image/bmp":"Изображение BMP","image/tiff":"Изображение TIFF","image/avif":"Изображение AVIF","application/pdf":"PDF документ","application/msword":"Документ Word","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Документ Word","application/vnd.ms-excel":"Таблица Excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Таблица Excel","application/vnd.ms-powerpoint":"Презентация PowerPoint","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Презентация PowerPoint","application/zip":"ZIP архив","application/gzip":"GZIP архив","application/x-tar":"TAR архив","application/x-7z-compressed":"7z архив","application/x-rar-compressed":"RAR архив","text/plain":"Текстовый файл","text/html":"HTML файл","text/css":"CSS файл","text/javascript":"JavaScript файл","application/json":"JSON файл","application/xml":"XML файл","application/x-yaml":"YAML файл","application/octet-stream":"Бинарный файл","application/x-msdos-program":"Исполняемый файл","inode/directory":"Папка"};function qt(l){return l?pt[l]||l:"Неизвестно"}function fo(l){if(l.type==="folder")return"Папка";const e=(l.mime||"").toLowerCase();if(pt[e])return pt[e];const n=(l.name||"").toLowerCase().split(".").pop();return n?n.toUpperCase():"Файл"}function fn(l){if(l.type==="folder")return"folder";const e=(l.mime||"").toLowerCase();if(e.startsWith("image/"))return"image";if(e.startsWith("video/"))return"video";if(e.startsWith("audio/"))return"audio";if(e.startsWith("text/"))return"text";if(e.includes("pdf"))return"pdf";if(e.includes("word")||e.includes("document"))return"document";if(e.includes("spreadsheet")||e.includes("excel"))return"spreadsheet";if(e.includes("presentation")||e.includes("powerpoint"))return"presentation";if(e.includes("zip")||e.includes("tar")||e.includes("gzip")||e.includes("rar")||e.includes("7z")||e.includes("compress"))return"archive";if(e.includes("json")||e.includes("xml")||e.includes("yaml")||e.includes("javascript")||e.includes("css")||e.includes("html"))return"code";const n=(l.name||"").toLowerCase().split(".").pop();return["js","ts","jsx","tsx","vue","svelte","py","rs","go","c","cpp","h","hpp","java","kt","swift","rb","php","pl","sh","bash","zsh","fish","yml","yaml","json","xml","toml","ini","cfg","conf","md","markdown","css","scss","less","sass","sql","graphql","proto","gradle","cmake","makefile","dockerfile","env","gitignore"].includes(n)?"code":"generic"}const uo=["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/avif","image/svg+xml"],ko=["text/plain","text/html","text/css","text/javascript","application/json","application/xml","application/x-yaml","text/x-shellscript"],_o=["txt","log","conf","ini","yaml","yml","json","xml","csv","sh","py","js","ts","css","html","md","markdown","cfg"],po=["jpg","jpeg","png","gif","webp","bmp","tiff","tif","avif","svg"];function un(l){const e=(l.mime||"").toLowerCase(),n=(l.name||"").toLowerCase().split(".").pop();return uo.includes(e)||po.includes(n)}function dn(l){const e=(l.mime||"").toLowerCase(),n=(l.name||"").toLowerCase().split(".").pop();return ko.includes(e)||_o.includes(n)&&n!=="md"&&n!=="markdown"}function kn(l){return(l.mime||"").toLowerCase().includes("pdf")}function _n(l){const e=(l.name||"").toLowerCase();return e.endsWith(".md")||e.endsWith(".markdown")}function mo(l){return un(l)||kn(l)}function vo(l){return dn(l)||_n(l)}function ho(l){let e,t,n,i=$e(l[0].size)+"",s;return{c(){e=u("span"),e.textContent="·",t=C(),n=u("span"),s=E(i),a(e,"class","meta-sep svelte-1u905d2")},m(o,r){g(o,e,r),g(o,t,r),g(o,n,r),f(n,s)},p(o,r){r&1&&i!==(i=$e(o[0].size)+"")&&O(s,i)},d(o){o&&(h(e),h(t),h(n))}}}function bo(l){let e,t,n;return{c(){e=u("button"),e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line></svg>',a(e,"class","action-btn svelte-1u905d2"),a(e,"title","Открыть папку"),a(e,"aria-label","Открыть папку")},m(i,s){g(i,e,s),t||(n=H(e,"click",ge(l[27])),t=!0)},p:q,d(i){i&&h(e),t=!1,n()}}}function go(l){let e,t,n,i,s;return{c(){e=u("button"),e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>',t=C(),n=u("button"),n.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',a(e,"class","action-btn svelte-1u905d2"),a(e,"title","Предпросмотр"),a(e,"aria-label","Предпросмотр"),a(n,"class","action-btn svelte-1u905d2"),a(n,"title","Открыть во внешней программе"),a(n,"aria-label","Открыть внешне")},m(o,r){g(o,e,r),g(o,t,r),g(o,n,r),i||(s=[H(e,"click",ge(l[26])),H(n,"click",ge(l[8]))],i=!0)},p:q,d(o){o&&(h(e),h(t),h(n)),i=!1,se(s)}}}function Gt(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T,S,A,M,j,B,I,F=l[5]&&yo(l);return{c(){e=u("div"),t=C(),n=u("div"),i=u("button"),i.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
Открыть`,s=C(),o=u("button"),o.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
Открыть во внешней программе`,r=C(),F&&F.c(),c=C(),k=u("div"),m=C(),v=u("button"),v.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>
Переименовать`,_=C(),p=u("button"),p.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
Дублировать`,b=C(),y=u("button"),y.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="8.12" y1="8.12" x2="20" y2="20"></line></svg>
Вырезать`,w=C(),T=u("button"),T.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
Копировать`,S=C(),A=u("div"),M=C(),j=u("button"),j.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>
Удалить`,a(e,"class","menu-backdrop svelte-1u905d2"),a(e,"role","presentation"),a(i,"class","menu-item svelte-1u905d2"),a(i,"role","menuitem"),a(o,"class","menu-item svelte-1u905d2"),a(o,"role","menuitem"),a(k,"class","menu-sep svelte-1u905d2"),a(v,"class","menu-item svelte-1u905d2"),a(v,"role","menuitem"),a(p,"class","menu-item svelte-1u905d2"),a(p,"role","menuitem"),a(y,"class","menu-item svelte-1u905d2"),a(y,"role","menuitem"),a(T,"class","menu-item svelte-1u905d2"),a(T,"role","menuitem"),a(A,"class","menu-sep svelte-1u905d2"),a(j,"class","menu-item menu-item-danger svelte-1u905d2"),a(j,"role","menuitem"),a(n,"class","menu svelte-1u905d2"),a(n,"role","menu")},m(L,N){g(L,e,N),g(L,t,N),g(L,n,N),f(n,i),f(n,s),f(n,o),f(n,r),F&&F.m(n,null),f(n,c),f(n,k),f(n,m),f(n,v),f(n,_),f(n,p),f(n,b),f(n,y),f(n,w),f(n,T),f(n,S),f(n,A),f(n,M),f(n,j),B||(I=[H(e,"click",ge(l[17])),H(i,"click",l[15]),H(o,"click",l[8]),H(v,"click",l[11]),H(p,"click",l[12]),H(y,"click",l[13]),H(T,"click",l[14]),H(j,"click",l[10]),H(n,"click",ge(l[25]))],B=!0)},p(L,N){L[5]&&F.p(L,N)},d(L){L&&(h(e),h(t),h(n)),F&&F.d(),B=!1,se(I)}}}function yo(l){let e,t,n;return{c(){e=u("button"),e.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>
Показать в проводнике`,a(e,"class","menu-item svelte-1u905d2"),a(e,"role","menuitem")},m(i,s){g(i,e,s),t||(n=H(e,"click",l[9]),t=!0)},p:q,d(i){i&&h(e),t=!1,n()}}}function wo(l){let e,t,n,i,s,o,r=l[0].name+"",c,k,m,v,_,p,b,y,w,T,S,A,M,j,B,I,F,L,N,X,ee,Z;n=new cn({props:{kind:l[4],size:22}});let V=!l[5]&&ho(l);function le(R,$){return R[5]?bo:go}let K=le(l)(l),W=l[2]&&Gt(l);return{c(){e=u("div"),t=u("div"),Ie(n.$$.fragment),i=C(),s=u("div"),o=u("div"),c=E(r),m=C(),v=u("div"),_=u("span"),_.textContent=`${l[6]}`,p=C(),V&&V.c(),b=C(),y=u("div"),K.c(),w=C(),T=u("button"),S=x("svg"),A=x("circle"),M=x("circle"),j=x("circle"),B=C(),I=u("button"),I.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>',L=C(),W&&W.c(),N=he(),a(t,"class","file-row-icon svelte-1u905d2"),a(o,"class","file-row-name svelte-1u905d2"),a(o,"title",k=l[0].name),a(v,"class","file-row-meta svelte-1u905d2"),a(s,"class","file-row-body svelte-1u905d2"),a(A,"cx","12"),a(A,"cy","5"),a(A,"r","2"),a(M,"cx","12"),a(M,"cy","12"),a(M,"r","2"),a(j,"cx","12"),a(j,"cy","19"),a(j,"r","2"),a(S,"width","16"),a(S,"height","16"),a(S,"viewBox","0 0 24 24"),a(S,"fill","currentColor"),a(T,"class","action-btn svelte-1u905d2"),a(T,"title","Ещё"),a(T,"aria-label","Ещё"),a(T,"aria-expanded",l[2]),a(I,"class","action-btn action-btn-danger svelte-1u905d2"),a(I,"title","Удалить"),a(I,"aria-label","Удалить"),a(y,"class","file-row-actions svelte-1u905d2"),a(e,"class","file-row svelte-1u905d2"),a(e,"role","button"),a(e,"tabindex","0"),a(e,"draggable","true"),a(e,"aria-label",F=l[5]?`Папка ${l[0].name}`:`Файл ${l[0].name}`),Wt(e,"file-row--selected",l[1])},m(R,$){g(R,e,$),f(e,t),Me(n,t,null),f(e,i),f(e,s),f(s,o),f(o,c),f(s,m),f(s,v),f(v,_),f(v,p),V&&V.m(v,null),f(e,b),f(e,y),K.m(y,null),f(y,w),f(y,T),f(T,S),f(S,A),f(S,M),f(S,j),f(y,B),f(y,I),g(R,L,$),W&&W.m(R,$),g(R,N,$),X=!0,ee||(Z=[H(window,"click",l[17]),H(T,"click",ge(l[16])),H(I,"click",ge(l[10])),H(e,"click",l[7]),H(e,"contextmenu",l[21]),H(e,"dragstart",l[18]),H(e,"dragover",l[19]),H(e,"drop",l[20])],ee=!0)},p(R,[$]){(!X||$&1)&&r!==(r=R[0].name+"")&&O(c,r),(!X||$&1&&k!==(k=R[0].name))&&a(o,"title",k),R[5]||V.p(R,$),K.p(R,$),(!X||$&4)&&a(T,"aria-expanded",R[2]),(!X||$&1&&F!==(F=R[5]?`Папка ${R[0].name}`:`Файл ${R[0].name}`))&&a(e,"aria-label",F),(!X||$&2)&&Wt(e,"file-row--selected",R[1]),R[2]?W?W.p(R,$):(W=Gt(R),W.c(),W.m(N.parentNode,N)):W&&(W.d(1),W=null)},i(R){X||(ie(n.$$.fragment,R),X=!0)},o(R){re(n.$$.fragment,R),X=!1},d(R){R&&(h(e),h(L),h(N)),Le(n),V&&V.d(),K.d(),W&&W.d(R),ee=!1,se(Z)}}}function Co(l,e,t){let{item:n}=e,{selected:i=!1}=e,{onDragStart:s}=e,{onDragOver:o}=e,{onDrop:r}=e;const c=et(),k=fn(n),m=n.type==="folder",v=fo(n);let _=!1,p=null;function b(P){P.ctrlKey||P.metaKey?c("toggleSelect",n.id):P.shiftKey?c("rangeSelect",n.id):p?(clearTimeout(p),p=null,m?c("navigate",n.id):c("preview",n)):p=setTimeout(()=>{p=null,c("selectOne",n.id)},250)}function y(){c("openExternal",n.fileId)}function w(){c("showInFolder",n.id)}function T(){t(2,_=!1),c("delete",{id:n.id,type:n.type})}function S(){t(2,_=!1),c("rename",{id:n.id,name:n.name})}function A(){t(2,_=!1),c("duplicate",n.id)}function M(){t(2,_=!1),c("cut",n.id)}function j(){t(2,_=!1),c("copy",n.id)}function B(){t(2,_=!1),m?c("navigate",n.id):c("preview",n)}function I(){t(2,_=!_)}function F(){t(2,_=!1)}function L(P){s&&s(P,n.id)}function N(P){o&&m&&o(P,n.id)}function X(P){r&&m&&r(P,n.id)}function ee(P){P.preventDefault(),t(2,_=!0)}function Z(P){Ri.call(this,l,P)}const V=()=>c("preview",n),le=()=>c("navigate",n.id);return l.$$set=P=>{"item"in P&&t(0,n=P.item),"selected"in P&&t(1,i=P.selected),"onDragStart"in P&&t(22,s=P.onDragStart),"onDragOver"in P&&t(23,o=P.onDragOver),"onDrop"in P&&t(24,r=P.onDrop)},[n,i,_,c,k,m,v,b,y,w,T,S,A,M,j,B,I,F,L,N,X,ee,s,o,r,Z,V,le]}class To extends Pe{constructor(e){super(),Oe(this,e,Co,wo,Be,{item:0,selected:1,onDragStart:22,onDragOver:23,onDrop:24})}}function Ut(l,e,t){const n=l.slice();return n[4]=e[t],n[6]=t,n}function Mo(l){let e;return{c(){e=u("span"),e.textContent="/",a(e,"class","sep svelte-csi2lb")},m(t,n){g(t,e,n)},d(t){t&&h(e)}}}function Lo(l){let e,t=l[4].name+"",n,i,s;function o(){return l[2](l[6])}return{c(){e=u("button"),n=E(t),a(e,"class","crumb crumb--link svelte-csi2lb")},m(r,c){g(r,e,c),f(e,n),i||(s=H(e,"click",o),i=!0)},p(r,c){l=r,c&1&&t!==(t=l[4].name+"")&&O(n,t)},d(r){r&&h(e),i=!1,s()}}}function So(l){let e,t=l[4].name+"",n;return{c(){e=u("span"),n=E(t),a(e,"class","crumb crumb--current svelte-csi2lb")},m(i,s){g(i,e,s),f(e,n)},p(i,s){s&1&&t!==(t=i[4].name+"")&&O(n,t)},d(i){i&&h(e)}}}function Jt(l){let e,t,n=l[6]>0&&Mo();function i(r,c){return r[6]===r[0].length-1?So:Lo}let s=i(l),o=s(l);return{c(){n&&n.c(),e=C(),o.c(),t=he()},m(r,c){n&&n.m(r,c),g(r,e,c),o.m(r,c),g(r,t,c)},p(r,c){s===(s=i(r))&&o?o.p(r,c):(o.d(1),o=s(r),o&&(o.c(),o.m(t.parentNode,t)))},d(r){r&&(h(e),h(t)),n&&n.d(r),o.d(r)}}}function Do(l){let e,t=te(l[0]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Jt(Ut(l,t,i));return{c(){e=u("nav");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","breadcrumbs svelte-csi2lb")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,[s]){if(s&3){t=te(i[0]);let o;for(o=0;o<t.length;o+=1){const r=Ut(i,t,o);n[o]?n[o].p(r,s):(n[o]=Jt(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},i:q,o:q,d(i){i&&h(e),ue(n,i)}}}function Io(l,e,t){let{crumbs:n=[]}=e;const i=et();function s(r){i("navigate",r)}const o=r=>s(r);return l.$$set=r=>{"crumbs"in r&&t(0,n=r.crumbs)},[n,s,o]}class pn extends Pe{constructor(e){super(),Oe(this,e,Io,Do,Be,{crumbs:0})}}function No(l){let e,t,n,i,s,o;return{c(){e=u("div"),t=u("p"),t.textContent="Предпросмотр недоступен для этого типа файлов.",n=C(),i=u("button"),i.textContent="Открыть во внешней программе",a(i,"class","btn btn-sm svelte-1cw3u0m"),a(e,"class","preview-status svelte-1cw3u0m")},m(r,c){g(r,e,c),f(e,t),f(e,n),f(e,i),s||(o=H(i,"click",l[9]),s=!0)},p:q,d(r){r&&h(e),s=!1,o()}}}function Eo(l){let e,t;function n(o,r){return r&2&&(e=null),e==null&&(e=!!(o[1]&&o[1].startsWith("data:"))),e?Oo:Bo}let i=n(l,-1),s=i(l);return{c(){s.c(),t=he()},m(o,r){s.m(o,r),g(o,t,r)},p(o,r){i===(i=n(o,r))&&s?s.p(o,r):(s.d(1),s=i(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&h(t),s.d(o)}}}function Fo(l){let e,t,n;return{c(){e=u("pre"),t=u("code"),n=E(l[1]),a(e,"class","preview-text svelte-1cw3u0m")},m(i,s){g(i,e,s),f(e,t),f(t,n)},p(i,s){s&2&&O(n,i[1])},d(i){i&&h(e)}}}function Ao(l){let e,t,n,i;return{c(){e=u("div"),t=u("img"),Ye(t.src,n=l[1])||a(t,"src",n),a(t,"alt",i=l[0].name),a(t,"class","preview-image svelte-1cw3u0m"),a(e,"class","preview-image-container svelte-1cw3u0m")},m(s,o){g(s,e,o),f(e,t)},p(s,o){o&2&&!Ye(t.src,n=s[1])&&a(t,"src",n),o&1&&i!==(i=s[0].name)&&a(t,"alt",i)},d(s){s&&h(e)}}}function Ho(l){let e,t,n,i,s,o,r;return{c(){e=u("div"),t=u("p"),n=E(l[3]),i=C(),s=u("button"),s.textContent="Открыть во внешней программе",a(s,"class","btn btn-sm svelte-1cw3u0m"),a(e,"class","preview-status svelte-1cw3u0m")},m(c,k){g(c,e,k),f(e,t),f(t,n),f(e,i),f(e,s),o||(r=H(s,"click",l[9]),o=!0)},p(c,k){k&8&&O(n,c[3])},d(c){c&&h(e),o=!1,r()}}}function jo(l){let e;return{c(){e=u("div"),e.innerHTML="<p>Загрузка...</p>",a(e,"class","preview-status svelte-1cw3u0m")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function Bo(l){let e,t,n,i,s,o;return{c(){e=u("div"),t=u("p"),t.textContent="Предпросмотр PDF недоступен.",n=C(),i=u("button"),i.textContent="Открыть во внешней программе",a(i,"class","btn btn-sm svelte-1cw3u0m"),a(e,"class","preview-status svelte-1cw3u0m")},m(r,c){g(r,e,c),f(e,t),f(e,n),f(e,i),s||(o=H(i,"click",l[9]),s=!0)},p:q,d(r){r&&h(e),s=!1,o()}}}function Oo(l){let e,t,n;return{c(){e=u("div"),t=u("embed"),Ye(t.src,n=l[1])||a(t,"src",n),a(t,"type","application/pdf"),a(t,"class","preview-pdf svelte-1cw3u0m"),a(e,"class","preview-pdf-container svelte-1cw3u0m")},m(i,s){g(i,e,s),f(e,t)},p(i,s){s&2&&!Ye(t.src,n=i[1])&&a(t,"src",n)},d(i){i&&h(e)}}}function Po(l){let e,t,n,i,s,o,r,c=l[0].name+"",k,m,v,_,p=$e(l[0].size)+"",b,y,w=qt(l[0].mime)+"",T,S,A,M,j,B,I,F,L,N,X,ee;s=new cn({props:{kind:l[8],size:18}});function Z(P,K){return P[2]?jo:P[3]?Ho:P[6]&&P[1]?Ao:P[5]&&P[1]?Fo:P[4]?Eo:No}let V=Z(l),le=V(l);return{c(){e=u("div"),t=u("div"),n=u("header"),i=u("div"),Ie(s.$$.fragment),o=C(),r=u("span"),k=E(c),v=C(),_=u("div"),b=E(p),y=E(" · "),T=E(w),S=C(),A=u("div"),M=u("button"),M.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',j=C(),B=u("button"),B.innerHTML='<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',I=C(),F=u("div"),le.c(),a(r,"class","preview-name svelte-1cw3u0m"),a(r,"title",m=l[0].name),a(i,"class","preview-title svelte-1cw3u0m"),a(_,"class","preview-meta svelte-1cw3u0m"),a(M,"class","action-btn svelte-1cw3u0m"),a(M,"title","Открыть во внешней программе"),a(M,"aria-label","Открыть внешне"),a(B,"class","action-btn action-btn-close svelte-1cw3u0m"),a(B,"title","Close"),a(B,"aria-label","Close preview"),a(A,"class","preview-actions svelte-1cw3u0m"),a(n,"class","preview-header svelte-1cw3u0m"),a(F,"class","preview-body svelte-1cw3u0m"),a(t,"class","modal svelte-1cw3u0m"),a(e,"class","overlay svelte-1cw3u0m"),a(e,"role","dialog"),a(e,"aria-modal","true"),a(e,"aria-label",L=`Preview: ${l[0].name}`)},m(P,K){g(P,e,K),f(e,t),f(t,n),f(n,i),Me(s,i,null),f(i,o),f(i,r),f(r,k),f(n,v),f(n,_),f(_,b),f(_,y),f(_,T),f(n,S),f(n,A),f(A,M),f(A,j),f(A,B),f(t,I),f(t,F),le.m(F,null),N=!0,X||(ee=[H(M,"click",l[9]),H(B,"click",l[10]),H(e,"click",Ke(l[11]))],X=!0)},p(P,[K]){(!N||K&1)&&c!==(c=P[0].name+"")&&O(k,c),(!N||K&1&&m!==(m=P[0].name))&&a(r,"title",m),(!N||K&1)&&p!==(p=$e(P[0].size)+"")&&O(b,p),(!N||K&1)&&w!==(w=qt(P[0].mime)+"")&&O(T,w),V===(V=Z(P))&&le?le.p(P,K):(le.d(1),le=V(P),le&&(le.c(),le.m(F,null))),(!N||K&1&&L!==(L=`Preview: ${P[0].name}`))&&a(e,"aria-label",L)},i(P){N||(ie(s.$$.fragment,P),N=!0)},o(P){re(s.$$.fragment,P),N=!1},d(P){P&&h(e),Le(s),le.d(),X=!1,se(ee)}}}function zo(l,e,t){let n,i,s,{item:o}=e,{content:r=""}=e,{loading:c=!1}=e,{error:k=""}=e;const m=et(),v=fn(o);function _(w){w.key==="Escape"&&m("close")}function p(){m("openExternal",o.fileId)}sn(()=>{window.addEventListener("keydown",_)}),an(()=>{window.removeEventListener("keydown",_)});const b=()=>m("close"),y=()=>m("close");return l.$$set=w=>{"item"in w&&t(0,o=w.item),"content"in w&&t(1,r=w.content),"loading"in w&&t(2,c=w.loading),"error"in w&&t(3,k=w.error)},l.$$.update=()=>{l.$$.dirty&3&&t(6,n=un(o)&&r&&r.startsWith("data:")),l.$$.dirty&1&&t(5,i=dn(o)||_n(o)),l.$$.dirty&1&&t(4,s=kn(o))},[o,r,c,k,s,i,n,m,v,p,b,y]}class Vo extends Pe{constructor(e){super(),Oe(this,e,zo,Po,Be,{item:0,content:1,loading:2,error:3})}}function Ro(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T;return{c(){e=u("div"),t=u("div"),n=u("h3"),i=E(l[0]),s=C(),o=u("p"),r=E(l[1]),c=C(),k=u("div"),m=u("button"),v=E(l[2]),p=C(),b=u("button"),y=E(l[3]),a(n,"class","svelte-1fv6yyk"),a(o,"class","message svelte-1fv6yyk"),a(m,"class",_="btn "+(l[4]?"btn-danger":"btn-primary")+" svelte-1fv6yyk"),a(b,"class","btn svelte-1fv6yyk"),a(k,"class","actions svelte-1fv6yyk"),a(t,"class","modal svelte-1fv6yyk"),a(e,"class","overlay svelte-1fv6yyk"),a(e,"role","dialog"),a(e,"aria-modal","true"),a(e,"aria-label",l[0])},m(S,A){g(S,e,A),f(e,t),f(t,n),f(n,i),f(t,s),f(t,o),f(o,r),f(t,c),f(t,k),f(k,m),f(m,v),f(k,p),f(k,b),f(b,y),w||(T=[H(m,"click",l[6]),H(b,"click",l[7]),H(e,"click",Ke(l[8]))],w=!0)},p(S,[A]){A&1&&O(i,S[0]),A&2&&O(r,S[1]),A&4&&O(v,S[2]),A&16&&_!==(_="btn "+(S[4]?"btn-danger":"btn-primary")+" svelte-1fv6yyk")&&a(m,"class",_),A&8&&O(y,S[3]),A&1&&a(e,"aria-label",S[0])},i:q,o:q,d(S){S&&h(e),w=!1,se(T)}}}function Wo(l,e,t){let{title:n="Подтверждение"}=e,{message:i=""}=e,{confirmText:s="Удалить"}=e,{cancelText:o="Отмена"}=e,{danger:r=!1}=e;const c=et(),k=()=>c("confirm"),m=()=>c("cancel"),v=()=>c("cancel");return l.$$set=_=>{"title"in _&&t(0,n=_.title),"message"in _&&t(1,i=_.message),"confirmText"in _&&t(2,s=_.confirmText),"cancelText"in _&&t(3,o=_.cancelText),"danger"in _&&t(4,r=_.danger)},[n,i,s,o,r,c,k,m,v]}class Ko extends Pe{constructor(e){super(),Oe(this,e,Wo,Ro,Be,{title:0,message:1,confirmText:2,cancelText:3,danger:4})}}function Xt(l,e,t){const n=l.slice();return n[162]=e[t],n}function Zt(l,e,t){const n=l.slice();return n[181]=e[t],n}function Yt(l,e,t){const n=l.slice();return n[181]=e[t],n}function Qt(l,e,t){const n=l.slice();return n[189]=e[t],n}function $t(l,e,t){const n=l.slice();return n[181]=e[t],n}function el(l,e,t){const n=l.slice();return n[181]=e[t],n}function tl(l,e,t){const n=l.slice();return n[165]=e[t],n}function ll(l,e,t){const n=l.slice();return n[176]=e[t],n}function nl(l,e,t){const n=l.slice();return n[173]=e[t],n}function il(l,e,t){const n=l.slice();return n[168]=e[t],n}function ol(l,e,t){const n=l.slice();return n[165]=e[t],n}function sl(l,e,t){const n=l.slice();return n[168]=e[t],n}function al(l,e,t){const n=l.slice();return n[184]=e[t],n}function rl(l,e,t){const n=l.slice();return n[162]=e[t],n}function cl(l,e,t){const n=l.slice();return n[198]=e[t],n}function fl(l,e,t){const n=l.slice();return n[201]=e[t],n}function ul(l){let e,t=l[201].label+"",n,i,s,o,r;function c(){return l[87](l[201])}return{c(){e=u("button"),n=E(t),i=C(),a(e,"class",s="nav-item "+(l[7]===l[201].id?"selected":"")+" svelte-xaaokk")},m(k,m){g(k,e,m),f(e,n),f(e,i),o||(r=H(e,"click",c),o=!0)},p(k,m){l=k,m[0]&1&&t!==(t=l[201].label+"")&&O(n,t),m[0]&129&&s!==(s="nav-item "+(l[7]===l[201].id?"selected":"")+" svelte-xaaokk")&&a(e,"class",s)},d(k){k&&h(e),o=!1,r()}}}function dl(l){let e,t,n,i,s,o=l[1].length>0&&kl(l),r=te(l[1]),c=[];for(let m=0;m<r.length;m+=1)c[m]=_l(cl(l,r,m));let k=l[1].length===0&&pl();return{c(){e=u("div"),t=u("div"),n=E("Дела "),o&&o.c(),i=C();for(let m=0;m<c.length;m+=1)c[m].c();s=C(),k&&k.c(),a(t,"class","nav-label svelte-xaaokk"),a(e,"class","nav-group svelte-xaaokk")},m(m,v){g(m,e,v),f(e,t),f(t,n),o&&o.m(t,null),f(e,i);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(e,null);f(e,s),k&&k.m(e,null)},p(m,v){if(m[1].length>0?o?o.p(m,v):(o=kl(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null),v[0]&258|v[1]&16384){r=te(m[1]);let _;for(_=0;_<r.length;_+=1){const p=cl(m,r,_);c[_]?c[_].p(p,v):(c[_]=_l(p),c[_].c(),c[_].m(e,s))}for(;_<c.length;_+=1)c[_].d(1);c.length=r.length}m[1].length===0?k||(k=pl(),k.c(),k.m(e,null)):k&&(k.d(1),k=null)},d(m){m&&h(e),o&&o.d(),ue(c,m),k&&k.d()}}}function kl(l){let e,t=l[1].length+"",n,i;return{c(){e=E("("),n=E(t),i=E(")")},m(s,o){g(s,e,o),g(s,n,o),g(s,i,o)},p(s,o){o[0]&2&&t!==(t=s[1].length+"")&&O(n,t)},d(s){s&&(h(e),h(n),h(i))}}}function _l(l){let e,t=l[198].title+"",n,i,s,o;function r(){return l[88](l[198])}return{c(){e=u("button"),n=E(t),a(e,"class",i="nav-item "+(l[8]&&l[8].id===l[198].id?"selected":"")+" svelte-xaaokk")},m(c,k){g(c,e,k),f(e,n),s||(o=H(e,"click",r),s=!0)},p(c,k){l=c,k[0]&2&&t!==(t=l[198].title+"")&&O(n,t),k[0]&258&&i!==(i="nav-item "+(l[8]&&l[8].id===l[198].id?"selected":"")+" svelte-xaaokk")&&a(e,"class",i)},d(c){c&&h(e),s=!1,o()}}}function pl(l){let e;return{c(){e=u("div"),e.textContent="Нет дел",a(e,"class","nav-empty svelte-xaaokk")},m(t,n){g(t,e,n)},d(t){t&&h(e)}}}function xo(l){let e;return{c(){e=u("span"),e.textContent="Выберите раздел или дело",a(e,"class","crumb placeholder svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function qo(l){let e,t=te(l[0]),n=[];for(let i=0;i<t.length;i+=1)n[i]=ml(rl(l,t,i));return{c(){e=u("span");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","crumb svelte-xaaokk")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,s){if(s[0]&129){t=te(i[0]);let o;for(o=0;o<t.length;o+=1){const r=rl(i,t,o);n[o]?n[o].p(r,s):(n[o]=ml(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function Go(l){let e,t=l[8].title+"",n,i,s,o=l[8].type+"",r;return{c(){e=u("span"),n=E(t),i=C(),s=u("span"),r=E(o),a(e,"class","crumb svelte-xaaokk"),a(s,"class","crumb-type svelte-xaaokk")},m(c,k){g(c,e,k),f(e,n),g(c,i,k),g(c,s,k),f(s,r)},p(c,k){k[0]&256&&t!==(t=c[8].title+"")&&O(n,t),k[0]&256&&o!==(o=c[8].type+"")&&O(r,o)},d(c){c&&(h(e),h(i),h(s))}}}function ml(l){let e=(l[162].id===l[7]?l[162].label:"")+"",t;return{c(){t=E(e)},m(n,i){g(n,t,i)},p(n,i){i[0]&129&&e!==(e=(n[162].id===n[7]?n[162].label:"")+"")&&O(t,e)},d(n){n&&h(t)}}}function vl(l){let e,t,n,i,s,o;return{c(){e=u("div"),t=E(l[6]),n=C(),i=u("button"),i.innerHTML='<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><line x1="18" y1="6" x2="6" y2="18" class="svelte-xaaokk"></line><line x1="6" y1="6" x2="18" y2="18" class="svelte-xaaokk"></line></svg>',a(i,"class","dismiss-btn svelte-xaaokk"),a(i,"aria-label","Dismiss"),a(e,"class","error-banner svelte-xaaokk")},m(r,c){g(r,e,c),f(e,t),f(e,n),f(e,i),s||(o=[H(i,"click",ge(l[89])),H(e,"click",l[90])],s=!0)},p(r,c){c[0]&64&&O(t,r[6])},d(r){r&&h(e),s=!1,se(o)}}}function Uo(l){let e,t,n;function i(r,c){if(r[21])return es;if(r[0].length>0)return $o;if(r[6])return Qo}let s=i(l),o=s&&s(l);return{c(){e=u("div"),t=u("h2"),t.textContent="Верстак",n=C(),o&&o.c(),a(t,"class","svelte-xaaokk"),a(e,"class","welcome svelte-xaaokk")},m(r,c){g(r,e,c),f(e,t),f(e,n),o&&o.m(e,null)},p(r,c){s===(s=i(r))&&o?o.p(r,c):(o&&o.d(1),o=s&&s(r),o&&(o.c(),o.m(e,null)))},i:q,o:q,d(r){r&&h(e),o&&o.d()}}}function Jo(l){let e,t,n;function i(r,c){return r[3].length===0?ls:ts}let s=i(l),o=s(l);return{c(){e=u("div"),t=u("div"),t.innerHTML='<h2 class="svelte-xaaokk">Активность</h2>',n=C(),o.c(),a(t,"class","activity-feed-header svelte-xaaokk"),a(e,"class","activity-feed svelte-xaaokk")},m(r,c){g(r,e,c),f(e,t),f(e,n),o.m(e,null)},p(r,c){s===(s=i(r))&&o?o.p(r,c):(o.d(1),o=s(r),o&&(o.c(),o.m(e,null)))},i:q,o:q,d(r){r&&h(e),o.d()}}}function Xo(l){let e,t,n,i,s,o=l[2].date+"",r,c,k,m=l[2].summary&&gl(l);function v(b,y){return b[2].groups&&b[2].groups.length>0?is:ns}let _=v(l),p=_(l);return{c(){e=u("div"),t=u("div"),n=u("h2"),n.textContent="Сегодня",i=C(),s=u("span"),r=E(o),c=C(),m&&m.c(),k=C(),p.c(),a(n,"class","svelte-xaaokk"),a(s,"class","today-date svelte-xaaokk"),a(t,"class","today-header svelte-xaaokk"),a(e,"class","today-dashboard svelte-xaaokk")},m(b,y){g(b,e,y),f(e,t),f(t,n),f(t,i),f(t,s),f(s,r),f(e,c),m&&m.m(e,null),f(e,k),p.m(e,null)},p(b,y){y[0]&4&&o!==(o=b[2].date+"")&&O(r,o),b[2].summary?m?m.p(b,y):(m=gl(b),m.c(),m.m(e,k)):m&&(m.d(1),m=null),_===(_=v(b))&&p?p.p(b,y):(p.d(1),p=_(b),p&&(p.c(),p.m(e,null)))},i:q,o:q,d(b){b&&h(e),m&&m.d(),p.d()}}}function Zo(l){let e,t,n,i,s,o,r=te(l[43]),c=[];for(let _=0;_<r.length;_+=1)c[_]=Nl(al(l,r,_));const k=[ds,us,fs,cs,rs,as],m=[];function v(_,p){return _[9]==="overview"?0:_[9]==="notes"?1:_[9]==="files"?2:_[9]==="actions"?3:_[9]==="worklog"?4:_[9]==="activity"?5:-1}return~(i=v(l))&&(s=m[i]=k[i](l)),{c(){e=u("div");for(let _=0;_<c.length;_+=1)c[_].c();t=C(),n=u("div"),s&&s.c(),a(e,"class","tabs svelte-xaaokk"),a(n,"class","tab-content svelte-xaaokk")},m(_,p){g(_,e,p);for(let b=0;b<c.length;b+=1)c[b]&&c[b].m(e,null);g(_,t,p),g(_,n,p),~i&&m[i].m(n,null),o=!0},p(_,p){if(p[0]&335545088|p[1]&36864|p[2]&8388608){r=te(_[43]);let y;for(y=0;y<r.length;y+=1){const w=al(_,r,y);c[y]?c[y].p(w,p):(c[y]=Nl(w),c[y].c(),c[y].m(e,null))}for(;y<c.length;y+=1)c[y].d(1);c.length=r.length}let b=i;i=v(_),i===b?~i&&m[i].p(_,p):(s&&(ye(),re(m[b],1,1,()=>{m[b]=null}),we()),~i?(s=m[i],s?s.p(_,p):(s=m[i]=k[i](_),s.c()),ie(s,1),s.m(n,null)):s=null)},i(_){o||(ie(s),o=!0)},o(_){re(s),o=!1},d(_){_&&(h(e),h(t),h(n)),ue(c,_),~i&&m[i].d()}}}function Yo(l){let e,t,n,i=l[11].title+"",s,o,r,c,k,m,v,_,p,b,y,w=l[11].dirty&&ql();return{c(){e=u("div"),t=u("div"),n=u("span"),s=E(i),o=C(),w&&w.c(),r=C(),c=u("div"),k=u("button"),k.textContent="Сохранить",m=C(),v=u("button"),v.textContent="Закрыть",_=C(),p=u("textarea"),a(n,"class","note-title svelte-xaaokk"),a(k,"class","btn btn-primary svelte-xaaokk"),a(v,"class","btn svelte-xaaokk"),a(c,"class","note-editor-actions svelte-xaaokk"),a(t,"class","note-editor-header svelte-xaaokk"),a(p,"class","note-textarea svelte-xaaokk"),a(p,"placeholder","Начните писать..."),a(e,"class","note-editor svelte-xaaokk")},m(T,S){g(T,e,S),f(e,t),f(t,n),f(n,s),f(t,o),w&&w.m(t,null),f(t,r),f(t,c),f(c,k),f(c,m),f(c,v),f(e,_),f(e,p),_e(p,l[11].content),b||(y=[H(k,"click",l[78]),H(v,"click",l[76]),H(p,"input",l[91]),H(p,"input",l[77])],b=!0)},p(T,S){S[0]&2048&&i!==(i=T[11].title+"")&&O(s,i),T[11].dirty?w||(w=ql(),w.c(),w.m(t,r)):w&&(w.d(1),w=null),S[0]&2048&&_e(p,T[11].content)},i:q,o:q,d(T){T&&h(e),w&&w.d(),b=!1,se(y)}}}function Qo(l){let e,t,n;return{c(){e=u("p"),t=E("Ошибка: "),n=E(l[6]),a(e,"class","error-text svelte-xaaokk")},m(i,s){g(i,e,s),f(e,t),f(e,n)},p(i,s){s[0]&64&&O(n,i[6])},d(i){i&&h(e)}}}function $o(l){let e,t,n;return{c(){e=u("p"),e.textContent="Выберите раздел в боковой панели.",t=C(),n=u("p"),n.textContent="Или создайте новое дело кнопкой «+».",a(e,"class","svelte-xaaokk"),a(n,"class","hint svelte-xaaokk")},m(i,s){g(i,e,s),g(i,t,s),g(i,n,s)},p:q,d(i){i&&(h(e),h(t),h(n))}}}function es(l){let e;return{c(){e=u("p"),e.textContent="Загрузка...",a(e,"class","svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function ts(l){let e,t=te(l[3]),n=[];for(let i=0;i<t.length;i+=1)n[i]=bl(Zt(l,t,i));return{c(){e=u("div");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","activity-feed-events svelte-xaaokk")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,s){if(s[0]&8|s[2]&16777216){t=te(i[3]);let o;for(o=0;o<t.length;o+=1){const r=Zt(i,t,o);n[o]?n[o].p(r,s):(n[o]=bl(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function ls(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Активность пока не зафиксирована</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function hl(l){let e,t=l[181].targetType+"",n;return{c(){e=u("span"),n=E(t),a(e,"class","activity-feed-target svelte-xaaokk")},m(i,s){g(i,e,s),f(e,n)},p(i,s){s[0]&8&&t!==(t=i[181].targetType+"")&&O(n,t)},d(i){i&&h(e)}}}function bl(l){let e,t,n=je(l[181].eventType)+"",i,s,o,r,c=l[181].title+"",k,m,v,_,p=Ce(l[181].eventType)+"",b,y,w,T,S=ve(l[181].createdAt)+"",A,M,j=me(l[181].createdAt)+"",B,I,F,L,N=l[181].targetType&&hl(l);function X(){return l[123](l[181])}function ee(...Z){return l[124](l[181],...Z)}return{c(){e=u("div"),t=u("span"),i=E(n),s=C(),o=u("div"),r=u("span"),k=E(c),m=C(),v=u("div"),_=u("span"),b=E(p),y=C(),N&&N.c(),w=C(),T=u("span"),A=E(S),M=C(),B=E(j),I=C(),a(t,"class","activity-feed-icon svelte-xaaokk"),a(r,"class","activity-feed-title svelte-xaaokk"),a(_,"class","activity-feed-type svelte-xaaokk"),a(T,"class","activity-feed-time svelte-xaaokk"),a(v,"class","activity-feed-meta svelte-xaaokk"),a(o,"class","activity-feed-body svelte-xaaokk"),a(e,"class","activity-feed-event svelte-xaaokk"),a(e,"role","button"),a(e,"tabindex","0")},m(Z,V){g(Z,e,V),f(e,t),f(t,i),f(e,s),f(e,o),f(o,r),f(r,k),f(o,m),f(o,v),f(v,_),f(_,b),f(v,y),N&&N.m(v,null),f(v,w),f(v,T),f(T,A),f(T,M),f(T,B),f(e,I),F||(L=[H(e,"click",X),H(e,"keydown",ee)],F=!0)},p(Z,V){l=Z,V[0]&8&&n!==(n=je(l[181].eventType)+"")&&O(i,n),V[0]&8&&c!==(c=l[181].title+"")&&O(k,c),V[0]&8&&p!==(p=Ce(l[181].eventType)+"")&&O(b,p),l[181].targetType?N?N.p(l,V):(N=hl(l),N.c(),N.m(v,w)):N&&(N.d(1),N=null),V[0]&8&&S!==(S=ve(l[181].createdAt)+"")&&O(A,S),V[0]&8&&j!==(j=me(l[181].createdAt)+"")&&O(B,j)},d(Z){Z&&h(e),N&&N.d(),F=!1,se(L)}}}function gl(l){let e,t,n,i=l[2].summary.changedCases>0&&yl(l),s=l[2].summary.notes>0&&wl(l),o=l[2].summary.files>0&&Cl(l);return{c(){e=u("div"),i&&i.c(),t=C(),s&&s.c(),n=C(),o&&o.c(),a(e,"class","today-summary svelte-xaaokk")},m(r,c){g(r,e,c),i&&i.m(e,null),f(e,t),s&&s.m(e,null),f(e,n),o&&o.m(e,null)},p(r,c){r[2].summary.changedCases>0?i?i.p(r,c):(i=yl(r),i.c(),i.m(e,t)):i&&(i.d(1),i=null),r[2].summary.notes>0?s?s.p(r,c):(s=wl(r),s.c(),s.m(e,n)):s&&(s.d(1),s=null),r[2].summary.files>0?o?o.p(r,c):(o=Cl(r),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(r){r&&h(e),i&&i.d(),s&&s.d(),o&&o.d()}}}function yl(l){let e,t=l[2].summary.changedCases+"",n,i,s=Te(l[2].summary.changedCases,"дело","дела","дел")+"",o;return{c(){e=u("span"),n=E(t),i=C(),o=E(s),a(e,"class","summary-chip svelte-xaaokk")},m(r,c){g(r,e,c),f(e,n),f(e,i),f(e,o)},p(r,c){c[0]&4&&t!==(t=r[2].summary.changedCases+"")&&O(n,t),c[0]&4&&s!==(s=Te(r[2].summary.changedCases,"дело","дела","дел")+"")&&O(o,s)},d(r){r&&h(e)}}}function wl(l){let e,t=l[2].summary.notes+"",n,i,s=Te(l[2].summary.notes,"заметка","заметки","заметок")+"",o;return{c(){e=u("span"),n=E(t),i=C(),o=E(s),a(e,"class","summary-chip svelte-xaaokk")},m(r,c){g(r,e,c),f(e,n),f(e,i),f(e,o)},p(r,c){c[0]&4&&t!==(t=r[2].summary.notes+"")&&O(n,t),c[0]&4&&s!==(s=Te(r[2].summary.notes,"заметка","заметки","заметок")+"")&&O(o,s)},d(r){r&&h(e)}}}function Cl(l){let e,t=l[2].summary.files+"",n,i,s=Te(l[2].summary.files,"файл","файла","файлов")+"",o;return{c(){e=u("span"),n=E(t),i=C(),o=E(s),a(e,"class","summary-chip svelte-xaaokk")},m(r,c){g(r,e,c),f(e,n),f(e,i),f(e,o)},p(r,c){c[0]&4&&t!==(t=r[2].summary.files+"")&&O(n,t),c[0]&4&&s!==(s=Te(r[2].summary.files,"файл","файла","файлов")+"")&&O(o,s)},d(r){r&&h(e)}}}function ns(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Сегодня пока тихо</p> <p class="hint svelte-xaaokk">Здесь появятся дела, заметки, файлы и действия, с которыми вы работали сегодня.</p>',a(e,"class","today-empty svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function is(l){let e,t,n=te(l[2].groups),i=[];for(let o=0;o<n.length;o+=1)i[o]=Sl(Qt(l,n,o));let s=l[2].events&&l[2].events.length>0&&Dl(l);return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=C(),s&&s.c(),t=he()},m(o,r){for(let c=0;c<i.length;c+=1)i[c]&&i[c].m(o,r);g(o,e,r),s&&s.m(o,r),g(o,t,r)},p(o,r){if(r[0]&4|r[2]&16777216){n=te(o[2].groups);let c;for(c=0;c<n.length;c+=1){const k=Qt(o,n,c);i[c]?i[c].p(k,r):(i[c]=Sl(k),i[c].c(),i[c].m(e.parentNode,e))}for(;c<i.length;c+=1)i[c].d(1);i.length=n.length}o[2].events&&o[2].events.length>0?s?s.p(o,r):(s=Dl(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(o){o&&(h(e),h(t)),ue(i,o),s&&s.d(o)}}}function Tl(l){let e,t=l[189].events.length+"",n,i,s=Te(l[189].events.length,"событие","события","событий")+"",o;return{c(){e=u("span"),n=E(t),i=C(),o=E(s),a(e,"class","today-case-count svelte-xaaokk")},m(r,c){g(r,e,c),f(e,n),f(e,i),f(e,o)},p(r,c){c[0]&4&&t!==(t=r[189].events.length+"")&&O(n,t),c[0]&4&&s!==(s=Te(r[189].events.length,"событие","события","событий")+"")&&O(o,s)},d(r){r&&h(e)}}}function os(l){let e;return{c(){e=u("div"),e.textContent="Изменён сегодня",a(e,"class","today-events-empty svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function ss(l){let e,t=te(l[189].events),n=[];for(let i=0;i<t.length;i+=1)n[i]=Ll($t(l,t,i));return{c(){e=u("div");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","today-events svelte-xaaokk")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,s){if(s[0]&4|s[2]&16777216){t=te(i[189].events);let o;for(o=0;o<t.length;o+=1){const r=$t(i,t,o);n[o]?n[o].p(r,s):(n[o]=Ll(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function Ml(l){let e,t=l[181].targetType+"",n;return{c(){e=u("span"),n=E(t),a(e,"class","activity-event-target svelte-xaaokk")},m(i,s){g(i,e,s),f(e,n)},p(i,s){s[0]&4&&t!==(t=i[181].targetType+"")&&O(n,t)},d(i){i&&h(e)}}}function Ll(l){let e,t,n=je(l[181].eventType)+"",i,s,o,r=l[181].title+"",c,k,m,v=Ce(l[181].eventType)+"",_,p,b,y,w=me(l[181].createdAt)+"",T,S,A,M=l[181].targetType&&Ml(l);function j(){return l[119](l[189])}function B(...I){return l[120](l[189],...I)}return{c(){e=u("div"),t=u("span"),i=E(n),s=C(),o=u("span"),c=E(r),k=C(),m=u("span"),_=E(v),p=C(),M&&M.c(),b=C(),y=u("span"),T=E(w),a(t,"class","today-event-icon svelte-xaaokk"),a(o,"class","today-event-title svelte-xaaokk"),a(m,"class","today-event-type svelte-xaaokk"),a(y,"class","today-event-time svelte-xaaokk"),a(e,"class","today-event svelte-xaaokk"),a(e,"role","button"),a(e,"tabindex","0")},m(I,F){g(I,e,F),f(e,t),f(t,i),f(e,s),f(e,o),f(o,c),f(e,k),f(e,m),f(m,_),f(e,p),M&&M.m(e,null),f(e,b),f(e,y),f(y,T),S||(A=[H(e,"click",j),H(e,"keydown",B)],S=!0)},p(I,F){l=I,F[0]&4&&n!==(n=je(l[181].eventType)+"")&&O(i,n),F[0]&4&&r!==(r=l[181].title+"")&&O(c,r),F[0]&4&&v!==(v=Ce(l[181].eventType)+"")&&O(_,v),l[181].targetType?M?M.p(l,F):(M=Ml(l),M.c(),M.m(e,b)):M&&(M.d(1),M=null),F[0]&4&&w!==(w=me(l[181].createdAt)+"")&&O(T,w)},d(I){I&&h(e),M&&M.d(),S=!1,se(A)}}}function Sl(l){let e,t,n,i=l[189].nodeTitle+"",s,o,r,c=en(l[189].nodeKind)+"",k,m,v,_,p=me(l[189].lastActivityAt)+"",b,y,w,T,S=l[189].events&&Tl(l);function A(){return l[117](l[189])}function M(...F){return l[118](l[189],...F)}function j(F,L){return F[189].events&&F[189].events.length>0?ss:os}let B=j(l),I=B(l);return{c(){e=u("div"),t=u("div"),n=u("span"),s=E(i),o=C(),r=u("span"),k=E(c),m=C(),S&&S.c(),v=C(),_=u("span"),b=E(p),y=C(),I.c(),a(n,"class","today-case-title svelte-xaaokk"),a(r,"class","today-case-type svelte-xaaokk"),a(_,"class","today-case-time svelte-xaaokk"),a(t,"class","today-case-header svelte-xaaokk"),a(t,"role","button"),a(t,"tabindex","0"),a(e,"class","today-case svelte-xaaokk")},m(F,L){g(F,e,L),f(e,t),f(t,n),f(n,s),f(t,o),f(t,r),f(r,k),f(t,m),S&&S.m(t,null),f(t,v),f(t,_),f(_,b),f(e,y),I.m(e,null),w||(T=[H(t,"click",A),H(t,"keydown",M)],w=!0)},p(F,L){l=F,L[0]&4&&i!==(i=l[189].nodeTitle+"")&&O(s,i),L[0]&4&&c!==(c=en(l[189].nodeKind)+"")&&O(k,c),l[189].events?S?S.p(l,L):(S=Tl(l),S.c(),S.m(t,v)):S&&(S.d(1),S=null),L[0]&4&&p!==(p=me(l[189].lastActivityAt)+"")&&O(b,p),B===(B=j(l))&&I?I.p(l,L):(I.d(1),I=B(l),I&&(I.c(),I.m(e,null)))},d(F){F&&h(e),S&&S.d(),I.d(),w=!1,se(T)}}}function Dl(l){let e,t,n,i=te(l[2].events),s=[];for(let o=0;o<i.length;o+=1)s[o]=Il(Yt(l,i,o));return{c(){e=u("div"),t=u("h3"),t.textContent="Лента за сегодня",n=C();for(let o=0;o<s.length;o+=1)s[o].c();a(t,"class","svelte-xaaokk"),a(e,"class","today-timeline svelte-xaaokk")},m(o,r){g(o,e,r),f(e,t),f(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null)},p(o,r){if(r[0]&4|r[2]&16777216){i=te(o[2].events);let c;for(c=0;c<i.length;c+=1){const k=Yt(o,i,c);s[c]?s[c].p(k,r):(s[c]=Il(k),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=i.length}},d(o){o&&h(e),ue(s,o)}}}function Il(l){let e,t,n,i,s=l[181].title+"",o,r,c,k=Ce(l[181].eventType)+"",m,v,_,p=me(l[181].createdAt)+"",b,y,w,T;function S(){return l[121](l[181])}function A(...M){return l[122](l[181],...M)}return{c(){e=u("div"),t=u("span"),n=C(),i=u("span"),o=E(s),r=C(),c=u("span"),m=E(k),v=C(),_=u("span"),b=E(p),y=C(),a(t,"class","timeline-dot svelte-xaaokk"),a(i,"class","timeline-title svelte-xaaokk"),a(c,"class","timeline-type svelte-xaaokk"),a(_,"class","timeline-time svelte-xaaokk"),a(e,"class","timeline-event svelte-xaaokk"),a(e,"role","button"),a(e,"tabindex","0")},m(M,j){g(M,e,j),f(e,t),f(e,n),f(e,i),f(i,o),f(e,r),f(e,c),f(c,m),f(e,v),f(e,_),f(_,b),f(e,y),w||(T=[H(e,"click",S),H(e,"keydown",A)],w=!0)},p(M,j){l=M,j[0]&4&&s!==(s=l[181].title+"")&&O(o,s),j[0]&4&&k!==(k=Ce(l[181].eventType)+"")&&O(m,k),j[0]&4&&p!==(p=me(l[181].createdAt)+"")&&O(b,p)},d(M){M&&h(e),w=!1,se(T)}}}function Nl(l){let e,t=l[184].label+"",n,i,s;function o(){return l[92](l[184])}return{c(){e=u("button"),n=E(t),a(e,"class",Oi(l[85](l[184].id))+" svelte-xaaokk")},m(r,c){g(r,e,c),f(e,n),i||(s=H(e,"click",o),i=!0)},p(r,c){l=r},d(r){r&&h(e),i=!1,s()}}}function as(l){let e;function t(s,o){return s[4].length===0?_s:ks}let n=t(l),i=n(l);return{c(){e=u("div"),i.c(),a(e,"class","activity-tab svelte-xaaokk")},m(s,o){g(s,e,o),i.m(e,null)},p(s,o){n===(n=t(s))&&i?i.p(s,o):(i.d(1),i=n(s),i&&(i.c(),i.m(e,null)))},i:q,o:q,d(s){s&&h(e),i.d()}}}function rs(l){let e,t,n,i,s,o,r,c,k,m,v,_;function p(w,T){return w[13].length===0?ms:ps}let b=p(l),y=b(l);return{c(){e=u("div"),t=u("div"),n=u("input"),i=C(),s=u("input"),o=C(),r=u("button"),c=E("Записать"),m=C(),y.c(),a(n,"type","text"),a(n,"placeholder","Что сделано"),a(n,"class","svelte-xaaokk"),a(s,"type","number"),a(s,"placeholder","Мин"),a(s,"min","1"),a(s,"class","svelte-xaaokk"),a(r,"class","btn btn-primary svelte-xaaokk"),r.disabled=k=!l[15].trim()||!l[14],a(t,"class","worklog-form svelte-xaaokk"),a(e,"class","worklog-tab svelte-xaaokk")},m(w,T){g(w,e,T),f(e,t),f(t,n),_e(n,l[15]),f(t,i),f(t,s),_e(s,l[14]),f(t,o),f(t,r),f(r,c),f(e,m),y.m(e,null),v||(_=[H(n,"input",l[115]),H(s,"input",l[116]),H(r,"click",l[79])],v=!0)},p(w,T){T[0]&32768&&n.value!==w[15]&&_e(n,w[15]),T[0]&16384&&on(s.value)!==w[14]&&_e(s,w[14]),T[0]&49152&&k!==(k=!w[15].trim()||!w[14])&&(r.disabled=k),b===(b=p(w))&&y?y.p(w,T):(y.d(1),y=b(w),y&&(y.c(),y.m(e,null)))},i:q,o:q,d(w){w&&h(e),y.d(),v=!1,se(_)}}}function cs(l){let e;function t(s,o){return s[12].length===0?hs:vs}let n=t(l),i=n(l);return{c(){i.c(),e=he()},m(s,o){i.m(s,o),g(s,e,o)},p(s,o){n===(n=t(s))&&i?i.p(s,o):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},i:q,o:q,d(s){s&&h(e),i.d(s)}}}function fs(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T,S,A,M=l[33].items.length>0&&jl(l);const j=[gs,bs],B=[];function I(N,X){return N[25]?0:1}_=I(l),p=B[_]=j[_](l);let F=l[22]&&!l[24]&&Ol(),L=l[29]&&Pl(l);return{c(){e=u("div"),t=u("div"),n=u("button"),i=E("+ Добавить файл"),s=C(),o=u("button"),r=E("+ Добавить папку"),c=C(),k=u("button"),k.textContent="+ Новый файл",m=C(),M&&M.c(),v=C(),p.c(),b=C(),F&&F.c(),y=C(),L&&L.c(),w=he(),a(n,"class","btn btn-primary svelte-xaaokk"),n.disabled=l[22],a(o,"class","btn svelte-xaaokk"),o.disabled=l[22],a(k,"class","btn svelte-xaaokk"),a(t,"class","tab-toolbar svelte-xaaokk"),a(e,"class","files-tab svelte-xaaokk")},m(N,X){g(N,e,X),f(e,t),f(t,n),f(n,i),f(t,s),f(t,o),f(o,r),f(t,c),f(t,k),f(t,m),M&&M.m(t,null),f(e,v),B[_].m(e,null),f(e,b),F&&F.m(e,null),g(N,y,X),L&&L.m(N,X),g(N,w,X),T=!0,S||(A=[H(n,"click",l[80]),H(o,"click",l[81]),H(k,"click",l[52])],S=!0)},p(N,X){(!T||X[0]&4194304)&&(n.disabled=N[22]),(!T||X[0]&4194304)&&(o.disabled=N[22]),N[33].items.length>0?M?M.p(N,X):(M=jl(N),M.c(),M.m(t,null)):M&&(M.d(1),M=null);let ee=_;_=I(N),_===ee?B[_].p(N,X):(ye(),re(B[ee],1,1,()=>{B[ee]=null}),we(),p=B[_],p?p.p(N,X):(p=B[_]=j[_](N),p.c()),ie(p,1),p.m(e,b)),N[22]&&!N[24]?F||(F=Ol(),F.c(),F.m(e,null)):F&&(F.d(1),F=null),N[29]?L?(L.p(N,X),X[0]&536870912&&ie(L,1)):(L=Pl(N),L.c(),ie(L,1),L.m(w.parentNode,w)):L&&(ye(),re(L,1,1,()=>{L=null}),we())},i(N){T||(ie(p),ie(L),T=!0)},o(N){re(p),re(L),T=!1},d(N){N&&(h(e),h(y),h(w)),M&&M.d(),B[_].d(),F&&F.d(),L&&L.d(N),S=!1,se(A)}}}function us(l){let e,t,n,i,s,o,r,c=l[19]&&zl(l);function k(_,p){return _[10].length===0&&!_[19]?Ls:Ms}let m=k(l),v=m(l);return{c(){e=u("div"),t=u("div"),n=u("button"),n.textContent="+ Добавить заметку",i=C(),c&&c.c(),s=C(),v.c(),a(n,"class","btn btn-primary svelte-xaaokk"),a(t,"class","tab-toolbar svelte-xaaokk"),a(e,"class","notes-tab svelte-xaaokk")},m(_,p){g(_,e,p),f(e,t),f(t,n),f(e,i),c&&c.m(e,null),f(e,s),v.m(e,null),o||(r=H(n,"click",l[72]),o=!0)},p(_,p){_[19]?c?c.p(_,p):(c=zl(_),c.c(),c.m(e,s)):c&&(c.d(1),c=null),m===(m=k(_))&&v?v.p(_,p):(v.d(1),v=m(_),v&&(v.c(),v.m(e,null)))},i:q,o:q,d(_){_&&h(e),c&&c.d(),v.d(),o=!1,r()}}}function ds(l){let e,t,n=l[8].title+"",i,s,o,r,c,k,m=l[8].type+"",v,_,p,b,y,w=(l[8].section||"—")+"",T,S,A,M,j,B=ve(l[8].createdAt)+"",I,F,L,N,X,ee,Z,V,le,P,K,W,R,$,ne=l[10].length>0&&Rl(l),G=l[13].length>0&&Kl(l);return{c(){e=u("div"),t=u("h2"),i=E(n),s=C(),o=u("div"),r=u("div"),c=u("span"),c.textContent="Тип",k=u("span"),v=E(m),_=C(),p=u("div"),b=u("span"),b.textContent="Раздел",y=u("span"),T=E(w),S=C(),A=u("div"),M=u("span"),M.textContent="Создано",j=u("span"),I=E(B),F=C(),L=u("div"),N=u("button"),N.innerHTML=`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><path d="M12 20h9" class="svelte-xaaokk"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" class="svelte-xaaokk"></path></svg>
Новая заметка`,X=C(),ee=u("button"),ee.innerHTML=`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" class="svelte-xaaokk"></path></svg>
Добавить файл`,Z=C(),V=u("button"),V.innerHTML=`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" class="svelte-xaaokk"></polygon></svg>
Добавить действие`,le=C(),P=u("button"),P.innerHTML=`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><circle cx="12" cy="12" r="10" class="svelte-xaaokk"></circle><polyline points="12 6 12 12 16 14" class="svelte-xaaokk"></polyline></svg>
Записать время`,K=C(),ne&&ne.c(),W=C(),G&&G.c(),a(t,"class","svelte-xaaokk"),a(c,"class","meta-label svelte-xaaokk"),a(k,"class","svelte-xaaokk"),a(r,"class","meta-item svelte-xaaokk"),a(b,"class","meta-label svelte-xaaokk"),a(y,"class","svelte-xaaokk"),a(p,"class","meta-item svelte-xaaokk"),a(M,"class","meta-label svelte-xaaokk"),a(j,"class","svelte-xaaokk"),a(A,"class","meta-item svelte-xaaokk"),a(o,"class","meta-grid svelte-xaaokk"),a(N,"class","qa-btn svelte-xaaokk"),a(ee,"class","qa-btn svelte-xaaokk"),a(V,"class","qa-btn svelte-xaaokk"),V.disabled=!0,a(V,"title","Следующий этап"),a(P,"class","qa-btn svelte-xaaokk"),a(L,"class","quick-actions svelte-xaaokk"),a(e,"class","overview svelte-xaaokk")},m(U,Y){g(U,e,Y),f(e,t),f(t,i),f(e,s),f(e,o),f(o,r),f(r,c),f(r,k),f(k,v),f(o,_),f(o,p),f(p,b),f(p,y),f(y,T),f(o,S),f(o,A),f(A,M),f(A,j),f(j,I),f(e,F),f(e,L),f(L,N),f(L,X),f(L,ee),f(L,Z),f(L,V),f(L,le),f(L,P),f(e,K),ne&&ne.m(e,null),f(e,W),G&&G.m(e,null),R||($=[H(N,"click",l[93]),H(ee,"click",l[94]),H(P,"click",l[95])],R=!0)},p(U,Y){Y[0]&256&&n!==(n=U[8].title+"")&&O(i,n),Y[0]&256&&m!==(m=U[8].type+"")&&O(v,m),Y[0]&256&&w!==(w=(U[8].section||"—")+"")&&O(T,w),Y[0]&256&&B!==(B=ve(U[8].createdAt)+"")&&O(I,B),U[10].length>0?ne?ne.p(U,Y):(ne=Rl(U),ne.c(),ne.m(e,W)):ne&&(ne.d(1),ne=null),U[13].length>0?G?G.p(U,Y):(G=Kl(U),G.c(),G.m(e,null)):G&&(G.d(1),G=null)},i:q,o:q,d(U){U&&h(e),ne&&ne.d(),G&&G.d(),R=!1,se($)}}}function ks(l){let e,t=te(l[4]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Fl(el(l,t,i));return{c(){e=u("div");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","activity-events svelte-xaaokk")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,s){if(s[0]&16){t=te(i[4]);let o;for(o=0;o<t.length;o+=1){const r=el(i,t,o);n[o]?n[o].p(r,s):(n[o]=Fl(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function _s(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Активность пока не зафиксирована</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function El(l){let e,t=l[181].targetType+"",n;return{c(){e=u("span"),n=E(t),a(e,"class","activity-event-target svelte-xaaokk")},m(i,s){g(i,e,s),f(e,n)},p(i,s){s[0]&16&&t!==(t=i[181].targetType+"")&&O(n,t)},d(i){i&&h(e)}}}function Fl(l){let e,t,n=je(l[181].eventType)+"",i,s,o,r=l[181].title+"",c,k,m,v=Ce(l[181].eventType)+"",_,p,b,y,w=me(l[181].createdAt)+"",T,S,A=l[181].targetType&&El(l);return{c(){e=u("div"),t=u("span"),i=E(n),s=C(),o=u("span"),c=E(r),k=C(),m=u("span"),_=E(v),p=C(),A&&A.c(),b=C(),y=u("span"),T=E(w),S=C(),a(t,"class","activity-event-icon svelte-xaaokk"),a(o,"class","activity-event-title svelte-xaaokk"),a(m,"class","activity-event-type svelte-xaaokk"),a(y,"class","activity-event-time svelte-xaaokk"),a(e,"class","activity-event svelte-xaaokk")},m(M,j){g(M,e,j),f(e,t),f(t,i),f(e,s),f(e,o),f(o,c),f(e,k),f(e,m),f(m,_),f(e,p),A&&A.m(e,null),f(e,b),f(e,y),f(y,T),f(e,S)},p(M,j){j[0]&16&&n!==(n=je(M[181].eventType)+"")&&O(i,n),j[0]&16&&r!==(r=M[181].title+"")&&O(c,r),j[0]&16&&v!==(v=Ce(M[181].eventType)+"")&&O(_,v),M[181].targetType?A?A.p(M,j):(A=El(M),A.c(),A.m(e,b)):A&&(A.d(1),A=null),j[0]&16&&w!==(w=me(M[181].createdAt)+"")&&O(T,w)},d(M){M&&h(e),A&&A.d()}}}function ps(l){let e,t=te(l[13]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Al(tl(l,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=he()},m(i,s){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,s);g(i,e,s)},p(i,s){if(s[0]&8192){t=te(i[13]);let o;for(o=0;o<t.length;o+=1){const r=tl(i,t,o);n[o]?n[o].p(r,s):(n[o]=Al(r),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function ms(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Записей работы пока нет</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function Al(l){let e,t,n=l[165].summary+"",i,s,o,r=l[165].minutes+"",c,k,m=ve(l[165].createdAt)+"",v,_;return{c(){e=u("div"),t=u("div"),i=E(n),s=C(),o=u("div"),c=E(r),k=E(" мин · "),v=E(m),_=C(),a(t,"class","svelte-xaaokk"),a(o,"class","wl-meta svelte-xaaokk"),a(e,"class","worklog-entry svelte-xaaokk")},m(p,b){g(p,e,b),f(e,t),f(t,i),f(e,s),f(e,o),f(o,c),f(o,k),f(o,v),f(e,_)},p(p,b){b[0]&8192&&n!==(n=p[165].summary+"")&&O(i,n),b[0]&8192&&r!==(r=p[165].minutes+"")&&O(c,r),b[0]&8192&&m!==(m=ve(p[165].createdAt)+"")&&O(v,m)},d(p){p&&h(e)}}}function vs(l){let e,t=te(l[12]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Hl(ll(l,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=he()},m(i,s){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,s);g(i,e,s)},p(i,s){if(s[0]&4096){t=te(i[12]);let o;for(o=0;o<t.length;o+=1){const r=ll(i,t,o);n[o]?n[o].p(r,s):(n[o]=Hl(r),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function hs(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Действий пока нет</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function Hl(l){let e,t,n=l[176].title+"",i,s,o=l[176].type+"",r,c,k,m,v,_;function p(){return l[114](l[176])}return{c(){e=u("div"),t=u("span"),i=E(n),s=u("span"),r=E(o),c=C(),k=u("button"),k.textContent="Запустить",m=C(),a(t,"class","svelte-xaaokk"),a(s,"class","action-type svelte-xaaokk"),a(k,"class","btn btn-sm svelte-xaaokk"),a(e,"class","action-card svelte-xaaokk")},m(b,y){g(b,e,y),f(e,t),f(t,i),f(e,s),f(s,r),f(e,c),f(e,k),f(e,m),v||(_=H(k,"click",p),v=!0)},p(b,y){l=b,y[0]&4096&&n!==(n=l[176].title+"")&&O(i,n),y[0]&4096&&o!==(o=l[176].type+"")&&O(r,o)},d(b){b&&h(e),v=!1,_()}}}function jl(l){let e,t,n=l[33].items.length+"",i,s,o;return{c(){e=u("button"),t=E("Вставить "),i=E(n),a(e,"class","btn svelte-xaaokk")},m(r,c){g(r,e,c),f(e,t),f(e,i),s||(o=H(e,"click",l[57]),s=!0)},p(r,c){c[1]&4&&n!==(n=r[33].items.length+"")&&O(i,n)},d(r){r&&h(e),s=!1,o()}}}function bs(l){let e,t,n,i,s,o,r;const c=[ws,ys],k=[];function m(b,y){return b[27].length>0?0:1}e=m(l),t=k[e]=c[e](l);const v=[Ts,Cs],_=[];function p(b,y){return b[28].length===0?0:1}return i=p(l),s=_[i]=v[i](l),{c(){t.c(),n=C(),s.c(),o=he()},m(b,y){k[e].m(b,y),g(b,n,y),_[i].m(b,y),g(b,o,y),r=!0},p(b,y){let w=e;e=m(b),e===w?k[e].p(b,y):(ye(),re(k[w],1,1,()=>{k[w]=null}),we(),t=k[e],t?t.p(b,y):(t=k[e]=c[e](b),t.c()),ie(t,1),t.m(n.parentNode,n));let T=i;i=p(b),i===T?_[i].p(b,y):(ye(),re(_[T],1,1,()=>{_[T]=null}),we(),s=_[i],s?s.p(b,y):(s=_[i]=v[i](b),s.c()),ie(s,1),s.m(o.parentNode,o))},i(b){r||(ie(t),ie(s),r=!0)},o(b){re(t),re(s),r=!1},d(b){b&&(h(n),h(o)),k[e].d(b),_[i].d(b)}}}function gs(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Загрузка...</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,i:q,o:q,d(t){t&&h(e)}}}function ys(l){let e,t;return e=new pn({props:{crumbs:[{name:"Файлы"}]}}),{c(){Ie(e.$$.fragment)},m(n,i){Me(e,n,i),t=!0},p:q,i(n){t||(ie(e.$$.fragment,n),t=!0)},o(n){re(e.$$.fragment,n),t=!1},d(n){Le(e,n)}}}function ws(l){let e,t,n,i,s,o;return e=new pn({props:{crumbs:[{name:"Файлы"},...l[27]]}}),e.$on("navigate",l[100]),{c(){Ie(e.$$.fragment),t=C(),n=u("button"),n.innerHTML=`<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><line x1="19" y1="12" x2="5" y2="12" class="svelte-xaaokk"></line><polyline points="12 19 5 12 12 5" class="svelte-xaaokk"></polyline></svg>
Back`,a(n,"class","btn btn-sm back-btn svelte-xaaokk")},m(r,c){Me(e,r,c),g(r,t,c),g(r,n,c),i=!0,s||(o=H(n,"click",l[48]),s=!0)},p(r,c){const k={};c[0]&134217728&&(k.crumbs=[{name:"Файлы"},...r[27]]),e.$set(k)},i(r){i||(ie(e.$$.fragment,r),i=!0)},o(r){re(e.$$.fragment,r),i=!1},d(r){r&&(h(t),h(n)),Le(e,r),s=!1,o()}}}function Cs(l){let e,t=[],n=new Map,i,s=te(l[28]);const o=r=>r[173].id;for(let r=0;r<s.length;r+=1){let c=nl(l,s,r),k=o(c);n.set(k,t[r]=Bl(k,c))}return{c(){e=u("div");for(let r=0;r<t.length;r+=1)t[r].c();a(e,"class","file-list svelte-xaaokk")},m(r,c){g(r,e,c);for(let k=0;k<t.length;k+=1)t[k]&&t[k].m(e,null);i=!0},p(r,c){c[0]&268435456|c[1]&2076770312|c[2]&4194307&&(s=te(r[28]),ye(),t=Ui(t,c,o,1,r,s,n,e,Gi,Bl,null,nl),we())},i(r){if(!i){for(let c=0;c<s.length;c+=1)ie(t[c]);i=!0}},o(r){for(let c=0;c<t.length;c+=1)re(t[c]);i=!1},d(r){r&&h(e);for(let c=0;c<t.length;c+=1)t[c].d()}}}function Ts(l){let e,t,n,i,s=l[27].length>0?"В этой папке пока нет файлов":"В этом проекте пока нет файлов",o,r,c,k,m,v,_,p,b,y;return{c(){e=u("div"),t=u("div"),t.innerHTML='<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="svelte-xaaokk"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" class="svelte-xaaokk"></path><polyline points="14 2 14 8 20 8" class="svelte-xaaokk"></polyline></svg>',n=C(),i=u("p"),o=E(s),r=C(),c=u("p"),c.textContent="Добавьте файл или папку, чтобы сохранить материалы проекта.",k=C(),m=u("div"),v=u("button"),v.textContent="Добавить файл",_=C(),p=u("button"),p.textContent="Добавить папку",a(t,"class","empty-icon svelte-xaaokk"),a(i,"class","svelte-xaaokk"),a(c,"class","hint svelte-xaaokk"),a(v,"class","btn btn-primary svelte-xaaokk"),a(p,"class","btn svelte-xaaokk"),a(m,"class","empty-actions svelte-xaaokk"),a(e,"class","empty-state svelte-xaaokk")},m(w,T){g(w,e,T),f(e,t),f(e,n),f(e,i),f(i,o),f(e,r),f(e,c),f(e,k),f(e,m),f(m,v),f(m,_),f(m,p),b||(y=[H(v,"click",l[80]),H(p,"click",l[81])],b=!0)},p(w,T){T[0]&134217728&&s!==(s=w[27].length>0?"В этой папке пока нет файлов":"В этом проекте пока нет файлов")&&O(o,s)},i:q,o:q,d(w){w&&h(e),b=!1,se(y)}}}function Bl(l,e){let t,n,i;return n=new To({props:{item:e[173],selected:e[34].includes(e[173].id),onDragStart:e[61],onDragOver:e[62],onDrop:e[63]}}),n.$on("navigate",e[101]),n.$on("preview",e[102]),n.$on("openExternal",e[103]),n.$on("showInFolder",e[104]),n.$on("delete",e[105]),n.$on("rename",e[106]),n.$on("duplicate",e[107]),n.$on("cut",e[108]),n.$on("copy",e[109]),n.$on("selectOne",e[110]),n.$on("toggleSelect",e[111]),n.$on("rangeSelect",e[112]),{key:l,first:null,c(){t=he(),Ie(n.$$.fragment),this.first=t},m(s,o){g(s,t,o),Me(n,s,o),i=!0},p(s,o){e=s;const r={};o[0]&268435456&&(r.item=e[173]),o[0]&268435456|o[1]&8&&(r.selected=e[34].includes(e[173].id)),n.$set(r)},i(s){i||(ie(n.$$.fragment,s),i=!0)},o(s){re(n.$$.fragment,s),i=!1},d(s){s&&h(t),Le(n,s)}}}function Ol(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Сканирование...</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},d(t){t&&h(e)}}}function Pl(l){let e,t;return e=new Vo({props:{item:l[29],content:l[30],loading:l[31],error:l[32]}}),e.$on("close",l[51]),e.$on("openExternal",l[113]),{c(){Ie(e.$$.fragment)},m(n,i){Me(e,n,i),t=!0},p(n,i){const s={};i[0]&536870912&&(s.item=n[29]),i[0]&1073741824&&(s.content=n[30]),i[1]&1&&(s.loading=n[31]),i[1]&2&&(s.error=n[32]),e.$set(s)},i(n){t||(ie(e.$$.fragment,n),t=!0)},o(n){re(e.$$.fragment,n),t=!1},d(n){Le(e,n)}}}function zl(l){let e,t,n,i,s,o,r,c,k;return{c(){e=u("div"),t=u("input"),n=C(),i=u("div"),s=u("button"),s.textContent="Создать",o=C(),r=u("button"),r.textContent="Отмена",a(t,"type","text"),a(t,"placeholder","Название заметки"),a(t,"class","svelte-xaaokk"),a(s,"class","btn btn-primary svelte-xaaokk"),a(r,"class","btn svelte-xaaokk"),a(i,"class","form-actions svelte-xaaokk"),a(e,"class","create-form svelte-xaaokk")},m(m,v){g(m,e,v),f(e,t),_e(t,l[20]),f(e,n),f(e,i),f(i,s),f(i,o),f(i,r),c||(k=[H(t,"input",l[97]),H(t,"keydown",l[98]),H(s,"click",l[74]),H(r,"click",l[73])],c=!0)},p(m,v){v[0]&1048576&&t.value!==m[20]&&_e(t,m[20])},d(m){m&&h(e),c=!1,se(k)}}}function Ms(l){let e,t=te(l[10]),n=[];for(let i=0;i<t.length;i+=1)n[i]=Vl(il(l,t,i));return{c(){e=u("div");for(let i=0;i<n.length;i+=1)n[i].c();a(e,"class","notes-list svelte-xaaokk")},m(i,s){g(i,e,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null)},p(i,s){if(s[0]&1024|s[2]&8192){t=te(i[10]);let o;for(o=0;o<t.length;o+=1){const r=il(i,t,o);n[o]?n[o].p(r,s):(n[o]=Vl(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(i){i&&h(e),ue(n,i)}}}function Ls(l){let e;return{c(){e=u("div"),e.innerHTML='<p class="svelte-xaaokk">Нет заметок</p><p class="hint svelte-xaaokk">Создайте первую заметку для этого дела.</p>',a(e,"class","empty-state svelte-xaaokk")},m(t,n){g(t,e,n)},p:q,d(t){t&&h(e)}}}function Vl(l){let e,t,n=l[168].title+"",i,s,o,r=ve(l[168].createdAt)+"",c,k,m,v;function _(){return l[99](l[168])}return{c(){e=u("div"),t=u("div"),i=E(n),s=C(),o=u("div"),c=E(r),k=C(),a(t,"class","note-card-title svelte-xaaokk"),a(o,"class","note-card-date svelte-xaaokk"),a(e,"class","note-card svelte-xaaokk")},m(p,b){g(p,e,b),f(e,t),f(t,i),f(e,s),f(e,o),f(o,c),f(e,k),m||(v=H(e,"click",_),m=!0)},p(p,b){l=p,b[0]&1024&&n!==(n=l[168].title+"")&&O(i,n),b[0]&1024&&r!==(r=ve(l[168].createdAt)+"")&&O(c,r)},d(p){p&&h(e),m=!1,v()}}}function Rl(l){let e,t,n,i=te(l[10].slice(0,5)),s=[];for(let o=0;o<i.length;o+=1)s[o]=Wl(sl(l,i,o));return{c(){e=u("div"),t=u("h3"),t.textContent="Последние заметки",n=C();for(let o=0;o<s.length;o+=1)s[o].c();a(t,"class","svelte-xaaokk"),a(e,"class","recent-section svelte-xaaokk")},m(o,r){g(o,e,r),f(e,t),f(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null)},p(o,r){if(r[0]&1024|r[2]&8192){i=te(o[10].slice(0,5));let c;for(c=0;c<i.length;c+=1){const k=sl(o,i,c);s[c]?s[c].p(k,r):(s[c]=Wl(k),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=i.length}},d(o){o&&h(e),ue(s,o)}}}function Wl(l){let e,t,n=l[168].title+"",i,s,o=ve(l[168].createdAt)+"",r,c,k,m;function v(){return l[96](l[168])}return{c(){e=u("div"),t=u("span"),i=E(n),s=u("span"),r=E(o),c=C(),a(t,"class","svelte-xaaokk"),a(s,"class","recent-date svelte-xaaokk"),a(e,"class","recent-note svelte-xaaokk")},m(_,p){g(_,e,p),f(e,t),f(t,i),f(e,s),f(s,r),f(e,c),k||(m=H(e,"click",v),k=!0)},p(_,p){l=_,p[0]&1024&&n!==(n=l[168].title+"")&&O(i,n),p[0]&1024&&o!==(o=ve(l[168].createdAt)+"")&&O(r,o)},d(_){_&&h(e),k=!1,m()}}}function Kl(l){let e,t,n,i=te(l[13].slice(0,3)),s=[];for(let o=0;o<i.length;o+=1)s[o]=xl(ol(l,i,o));return{c(){e=u("div"),t=u("h3"),t.textContent="Последние записи",n=C();for(let o=0;o<s.length;o+=1)s[o].c();a(t,"class","svelte-xaaokk"),a(e,"class","recent-section svelte-xaaokk")},m(o,r){g(o,e,r),f(e,t),f(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null)},p(o,r){if(r[0]&8192){i=te(o[13].slice(0,3));let c;for(c=0;c<i.length;c+=1){const k=ol(o,i,c);s[c]?s[c].p(k,r):(s[c]=xl(k),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=i.length}},d(o){o&&h(e),ue(s,o)}}}function xl(l){let e,t=l[165].summary+"",n,i,s=l[165].minutes+"",o,r;return{c(){e=u("div"),n=E(t),i=E(" ("),o=E(s),r=E(" мин)"),a(e,"class","recent-entry svelte-xaaokk")},m(c,k){g(c,e,k),f(e,n),f(e,i),f(e,o),f(e,r)},p(c,k){k[0]&8192&&t!==(t=c[165].summary+"")&&O(n,t),k[0]&8192&&s!==(s=c[165].minutes+"")&&O(o,s)},d(c){c&&h(e)}}}function ql(l){let e;return{c(){e=u("span"),e.textContent="●",a(e,"class","dirty-mark svelte-xaaokk")},m(t,n){g(t,e,n)},d(t){t&&h(e)}}}function Gl(l){let e,t,n;return{c(){e=u("div"),e.textContent="+",a(e,"class","fab svelte-xaaokk"),a(e,"title","Добавить дело")},m(i,s){g(i,e,s),t||(n=H(e,"click",l[69]),t=!0)},p:q,d(i){i&&h(e),t=!1,n()}}}function Ul(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T,S,A,M,j=te(l[0].filter(tn)),B=[];for(let I=0;I<j.length;I+=1)B[I]=Jl(Xt(l,j,I));return{c(){e=u("div"),t=u("div"),n=u("h3"),n.textContent="Новое дело",i=C(),s=u("div"),o=u("label"),o.textContent="Название",r=C(),c=u("input"),k=C(),m=u("div"),v=u("label"),v.textContent="Раздел",_=C(),p=u("select");for(let I=0;I<B.length;I+=1)B[I].c();b=C(),y=u("div"),w=u("button"),w.textContent="Создать",T=C(),S=u("button"),S.textContent="Отмена",a(n,"class","svelte-xaaokk"),a(o,"class","svelte-xaaokk"),a(c,"type","text"),a(c,"placeholder","Название дела"),c.autofocus=!0,a(c,"class","svelte-xaaokk"),a(s,"class","form-group svelte-xaaokk"),a(v,"class","svelte-xaaokk"),a(p,"class","svelte-xaaokk"),l[18]===void 0&&Qe(()=>l[127].call(p)),a(m,"class","form-group svelte-xaaokk"),a(w,"class","btn btn-primary svelte-xaaokk"),a(S,"class","btn svelte-xaaokk"),a(y,"class","modal-actions svelte-xaaokk"),a(t,"class","modal svelte-xaaokk"),a(e,"class","modal-overlay svelte-xaaokk")},m(I,F){g(I,e,F),f(e,t),f(t,n),f(t,i),f(t,s),f(s,o),f(s,r),f(s,c),_e(c,l[17]),f(t,k),f(t,m),f(m,v),f(m,_),f(m,p);for(let L=0;L<B.length;L+=1)B[L]&&B[L].m(p,null);Rt(p,l[18],!0),f(t,b),f(t,y),f(y,w),f(y,T),f(y,S),c.focus(),A||(M=[H(c,"input",l[125]),H(c,"keydown",l[126]),H(p,"change",l[127]),H(w,"click",l[71]),H(S,"click",l[70]),H(e,"click",Ke(l[70]))],A=!0)},p(I,F){if(F[0]&131072&&c.value!==I[17]&&_e(c,I[17]),F[0]&1){j=te(I[0].filter(tn));let L;for(L=0;L<j.length;L+=1){const N=Xt(I,j,L);B[L]?B[L].p(N,F):(B[L]=Jl(N),B[L].c(),B[L].m(p,null))}for(;L<B.length;L+=1)B[L].d(1);B.length=j.length}F[0]&262145&&Rt(p,I[18])},d(I){I&&h(e),ue(B,I),A=!1,se(M)}}}function Jl(l){let e,t=l[162].label+"",n,i;return{c(){e=u("option"),n=E(t),e.__value=i=l[162].id,_e(e,e.__value),a(e,"class","svelte-xaaokk")},m(s,o){g(s,e,o),f(e,n)},p(s,o){o[0]&1&&t!==(t=s[162].label+"")&&O(n,t),o[0]&1&&i!==(i=s[162].id)&&(e.__value=i,_e(e,e.__value))},d(s){s&&h(e)}}}function Xl(l){let e,t,n,i,s=(l[8]?l[8].title:"")+"",o,r,c,k,m,v,_,p=l[23].files+"",b,y,w,T,S,A=l[23].folders+"",M,j,B,I,F,L=(l[23].totalBytes/1024).toFixed(1)+"",N,X,ee,Z,V,le,P,K,W,R,$,ne,G=l[23].isDangerous&&Zl(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),i=E("Добавить в «"),o=E(s),r=E("»"),c=C(),k=u("div"),m=u("div"),v=u("span"),v.textContent="Файлов:",_=u("span"),b=E(p),y=C(),w=u("div"),T=u("span"),T.textContent="Папок:",S=u("span"),M=E(A),j=C(),B=u("div"),I=u("span"),I.textContent="Размер:",F=u("span"),N=E(L),X=E(" KB"),ee=C(),G&&G.c(),Z=C(),V=u("div"),le=u("button"),le.textContent="Скопировать",P=C(),K=u("button"),K.textContent="Привязать",W=C(),R=u("button"),R.textContent="Отмена",a(n,"class","svelte-xaaokk"),a(v,"class","svelte-xaaokk"),a(_,"class","svelte-xaaokk"),a(m,"class","summary-row svelte-xaaokk"),a(T,"class","svelte-xaaokk"),a(S,"class","svelte-xaaokk"),a(w,"class","summary-row svelte-xaaokk"),a(I,"class","svelte-xaaokk"),a(F,"class","svelte-xaaokk"),a(B,"class","summary-row svelte-xaaokk"),a(k,"class","import-summary svelte-xaaokk"),a(le,"class","btn btn-primary svelte-xaaokk"),a(K,"class","btn svelte-xaaokk"),a(R,"class","btn svelte-xaaokk"),a(V,"class","modal-actions svelte-xaaokk"),a(t,"class","modal svelte-xaaokk"),a(e,"class","modal-overlay svelte-xaaokk")},m(U,Y){g(U,e,Y),f(e,t),f(t,n),f(n,i),f(n,o),f(n,r),f(t,c),f(t,k),f(k,m),f(m,v),f(m,_),f(_,b),f(k,y),f(k,w),f(w,T),f(w,S),f(S,M),f(k,j),f(k,B),f(B,I),f(B,F),f(F,N),f(F,X),f(k,ee),G&&G.m(k,null),f(t,Z),f(t,V),f(V,le),f(V,P),f(V,K),f(V,W),f(V,R),$||(ne=[H(le,"click",l[128]),H(K,"click",l[129]),H(R,"click",l[83]),H(e,"click",Ke(l[83]))],$=!0)},p(U,Y){Y[0]&256&&s!==(s=(U[8]?U[8].title:"")+"")&&O(o,s),Y[0]&8388608&&p!==(p=U[23].files+"")&&O(b,p),Y[0]&8388608&&A!==(A=U[23].folders+"")&&O(M,A),Y[0]&8388608&&L!==(L=(U[23].totalBytes/1024).toFixed(1)+"")&&O(N,L),U[23].isDangerous?G?G.p(U,Y):(G=Zl(U),G.c(),G.m(k,null)):G&&(G.d(1),G=null)},d(U){U&&h(e),G&&G.d(),$=!1,se(ne)}}}function Zl(l){let e,t,n,i,s,o,r=l[23].dangerReason+"",c;return{c(){e=u("div"),t=x("svg"),n=x("path"),i=x("line"),s=x("line"),o=C(),c=E(r),a(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),a(n,"class","svelte-xaaokk"),a(i,"x1","12"),a(i,"y1","9"),a(i,"x2","12"),a(i,"y2","13"),a(i,"class","svelte-xaaokk"),a(s,"x1","12"),a(s,"y1","17"),a(s,"x2","12.01"),a(s,"y2","17"),a(s,"class","svelte-xaaokk"),a(t,"width","14"),a(t,"height","14"),a(t,"viewBox","0 0 24 24"),a(t,"fill","none"),a(t,"stroke","currentColor"),a(t,"stroke-width","2"),a(t,"stroke-linecap","round"),a(t,"stroke-linejoin","round"),a(t,"class","svelte-xaaokk"),a(e,"class","summary-warn svelte-xaaokk")},m(k,m){g(k,e,m),f(e,t),f(t,n),f(t,i),f(t,s),f(e,o),f(e,c)},p(k,m){m[0]&8388608&&r!==(r=k[23].dangerReason+"")&&O(c,r)},d(k){k&&h(e)}}}function Yl(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T=l[42]&&Ql(l);return{c(){e=u("div"),t=u("div"),n=u("h3"),n.textContent="Переименовать",i=C(),s=u("div"),o=u("label"),o.textContent="Новое имя",r=C(),c=u("input"),k=C(),T&&T.c(),m=C(),v=u("div"),_=u("button"),_.textContent="Переименовать",p=C(),b=u("button"),b.textContent="Отмена",a(n,"class","svelte-xaaokk"),a(o,"class","svelte-xaaokk"),a(c,"type","text"),a(c,"class","svelte-xaaokk"),a(s,"class","form-group svelte-xaaokk"),a(_,"class","btn btn-primary svelte-xaaokk"),a(b,"class","btn svelte-xaaokk"),a(v,"class","modal-actions svelte-xaaokk"),a(t,"class","modal svelte-xaaokk"),a(e,"class","modal-overlay svelte-xaaokk")},m(S,A){g(S,e,A),f(e,t),f(t,n),f(t,i),f(t,s),f(s,o),f(s,r),f(s,c),_e(c,l[41]),f(t,k),T&&T.m(t,null),f(t,m),f(t,v),f(v,_),f(v,p),f(v,b),y||(w=[H(c,"input",l[130]),H(c,"keydown",l[66]),H(_,"click",l[64]),H(b,"click",l[65]),H(e,"click",Ke(l[65]))],y=!0)},p(S,A){A[1]&1024&&c.value!==S[41]&&_e(c,S[41]),S[42]?T?T.p(S,A):(T=Ql(S),T.c(),T.m(t,m)):T&&(T.d(1),T=null)},d(S){S&&h(e),T&&T.d(),y=!1,se(w)}}}function Ql(l){let e,t;return{c(){e=u("div"),t=E(l[42]),a(e,"class","rename-error svelte-xaaokk")},m(n,i){g(n,e,i),f(e,t)},p(n,i){i[1]&2048&&O(t,n[42])},d(n){n&&h(e)}}}function $l(l){let e,t;return e=new Ko({props:{title:l[36],message:l[37],confirmText:l[39],danger:l[38]}}),e.$on("confirm",l[67]),e.$on("cancel",l[68]),{c(){Ie(e.$$.fragment)},m(n,i){Me(e,n,i),t=!0},p(n,i){const s={};i[1]&32&&(s.title=n[36]),i[1]&64&&(s.message=n[37]),i[1]&256&&(s.confirmText=n[39]),i[1]&128&&(s.danger=n[38]),e.$set(s)},i(n){t||(ie(e.$$.fragment,n),t=!0)},o(n){re(e.$$.fragment,n),t=!1},d(n){Le(e,n)}}}function Ss(l){let e,t,n,i,s,o,r,c,k,m,v,_,p,b,y,w,T,S,A,M,j,B,I,F,L,N,X,ee=te(l[0]),Z=[];for(let z=0;z<ee.length;z+=1)Z[z]=ul(fl(l,ee,z));let V=l[7]&&l[7]!=="today"&&l[7]!=="inbox"&&l[7]!=="activity"&&dl(l);function le(z,ce){return z[8]?Go:z[7]?qo:xo}let P=le(l),K=P(l),W=l[6]&&vl(l);const R=[Yo,Zo,Xo,Jo,Uo],$=[];function ne(z,ce){return z[11]?0:z[8]?1:z[7]==="today"&&z[2]?2:z[7]==="activity"?3:4}M=ne(l),j=$[M]=R[M](l);let G=!l[11]&&!l[8]&&l[7]!=="today"&&l[7]!=="inbox"&&l[7]!=="activity"&&Gl(l),U=l[16]&&Ul(l),Y=l[24]&&l[23]&&Xl(l),J=l[40]&&Yl(l),ae=l[35]&&$l(l);return{c(){e=u("div"),t=u("aside"),n=u("div"),n.innerHTML='<span class="logo svelte-xaaokk">⚒</span> <span class="brand-name svelte-xaaokk">Верстак</span>',i=C(),s=u("nav"),o=u("div"),r=u("div"),r.textContent="Разделы",c=C();for(let z=0;z<Z.length;z+=1)Z[z].c();k=C(),V&&V.c(),m=C(),v=u("div"),_=u("span"),p=E(l[5]),b=C(),y=u("main"),w=u("header"),T=u("div"),K.c(),S=C(),W&&W.c(),A=C(),j.c(),B=C(),G&&G.c(),I=C(),U&&U.c(),F=C(),Y&&Y.c(),L=C(),J&&J.c(),N=C(),ae&&ae.c(),a(n,"class","sidebar-brand svelte-xaaokk"),a(r,"class","nav-label svelte-xaaokk"),a(o,"class","nav-group svelte-xaaokk"),a(s,"class","sidebar-nav svelte-xaaokk"),a(_,"class","version svelte-xaaokk"),a(v,"class","sidebar-footer svelte-xaaokk"),a(t,"class","sidebar svelte-xaaokk"),a(T,"class","header-left svelte-xaaokk"),a(w,"class","header svelte-xaaokk"),a(y,"class","main svelte-xaaokk"),a(e,"class","app svelte-xaaokk")},m(z,ce){g(z,e,ce),f(e,t),f(t,n),f(t,i),f(t,s),f(s,o),f(o,r),f(o,c);for(let pe=0;pe<Z.length;pe+=1)Z[pe]&&Z[pe].m(o,null);f(s,k),V&&V.m(s,null),f(t,m),f(t,v),f(v,_),f(_,p),f(e,b),f(e,y),f(y,w),f(w,T),K.m(T,null),f(y,S),W&&W.m(y,null),f(y,A),$[M].m(y,null),f(y,B),G&&G.m(y,null),f(y,I),U&&U.m(y,null),f(y,F),Y&&Y.m(y,null),f(y,L),J&&J.m(y,null),f(y,N),ae&&ae.m(y,null),X=!0},p(z,ce){if(ce[0]&129|ce[1]&8192){ee=te(z[0]);let de;for(de=0;de<ee.length;de+=1){const ze=fl(z,ee,de);Z[de]?Z[de].p(ze,ce):(Z[de]=ul(ze),Z[de].c(),Z[de].m(o,null))}for(;de<Z.length;de+=1)Z[de].d(1);Z.length=ee.length}z[7]&&z[7]!=="today"&&z[7]!=="inbox"&&z[7]!=="activity"?V?V.p(z,ce):(V=dl(z),V.c(),V.m(s,null)):V&&(V.d(1),V=null),(!X||ce[0]&32)&&O(p,z[5]),P===(P=le(z))&&K?K.p(z,ce):(K.d(1),K=P(z),K&&(K.c(),K.m(T,null))),z[6]?W?W.p(z,ce):(W=vl(z),W.c(),W.m(y,A)):W&&(W.d(1),W=null);let pe=M;M=ne(z),M===pe?$[M].p(z,ce):(ye(),re($[pe],1,1,()=>{$[pe]=null}),we(),j=$[M],j?j.p(z,ce):(j=$[M]=R[M](z),j.c()),ie(j,1),j.m(y,B)),!z[11]&&!z[8]&&z[7]!=="today"&&z[7]!=="inbox"&&z[7]!=="activity"?G?G.p(z,ce):(G=Gl(z),G.c(),G.m(y,I)):G&&(G.d(1),G=null),z[16]?U?U.p(z,ce):(U=Ul(z),U.c(),U.m(y,F)):U&&(U.d(1),U=null),z[24]&&z[23]?Y?Y.p(z,ce):(Y=Xl(z),Y.c(),Y.m(y,L)):Y&&(Y.d(1),Y=null),z[40]?J?J.p(z,ce):(J=Yl(z),J.c(),J.m(y,N)):J&&(J.d(1),J=null),z[35]?ae?(ae.p(z,ce),ce[1]&16&&ie(ae,1)):(ae=$l(z),ae.c(),ie(ae,1),ae.m(y,null)):ae&&(ye(),re(ae,1,1,()=>{ae=null}),we())},i(z){X||(ie(j),ie(ae),X=!0)},o(z){re(j),re(ae),X=!1},d(z){z&&h(e),ue(Z,z),V&&V.d(),K.d(),W&&W.d(),$[M].d(),G&&G.d(),U&&U.d(),Y&&Y.d(),J&&J.d(),ae&&ae.d()}}}function Q(l,...e){try{if(window.go&&window.go.main&&window.go.main.App){const t=window.go.main.App[l];if(typeof t=="function")return t(...e)}}catch(t){console.error("Wails call error:",l,t)}return Promise.reject(new Error("Wails not connected: "+l))}function Ce(l){return{note_created:"Заметка создана",note_updated:"Заметка изменена",file_added:"Файл добавлен",file_deleted:"Файл удалён",file_renamed:"Файл переименован",file_copied:"Файл скопирован",file_moved:"Файл перемещён",folder_added:"Папка добавлена",folder_deleted:"Папка удалена",folder_renamed:"Папка переименована",node_created:"Дело создано",node_updated:"Дело изменено"}[l]||l}function je(l){return l==="note_created"||l==="file_added"||l==="folder_added"||l==="node_created"?"+":l==="file_deleted"||l==="folder_deleted"?"×":l==="file_renamed"||l==="folder_renamed"||l==="note_updated"||l==="node_updated"?"~":l==="file_copied"?"⧉":l==="file_moved"?"→":"•"}function me(l){if(!l)return"";try{return new Date(l).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"})}catch{return""}}function ve(l){if(!l)return"";try{return new Date(l).toLocaleDateString("ru-RU",{day:"numeric",month:"short"})}catch{return l}}function en(l){return{project:"Проект",client:"Клиент",document:"Документ",recipe:"Рецепт",archive:"Архив",case:"Дело"}[l]||l||"Дело"}function Te(l,e,t,n){return l=Math.abs(l)%100,l>=5&&l<=20?n:(l%=10,l===1?e:l>=2&&l<=4?t:n)}const tn=l=>l.id!=="today"&&l.id!=="inbox"&&l.id!=="activity";function Ds(l,e,t){let n=[],i=[],s=null,o=[],r=0,c=!0,k=[],m="",v="",_="",p=null,b="overview",y=[],w=null,T=[],S=[],A=[],M="",j="",B=!1,I="",F="clients",L=!1,N="",X=!0,ee=!1,Z=null,V=!1,le="",P=!1,K=null,W=[],R=[],$=null,ne="",G=!1,U="",Y={items:[],mode:"copy"},J=[],ae=[],z=!1,ce="",pe="",de=!1,ze="Удалить",xe=null,qe=null,Ge=!1,Ue="",Ne="",Ee="";const mn=[{id:"overview",label:"Обзор"},{id:"notes",label:"Заметки"},{id:"files",label:"Файлы"},{id:"actions",label:"Действия"},{id:"worklog",label:"Журнал"},{id:"activity",label:"Активность"}];let tt=null;sn(async()=>{try{t(5,m=await Q("VerstakVersion")||"verstak-gui/v2"),t(0,n=await Q("ListSections")||[])}catch(d){t(6,v=String(d)),t(0,n=[{id:"today",label:"Сегодня"},{id:"inbox",label:"Неразобранное"},{id:"activity",label:"Активность"},{id:"clients",label:"Клиенты"},{id:"projects",label:"Проекты"},{id:"recipes",label:"Рецепты"},{id:"documents",label:"Документы"},{id:"archive",label:"Архив"}])}window.runtime&&window.runtime.EventsOn&&(window.runtime.EventsOn("files-dropped",Rn),tt=()=>window.runtime.EventsOff("files-dropped")),window.addEventListener("keydown",Dt),t(21,X=!1)}),an(()=>{tt&&tt(),window.removeEventListener("keydown",Dt)});async function lt(d){t(7,_=d),t(8,p=null),t(9,b="overview"),t(10,y=[]),T=[],t(12,S=[]),t(13,A=[]),t(16,B=!1),t(6,v=""),t(2,s=null),t(3,o=[]),r=0,c=!0,t(1,i=[]);try{d==="today"?t(2,s=await Q("ListTodayView")||{cases:[]}):d==="activity"?(t(3,o=await Q("ListActivityFeed",50,0)||[]),r=o.length,c=o.length===50):t(1,i=await Q("ListNodesBySection",d)||[])}catch(D){t(6,v=String(D)),t(1,i=[]),t(2,s={cases:[]}),t(3,o=[])}}async function nt(d){t(8,p=d),t(9,b="overview"),t(10,y=[]),T=[],t(12,S=[]),t(13,A=[]),t(28,R=[]),t(27,W=[]),t(26,K=null),t(29,$=null),t(30,ne=""),t(34,J=[]),ae=[],t(11,w=null),t(16,B=!1),t(19,L=!1),t(6,v=""),t(4,k=[]),await vt(d.id)}async function vt(d){try{t(10,y=await Q("ListNotes",d)||[])}catch{}try{T=await Q("ListFiles",d)||[]}catch{}try{t(12,S=await Q("ListActions",d)||[])}catch{}try{t(13,A=await Q("ListWorklog",d)||[])}catch{}try{t(4,k=await Q("ListActivityByNode",d,50,0)||[])}catch{}}async function ke(d){t(25,P=!0);try{let D=await Q("ListItems",d)||[];D.sort((oe,fe)=>oe.type!==fe.type?oe.type==="folder"?-1:1:(oe.name||"").localeCompare(fe.name||"")),t(28,R=D)}catch{t(28,R=[])}t(25,P=!1)}async function it(d){if(p){try{const D=await Q("GetNodeDetail",d);D&&t(27,W=[...W,{id:d,name:D.title}])}catch{t(27,W=[...W,{id:d,name:"..."}])}t(26,K=d),await ke(d)}}function ht(){if(W.length<2)t(27,W=[]),t(26,K=null),ke(p.id);else{const d=W[W.length-2];t(27,W=W.slice(0,-1)),t(26,K=d.id),ke(d.id)}}function bt(d){const D=W[d];t(27,W=W.slice(0,d+1)),t(26,K=D.id),ke(D.id)}async function ot(d){t(29,$=d),t(30,ne=""),t(32,U=""),t(31,G=!0);try{mo(d)?t(30,ne=await Q("GetFileBase64",d.fileId)||""):vo(d)&&t(30,ne=await Q("ReadFileText",d.fileId)||"")}catch(D){t(32,U=String(D))}t(31,G=!1)}function st(){t(29,$=null),t(30,ne=""),t(32,U="")}async function vn(){const d=prompt("Введите имя файла:");if(!(!d||!d.trim()))try{const D=K||p.id;await Q("CreateEmptyFile",D,d.trim()),await ke(D)}catch(D){t(6,v=String(D))}}async function gt(d){try{await Q("DuplicateNode",d);const D=K||p.id;await ke(D)}catch(D){t(6,v=String(D))}}function yt(d){const D=R.find(oe=>oe.id===d);D&&Nt(D.id,D.name)}function wt(d){t(33,Y={items:[d],mode:"cut"})}function Ct(d){t(33,Y={items:[d],mode:"copy"})}async function Tt(){if(Y.items.length===0)return;const d=K||p.id;try{if(Y.mode==="copy")for(const D of Y.items)await Q("DuplicateNode",D);else for(const D of Y.items)await Q("MoveNode",D,d);t(33,Y={items:[],mode:"copy"}),await ke(d)}catch(D){t(6,v=String(D))}}function Mt(d){J.includes(d)?t(34,J=J.filter(D=>D!==d)):t(34,J=[...J,d])}function Lt(d){t(34,J=[d])}function hn(){t(34,J=R.map(d=>d.id))}function St(d){if(R.length===0)return;const D=J.length>0?J[J.length-1]:R[0].id,oe=R.findIndex(Se=>Se.id===D),fe=R.findIndex(Se=>Se.id===d);if(oe===-1||fe===-1)return;const Ve=Math.min(oe,fe),ut=Math.max(oe,fe),Ai=R.slice(Ve,ut+1).map(Se=>Se.id),zt=new Set(J);Ai.forEach(Se=>zt.add(Se)),t(34,J=[...zt])}function bn(){t(34,J=[])}function at(d){return d.length>0?d:R.map(D=>D.id)}async function gn(){var oe;const d=at(J),D=d.length===1&&((oe=R.find(fe=>fe.id===d[0]))==null?void 0:oe.type)==="folder"?"папку":`файлов (${d.length})`;Je({title:"Удаление",message:`Удалить ${D}?`,confirmText:"Удалить",danger:!0,onConfirm:async()=>{for(const Ve of d)try{await Q("DeleteFileOrFolder",Ve)}catch(ut){t(6,v=String(ut))}t(34,J=[]);const fe=K||p.id;await ke(fe)}})}function yn(){const d=at(J);t(33,Y={items:d,mode:"cut"}),t(34,J=[])}function wn(){const d=at(J);t(33,Y={items:d,mode:"copy"}),t(34,J=[])}function Cn(d,D){const oe=J.includes(D)?J:[D];ae=oe,d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",oe.join(","))}function Tn(d,D){const oe=R.find(fe=>fe.id===D);oe&&oe.type==="folder"&&(d.preventDefault(),d.dataTransfer.dropEffect="move")}async function Mn(d,D){if(d.preventDefault(),ae.length!==0){for(const oe of ae)try{await Q("MoveNode",oe,D)}catch(fe){t(6,v=String(fe))}ae=[],t(34,J=[]),await ke(K||p.id)}}function Dt(d){if(b==="files"&&!(d.target.tagName==="INPUT"||d.target.tagName==="TEXTAREA"))if(d.ctrlKey||d.metaKey)d.key==="c"||d.key==="C"?(d.preventDefault(),wn()):d.key==="x"||d.key==="X"?(d.preventDefault(),yn()):d.key==="v"||d.key==="V"?(d.preventDefault(),Tt()):d.key==="a"||d.key==="A"?(d.preventDefault(),hn()):d.key==="o"||d.key==="O"?(d.preventDefault(),Ln()):d.key==="Enter"&&(d.preventDefault(),It());else if(d.key==="Enter")d.preventDefault(),It();else if(d.key==="Delete"||d.key==="Backspace"){if($){d.preventDefault(),st();return}if(J.length>0){d.preventDefault(),gn();return}if(d.key==="Backspace"&&W.length>0){d.preventDefault(),ht();return}}else if(d.key==="Escape"){if($){st();return}if(J.length>0){bn();return}}else d.key==="F2"&&(d.preventDefault(),Sn())}function It(){if(J.length===1){const d=R.find(D=>D.id===J[0]);d&&(d.type==="folder"?it(d.id):ot(d))}}function Ln(){if(J.length===1){const d=R.find(D=>D.id===J[0]);d&&d.fileId&&Q("OpenFile",d.fileId)}}function Nt(d,D){Ue=d,t(41,Ne=D),t(42,Ee=""),t(40,Ge=!0)}function Sn(){if(J.length===1){const d=R.find(D=>D.id===J[0]);d&&Nt(d.id,d.name)}}async function Et(){const d=Ne.trim();if(!d){t(42,Ee="Имя не может быть пустым");return}try{await Q("ValidateName",d)}catch{t(42,Ee="Недопустимое имя");return}t(40,Ge=!1),Ue="";try{await Q("RenameNode",Ue,d);const D=K||p.id;await ke(D)}catch(D){t(6,v=String(D))}}function Dn(){t(40,Ge=!1),Ue="",t(41,Ne=""),t(42,Ee="")}function In(d){d.key==="Enter"?Et():t(42,Ee="")}function Je(d){t(36,ce=d.title||"Подтверждение"),t(37,pe=d.message||""),t(38,de=d.danger!==void 0?d.danger:!0),t(39,ze=d.confirmText||"Удалить"),xe=d.onConfirm||null,qe=d.onCancel||null,t(35,z=!0)}function Ft(){t(35,z=!1),xe=null,qe=null}function Nn(){xe&&xe(),Ft()}function En(){qe&&qe(),Ft()}function Fn(){t(16,B=!0),t(17,I=""),t(18,F=_||"clients")}function An(){t(16,B=!1),t(17,I="")}async function At(){if(I.trim())try{const d=await Q("CreateNode","","case",I.trim(),F);t(16,B=!1),t(17,I=""),await lt(F)}catch(d){t(6,v=String(d))}}function Ht(){t(19,L=!0),t(20,N="")}function Hn(){t(19,L=!1),t(20,N="")}async function jt(){if(!(!N.trim()||!p))try{const d=await Q("CreateNote",p.id,N.trim());t(10,y=[...y,d&&d.id?d:{id:Date.now().toString(),title:N.trim(),createdAt:new Date().toISOString()}]),t(19,L=!1),t(20,N="")}catch{const D={id:Date.now().toString(),title:N.trim(),createdAt:new Date().toISOString()};t(10,y=[...y,D]),t(19,L=!1),t(20,N="")}}async function rt(d){if(w&&w.dirty){Je({title:"Несохранённые изменения",message:"Закрыть редактор? Все несохранённые изменения будут потеряны.",confirmText:"Закрыть",danger:!1,onConfirm:async()=>{await Bt(d)}});return}await Bt(d)}async function Bt(d){try{const D=await Q("ReadNote",d.id);t(11,w={id:d.id,title:d.title,content:D||"",dirty:!1})}catch{t(11,w={id:d.id,title:d.title,content:"# "+d.title+`
`,dirty:!1})}}function jn(){if(w&&w.dirty){Je({title:"Несохранённые изменения",message:"Закрыть редактор? Все несохранённые изменения будут потеряны.",confirmText:"Закрыть",danger:!1,onConfirm:()=>{t(11,w=null)}});return}t(11,w=null)}function Bn(d){w&&(t(11,w.content=d.target.value,w),t(11,w.dirty=!0,w))}async function On(){if(w)try{await Q("SaveNote",w.id,w.content),t(11,w.dirty=!1,w)}catch{t(11,w.dirty=!1,w)}}async function Pn(){const d=parseInt(M,10);if(!(!j.trim()||isNaN(d)||d<=0||!p)){try{const D=await Q("CreateWorklog",p.id,j.trim(),d);t(13,A=[...A,D&&D.id?D:{id:Date.now().toString(),nodeId:p.id,summary:j.trim(),minutes:d,createdAt:new Date().toISOString()}])}catch{t(13,A=[...A,{id:Date.now().toString(),nodeId:p.id,summary:j.trim(),minutes:d,createdAt:new Date().toISOString()}])}t(15,j=""),t(14,M="")}}async function Ot(){const d=await Q("PickFile");d&&await ct(p.id,d)}async function zn(){const d=await Q("PickDirectory");d&&await ct(p.id,d)}async function ct(d,D){t(22,ee=!0);try{const oe=await Q("PreviewImport",D);t(23,Z=oe),le=D,t(24,V=!0)}catch(oe){t(6,v=String(oe))}t(22,ee=!1)}async function ft(d){try{const D=d==="copy"?await Q("AddPathCopy",p.id,le):await Q("AddPathLink",p.id,le);t(24,V=!1),t(23,Z=null),t(27,W=[]),t(26,K=null),await Promise.all([vt(p.id),ke(p.id)])}catch(D){t(6,v=String(D))}}function Vn(){t(24,V=!1),t(23,Z=null)}async function Pt({id:d,type:D}){Je({title:"Удаление",message:`Удалить ${D==="folder"?"папку":"файл"}?`,confirmText:"Удалить",danger:!0,onConfirm:async()=>{try{await Q("DeleteFileOrFolder",d),T=T.filter(Ve=>Ve.nodeId!==d);const fe=K||p.id;await ke(fe)}catch(fe){t(6,v=String(fe))}}})}async function Rn(d){if(!d||d.length===0)return;if(!p){t(6,v="Сначала выберите дело для добавления файлов");return}const D=d[0];await ct(p.id,D)}function Wn(d){return b===d?"tab active":"tab"}async function be(d){try{const D=await Q("GetNodeDetail",d);D&&nt(D)}catch(D){t(6,v=String(D))}}const Kn=d=>lt(d.id),xn=d=>nt(d),qn=()=>t(6,v=""),Gn=()=>t(6,v="");function Un(){w.content=this.value,t(11,w)}const Jn=d=>{t(9,b=d.id),d.id==="files"&&p&&R.length===0&&!K&&ke(p.id)},Xn=()=>{t(9,b="notes"),Ht()},Zn=()=>{t(9,b="files"),Ot()},Yn=()=>t(9,b="worklog"),Qn=d=>rt(d);function $n(){N=this.value,t(20,N)}const ei=d=>d.key==="Enter"&&jt(),ti=d=>rt(d),li=d=>{const D=d.detail;D===0?(t(27,W=[]),t(26,K=null),ke(p.id)):bt(D-1)},ni=d=>it(d.detail),ii=d=>ot(d.detail),oi=d=>Q("OpenFile",d.detail),si=d=>Q("OpenFolder",d.detail),ai=d=>Pt(d.detail),ri=d=>yt(d.detail.id),ci=d=>gt(d.detail),fi=d=>wt(d.detail),ui=d=>Ct(d.detail),di=d=>Lt(d.detail),ki=d=>Mt(d.detail),_i=d=>St(d.detail),pi=d=>Q("OpenFile",d.detail),mi=d=>Q("RunAction",d.id);function vi(){j=this.value,t(15,j)}function hi(){M=on(this.value),t(14,M)}const bi=d=>be(d.nodeId),gi=(d,D)=>D.key==="Enter"&&be(d.nodeId),yi=d=>be(d.nodeId),wi=(d,D)=>D.key==="Enter"&&be(d.nodeId),Ci=d=>be(d.nodeId),Ti=(d,D)=>D.key==="Enter"&&be(d.nodeId),Mi=d=>be(d.nodeId),Li=(d,D)=>D.key==="Enter"&&be(d.nodeId);function Si(){I=this.value,t(17,I)}const Di=d=>d.key==="Enter"&&At();function Ii(){F=zi(this),t(18,F),t(0,n)}const Ni=()=>ft("copy"),Ei=()=>ft("link");function Fi(){Ne=this.value,t(41,Ne)}return[n,i,s,o,k,m,v,_,p,b,y,w,S,A,M,j,B,I,F,L,N,X,ee,Z,V,P,K,W,R,$,ne,G,U,Y,J,z,ce,pe,de,ze,Ge,Ne,Ee,mn,lt,nt,ke,it,ht,bt,ot,st,vn,gt,yt,wt,Ct,Tt,Mt,Lt,St,Cn,Tn,Mn,Et,Dn,In,Nn,En,Fn,An,At,Ht,Hn,jt,rt,jn,Bn,On,Pn,Ot,zn,ft,Vn,Pt,Wn,be,Kn,xn,qn,Gn,Un,Jn,Xn,Zn,Yn,Qn,$n,ei,ti,li,ni,ii,oi,si,ai,ri,ci,fi,ui,di,ki,_i,pi,mi,vi,hi,bi,gi,yi,wi,Ci,Ti,Mi,Li,Si,Di,Ii,Ni,Ei,Fi]}class Is extends Pe{constructor(e){super(),Oe(this,e,Ds,Ss,Be,{},null,[-1,-1,-1,-1,-1,-1,-1])}}new Is({target:document.getElementById("app")});