Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

effector-inspector

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effector-inspector - npm Package Compare versions

Comparing version 0.8.2 to 0.9.0

2

index.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("effector"),e=require("forest"),t=require("foliage");function r(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function o(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?r(Object(t),!0).forEach((function(e){a(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function i(n){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(n)}function a(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function c(n,e){if(null==n)return{};var t,r,o=function(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}function l(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function s(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(n);!(a=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(n){c=!0,o=n}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(n,e)||f(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(n){return function(n){if(Array.isArray(n))return d(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||f(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(n,e){if(n){if("string"==typeof n)return d(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(n,e):void 0}}function d(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function m(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=f(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){c=!0,i=n},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}var p,v,b,h,y,x,g,w,k,S,j,O,E,$,z,T,A,C,D,q,I,P,M,F,L,J,B,N=["title"],R=t.styled.div(p||(p=l(["\n --primary: #ff8c00;\n --primary-light: #ffb152;\n --primary-dark: #c86e00;\n --primary-text: #fff;\n\n --text: #404040;\n --border: #dadada;\n --shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);\n\n --scrollbar: var(--primary-light);\n\n --tabs-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);\n\n --tab-bg: #fff;\n --tab-text: #606060;\n --tab-text-active: var(--primary);\n --tab-shadow-active: var(--primary);\n\n --content-bg: #f9f9f9;\n\n --code-var: #ff8c00;\n --code-func: #249ec6;\n --code-string: #00a153;\n --code-bool: #ff62d3;\n --code-number: #7a70f3;\n --code-date: #333;\n --code-regexp: #95b70e;\n\n @media (prefers-color-scheme: dark) {\n --text: #ddd;\n --border: #111;\n --shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);\n\n --scrollbar: var(--primary);\n\n --tabs-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\n --tab-bg: #444;\n --tab-text: #ddd;\n --tab-text-active: var(--primary);\n --tab-shadow-active: var(--primary);\n\n --content-bg: #333;\n\n --code-var: #ff8c00;\n --code-func: #a5d4e2;\n --code-string: #2cb472;\n --code-bool: #ff62d3;\n --code-number: #9990ff;\n --code-date: #fff;\n --code-regexp: #e5ff7e;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar);\n }\n\n ::-webkit-scrollbar {\n width: 6px;\n }\n\n ::-webkit-scrollbar:horizontal {\n height: 6px;\n }\n\n position: fixed;\n top: 64px;\n right: 64px;\n bottom: 64px;\n z-index: 1000;\n\n display: flex;\n flex-direction: row;\n width: 736px;\n min-width: 400px;\n max-width: 90%;\n\n color: var(--text);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'PT Sans', Helvetica, Arial, sans-serif;\n line-height: 1.5;\n\n background-color: var(--bg);\n border-radius: 8px;\n box-shadow: var(--shadow);\n\n user-select: none;\n\n color-scheme: light dark;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n\n @media screen and (max-width: 700px) {\n max-width: 480px;\n }\n"]))),U=t.styled.div(v||(v=l(["\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 8px;\n margin-top: 48px;\n margin-bottom: 48px;\n margin-left: -10px;\n\n color: var(--primary);\n font-size: 14px;\n font-family: monospace;\n line-height: 6px;\n word-break: break-all;\n\n background-color: var(--bg);\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n cursor: col-resize;\n\n &:hover,\n &[data-active='true'] {\n color: var(--bg);\n\n background-color: var(--primary);\n }\n"]))),_=t.styled.section(b||(b=l(["\n position: relative;\n\n display: flex;\n flex-flow: column;\n width: 100%;\n\n border-radius: inherit;\n"]))),W=t.styled.div(h||(h=l(["\n position: sticky;\n top: 0;\n right: 0;\n left: 0;\n\n display: flex;\n\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n\n background-color: var(--tab-bg);\n border-bottom: 1px solid var(--border);\n border-radius: inherit;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n box-shadow: var(--tabs-shadow);\n"]))),K=t.styled.div(y||(y=l(["\n padding: 8px 16px;\n\n color: var(--tab-text);\n\n border-radius: inherit;\n border-top-right-radius: 0;\n cursor: pointer;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 var(--tab-shadow-active);\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n color: var(--tab-text-active);\n\n box-shadow: inset 0 -2px 0 0 var(--tab-shadow-active);\n }\n"]))),X=t.styled.div(x||(x=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n\n background-color: var(--content-bg);\n"]))),H=t.styled.ul(g||(g=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n\n list-style-type: none;\n"]))),V=t.styled.li(w||(w=l(["\n display: flex;\n margin: 0 0;\n padding: 6px 10px;\n\n font-size: 12px;\n line-height: 1.3;\n"]))),G=t.styled.pre(k||(k=l(["\n display: flex;\n margin: 0 0;\n\n color: var(--code-var);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),Q=t.styled.pre(S||(S=l(["\n margin: 0 0;\n\n color: var(--code-func);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),Y=t.styled.button(j||(j=l(["\n margin: 0;\n margin-left: 1rem;\n padding: 0.2rem 0.4rem;\n\n color: var(--primary-text);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n\n background-color: var(--primary);\n border: var(--primary);\n border-radius: 4px;\n\n &:focus {\n outline: 0;\n box-shadow: 0 0 0 1px var(--primary-dark), 0 0 3px 0 var(--primary-dark);\n }\n\n &:hover {\n background-color: var(--primary-dark);\n }\n"]))),Z=t.styled.span(O||(O=l(["\n display: inline-block;\n\n [data-opened='true'] > & {\n display: block;\n padding-left: 8px;\n }\n\n &[data-hidden='folded'] {\n display: none;\n\n [data-opened='true'] > & {\n display: block;\n }\n }\n\n &[data-hidden='expanded'] {\n display: inline-block;\n\n [data-opened='true'] > & {\n display: none;\n }\n }\n\n &:not(:last-child)::after {\n content: ', ';\n }\n"]))),nn=t.styled.span(E||(E=l(["\n color: var(--code-bool);\n font-style: italic;\n"]))),en=t.styled.span($||($=l(["\n color: var(--code-number);\n"]))),tn=t.styled.span(z||(z=l(["\n color: var(--code-string);\n"]))),rn=t.styled.span(T||(T=l(["\n color: var(--code-number);\n font-weight: bold;\n"]))),on=t.styled.span(A||(A=l(["\n color: var(--code-date);\n"]))),an=t.styled.span(C||(C=l(["\n /* nothing here */\n"]))),cn=t.styled.span(D||(D=l(["\n color: var(--code-regexp);\n"]))),ln=t.styled.div(q||(q=l(["\n display: flex;\n * + * {\n margin-left: 0.5rem;\n }\n"]))),sn={boolean:nn,date:on,keyword:rn,number:en,string:tn,symbol:an,regexp:cn},un=t.styled.div(I||(I=l(["\n display: flex;\n flex-shrink: 0;\n padding: 1rem;\n"]))),fn=t.styled.input(P||(P=l(["\n /* nothing here */\n"]))),dn=t.styled.label(M||(M=l(["\n display: flex;\n flex-shrink: 0;\n padding: 0 0.5rem;\n"]))),mn=t.styled.input(F||(F=l(["\n display: flex;\n flex-shrink: 0;\n margin: 0 0.5rem;\n padding: 0 0.5rem;\n\n border: 1px solid var(--border);\n border-radius: 0.2rem;\n\n &:focus {\n border-color: var(--primary);\n outline: 0;\n box-shadow: 0 0 0 1px var(--primary);\n }\n"]))),pn=t.styled.div(L||(L=l(["\n display: flex;\n flex-direction: column;\n"]))),vn=function(n){var t=n.title,r=c(n,N);dn((function(){fn((function(){e.spec({attr:{type:"checkbox"}}),e.spec(r)})),e.spec({text:t})}))},bn=t.styled.select(J||(J=l([""]))),hn=t.styled.input(B||(B=l(["\n display: flex;\n flex-shrink: 0;\n padding: 0 0.5rem;\n border: 1px solid var(--border);\n border-radius: 0.2rem;\n margin-bottom: 1rem;\n font-size: 1rem;\n line-height: 2rem;\n\n &:focus {\n border-color: var(--primary);\n outline: 0;\n box-shadow: 0 0 0 2px var(--primary);\n }\n"]))),yn=Math.pow(983020,2).toString(36);function xn(n,e){var t;return null!==(t=localStorage.getItem("".concat(yn,"-").concat(n)))&&void 0!==t?t:e}function gn(n,e){return localStorage.setItem("".concat(yn,"-").concat(n),e),e}function wn(e,t){var r=n.createEvent({loc:{file:"/src/setting.ts",line:11,column:17},name:"save",sid:"wnm0lw"});return r.watch((function(n){return gn(e,n)})),{read:function(){return xn(e,t)},write:function(n){return gn(e,n)},save:r}}function kn(e,t){var r=n.createEvent({loc:{file:"/src/setting.ts",line:20,column:17},name:"save",sid:"-o65dje"});return r.watch((function(n){return gn(e,JSON.stringify(n))})),{read:function(){return JSON.parse(xn(e,JSON.stringify(t)))},write:function(n){return gn(e,JSON.stringify(n)),n},save:r}}function Sn(e){var t=Object.keys(e),r=t[0],o=wn("last-tab",r),i=o.read(),a=t.includes(i)?i:r,c=n.createEvent({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),l=n.restore(c,a,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});l.watch(o.write),_((function(){W((function(){var n,r=m(t);try{var o=function(){var t=n.value,r=e[t];K({text:r.title,data:{active:l.map((function(n){return n===t}))},handler:{click:c.prepend((function(){return t}))}})};for(r.s();!(n=r.n()).done;)o()}catch(n){r.e(n)}finally{r.f()}}));var n,r=m(t);try{var o=function(){var t=n.value,r=e[t];X({visible:l.map((function(n){return n===t})),fn:function(){r.fn({changeTab:c})}})};for(r.s();!(n=r.n()).done;)o()}catch(n){r.e(n)}finally{r.f()}}))}var jn=/\[object ([\w\s]+)\]/;function On(n){var e=Object.prototype.toString.call(n),t=jn.exec(e);return t?t[1]:"unknown"}function En(t){var r=e.rec((function(t){var o=t.store,i=s(e.remap(o,["value","parentOpened"]),2),a=i[0],c=i[1],l=n.createEvent({loc:{file:"/src/object-view.ts",line:13,column:32},name:"foldableClicked",sid:"-stmnmb"}),f=n.createStore(!1,{loc:{file:"/src/object-view.ts",line:14,column:29},name:"$localOpened",sid:"-lmwtnk"}).on(l,(function(n){return!n})),d=n.combine({and:[c,f,function(n,e){return!0===n&&e}],or:{loc:{file:"/src/object-view.ts",line:15,column:24},name:"$opened",sid:"6x0687"}});e.variant({source:n.combine({and:[a,d,function(n,e){return{type:On(n),value:n,opened:e}}],or:{loc:{file:"/src/object-view.ts",line:17,column:20},name:"source",sid:"-2jts3p"}}),key:"type",cases:{String:function(n){var t=n.store;return sn.string({text:['"',e.remap(t,"value"),'"']})},Number:function(n){var t=n.store;return sn.number({text:e.remap(t,"value")})},BigInt:function(n){var t=n.store;return sn.number({text:[e.remap(t,"value"),"n"],attr:{title:"BigInt"}})},Boolean:function(n){var t=n.store;return sn.boolean({text:e.remap(t,"value")})},Null:function(){return sn.keyword({text:"null"})},Undefined:function(){return sn.keyword({text:"undefined"})},Symbol:function(n){var t=n.store;return sn.symbol({text:e.remap(t,"value")})},RegExp:function(n){var t=n.store,r=e.remap(t,"value"),o=s(e.remap(r,["source","flags"]),2),i=o[0],a=o[1];sn.regexp({text:["/",i,"/",a]})},Function:function(n){var t=n.store,r=e.remap(t,"value"),o={title:r.map((function(n){return n.toString()}))};e.h("span",{text:"function",attr:o}),sn.keyword({text:r.map((function(n){return n.name?" ".concat(n.name):""})),attr:o}),e.h("span",{text:"()",attr:o})},AsyncFunction:function(n){var t=n.store,r=e.remap(t,"value"),o={title:r.map((function(n){return n.toString()}))};e.h("span",{text:"async function",attr:o}),sn.keyword({text:r.map((function(n){return n.name?" ".concat(n.name):""})),attr:o}),e.h("span",{text:"()",attr:o})},Window:function(n){var t=n.store,r=e.remap(t,"opened");e.h("span",(function(){e.spec({data:{opened:r}}),e.h("span",{text:"Window {...",fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.spec({text:"}"})}))},Date:function(){sn.date({text:a.map((function(n){var e;return null===(e=n.toISOString)||void 0===e?void 0:e.call(n)})),attr:{title:a}})},Array:function(t){var o=t.store,i=s(e.remap(o,["value","opened"]),2),a=i[0],c=i[1];e.h("span",(function(){e.spec({data:{opened:c}}),e.h("span",{text:"Array [",data:{clickable:!0},fn:function(){e.handler({passive:!0,stop:!0,capture:!0,prevent:!0},{click:l})}}),e.list(a,(function(e){var t=e.store,o=e.key;return Z((function(){return r({store:n.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:91,column:35},name:"store",sid:"xbvkm7"}})})}))})),e.spec({text:"]"})}))},Arguments:function(t){var o=t.store,i=s(e.remap(o,["value","opened"]),2),a=i[0],c=i[1];e.h("span",(function(){e.spec({data:{opened:c}}),e.h("span",{text:"Arguments [",fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.list(a.map((function(n){return u(n)})),(function(e){var t=e.store,o=e.key;return Z((function(){return r({store:n.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:111,column:35},name:"store",sid:"nufsva"}})})}))})),e.spec({text:"]"})}))},Set:function(t){var o=t.store,i=s(e.remap(o,["value","opened"]),2),a=i[0],c=i[1];e.h("span",(function(){e.spec({data:{opened:c}}),e.h("span",{text:"Set [",fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.list(a.map((function(n){return u(n.values())})),(function(e){var t=e.store,o=e.key;return Z((function(){return r({store:n.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:131,column:35},name:"store",sid:"-htvons"}})})}))})),e.spec({text:"]"})}))},Map:function(t){var o=t.store,i=s(e.remap(o,["value","opened"]),2),a=i[0],c=i[1];e.h("span",(function(){e.spec({data:{opened:c}}),e.h("span",(function(){e.spec({text:"Map {"}),e.handler({passive:!0,stop:!0,capture:!0},{click:l})})),e.list(a.map((function(n){return u(n.entries())})),(function(t){var o=t.store,i=s(e.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){sn.string({text:['"',a,'"'],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.h("span",{text:" => "}),r({store:n.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:159,column:43},name:"store",sid:"fb9vmt"}})})}))})),e.spec({text:"}"})}))},Error:function(t){var o=t.store,i=s(e.remap(o,["value","opened"]),2),a=i[0],c=i[1],f=s(e.remap(a,["name","message"]),2),d=f[0],m=f[1],p=a.map((function(n){var e;return null!==(e=n.stack)&&void 0!==e?e:null}));e.h("span",(function(){e.spec({data:{opened:c}}),e.h("span",{text:[d," {"],attr:{title:a.map((function(n){return n.constructor.name}))},fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),Z((function(){e.spec({data:{hidden:"expanded"}}),sn.string({text:['"message"'],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.h("span",{text:": "}),r({store:n.combine({and:[{value:m,parentOpened:c,key:"message"}],or:{loc:{file:"/src/object-view.ts",line:193,column:39},name:"store",sid:"5h7l4"}})})})),Z((function(){e.spec({data:{hidden:"folded"}}),sn.string({text:['"stack"'],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.h("span",{text:": "});var t=n.combine({and:[{value:p,parentOpened:c,key:"stack"}],or:{loc:{file:"/src/object-view.ts",line:209,column:42},name:"store",sid:"-t932g0"}});r({store:t})})),e.list(a.map((function(n){return u(Object.entries(n))})),(function(t){var o=t.store,i=s(e.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){sn.string({text:['"',a,'"'],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.h("span",{text:": "}),r({store:n.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:227,column:43},name:"store",sid:"-udqrh"}})})}))}))})),e.h("span",{text:"}"})},__:function(t){var o=t.store;e.h("span",(function(){var t=s(e.remap(o,["type","value","opened"]),3),i=t[0],a=t[1],c=t[2];e.spec({data:{opened:c}}),e.h("span",{text:[i," {"],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.list(a.map((function(n){return u(Object.entries(n))})),(function(t){var o=t.store,i=s(e.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){sn.string({text:['"',a,'"'],fn:function(){e.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),e.h("span",{text:": "}),r({store:n.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:260,column:43},name:"store",sid:"-gh80lu"}})})}))}))})),e.h("span",{text:"}"})}}})})),o=t.value,i=n.combine({and:[{value:o,parentOpened:n.createStore(!0,{loc:{file:"/src/object-view.ts",line:277,column:22},name:"parentOpened",sid:"-2w11af"}),key:""},function(n){return n}],or:{loc:{file:"/src/object-view.ts",line:275,column:18},name:"store",sid:"kebhe"}});r({store:i})}function $n(n,e){return e.trimDomain?n.map((function(n){return n.replace("".concat(e.trimDomain,"/"),"")})):n}var zn=kn("filter-kinds",["event","store"]),Tn=wn("filter-text","");function An(t,r,o){var i=n.createEvent({loc:{file:"/src/logs.ts",line:11,column:23},name:"toggleKind",sid:"al2efl"}),a=n.createEvent({loc:{file:"/src/logs.ts",line:12,column:26},name:"filterChanged",sid:"sbtuox"}),c=n.createEvent({loc:{file:"/src/logs.ts",line:13,column:25},name:"clearClicked",sid:"g7uhen"}),l=n.createStore(zn.read(),{loc:{file:"/src/logs.ts",line:14,column:19},name:"$kinds",sid:"th13oa"}),f=n.restore(a,Tn.read(),{loc:{file:"/src/logs.ts",line:15,column:24},name:"$filterText",sid:"-aim8j7"});l.on(i,(function(n,e){return n.includes(e)?n.filter((function(n){return n!==e})):[].concat(u(n),[e])})).watch(zn.write),f.watch(Tn.write),t.on(c,(function(){return[]})).on(r,(function(){return[]})),un((function(){e.h("span",{text:"Show: "}),vn({title:"Event",attr:{checked:l.map((function(n){return n.includes("event")}))},handler:{click:i.prepend((function(){return"event"}))}}),vn({title:"Store",attr:{checked:l.map((function(n){return n.includes("store")}))},handler:{click:i.prepend((function(){return"store"}))}}),vn({title:"Effect",attr:{checked:l.map((function(n){return n.includes("effect")}))},handler:{click:i.prepend((function(){return"effect"}))}}),e.h("span",{text:"Filter:"}),mn({attr:{value:f},handler:{change:a.prepend((function(n){var e,t;return null!==(e=null===(t=n.currentTarget)||void 0===t?void 0:t.value)&&void 0!==e?e:""}))}}),Y({text:"Clear",handler:{click:c},attr:{title:"Press CTRL+L to clear logs"}})})),H((function(){e.list({source:t,key:"id",fields:["kind","name","payload","datetime"],fn:function(e){var t=s(e.fields,4),r=t[0],i=t[1],a=t[2],c=t[3],u=$n(i,o),d=n.combine({and:[r,l,function(n,e){return e.includes(n)}],or:{loc:{file:"/src/logs.ts",line:58,column:37},name:"$kindMatched",sid:"-80l9jl"}}),m=n.combine({and:[f,u,function(n,e){return e.includes(n)}],or:{loc:{file:"/src/logs.ts",line:59,column:37},name:"$textMatched",sid:"3h5st1"}}),p=n.combine({and:[d,m,function(n,e){return n&&e}],or:{loc:{file:"/src/logs.ts",line:60,column:33},name:"$visible",sid:"-8m6nr6"}});V({visible:p,fn:function(){var n=c.map((function(n){return n.toISOString()})),e=c.map((function(n){return n.toLocaleTimeString()}));G({text:[e," ▸ "],attr:{title:n}}),G({text:r}),G({text:[" «",u,"» "]}),Q((function(){return En({value:a})}))}})}})}))}var Cn;function Dn(t,r){var i=t.map((function(n){return Object.entries(n).map((function(n){var e=s(n,2);return o({name:e[0]},e[1])}))})),a=n.createEvent({loc:{file:"/src/stores.ts",line:9,column:26},name:"filterChanged",sid:"-l7aet0"}),c=n.restore(a,"",{loc:{file:"/src/stores.ts",line:10,column:20},name:"$filter",sid:"h9pq98"}),l=n.combine({and:[i,c,function(n,e){return n.filter((function(n){return n.name.includes(e)}))}],or:{loc:{file:"/src/stores.ts",line:11,column:26},name:"$filteredList",sid:"d36u76"}}),u=a.prepend((function(n){var e;return null===(e=n.currentTarget)||void 0===e?void 0:e.value}));Pn((function(){hn({attr:{value:c,placeholder:"Type a part of store name"},handler:{input:u}})})),H((function(){e.list({source:l,key:"name",fields:["name","value"],fn:function(n){var e=s(n.fields,2),t=e[0],o=e[1];V((function(){G({text:[$n(t,r),": "]}),Q((function(){En({value:o})}))}))}})}))}var qn,In,Pn=t.styled.div(Cn||(Cn=l(["\n padding: 6px;\n\n "," {\n width: 100%;\n box-sizing: border-box;\n margin: 0;\n }\n"])),hn);function Mn(n,t){H((function(){var r=n.map((function(n){return Object.entries(n).map((function(n){var e=s(n,2);return o({name:e[0]},e[1])}))}));e.list({source:r,key:"name",fields:["name","history"],fn:function(n){var e=s(n.fields,2),r=e[0];e[1],V((function(){G({text:[$n(r,t)," "]})}))}})}))}function Fn(n,t){H((function(){var r=n.map((function(n){return Object.entries(n).map((function(n){var e=s(n,2);return o({sid:e[0]},e[1])}))}));e.list({source:r,key:"sid",fields:["name","inFlight"],fn:function(n){var r=s(n.fields,2),o=r[0],i=r[1];V((function(){G({text:[$n(o,t)," "]}),Q((function(){e.h("span",(function(){e.h("span",{text:[" {"]}),Z((function(){sn.string({text:'"inFlight": '}),sn.number({text:i})})),e.text(In||(In=l(["}"])))}))}))}))}})}))}t.styled.div(qn||(qn=l(["\n display: flex;\n flex-flow: row nowrap;\n\n :nth-child(2),\n :nth-child(3),\n :nth-child(4),\n :nth-child(5) {\n opacity: 0.8;\n }\n\n > :nth-child(n + 6) {\n opacity: 0.5;\n }\n\n > :not(:first-child) {\n margin-left: 0.5rem;\n }\n"])));var Ln,Jn,Bn;function Nn(t){var r=t.$files.map((function(n){return Object.keys(n).sort((function(n,e){return n<e?-1:n>e?1:0}))})),o=r.map((function(n){return n.length>0})),i=n.createEvent({loc:{file:"/src/files.ts",line:17,column:25},name:"fileSelected",sid:"-jqe342"}),a=n.createEvent({loc:{file:"/src/files.ts",line:18,column:24},name:"fileCleanup",sid:"hlqci5"}),c=n.createStore("",{loc:{file:"/src/files.ts",line:19,column:25},name:"$currentFile",sid:"8hcd8i"}),l=c.map((function(n){return""!==n})),s=l.map((function(n){return!n}));c.on(i,(function(n,e){return e})).on(a,(function(){return""})),un({style:{flexDirection:"column"},visible:o,fn:function(){ln({visible:l,fn:function(){Y({text:"◀",handler:{click:a.prepend((function(){}))}}),e.h("span",{text:"File:"}),bn({handler:{change:i.prepend((function(n){return n.currentTarget.value}))},fn:function(){e.list(r,(function(t){var r=t.store;e.h("option",{attr:{value:r,selected:n.combine({and:[r,c,function(n,e){return n===e}],or:{loc:{file:"/src/files.ts",line:48,column:50},name:"selected",sid:"6n66ec"}})},text:r})}))}})}}),pn({visible:s,fn:function(){var t=n.createEvent({loc:{file:"/src/files.ts",line:60,column:42},name:"filterChanged",sid:"k3tq2y"}),o=n.restore(t,"",{loc:{file:"/src/files.ts",line:61,column:36},name:"$filter",sid:"ylqhpg"}),a=n.combine({and:[o,r,function(n,e){return e.filter((function(e){return e.includes(n)}))}],or:{loc:{file:"/src/files.ts",line:62,column:43},name:"$filteredFiles",sid:"-f0p9a1"}});Yn({text:"Please, select file from the list or type the name"});var c=t.prepend((function(n){var e;return null===(e=n.currentTarget)||void 0===e?void 0:e.value}));pn((function(){hn({attr:{value:o,placeholder:"Type a part of the file name"},handler:{input:c}}),Zn((function(){e.list(a,(function(e){var t=e.store;e.key;var r=n.createEvent({loc:{file:"/src/files.ts",line:75,column:51},name:"selectFile",sid:"4tb03w"});n.sample({and:[{source:t,clock:r,target:i}],or:{loc:{file:"/src/files.ts",line:76,column:32},sid:"ipctc"}}),ne({text:t,attr:{tabIndex:"0"},handler:{click:r}})}))}))}))}})}}),un({visible:l,fn:function(){var e=n.combine({and:[c,t.$files,t.$events,function(n,e,t){return""!==n&&e[n]?Object.fromEntries(e[n].filter((function(n){return"event"===n.kind})).map((function(n){var e=n.name;return[e,t[e]]}))):{}}],or:{loc:{file:"/src/files.ts",line:96,column:28},name:"$events",sid:"n8saf2"}}),r=n.combine({and:[c,t.$files,t.$stores,function(n,e,t){return""!==n&&e[n]?Object.fromEntries(e[n].filter((function(n){return"store"===n.kind})).map((function(n){var e=n.name;return[e,t[e]]}))):{}}],or:{loc:{file:"/src/files.ts",line:104,column:28},name:"$stores",sid:"-qtmfjl"}}),o=n.combine({and:[c,t.$files,t.$effects,function(n,e,t){return""!==n&&e[n]?Object.fromEntries(e[n].filter((function(n){return"effect"===n.kind})).map((function(n){var e=n.name;return[e,t[e]]}))):{}}],or:{loc:{file:"/src/files.ts",line:112,column:29},name:"$effects",sid:"n4x7jt"}});pn((function(){Mn(e,t.options),Dn(r,t.options),Fn(o,t.options)}))}})}var Rn,Un,_n,Wn,Kn,Xn,Hn,Vn,Gn,Qn,Yn=t.styled.h4(Ln||(Ln=l(["\n margin-top: 0;\n"]))),Zn=t.styled.div(Jn||(Jn=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n align-items: stretch;\n\n list-style-type: none;\n\n :nth-child(2n) {\n background-color: rgba(0, 0, 0, 0.1);\n }\n"]))),ne=t.styled.button(Bn||(Bn=l(["\n color: var(--text);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n font-size: 14px;\n text-align: left;\n\n border: var(--primary);\n padding: 0.2rem 0.4rem;\n\n cursor: pointer;\n\n &:hover {\n background-color: var(--primary-dark);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--primary-dark);\n }\n"])));function ee(t,r,o){var i=n.createEvent({loc:{file:"/src/traces.ts",line:7,column:25},name:"clearClicked",sid:"-sdjk8b"});t.on([i,r],(function(){return[]})),un((function(){Y({text:"Clear",handler:{click:i},attr:{title:"Press CTRL+L to clear logs"}})})),H((function(){e.list({source:t,key:"time",fn:function(n){var t=n.store;oe((function(){En({value:e.remap(t,"time").map((function(n){return new Date(n)}))})})),re((function(){e.list(e.remap(t,"traces"),(function(n){var t=n.store;e.variant({source:t,key:"type",cases:{event:function(n){var t=n.store;V({fn:function(){ie((function(){e.text(Rn||(Rn=l(['Event "']))),e.h("span",{attr:{class:"event"},text:e.remap(t,"name")}),e.text(Un||(Un=l(['" triggered with '])))})),Q((function(){return En({value:e.remap(t,"argument")})}))}})},store:function(n){var t=n.store;V({fn:function(){ie((function(){e.text(_n||(_n=l(['Store "']))),e.h("span",{attr:{class:"store"},text:e.remap(t,"name")}),e.text(Wn||(Wn=l(['" changed from '])))})),Q((function(){return En({value:e.remap(t,"before")})})),ie((function(){return e.text(Kn||(Kn=l([" to "])))})),Q((function(){return En({value:e.remap(t,"current")})}))}})},effect:function(n){var t=n.store;V({fn:function(){ie((function(){e.text(Xn||(Xn=l(['Effect "']))),e.h("span",{attr:{class:"effect"},text:e.remap(t,"name")}),e.text(Hn||(Hn=l(['" triggered with '])))})),Q((function(){return En({value:e.remap(t,"argument")})}))}})}}})}))}))}})}))}var te,re=t.styled.div(Vn||(Vn=l(["\n display: flex;\n flex-direction: column;\n padding: 0.25rem 0.5rem;\n"]))),oe=t.styled.div(Gn||(Gn=l(["\n font-size: 0.8rem;\n margin-top: 1rem;\n margin-left: 0.5rem;\n"]))),ie=t.styled.div(Qn||(Qn=l(["\n display: flex;\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n margin: 0 0.5rem;\n flex-shrink: 0;\n\n .event {\n color: var(--code-var);\n }\n\n .store {\n color: var(--code-string);\n }\n\n .effect {\n color: var(--code-number);\n }\n"]))),ae=n.createStore(!1,{loc:{file:"/src/view.ts",line:14,column:19},name:"$isVisible",sid:"m45rq1"}),ce=n.createEvent({loc:{file:"/src/view.ts",line:15,column:22},name:"togglePressed",sid:"-49o1h2"}),le=n.createEvent({loc:{file:"/src/view.ts",line:16,column:21},name:"clearPressed",sid:"m6ugh"}),se=n.createEvent({loc:{file:"/src/view.ts",line:17,column:22},name:"showInspector",sid:"-vcvppo"});function ue(){var t=n.createStore(!1,{loc:{file:"/src/view.ts",line:31,column:20},name:"$inDrag",sid:"ggb9xd"}),r=n.createEvent({loc:{file:"/src/view.ts",line:32,column:22},name:"mouseDown",sid:"2cyk2w"}),o=n.createEvent({loc:{file:"/src/view.ts",line:33,column:22},name:"mouseMove",sid:"-ynkdai"}),i=n.createEvent({loc:{file:"/src/view.ts",line:34,column:20},name:"mouseUp",sid:"-nqpkkf"});return t.on(r,(function(){return!0})).on(i,(function(){return!1})),e.spec({handler:{mousedown:r}}),r.watch((function(){document&&(document.addEventListener("mousemove",o),document.addEventListener("mouseup",i))})),i.watch((function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)})),{mouseMove:o,mouseDown:r,mouseUp:i,$inDrag:t}}function fe(){var t=n.createEvent({loc:{file:"/src/view.ts",line:50,column:19},name:"setRef",sid:"-lwzk7m"}),r=n.restore(t,null,{loc:{file:"/src/view.ts",line:51,column:17},name:"$ref",sid:"-ajz2fn"});return e.node(t),r}function de(t,r,o,i,a,c){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};s.visible&&se(),console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),R({visible:ae,fn:function(){var u=fe(),f=kn("width",736),d=n.createStore(f.read(),{loc:{file:"/src/view.ts",line:66,column:27},name:"$width",sid:"f875z1"});e.spec({style:{width:e.val(te||(te=l(["","px"])),d)}}),U({text:"∙∙∙",fn:function(){var t=ue(),r=t.mouseMove,o=t.mouseDown,i=t.mouseUp,a=t.$inDrag;e.spec({data:{active:a}});var c=n.createStore(0,{loc:{file:"/src/view.ts",line:73,column:35},name:"$shift",sid:"-fw25b4"}),l=n.sample({and:[u,o,function(n,e){return{block:n,event:e}}],or:{loc:{file:"/src/view.ts",line:74,column:38},name:"dragStart",sid:"-x23vsk"}}),s=n.sample({and:[u,r,function(n,e){return n.getBoundingClientRect().right-e.clientX}],or:{loc:{file:"/src/view.ts",line:78,column:37},name:"dragMove",sid:"xhmbk0"}}),m=n.sample({and:[c,s,function(n,e){return e-n}],or:{loc:{file:"/src/view.ts",line:82,column:41},name:"correctWidth",sid:"6o31yd"}});d.on(m,(function(n,e){return e})),c.on(l,(function(n,e){var t=e.block,r=e.event;return t?t.getBoundingClientRect().left-r.clientX:0})),n.sample({and:[d,i,f.save],or:{loc:{file:"/src/view.ts",line:85,column:20},sid:"rh8y91"}})}}),Sn({files:{title:"Files",fn:function(){Nn({$stores:t,$events:r,$effects:o,$files:a,options:s})}},stores:{title:"Stores",fn:function(){Dn(t,s)}},effects:{title:"Effects",fn:function(){Fn(o,s)}},events:{title:"Events",fn:function(){Mn(r,s)}},traces:{title:"Traces",fn:function(){ee(c,le)}},logs:{title:"Logs",fn:function(){An(i,le,s)}}})}})}"object"===("undefined"==typeof document?"undefined":i(document))&&document.addEventListener("keypress",(function(n){n.ctrlKey&&("l"!==n.key&&12!==n.keyCode||le(),"b"!==n.key&&2!==n.keyCode||ce())})),ae.on(ce,(function(n){return!n})).on(se,(function(){return!0}));var me=n.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:5,column:15},name:"$files",sid:"-b5fubx"}),pe=n.createEvent({loc:{file:"/src/index.ts",line:6,column:17},name:"storeAdd",sid:"-w7nr43"}),ve=n.createEvent({loc:{file:"/src/index.ts",line:7,column:21},name:"storeUpdated",sid:"w3u5z1"}),be=n.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:8,column:16},name:"$stores",sid:"ioizqq"}),he=n.createEvent({loc:{file:"/src/index.ts",line:9,column:17},name:"eventAdd",sid:"-o9yfun"}),ye=n.createEvent({loc:{file:"/src/index.ts",line:10,column:23},name:"eventTriggered",sid:"-3vh36s"}),xe=n.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:11,column:16},name:"$events",sid:"-b7nvrd"}),ge=n.createEvent({loc:{file:"/src/index.ts",line:12,column:18},name:"effectAdd",sid:"fekv6p"}),we=n.createEvent({loc:{file:"/src/index.ts",line:13,column:24},name:"effectTriggered",sid:"-w5t4dt"}),ke=n.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:14,column:17},name:"$effects",sid:"bxdte"}),Se=n.createStore([],{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:15,column:14},name:"$logs",sid:"e84fof"}),je=n.createEvent({loc:{file:"/src/index.ts",line:16,column:25},name:"traceStoreChange",sid:"-sfjmqj"}),Oe=n.createEvent({loc:{file:"/src/index.ts",line:17,column:26},name:"traceEventTrigger",sid:"sv4vkc"}),Ee=n.createEvent({loc:{file:"/src/index.ts",line:18,column:23},name:"traceEffectRun",sid:"-6m76ro"}),$e=n.merge([je,Oe,Ee],{loc:{file:"/src/index.ts",line:19,column:17},name:"traceAdd",sid:"-l0l835"}),ze=n.createEvent({loc:{file:"/src/index.ts",line:20,column:22},name:"traceFinished",sid:"-g0tcos"}),Te=n.createStore([],{loc:{file:"/src/index.ts",line:21,column:16},name:"$traces",sid:"-za84d"}),Ae=n.createStore({time:0,traces:[]},{loc:{file:"/src/index.ts",line:22,column:22},name:"$currentTrace",sid:"-4lffg7"});Ae.on($e,(function(n,e){var t=n.time,r=n.traces;return{time:t||Date.now(),traces:[].concat(u(r),[e])}})),n.guard({and:[{source:Ae,clock:$e,filter:function(n){return 1===n.traces.length}}],or:{loc:{file:"/src/index.ts",line:27,column:0},sid:"-b1ex4a"}}).watch((function(){return queueMicrotask(ze)}));var Ce=n.sample({and:[{source:Ae,clock:ze}],or:{loc:{file:"/src/index.ts",line:32,column:18},name:"moveTrace",sid:"-dwe01t"}});Te.on(Ce,(function(n,e){return[].concat(u(n),[e])})),Ae.reset(Ce),be.on(pe,(function(n,e){return o(o({},n),{},a({},e.name,{value:e.store.getState(),mapped:e.mapped}))})).on(ve,(function(n,e){var t=e.name,r=e.value;return n[t]=o(o({},n[t]),{},{value:r}),o({},n)})),me.on(pe,(function(n,e){var t=e.name,r=e.file;if(r){if(n[r]){var i=n[r];return o(o({},n),{},a({},r,[].concat(u(i),[{kind:"store",name:t}])))}return o(o({},n),{},a({},r,[{kind:"store",name:t}]))}return n})),xe.on(he,(function(n,e){return o(o({},n),{},a({},e.name,{mapped:e.mapped,history:[]}))})).on(ye,(function(n,e){var t=e.name,r=e.params,i=void 0===r?void 0:JSON.parse(JSON.stringify(r));return n[t]=o(o({},n[t]),{},{history:[i].concat(u(n[t].history))}),o({},n)})),me.on(he,(function(n,e){var t=e.name,r=e.file;if(r){if(n[r]){var i=n[r];return o(o({},n),{},a({},r,[].concat(u(i),[{kind:"event",name:t}])))}return o(o({},n),{},a({},r,[{kind:"event",name:t}]))}return n})),ke.on(ge,(function(n,e){return o(o({},n),{},a({},e.sid,{name:e.name,effect:e.effect,inFlight:e.effect.inFlight.getState()}))})).on(we,(function(n,e){var t=e.sid,r=n[t];return n[t]=o(o({},r),{},{inFlight:r.effect.inFlight.getState()}),o({},n)})),me.on(ge,(function(n,e){var t=e.name,r=e.file;if(r){if(n[r]){var i=n[r];return o(o({},n),{},a({},r,[].concat(u(i),[{kind:"event",name:t}])))}return o(o({},n),{},a({},r,[{kind:"event",name:t}]))}return n}));var De=1e3,qe=n.createEffect({handler:function(n){var e=n.name,t=n.kind,r=n.payload;return{id:(++De).toString(36),kind:t,name:e,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:118,column:23},name:"createRecordFx",sid:"-epqwjl"});function Ie(n){return n.graphite}function Pe(e){var t=Je(e);Ie(e).seq.unshift(n.step.compute({fn:function(n,e,r){return Ee({type:"effect",name:t,argument:null==n?void 0:n.param}),n}})),Me(e.doneData,"".concat(t,".doneData")),Me(e.failData,"".concat(t,".failData"))}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je(e);Ie(e).seq.unshift(n.step.compute({fn:function(n,e,r){return Oe({type:"event",name:t,argument:n}),n}}))}function Fe(e){var t=Je(e);Me(e.updates,"".concat(t,".updates")),Ie(e).seq.unshift(n.step.compute({fn:function(n,e){var t;return e.trace={before:(t=e.state.current,JSON.parse(JSON.stringify(t)))},n}})),Ie(e).seq.push(n.step.compute({fn:function(n,e,r){return je({type:"store",name:t,before:e.trace.before,current:n}),n}}))}function Le(n){var e,t;return null===(e=n.defaultConfig)||void 0===e||null===(t=e.loc)||void 0===t?void 0:t.file}function Je(n){return n.compositeName.path.join("/")}n.forward({and:{from:ye,to:qe.prepend((function(n){return{kind:"event",name:n.name,payload:n.params}}))},or:{loc:{file:"/src/index.ts",line:129,column:0},sid:"-3wk0bb"}}),n.forward({and:{from:ve,to:qe.prepend((function(n){return{kind:"store",name:n.name,payload:n.value}}))},or:{loc:{file:"/src/index.ts",line:137,column:0},sid:"-3glz3u"}}),Se.on(qe.doneData,(function(n,e){return[e].concat(u(n))})),exports.addEffect=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Je(e),i=r.sid||e.sid||o;ge({effect:e,name:o,sid:i,attached:null!==(t=r.attached)&&void 0!==t&&t,file:Le(e)}),Pe(e),n.forward({and:{from:[e,e.finally],to:we.prepend((function(){return{sid:i}}))},or:{loc:{file:"/src/index.ts",line:247,column:4},sid:"botxlu"}});var a=e.map((function(n){return{kind:"effect",name:o,payload:n}})),c=e.done.map((function(n){return{kind:"effect",name:o+".done",payload:n}})),l=e.fail.map((function(n){return{kind:"effect",name:o+".fail",payload:n}}));n.forward({and:{from:[a,c,l],to:qe},or:{loc:{file:"/src/index.ts",line:266,column:4},sid:"cmddsv"}})},exports.addEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name||Je(e);he({event:e,name:r,mapped:t.mapped||!1,file:Le(e)}),Me(e),n.forward({and:{from:e.map((function(n){return{name:r,params:n}})),to:ye},or:{loc:{file:"/src/index.ts",line:228,column:4},sid:"arahet"}})},exports.addStore=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name||Je(e);pe({store:e,name:r,mapped:t.mapped||!1,file:Le(e)}),Fe(e),n.forward({and:{from:e.updates.map((function(n){return{name:r,value:n}})),to:ve},or:{loc:{file:"/src/index.ts",line:214,column:4},sid:"a81on6"}})},exports.createInspector=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="object"===("undefined"==typeof document?"undefined":i(document))&&document.createElement("div");if(r)return r.classList.add("effector-inspector"),document.body.append(r),e.using(r,(function(){return de(be,xe,ke,Se,me,Te,n)})),e.using(r,t.StyledRoot),{root:r}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("effector"),n=require("forest"),t=require("foliage");function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||f(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,n):void 0}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=f(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}var p,v,b,h,y,g,x,w,k,S,j,O,E,z,$,T,A,C,D,q,I,P,M,F,L,J,B,N=["title"],R=t.styled.div(p||(p=l(["\n --primary: #ff8c00;\n --primary-light: #ffb152;\n --primary-dark: #c86e00;\n --primary-text: #fff;\n\n --text: #404040;\n --border: #dadada;\n --shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);\n\n --scrollbar: var(--primary-light);\n\n --tabs-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);\n\n --tab-bg: #fff;\n --tab-text: #606060;\n --tab-text-active: var(--primary);\n --tab-shadow-active: var(--primary);\n\n --content-bg: #f9f9f9;\n\n --code-var: #ff8c00;\n --code-func: #249ec6;\n --code-string: #00a153;\n --code-bool: #ff62d3;\n --code-number: #7a70f3;\n --code-date: #333;\n --code-regexp: #95b70e;\n\n @media (prefers-color-scheme: dark) {\n --text: #ddd;\n --border: #111;\n --shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);\n\n --scrollbar: var(--primary);\n\n --tabs-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\n --tab-bg: #444;\n --tab-text: #ddd;\n --tab-text-active: var(--primary);\n --tab-shadow-active: var(--primary);\n\n --content-bg: #333;\n\n --code-var: #ff8c00;\n --code-func: #a5d4e2;\n --code-string: #2cb472;\n --code-bool: #ff62d3;\n --code-number: #9990ff;\n --code-date: #fff;\n --code-regexp: #e5ff7e;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar);\n }\n\n ::-webkit-scrollbar {\n width: 6px;\n }\n\n ::-webkit-scrollbar:horizontal {\n height: 6px;\n }\n\n position: fixed;\n top: 64px;\n right: 64px;\n bottom: 64px;\n z-index: 1000;\n\n display: flex;\n flex-direction: row;\n width: 736px;\n min-width: 400px;\n max-width: 90%;\n\n color: var(--text);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'PT Sans', Helvetica, Arial, sans-serif;\n line-height: 1.5;\n\n background-color: var(--bg);\n border-radius: 8px;\n box-shadow: var(--shadow);\n\n user-select: none;\n\n color-scheme: light dark;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n\n @media screen and (max-width: 700px) {\n max-width: 480px;\n }\n"]))),U=t.styled.div(v||(v=l(["\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 8px;\n margin-top: 48px;\n margin-bottom: 48px;\n margin-left: -10px;\n\n color: var(--primary);\n font-size: 14px;\n font-family: monospace;\n line-height: 6px;\n word-break: break-all;\n\n background-color: var(--bg);\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n cursor: col-resize;\n\n &:hover,\n &[data-active='true'] {\n color: var(--bg);\n\n background-color: var(--primary);\n }\n"]))),_=t.styled.section(b||(b=l(["\n position: relative;\n\n display: flex;\n flex-flow: column;\n width: 100%;\n\n border-radius: inherit;\n"]))),W=t.styled.div(h||(h=l(["\n position: sticky;\n top: 0;\n right: 0;\n left: 0;\n\n display: flex;\n\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n\n background-color: var(--tab-bg);\n border-bottom: 1px solid var(--border);\n border-radius: inherit;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n box-shadow: var(--tabs-shadow);\n"]))),K=t.styled.div(y||(y=l(["\n padding: 8px 16px;\n\n color: var(--tab-text);\n\n border-radius: inherit;\n border-top-right-radius: 0;\n cursor: pointer;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 var(--tab-shadow-active);\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n color: var(--tab-text-active);\n\n box-shadow: inset 0 -2px 0 0 var(--tab-shadow-active);\n }\n"]))),X=t.styled.div(g||(g=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n\n background-color: var(--content-bg);\n"]))),H=t.styled.ul(x||(x=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n\n list-style-type: none;\n"]))),V=t.styled.li(w||(w=l(["\n display: flex;\n margin: 0 0;\n padding: 6px 10px;\n\n font-size: 12px;\n line-height: 1.3;\n"]))),G=t.styled.pre(k||(k=l(["\n display: flex;\n margin: 0 0;\n\n color: var(--code-var);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),Q=t.styled.pre(S||(S=l(["\n margin: 0 0;\n\n color: var(--code-func);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),Y=t.styled.button(j||(j=l(["\n margin: 0;\n margin-left: 1rem;\n padding: 0.2rem 0.4rem;\n\n color: var(--primary-text);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n\n background-color: var(--primary);\n border: var(--primary);\n border-radius: 4px;\n\n &:focus {\n outline: 0;\n box-shadow: 0 0 0 1px var(--primary-dark), 0 0 3px 0 var(--primary-dark);\n }\n\n &:hover {\n background-color: var(--primary-dark);\n }\n"]))),Z=t.styled.span(O||(O=l(["\n display: inline-block;\n\n [data-opened='true'] > & {\n display: block;\n padding-left: 8px;\n }\n\n &[data-hidden='folded'] {\n display: none;\n\n [data-opened='true'] > & {\n display: block;\n }\n }\n\n &[data-hidden='expanded'] {\n display: inline-block;\n\n [data-opened='true'] > & {\n display: none;\n }\n }\n\n &:not(:last-child)::after {\n content: ', ';\n }\n"]))),ee=t.styled.span(E||(E=l(["\n color: var(--code-bool);\n font-style: italic;\n"]))),ne=t.styled.span(z||(z=l(["\n color: var(--code-number);\n"]))),te=t.styled.span($||($=l(["\n color: var(--code-string);\n"]))),re=t.styled.span(T||(T=l(["\n color: var(--code-number);\n font-weight: bold;\n"]))),oe=t.styled.span(A||(A=l(["\n color: var(--code-date);\n"]))),ie=t.styled.span(C||(C=l(["\n /* nothing here */\n"]))),ae=t.styled.span(D||(D=l(["\n color: var(--code-regexp);\n"]))),ce=t.styled.div(q||(q=l(["\n display: flex;\n * + * {\n margin-left: 0.5rem;\n }\n"]))),le={boolean:ee,date:oe,keyword:re,number:ne,string:te,symbol:ie,regexp:ae},se=t.styled.div(I||(I=l(["\n display: flex;\n flex-shrink: 0;\n padding: 1rem;\n"]))),ue=t.styled.input(P||(P=l(["\n /* nothing here */\n"]))),fe=t.styled.label(M||(M=l(["\n display: flex;\n flex-shrink: 0;\n padding: 0 0.5rem;\n"]))),de=t.styled.input(F||(F=l(["\n display: flex;\n flex-shrink: 0;\n margin: 0 0.5rem;\n padding: 0 0.5rem;\n\n border: 1px solid var(--border);\n border-radius: 0.2rem;\n\n &:focus {\n border-color: var(--primary);\n outline: 0;\n box-shadow: 0 0 0 1px var(--primary);\n }\n"]))),me=t.styled.div(L||(L=l(["\n display: flex;\n flex-direction: column;\n"]))),pe=function(e){var t=e.title,r=c(e,N);fe((function(){ue((function(){n.spec({attr:{type:"checkbox"}}),n.spec(r)})),n.spec({text:t})}))},ve=t.styled.select(J||(J=l([""]))),be=t.styled.input(B||(B=l(["\n display: flex;\n flex-shrink: 0;\n padding: 0 0.5rem;\n border: 1px solid var(--border);\n border-radius: 0.2rem;\n margin-bottom: 1rem;\n font-size: 1rem;\n line-height: 2rem;\n\n &:focus {\n border-color: var(--primary);\n outline: 0;\n box-shadow: 0 0 0 2px var(--primary);\n }\n"]))),he=Math.pow(983020,2).toString(36);function ye(e,n){var t;return null!==(t=localStorage.getItem("".concat(he,"-").concat(e)))&&void 0!==t?t:n}function ge(e,n){return localStorage.setItem("".concat(he,"-").concat(e),n),n}function xe(n,t){var r=e.createEvent({loc:{file:"/src/setting.ts",line:11,column:17},name:"save",sid:"wnm0lw"});return r.watch((function(e){return ge(n,e)})),{read:function(){return ye(n,t)},write:function(e){return ge(n,e)},save:r}}function we(n,t){var r=e.createEvent({loc:{file:"/src/setting.ts",line:20,column:17},name:"save",sid:"-o65dje"});return r.watch((function(e){return ge(n,JSON.stringify(e))})),{read:function(){return JSON.parse(ye(n,JSON.stringify(t)))},write:function(e){return ge(n,JSON.stringify(e)),e},save:r}}function ke(n){var t=Object.keys(n),r=t[0],o=xe("last-tab",r),i=o.read(),a=t.includes(i)?i:r,c=e.createEvent({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),l=e.restore(c,a,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});l.watch(o.write),_((function(){W((function(){var e,r=m(t);try{var o=function(){var t=e.value,r=n[t];K({text:r.title,data:{active:l.map((function(e){return e===t}))},handler:{click:c.prepend((function(){return t}))}})};for(r.s();!(e=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}));var e,r=m(t);try{var o=function(){var t=e.value,r=n[t];X({visible:l.map((function(e){return e===t})),fn:function(){r.fn({changeTab:c})}})};for(r.s();!(e=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}))}var Se=/\[object ([\w\s]+)\]/;function je(e){var n=Object.prototype.toString.call(e),t=Se.exec(n);return t?t[1]:"unknown"}function Oe(t){var r=n.rec((function(t){var o=t.store,i=s(n.remap(o,["value","parentOpened"]),2),a=i[0],c=i[1],l=e.createEvent({loc:{file:"/src/object-view.ts",line:13,column:32},name:"foldableClicked",sid:"-stmnmb"}),f=e.createStore(!1,{and:{serialize:"ignore"},loc:{file:"/src/object-view.ts",line:14,column:29},name:"$localOpened",sid:"-lmwtnk"}).on(l,(function(e){return!e})),d=e.combine({and:[c,f,function(e,n){return!0===e&&n}],or:{loc:{file:"/src/object-view.ts",line:15,column:24},name:"$opened",sid:"6x0687"}});n.variant({source:e.combine({and:[a,d,function(e,n){return{type:je(e),value:e,opened:n}}],or:{loc:{file:"/src/object-view.ts",line:17,column:20},name:"source",sid:"-2jts3p"}}),key:"type",cases:{String:function(e){var t=e.store;return le.string({text:['"',n.remap(t,"value"),'"']})},Number:function(e){var t=e.store;return le.number({text:n.remap(t,"value")})},BigInt:function(e){var t=e.store;return le.number({text:[n.remap(t,"value"),"n"],attr:{title:"BigInt"}})},Boolean:function(e){var t=e.store;return le.boolean({text:n.remap(t,"value")})},Null:function(){return le.keyword({text:"null"})},Undefined:function(){return le.keyword({text:"undefined"})},Symbol:function(e){var t=e.store;return le.symbol({text:n.remap(t,"value")})},RegExp:function(e){var t=e.store,r=n.remap(t,"value"),o=s(n.remap(r,["source","flags"]),2),i=o[0],a=o[1];le.regexp({text:["/",i,"/",a]})},Function:function(e){var t=e.store,r=n.remap(t,"value"),o={title:r.map((function(e){return e.toString()}))};n.h("span",{text:"function",attr:o}),le.keyword({text:r.map((function(e){return e.name?" ".concat(e.name):""})),attr:o}),n.h("span",{text:"()",attr:o})},AsyncFunction:function(e){var t=e.store,r=n.remap(t,"value"),o={title:r.map((function(e){return e.toString()}))};n.h("span",{text:"async function",attr:o}),le.keyword({text:r.map((function(e){return e.name?" ".concat(e.name):""})),attr:o}),n.h("span",{text:"()",attr:o})},Window:function(e){var t=e.store,r=n.remap(t,"opened");n.h("span",(function(){n.spec({data:{opened:r}}),n.h("span",{text:"Window {...",fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.spec({text:"}"})}))},Date:function(){le.date({text:a.map((function(e){var n;return null===(n=e.toISOString)||void 0===n?void 0:n.call(e)})),attr:{title:a}})},Array:function(t){var o=t.store,i=s(n.remap(o,["value","opened"]),2),a=i[0],c=i[1];n.h("span",(function(){n.spec({data:{opened:c}}),n.h("span",{text:"Array [",data:{clickable:!0},fn:function(){n.handler({passive:!0,stop:!0,capture:!0,prevent:!0},{click:l})}}),n.list(a,(function(n){var t=n.store,o=n.key;return Z((function(){return r({store:e.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:91,column:35},name:"store",sid:"xbvkm7"}})})}))})),n.spec({text:"]"})}))},Arguments:function(t){var o=t.store,i=s(n.remap(o,["value","opened"]),2),a=i[0],c=i[1];n.h("span",(function(){n.spec({data:{opened:c}}),n.h("span",{text:"Arguments [",fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.list(a.map((function(e){return u(e)})),(function(n){var t=n.store,o=n.key;return Z((function(){return r({store:e.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:111,column:35},name:"store",sid:"nufsva"}})})}))})),n.spec({text:"]"})}))},Set:function(t){var o=t.store,i=s(n.remap(o,["value","opened"]),2),a=i[0],c=i[1];n.h("span",(function(){n.spec({data:{opened:c}}),n.h("span",{text:"Set [",fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.list(a.map((function(e){return u(e.values())})),(function(n){var t=n.store,o=n.key;return Z((function(){return r({store:e.combine({and:[{value:t,parentOpened:c,key:o.map(String)}],or:{loc:{file:"/src/object-view.ts",line:131,column:35},name:"store",sid:"-htvons"}})})}))})),n.spec({text:"]"})}))},Map:function(t){var o=t.store,i=s(n.remap(o,["value","opened"]),2),a=i[0],c=i[1];n.h("span",(function(){n.spec({data:{opened:c}}),n.h("span",(function(){n.spec({text:"Map {"}),n.handler({passive:!0,stop:!0,capture:!0},{click:l})})),n.list(a.map((function(e){return u(e.entries())})),(function(t){var o=t.store,i=s(n.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){le.string({text:['"',a,'"'],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.h("span",{text:" => "}),r({store:e.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:159,column:43},name:"store",sid:"fb9vmt"}})})}))})),n.spec({text:"}"})}))},Error:function(t){var o=t.store,i=s(n.remap(o,["value","opened"]),2),a=i[0],c=i[1],f=s(n.remap(a,["name","message"]),2),d=f[0],m=f[1],p=a.map((function(e){var n;return null!==(n=e.stack)&&void 0!==n?n:null}));n.h("span",(function(){n.spec({data:{opened:c}}),n.h("span",{text:[d," {"],attr:{title:a.map((function(e){return e.constructor.name}))},fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),Z((function(){n.spec({data:{hidden:"expanded"}}),le.string({text:['"message"'],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.h("span",{text:": "}),r({store:e.combine({and:[{value:m,parentOpened:c,key:"message"}],or:{loc:{file:"/src/object-view.ts",line:193,column:39},name:"store",sid:"5h7l4"}})})})),Z((function(){n.spec({data:{hidden:"folded"}}),le.string({text:['"stack"'],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.h("span",{text:": "});var t=e.combine({and:[{value:p,parentOpened:c,key:"stack"}],or:{loc:{file:"/src/object-view.ts",line:209,column:42},name:"store",sid:"-t932g0"}});r({store:t})})),n.list(a.map((function(e){return u(Object.entries(e))})),(function(t){var o=t.store,i=s(n.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){le.string({text:['"',a,'"'],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.h("span",{text:": "}),r({store:e.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:227,column:43},name:"store",sid:"-udqrh"}})})}))}))})),n.h("span",{text:"}"})},__:function(t){var o=t.store;n.h("span",(function(){var t=s(n.remap(o,["type","value","opened"]),3),i=t[0],a=t[1],c=t[2];n.spec({data:{opened:c}}),n.h("span",{text:[i," {"],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.list(a.map((function(e){return u(Object.entries(e))})),(function(t){var o=t.store,i=s(n.remap(o,["0","1"]),2),a=i[0],u=i[1];Z((function(){le.string({text:['"',a,'"'],fn:function(){n.handler({passive:!0,stop:!0,capture:!0},{click:l})}}),n.h("span",{text:": "}),r({store:e.combine({and:[{value:u,parentOpened:c,key:a}],or:{loc:{file:"/src/object-view.ts",line:260,column:43},name:"store",sid:"-gh80lu"}})})}))}))})),n.h("span",{text:"}"})}}})})),o=t.value,i=e.combine({and:[{value:o,parentOpened:e.createStore(!0,{and:{serialize:"ignore"},loc:{file:"/src/object-view.ts",line:277,column:22},name:"parentOpened",sid:"-2w11af"}),key:""},function(e){return e}],or:{loc:{file:"/src/object-view.ts",line:275,column:18},name:"store",sid:"kebhe"}});r({store:i})}function Ee(e,n){return n.trimDomain?e.map((function(e){return e.replace("".concat(n.trimDomain,"/"),"")})):e}var ze=we("filter-kinds",["event","store"]),$e=xe("filter-text","");function Te(t,r,o){var i=e.createEvent({loc:{file:"/src/logs.ts",line:11,column:23},name:"toggleKind",sid:"al2efl"}),a=e.createEvent({loc:{file:"/src/logs.ts",line:12,column:26},name:"filterChanged",sid:"sbtuox"}),c=e.createEvent({loc:{file:"/src/logs.ts",line:13,column:25},name:"clearClicked",sid:"g7uhen"}),l=e.createStore(ze.read(),{and:{serialize:"ignore"},loc:{file:"/src/logs.ts",line:14,column:19},name:"$kinds",sid:"th13oa"}),f=e.restore(a,$e.read(),{loc:{file:"/src/logs.ts",line:15,column:24},name:"$filterText",sid:"-aim8j7"});l.on(i,(function(e,n){return e.includes(n)?e.filter((function(e){return e!==n})):[].concat(u(e),[n])})).watch(ze.write),f.watch($e.write),t.on(c,(function(){return[]})).on(r,(function(){return[]})),se((function(){n.h("span",{text:"Show: "}),pe({title:"Event",attr:{checked:l.map((function(e){return e.includes("event")}))},handler:{click:i.prepend((function(){return"event"}))}}),pe({title:"Store",attr:{checked:l.map((function(e){return e.includes("store")}))},handler:{click:i.prepend((function(){return"store"}))}}),pe({title:"Effect",attr:{checked:l.map((function(e){return e.includes("effect")}))},handler:{click:i.prepend((function(){return"effect"}))}}),n.h("span",{text:"Filter:"}),de({attr:{value:f},handler:{change:a.prepend((function(e){var n,t;return null!==(n=null===(t=e.currentTarget)||void 0===t?void 0:t.value)&&void 0!==n?n:""}))}}),Y({text:"Clear",handler:{click:c},attr:{title:"Press CTRL+L to clear logs"}})})),H((function(){n.list({source:t,key:"id",fields:["kind","name","payload","datetime"],fn:function(n){var t=s(n.fields,4),r=t[0],i=t[1],a=t[2],c=t[3],u=Ee(i,o),d=e.combine({and:[r,l,function(e,n){return n.includes(e)}],or:{loc:{file:"/src/logs.ts",line:58,column:37},name:"$kindMatched",sid:"-80l9jl"}}),m=e.combine({and:[f,u,function(e,n){return n.includes(e)}],or:{loc:{file:"/src/logs.ts",line:59,column:37},name:"$textMatched",sid:"3h5st1"}}),p=e.combine({and:[d,m,function(e,n){return e&&n}],or:{loc:{file:"/src/logs.ts",line:60,column:33},name:"$visible",sid:"-8m6nr6"}});V({visible:p,fn:function(){var e=c.map((function(e){return e.toISOString()})),n=c.map((function(e){return e.toLocaleTimeString()}));G({text:[n," ▸ "],attr:{title:e}}),G({text:r}),G({text:[" «",u,"» "]}),Q((function(){return Oe({value:a})}))}})}})}))}var Ae;function Ce(t,r){var i=t.map((function(e){return Object.entries(e).map((function(e){var n=s(e,2);return o({name:n[0]},n[1])}))})),a=e.createEvent({loc:{file:"/src/stores.ts",line:9,column:26},name:"filterChanged",sid:"-l7aet0"}),c=e.restore(a,"",{loc:{file:"/src/stores.ts",line:10,column:20},name:"$filter",sid:"h9pq98"}),l=e.combine({and:[i,c,function(e,n){return e.filter((function(e){return e.name.includes(n)}))}],or:{loc:{file:"/src/stores.ts",line:11,column:26},name:"$filteredList",sid:"d36u76"}}),u=a.prepend((function(e){var n;return null===(n=e.currentTarget)||void 0===n?void 0:n.value}));Ie((function(){be({attr:{value:c,placeholder:"Type a part of store name"},handler:{input:u}})})),H((function(){n.list({source:l,key:"name",fields:["name","value"],fn:function(e){var n=s(e.fields,2),t=n[0],o=n[1];V((function(){G({text:[Ee(t,r),": "]}),Q((function(){Oe({value:o})}))}))}})}))}var De,qe,Ie=t.styled.div(Ae||(Ae=l(["\n padding: 6px;\n\n "," {\n width: 100%;\n box-sizing: border-box;\n margin: 0;\n }\n"])),be);function Pe(e,t){H((function(){var r=e.map((function(e){return Object.entries(e).map((function(e){var n=s(e,2);return o({name:n[0]},n[1])}))}));n.list({source:r,key:"name",fields:["name","history"],fn:function(e){var n=s(e.fields,2),r=n[0];n[1],V((function(){G({text:[Ee(r,t)," "]})}))}})}))}function Me(e,t){H((function(){var r=e.map((function(e){return Object.entries(e).map((function(e){var n=s(e,2);return o({sid:n[0]},n[1])}))}));n.list({source:r,key:"sid",fields:["name","inFlight"],fn:function(e){var r=s(e.fields,2),o=r[0],i=r[1];V((function(){G({text:[Ee(o,t)," "]}),Q((function(){n.h("span",(function(){n.h("span",{text:[" {"]}),Z((function(){le.string({text:'"inFlight": '}),le.number({text:i})})),n.text(qe||(qe=l(["}"])))}))}))}))}})}))}t.styled.div(De||(De=l(["\n display: flex;\n flex-flow: row nowrap;\n\n :nth-child(2),\n :nth-child(3),\n :nth-child(4),\n :nth-child(5) {\n opacity: 0.8;\n }\n\n > :nth-child(n + 6) {\n opacity: 0.5;\n }\n\n > :not(:first-child) {\n margin-left: 0.5rem;\n }\n"])));var Fe,Le,Je;function Be(t){var r=t.$files.map((function(e){return Object.keys(e).sort((function(e,n){return e<n?-1:e>n?1:0}))})),o=r.map((function(e){return e.length>0})),i=e.createEvent({loc:{file:"/src/files.ts",line:17,column:25},name:"fileSelected",sid:"-jqe342"}),a=e.createEvent({loc:{file:"/src/files.ts",line:18,column:24},name:"fileCleanup",sid:"hlqci5"}),c=e.createStore("",{and:{serialize:"ignore"},loc:{file:"/src/files.ts",line:19,column:25},name:"$currentFile",sid:"8hcd8i"}),l=c.map((function(e){return""!==e})),s=l.map((function(e){return!e}));c.on(i,(function(e,n){return n})).on(a,(function(){return""})),se({style:{flexDirection:"column"},visible:o,fn:function(){ce({visible:l,fn:function(){Y({text:"◀",handler:{click:a.prepend((function(){}))}}),n.h("span",{text:"File:"}),ve({handler:{change:i.prepend((function(e){return e.currentTarget.value}))},fn:function(){n.list(r,(function(t){var r=t.store;n.h("option",{attr:{value:r,selected:e.combine({and:[r,c,function(e,n){return e===n}],or:{loc:{file:"/src/files.ts",line:48,column:50},name:"selected",sid:"6n66ec"}})},text:r})}))}})}}),me({visible:s,fn:function(){var t=e.createEvent({loc:{file:"/src/files.ts",line:60,column:42},name:"filterChanged",sid:"k3tq2y"}),o=e.restore(t,"",{loc:{file:"/src/files.ts",line:61,column:36},name:"$filter",sid:"ylqhpg"}),a=e.combine({and:[o,r,function(e,n){return n.filter((function(n){return n.includes(e)}))}],or:{loc:{file:"/src/files.ts",line:62,column:43},name:"$filteredFiles",sid:"-f0p9a1"}});Qe({text:"Please, select file from the list or type the name"});var c=t.prepend((function(e){var n;return null===(n=e.currentTarget)||void 0===n?void 0:n.value}));me((function(){be({attr:{value:o,placeholder:"Type a part of the file name"},handler:{input:c}}),Ye((function(){n.list(a,(function(n){var t=n.store;n.key;var r=e.createEvent({loc:{file:"/src/files.ts",line:75,column:51},name:"selectFile",sid:"4tb03w"});e.sample({and:[{source:t,clock:r,target:i}],or:{loc:{file:"/src/files.ts",line:76,column:32},sid:"ipctc"}}),Ze({text:t,attr:{tabIndex:"0"},handler:{click:r}})}))}))}))}})}}),se({visible:l,fn:function(){var n=e.combine({and:[c,t.$files,t.$events,function(e,n,t){return""!==e&&n[e]?Object.fromEntries(n[e].filter((function(e){return"event"===e.kind})).map((function(e){var n=e.name;return[n,t[n]]}))):{}}],or:{loc:{file:"/src/files.ts",line:96,column:28},name:"$events",sid:"n8saf2"}}),r=e.combine({and:[c,t.$files,t.$stores,function(e,n,t){return""!==e&&n[e]?Object.fromEntries(n[e].filter((function(e){return"store"===e.kind})).map((function(e){var n=e.name;return[n,t[n]]}))):{}}],or:{loc:{file:"/src/files.ts",line:104,column:28},name:"$stores",sid:"-qtmfjl"}}),o=e.combine({and:[c,t.$files,t.$effects,function(e,n,t){return""!==e&&n[e]?Object.fromEntries(n[e].filter((function(e){return"effect"===e.kind})).map((function(e){var n=e.name;return[n,t[n]]}))):{}}],or:{loc:{file:"/src/files.ts",line:112,column:29},name:"$effects",sid:"n4x7jt"}});me((function(){Pe(n,t.options),Ce(r,t.options),Me(o,t.options)}))}})}var Ne,Re,Ue,_e,We,Ke,Xe,He,Ve,Ge,Qe=t.styled.h4(Fe||(Fe=l(["\n margin-top: 0;\n"]))),Ye=t.styled.div(Le||(Le=l(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n align-items: stretch;\n\n list-style-type: none;\n\n :nth-child(2n) {\n background-color: rgba(0, 0, 0, 0.1);\n }\n"]))),Ze=t.styled.button(Je||(Je=l(["\n color: var(--text);\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n font-size: 14px;\n text-align: left;\n\n border: var(--primary);\n padding: 0.2rem 0.4rem;\n\n cursor: pointer;\n\n &:hover {\n background-color: var(--primary-dark);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--primary-dark);\n }\n"])));function en(t,r,o){var i=e.createEvent({loc:{file:"/src/traces.ts",line:7,column:25},name:"clearClicked",sid:"-sdjk8b"});t.on([i,r],(function(){return[]})),se((function(){Y({text:"Clear",handler:{click:i},attr:{title:"Press CTRL+L to clear logs"}})})),H((function(){n.list({source:t,key:"time",fn:function(e){var t=e.store;rn((function(){Oe({value:n.remap(t,"time").map((function(e){return new Date(e)}))})})),tn((function(){n.list(n.remap(t,"traces"),(function(e){var t=e.store;n.variant({source:t,key:"type",cases:{event:function(e){var t=e.store;V({fn:function(){on((function(){n.text(Ne||(Ne=l(['Event "']))),n.h("span",{attr:{class:"event"},text:n.remap(t,"name")}),n.text(Re||(Re=l(['" triggered with '])))})),Q((function(){return Oe({value:n.remap(t,"argument")})}))}})},store:function(e){var t=e.store;V({fn:function(){on((function(){n.text(Ue||(Ue=l(['Store "']))),n.h("span",{attr:{class:"store"},text:n.remap(t,"name")}),n.text(_e||(_e=l(['" changed from '])))})),Q((function(){return Oe({value:n.remap(t,"before")})})),on((function(){return n.text(We||(We=l([" to "])))})),Q((function(){return Oe({value:n.remap(t,"current")})}))}})},effect:function(e){var t=e.store;V({fn:function(){on((function(){n.text(Ke||(Ke=l(['Effect "']))),n.h("span",{attr:{class:"effect"},text:n.remap(t,"name")}),n.text(Xe||(Xe=l(['" triggered with '])))})),Q((function(){return Oe({value:n.remap(t,"argument")})}))}})}}})}))}))}})}))}var nn,tn=t.styled.div(He||(He=l(["\n display: flex;\n flex-direction: column;\n padding: 0.25rem 0.5rem;\n"]))),rn=t.styled.div(Ve||(Ve=l(["\n font-size: 0.8rem;\n margin-top: 1rem;\n margin-left: 0.5rem;\n"]))),on=t.styled.div(Ge||(Ge=l(["\n display: flex;\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n margin: 0 0.5rem;\n flex-shrink: 0;\n\n .event {\n color: var(--code-var);\n }\n\n .store {\n color: var(--code-string);\n }\n\n .effect {\n color: var(--code-number);\n }\n"]))),an=e.createStore(!1,{and:{serialize:"ignore"},loc:{file:"/src/view.ts",line:14,column:19},name:"$isVisible",sid:"m45rq1"}),cn=e.createEvent({loc:{file:"/src/view.ts",line:15,column:22},name:"togglePressed",sid:"-49o1h2"}),ln=e.createEvent({loc:{file:"/src/view.ts",line:16,column:21},name:"clearPressed",sid:"m6ugh"}),sn=e.createEvent({loc:{file:"/src/view.ts",line:17,column:22},name:"showInspector",sid:"-vcvppo"});function un(){var t=e.createStore(!1,{and:{serialize:"ignore"},loc:{file:"/src/view.ts",line:31,column:20},name:"$inDrag",sid:"ggb9xd"}),r=e.createEvent({loc:{file:"/src/view.ts",line:32,column:22},name:"mouseDown",sid:"2cyk2w"}),o=e.createEvent({loc:{file:"/src/view.ts",line:33,column:22},name:"mouseMove",sid:"-ynkdai"}),i=e.createEvent({loc:{file:"/src/view.ts",line:34,column:20},name:"mouseUp",sid:"-nqpkkf"});return t.on(r,(function(){return!0})).on(i,(function(){return!1})),n.spec({handler:{mousedown:r}}),r.watch((function(){document&&(document.addEventListener("mousemove",o),document.addEventListener("mouseup",i))})),i.watch((function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)})),{mouseMove:o,mouseDown:r,mouseUp:i,$inDrag:t}}function fn(){var t=e.createEvent({loc:{file:"/src/view.ts",line:50,column:19},name:"setRef",sid:"-lwzk7m"}),r=e.restore(t,null,{loc:{file:"/src/view.ts",line:51,column:17},name:"$ref",sid:"-ajz2fn"});return n.node(t),r}function dn(t,r,o,i,a,c){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};s.visible&&sn(),console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),R({visible:an,fn:function(){var u=fn(),f=we("width",736),d=e.createStore(f.read(),{and:{serialize:"ignore"},loc:{file:"/src/view.ts",line:66,column:27},name:"$width",sid:"f875z1"});n.spec({style:{width:n.val(nn||(nn=l(["","px"])),d)}}),U({text:"∙∙∙",fn:function(){var t=un(),r=t.mouseMove,o=t.mouseDown,i=t.mouseUp,a=t.$inDrag;n.spec({data:{active:a}});var c=e.createStore(0,{and:{serialize:"ignore"},loc:{file:"/src/view.ts",line:73,column:35},name:"$shift",sid:"-fw25b4"}),l=e.sample({and:[u,o,function(e,n){return{block:e,event:n}}],or:{loc:{file:"/src/view.ts",line:74,column:38},name:"dragStart",sid:"-x23vsk"}}),s=e.sample({and:[u,r,function(e,n){return e.getBoundingClientRect().right-n.clientX}],or:{loc:{file:"/src/view.ts",line:78,column:37},name:"dragMove",sid:"xhmbk0"}}),m=e.sample({and:[c,s,function(e,n){return n-e}],or:{loc:{file:"/src/view.ts",line:82,column:41},name:"correctWidth",sid:"6o31yd"}});d.on(m,(function(e,n){return n})),c.on(l,(function(e,n){var t=n.block,r=n.event;return t?t.getBoundingClientRect().left-r.clientX:0})),e.sample({and:[d,i,f.save],or:{loc:{file:"/src/view.ts",line:85,column:20},sid:"rh8y91"}})}}),ke({files:{title:"Files",fn:function(){Be({$stores:t,$events:r,$effects:o,$files:a,options:s})}},stores:{title:"Stores",fn:function(){Ce(t,s)}},effects:{title:"Effects",fn:function(){Me(o,s)}},events:{title:"Events",fn:function(){Pe(r,s)}},traces:{title:"Traces",fn:function(){en(c,ln)}},logs:{title:"Logs",fn:function(){Te(i,ln,s)}}})}})}"object"===("undefined"==typeof document?"undefined":i(document))&&document.addEventListener("keypress",(function(e){e.ctrlKey&&("l"!==e.key&&12!==e.keyCode||ln(),"b"!==e.key&&2!==e.keyCode||cn())})),an.on(cn,(function(e){return!e})).on(sn,(function(){return!0}));var mn=e.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:5,column:15},name:"$files",sid:"-b5fubx"}),pn=e.createEvent({loc:{file:"/src/index.ts",line:6,column:17},name:"storeAdd",sid:"-w7nr43"}),vn=e.createEvent({loc:{file:"/src/index.ts",line:7,column:21},name:"storeUpdated",sid:"w3u5z1"}),bn=e.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:8,column:16},name:"$stores",sid:"ioizqq"}),hn=e.createEvent({loc:{file:"/src/index.ts",line:9,column:17},name:"eventAdd",sid:"-o9yfun"}),yn=e.createEvent({loc:{file:"/src/index.ts",line:10,column:23},name:"eventTriggered",sid:"-3vh36s"}),gn=e.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:11,column:16},name:"$events",sid:"-b7nvrd"}),xn=e.createEvent({loc:{file:"/src/index.ts",line:12,column:18},name:"effectAdd",sid:"fekv6p"}),wn=e.createEvent({loc:{file:"/src/index.ts",line:13,column:24},name:"effectTriggered",sid:"-w5t4dt"}),kn=e.createStore({},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:14,column:17},name:"$effects",sid:"bxdte"}),Sn=e.createStore([],{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:15,column:14},name:"$logs",sid:"e84fof"}),jn=e.createEvent({loc:{file:"/src/index.ts",line:16,column:25},name:"traceStoreChange",sid:"-sfjmqj"}),On=e.createEvent({loc:{file:"/src/index.ts",line:17,column:26},name:"traceEventTrigger",sid:"sv4vkc"}),En=e.createEvent({loc:{file:"/src/index.ts",line:18,column:23},name:"traceEffectRun",sid:"-6m76ro"}),zn=e.merge([jn,On,En],{loc:{file:"/src/index.ts",line:19,column:17},name:"traceAdd",sid:"-l0l835"}),$n=e.createEvent({loc:{file:"/src/index.ts",line:20,column:22},name:"traceFinished",sid:"-g0tcos"}),Tn=e.createStore([],{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:21,column:16},name:"$traces",sid:"-za84d"}),An=e.createStore({time:0,traces:[]},{and:{serialize:"ignore"},loc:{file:"/src/index.ts",line:22,column:22},name:"$currentTrace",sid:"-4lffg7"});An.on(zn,(function(e,n){var t=e.time,r=e.traces;return{time:t||Date.now(),traces:[].concat(u(r),[n])}})),e.guard({and:[{source:An,clock:zn,filter:function(e){return 1===e.traces.length}}],or:{loc:{file:"/src/index.ts",line:27,column:0},sid:"-b1ex4a"}}).watch((function(){return queueMicrotask($n)}));var Cn=e.sample({and:[{source:An,clock:$n}],or:{loc:{file:"/src/index.ts",line:32,column:18},name:"moveTrace",sid:"-dwe01t"}});Tn.on(Cn,(function(e,n){return[].concat(u(e),[n])})),An.reset(Cn),bn.on(pn,(function(e,n){return o(o({},e),{},a({},n.name,{value:n.store.getState(),mapped:n.mapped}))})).on(vn,(function(e,n){var t=n.name,r=n.value;return e[t]=o(o({},e[t]),{},{value:r}),o({},e)})),mn.on(pn,(function(e,n){var t=n.name,r=n.file;if(r){if(e[r]){var i=e[r];return o(o({},e),{},a({},r,[].concat(u(i),[{kind:"store",name:t}])))}return o(o({},e),{},a({},r,[{kind:"store",name:t}]))}return e})),gn.on(hn,(function(e,n){return o(o({},e),{},a({},n.name,{mapped:n.mapped,history:[]}))})).on(yn,(function(e,n){var t=n.name,r=n.params,i=void 0===r?void 0:JSON.parse(JSON.stringify(r));return e[t]=o(o({},e[t]),{},{history:[i].concat(u(e[t].history))}),o({},e)})),mn.on(hn,(function(e,n){var t=n.name,r=n.file;if(r){if(e[r]){var i=e[r];return o(o({},e),{},a({},r,[].concat(u(i),[{kind:"event",name:t}])))}return o(o({},e),{},a({},r,[{kind:"event",name:t}]))}return e})),kn.on(xn,(function(e,n){return o(o({},e),{},a({},n.sid,{name:n.name,effect:n.effect,inFlight:n.effect.inFlight.getState()}))})).on(wn,(function(e,n){var t=n.sid,r=e[t];return e[t]=o(o({},r),{},{inFlight:r.effect.inFlight.getState()}),o({},e)})),mn.on(xn,(function(e,n){var t=n.name,r=n.file;if(r){if(e[r]){var i=e[r];return o(o({},e),{},a({},r,[].concat(u(i),[{kind:"event",name:t}])))}return o(o({},e),{},a({},r,[{kind:"event",name:t}]))}return e}));var Dn=1e3,qn=e.createEffect({handler:function(e){var n=e.name,t=e.kind,r=e.payload;return{id:(++Dn).toString(36),kind:t,name:n,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:118,column:23},name:"createRecordFx",sid:"-epqwjl"});function In(e){return e.graphite}function Pn(n){var t=Jn(n);In(n).seq.unshift(e.step.compute({fn:function(e,n,r){return En({type:"effect",name:t,argument:null==e?void 0:e.param}),e}})),Mn(n.doneData,"".concat(t,".doneData")),Mn(n.failData,"".concat(t,".failData"))}function Mn(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jn(n);In(n).seq.unshift(e.step.compute({fn:function(e,n,r){return On({type:"event",name:t,argument:e}),e}}))}function Fn(n){var t=Jn(n);Mn(n.updates,"".concat(t,".updates")),In(n).seq.unshift(e.step.compute({fn:function(e,n){var t;return n.trace={before:(t=n.state.current,JSON.parse(JSON.stringify(t)))},e}})),In(n).seq.push(e.step.compute({fn:function(e,n,r){return jn({type:"store",name:t,before:n.trace.before,current:e}),e}}))}function Ln(e){var n,t;return null===(n=e.defaultConfig)||void 0===n||null===(t=n.loc)||void 0===t?void 0:t.file}function Jn(e){return e.compositeName.path.join("/")}e.forward({and:{from:yn,to:qn.prepend((function(e){return{kind:"event",name:e.name,payload:e.params}}))},or:{loc:{file:"/src/index.ts",line:129,column:0},sid:"-3wk0bb"}}),e.forward({and:{from:vn,to:qn.prepend((function(e){return{kind:"store",name:e.name,payload:e.value}}))},or:{loc:{file:"/src/index.ts",line:137,column:0},sid:"-3glz3u"}}),Sn.on(qn.doneData,(function(e,n){return[n].concat(u(e))})),exports.addEffect=function(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Jn(n),i=r.sid||n.sid||o;xn({effect:n,name:o,sid:i,attached:null!==(t=r.attached)&&void 0!==t&&t,file:Ln(n)}),Pn(n),e.forward({and:{from:[n,n.finally],to:wn.prepend((function(){return{sid:i}}))},or:{loc:{file:"/src/index.ts",line:247,column:4},sid:"botxlu"}});var a=n.map((function(e){return{kind:"effect",name:o,payload:e}})),c=n.done.map((function(e){return{kind:"effect",name:o+".done",payload:e}})),l=n.fail.map((function(e){return{kind:"effect",name:o+".fail",payload:e}}));e.forward({and:{from:[a,c,l],to:qn},or:{loc:{file:"/src/index.ts",line:266,column:4},sid:"cmddsv"}})},exports.addEvent=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name||Jn(n);hn({event:n,name:r,mapped:t.mapped||!1,file:Ln(n)}),Mn(n),e.forward({and:{from:n.map((function(e){return{name:r,params:e}})),to:yn},or:{loc:{file:"/src/index.ts",line:228,column:4},sid:"arahet"}})},exports.addStore=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name||Jn(n);pn({store:n,name:r,mapped:t.mapped||!1,file:Ln(n)}),Fn(n),e.forward({and:{from:n.updates.map((function(e){return{name:r,value:e}})),to:vn},or:{loc:{file:"/src/index.ts",line:214,column:4},sid:"a81on6"}})},exports.createInspector=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="object"===("undefined"==typeof document?"undefined":i(document))&&document.createElement("div");if(r)return r.classList.add("effector-inspector"),document.body.append(r),n.using(r,(function(){return dn(bn,gn,kn,Sn,mn,Tn,e)})),n.using(r,t.StyledRoot),{root:r}};
//# sourceMappingURL=index.js.map
{
"name": "effector-inspector",
"version": "0.8.2",
"version": "0.9.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "module": "index.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc