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.4.1 to 0.4.2

2

dist/common.js

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

module.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=3)}([function(e,n){e.exports=require("forest")},function(e,n){e.exports=require("effector")},function(e,n){e.exports=require("foliage")},function(e,n,t){"use strict";t.r(n),t.d(n,"createInspector",(function(){return tn})),t.d(n,"addStore",(function(){return rn})),t.d(n,"addEvent",(function(){return on})),t.d(n,"addEffect",(function(){return cn}));var r=t(1),o=t(0),i=t(2);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 a(){var e=I(["\n padding: 0 0.5rem;\n margin: 0 0.5rem;\n border: 1px solid rgba(0, 0, 0, 0.4);\n border-radius: 0.2rem;\n"]);return a=function(){return e},e}function u(){var e=I(["\n padding: 0 0.5rem;\n"]);return u=function(){return e},e}function l(){var e=I([""]);return l=function(){return e},e}function f(){var e=I(["\n display: flex;\n padding: 1rem;\n"]);return f=function(){return e},e}function s(){var e=I(["\n color: orangered;\n"]);return s=function(){return e},e}function d(){var e=I([""]);return d=function(){return e},e}function p(){var e=I(["\n color: olive;\n"]);return p=function(){return e},e}function b(){var e=I(["\n color: blue;\n font-weight: bold;\n"]);return b=function(){return e},e}function m(){var e=I(["\n color: green;\n"]);return m=function(){return e},e}function y(){var e=I(["\n color: blue;\n"]);return y=function(){return e},e}function v(){var e=I(["\n color: mediumvioletred;\n font-style: italic;\n"]);return v=function(){return e},e}function j(){var e=I(["\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"]);return j=function(){return e},e}function O(){var e=I(["\n background-color: transparent;\n border: 1px solid rgba(0, 0, 0, 0.4);\n padding: 0.2rem 0.4rem;\n margin: 0;\n font-family: hasklig, monofur, monospace;\n border-radius: 6px;\n margin-left: 1rem;\n"]);return O=function(){return e},e}function g(){var e=I(["\n margin: 0 0;\n font-family: hasklig, monofur, monospace;\n"]);return g=function(){return e},e}function h(){var e=I(["\n display: flex;\n margin: 0 0;\n color: darkred;\n font-family: hasklig, monofur, monospace;\n"]);return h=function(){return e},e}function x(){var e=I(["\n display: flex;\n padding: 0.5rem 1rem;\n margin: 0 0;\n"]);return x=function(){return e},e}function w(){var e=I(["\n list-style-type: none;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]);return w=function(){return e},e}function S(){var e=I(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n"]);return S=function(){return e},e}function k(){var e=I(["\n padding: 0.5rem 1rem;\n cursor: pointer;\n border-radius: inherit;\n border-top-right-radius: 0;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 mediumvioletred;\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n background: linear-gradient(rgba(199, 21, 133, 0), rgba(199, 21, 133, 0.1));\n }\n"]);return k=function(){return e},e}function A(){var e=I(["\n background-color: white;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n display: flex;\n font-size: 1.2rem;\n font-weight: bold;\n line-height: 2rem;\n position: sticky;\n left: 0;\n right: 0;\n top: 0;\n"]);return A=function(){return e},e}function E(){var e=I(["\n display: flex;\n flex-flow: column;\n position: relative;\n width: 100%;\n border-radius: inherit;\n"]);return E=function(){return e},e}function P(){var e=I(["\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 14.5px 5.2px -10px rgba(0, 0, 0, 0.038),\n 0 23.9px 16.6px -10px rgba(0, 0, 0, 0.057),\n 0 64px 118px -10px rgba(0, 0, 0, 0.08), 0 0 10px -3px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: row;\n bottom: 3rem;\n right: 3rem;\n top: 3rem;\n position: fixed;\n z-index: 1000;\n user-select: none;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'PT Sans', Helvetica, Arial, sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.5;\n width: 100%;\n max-width: 46rem;\n\n & > * + * {\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n\n @media screen and (max-width: 700px) {\n max-width: 30rem;\n }\n"]);return P=function(){return e},e}function I(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var T=i.styled.div(P()),z=i.styled.section(E()),D=i.styled.div(A()),$=i.styled.div(k()),M=i.styled.div(S()),C=i.styled.ul(w()),q=i.styled.li(x()),U=i.styled.pre(h()),F=i.styled.pre(g()),_=i.styled.button(O()),N=i.styled.span(j()),B=i.styled.span(v()),L=i.styled.span(y()),R=i.styled.span(m()),W=i.styled.span(b()),J={boolean:B,date:i.styled.span(p()),keyword:W,number:L,string:R,symbol:i.styled.span(d()),regexp:i.styled.span(s())},H=i.styled.div(f()),K=i.styled.input(l()),V=i.styled.label(u()),G=i.styled.input(a()),Q=function(e){var n=e.title,t=c(e,["title"]);V((function(){K((function(){Object(o.spec)({attr:{type:"checkbox"}}),Object(o.spec)(t)})),Object(o.spec)({text:n})}))},X=Math.pow(983020,3);function Y(e,n){var t,r;return null!==(t=null!==(r=localStorage.getItem("".concat(X,"-").concat(e)))&&void 0!==r?r:n)&&void 0!==t?t:""}function Z(e,n){return localStorage.setItem("".concat(X,"-").concat(e),n),n}function ee(e){return{read:function(n){return Y(e,n)},write:function(n){return Z(e,n)}}}function ne(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return te(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return te(e,n)}(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,c=!0,a=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==t.return||t.return()}finally{if(a)throw i}}}}function te(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}var re=ee("last-tab");function oe(e){var n=Object.keys(e),t=n[0],o=re.read(t),i=n.includes(o)?o:t,c=Object(r.createEvent)({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),a=Object(r.restore)(c,i,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});a.watch(re.write),z((function(){D((function(){var t,r=ne(n);try{var o=function(){var n=t.value,r=e[n];$({text:r.title,data:{active:a.map((function(e){return e===n}))},handler:{click:c.prepend((function(){return n}))}})};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}));var t,r=ne(n);try{var o=function(){var n=t.value,r=e[n];M({visible:a.map((function(e){return e===n})),fn:function(){r.fn({changeTab:c})}})};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}))}function ie(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,n)||ae(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 ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ae(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 ae(e,n){if(e){if("string"==typeof e)return ue(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)?ue(e,n):void 0}}function ue(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}var le=/\[object ([\w\s]+)\]/;function fe(e){var n=Object.prototype.toString.call(e),t=le.exec(n);return t?t[1]:"unknown"}function se(e){var n=Object(o.rec)((function(e){var t=e.store;Object(o.variant)({source:t.map((function(e){return{type:fe(e)}})),key:"type",cases:{String:function(){return J.string({text:['"',t,'"']})},Number:function(){return J.number({text:t})},BigInt:function(){return J.number({text:[t,"n"],attr:{title:"BigInt"}})},Boolean:function(){return J.boolean({text:t})},Null:function(){return J.keyword({text:"null"})},Undefined:function(){return J.keyword({text:"undefined"})},Symbol:function(){return J.symbol({text:t})},RegExp:function(){var e=t.map((function(e){return e.source})),n=t.map((function(e){return e.flags}));J.regexp({text:["/",e,"/",n]})},Function:function(){var e={title:t.map((function(e){return e.toString()}))};Object(o.h)("span",{text:"function",attr:e}),J.keyword({text:t.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(o.h)("span",{text:"()",attr:e})},AsyncFunction:function(){var e={title:t.map((function(e){return e.toString()}))};Object(o.h)("span",{text:"async function",attr:e}),J.keyword({text:t.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(o.h)("span",{text:"()",attr:e})},Window:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:48,column:38},name:"click",sid:"nc9du1"}),n=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:49,column:39},name:"opened",sid:"s6h3uu"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:n}}),Object(o.h)("span",{text:"Window {...",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.spec)({text:"}"})}))},Date:function(){J.date({text:t.map((function(e){var n;return null===(n=e.toISOString)||void 0===n?void 0:n.call(e)})),attr:{title:t}})},Array:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:68,column:38},name:"click",sid:"-ic23p1"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:69,column:39},name:"opened",sid:"-dhudo8"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"[",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(t,(function(e){var t=e.store;return N((function(){return n({store:t})}))})),Object(o.spec)({text:"]"})}))},Arguments:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:83,column:38},name:"click",sid:"8nics2"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:84,column:39},name:"opened",sid:"dhq2sv"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"Arguments [",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(t.map((function(e){return ce(e)})),(function(e){var t=e.store;return N((function(){return n({store:t})}))})),Object(o.spec)({text:"]"})}))},Set:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:98,column:38},name:"click",sid:"pp4qz2"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:99,column:39},name:"opened",sid:"ujcgzv"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"Set [",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(t.map((function(e){return ce(e.values())})),(function(e){var t=e.store;return N((function(){return n({store:t})}))})),Object(o.spec)({text:"]"})}))},Map:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:113,column:38},name:"click",sid:"-uewb2w"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:114,column:39},name:"opened",sid:"ydad3b"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",(function(){Object(o.spec)({text:"Map {"}),Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})})),Object(o.list)(t.map((function(e){return ce(e.entries())})),(function(t){var r=t.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:" => "}),n({store:c})}))})),Object(o.spec)({text:"}"})}))},Error:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:139,column:38},name:"click",sid:"1s5zqc"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:140,column:39},name:"opened",sid:"5h6o7i"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:[t.map((function(e){return e.name}))," {"],attr:{title:t.map((function(e){return e.constructor.name}))},fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),N((function(){Object(o.spec)({data:{hidden:"expanded"}}),J.string({text:['"message"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),n({store:t.map((function(e){return e.message}))})})),N((function(){Object(o.spec)({data:{hidden:"folded"}}),J.string({text:['"stack"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),n({store:t.map((function(e){return e.stack}))})})),Object(o.list)(t.map((function(e){return ce(Object.entries(e))})),(function(t){var r=t.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),n({store:c})}))}))})),Object(o.h)("span",{text:"}"})},__:function(e){var i=e.store;Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:190,column:38},name:"click",sid:"ek11jn"}),c=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:191,column:39},name:"opened",sid:"8b3nqq"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:c}}),Object(o.h)("span",{text:[i.map((function(e){return e.type}))," {"],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(t.map((function(e){return ce(Object.entries(e))})),(function(t){var r=t.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),n({store:c})}))}))})),Object(o.h)("span",{text:"}"})}}})}));n({store:e.value})}function de(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,n)||be(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 pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(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 be(e,n){if(e){if("string"==typeof e)return me(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)?me(e,n):void 0}}function me(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}var ye,ve=(ye="filter-kinds",{read:function(e){return JSON.parse(Y(ye,JSON.stringify(e)))},write:function(e){return Z(ye,JSON.stringify(e)),e}}),je=ee("filter-text");function Oe(e){var n=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:10,column:23},name:"toggleKind",sid:"a40s1e"}),t=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:11,column:26},name:"filterChanged",sid:"rus8aq"}),i=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:12,column:25},name:"clearClicked",sid:"fqsv0g"}),c=Object(r.createStore)(ve.read(["event","store"]),{loc:{file:"/src/logs.ts",line:13,column:19},name:"$kinds",sid:"szzha3"}),a=Object(r.restore)(t,je.read(""),{loc:{file:"/src/logs.ts",line:14,column:24},name:"$filterText",sid:"-aznuxe"});c.on(n,(function(e,n){return e.includes(n)?e.filter((function(e){return e!==n})):[].concat(pe(e),[n])})).watch(ve.write),a.watch(je.write),e.on(i,(function(){return[]})),H((function(){Object(o.h)("span",{text:"Show: "}),Q({title:"Event",attr:{checked:c.map((function(e){return e.includes("event")}))},handler:{click:n.prepend((function(){return"event"}))}}),Q({title:"Store",attr:{checked:c.map((function(e){return e.includes("store")}))},handler:{click:n.prepend((function(){return"store"}))}}),Q({title:"Effect",attr:{checked:c.map((function(e){return e.includes("effect")}))},handler:{click:n.prepend((function(){return"effect"}))}}),Object(o.h)("span",{text:"Filter:"}),G({attr:{value:a},handler:{change:t.prepend((function(e){var n,t;return null!==(n=null===(t=e.currentTarget)||void 0===t?void 0:t.value)&&void 0!==n?n:""}))}}),_({text:"Clear",handler:{click:i}})})),C((function(){Object(o.list)({source:e,key:"id",fields:["kind","name","payload","datetime"],fn:function(e){var n=de(e.fields,4),t=n[0],o=n[1],i=n[2],u=n[3],l=Object(r.combine)({"ɔ":[t,c,function(e,n){return n.includes(e)}],config:{loc:{file:"/src/logs.ts",line:54,column:37},name:"$kindMatched",sid:"-9wrr4d"}}),f=Object(r.combine)({"ɔ":[a,o,function(e,n){return n.includes(e)}],config:{loc:{file:"/src/logs.ts",line:55,column:37},name:"$textMatched",sid:"1kzb89"}}),s=Object(r.combine)({"ɔ":[l,f,function(e,n){return e&&n}],config:{loc:{file:"/src/logs.ts",line:56,column:33},name:"$visible",sid:"-kgb7m1"}});q({visible:s,fn:function(){var e=u.map((function(e){return e.toISOString()})),n=u.map((function(e){return e.toLocaleTimeString()}));U({text:[n," ▸ "],attr:{title:e}}),U({text:t}),U({text:[" «",o,"» "]}),F((function(){return se({value:i})}))}})}})}))}function ge(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 he(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function xe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return we(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return we(e,n)}(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 we(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 Se(e){C((function(){var n=e.map((function(e){return Object.entries(e).map((function(e){var n=xe(e,2);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){he(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({name:n[0]},n[1])}))}));Object(o.list)({source:n,key:"name",fields:["name","value"],fn:function(e){var n=xe(e.fields,2),t=n[0],r=n[1];q((function(){U({text:[t,": "]}),F((function(){se({value:r})}))}))}})}))}function ke(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 Ae(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Pe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pe(e,n)}(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 Pe(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 Ie(e){C((function(){var n=e.map((function(e){return Object.entries(e).map((function(e){var n=Ee(e,2);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ke(Object(t),!0).forEach((function(n){Ae(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({name:n[0]},n[1])}))}));Object(o.list)({source:n,key:"name",fields:["name","lastTriggeredWith"],fn:function(e){var n=Ee(e.fields,1)[0];q((function(){U({text:[n," "]})}))}})}))}function Te(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 ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function De(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),!n||t.length!==n);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return $e(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $e(e,n)}(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 $e(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 Me(e){C((function(){var n=e.map((function(e){return Object.entries(e).map((function(e){var n=De(e,2);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Te(Object(t),!0).forEach((function(n){ze(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({sid:n[0]},n[1])}))}));Object(o.list)({source:n,key:"sid",fields:["name","inFlight"],fn:function(e){var n=De(e.fields,2),t=n[0],r=n[1];q((function(){U({text:[t," "]}),F((function(){Object(o.h)("span",(function(){Object(o.h)("span",{text:[" {"]}),J.string({text:'"inFlight": '}),J.number({text:r}),Object(o.h)("span",{text:["}"]})}))}))}))}})}))}var Ce=Object(r.createStore)(!1,{loc:{file:"/src/view.ts",line:9,column:19},name:"$isVisible",sid:"-n4epn7"}),qe=Object(r.createEvent)({loc:{file:"/src/view.ts",line:10,column:22},name:"togglePressed",sid:"-6mw5g1"}),Ue=Object(r.createEvent)({loc:{file:"/src/view.ts",line:11,column:22},name:"showInspector",sid:"-y75g2u"});function Fe(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o&&Ue(),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;"),T({visible:Ce,fn:function(){oe({stores:{title:"Stores",fn:function(){Se(e)}},effects:{title:"Effects",fn:function(){Me(t)}},events:{title:"Events",fn:function(){Ie(n)}},logs:{title:"Logs",fn:function(){Oe(r)}}})}})}document.addEventListener("keypress",(function(e){2===e.keyCode&&e.ctrlKey&&qe()})),Ce.on(qe,(function(e){return!e})).on(Ue,(function(){return!0}));function _e(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return Ne(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ne(e,n)}(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 Ne(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 Be(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach((function(n){Re(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Re(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var We=Object(r.createEvent)({loc:{file:"/src/index.ts",line:5,column:17},name:"storeAdd",sid:"-wopdia"}),Je=Object(r.createEvent)({loc:{file:"/src/index.ts",line:6,column:21},name:"storeUpdated",sid:"vmsjku"}),He=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:7,column:16},name:"$stores",sid:"i7hdcj"}),Ke=Object(r.createEvent)({loc:{file:"/src/index.ts",line:8,column:17},name:"eventAdd",sid:"-or028u"}),Ve=Object(r.createEvent)({loc:{file:"/src/index.ts",line:9,column:23},name:"eventTriggered",sid:"86fn0c"}),Ge=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:10,column:16},name:"$events",sid:"-bopi5k"}),Qe=Object(r.createEvent)({loc:{file:"/src/index.ts",line:11,column:18},name:"effectAdd",sid:"exj8si"}),Xe=Object(r.createEvent)({loc:{file:"/src/index.ts",line:12,column:24},name:"effectTriggered",sid:"-wmuqs0"}),Ye=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:13,column:17},name:"$effects",sid:"-548kt"}),Ze=Object(r.createStore)([],{loc:{file:"/src/index.ts",line:14,column:14},name:"$logs",sid:"dr2ta8"});He.on(We,(function(e,n){return Le(Le({},e),{},Re({},n.name,{value:n.store.getState(),mapped:n.mapped}))})).on(Je,(function(e,n){var t=n.name,r=n.value;return e[t]=Le(Le({},e[t]),{},{value:r}),Le({},e)})),Ge.on(Ke,(function(e,n){return Le(Le({},e),{},Re({},n.name,{mapped:n.mapped,lastTriggeredWith:void 0}))})).on(Ve,(function(e,n){var t=n.name,r=n.params;return e[t]=Le(Le({},e[t]),{},{lastTriggeredWith:r}),Le({},e)})),Ye.on(Qe,(function(e,n){return Le(Le({},e),{},Re({},n.sid,{name:n.name,effect:n.effect,inFlight:n.effect.inFlight.getState()}))})).on(Xe,(function(e,n){var t=n.sid,r=e[t];return e[t]=Le(Le({},r),{},{inFlight:r.effect.inFlight.getState()}),Le({},e)}));var en=1e3,nn=Object(r.createEffect)({handler:function(e){var n=e.name,t=e.kind,r=e.payload;return{id:(++en).toString(36),kind:t,name:n,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:60,column:23},name:"createRecordFx",sid:"-loxrq9"});function tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=document.createElement("div");return n.classList.add("effector-inspector"),document.body.append(n),Object(o.using)(n,(function(){return Fe(He,Ge,Ye,Ze,e.visible)})),Object(o.using)(n,i.StyledRoot),{root:n}}function rn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.name||an(e);We({store:e,name:t,mapped:n.mapped||!1}),Object(r.forward)({"ɔ":{from:e.updates.map((function(e){return{name:t,value:e}})),to:Je},config:{loc:{file:"/src/index.ts",line:99,column:4},sid:"-7ozz2r"}})}function on(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.name||an(e);Ke({event:e,name:t,mapped:n.mapped||!1}),Object(r.forward)({"ɔ":{from:e.map((function(e){return{name:t,params:e}})),to:Ve},config:{loc:{file:"/src/index.ts",line:107,column:4},sid:"-4vqu6z"}})}function cn(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=an(e),i=t.sid||e.sid||o;Qe({effect:e,name:o,sid:i,attached:null!==(n=t.attached)&&void 0!==n&&n}),Object(r.forward)({"ɔ":{from:[e,e.finally],to:Xe.prepend((function(){return{sid:i}}))},config:{loc:{file:"/src/index.ts",line:119,column:4},sid:"-4dlmm2"}});var c=e.map((function(e){return{kind:"effect",name:o,payload:e}})),a=e.done.map((function(e){return{kind:"effect",name:o+".done",payload:e}})),u=e.fail.map((function(e){return{kind:"effect",name:o+".fail",payload:e}}));Object(r.forward)({"ɔ":{from:[c,a,u],to:nn},config:{loc:{file:"/src/index.ts",line:138,column:4},sid:"-3g26f1"}})}function an(e){return e.compositeName.path.join("/")}Object(r.forward)({"ɔ":{from:Ve,to:nn.prepend((function(e){return{kind:"event",name:e.name,payload:e.params}}))},config:{loc:{file:"/src/index.ts",line:71,column:0},sid:"-8rhkph"}}),Object(r.forward)({"ɔ":{from:Je,to:nn.prepend((function(e){return{kind:"store",name:e.name,payload:e.value}}))},config:{loc:{file:"/src/index.ts",line:79,column:0},sid:"-8n37yl"}}),Ze.on(nn.doneData,(function(e,n){return[n].concat(_e(e))}))}]);
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=require("forest")},function(e,t){e.exports=require("effector")},function(e,t){e.exports=require("foliage")},function(e,t,n){"use strict";n.r(t),n.d(t,"createInspector",(function(){return it})),n.d(t,"addStore",(function(){return ct})),n.d(t,"addEvent",(function(){return at})),n.d(t,"addEffect",(function(){return lt}));var r,o,i,c,a,l,u,s,f,d,p,b,m,y,v,O,j,g,h,x,w,S,k=n(1),A=n(0),P=n(2);function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=P.styled.div(r||(r=I(["\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 14.5px 5.2px -10px rgba(0, 0, 0, 0.038),\n 0 23.9px 16.6px -10px rgba(0, 0, 0, 0.057),\n 0 64px 118px -10px rgba(0, 0, 0, 0.08), 0 0 10px -3px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: row;\n bottom: 3rem;\n right: 3rem;\n top: 3rem;\n position: fixed;\n z-index: 1000;\n user-select: none;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'PT Sans', Helvetica, Arial, sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.5;\n width: 100%;\n max-width: 46rem;\n\n & > * + * {\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n\n @media screen and (max-width: 700px) {\n max-width: 30rem;\n }\n"]))),z=P.styled.section(o||(o=I(["\n display: flex;\n flex-flow: column;\n position: relative;\n width: 100%;\n border-radius: inherit;\n"]))),M=P.styled.div(i||(i=I(["\n background-color: white;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n display: flex;\n font-size: 1.2rem;\n font-weight: bold;\n line-height: 2rem;\n position: sticky;\n left: 0;\n right: 0;\n top: 0;\n"]))),$=P.styled.div(c||(c=I(["\n padding: 0.5rem 1rem;\n cursor: pointer;\n border-radius: inherit;\n border-top-right-radius: 0;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 mediumvioletred;\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n background: linear-gradient(rgba(199, 21, 133, 0), rgba(199, 21, 133, 0.1));\n }\n"]))),D=P.styled.div(a||(a=I(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n"]))),C=P.styled.ul(l||(l=I(["\n list-style-type: none;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]))),U=P.styled.li(u||(u=I(["\n display: flex;\n padding: 0.5rem 1rem;\n margin: 0 0;\n"]))),F=P.styled.pre(s||(s=I(["\n display: flex;\n margin: 0 0;\n color: darkred;\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),q=P.styled.pre(f||(f=I(["\n margin: 0 0;\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n"]))),B=P.styled.button(d||(d=I(["\n background-color: transparent;\n border: 1px solid rgba(0, 0, 0, 0.4);\n padding: 0.2rem 0.4rem;\n margin: 0;\n font-family: 'JetBrains Mono', hasklig, monofur, monospace;\n border-radius: 6px;\n margin-left: 1rem;\n"]))),_=P.styled.span(p||(p=I(["\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"]))),J=P.styled.span(b||(b=I(["\n color: mediumvioletred;\n font-style: italic;\n"]))),N=P.styled.span(m||(m=I(["\n color: blue;\n"]))),L=P.styled.span(y||(y=I(["\n color: green;\n"]))),R=P.styled.span(v||(v=I(["\n color: blue;\n font-weight: bold;\n"]))),W={boolean:J,date:P.styled.span(O||(O=I(["\n color: olive;\n"]))),keyword:R,number:N,string:L,symbol:P.styled.span(j||(j=I([""]))),regexp:P.styled.span(g||(g=I(["\n color: orangered;\n"])))},H=P.styled.div(h||(h=I(["\n display: flex;\n padding: 1rem;\n"]))),K=P.styled.input(x||(x=I([""]))),V=P.styled.label(w||(w=I(["\n padding: 0 0.5rem;\n"]))),G=P.styled.input(S||(S=I(["\n padding: 0 0.5rem;\n margin: 0 0.5rem;\n border: 1px solid rgba(0, 0, 0, 0.4);\n border-radius: 0.2rem;\n"]))),Q=function(e){var t=e.title,n=E(e,["title"]);V((function(){K((function(){Object(A.spec)({attr:{type:"checkbox"}}),Object(A.spec)(n)})),Object(A.spec)({text:t})}))},X=Math.pow(983020,3);function Y(e,t){var n,r;return null!==(n=null!==(r=localStorage.getItem("".concat(X,"-").concat(e)))&&void 0!==r?r:t)&&void 0!==n?n:""}function Z(e,t){return localStorage.setItem("".concat(X,"-").concat(e),t),t}function ee(e){return{read:function(t){return Y(e,t)},write:function(t){return Z(e,t)}}}function te(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=ee("last-tab");function oe(e){var t=Object.keys(e),n=t[0],r=re.read(n),o=t.includes(r)?r:n,i=Object(k.createEvent)({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),c=Object(k.restore)(i,o,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});c.watch(re.write),z((function(){M((function(){var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];$({text:r.title,data:{active:c.map((function(e){return e===t}))},handler:{click:i.prepend((function(){return t}))}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}));var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];D({visible:c.map((function(e){return e===t})),fn:function(){r.fn({changeTab:i})}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}))}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ae(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 ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||ae(e,t)||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 ae(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ue=/\[object ([\w\s]+)\]/;function se(e){var t=Object.prototype.toString.call(e),n=ue.exec(t);return n?n[1]:"unknown"}function fe(e){var t=Object(A.rec)((function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","parentOpened"]),2),o=r[0],i=r[1],c=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:13,column:32},name:"foldableClicked",sid:"-stmnmb"}),a=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:14,column:29},name:"$localOpened",sid:"-lmwtnk"}).on(c,(function(e){return!e}));c.watch((function(e){return console.warn("foldableClicked",e)}));var l=Object(k.combine)({"ɔ":[i,a,function(e,t){return!0===e&&t}],config:{loc:{file:"/src/object-view.ts",line:16,column:24},name:"$opened",sid:"7e1sme"}});Object(A.variant)({source:Object(k.combine)({"ɔ":[o,l,function(e,t){return{type:se(e),value:e,opened:t}}],config:{loc:{file:"/src/object-view.ts",line:18,column:20},name:"source",sid:"-22s5pi"}}),key:"type",cases:{String:function(e){var t=e.store;return W.string({text:['"',Object(A.remap)(t,"value"),'"']})},Number:function(e){var t=e.store;return W.number({text:Object(A.remap)(t,"value")})},BigInt:function(e){var t=e.store;return W.number({text:[Object(A.remap)(t,"value"),"n"],attr:{title:"BigInt"}})},Boolean:function(e){var t=e.store;return W.boolean({text:Object(A.remap)(t,"value")})},Null:function(){return W.keyword({text:"null"})},Undefined:function(){return W.keyword({text:"undefined"})},Symbol:function(e){var t=e.store;return W.symbol({text:Object(A.remap)(t,"value")})},RegExp:function(e){var t=e.store,n=Object(A.remap)(t,"value"),r=ce(Object(A.remap)(n,["source","flags"]),2),o=r[0],i=r[1];W.regexp({text:["/",o,"/",i]})},Function:function(e){var t=e.store,n=Object(A.remap)(t,"value"),r={title:n.map((function(e){return e.toString()}))};Object(A.h)("span",{text:"function",attr:r}),W.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:r}),Object(A.h)("span",{text:"()",attr:r})},AsyncFunction:function(e){var t=e.store,n=Object(A.remap)(t,"value"),r={title:n.map((function(e){return e.toString()}))};Object(A.h)("span",{text:"async function",attr:r}),W.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:r}),Object(A.h)("span",{text:"()",attr:r})},Window:function(e){var t=e.store,n=Object(A.remap)(t,"opened");Object(A.h)("span",(function(){Object(A.spec)({data:{opened:n}}),Object(A.h)("span",{text:"Window {...",fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.spec)({text:"}"})}))},Date:function(){W.date({text:o.map((function(e){var t;return null===(t=e.toISOString)||void 0===t?void 0:t.call(e)})),attr:{title:o}})},Array:function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","opened"]),2),o=r[0],i=r[1];Object(A.h)("span",(function(){Object(A.spec)({data:{opened:i}}),Object(A.h)("span",{text:"Array [",data:{clickable:!0},fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0,prevent:!0},{click:c})}}),Object(A.list)(o,(function(e){var n=e.store,r=e.key;return _((function(){return t({store:Object(k.combine)({"ɔ":[{value:n,parentOpened:i,key:r.map(String)}],config:{loc:{file:"/src/object-view.ts",line:95,column:35},name:"store",sid:"z8226z"}})})}))})),Object(A.spec)({text:"]"})}))},Arguments:function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","opened"]),2),o=r[0],i=r[1];Object(A.h)("span",(function(){Object(A.spec)({data:{opened:i}}),Object(A.h)("span",{text:"Arguments [",fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.list)(o.map((function(e){return ie(e)})),(function(e){var n=e.store,r=e.key;return _((function(){return t({store:Object(k.combine)({"ɔ":[{value:n,parentOpened:i,key:r.map(String)}],config:{loc:{file:"/src/object-view.ts",line:118,column:35},name:"store",sid:"r5r5mn"}})})}))})),Object(A.spec)({text:"]"})}))},Set:function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","opened"]),2),o=r[0],i=r[1];Object(A.h)("span",(function(){Object(A.spec)({data:{opened:i}}),Object(A.h)("span",{text:"Set [",fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.list)(o.map((function(e){return ie(e.values())})),(function(e){var n=e.store,r=e.key;return _((function(){return t({store:Object(k.combine)({"ɔ":[{value:n,parentOpened:i,key:r.map(String)}],config:{loc:{file:"/src/object-view.ts",line:141,column:35},name:"store",sid:"-35hefr"}})})}))})),Object(A.spec)({text:"]"})}))},Map:function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","opened"]),2),o=r[0],i=r[1];Object(A.h)("span",(function(){Object(A.spec)({data:{opened:i}}),Object(A.h)("span",(function(){Object(A.spec)({text:"Map {"}),Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})})),Object(A.list)(o.map((function(e){return ie(e.entries())})),(function(e){var n=e.store,r=ce(Object(A.remap)(n,["0","1"]),2),o=r[0],a=r[1];_((function(){W.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.h)("span",{text:" => "}),t({store:Object(k.combine)({"ɔ":[{value:a,parentOpened:i,key:o}],config:{loc:{file:"/src/object-view.ts",line:172,column:43},name:"store",sid:"-tocynm"}})})}))})),Object(A.spec)({text:"}"})}))},Error:function(e){var n=e.store,r=ce(Object(A.remap)(n,["value","opened"]),2),o=r[0],i=r[1],a=ce(Object(A.remap)(o,["name","message","stack"]),3),l=a[0],u=a[1],s=a[2];Object(A.h)("span",(function(){Object(A.spec)({data:{opened:i}}),Object(A.h)("span",{text:[l," {"],attr:{title:o.map((function(e){return e.constructor.name}))},fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),_((function(){Object(A.spec)({data:{hidden:"expanded"}}),W.string({text:['"message"'],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.h)("span",{text:": "}),t({store:Object(k.combine)({"ɔ":[{value:u,parentOpened:i,key:"message"}],config:{loc:{file:"/src/object-view.ts",line:212,column:39},name:"store",sid:"-hw05k0"}})})})),_((function(){Object(A.spec)({data:{hidden:"folded"}}),W.string({text:['"stack"'],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.h)("span",{text:": "}),t({store:Object(k.combine)({"ɔ":[{value:s,parentOpened:i,key:"stack"}],config:{loc:{file:"/src/object-view.ts",line:229,column:39},name:"store",sid:"3phfe"}})})})),Object(A.list)(o.map((function(e){return ie(Object.entries(e))})),(function(e){var n=e.store,r=ce(Object(A.remap)(n,["0","1"]),2),o=r[0],a=r[1];_((function(){W.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.h)("span",{text:": "}),t({store:Object(k.combine)({"ɔ":[{value:a,parentOpened:i,key:o}],config:{loc:{file:"/src/object-view.ts",line:247,column:43},name:"store",sid:"sietol"}})})}))}))})),Object(A.h)("span",{text:"}"})},__:function(e){var n=e.store;Object(A.h)("span",(function(){var e=ce(Object(A.remap)(n,["type","value","opened"]),3),r=e[0],o=e[1],i=e[2];Object(A.spec)({data:{opened:i}}),Object(A.h)("span",{text:[r," {"],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.list)(o.map((function(e){return ie(Object.entries(e))})),(function(e){var n=e.store,r=ce(Object(A.remap)(n,["0","1"]),2),o=r[0],a=r[1];_((function(){W.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,stop:!0,capture:!0},{click:c})}}),Object(A.h)("span",{text:": "}),t({store:Object(k.combine)({"ɔ":[{value:a,parentOpened:i,key:o}],config:{loc:{file:"/src/object-view.ts",line:284,column:43},name:"store",sid:"err1f0"}})})}))}))})),Object(A.h)("span",{text:"}"})}}})}));t({store:Object(k.combine)({"ɔ":[{value:e.value,parentOpened:Object(k.createStore)(!0,{loc:{file:"/src/object-view.ts",line:301,column:26},name:"parentOpened",sid:"-8mc831"}),key:""}],config:{loc:{file:"/src/object-view.ts",line:299,column:15},name:"store",sid:"vtddfn"}})})}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||be(e,t)||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 pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(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 be(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ye,ve=(ye="filter-kinds",{read:function(e){return JSON.parse(Y(ye,JSON.stringify(e)))},write:function(e){return Z(ye,JSON.stringify(e)),e}}),Oe=ee("filter-text");function je(e){var t=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:10,column:23},name:"toggleKind",sid:"a40s1e"}),n=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:11,column:26},name:"filterChanged",sid:"rus8aq"}),r=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:12,column:25},name:"clearClicked",sid:"fqsv0g"}),o=Object(k.createStore)(ve.read(["event","store"]),{loc:{file:"/src/logs.ts",line:13,column:19},name:"$kinds",sid:"szzha3"}),i=Object(k.restore)(n,Oe.read(""),{loc:{file:"/src/logs.ts",line:14,column:24},name:"$filterText",sid:"-aznuxe"});o.on(t,(function(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(pe(e),[t])})).watch(ve.write),i.watch(Oe.write),e.on(r,(function(){return[]})),H((function(){Object(A.h)("span",{text:"Show: "}),Q({title:"Event",attr:{checked:o.map((function(e){return e.includes("event")}))},handler:{click:t.prepend((function(){return"event"}))}}),Q({title:"Store",attr:{checked:o.map((function(e){return e.includes("store")}))},handler:{click:t.prepend((function(){return"store"}))}}),Q({title:"Effect",attr:{checked:o.map((function(e){return e.includes("effect")}))},handler:{click:t.prepend((function(){return"effect"}))}}),Object(A.h)("span",{text:"Filter:"}),G({attr:{value:i},handler:{change:n.prepend((function(e){var t,n;return null!==(t=null===(n=e.currentTarget)||void 0===n?void 0:n.value)&&void 0!==t?t:""}))}}),B({text:"Clear",handler:{click:r}})})),C((function(){Object(A.list)({source:e,key:"id",fields:["kind","name","payload","datetime"],fn:function(e){var t=de(e.fields,4),n=t[0],r=t[1],c=t[2],a=t[3],l=Object(k.combine)({"ɔ":[n,o,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:54,column:37},name:"$kindMatched",sid:"-9wrr4d"}}),u=Object(k.combine)({"ɔ":[i,r,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:55,column:37},name:"$textMatched",sid:"1kzb89"}}),s=Object(k.combine)({"ɔ":[l,u,function(e,t){return e&&t}],config:{loc:{file:"/src/logs.ts",line:56,column:33},name:"$visible",sid:"-kgb7m1"}});U({visible:s,fn:function(){var e=a.map((function(e){return e.toISOString()})),t=a.map((function(e){return e.toLocaleTimeString()}));F({text:[t," ▸ "],attr:{title:e}}),F({text:n}),F({text:[" «",r,"» "]}),q((function(){return fe({value:c})}))}})}})}))}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e,t)||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 we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=xe(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(A.list)({source:t,key:"name",fields:["name","value"],fn:function(e){var t=xe(e.fields,2),n=t[0],r=t[1];U((function(){F({text:[n,": "]}),q((function(){fe({value:r})}))}))}})}))}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e,t)||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 Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=Pe(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(A.list)({source:t,key:"name",fields:["name","lastTriggeredWith"],fn:function(e){var t=Pe(e.fields,1)[0];U((function(){F({text:[t," "]})}))}})}))}var Te;function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return De(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(e,t)}(e,t)||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 De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=$e(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({sid:t[0]},t[1])}))}));Object(A.list)({source:t,key:"sid",fields:["name","inFlight"],fn:function(e){var t=$e(e.fields,2),n=t[0],r=t[1];U((function(){F({text:[n," "]}),q((function(){Object(A.h)("span",(function(){var e,t;Object(A.h)("span",{text:[" {"]}),_((function(){W.string({text:'"inFlight": '}),W.number({text:r})})),Object(A.text)(Te||(e=["}"],t||(t=e.slice(0)),Te=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))))}))}))}))}})}))}function Ue(e){return(Ue="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})(e)}var Fe=Object(k.createStore)(!1,{loc:{file:"/src/view.ts",line:9,column:19},name:"$isVisible",sid:"-n4epn7"}),qe=Object(k.createEvent)({loc:{file:"/src/view.ts",line:10,column:22},name:"togglePressed",sid:"-6mw5g1"}),Be=Object(k.createEvent)({loc:{file:"/src/view.ts",line:11,column:22},name:"showInspector",sid:"-y75g2u"});function _e(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o&&Be(),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;"),T({visible:Fe,fn:function(){oe({stores:{title:"Stores",fn:function(){Se(e)}},effects:{title:"Effects",fn:function(){Ce(n)}},events:{title:"Events",fn:function(){Ie(t)}},logs:{title:"Logs",fn:function(){je(r)}}})}})}"object"===("undefined"==typeof document?"undefined":Ue(document))&&document.addEventListener("keypress",(function(e){2===e.keyCode&&e.ctrlKey&&qe()})),Fe.on(qe,(function(e){return!e})).on(Be,(function(){return!0}));function Je(e){return(Je="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})(e)}function Ne(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(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 Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=Object(k.createEvent)({loc:{file:"/src/index.ts",line:5,column:17},name:"storeAdd",sid:"-wopdia"}),Ve=Object(k.createEvent)({loc:{file:"/src/index.ts",line:6,column:21},name:"storeUpdated",sid:"vmsjku"}),Ge=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:7,column:16},name:"$stores",sid:"i7hdcj"}),Qe=Object(k.createEvent)({loc:{file:"/src/index.ts",line:8,column:17},name:"eventAdd",sid:"-or028u"}),Xe=Object(k.createEvent)({loc:{file:"/src/index.ts",line:9,column:23},name:"eventTriggered",sid:"86fn0c"}),Ye=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:10,column:16},name:"$events",sid:"-bopi5k"}),Ze=Object(k.createEvent)({loc:{file:"/src/index.ts",line:11,column:18},name:"effectAdd",sid:"exj8si"}),et=Object(k.createEvent)({loc:{file:"/src/index.ts",line:12,column:24},name:"effectTriggered",sid:"-wmuqs0"}),tt=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:13,column:17},name:"$effects",sid:"-548kt"}),nt=Object(k.createStore)([],{loc:{file:"/src/index.ts",line:14,column:14},name:"$logs",sid:"dr2ta8"});Ge.on(Ke,(function(e,t){return We(We({},e),{},He({},t.name,{value:t.store.getState(),mapped:t.mapped}))})).on(Ve,(function(e,t){var n=t.name,r=t.value;return e[n]=We(We({},e[n]),{},{value:r}),We({},e)})),Ye.on(Qe,(function(e,t){return We(We({},e),{},He({},t.name,{mapped:t.mapped,lastTriggeredWith:void 0}))})).on(Xe,(function(e,t){var n=t.name,r=t.params;return e[n]=We(We({},e[n]),{},{lastTriggeredWith:r}),We({},e)})),tt.on(Ze,(function(e,t){return We(We({},e),{},He({},t.sid,{name:t.name,effect:t.effect,inFlight:t.effect.inFlight.getState()}))})).on(et,(function(e,t){var n=t.sid,r=e[n];return e[n]=We(We({},r),{},{inFlight:r.effect.inFlight.getState()}),We({},e)}));var rt=1e3,ot=Object(k.createEffect)({handler:function(e){var t=e.name,n=e.kind,r=e.payload;return{id:(++rt).toString(36),kind:n,name:t,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:60,column:23},name:"createRecordFx",sid:"-loxrq9"});function it(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="object"===("undefined"==typeof document?"undefined":Je(document))&&document.createElement("div");if(t)return t.classList.add("effector-inspector"),document.body.append(t),Object(A.using)(t,(function(){return _e(Ge,Ye,tt,nt,e.visible)})),Object(A.using)(t,P.StyledRoot),{root:t}}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ut(e);Ke({store:e,name:n,mapped:t.mapped||!1}),Object(k.forward)({"ɔ":{from:e.updates.map((function(e){return{name:n,value:e}})),to:Ve},config:{loc:{file:"/src/index.ts",line:101,column:4},sid:"-4z1lr5"}})}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ut(e);Qe({event:e,name:n,mapped:t.mapped||!1}),Object(k.forward)({"ɔ":{from:e.map((function(e){return{name:n,params:e}})),to:Xe},config:{loc:{file:"/src/index.ts",line:109,column:4},sid:"-4un909"}})}function lt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ut(e),o=n.sid||e.sid||r;Ze({effect:e,name:r,sid:o,attached:null!==(t=n.attached)&&void 0!==t&&t}),Object(k.forward)({"ɔ":{from:[e,e.finally],to:et.prepend((function(){return{sid:o}}))},config:{loc:{file:"/src/index.ts",line:121,column:4},sid:"-40ycyr"}});var i=e.map((function(e){return{kind:"effect",name:r,payload:e}})),c=e.done.map((function(e){return{kind:"effect",name:r+".done",payload:e}})),a=e.fail.map((function(e){return{kind:"effect",name:r+".fail",payload:e}}));Object(k.forward)({"ɔ":{from:[i,c,a],to:ot},config:{loc:{file:"/src/index.ts",line:140,column:4},sid:"-33ewrq"}})}function ut(e){return e.compositeName.path.join("/")}Object(k.forward)({"ɔ":{from:Xe,to:ot.prepend((function(e){return{kind:"event",name:e.name,payload:e.params}}))},config:{loc:{file:"/src/index.ts",line:71,column:0},sid:"-8rhkph"}}),Object(k.forward)({"ɔ":{from:Ve,to:ot.prepend((function(e){return{kind:"store",name:e.name,payload:e.value}}))},config:{loc:{file:"/src/index.ts",line:79,column:0},sid:"-8n37yl"}}),nt.on(ot.doneData,(function(e,t){return[t].concat(Ne(e))}))}]);
//# sourceMappingURL=common.js.map
import { Store, Event, Effect } from 'effector';
import { Inspector, Options } from './types.h';
export declare function createInspector(options?: Options): Inspector;
export declare function createInspector(options?: Options): Inspector | undefined;
export declare function addStore(store: Store<any>, options?: {

@@ -5,0 +5,0 @@ mapped?: boolean;

{
"name": "effector-inspector",
"version": "0.4.1",
"version": "0.4.2",
"main": "./dist/common.js",

@@ -23,3 +23,3 @@ "types": "./dist/index.d.ts",

"@commitlint/config-conventional": "8.2.0",
"@types/node": "^14.11.8",
"@types/node": "^13.7.1",
"@types/react": "^16.9.17",

@@ -31,3 +31,3 @@ "@typescript-eslint/eslint-plugin": "^2.16.0",

"cz-conventional-changelog": "3.0.2",
"effector": "^21.5.0",
"effector": "^21.8.3",
"eslint": "^6.6.0",

@@ -43,3 +43,3 @@ "eslint-plugin-prettier": "^3.1.2",

"ts-loader": "^8.0.1",
"typescript": "^3.9.7",
"typescript": "^4.1.5",
"typescript-plugin-styled-components": "^1.4.4",

@@ -58,5 +58,5 @@ "webpack": "^4.41.6",

"dependencies": {
"foliage": "^0.103.1",
"forest": "^0.19.2"
"foliage": "^0.106.0",
"forest": "^0.19.6"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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