iobroker.javascript 9.0.4 → 9.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/admin/assets/OpenAiDialog-9N4LihWY.js +34 -0
- package/admin/assets/Save-BKC3BS3x.js +1 -0
- package/admin/assets/ScriptEditor-CzFTsfG9.js +2 -0
- package/admin/assets/ScriptEditorVanillaMonaco-DEgxOslR.js +1 -0
- package/admin/assets/index-BHQhuPkd.js +16 -0
- package/admin/assets/index-Cek-i92T.js +1294 -0
- package/admin/assets/index-CpeX0MWe.js +27 -0
- package/admin/assets/index-DUBaHZ92.css +1 -0
- package/admin/assets/index-Dm1jc4t6.js +1 -0
- package/admin/assets/index-DnqHzUyv.js +5 -0
- package/admin/assets/index-Dr_ZFwru.css +1 -0
- package/admin/assets/index-JSzqpJXf.js +930 -0
- package/admin/custom/assets/{index-sawv1cUe.js → index-Coei6-WB.js} +64 -64
- package/admin/custom/assets/index-DxyyYdTq.js +904 -0
- package/admin/custom/customComponents.js +2 -2
- package/admin/mf-manifest.json +1 -1
- package/admin/remoteEntry.js +2 -2
- package/admin/tab.html +3 -3
- package/build-backend/lib/convert.js +11 -10
- package/build-backend/lib/convert.js.map +1 -1
- package/build-backend/main.js +5 -7
- package/build-backend/main.js.map +1 -1
- package/io-package.json +27 -27
- package/package.json +3 -3
- package/admin/assets/index-CEoeyJnt.css +0 -1
- package/admin/assets/index-CuCs5aLs.js +0 -5
- package/admin/assets/index-D12hwRdg.js +0 -930
- package/admin/assets/index-DPHwJ2eM.js +0 -1329
- package/admin/custom/assets/index-hlyxqX-8.js +0 -904
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{j as M}from"./createSvgIcon-BQT-7-GS.js";import{R as dt,i as Rt}from"./iobroker_javascript__loadShare__react__loadShare__-BiJPUKBK.js";import{i as Oe,m as Ft,z as Nt,g as Lt}from"./index-Cek-i92T.js";import{i as G,x as Vt,y as zt,l as qt,U as It,e as Wt,q as Kt,o as $t,E as Jt,d as Ut,M as Ht,ax as Gt,ay as Yt,az as Qt,a3 as Zt}from"./index-DnqHzUyv.js";import Xt from"./ScriptEditorVanillaMonaco-DEgxOslR.js";import{g as ea}from"./_commonjsHelpers-Cpj98o6Y.js";import"./iobroker_javascript__mf_v__runtimeInit__mf_v__-CBQgOKij.js";import"./inheritsLoose--KnFDOw1.js";import"./preload-helper-Dp1pzeXC.js";const ta={editorDiv:{height:"100%",width:"100%",overflow:"hidden",position:"relative"}};class aa extends dt.Component{constructor(v){super(v),this.state={lines:(this.props.script||"").split(/\r\n|\n/)}}render(){return M.jsx("div",{style:ta.editorDiv,children:M.jsx(Xt,{triggerPrettier:1,name:this.props.scriptName,adapterName:this.props.adapterName,readOnly:!0,code:this.props.script||"",isDark:this.props.themeType==="dark",socket:this.props.socket,runningInstances:this.props.runningInstances,language:"javascript",breakpoints:this.props.breakpoints,location:this.props.paused?this.props.location:null,onToggleBreakpoint:v=>this.props.onToggleBreakpoint(v)},"scriptEditor2")},"scriptEditorDiv2")}}const At=34,Ke={logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:X=>({display:"inline-block",color:X.palette.mode==="dark"?"white":"black",width:`calc(100% - ${At}px)`,height:"100%",overflow:"auto",position:"relative",verticalAlign:"top"}),info:X=>({background:X.palette.mode==="dark"?"darkgrey":"lightgrey",color:(X.palette.mode==="dark","black")}),error:X=>({background:"#FF0000",color:X.palette.mode==="dark"?"black":"white"}),warn:X=>({background:"#FF8000",color:X.palette.mode==="dark"?"black":"white"}),debug:X=>({background:"gray",opacity:.8,color:X.palette.mode==="dark"?"black":"white"}),silly:X=>({background:"gray",opacity:.6,color:X.palette.mode==="dark"?"black":"white"}),table:{fontFamily:"monospace",width:"100%"},toolbox:{width:At,height:"100%",boxShadow:"2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)",display:"inline-block",verticalAlign:"top",overflow:"hidden"},trTime:{width:90},trSeverity:{width:40,fontWeight:"bold"},iconButtons:{width:32,height:32,padding:4}};function ra(X){let v,g=X.getHours();return g<10&&(g=`0${g.toString()}`),v=`${g}:`,g=X.getMinutes(),g<10&&(g=`0${g.toString()}`),v+=`${g}:`,g=X.getSeconds(),g<10&&(g=`0${g.toString()}`),v+=`${g}.`,g=X.getMilliseconds(),g<10?g=`00${g.toString()}`:g<100&&(g=`0${g.toString()}`),v+=g,v}class _t extends dt.Component{messagesEnd;constructor(v){super(v),this.state={goBottom:!0},this.messagesEnd=dt.createRef()}static generateLine(v){return M.jsxs(G.Box,{component:"tr",sx:Ke[v.severity],children:[M.jsx("td",{style:Ke.trTime,children:ra(new Date(v.ts))}),M.jsx("td",{style:Ke.trSeverity,children:v.severity}),M.jsx("td",{children:v.text})]},`tr_${v.ts}_${v.text.substring(v.text.length-10,v.text.length)}`)}renderLogList(v){return v!=null&&v.length?M.jsxs(G.Box,{sx:Ke.logBoxInner,children:[M.jsx("table",{style:Ke.table,children:M.jsx("tbody",{children:v.map(g=>_t.generateLine(g))})},"logTable"),M.jsx("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):M.jsx(G.Box,{sx:Ke.logBoxInner,style:{paddingLeft:10},children:Oe.I18n.t("Log outputs")},"logList")}onCopy(){Oe.Utils.copyToClipboard(this.props.console.join(`
|
|
2
|
+
`))}scrollToBottom(){var v,g;(g=(v=this.messagesEnd)==null?void 0:v.current)==null||g.scrollIntoView({behavior:"smooth"})}componentDidUpdate(){this.state.goBottom&&this.scrollToBottom()}render(){const v=this.props.console;return M.jsxs("div",{style:Ke.logBox,children:[M.jsxs("div",{style:Ke.toolbox,children:[M.jsx(G.IconButton,{style:Ke.iconButtons,onClick:()=>this.setState({goBottom:!this.state.goBottom}),color:this.state.goBottom?"secondary":void 0,size:"medium",children:M.jsx(Vt,{})}),v!=null&&v.length?M.jsx(G.IconButton,{style:Ke.iconButtons,onClick:()=>this.props.onClearAllLogs(),size:"medium",children:M.jsx(zt,{})}):null,v!=null&&v.length?M.jsx(G.IconButton,{style:Ke.iconButtons,onClick:()=>this.onCopy(),size:"medium",children:M.jsx(qt,{})}):null]},"toolbox"),this.renderLogList(v)]})}}var wt={exports:{}},na=wt.exports;(function(X,v){(function(g,a){X.exports=a(Rt)})(na,function(g){return function(a){var t={};function e(s){if(t[s])return t[s].exports;var c=t[s]={i:s,l:!1,exports:{}};return a[s].call(c.exports,c,c.exports,e),c.l=!0,c.exports}return e.m=a,e.c=t,e.d=function(s,c,d){e.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:d})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,c){if(1&c&&(s=e(s)),8&c||4&c&&typeof s=="object"&&s&&s.__esModule)return s;var d=Object.create(null);if(e.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:s}),2&c&&typeof s!="string")for(var p in s)e.d(d,p,function(f){return s[f]}.bind(null,p));return d},e.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(c,"a",c),c},e.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},e.p="",e(e.s=48)}([function(a,t){a.exports=g},function(a,t){var e=a.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(a,t,e){var s=e(26)("wks"),c=e(17),d=e(3).Symbol,p=typeof d=="function";(a.exports=function(f){return s[f]||(s[f]=p&&d[f]||(p?d:c)("Symbol."+f))}).store=s},function(a,t){var e=a.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(a,t,e){a.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(a,t){var e={}.hasOwnProperty;a.exports=function(s,c){return e.call(s,c)}},function(a,t,e){var s=e(7),c=e(16);a.exports=e(4)?function(d,p,f){return s.f(d,p,c(1,f))}:function(d,p,f){return d[p]=f,d}},function(a,t,e){var s=e(10),c=e(35),d=e(23),p=Object.defineProperty;t.f=e(4)?Object.defineProperty:function(f,h,E){if(s(f),h=d(h,!0),s(E),c)try{return p(f,h,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(f[h]=E.value),f}},function(a,t){a.exports=function(e){try{return!!e()}catch{return!0}}},function(a,t,e){var s=e(40),c=e(22);a.exports=function(d){return s(c(d))}},function(a,t,e){var s=e(11);a.exports=function(c){if(!s(c))throw TypeError(c+" is not an object!");return c}},function(a,t){a.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(a,t){a.exports={}},function(a,t,e){var s=e(39),c=e(27);a.exports=Object.keys||function(d){return s(d,c)}},function(a,t){a.exports=!0},function(a,t,e){var s=e(3),c=e(1),d=e(53),p=e(6),f=e(5),h=function(E,b,w){var I,D,H,L=E&h.F,ee=E&h.G,r=E&h.S,B=E&h.P,V=E&h.B,z=E&h.W,q=ee?c:c[b]||(c[b]={}),k=q.prototype,A=ee?s:r?s[b]:(s[b]||{}).prototype;for(I in ee&&(w=b),w)(D=!L&&A&&A[I]!==void 0)&&f(q,I)||(H=D?A[I]:w[I],q[I]=ee&&typeof A[I]!="function"?w[I]:V&&D?d(H,s):z&&A[I]==H?function(T){var W=function(S,te,J){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(S);case 2:return new T(S,te)}return new T(S,te,J)}return T.apply(this,arguments)};return W.prototype=T.prototype,W}(H):B&&typeof H=="function"?d(Function.call,H):H,B&&((q.virtual||(q.virtual={}))[I]=H,E&h.R&&k&&!k[I]&&p(k,I,H)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,a.exports=h},function(a,t){a.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(a,t){var e=0,s=Math.random();a.exports=function(c){return"Symbol(".concat(c===void 0?"":c,")_",(++e+s).toString(36))}},function(a,t,e){var s=e(22);a.exports=function(c){return Object(s(c))}},function(a,t){t.f={}.propertyIsEnumerable},function(a,t,e){var s=e(52)(!0);e(34)(String,"String",function(c){this._t=String(c),this._i=0},function(){var c,d=this._t,p=this._i;return p>=d.length?{value:void 0,done:!0}:(c=s(d,p),this._i+=c.length,{value:c,done:!1})})},function(a,t){var e=Math.ceil,s=Math.floor;a.exports=function(c){return isNaN(c=+c)?0:(c>0?s:e)(c)}},function(a,t){a.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(a,t,e){var s=e(11);a.exports=function(c,d){if(!s(c))return c;var p,f;if(d&&typeof(p=c.toString)=="function"&&!s(f=p.call(c))||typeof(p=c.valueOf)=="function"&&!s(f=p.call(c))||!d&&typeof(p=c.toString)=="function"&&!s(f=p.call(c)))return f;throw TypeError("Can't convert object to primitive value")}},function(a,t){var e={}.toString;a.exports=function(s){return e.call(s).slice(8,-1)}},function(a,t,e){var s=e(26)("keys"),c=e(17);a.exports=function(d){return s[d]||(s[d]=c(d))}},function(a,t,e){var s=e(1),c=e(3),d=c["__core-js_shared__"]||(c["__core-js_shared__"]={});(a.exports=function(p,f){return d[p]||(d[p]=f!==void 0?f:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(a,t){a.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(a,t,e){var s=e(7).f,c=e(5),d=e(2)("toStringTag");a.exports=function(p,f,h){p&&!c(p=h?p:p.prototype,d)&&s(p,d,{configurable:!0,value:f})}},function(a,t,e){e(62);for(var s=e(3),c=e(6),d=e(12),p=e(2)("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;h<f.length;h++){var E=f[h],b=s[E],w=b&&b.prototype;w&&!w[p]&&c(w,p,E),d[E]=d.Array}},function(a,t,e){t.f=e(2)},function(a,t,e){var s=e(3),c=e(1),d=e(14),p=e(30),f=e(7).f;a.exports=function(h){var E=c.Symbol||(c.Symbol=d?{}:s.Symbol||{});h.charAt(0)=="_"||h in E||f(E,h,{value:p.f(h)})}},function(a,t){t.f=Object.getOwnPropertySymbols},function(a,t){a.exports=function(e,s,c){return Math.min(Math.max(e,s),c)}},function(a,t,e){var s=e(14),c=e(15),d=e(37),p=e(6),f=e(12),h=e(55),E=e(28),b=e(61),w=e(2)("iterator"),I=!([].keys&&"next"in[].keys()),D=function(){return this};a.exports=function(H,L,ee,r,B,V,z){h(ee,L,r);var q,k,A,T=function(U){if(!I&&U in J)return J[U];switch(U){case"keys":case"values":return function(){return new ee(this,U)}}return function(){return new ee(this,U)}},W=L+" Iterator",S=B=="values",te=!1,J=H.prototype,C=J[w]||J["@@iterator"]||B&&J[B],Q=C||T(B),he=B?S?T("entries"):Q:void 0,ue=L=="Array"&&J.entries||C;if(ue&&(A=b(ue.call(new H)))!==Object.prototype&&A.next&&(E(A,W,!0),s||typeof A[w]=="function"||p(A,w,D)),S&&C&&C.name!=="values"&&(te=!0,Q=function(){return C.call(this)}),s&&!z||!I&&!te&&J[w]||p(J,w,Q),f[L]=Q,f[W]=D,B)if(q={values:S?Q:T("values"),keys:V?Q:T("keys"),entries:he},z)for(k in q)k in J||d(J,k,q[k]);else c(c.P+c.F*(I||te),L,q);return q}},function(a,t,e){a.exports=!e(4)&&!e(8)(function(){return Object.defineProperty(e(36)("div"),"a",{get:function(){return 7}}).a!=7})},function(a,t,e){var s=e(11),c=e(3).document,d=s(c)&&s(c.createElement);a.exports=function(p){return d?c.createElement(p):{}}},function(a,t,e){a.exports=e(6)},function(a,t,e){var s=e(10),c=e(56),d=e(27),p=e(25)("IE_PROTO"),f=function(){},h=function(){var E,b=e(36)("iframe"),w=d.length;for(b.style.display="none",e(60).appendChild(b),b.src="javascript:",(E=b.contentWindow.document).open(),E.write("<script>document.F=Object<\/script>"),E.close(),h=E.F;w--;)delete h.prototype[d[w]];return h()};a.exports=Object.create||function(E,b){var w;return E!==null?(f.prototype=s(E),w=new f,f.prototype=null,w[p]=E):w=h(),b===void 0?w:c(w,b)}},function(a,t,e){var s=e(5),c=e(9),d=e(57)(!1),p=e(25)("IE_PROTO");a.exports=function(f,h){var E,b=c(f),w=0,I=[];for(E in b)E!=p&&s(b,E)&&I.push(E);for(;h.length>w;)s(b,E=h[w++])&&(~d(I,E)||I.push(E));return I}},function(a,t,e){var s=e(24);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(c){return s(c)=="String"?c.split(""):Object(c)}},function(a,t,e){var s=e(39),c=e(27).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(d){return s(d,c)}},function(a,t,e){var s=e(24),c=e(2)("toStringTag"),d=s(function(){return arguments}())=="Arguments";a.exports=function(p){var f,h,E;return p===void 0?"Undefined":p===null?"Null":typeof(h=function(b,w){try{return b[w]}catch{}}(f=Object(p),c))=="string"?h:d?s(f):(E=s(f))=="Object"&&typeof f.callee=="function"?"Arguments":E}},function(a,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}a.exports=e},function(a,t){var e=/-?\d+(\.\d+)?%?/g;a.exports=function(s){return s.match(e)}},function(a,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var s=D(e(49)),c=D(e(76)),d=D(e(81)),p=D(e(89)),f=D(e(93)),h=function(k){if(k&&k.__esModule)return k;var A={};if(k!=null)for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(A[T]=k[T]);return A.default=k,A}(e(94)),E=D(e(132)),b=D(e(133)),w=D(e(138)),I=e(139);function D(k){return k&&k.__esModule?k:{default:k}}var H=h.default,L=(0,p.default)(H),ee=(0,w.default)(b.default,I.rgb2yuv,function(k){var A,T=(0,d.default)(k,3),W=T[0],S=T[1],te=T[2];return[(A=W,A<.25?1:A<.5?.9-A:1.1-A),S,te]},I.yuv2rgb,E.default),r=function(k){return function(A){return{className:[A.className,k.className].filter(Boolean).join(" "),style:(0,c.default)({},A.style||{},k.style||{})}}},B=function(k,A){var T=(0,p.default)(A);for(var W in k)T.indexOf(W)===-1&&T.push(W);return T.reduce(function(S,te){return S[te]=function(J,C){if(J===void 0)return C;if(C===void 0)return J;var Q=J===void 0?"undefined":(0,s.default)(J),he=C===void 0?"undefined":(0,s.default)(C);switch(Q){case"string":switch(he){case"string":return[C,J].filter(Boolean).join(" ");case"object":return r({className:J,style:C});case"function":return function(ue){for(var U=arguments.length,ce=Array(U>1?U-1:0),Z=1;Z<U;Z++)ce[Z-1]=arguments[Z];return r({className:J})(C.apply(void 0,[ue].concat(ce)))}}case"object":switch(he){case"string":return r({className:C,style:J});case"object":return(0,c.default)({},C,J);case"function":return function(ue){for(var U=arguments.length,ce=Array(U>1?U-1:0),Z=1;Z<U;Z++)ce[Z-1]=arguments[Z];return r({style:J})(C.apply(void 0,[ue].concat(ce)))}}case"function":switch(he){case"string":return function(ue){for(var U=arguments.length,ce=Array(U>1?U-1:0),Z=1;Z<U;Z++)ce[Z-1]=arguments[Z];return J.apply(void 0,[r(ue)({className:C})].concat(ce))};case"object":return function(ue){for(var U=arguments.length,ce=Array(U>1?U-1:0),Z=1;Z<U;Z++)ce[Z-1]=arguments[Z];return J.apply(void 0,[r(ue)({style:C})].concat(ce))};case"function":return function(ue){for(var U=arguments.length,ce=Array(U>1?U-1:0),Z=1;Z<U;Z++)ce[Z-1]=arguments[Z];return J.apply(void 0,[C.apply(void 0,[ue].concat(ce))].concat(ce))}}}}(k[te],A[te]),S},{})},V=function(k,A){for(var T=arguments.length,W=Array(T>2?T-2:0),S=2;S<T;S++)W[S-2]=arguments[S];if(A===null)return k;Array.isArray(A)||(A=[A]);var te=A.map(function(C){return k[C]}).filter(Boolean),J=te.reduce(function(C,Q){return typeof Q=="string"?C.className=[C.className,Q].filter(Boolean).join(" "):(Q===void 0?"undefined":(0,s.default)(Q))==="object"?C.style=(0,c.default)({},C.style,Q):typeof Q=="function"&&(C=(0,c.default)({},C,Q.apply(void 0,[C].concat(W)))),C},{className:"",style:{}});return J.className||delete J.className,(0,p.default)(J.style).length===0&&delete J.style,J},z=t.invertTheme=function(k){return(0,p.default)(k).reduce(function(A,T){return A[T]=/^base/.test(T)?ee(k[T]):T==="scheme"?k[T]+":inverted":k[T],A},{})},q=(t.createStyling=(0,f.default)(function(k){for(var A=arguments.length,T=Array(A>3?A-3:0),W=3;W<A;W++)T[W-3]=arguments[W];var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=S.defaultBase16,C=J===void 0?H:J,Q=S.base16Themes,he=Q===void 0?null:Q,ue=q(te,he);ue&&(te=(0,c.default)({},ue,te));var U=L.reduce(function(ge,Me){return ge[Me]=te[Me]||C[Me],ge},{}),ce=(0,p.default)(te).reduce(function(ge,Me){return L.indexOf(Me)===-1&&(ge[Me]=te[Me]),ge},{}),Z=k(U),me=B(ce,Z);return(0,f.default)(V,2).apply(void 0,[me].concat(T))},3),t.getBase16Theme=function(k,A){if(k&&k.extend&&(k=k.extend),typeof k=="string"){var T=k.split(":"),W=(0,d.default)(T,2),S=W[0],te=W[1];k=(A||{})[S]||h[S],te==="inverted"&&(k=z(k))}return k&&k.hasOwnProperty("base00")?k:void 0})},function(a,t,e){var s,c=typeof Reflect=="object"?Reflect:null,d=c&&typeof c.apply=="function"?c.apply:function(r,B,V){return Function.prototype.apply.call(r,B,V)};s=c&&typeof c.ownKeys=="function"?c.ownKeys:Object.getOwnPropertySymbols?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:function(r){return Object.getOwnPropertyNames(r)};var p=Number.isNaN||function(r){return r!=r};function f(){f.init.call(this)}a.exports=f,a.exports.once=function(r,B){return new Promise(function(V,z){function q(){k!==void 0&&r.removeListener("error",k),V([].slice.call(arguments))}var k;B!=="error"&&(k=function(A){r.removeListener(B,q),z(A)},r.once("error",k)),r.once(B,q)})},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var h=10;function E(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}function b(r){return r._maxListeners===void 0?f.defaultMaxListeners:r._maxListeners}function w(r,B,V,z){var q,k,A,T;if(E(V),(k=r._events)===void 0?(k=r._events=Object.create(null),r._eventsCount=0):(k.newListener!==void 0&&(r.emit("newListener",B,V.listener?V.listener:V),k=r._events),A=k[B]),A===void 0)A=k[B]=V,++r._eventsCount;else if(typeof A=="function"?A=k[B]=z?[V,A]:[A,V]:z?A.unshift(V):A.push(V),(q=b(r))>0&&A.length>q&&!A.warned){A.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=r,W.type=B,W.count=A.length,T=W,console&&console.warn&&console.warn(T)}return r}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function D(r,B,V){var z={fired:!1,wrapFn:void 0,target:r,type:B,listener:V},q=I.bind(z);return q.listener=V,z.wrapFn=q,q}function H(r,B,V){var z=r._events;if(z===void 0)return[];var q=z[B];return q===void 0?[]:typeof q=="function"?V?[q.listener||q]:[q]:V?function(k){for(var A=new Array(k.length),T=0;T<A.length;++T)A[T]=k[T].listener||k[T];return A}(q):ee(q,q.length)}function L(r){var B=this._events;if(B!==void 0){var V=B[r];if(typeof V=="function")return 1;if(V!==void 0)return V.length}return 0}function ee(r,B){for(var V=new Array(B),z=0;z<B;++z)V[z]=r[z];return V}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(r){if(typeof r!="number"||r<0||p(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");h=r}}),f.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||p(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this},f.prototype.getMaxListeners=function(){return b(this)},f.prototype.emit=function(r){for(var B=[],V=1;V<arguments.length;V++)B.push(arguments[V]);var z=r==="error",q=this._events;if(q!==void 0)z=z&&q.error===void 0;else if(!z)return!1;if(z){var k;if(B.length>0&&(k=B[0]),k instanceof Error)throw k;var A=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw A.context=k,A}var T=q[r];if(T===void 0)return!1;if(typeof T=="function")d(T,this,B);else{var W=T.length,S=ee(T,W);for(V=0;V<W;++V)d(S[V],this,B)}return!0},f.prototype.addListener=function(r,B){return w(this,r,B,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(r,B){return w(this,r,B,!0)},f.prototype.once=function(r,B){return E(B),this.on(r,D(this,r,B)),this},f.prototype.prependOnceListener=function(r,B){return E(B),this.prependListener(r,D(this,r,B)),this},f.prototype.removeListener=function(r,B){var V,z,q,k,A;if(E(B),(z=this._events)===void 0)return this;if((V=z[r])===void 0)return this;if(V===B||V.listener===B)--this._eventsCount==0?this._events=Object.create(null):(delete z[r],z.removeListener&&this.emit("removeListener",r,V.listener||B));else if(typeof V!="function"){for(q=-1,k=V.length-1;k>=0;k--)if(V[k]===B||V[k].listener===B){A=V[k].listener,q=k;break}if(q<0)return this;q===0?V.shift():function(T,W){for(;W+1<T.length;W++)T[W]=T[W+1];T.pop()}(V,q),V.length===1&&(z[r]=V[0]),z.removeListener!==void 0&&this.emit("removeListener",r,A||B)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(r){var B,V,z;if((V=this._events)===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[r]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete V[r]),this;if(arguments.length===0){var q,k=Object.keys(V);for(z=0;z<k.length;++z)(q=k[z])!=="removeListener"&&this.removeAllListeners(q);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(B=V[r])=="function")this.removeListener(r,B);else if(B!==void 0)for(z=B.length-1;z>=0;z--)this.removeListener(r,B[z]);return this},f.prototype.listeners=function(r){return H(this,r,!0)},f.prototype.rawListeners=function(r){return H(this,r,!1)},f.listenerCount=function(r,B){return typeof r.listenerCount=="function"?r.listenerCount(B):L.call(r,B)},f.prototype.listenerCount=L,f.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(a,t,e){a.exports.Dispatcher=e(140)},function(a,t,e){a.exports=e(142)},function(a,t,e){t.__esModule=!0;var s=p(e(50)),c=p(e(65)),d=typeof c.default=="function"&&typeof s.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof c.default=="function"&&f.constructor===c.default&&f!==c.default.prototype?"symbol":typeof f};function p(f){return f&&f.__esModule?f:{default:f}}t.default=typeof c.default=="function"&&d(s.default)==="symbol"?function(f){return f===void 0?"undefined":d(f)}:function(f){return f&&typeof c.default=="function"&&f.constructor===c.default&&f!==c.default.prototype?"symbol":f===void 0?"undefined":d(f)}},function(a,t,e){a.exports={default:e(51),__esModule:!0}},function(a,t,e){e(20),e(29),a.exports=e(30).f("iterator")},function(a,t,e){var s=e(21),c=e(22);a.exports=function(d){return function(p,f){var h,E,b=String(c(p)),w=s(f),I=b.length;return w<0||w>=I?d?"":void 0:(h=b.charCodeAt(w))<55296||h>56319||w+1===I||(E=b.charCodeAt(w+1))<56320||E>57343?d?b.charAt(w):h:d?b.slice(w,w+2):E-56320+(h-55296<<10)+65536}}},function(a,t,e){var s=e(54);a.exports=function(c,d,p){if(s(c),d===void 0)return c;switch(p){case 1:return function(f){return c.call(d,f)};case 2:return function(f,h){return c.call(d,f,h)};case 3:return function(f,h,E){return c.call(d,f,h,E)}}return function(){return c.apply(d,arguments)}}},function(a,t){a.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(a,t,e){var s=e(38),c=e(16),d=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),a.exports=function(f,h,E){f.prototype=s(p,{next:c(1,E)}),d(f,h+" Iterator")}},function(a,t,e){var s=e(7),c=e(10),d=e(13);a.exports=e(4)?Object.defineProperties:function(p,f){c(p);for(var h,E=d(f),b=E.length,w=0;b>w;)s.f(p,h=E[w++],f[h]);return p}},function(a,t,e){var s=e(9),c=e(58),d=e(59);a.exports=function(p){return function(f,h,E){var b,w=s(f),I=c(w.length),D=d(E,I);if(p&&h!=h){for(;I>D;)if((b=w[D++])!=b)return!0}else for(;I>D;D++)if((p||D in w)&&w[D]===h)return p||D||0;return!p&&-1}}},function(a,t,e){var s=e(21),c=Math.min;a.exports=function(d){return d>0?c(s(d),9007199254740991):0}},function(a,t,e){var s=e(21),c=Math.max,d=Math.min;a.exports=function(p,f){return(p=s(p))<0?c(p+f,0):d(p,f)}},function(a,t,e){var s=e(3).document;a.exports=s&&s.documentElement},function(a,t,e){var s=e(5),c=e(18),d=e(25)("IE_PROTO"),p=Object.prototype;a.exports=Object.getPrototypeOf||function(f){return f=c(f),s(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?p:null}},function(a,t,e){var s=e(63),c=e(64),d=e(12),p=e(9);a.exports=e(34)(Array,"Array",function(f,h){this._t=p(f),this._i=0,this._k=h},function(){var f=this._t,h=this._k,E=this._i++;return!f||E>=f.length?(this._t=void 0,c(1)):c(0,h=="keys"?E:h=="values"?f[E]:[E,f[E]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(a,t){a.exports=function(){}},function(a,t){a.exports=function(e,s){return{value:s,done:!!e}}},function(a,t,e){a.exports={default:e(66),__esModule:!0}},function(a,t,e){e(67),e(73),e(74),e(75),a.exports=e(1).Symbol},function(a,t,e){var s=e(3),c=e(5),d=e(4),p=e(15),f=e(37),h=e(68).KEY,E=e(8),b=e(26),w=e(28),I=e(17),D=e(2),H=e(30),L=e(31),ee=e(69),r=e(70),B=e(10),V=e(11),z=e(18),q=e(9),k=e(23),A=e(16),T=e(38),W=e(71),S=e(72),te=e(32),J=e(7),C=e(13),Q=S.f,he=J.f,ue=W.f,U=s.Symbol,ce=s.JSON,Z=ce&&ce.stringify,me=D("_hidden"),ge=D("toPrimitive"),Me={}.propertyIsEnumerable,Ee=b("symbol-registry"),Ce=b("symbols"),be=b("op-symbols"),ye=Object.prototype,Be=typeof U=="function"&&!!te.f,Ue=s.QObject,Ze=!Ue||!Ue.prototype||!Ue.prototype.findChild,Xe=d&&E(function(){return T(he({},"a",{get:function(){return he(this,"a",{value:7}).a}})).a!=7})?function(j,N,R){var K=Q(ye,N);K&&delete ye[N],he(j,N,R),K&&j!==ye&&he(ye,N,K)}:he,et=function(j){var N=Ce[j]=T(U.prototype);return N._k=j,N},tt=Be&&typeof U.iterator=="symbol"?function(j){return typeof j=="symbol"}:function(j){return j instanceof U},He=function(j,N,R){return j===ye&&He(be,N,R),B(j),N=k(N,!0),B(R),c(Ce,N)?(R.enumerable?(c(j,me)&&j[me][N]&&(j[me][N]=!1),R=T(R,{enumerable:A(0,!1)})):(c(j,me)||he(j,me,A(1,{})),j[me][N]=!0),Xe(j,N,R)):he(j,N,R)},nt=function(j,N){B(j);for(var R,K=ee(N=q(N)),ne=0,ae=K.length;ae>ne;)He(j,R=K[ne++],N[R]);return j},st=function(j){var N=Me.call(this,j=k(j,!0));return!(this===ye&&c(Ce,j)&&!c(be,j))&&(!(N||!c(this,j)||!c(Ce,j)||c(this,me)&&this[me][j])||N)},at=function(j,N){if(j=q(j),N=k(N,!0),j!==ye||!c(Ce,N)||c(be,N)){var R=Q(j,N);return!R||!c(Ce,N)||c(j,me)&&j[me][N]||(R.enumerable=!0),R}},ot=function(j){for(var N,R=ue(q(j)),K=[],ne=0;R.length>ne;)c(Ce,N=R[ne++])||N==me||N==h||K.push(N);return K},Ge=function(j){for(var N,R=j===ye,K=ue(R?be:q(j)),ne=[],ae=0;K.length>ae;)!c(Ce,N=K[ae++])||R&&!c(ye,N)||ne.push(Ce[N]);return ne};Be||(f((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var j=I(arguments.length>0?arguments[0]:void 0),N=function(R){this===ye&&N.call(be,R),c(this,me)&&c(this[me],j)&&(this[me][j]=!1),Xe(this,j,A(1,R))};return d&&Ze&&Xe(ye,j,{configurable:!0,set:N}),et(j)}).prototype,"toString",function(){return this._k}),S.f=at,J.f=He,e(41).f=W.f=ot,e(19).f=st,te.f=Ge,d&&!e(14)&&f(ye,"propertyIsEnumerable",st,!0),H.f=function(j){return et(D(j))}),p(p.G+p.W+p.F*!Be,{Symbol:U});for(var Ve="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ie=0;Ve.length>Ie;)D(Ve[Ie++]);for(var rt=C(D.store),F=0;rt.length>F;)L(rt[F++]);p(p.S+p.F*!Be,"Symbol",{for:function(j){return c(Ee,j+="")?Ee[j]:Ee[j]=U(j)},keyFor:function(j){if(!tt(j))throw TypeError(j+" is not a symbol!");for(var N in Ee)if(Ee[N]===j)return N},useSetter:function(){Ze=!0},useSimple:function(){Ze=!1}}),p(p.S+p.F*!Be,"Object",{create:function(j,N){return N===void 0?T(j):nt(T(j),N)},defineProperty:He,defineProperties:nt,getOwnPropertyDescriptor:at,getOwnPropertyNames:ot,getOwnPropertySymbols:Ge});var x=E(function(){te.f(1)});p(p.S+p.F*x,"Object",{getOwnPropertySymbols:function(j){return te.f(z(j))}}),ce&&p(p.S+p.F*(!Be||E(function(){var j=U();return Z([j])!="[null]"||Z({a:j})!="{}"||Z(Object(j))!="{}"})),"JSON",{stringify:function(j){for(var N,R,K=[j],ne=1;arguments.length>ne;)K.push(arguments[ne++]);if(R=N=K[1],(V(N)||j!==void 0)&&!tt(j))return r(N)||(N=function(ae,pe){if(typeof R=="function"&&(pe=R.call(this,ae,pe)),!tt(pe))return pe}),K[1]=N,Z.apply(ce,K)}}),U.prototype[ge]||e(6)(U.prototype,ge,U.prototype.valueOf),w(U,"Symbol"),w(Math,"Math",!0),w(s.JSON,"JSON",!0)},function(a,t,e){var s=e(17)("meta"),c=e(11),d=e(5),p=e(7).f,f=0,h=Object.isExtensible||function(){return!0},E=!e(8)(function(){return h(Object.preventExtensions({}))}),b=function(I){p(I,s,{value:{i:"O"+ ++f,w:{}}})},w=a.exports={KEY:s,NEED:!1,fastKey:function(I,D){if(!c(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!d(I,s)){if(!h(I))return"F";if(!D)return"E";b(I)}return I[s].i},getWeak:function(I,D){if(!d(I,s)){if(!h(I))return!0;if(!D)return!1;b(I)}return I[s].w},onFreeze:function(I){return E&&w.NEED&&h(I)&&!d(I,s)&&b(I),I}}},function(a,t,e){var s=e(13),c=e(32),d=e(19);a.exports=function(p){var f=s(p),h=c.f;if(h)for(var E,b=h(p),w=d.f,I=0;b.length>I;)w.call(p,E=b[I++])&&f.push(E);return f}},function(a,t,e){var s=e(24);a.exports=Array.isArray||function(c){return s(c)=="Array"}},function(a,t,e){var s=e(9),c=e(41).f,d={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];a.exports.f=function(f){return p&&d.call(f)=="[object Window]"?function(h){try{return c(h)}catch{return p.slice()}}(f):c(s(f))}},function(a,t,e){var s=e(19),c=e(16),d=e(9),p=e(23),f=e(5),h=e(35),E=Object.getOwnPropertyDescriptor;t.f=e(4)?E:function(b,w){if(b=d(b),w=p(w,!0),h)try{return E(b,w)}catch{}if(f(b,w))return c(!s.f.call(b,w),b[w])}},function(a,t){},function(a,t,e){e(31)("asyncIterator")},function(a,t,e){e(31)("observable")},function(a,t,e){t.__esModule=!0;var s,c=e(77),d=(s=c)&&s.__esModule?s:{default:s};t.default=d.default||function(p){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var E in h)Object.prototype.hasOwnProperty.call(h,E)&&(p[E]=h[E])}return p}},function(a,t,e){a.exports={default:e(78),__esModule:!0}},function(a,t,e){e(79),a.exports=e(1).Object.assign},function(a,t,e){var s=e(15);s(s.S+s.F,"Object",{assign:e(80)})},function(a,t,e){var s=e(4),c=e(13),d=e(32),p=e(19),f=e(18),h=e(40),E=Object.assign;a.exports=!E||e(8)(function(){var b={},w={},I=Symbol(),D="abcdefghijklmnopqrst";return b[I]=7,D.split("").forEach(function(H){w[H]=H}),E({},b)[I]!=7||Object.keys(E({},w)).join("")!=D})?function(b,w){for(var I=f(b),D=arguments.length,H=1,L=d.f,ee=p.f;D>H;)for(var r,B=h(arguments[H++]),V=L?c(B).concat(L(B)):c(B),z=V.length,q=0;z>q;)r=V[q++],s&&!ee.call(B,r)||(I[r]=B[r]);return I}:E},function(a,t,e){t.__esModule=!0;var s=d(e(82)),c=d(e(85));function d(p){return p&&p.__esModule?p:{default:p}}t.default=function(p,f){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(h,E){var b=[],w=!0,I=!1,D=void 0;try{for(var H,L=(0,c.default)(h);!(w=(H=L.next()).done)&&(b.push(H.value),!E||b.length!==E);w=!0);}catch(ee){I=!0,D=ee}finally{try{!w&&L.return&&L.return()}finally{if(I)throw D}}return b}(p,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(a,t,e){a.exports={default:e(83),__esModule:!0}},function(a,t,e){e(29),e(20),a.exports=e(84)},function(a,t,e){var s=e(42),c=e(2)("iterator"),d=e(12);a.exports=e(1).isIterable=function(p){var f=Object(p);return f[c]!==void 0||"@@iterator"in f||d.hasOwnProperty(s(f))}},function(a,t,e){a.exports={default:e(86),__esModule:!0}},function(a,t,e){e(29),e(20),a.exports=e(87)},function(a,t,e){var s=e(10),c=e(88);a.exports=e(1).getIterator=function(d){var p=c(d);if(typeof p!="function")throw TypeError(d+" is not iterable!");return s(p.call(d))}},function(a,t,e){var s=e(42),c=e(2)("iterator"),d=e(12);a.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[c]||p["@@iterator"]||d[s(p)]}},function(a,t,e){a.exports={default:e(90),__esModule:!0}},function(a,t,e){e(91),a.exports=e(1).Object.keys},function(a,t,e){var s=e(18),c=e(13);e(92)("keys",function(){return function(d){return c(s(d))}})},function(a,t,e){var s=e(15),c=e(1),d=e(8);a.exports=function(p,f){var h=(c.Object||{})[p]||Object[p],E={};E[p]=f(h),s(s.S+s.F*d(function(){h(1)}),"Object",E)}},function(a,t,e){(function(s){var c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,f=/\{\n\/\* \[wrapped with (.+)\] \*/,h=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,w=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,D=/^(?:0|[1-9]\d*)$/,H=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,ee=typeof self=="object"&&self&&self.Object===Object&&self,r=L||ee||Function("return this")();function B(F,x,j){switch(j.length){case 0:return F.call(x);case 1:return F.call(x,j[0]);case 2:return F.call(x,j[0],j[1]);case 3:return F.call(x,j[0],j[1],j[2])}return F.apply(x,j)}function V(F,x){return!!(F&&F.length)&&function(j,N,R){if(N!=N)return function(ae,pe,xe,je){for(var Ae=ae.length,ve=xe+-1;++ve<Ae;)if(pe(ae[ve],ve,ae))return ve;return-1}(j,z,R);for(var K=R-1,ne=j.length;++K<ne;)if(j[K]===N)return K;return-1}(F,x,0)>-1}function z(F){return F!=F}function q(F,x){for(var j=F.length,N=0;j--;)F[j]===x&&N++;return N}function k(F,x){for(var j=-1,N=F.length,R=0,K=[];++j<N;){var ne=F[j];ne!==x&&ne!=="__lodash_placeholder__"||(F[j]="__lodash_placeholder__",K[R++]=j)}return K}var A,T,W,S=Function.prototype,te=Object.prototype,J=r["__core-js_shared__"],C=(A=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",Q=S.toString,he=te.hasOwnProperty,ue=te.toString,U=RegExp("^"+Q.call(he).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=Object.create,Z=Math.max,me=Math.min,ge=(T=et(Object,"defineProperty"),(W=et.name)&&W.length>2?T:void 0);function Me(F){return Ve(F)?ce(F):{}}function Ee(F){return!(!Ve(F)||function(x){return!!C&&C in x}(F))&&(function(x){var j=Ve(x)?ue.call(x):"";return j=="[object Function]"||j=="[object GeneratorFunction]"}(F)||function(x){var j=!1;if(x!=null&&typeof x.toString!="function")try{j=!!(x+"")}catch{}return j}(F)?U:w).test(function(x){if(x!=null){try{return Q.call(x)}catch{}try{return x+""}catch{}}return""}(F))}function Ce(F,x,j,N){for(var R=-1,K=F.length,ne=j.length,ae=-1,pe=x.length,xe=Z(K-ne,0),je=Array(pe+xe),Ae=!N;++ae<pe;)je[ae]=x[ae];for(;++R<ne;)(Ae||R<K)&&(je[j[R]]=F[R]);for(;xe--;)je[ae++]=F[R++];return je}function be(F,x,j,N){for(var R=-1,K=F.length,ne=-1,ae=j.length,pe=-1,xe=x.length,je=Z(K-ae,0),Ae=Array(je+xe),ve=!N;++R<je;)Ae[R]=F[R];for(var Te=R;++pe<xe;)Ae[Te+pe]=x[pe];for(;++ne<ae;)(ve||R<K)&&(Ae[Te+j[ne]]=F[R++]);return Ae}function ye(F){return function(){var x=arguments;switch(x.length){case 0:return new F;case 1:return new F(x[0]);case 2:return new F(x[0],x[1]);case 3:return new F(x[0],x[1],x[2]);case 4:return new F(x[0],x[1],x[2],x[3]);case 5:return new F(x[0],x[1],x[2],x[3],x[4]);case 6:return new F(x[0],x[1],x[2],x[3],x[4],x[5]);case 7:return new F(x[0],x[1],x[2],x[3],x[4],x[5],x[6])}var j=Me(F.prototype),N=F.apply(j,x);return Ve(N)?N:j}}function Be(F,x,j,N,R,K,ne,ae,pe,xe){var je=128&x,Ae=1&x,ve=2&x,Te=24&x,De=512&x,$e=ve?void 0:ye(F);return function ze(){for(var ke=arguments.length,oe=Array(ke),Fe=ke;Fe--;)oe[Fe]=arguments[Fe];if(Te)var Pe=Xe(ze),Je=q(oe,Pe);if(N&&(oe=Ce(oe,N,R,Te)),K&&(oe=be(oe,K,ne,Te)),ke-=Je,Te&&ke<xe){var qe=k(oe,Pe);return Ue(F,x,Be,ze.placeholder,j,oe,qe,ae,pe,xe-ke)}var Re=Ae?j:this,We=ve?Re[F]:F;return ke=oe.length,ae?oe=st(oe,ae):De&&ke>1&&oe.reverse(),je&&pe<ke&&(oe.length=pe),this&&this!==r&&this instanceof ze&&(We=$e||ye(We)),We.apply(Re,oe)}}function Ue(F,x,j,N,R,K,ne,ae,pe,xe){var je=8&x;x|=je?32:64,4&(x&=~(je?64:32))||(x&=-4);var Ae=j(F,x,R,je?K:void 0,je?ne:void 0,je?void 0:K,je?void 0:ne,ae,pe,xe);return Ae.placeholder=N,at(Ae,F,x)}function Ze(F,x,j,N,R,K,ne,ae){var pe=2&x;if(!pe&&typeof F!="function")throw new TypeError("Expected a function");var xe=N?N.length:0;if(xe||(x&=-97,N=R=void 0),ne=ne===void 0?ne:Z(rt(ne),0),ae=ae===void 0?ae:rt(ae),xe-=R?R.length:0,64&x){var je=N,Ae=R;N=R=void 0}var ve=[F,x,j,N,R,je,Ae,K,ne,ae];if(F=ve[0],x=ve[1],j=ve[2],N=ve[3],R=ve[4],!(ae=ve[9]=ve[9]==null?pe?0:F.length:Z(ve[9]-xe,0))&&24&x&&(x&=-25),x&&x!=1)Te=x==8||x==16?function(De,$e,ze){var ke=ye(De);return function oe(){for(var Fe=arguments.length,Pe=Array(Fe),Je=Fe,qe=Xe(oe);Je--;)Pe[Je]=arguments[Je];var Re=Fe<3&&Pe[0]!==qe&&Pe[Fe-1]!==qe?[]:k(Pe,qe);if((Fe-=Re.length)<ze)return Ue(De,$e,Be,oe.placeholder,void 0,Pe,Re,void 0,void 0,ze-Fe);var We=this&&this!==r&&this instanceof oe?ke:De;return B(We,this,Pe)}}(F,x,ae):x!=32&&x!=33||R.length?Be.apply(void 0,ve):function(De,$e,ze,ke){var oe=1&$e,Fe=ye(De);return function Pe(){for(var Je=-1,qe=arguments.length,Re=-1,We=ke.length,it=Array(We+qe),ft=this&&this!==r&&this instanceof Pe?Fe:De;++Re<We;)it[Re]=ke[Re];for(;qe--;)it[Re++]=arguments[++Je];return B(ft,oe?ze:this,it)}}(F,x,j,N);else var Te=function(De,$e,ze){var ke=1&$e,oe=ye(De);return function Fe(){var Pe=this&&this!==r&&this instanceof Fe?oe:De;return Pe.apply(ke?ze:this,arguments)}}(F,x,j);return at(Te,F,x)}function Xe(F){return F.placeholder}function et(F,x){var j=function(N,R){return N==null?void 0:N[R]}(F,x);return Ee(j)?j:void 0}function tt(F){var x=F.match(f);return x?x[1].split(h):[]}function He(F,x){var j=x.length,N=j-1;return x[N]=(j>1?"& ":"")+x[N],x=x.join(j>2?", ":" "),F.replace(p,`{
|
|
3
|
+
/* [wrapped with `+x+`] */
|
|
4
|
+
`)}function nt(F,x){return!!(x=x??9007199254740991)&&(typeof F=="number"||D.test(F))&&F>-1&&F%1==0&&F<x}function st(F,x){for(var j=F.length,N=me(x.length,j),R=function(ne,ae){var pe=-1,xe=ne.length;for(ae||(ae=Array(xe));++pe<xe;)ae[pe]=ne[pe];return ae}(F);N--;){var K=x[N];F[N]=nt(K,j)?R[K]:void 0}return F}var at=ge?function(F,x,j){var N,R=x+"";return ge(F,"toString",{configurable:!0,enumerable:!1,value:(N=He(R,ot(tt(R),j)),function(){return N})})}:function(F){return F};function ot(F,x){return function(j,N){for(var R=-1,K=j?j.length:0;++R<K&&N(j[R],R,j)!==!1;);}(c,function(j){var N="_."+j[0];x&j[1]&&!V(F,N)&&F.push(N)}),F.sort()}function Ge(F,x,j){var N=Ze(F,8,void 0,void 0,void 0,void 0,void 0,x=j?void 0:x);return N.placeholder=Ge.placeholder,N}function Ve(F){var x=typeof F;return!!F&&(x=="object"||x=="function")}function Ie(F){return F?(F=function(x){if(typeof x=="number")return x;if(function(R){return typeof R=="symbol"||function(K){return!!K&&typeof K=="object"}(R)&&ue.call(R)=="[object Symbol]"}(x))return NaN;if(Ve(x)){var j=typeof x.valueOf=="function"?x.valueOf():x;x=Ve(j)?j+"":j}if(typeof x!="string")return x===0?x:+x;x=x.replace(d,"");var N=b.test(x);return N||I.test(x)?H(x.slice(2),N?2:8):E.test(x)?NaN:+x}(F))===1/0||F===-1/0?17976931348623157e292*(F<0?-1:1):F==F?F:0:F===0?F:0}function rt(F){var x=Ie(F),j=x%1;return x==x?j?x-j:x:0}Ge.placeholder={},a.exports=Ge}).call(this,e(43))},function(a,t,e){function s(be){return be&&be.__esModule?be.default:be}t.__esModule=!0;var c=e(95);t.threezerotwofour=s(c);var d=e(96);t.apathy=s(d);var p=e(97);t.ashes=s(p);var f=e(98);t.atelierDune=s(f);var h=e(99);t.atelierForest=s(h);var E=e(100);t.atelierHeath=s(E);var b=e(101);t.atelierLakeside=s(b);var w=e(102);t.atelierSeaside=s(w);var I=e(103);t.bespin=s(I);var D=e(104);t.brewer=s(D);var H=e(105);t.bright=s(H);var L=e(106);t.chalk=s(L);var ee=e(107);t.codeschool=s(ee);var r=e(108);t.colors=s(r);var B=e(109);t.default=s(B);var V=e(110);t.eighties=s(V);var z=e(111);t.embers=s(z);var q=e(112);t.flat=s(q);var k=e(113);t.google=s(k);var A=e(114);t.grayscale=s(A);var T=e(115);t.greenscreen=s(T);var W=e(116);t.harmonic=s(W);var S=e(117);t.hopscotch=s(S);var te=e(118);t.isotope=s(te);var J=e(119);t.marrakesh=s(J);var C=e(120);t.mocha=s(C);var Q=e(121);t.monokai=s(Q);var he=e(122);t.ocean=s(he);var ue=e(123);t.paraiso=s(ue);var U=e(124);t.pop=s(U);var ce=e(125);t.railscasts=s(ce);var Z=e(126);t.shapeshifter=s(Z);var me=e(127);t.solarized=s(me);var ge=e(128);t.summerfruit=s(ge);var Me=e(129);t.tomorrow=s(Me);var Ee=e(130);t.tube=s(Ee);var Ce=e(131);t.twilight=s(Ce)},function(a,t,e){t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},a.exports=t.default},function(a,t,e){t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},a.exports=t.default},function(a,t,e){var s=e(33);function c(d){var p=Math.round(s(d,0,255)).toString(16);return p.length==1?"0"+p:p}a.exports=function(d){var p=d.length===4?c(255*d[3]):"";return"#"+c(d[0])+c(d[1])+c(d[2])+p}},function(a,t,e){var s=e(134),c=e(135),d=e(136),p=e(137),f={"#":c,hsl:function(E){var b=s(E),w=p(b);return b.length===4&&w.push(b[3]),w},rgb:d};function h(E){for(var b in f)if(E.indexOf(b)===0)return f[b](E)}h.rgb=d,h.hsl=s,h.hex=c,a.exports=h},function(a,t,e){var s=e(44),c=e(33);function d(p,f){switch(p=parseFloat(p),f){case 0:return c(p,0,360);case 1:case 2:return c(p,0,100);case 3:return c(p,0,1)}}a.exports=function(p){return s(p).map(d)}},function(a,t){a.exports=function(e){e.length!==4&&e.length!==5||(e=function(d){for(var p="#",f=1;f<d.length;f++){var h=d.charAt(f);p+=h+h}return p}(e));var s=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(e.length===9){var c=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));s.push(c)}return s}},function(a,t,e){var s=e(44),c=e(33);function d(p,f){return f<3?p.indexOf("%")!=-1?Math.round(255*c(parseInt(p,10),0,100)/100):c(parseInt(p,10),0,255):c(parseFloat(p),0,1)}a.exports=function(p){return s(p).map(d)}},function(a,t){a.exports=function(e){var s,c,d,p,f,h=e[0]/360,E=e[1]/100,b=e[2]/100;if(E==0)return[f=255*b,f,f];s=2*b-(c=b<.5?b*(1+E):b+E-b*E),p=[0,0,0];for(var w=0;w<3;w++)(d=h+1/3*-(w-1))<0&&d++,d>1&&d--,f=6*d<1?s+6*(c-s)*d:2*d<1?c:3*d<2?s+(c-s)*(2/3-d)*6:s,p[w]=255*f;return p}},function(a,t,e){(function(s){var c=typeof s=="object"&&s&&s.Object===Object&&s,d=typeof self=="object"&&self&&self.Object===Object&&self,p=c||d||Function("return this")();function f(k,A,T){switch(T.length){case 0:return k.call(A);case 1:return k.call(A,T[0]);case 2:return k.call(A,T[0],T[1]);case 3:return k.call(A,T[0],T[1],T[2])}return k.apply(A,T)}function h(k,A){for(var T=-1,W=A.length,S=k.length;++T<W;)k[S+T]=A[T];return k}var E=Object.prototype,b=E.hasOwnProperty,w=E.toString,I=p.Symbol,D=E.propertyIsEnumerable,H=I?I.isConcatSpreadable:void 0,L=Math.max;function ee(k){return r(k)||function(A){return function(T){return function(W){return!!W&&typeof W=="object"}(T)&&function(W){return W!=null&&function(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=9007199254740991}(W.length)&&!function(S){var te=function(J){var C=typeof J;return!!J&&(C=="object"||C=="function")}(S)?w.call(S):"";return te=="[object Function]"||te=="[object GeneratorFunction]"}(W)}(T)}(A)&&b.call(A,"callee")&&(!D.call(A,"callee")||w.call(A)=="[object Arguments]")}(k)||!!(H&&k&&k[H])}var r=Array.isArray,B,V,z,q=(V=function(k){var A=(k=function(S,te,J,C,Q){var he=-1,ue=S.length;for(J||(J=ee),Q||(Q=[]);++he<ue;){var U=S[he];J(U)?h(Q,U):Q[Q.length]=U}return Q}(k)).length,T=A;for(B;T--;)if(typeof k[T]!="function")throw new TypeError("Expected a function");return function(){for(var W=0,S=A?k[W].apply(this,arguments):arguments[0];++W<A;)S=k[W].call(this,S);return S}},z=L(z===void 0?V.length-1:z,0),function(){for(var k=arguments,A=-1,T=L(k.length-z,0),W=Array(T);++A<T;)W[A]=k[z+A];A=-1;for(var S=Array(z+1);++A<z;)S[A]=k[A];return S[z]=W,f(V,this,S)});a.exports=q}).call(this,e(43))},function(a,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.yuv2rgb=function(s){var c,d,p,f=s[0],h=s[1],E=s[2];return c=1*f+0*h+1.13983*E,d=1*f+-.39465*h+-.5806*E,p=1*f+2.02311*h+0*E,c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),[255*c,255*d,255*p]},t.rgb2yuv=function(s){var c=s[0]/255,d=s[1]/255,p=s[2]/255;return[.299*c+.587*d+.114*p,-.14713*c+-.28886*d+.436*p,.615*c+-.51499*d+-.10001*p]}},function(a,t,e){function s(p,f,h){return f in p?Object.defineProperty(p,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[f]=h,p}var c=e(141),d=function(){function p(){s(this,"_callbacks",void 0),s(this,"_isDispatching",void 0),s(this,"_isHandled",void 0),s(this,"_isPending",void 0),s(this,"_lastID",void 0),s(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var f=p.prototype;return f.register=function(h){var E="ID_"+this._lastID++;return this._callbacks[E]=h,E},f.unregister=function(h){this._callbacks[h]||c(!1),delete this._callbacks[h]},f.waitFor=function(h){this._isDispatching||c(!1);for(var E=0;E<h.length;E++){var b=h[E];this._isPending[b]?this._isHandled[b]||c(!1):(this._callbacks[b]||c(!1),this._invokeCallback(b))}},f.dispatch=function(h){this._isDispatching&&c(!1),this._startDispatching(h);try{for(var E in this._callbacks)this._isPending[E]||this._invokeCallback(E)}finally{this._stopDispatching()}},f.isDispatching=function(){return this._isDispatching},f._invokeCallback=function(h){this._isPending[h]=!0,this._callbacks[h](this._pendingPayload),this._isHandled[h]=!0},f._startDispatching=function(h){for(var E in this._callbacks)this._isPending[E]=!1,this._isHandled[E]=!1;this._pendingPayload=h,this._isDispatching=!0},f._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},p}();a.exports=d},function(a,t,e){a.exports=function(s,c){for(var d=arguments.length,p=new Array(d>2?d-2:0),f=2;f<d;f++)p[f-2]=arguments[f];if(!s){var h;if(c===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=0;(h=new Error(c.replace(/%s/g,function(){return String(p[E++])}))).name="Invariant Violation"}throw h.framesToPop=1,h}}},function(a,t,e){function s(l,u,n){return u in l?Object.defineProperty(l,u,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[u]=n,l}function c(l,u){var n=Object.keys(l);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(l);u&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable})),n.push.apply(n,o)}return n}function d(l){for(var u=1;u<arguments.length;u++){var n=arguments[u]!=null?arguments[u]:{};u%2?c(Object(n),!0).forEach(function(o){s(l,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(o){Object.defineProperty(l,o,Object.getOwnPropertyDescriptor(n,o))})}return l}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function f(l,u){for(var n=0;n<u.length;n++){var o=u[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}function h(l,u,n){return u&&f(l.prototype,u),n&&f(l,n),l}function E(l,u){return(E=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(l,u)}function b(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),u&&E(l,u)}function w(l){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)})(l)}function I(l){return(I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(l)}function D(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function H(l,u){return!u||I(u)!=="object"&&typeof u!="function"?D(l):u}function L(l){var u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,o=w(l);if(u){var i=w(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return H(this,n)}}e.r(t);var ee=e(0),r=e.n(ee);function B(){var l=this.constructor.getDerivedStateFromProps(this.props,this.state);l!=null&&this.setState(l)}function V(l){this.setState(function(u){var n=this.constructor.getDerivedStateFromProps(l,u);return n??null}.bind(this))}function z(l,u){try{var n=this.props,o=this.state;this.props=l,this.state=u,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function q(l){var u=l.prototype;if(!u||!u.isReactComponent)throw new Error("Can only polyfill class components");if(typeof l.getDerivedStateFromProps!="function"&&typeof u.getSnapshotBeforeUpdate!="function")return l;var n=null,o=null,i=null;if(typeof u.componentWillMount=="function"?n="componentWillMount":typeof u.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof u.componentWillReceiveProps=="function"?o="componentWillReceiveProps":typeof u.UNSAFE_componentWillReceiveProps=="function"&&(o="UNSAFE_componentWillReceiveProps"),typeof u.componentWillUpdate=="function"?i="componentWillUpdate":typeof u.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||o!==null||i!==null){var y=l.displayName||l.name,O=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
5
|
+
|
|
6
|
+
`+y+" uses "+O+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
7
|
+
`+n:"")+(o!==null?`
|
|
8
|
+
`+o:"")+(i!==null?`
|
|
9
|
+
`+i:"")+`
|
|
10
|
+
|
|
11
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
12
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof l.getDerivedStateFromProps=="function"&&(u.componentWillMount=B,u.componentWillReceiveProps=V),typeof u.getSnapshotBeforeUpdate=="function"){if(typeof u.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");u.componentWillUpdate=z;var _=u.componentDidUpdate;u.componentDidUpdate=function(m,P,$){var se=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:$;_.call(this,m,P,se)}}return l}function k(l,u){if(l==null)return{};var n,o,i=function(O,_){if(O==null)return{};var m,P,$={},se=Object.keys(O);for(P=0;P<se.length;P++)m=se[P],_.indexOf(m)>=0||($[m]=O[m]);return $}(l,u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);for(o=0;o<y.length;o++)n=y[o],u.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(l,n)&&(i[n]=l[n])}return i}function A(l){var u=function(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(l);return u==="number"&&(u=isNaN(l)?"nan":(0|l)!=l?"float":"integer"),u}B.__suppressDeprecationWarning=!0,V.__suppressDeprecationWarning=!0,z.__suppressDeprecationWarning=!0;var T={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},W={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},S={globalFontFamily:"monospace",globalCursor:"default",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},te=e(45),J=function(l){var u=function(n){return{backgroundColor:n.base00,ellipsisColor:n.base09,braceColor:n.base07,expandedIcon:n.base0D,collapsedIcon:n.base0E,keyColor:n.base07,arrayKeyColor:n.base0C,objectSize:n.base04,copyToClipboard:n.base0F,copyToClipboardCheck:n.base0D,objectBorder:n.base02,dataTypes:{boolean:n.base0E,date:n.base0D,float:n.base0B,function:n.base0D,integer:n.base0F,string:n.base09,nan:n.base08,null:n.base0A,undefined:n.base05,regexp:n.base0A,background:n.base02},editVariable:{editIcon:n.base0E,cancelIcon:n.base09,removeIcon:n.base09,addIcon:n.base0E,checkIcon:n.base0E,background:n.base01,color:n.base0A,border:n.base07},addKeyModal:{background:n.base05,border:n.base04,color:n.base0A,labelColor:n.base01},validationFailure:{background:n.base09,iconColor:n.base01,fontColor:n.base01}}}(l);return{"app-container":{fontFamily:S.globalFontFamily,cursor:S.globalCursor,backgroundColor:u.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:u.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:S.braceCursor,fontWeight:S.braceFontWeight,color:u.braceColor},"expanded-icon":{color:u.expandedIcon},"collapsed-icon":{color:u.collapsedIcon},colon:{display:"inline-block",margin:S.keyMargin,color:u.keyColor,verticalAlign:"top"},objectKeyVal:function(n,o){return{style:d({paddingTop:S.keyValPaddingTop,paddingRight:S.keyValPaddingRight,paddingBottom:S.keyValPaddingBottom,borderLeft:S.keyValBorderLeft+" "+u.objectBorder,":hover":{paddingLeft:o.paddingLeft-1+"px",borderLeft:S.keyValBorderHover+" "+u.objectBorder}},o)}},"object-key-val-no-border":{padding:S.keyValPadding},"pushed-content":{marginLeft:S.pushedContentMarginLeft},variableValue:function(n,o){return{style:d({display:"inline-block",paddingRight:S.variableValuePaddingRight,position:"relative"},o)}},"object-name":{display:"inline-block",color:u.keyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"array-key":{display:"inline-block",color:u.arrayKeyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"object-size":{color:u.objectSize,borderRadius:S.objectSizeBorderRadius,fontStyle:S.objectSizeFontStyle,margin:S.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:S.dataTypeFontSize,marginRight:S.dataTypeMarginRight,opacity:S.datatypeOpacity},boolean:{display:"inline-block",color:u.dataTypes.boolean},date:{display:"inline-block",color:u.dataTypes.date},"date-value":{marginLeft:S.dateValueMarginLeft},float:{display:"inline-block",color:u.dataTypes.float},function:{display:"inline-block",color:u.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:u.dataTypes.integer},string:{display:"inline-block",color:u.dataTypes.string},nan:{display:"inline-block",color:u.dataTypes.nan,fontSize:S.nanFontSize,fontWeight:S.nanFontWeight,backgroundColor:u.dataTypes.background,padding:S.nanPadding,borderRadius:S.nanBorderRadius},null:{display:"inline-block",color:u.dataTypes.null,fontSize:S.nullFontSize,fontWeight:S.nullFontWeight,backgroundColor:u.dataTypes.background,padding:S.nullPadding,borderRadius:S.nullBorderRadius},undefined:{display:"inline-block",color:u.dataTypes.undefined,fontSize:S.undefinedFontSize,padding:S.undefinedPadding,borderRadius:S.undefinedBorderRadius,backgroundColor:u.dataTypes.background},regexp:{display:"inline-block",color:u.dataTypes.regexp},"copy-to-clipboard":{cursor:S.clipboardCursor},"copy-icon":{color:u.copyToClipboard,fontSize:S.iconFontSize,marginRight:S.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:u.copyToClipboardCheck,marginLeft:S.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:S.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:S.metaDataPadding},"icon-container":{display:"inline-block",width:S.iconContainerWidth},tooltip:{padding:S.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:u.editVariable.removeIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:u.editVariable.addIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:u.editVariable.editIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:S.iconCursor,color:u.editVariable.checkIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:S.iconCursor,color:u.editVariable.cancelIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:S.editInputMinWidth,borderRadius:S.editInputBorderRadius,backgroundColor:u.editVariable.background,color:u.editVariable.color,padding:S.editInputPadding,marginRight:S.editInputMarginRight,fontFamily:S.editInputFontFamily},"detected-row":{paddingTop:S.detectedRowPaddingTop},"key-modal-request":{position:S.addKeyCoverPosition,top:S.addKeyCoverPositionPx,left:S.addKeyCoverPositionPx,right:S.addKeyCoverPositionPx,bottom:S.addKeyCoverPositionPx,backgroundColor:S.addKeyCoverBackground},"key-modal":{width:S.addKeyModalWidth,backgroundColor:u.addKeyModal.background,marginLeft:S.addKeyModalMargin,marginRight:S.addKeyModalMargin,padding:S.addKeyModalPadding,borderRadius:S.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:u.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:u.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:u.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:u.addKeyModal.labelColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:u.editVariable.addIcon,fontSize:S.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:u.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:u.validationFailure.fontColor,backgroundColor:u.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:u.validationFailure.iconColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"}}};function C(l,u,n){return l||console.error("theme has not been set"),function(o){var i=T;return o!==!1&&o!=="none"||(i=W),Object(te.createStyling)(J,{defaultBase16:i})(o)}(l)(u,n)}var Q=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=(o.rjvId,o.type_name),y=o.displayDataTypes,O=o.theme;return y?r.a.createElement("span",Object.assign({className:"data-type-label"},C(O,"data-type-label")),i):null}}]),n}(r.a.PureComponent),he=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props;return r.a.createElement("div",C(o.theme,"boolean"),r.a.createElement(Q,Object.assign({type_name:"bool"},o)),o.value?"true":"false")}}]),n}(r.a.PureComponent),ue=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props;return r.a.createElement("div",C(o.theme,"date"),r.a.createElement(Q,Object.assign({type_name:"date"},o)),r.a.createElement("span",Object.assign({className:"date-value"},C(o.theme,"date-value")),o.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),n}(r.a.PureComponent),U=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props;return r.a.createElement("div",C(o.theme,"float"),r.a.createElement(Q,Object.assign({type_name:"float"},o)),this.props.value)}}]),n}(r.a.PureComponent);function ce(l,u){(u==null||u>l.length)&&(u=l.length);for(var n=0,o=new Array(u);n<u;n++)o[n]=l[n];return o}function Z(l,u){if(l){if(typeof l=="string")return ce(l,u);var n=Object.prototype.toString.call(l).slice(8,-1);return n==="Object"&&l.constructor&&(n=l.constructor.name),n==="Map"||n==="Set"?Array.from(l):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(l,u):void 0}}function me(l,u){var n;if(typeof Symbol>"u"||l[Symbol.iterator]==null){if(Array.isArray(l)||(n=Z(l))||u){n&&(l=n);var o=0,i=function(){};return{s:i,n:function(){return o>=l.length?{done:!0}:{done:!1,value:l[o++]}},e:function(m){throw m},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,O=!0,_=!1;return{s:function(){n=l[Symbol.iterator]()},n:function(){var m=n.next();return O=m.done,m},e:function(m){_=!0,y=m},f:function(){try{O||n.return==null||n.return()}finally{if(_)throw y}}}}function ge(l){return function(u){if(Array.isArray(u))return ce(u)}(l)||function(u){if(typeof Symbol<"u"&&Symbol.iterator in Object(u))return Array.from(u)}(l)||Z(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Me=e(46),Ee=new(e(47)).Dispatcher,Ce=new(function(l){b(n,l);var u=L(n);function n(){var o;p(this,n);for(var i=arguments.length,y=new Array(i),O=0;O<i;O++)y[O]=arguments[O];return(o=u.call.apply(u,[this].concat(y))).objects={},o.set=function(_,m,P,$){o.objects[_]===void 0&&(o.objects[_]={}),o.objects[_][m]===void 0&&(o.objects[_][m]={}),o.objects[_][m][P]=$},o.get=function(_,m,P,$){return o.objects[_]===void 0||o.objects[_][m]===void 0||o.objects[_][m][P]==null?$:o.objects[_][m][P]},o.handleAction=function(_){var m=_.rjvId,P=_.data;switch(_.name){case"RESET":o.emit("reset-"+m);break;case"VARIABLE_UPDATED":_.data.updated_src=o.updateSrc(m,P),o.set(m,"action","variable-update",d(d({},P),{},{type:"variable-edited"})),o.emit("variable-update-"+m);break;case"VARIABLE_REMOVED":_.data.updated_src=o.updateSrc(m,P),o.set(m,"action","variable-update",d(d({},P),{},{type:"variable-removed"})),o.emit("variable-update-"+m);break;case"VARIABLE_ADDED":_.data.updated_src=o.updateSrc(m,P),o.set(m,"action","variable-update",d(d({},P),{},{type:"variable-added"})),o.emit("variable-update-"+m);break;case"ADD_VARIABLE_KEY_REQUEST":o.set(m,"action","new-key-request",P),o.emit("add-key-request-"+m)}},o.updateSrc=function(_,m){var P=m.name,$=m.namespace,se=m.new_value,ie=(m.existing_value,m.variable_removed);$.shift();var de,re=o.get(_,"global","src"),fe=o.deepCopy(re,ge($)),Se=fe,Y=me($);try{for(Y.s();!(de=Y.n()).done;)Se=Se[de.value]}catch(we){Y.e(we)}finally{Y.f()}return ie?A(Se)=="array"?Se.splice(P,1):delete Se[P]:P!==null?Se[P]=se:fe=se,o.set(_,"global","src",fe),fe},o.deepCopy=function(_,m){var P,$=A(_),se=m.shift();return $=="array"?P=ge(_):$=="object"&&(P=d({},_)),se!==void 0&&(P[se]=o.deepCopy(_[se],m)),P},o}return n}(Me.EventEmitter));Ee.register(Ce.handleAction.bind(Ce));var be=Ce,ye=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).toggleCollapsed=function(){i.setState({collapsed:!i.state.collapsed},function(){be.set(i.props.rjvId,i.props.namespace,"collapsed",i.state.collapsed)})},i.getFunctionDisplay=function(y){var O=D(i).props;return y?r.a.createElement("span",null,i.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),r.a.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},r.a.createElement("span",null,"{"),r.a.createElement("span",C(O.theme,"ellipsis"),"..."),r.a.createElement("span",null,"}"))):i.props.value.toString().slice(9,-1)},i.state={collapsed:be.get(o.rjvId,o.namespace,"collapsed",!0)},i}return h(n,[{key:"render",value:function(){var o=this.props,i=this.state.collapsed;return r.a.createElement("div",C(o.theme,"function"),r.a.createElement(Q,Object.assign({type_name:"function"},o)),r.a.createElement("span",Object.assign({},C(o.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(i)))}}]),n}(r.a.PureComponent),Be=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){return r.a.createElement("div",C(this.props.theme,"nan"),"NaN")}}]),n}(r.a.PureComponent),Ue=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){return r.a.createElement("div",C(this.props.theme,"null"),"NULL")}}]),n}(r.a.PureComponent),Ze=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props;return r.a.createElement("div",C(o.theme,"integer"),r.a.createElement(Q,Object.assign({type_name:"int"},o)),this.props.value)}}]),n}(r.a.PureComponent),Xe=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props;return r.a.createElement("div",C(o.theme,"regexp"),r.a.createElement(Q,Object.assign({type_name:"regexp"},o)),this.props.value.toString())}}]),n}(r.a.PureComponent),et=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).toggleCollapsed=function(){i.setState({collapsed:!i.state.collapsed},function(){be.set(i.props.rjvId,i.props.namespace,"collapsed",i.state.collapsed)})},i.state={collapsed:be.get(o.rjvId,o.namespace,"collapsed",!0)},i}return h(n,[{key:"render",value:function(){this.state.collapsed;var o=this.props,i=o.collapseStringsAfterLength,y=o.theme,O=o.value,_={style:{cursor:"default"}};return A(i)==="integer"&&O.length>i&&(_.style.cursor="pointer",this.state.collapsed&&(O=r.a.createElement("span",null,O.substring(0,i),r.a.createElement("span",C(y,"ellipsis")," ...")))),r.a.createElement("div",C(y,"string"),r.a.createElement(Q,Object.assign({type_name:"string"},o)),r.a.createElement("span",Object.assign({className:"string-value"},_,{onClick:this.toggleCollapsed}),'"',O,'"'))}}]),n}(r.a.PureComponent),tt=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){return r.a.createElement("div",C(this.props.theme,"undefined"),"undefined")}}]),n}(r.a.PureComponent);function He(){return(He=Object.assign||function(l){for(var u=1;u<arguments.length;u++){var n=arguments[u];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(l[o]=n[o])}return l}).apply(this,arguments)}var nt=ee.useLayoutEffect,st=function(l){var u=Object(ee.useRef)(l);return nt(function(){u.current=l}),u},at=function(l,u){typeof l!="function"?l.current=u:l(u)},ot=function(l,u){var n=Object(ee.useRef)();return Object(ee.useCallback)(function(o){l.current=o,n.current&&at(n.current,null),n.current=u,u&&at(u,o)},[u])},Ge={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Ve=function(l){Object.keys(Ge).forEach(function(u){l.style.setProperty(u,Ge[u],"important")})},Ie=null,rt=function(){},F=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],x=!!document.documentElement.currentStyle,j=function(l,u){var n=l.cacheMeasurements,o=l.maxRows,i=l.minRows,y=l.onChange,O=y===void 0?rt:y,_=l.onHeightChange,m=_===void 0?rt:_,P=function(Y,we){if(Y==null)return{};var Le,Ye,vt={},Qe=Object.keys(Y);for(Ye=0;Ye<Qe.length;Ye++)Le=Qe[Ye],we.indexOf(Le)>=0||(vt[Le]=Y[Le]);return vt}(l,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$,se=P.value!==void 0,ie=Object(ee.useRef)(null),de=ot(ie,u),re=Object(ee.useRef)(0),fe=Object(ee.useRef)(),Se=function(){var Y=ie.current,we=n&&fe.current?fe.current:function(Qe){var gt=window.getComputedStyle(Qe);if(gt===null)return null;var lt,Ne=(lt=gt,F.reduce(function(bt,ut){return bt[ut]=lt[ut],bt},{})),ct=Ne.boxSizing;return ct===""?null:(x&&ct==="border-box"&&(Ne.width=parseFloat(Ne.width)+parseFloat(Ne.borderRightWidth)+parseFloat(Ne.borderLeftWidth)+parseFloat(Ne.paddingRight)+parseFloat(Ne.paddingLeft)+"px"),{sizingStyle:Ne,paddingSize:parseFloat(Ne.paddingBottom)+parseFloat(Ne.paddingTop),borderSize:parseFloat(Ne.borderBottomWidth)+parseFloat(Ne.borderTopWidth)})}(Y);if(we){fe.current=we;var Le=function(Qe,gt,lt,Ne){lt===void 0&&(lt=1),Ne===void 0&&(Ne=1/0),Ie||((Ie=document.createElement("textarea")).setAttribute("tab-index","-1"),Ie.setAttribute("aria-hidden","true"),Ve(Ie)),Ie.parentNode===null&&document.body.appendChild(Ie);var ct=Qe.paddingSize,bt=Qe.borderSize,ut=Qe.sizingStyle,Ot=ut.boxSizing;Object.keys(ut).forEach(function(Et){var pt=Et;Ie.style[pt]=ut[pt]}),Ve(Ie),Ie.value=gt;var yt=function(Et,pt){var Ct=Et.scrollHeight;return pt.sizingStyle.boxSizing==="border-box"?Ct+pt.borderSize:Ct-pt.paddingSize}(Ie,Qe);Ie.value="x";var xt=Ie.scrollHeight-ct,jt=xt*lt;Ot==="border-box"&&(jt=jt+ct+bt),yt=Math.max(jt,yt);var St=xt*Ne;return Ot==="border-box"&&(St=St+ct+bt),[yt=Math.min(St,yt),xt]}(we,Y.value||Y.placeholder||"x",i,o),Ye=Le[0],vt=Le[1];re.current!==Ye&&(re.current=Ye,Y.style.setProperty("height",Ye+"px","important"),m(Ye,{rowHeight:vt}))}};return Object(ee.useLayoutEffect)(Se),$=st(Se),Object(ee.useLayoutEffect)(function(){var Y=function(we){$.current(we)};return window.addEventListener("resize",Y),function(){window.removeEventListener("resize",Y)}},[]),Object(ee.createElement)("textarea",He({},P,{onChange:function(Y){se||Se(),O(Y)},ref:de}))},N=Object(ee.forwardRef)(j);function R(l){l=l.trim();try{if((l=JSON.stringify(JSON.parse(l)))[0]==="[")return K("array",JSON.parse(l));if(l[0]==="{")return K("object",JSON.parse(l));if(l.match(/\-?\d+\.\d+/)&&l.match(/\-?\d+\.\d+/)[0]===l)return K("float",parseFloat(l));if(l.match(/\-?\d+e-\d+/)&&l.match(/\-?\d+e-\d+/)[0]===l)return K("float",Number(l));if(l.match(/\-?\d+/)&&l.match(/\-?\d+/)[0]===l)return K("integer",parseInt(l));if(l.match(/\-?\d+e\+\d+/)&&l.match(/\-?\d+e\+\d+/)[0]===l)return K("integer",Number(l))}catch{}switch(l=l.toLowerCase()){case"undefined":return K("undefined",void 0);case"nan":return K("nan",NaN);case"null":return K("null",null);case"true":return K("boolean",!0);case"false":return K("boolean",!1);default:if(l=Date.parse(l))return K("date",new Date(l))}return K(!1,null)}function K(l,u){return{type:l,value:u}}var ne=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),n}(r.a.PureComponent),ae=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),n}(r.a.PureComponent),pe=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]),O=oe(i).style;return r.a.createElement("span",y,r.a.createElement("svg",{fill:O.color,width:O.height,height:O.width,style:O,viewBox:"0 0 1792 1792"},r.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(r.a.PureComponent),xe=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]),O=oe(i).style;return r.a.createElement("span",y,r.a.createElement("svg",{fill:O.color,width:O.height,height:O.width,style:O,viewBox:"0 0 1792 1792"},r.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(r.a.PureComponent),je=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",{style:d(d({},oe(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},r.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),n}(r.a.PureComponent),Ae=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",{style:d(d({},oe(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},r.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),n}(r.a.PureComponent),ve=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),n}(r.a.PureComponent),Te=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(r.a.PureComponent),De=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(r.a.PureComponent),$e=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),n}(r.a.PureComponent),ze=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),n}(r.a.PureComponent),ke=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.style,y=k(o,["style"]);return r.a.createElement("span",y,r.a.createElement("svg",Object.assign({},oe(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),r.a.createElement("g",null,r.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(r.a.PureComponent);function oe(l){return l||(l={}),{style:d(d({verticalAlign:"middle"},l),{},{color:l.color?l.color:"#000000",height:"1em",width:"1em"})}}var Fe=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).copiedTimer=null,i.handleCopy=function(){var y=document.createElement("textarea"),O=i.props,_=O.clickCallback,m=O.src,P=O.namespace;y.innerHTML=JSON.stringify(i.clipboardValue(m),null," "),document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y),i.copiedTimer=setTimeout(function(){i.setState({copied:!1})},5500),i.setState({copied:!0},function(){typeof _=="function"&&_({src:m,namespace:P,name:P[P.length-1]})})},i.getClippyIcon=function(){var y=i.props.theme;return i.state.copied?r.a.createElement("span",null,r.a.createElement(ve,Object.assign({className:"copy-icon"},C(y,"copy-icon"))),r.a.createElement("span",C(y,"copy-icon-copied"),"✔")):r.a.createElement(ve,Object.assign({className:"copy-icon"},C(y,"copy-icon")))},i.clipboardValue=function(y){switch(A(y)){case"function":case"regexp":return y.toString();default:return y}},i.state={copied:!1},i}return h(n,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var o=this.props,i=(o.src,o.theme),y=o.hidden,O=o.rowHovered,_=C(i,"copy-to-clipboard").style,m="inline";return y&&(m="none"),r.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:O?"inline-block":"none"}},r.a.createElement("span",{style:d(d({},_),{},{display:m}),onClick:this.handleCopy},this.getClippyIcon()))}}]),n}(r.a.PureComponent),Pe=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).getEditIcon=function(){var y=i.props,O=y.variable,_=y.theme;return r.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},r.a.createElement(ze,Object.assign({className:"click-to-edit-icon"},C(_,"editVarIcon"),{onClick:function(){i.prepopInput(O)}})))},i.prepopInput=function(y){if(i.props.onEdit!==!1){var O=function(m){var P;switch(A(m)){case"undefined":P="undefined";break;case"nan":P="NaN";break;case"string":P=m;break;case"date":case"function":case"regexp":P=m.toString();break;default:try{P=JSON.stringify(m,null," ")}catch{P=""}}return P}(y.value),_=R(O);i.setState({editMode:!0,editValue:O,parsedInput:{type:_.type,value:_.value}})}},i.getRemoveIcon=function(){var y=i.props,O=y.variable,_=y.namespace,m=y.theme,P=y.rjvId;return r.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},r.a.createElement(Te,Object.assign({className:"click-to-remove-icon"},C(m,"removeVarIcon"),{onClick:function(){Ee.dispatch({name:"VARIABLE_REMOVED",rjvId:P,data:{name:O.name,namespace:_,existing_value:O.value,variable_removed:!0}})}})))},i.getValue=function(y,O){var _=!O&&y.type,m=D(i).props;switch(_){case!1:return i.getEditInput();case"string":return r.a.createElement(et,Object.assign({value:y.value},m));case"integer":return r.a.createElement(Ze,Object.assign({value:y.value},m));case"float":return r.a.createElement(U,Object.assign({value:y.value},m));case"boolean":return r.a.createElement(he,Object.assign({value:y.value},m));case"function":return r.a.createElement(ye,Object.assign({value:y.value},m));case"null":return r.a.createElement(Ue,m);case"nan":return r.a.createElement(Be,m);case"undefined":return r.a.createElement(tt,m);case"date":return r.a.createElement(ue,Object.assign({value:y.value},m));case"regexp":return r.a.createElement(Xe,Object.assign({value:y.value},m));default:return r.a.createElement("div",{className:"object-value"},JSON.stringify(y.value))}},i.getEditInput=function(){var y=i.props.theme,O=i.state.editValue;return r.a.createElement("div",null,r.a.createElement(N,Object.assign({type:"text",inputRef:function(_){return _&&_.focus()},value:O,className:"variable-editor",onChange:function(_){var m=_.target.value,P=R(m);i.setState({editValue:m,parsedInput:{type:P.type,value:P.value}})},onKeyDown:function(_){switch(_.key){case"Escape":i.setState({editMode:!1,editValue:""});break;case"Enter":(_.ctrlKey||_.metaKey)&&i.submitEdit(!0)}_.stopPropagation()},placeholder:"update this value",minRows:2},C(y,"edit-input"))),r.a.createElement("div",C(y,"edit-icon-container"),r.a.createElement(Te,Object.assign({className:"edit-cancel"},C(y,"cancel-icon"),{onClick:function(){i.setState({editMode:!1,editValue:""})}})),r.a.createElement(ke,Object.assign({className:"edit-check string-value"},C(y,"check-icon"),{onClick:function(){i.submitEdit()}})),r.a.createElement("div",null,i.showDetected())))},i.submitEdit=function(y){var O=i.props,_=O.variable,m=O.namespace,P=O.rjvId,$=i.state,se=$.editValue,ie=$.parsedInput,de=se;y&&ie.type&&(de=ie.value),i.setState({editMode:!1}),Ee.dispatch({name:"VARIABLE_UPDATED",rjvId:P,data:{name:_.name,namespace:m,existing_value:_.value,new_value:de,variable_removed:!1}})},i.showDetected=function(){var y=i.props,O=y.theme,_=(y.variable,y.namespace,y.rjvId,i.state.parsedInput),m=(_.type,_.value,i.getDetectedInput());if(m)return r.a.createElement("div",null,r.a.createElement("div",C(O,"detected-row"),m,r.a.createElement(ke,{className:"edit-check detected",style:d({verticalAlign:"top",paddingLeft:"3px"},C(O,"check-icon").style),onClick:function(){i.submitEdit(!0)}})))},i.getDetectedInput=function(){var y=i.state.parsedInput,O=y.type,_=y.value,m=D(i).props,P=m.theme;if(O!==!1)switch(O.toLowerCase()){case"object":return r.a.createElement("span",null,r.a.createElement("span",{style:d(d({},C(P,"brace").style),{},{cursor:"default"})},"{"),r.a.createElement("span",{style:d(d({},C(P,"ellipsis").style),{},{cursor:"default"})},"..."),r.a.createElement("span",{style:d(d({},C(P,"brace").style),{},{cursor:"default"})},"}"));case"array":return r.a.createElement("span",null,r.a.createElement("span",{style:d(d({},C(P,"brace").style),{},{cursor:"default"})},"["),r.a.createElement("span",{style:d(d({},C(P,"ellipsis").style),{},{cursor:"default"})},"..."),r.a.createElement("span",{style:d(d({},C(P,"brace").style),{},{cursor:"default"})},"]"));case"string":return r.a.createElement(et,Object.assign({value:_},m));case"integer":return r.a.createElement(Ze,Object.assign({value:_},m));case"float":return r.a.createElement(U,Object.assign({value:_},m));case"boolean":return r.a.createElement(he,Object.assign({value:_},m));case"function":return r.a.createElement(ye,Object.assign({value:_},m));case"null":return r.a.createElement(Ue,m);case"nan":return r.a.createElement(Be,m);case"undefined":return r.a.createElement(tt,m);case"date":return r.a.createElement(ue,Object.assign({value:new Date(_)},m))}},i.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},i}return h(n,[{key:"render",value:function(){var o=this,i=this.props,y=i.variable,O=i.singleIndent,_=i.type,m=i.theme,P=i.namespace,$=i.indentWidth,se=i.enableClipboard,ie=i.onEdit,de=i.onDelete,re=i.onSelect,fe=i.displayArrayKey,Se=i.quotesOnKeys,Y=this.state.editMode;return r.a.createElement("div",Object.assign({},C(m,"objectKeyVal",{paddingLeft:$*O}),{onMouseEnter:function(){return o.setState(d(d({},o.state),{},{hovered:!0}))},onMouseLeave:function(){return o.setState(d(d({},o.state),{},{hovered:!1}))},className:"variable-row",key:y.name}),_=="array"?fe?r.a.createElement("span",Object.assign({},C(m,"array-key"),{key:y.name+"_"+P}),y.name,r.a.createElement("div",C(m,"colon"),":")):null:r.a.createElement("span",null,r.a.createElement("span",Object.assign({},C(m,"object-name"),{className:"object-key",key:y.name+"_"+P}),!!Se&&r.a.createElement("span",{style:{verticalAlign:"top"}},'"'),r.a.createElement("span",{style:{display:"inline-block"}},y.name),!!Se&&r.a.createElement("span",{style:{verticalAlign:"top"}},'"')),r.a.createElement("span",C(m,"colon"),":")),r.a.createElement("div",Object.assign({className:"variable-value",onClick:re===!1&&ie===!1?null:function(we){var Le=ge(P);(we.ctrlKey||we.metaKey)&&ie!==!1?o.prepopInput(y):re!==!1&&(Le.shift(),re(d(d({},y),{},{namespace:Le})))}},C(m,"variableValue",{cursor:re===!1?"default":"pointer"})),this.getValue(y,Y)),se?r.a.createElement(Fe,{rowHovered:this.state.hovered,hidden:Y,src:y.value,clickCallback:se,theme:m,namespace:[].concat(ge(P),[y.name])}):null,ie!==!1&&Y==0?this.getEditIcon():null,de!==!1&&Y==0?this.getRemoveIcon():null)}}]),n}(r.a.PureComponent),Je=function(l){b(n,l);var u=L(n);function n(){var o;p(this,n);for(var i=arguments.length,y=new Array(i),O=0;O<i;O++)y[O]=arguments[O];return(o=u.call.apply(u,[this].concat(y))).getObjectSize=function(){var _=o.props,m=_.size,P=_.theme;if(_.displayObjectSize)return r.a.createElement("span",Object.assign({className:"object-size"},C(P,"object-size")),m," item",m===1?"":"s")},o.getAddAttribute=function(_){var m=o.props,P=m.theme,$=m.namespace,se=m.name,ie=m.src,de=m.rjvId,re=m.depth;return r.a.createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:_?"inline-block":"none"}},r.a.createElement(De,Object.assign({className:"click-to-add-icon"},C(P,"addVarIcon"),{onClick:function(){var fe={name:re>0?se:null,namespace:$.splice(0,$.length-1),existing_value:ie,variable_removed:!1,key_name:null};A(ie)==="object"?Ee.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:de,data:fe}):Ee.dispatch({name:"VARIABLE_ADDED",rjvId:de,data:d(d({},fe),{},{new_value:[].concat(ge(ie),[null])})})}})))},o.getRemoveObject=function(_){var m=o.props,P=m.theme,$=(m.hover,m.namespace),se=m.name,ie=m.src,de=m.rjvId;if($.length!==1)return r.a.createElement("span",{className:"click-to-remove",style:{display:_?"inline-block":"none"}},r.a.createElement(Te,Object.assign({className:"click-to-remove-icon"},C(P,"removeVarIcon"),{onClick:function(){Ee.dispatch({name:"VARIABLE_REMOVED",rjvId:de,data:{name:se,namespace:$.splice(0,$.length-1),existing_value:ie,variable_removed:!0}})}})))},o.render=function(){var _=o.props,m=_.theme,P=_.onDelete,$=_.onAdd,se=_.enableClipboard,ie=_.src,de=_.namespace,re=_.rowHovered;return r.a.createElement("div",Object.assign({},C(m,"object-meta-data"),{className:"object-meta-data",onClick:function(fe){fe.stopPropagation()}}),o.getObjectSize(),se?r.a.createElement(Fe,{rowHovered:re,clickCallback:se,src:ie,theme:m,namespace:de}):null,$!==!1?o.getAddAttribute(re):null,P!==!1?o.getRemoveObject(re):null)},o}return n}(r.a.PureComponent);function qe(l){var u=l.parent_type,n=l.namespace,o=l.quotesOnKeys,i=l.theme,y=l.jsvRoot,O=l.name,_=l.displayArrayKey,m=l.name?l.name:"";return!y||O!==!1&&O!==null?u=="array"?_?r.a.createElement("span",Object.assign({},C(i,"array-key"),{key:n}),r.a.createElement("span",{className:"array-key"},m),r.a.createElement("span",C(i,"colon"),":")):r.a.createElement("span",null):r.a.createElement("span",Object.assign({},C(i,"object-name"),{key:n}),r.a.createElement("span",{className:"object-key"},o&&r.a.createElement("span",{style:{verticalAlign:"top"}},'"'),r.a.createElement("span",null,m),o&&r.a.createElement("span",{style:{verticalAlign:"top"}},'"')),r.a.createElement("span",C(i,"colon"),":")):r.a.createElement("span",null)}function Re(l){var u=l.theme;switch(l.iconStyle){case"triangle":return r.a.createElement(Ae,Object.assign({},C(u,"expanded-icon"),{className:"expanded-icon"}));case"square":return r.a.createElement(pe,Object.assign({},C(u,"expanded-icon"),{className:"expanded-icon"}));default:return r.a.createElement(ne,Object.assign({},C(u,"expanded-icon"),{className:"expanded-icon"}))}}function We(l){var u=l.theme;switch(l.iconStyle){case"triangle":return r.a.createElement(je,Object.assign({},C(u,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return r.a.createElement(xe,Object.assign({},C(u,"collapsed-icon"),{className:"collapsed-icon"}));default:return r.a.createElement(ae,Object.assign({},C(u,"collapsed-icon"),{className:"collapsed-icon"}))}}var it=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).toggleCollapsed=function(y){var O=[];for(var _ in i.state.expanded)O.push(i.state.expanded[_]);O[y]=!O[y],i.setState({expanded:O})},i.state={expanded:[]},i}return h(n,[{key:"getExpandedIcon",value:function(o){var i=this.props,y=i.theme,O=i.iconStyle;return this.state.expanded[o]?r.a.createElement(Re,{theme:y,iconStyle:O}):r.a.createElement(We,{theme:y,iconStyle:O})}},{key:"render",value:function(){var o=this,i=this.props,y=i.src,O=i.groupArraysAfterLength,_=(i.depth,i.name),m=i.theme,P=i.jsvRoot,$=i.namespace,se=(i.parent_type,k(i,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),ie=0,de=5*this.props.indentWidth;P||(ie=5*this.props.indentWidth);var re=O,fe=Math.ceil(y.length/re);return r.a.createElement("div",Object.assign({className:"object-key-val"},C(m,P?"jsv-root":"objectKeyVal",{paddingLeft:ie})),r.a.createElement(qe,this.props),r.a.createElement("span",null,r.a.createElement(Je,Object.assign({size:y.length},this.props))),ge(Array(fe)).map(function(Se,Y){return r.a.createElement("div",Object.assign({key:Y,className:"object-key-val array-group"},C(m,"objectKeyVal",{marginLeft:6,paddingLeft:de})),r.a.createElement("span",C(m,"brace-row"),r.a.createElement("div",Object.assign({className:"icon-container"},C(m,"icon-container"),{onClick:function(we){o.toggleCollapsed(Y)}}),o.getExpandedIcon(Y)),o.state.expanded[Y]?r.a.createElement(ht,Object.assign({key:_+Y,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:re,index_offset:Y*re,src:y.slice(Y*re,Y*re+re),namespace:$,type:"array",parent_type:"array_group",theme:m},se)):r.a.createElement("span",Object.assign({},C(m,"brace"),{onClick:function(we){o.toggleCollapsed(Y)},className:"array-group-brace"}),"[",r.a.createElement("div",Object.assign({},C(m,"array-group-meta-data"),{className:"array-group-meta-data"}),r.a.createElement("span",Object.assign({className:"object-size"},C(m,"object-size")),Y*re," - ",Y*re+re>y.length?y.length:Y*re+re)),"]")))}))}}]),n}(r.a.PureComponent),ft=function(l){b(n,l);var u=L(n);function n(o){var i;p(this,n),(i=u.call(this,o)).toggleCollapsed=function(){i.setState({expanded:!i.state.expanded},function(){be.set(i.props.rjvId,i.props.namespace,"expanded",i.state.expanded)})},i.getObjectContent=function(O,_,m){return r.a.createElement("div",{className:"pushed-content object-container"},r.a.createElement("div",Object.assign({className:"object-content"},C(i.props.theme,"pushed-content")),i.renderObjectContents(_,m)))},i.getEllipsis=function(){return i.state.size===0?null:r.a.createElement("div",Object.assign({},C(i.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:i.toggleCollapsed}),"...")},i.getObjectMetaData=function(O){var _=i.props,m=(_.rjvId,_.theme,i.state),P=m.size,$=m.hovered;return r.a.createElement(Je,Object.assign({rowHovered:$,size:P},i.props))},i.renderObjectContents=function(O,_){var m,P=i.props,$=P.depth,se=P.parent_type,ie=P.index_offset,de=P.groupArraysAfterLength,re=P.namespace,fe=i.state.object_type,Se=[],Y=Object.keys(O||{});return i.props.sortKeys&&fe!=="array"&&(Y=Y.sort()),Y.forEach(function(we){if(m=new Mt(we,O[we]),se==="array_group"&&ie&&(m.name=parseInt(m.name)+ie),O.hasOwnProperty(we))if(m.type==="object")Se.push(r.a.createElement(ht,Object.assign({key:m.name,depth:$+1,name:m.name,src:m.value,namespace:re.concat(m.name),parent_type:fe},_)));else if(m.type==="array"){var Le=ht;de&&m.value.length>de&&(Le=it),Se.push(r.a.createElement(Le,Object.assign({key:m.name,depth:$+1,name:m.name,src:m.value,namespace:re.concat(m.name),type:"array",parent_type:fe},_)))}else Se.push(r.a.createElement(Pe,Object.assign({key:m.name+"_"+re,variable:m,singleIndent:5,namespace:re,type:i.props.type},_)))}),Se};var y=n.getState(o);return i.state=d(d({},y),{},{prevProps:{}}),i}return h(n,[{key:"getBraceStart",value:function(o,i){var y=this,O=this.props,_=O.src,m=O.theme,P=O.iconStyle;if(O.parent_type==="array_group")return r.a.createElement("span",null,r.a.createElement("span",C(m,"brace"),o==="array"?"[":"{"),i?this.getObjectMetaData(_):null);var $=i?Re:We;return r.a.createElement("span",null,r.a.createElement("span",Object.assign({onClick:function(se){y.toggleCollapsed()}},C(m,"brace-row")),r.a.createElement("div",Object.assign({className:"icon-container"},C(m,"icon-container")),r.a.createElement($,{theme:m,iconStyle:P})),r.a.createElement(qe,this.props),r.a.createElement("span",C(m,"brace"),o==="array"?"[":"{")),i?this.getObjectMetaData(_):null)}},{key:"render",value:function(){var o=this,i=this.props,y=i.depth,O=i.src,_=(i.namespace,i.name,i.type,i.parent_type),m=i.theme,P=i.jsvRoot,$=i.iconStyle,se=k(i,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),ie=this.state,de=ie.object_type,re=ie.expanded,fe={};return P||_==="array_group"?_==="array_group"&&(fe.borderLeft=0,fe.display="inline"):fe.paddingLeft=5*this.props.indentWidth,r.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return o.setState(d(d({},o.state),{},{hovered:!0}))},onMouseLeave:function(){return o.setState(d(d({},o.state),{},{hovered:!1}))}},C(m,P?"jsv-root":"objectKeyVal",fe)),this.getBraceStart(de,re),re?this.getObjectContent(y,O,d({theme:m,iconStyle:$},se)):this.getEllipsis(),r.a.createElement("span",{className:"brace-row"},r.a.createElement("span",{style:d(d({},C(m,"brace").style),{},{paddingLeft:re?"3px":"0px"})},de==="array"?"]":"}"),re?null:this.getObjectMetaData(O)))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var y=i.prevProps;return o.src!==y.src||o.collapsed!==y.collapsed||o.name!==y.name||o.namespace!==y.namespace||o.rjvId!==y.rjvId?d(d({},n.getState(o)),{},{prevProps:o}):null}}]),n}(r.a.PureComponent);ft.getState=function(l){var u=Object.keys(l.src).length,n=(l.collapsed===!1||l.collapsed!==!0&&l.collapsed>l.depth)&&(!l.shouldCollapse||l.shouldCollapse({name:l.name,src:l.src,type:A(l.src),namespace:l.namespace})===!1)&&u!==0;return{expanded:be.get(l.rjvId,l.namespace,"expanded",n),object_type:l.type==="array"?"array":"object",parent_type:l.type==="array"?"array":"object",size:u,hovered:!1}};var Mt=function l(u,n){p(this,l),this.name=u,this.value=n,this.type=A(n)};q(ft);var ht=ft,Pt=function(l){b(n,l);var u=L(n);function n(){var o;p(this,n);for(var i=arguments.length,y=new Array(i),O=0;O<i;O++)y[O]=arguments[O];return(o=u.call.apply(u,[this].concat(y))).render=function(){var _=D(o).props,m=[_.name],P=ht;return Array.isArray(_.src)&&_.groupArraysAfterLength&&_.src.length>_.groupArraysAfterLength&&(P=it),r.a.createElement("div",{className:"pretty-json-container object-container"},r.a.createElement("div",{className:"object-content"},r.a.createElement(P,Object.assign({namespace:m,depth:0,jsvRoot:!0},_))))},o}return n}(r.a.PureComponent),Tt=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).closeModal=function(){Ee.dispatch({rjvId:i.props.rjvId,name:"RESET"})},i.submit=function(){i.props.submit(i.state.input)},i.state={input:o.input?o.input:""},i}return h(n,[{key:"render",value:function(){var o=this,i=this.props,y=i.theme,O=i.rjvId,_=i.isValid,m=this.state.input,P=_(m);return r.a.createElement("div",Object.assign({className:"key-modal-request"},C(y,"key-modal-request"),{onClick:this.closeModal}),r.a.createElement("div",Object.assign({},C(y,"key-modal"),{onClick:function($){$.stopPropagation()}}),r.a.createElement("div",C(y,"key-modal-label"),"Key Name:"),r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("input",Object.assign({},C(y,"key-modal-input"),{className:"key-modal-input",ref:function($){return $&&$.focus()},spellCheck:!1,value:m,placeholder:"...",onChange:function($){o.setState({input:$.target.value})},onKeyPress:function($){P&&$.key==="Enter"?o.submit():$.key==="Escape"&&o.closeModal()}})),P?r.a.createElement(ke,Object.assign({},C(y,"key-modal-submit"),{className:"key-modal-submit",onClick:function($){return o.submit()}})):null),r.a.createElement("span",C(y,"key-modal-cancel"),r.a.createElement($e,Object.assign({},C(y,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ee.dispatch({rjvId:O,name:"RESET"})}})))))}}]),n}(r.a.PureComponent),Bt=function(l){b(n,l);var u=L(n);function n(){var o;p(this,n);for(var i=arguments.length,y=new Array(i),O=0;O<i;O++)y[O]=arguments[O];return(o=u.call.apply(u,[this].concat(y))).isValid=function(_){var m=o.props.rjvId,P=be.get(m,"action","new-key-request");return _!=""&&Object.keys(P.existing_value).indexOf(_)===-1},o.submit=function(_){var m=o.props.rjvId,P=be.get(m,"action","new-key-request");P.new_value=d({},P.existing_value),P.new_value[_]=o.props.defaultValue,Ee.dispatch({name:"VARIABLE_ADDED",rjvId:m,data:P})},o}return h(n,[{key:"render",value:function(){var o=this.props,i=o.active,y=o.theme,O=o.rjvId;return i?r.a.createElement(Tt,{rjvId:O,theme:y,isValid:this.isValid,submit:this.submit}):null}}]),n}(r.a.PureComponent),Dt=function(l){b(n,l);var u=L(n);function n(){return p(this,n),u.apply(this,arguments)}return h(n,[{key:"render",value:function(){var o=this.props,i=o.message,y=o.active,O=o.theme,_=o.rjvId;return y?r.a.createElement("div",Object.assign({className:"validation-failure"},C(O,"validation-failure"),{onClick:function(){Ee.dispatch({rjvId:_,name:"RESET"})}}),r.a.createElement("span",C(O,"validation-failure-label"),i),r.a.createElement($e,C(O,"validation-failure-clear"))):null}}]),n}(r.a.PureComponent),mt=function(l){b(n,l);var u=L(n);function n(o){var i;return p(this,n),(i=u.call(this,o)).rjvId=Date.now().toString(),i.getListeners=function(){return{reset:i.resetState,"variable-update":i.updateSrc,"add-key-request":i.addKeyRequest}},i.updateSrc=function(){var y,O=be.get(i.rjvId,"action","variable-update"),_=O.name,m=O.namespace,P=O.new_value,$=O.existing_value,se=(O.variable_removed,O.updated_src),ie=O.type,de=i.props,re=de.onEdit,fe=de.onDelete,Se=de.onAdd,Y={existing_src:i.state.src,new_value:P,updated_src:se,name:_,namespace:m,existing_value:$};switch(ie){case"variable-added":y=Se(Y);break;case"variable-edited":y=re(Y);break;case"variable-removed":y=fe(Y)}y!==!1?(be.set(i.rjvId,"global","src",se),i.setState({src:se})):i.setState({validationFailure:!0})},i.addKeyRequest=function(){i.setState({addKeyRequest:!0})},i.resetState=function(){i.setState({validationFailure:!1,addKeyRequest:!1})},i.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:n.defaultProps.src,name:n.defaultProps.name,theme:n.defaultProps.theme,validationMessage:n.defaultProps.validationMessage,prevSrc:n.defaultProps.src,prevName:n.defaultProps.name,prevTheme:n.defaultProps.theme},i}return h(n,[{key:"componentDidMount",value:function(){be.set(this.rjvId,"global","src",this.state.src);var o=this.getListeners();for(var i in o)be.on(i+"-"+this.rjvId,o[i]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(o,i){i.addKeyRequest!==!1&&this.setState({addKeyRequest:!1}),i.editKeyRequest!==!1&&this.setState({editKeyRequest:!1}),o.src!==this.state.src&&be.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var o=this.getListeners();for(var i in o)be.removeListener(i+"-"+this.rjvId,o[i])}},{key:"render",value:function(){var o=this.state,i=o.validationFailure,y=o.validationMessage,O=o.addKeyRequest,_=o.theme,m=o.src,P=o.name,$=this.props,se=$.style,ie=$.defaultValue;return r.a.createElement("div",{className:"react-json-view",style:d(d({},C(_,"app-container").style),se)},r.a.createElement(Dt,{message:y,active:i,theme:_,rjvId:this.rjvId}),r.a.createElement(Pt,Object.assign({},this.props,{src:m,name:P,theme:_,type:A(m),rjvId:this.rjvId})),r.a.createElement(Bt,{active:O,theme:_,rjvId:this.rjvId,defaultValue:ie}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){if(o.src!==i.prevSrc||o.name!==i.prevName||o.theme!==i.prevTheme){var y={src:o.src,name:o.name,theme:o.theme,validationMessage:o.validationMessage,prevSrc:o.src,prevName:o.name,prevTheme:o.theme};return n.validateState(y)}return null}}]),n}(r.a.PureComponent);mt.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0},mt.validateState=function(l){var u={};return A(l.theme)!=="object"||function(n){var o=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if(A(n)==="object"){for(var i=0;i<o.length;i++)if(!(o[i]in n))return!1;return!0}return!1}(l.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),u.theme="rjv-default"),A(l.src)!=="object"&&A(l.src)!=="array"&&(console.error("react-json-view error:","src property must be a valid json object"),u.name="ERROR",u.src={message:"src property must be a valid json object"}),d(d({},l),u)},q(mt),t.default=mt}])})})(wt);var sa=wt.exports;const oa=ea(sa),le={frameRoot:{paddingTop:0,paddingBottom:0},frameTextRoot:{m:0},frameTextPrimary:X=>({color:X.palette.mode==="dark"?"#CCC":"#333"}),frameTextSecondary:{fontStyle:"italic",fontSize:12,opacity:.6,pl:1},listRoot:{padding:0,fontSize:"small"},scopeType:{verticalAlign:"top",textTransform:"uppercase",width:50},scopeType_local:{color:"#53a944"},scopeType_closure:{color:"#365b80"},scopeType_user:{color:"#a48a15"},scopeName:{color:"#bc5b5b",width:"calc(100% - 82px)",whiteSpace:"nowrap",textOverflow:"ellipsis"},scopeButton:{width:32},scopeValueEditable:{cursor:"pointer"},selectedFrame:{backgroundColor:"#777",color:"white"},splitter:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden",fontSize:12},toolbarScopes:X=>({width:24,display:"inline-block",height:"100%",background:X.palette.mode==="dark"?"#222":"#EEE",verticalAlign:"top"}),scopesAfterToolbar:{width:"calc(100% - 24px)",display:"inline-block",height:"100%",verticalAlign:"top"},scopeNameName:{fontWeight:"bold",display:"inline-block",verticalAlign:"top"},scopeNameEqual:X=>({display:"inline-block",color:X.palette.mode==="dark"?"#EEE":"#222",verticalAlign:"top"}),scopeNameValue:{verticalAlign:"top",display:"inline-block",color:"#3b709f",whiteSpace:"nowrap"},scopeButtonDel:{padding:0,float:"right"},valueNull:{color:"#a44a24"},valueUndefined:{color:"#a44a24"},valueString:{color:"#1e8816"},valueNumber:{color:"#163c88"},valueBoolean:{color:"#a44a24"},valueObject:{color:"#721b70"},valueNone:{color:"#8a8a8a"},valueFunc:{color:"#ac4343"},error:X=>({color:X.palette.mode==="dark"?"#FF8080":"#FF0000",fontStyle:"italic"})};function ia(X){var g,a;const v={};return X.className==="ReferenceError"?X.description:((a=(g=X.preview)==null?void 0:g.properties)==null||a.forEach(t=>{(t==null?void 0:t.type)==="object"?t.subtype==="null"?v[t.name]=null:v[t.name]=`{ ${t.value==="Object"?"...":t.value} }`:t.type==="boolean"?v[t.name||t.description]=t.value==="true":t.type==="number"?v[t.name||t.description]=parseFloat(t.value):t.type==="function"?v[t.name||t.description]="function(){}":t.type==="undefined"?v[t.name||t.description]=void 0:v[t.name||t.description]=t.value}),v)}class la extends dt.Component{editRef;scopeValue=null;constructor(v){super(v);const g=window.localStorage.getItem("JS.framesSizes");let a=[30,70];if(g)try{a=JSON.parse(g)}catch{}this.state={editValue:null,callFrames:this.props.callFrames,framesSizes:a},this.editRef=dt.createRef()}onExpressionNameUpdate(){this.state.editValue&&this.props.onExpressionNameUpdate(this.state.editValue.index,this.scopeValue,()=>{this.setState({editValue:null}),this.scopeValue=null})}renderExpression(v,g){const a=this.state.editValue&&this.state.editValue.type==="expression"&&this.state.editValue.index===g?M.jsx(G.Input,{inputRef:this.editRef,fullWidth:!0,margin:"dense",onBlur:()=>this.state.editValue&&this.setState({editValue:null}),defaultValue:v.name,onKeyUp:t=>{t.key==="Enter"?this.onExpressionNameUpdate():t.key==="Escape"&&this.setState({editValue:null})},onChange:t=>this.scopeValue=t.target.value,endAdornment:M.jsx(G.InputAdornment,{position:"end",children:M.jsx(G.IconButton,{onClick:()=>this.onExpressionNameUpdate(),size:"medium",children:M.jsx(It,{})})})}):[M.jsx("div",{style:le.scopeNameName,title:Oe.I18n.t("Double click to edit expression"),children:v.name},"name"),M.jsxs(G.Box,{sx:le.scopeNameEqual,children:[" ","="," "]},"="),M.jsx("div",{style:le.scopeNameValue,children:this.formatValue(v.value)},"val")];return M.jsxs("tr",{children:[M.jsx("td",{style:{...le.scopeType,...le.scopeType_user},children:"user"}),M.jsx("td",{style:le.scopeName,onDoubleClick:()=>{this.scopeValue=v.name||"",this.setState({editValue:{type:"expression",valueType:"string",index:g,name:v.name,value:v.name||""}})},children:a}),M.jsx(G.IconButton,{style:le.scopeButtonDel,size:"small",disabled:!!this.state.editValue,onClick:()=>this.props.onExpressionDelete(g),children:M.jsx(Wt,{})})]},`user_${g}${v.name}`)}renderExpressions(){return this.props.expressions.map((v,g)=>this.renderExpression(v,g))}renderOneFrameTitle(v,g){if(this.props.mainScriptId===this.props.currentScriptId&&v.location.scriptId!==this.props.mainScriptId)return null;const a=(v.url.split("/").pop()||"").replace(/^script\.js\./,"");return M.jsx(G.ListItemButton,{onClick:()=>this.props.onChangeCurrentFrame(g),dense:!0,selected:this.props.currentFrame===g,style:le.frameRoot,children:M.jsx(G.ListItemText,{sx:{...le.frameTextRoot,"& .MuiListItemText-primary":le.frameTextPrimary,"& .MuiListItemText-secondary":le.frameTextSecondary},title:v.url,primary:v.functionName||"anonymous",secondary:`${a} (${v.location.lineNumber}:${v.location.columnNumber})`})},v.callFrameId)}formatValue(v,g){if(!v)return g?"none":M.jsx("span",{style:le.valueNone,children:"none"});if(v.type==="undefined")return g?"undefined":M.jsx("span",{style:le.valueUndefined,children:"undefined"});if(v.type==="null")return g?"null":M.jsx("span",{style:le.valueNull,children:"null"});if(v.type==="function"){const a=v.description?v.description.length>100?`${v.description.substring(0,100)}...`:v.description:"function";return g?a:M.jsx("span",{style:le.valueFunc,title:v.description,children:a})}if(v.type==="object"){const a=ia(v);return g?JSON.stringify(a):typeof a=="string"?M.jsx(G.Box,{component:"span",sx:le.error,children:a}):M.jsx(oa,{name:!1,enableClipboard:!1,style:{backgroundColor:"inherit",marginTop:3},src:a,collapsed:!0,theme:this.props.themeType==="dark"?"brewer":"rjv-default",displayDataTypes:!1})}if(v.value===void 0)return g?"undefined":M.jsx("span",{style:le.valueUndefined,children:"undefined"});if(v.value===null)return g?"null":M.jsx("span",{style:le.valueNull,children:"null"});if(v.type==="string"){if(g)return v.value;const a=`"${v.value?v.value.length>100?`${v.value.substring(0,100)}...`:v.value:""}"`;return M.jsx("span",{style:le.valueString,title:a,children:a})}return v.type==="boolean"?g?v.value.toString():M.jsx("span",{style:le.valueBoolean,children:v.value.toString()}):v.value.toString()}onWriteScopeValue(){var v,g;this.scopeValue==="true"?this.scopeValue=!0:this.scopeValue==="false"?this.scopeValue=!1:this.scopeValue==="null"?this.scopeValue=null:this.scopeValue==="undefined"?this.scopeValue=void 0:parseFloat(this.scopeValue).toString()===this.scopeValue&&(this.scopeValue=parseFloat(this.scopeValue)),this.props.onWriteScopeValue({variableName:((v=this.state.editValue)==null?void 0:v.name)||"",scopeNumber:0,newValue:{value:this.scopeValue,valueType:typeof this.scopeValue},callFrameId:(g=this.props.callFrames)==null?void 0:g[this.props.currentFrame].callFrameId}),this.setState({editValue:null}),this.scopeValue=null}componentDidUpdate(){var v;(v=this.editRef.current)==null||v.focus()}renderScope(v,g,a){var s,c,d,p;const t=!this.props.currentFrame&&g.value&&(g.value.type==="undefined"||g.value.type==="string"||g.value.type==="number"||g.value.type==="boolean"||((s=g.value)==null?void 0:s.value)===null||((c=g.value)==null?void 0:c.value)===void 0&&g.value.type!=="object"),e=((d=this.state.editValue)==null?void 0:d.type)===a&&((p=this.state.editValue)==null?void 0:p.name)===g.name?[M.jsx("div",{style:le.scopeNameName,children:g.name},"name"),M.jsxs(G.Box,{sx:le.scopeNameEqual,children:[" ","="," "]},"="),M.jsx(G.Input,{inputRef:this.editRef,margin:"dense",onBlur:()=>this.state.editValue&&this.setState({editValue:null}),defaultValue:this.formatValue(g.value,!0),onKeyUp:f=>{f.key==="Enter"?this.onWriteScopeValue():f.key==="Escape"&&this.setState({editValue:null})},onChange:f=>this.scopeValue=f.target.value,endAdornment:M.jsx(G.InputAdornment,{position:"end",children:M.jsx(G.IconButton,{onClick:()=>this.onWriteScopeValue(),size:"medium",children:M.jsx(It,{})})})},"input")]:[M.jsx("div",{style:le.scopeNameName,title:Oe.I18n.t("Double click to write value"),children:g.name},"name"),M.jsxs(G.Box,{sx:le.scopeNameEqual,children:[" ","="," "]},"="),M.jsxs("div",{style:le.scopeNameValue,children:[this.formatValue(g.value)," (",g.value.type,")"]},"val")];return M.jsxs("tr",{children:[M.jsx("td",{style:{...le.scopeType,...le[`scopeType_${a}`]},children:a}),M.jsx("td",{style:{...le.scopeName,...!this.props.currentFrame&&t?le.scopeValueEditable:void 0},onDoubleClick:()=>{t&&(this.scopeValue=g.value.value,this.setState({editValue:{scopeId:v,type:a,index:0,valueType:g.value.type,name:g.name,value:g.value.value}}))},children:e})]},`${a}_${v}_${g.name}`)}renderScopes(v){var t,e,s,c,d,p;if(!v)return null;const g=this.renderExpressions();let a=(s=(e=(t=this.props.scopes)==null?void 0:t.local)==null?void 0:e.properties)==null?void 0:s.result.map(f=>this.props.scopes&&this.renderScope("",f,"local"));return a==null||a.forEach(f=>f&&g.push(f)),a=(p=(d=(c=this.props.scopes)==null?void 0:c.closure)==null?void 0:d.properties)==null?void 0:p.result.map(f=>this.props.scopes&&this.renderScope("",f,"closure")),a==null||a.forEach(f=>f&&g.push(f)),M.jsx("table",{style:{width:"100%",fontSize:"small"},children:M.jsx("tbody",{children:g})})}render(){var v,g;return M.jsxs(Ft,{direction:Nt.Horizontal,initialSizes:this.state.framesSizes,minWidths:[100,200],onResizeFinished:(a,t)=>{this.setState({framesSizes:t}),window.localStorage.setItem("JS.framesSizes",JSON.stringify(t))},gutterClassName:this.props.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[M.jsx("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:M.jsx(G.List,{style:le.listRoot,children:((v=this.props.callFrames)==null?void 0:v.map((a,t)=>this.renderOneFrameTitle(a,t)))||null})}),M.jsxs("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:[M.jsx(G.Box,{sx:le.toolbarScopes,children:M.jsx(G.IconButton,{size:"small",onClick:()=>this.props.onExpressionAdd((a,t)=>{this.scopeValue=t.name||"",this.setState({editValue:{type:"expression",valueType:"string",index:a,name:t.name,value:t.name||""}})}),children:M.jsx(Kt,{})})}),M.jsx("div",{style:le.scopesAfterToolbar,children:((g=this.props.callFrames)==null?void 0:g.length)&&this.renderScopes(this.props.callFrames[this.props.currentFrame])})]})]})}}const _e={root:X=>({width:"100%",height:`calc(100% - ${parseInt(X.toolbar.height,10)+38+5}px)`,overflow:"hidden",position:"relative"}),toolbar:{minHeight:38,boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)"},buttonRun:{color:"green"},buttonPause:{color:"orange"},buttonRestart:{color:"darkgreen"},buttonNext:{color:"blue"},buttonStep:{color:"blue"},buttonOut:{color:"blue"},buttonException:{},tabFile:X=>({textTransform:"inherit",color:X.palette.mode==="dark"?"#DDD":"inherit"}),tabText:{maxWidth:130,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",verticalAlign:"middle"},closeButton:{position:"absolute",top:8,right:0,zIndex:10,padding:8,cursor:"pointer"},tabsRoot:X=>({minHeight:24,background:X.palette.mode==="dark"?"#333":"#e6e6e6",color:X.palette.mode==="dark"?"white":"inherit"}),tabRoot:{minHeight:24},bpListItem:{borderTop:"1px dashed #bfbfbf44"},monospace:{fontFamily:"Courier New, monospace",whiteSpace:"pre",fontSize:12},arrow:{color:"#fffa4f"}};class kt extends dt.Component{console=null;scripts={};mainScriptId=null;constructor(v){super(v);const g=window.localStorage.getItem(`javascript.tools.bp.${this.props.src}`);let a;try{a=g?JSON.parse(g):[]}catch{a=[]}const t=window.localStorage.getItem(`javascript.tools.exps.${this.props.src}`);let e;try{e=(t?JSON.parse(t):[]).map(p=>({name:p,value:{type:"undefined",description:"",value:"undefined",name:"name"}}))}catch{e=[]}const s=window.localStorage.getItem("JS.toolSizes");let c=[80,20];if(s)try{c=JSON.parse(s)}catch{}this.state={starting:!0,selected:null,tabs:{},script:"",breakpoints:a,expressions:e,running:!1,error:"",started:!1,paused:!0,location:null,toolsTab:window.localStorage.getItem("javascript.tools.tab")||"console",stopOnException:window.localStorage.getItem("javascript.tools.stopOnException")==="true",console:[],finished:!1,currentFrame:0,scopes:{},queryBreakpoints:null,logErrors:0,logWarnings:0,logs:0,toolSizes:c,instance:void 0,context:null}}async componentDidMount(){var g,a;let v;if(this.props.debugInstance)v=this.props.debugInstance.instance;else{const t=await this.props.socket.getObject(this.props.src);v=((a=(g=t==null?void 0:t.common)==null?void 0:g.engine)==null?void 0:a.replace("system.adapter.",""))||""}this.setState({instance:v},()=>{this.state.instance?(this.props.socket.setState(`${this.state.instance}.debug.from`,{val:'{"cmd": "subscribed"}',ack:!0}),setTimeout(()=>this.props.socket.subscribeState(`${this.state.instance}.debug.from`,this.fromInstance),200)):this.setState({error:"Unknown instance"})})}componentWillUnmount(){this.state.instance&&(this.props.socket.unsubscribeState(`${this.state.instance}.debug.from`,this.fromInstance),this.props.socket.sendTo(this.state.instance,"debugStop"))}sendToInstance(v){this.props.socket.setState(`${this.state.instance}.debug.to`,{val:JSON.stringify(v),ack:!1})}reinitBreakpoints(v){if(this.state.breakpoints.length){const a=JSON.parse(JSON.stringify(this.state.breakpoints)).map(t=>t.location);this.setState({breakpoints:[]},()=>{this.sendToInstance({breakpoints:a,cmd:"sb"}),this.state.stopOnException&&this.sendToInstance({cmd:"stopOnException",state:!0}),v&&v()})}else this.state.stopOnException&&this.sendToInstance({cmd:"stopOnException",state:!0}),v&&v()}static getLocation(v){return v.callFrames?v.callFrames[0].location:null}readCurrentScope(){var g;const v=((g=this.state.context)==null?void 0:g.callFrames)&&this.state.context.callFrames[this.state.currentFrame];if(v){const a=v.scopeChain.filter(t=>t.type!=="global");a.length?this.sendToInstance({cmd:"scope",scopes:a}):(this.state.scopes.global||this.state.scopes.local||this.state.scopes.closure)&&this.setState({scopes:{}})}}readExpressions(v){var g;this.state.expressions.length&&((g=this.state.context)!=null&&g.callFrames)&&this.state.context.callFrames[this.state.currentFrame]&&(v!==void 0?this.sendToInstance({cmd:"expressions",expressions:[this.state.expressions[v]],callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}):this.sendToInstance({cmd:"expressions",expressions:this.state.expressions,callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}))}fromInstance=(v,g)=>{var a,t,e,s,c,d,p,f,h,E;if(g!=null&&g.val&&this.state.instance!==void 0)try{const b=JSON.parse(g.val);if(b.cmd==="subscribed")this.props.socket.sendTo(this.state.instance,"debug",this.props.debugInstance||{scriptName:this.props.src});else if(b.cmd==="readyToDebug"){this.mainScriptId=b.scriptId,this.scripts[b.scriptId]=b.script,b.script.startsWith(`(async () => {debugger;
|
|
15
|
+
`)?this.scripts[b.scriptId]=`(async () => {
|
|
16
|
+
${b.script.substring(24)}`:b.script.startsWith("debugger;")&&(this.scripts[b.scriptId]=b.script.substring(9));const w=JSON.parse(JSON.stringify(this.state.tabs));w[b.scriptId]=this.props.debugInstance?b.url:this.props.src.replace("script.js.","");const I=`${Date.now()}.${Math.random()*1e4}`;(t=(a=b.context)==null?void 0:a.callFrames)==null||t.forEach((D,H)=>D.id=I+H),this.setState({starting:!1,finished:!1,selected:this.mainScriptId,script:this.scripts[b.scriptId],tabs:w,currentFrame:0,started:!0,paused:!0,location:kt.getLocation(b.context),context:b.context},()=>this.reinitBreakpoints(()=>{this.readCurrentScope(),this.readExpressions()}))}else if(b.cmd==="paused"){const w=`${Date.now()}.${Math.random()*1e4}`;(s=(e=b.context)==null?void 0:e.callFrames)==null||s.forEach((ee,r)=>ee.id=w+r);const I=kt.getLocation(b.context),D=JSON.parse(JSON.stringify(this.state.tabs)),H=b.context.callFrames[0].url.split("iobroker.javascript");I&&(D[I.scriptId]=(H[1]||H[0]).replace("script.js.",""));const L={tabs:D,paused:!0,location:I,currentFrame:0,context:b.context};L.script=!(I!=null&&I.scriptId)||this.scripts[I.scriptId]===void 0?Oe.I18n.t("loading..."):this.scripts[I.scriptId],L.selected=I==null?void 0:I.scriptId,this.setState(L,()=>{this.readCurrentScope(),this.readExpressions(),I!=null&&I.scriptId&&(this.scripts[I.scriptId]||this.sendToInstance({cmd:"source",scriptId:I.scriptId}))})}else if(b.cmd==="script")this.scripts[b.scriptId]=b.text,this.state.selected===b.scriptId&&this.setState({script:this.scripts[b.scriptId]});else if(b.cmd==="resumed")this.setState({paused:!1});else if(b.cmd==="log")if(this.state.toolsTab==="console"){this.console=null;const w=[...this.state.console];w.push({text:b.text,severity:b.severity,ts:b.ts}),this.setState({console:w})}else b.severity==="error"?this.setState({logErrors:this.state.logErrors+1}):b.severity==="warn"?this.setState({logWarnings:this.state.logWarnings+1}):this.setState({logs:this.state.logs+1}),this.console=this.console||[...this.state.console],this.console.push({text:b.text,severity:b.severity,ts:b.ts});else if(b.cmd==="error")this.setState({error:b.error});else if(b.cmd==="finished"||b.cmd==="debugStopped")this.setState({finished:!0,starting:!1,started:!0});else if(b.cmd==="sb"){const w=JSON.parse(JSON.stringify(this.state.breakpoints));let I=!1;b.breakpoints.filter(D=>D).forEach(D=>{w.find(L=>L.location.scriptId===D.location.scriptId&&L.location.lineNumber===D.location.lineNumber)||(I=!0,w.push(D))}),I&&window.localStorage.setItem(`javascript.tools.bp.${this.props.src}`,JSON.stringify(w)),I&&this.setState({breakpoints:w})}else if(b.cmd==="cb"){const w=JSON.parse(JSON.stringify(this.state.breakpoints));let I=!1;b.breakpoints.filter(D=>D!=null).forEach(D=>{const H=w.find(L=>L.id===D);if(H){const L=w.indexOf(H);w.splice(L,1),I=!0}}),I&&window.localStorage.setItem(`javascript.tools.bp.${this.props.src}`,JSON.stringify(w)),I&&this.setState({breakpoints:w})}else if(b.cmd==="scope"){const w=b.scopes.find(D=>D.type==="local")||void 0,I=b.scopes.find(D=>D.type==="closure")||void 0;console.log(JSON.stringify(I)),this.setState({scopes:{local:w,closure:I}})}else if(b.cmd==="setValue"){const w=JSON.parse(JSON.stringify(this.state.scopes));let I;b.scopeNumber===0?I=(d=(c=w==null?void 0:w.local)==null?void 0:c.properties)==null?void 0:d.result.find(D=>D.name===b.variableName):I=(f=(p=w==null?void 0:w.closure)==null?void 0:p.properties)==null?void 0:f.result.find(D=>D.name===b.variableName),I&&(I.value.value=b.newValue.value,this.setState({scopes:w}))}else if(b.cmd==="expressions"){const w=JSON.parse(JSON.stringify(this.state.expressions));let I=!1;b.expressions.forEach(D=>{const H=w.find(L=>L.name===D.name);H&&(I=!0,H.value=D.result)}),I&&this.setState({expressions:w}),console.log(`expressions: ${JSON.stringify(b)}`)}else b.cmd==="getPossibleBreakpoints"?((h=b.breakpoints)==null?void 0:h.length)===1?this.sendToInstance({breakpoints:b.breakpoints,cmd:"sb"}):(E=b.breakpoints)!=null&&E.length?this.setState({queryBreakpoints:b.breakpoints}):window.alert("cannot set"):console.error(`Unknown command: ${JSON.stringify(b)}`)}catch{}};getTextAtLocation(v){let g=this.state.script.split(/\r\n|\n/)[v.lineNumber],a;return v.columnNumber!==void 0&&v.columnNumber>=10?(g=g.substring(v.columnNumber-10,v.columnNumber+20),a=`${"".padStart(10," ")}↑`):v.columnNumber!==void 0&&(g=g.substring(0,30-v.columnNumber),a=`${"".padStart(v.columnNumber," ")}↑`),[M.jsx("div",{style:_e.monospace,children:g},"line"),M.jsx("div",{style:{..._e.monospace,..._e.arrow},children:a},"arrow")]}renderQueryBreakpoints(){return this.state.queryBreakpoints?M.jsxs(G.Dialog,{onClose:()=>this.setState({queryBreakpoints:null}),"aria-labelledby":"bp-dialog-title",open:!0,children:[M.jsx(G.DialogTitle,{id:"bp-dialog-title",children:Oe.I18n.t("Select breakpoint")}),M.jsx(G.List,{children:this.state.queryBreakpoints.map((v,g)=>M.jsx(G.ListItemButton,{style:_e.bpListItem,dense:!0,onClick:()=>{this.sendToInstance({breakpoints:[v],cmd:"sb"}),this.setState({queryBreakpoints:null})},children:M.jsx(G.ListItemText,{primary:this.getTextAtLocation(v)})},g))})]}):null}renderError(){return this.state.error?M.jsx(Lt,{onClose:()=>this.setState({error:""}),text:this.state.error},"dialogError"):null}closeTab(v,g){g==null||g.stopPropagation();const a=JSON.parse(JSON.stringify(this.state.tabs));delete a[v];const t={tabs:a,script:this.mainScriptId?this.scripts[this.mainScriptId]:"...",selected:this.mainScriptId};this.state.location&&this.state.location.scriptId!==this.mainScriptId&&(t.location=null),this.setState(t)}renderTabs(){const v=!this.state.tabs||!this.state.started;return M.jsx(G.Tabs,{component:"div",indicatorColor:"primary",style:{position:"relative",width:"calc(100% - 300px)",display:"inline-block"},value:this.state.selected,onChange:(g,a)=>{this.scripts[a]?this.setState({selected:a,script:this.scripts[a]}):this.setState({selected:a,script:"loading..."},()=>this.sendToInstance({cmd:"source",scriptId:a}))},scrollButtons:"auto",children:Object.keys(this.state.tabs||[]).map(g=>{let a=g;const t=this.state.tabs[g]||"";this.state.tabs[g]&&(a=this.state.tabs[g].split("/").pop()||"");const e=[M.jsx("div",{style:_e.tabText,children:a},"text"),g!==this.mainScriptId?M.jsx("span",{style:_e.closeButton,children:M.jsx($t,{onClick:s=>this.closeTab(g,s),fontSize:"small"},"close")},"icon"):null];return M.jsx(G.Tab,{disabled:v,sx:_e.tabFile,label:e,title:t,value:g},g)})})}onResume(){this.sendToInstance({cmd:"cont"})}onPause(){this.sendToInstance({cmd:"pause"})}onNext(){this.sendToInstance({cmd:"next"})}onStepIn(){this.sendToInstance({cmd:"step"})}onStepOut(){this.sendToInstance({cmd:"out"})}onRestart(){this.setState({started:!1,starting:!0},()=>this.state.instance!==void 0&&this.props.socket.sendTo(this.state.instance,"debug",this.props.debugInstance||{scriptName:this.props.src}))}onToggleException(){const v=!this.state.stopOnException;window.localStorage.setItem("javascript.tools.stopOnException",v?"true":"false"),this.setState({stopOnException:v},()=>this.sendToInstance({cmd:"stopOnException",state:v}))}renderToolbar(){const v=!this.state.started;return M.jsxs(G.Toolbar,{variant:"dense",style:_e.toolbar,children:[M.jsx(G.IconButton,{style:_e.buttonRestart,disabled:v,onClick:()=>this.onRestart(),title:Oe.I18n.t("Restart"),size:"medium",children:M.jsx(Jt,{})}),!this.state.finished&&this.state.paused?M.jsx(G.IconButton,{style:_e.buttonRun,disabled:v,onClick:()=>this.onResume(),title:Oe.I18n.t("Resume execution"),size:"medium",children:M.jsx(Ut,{})}):!this.state.finished&&M.jsx(G.IconButton,{disabled:v,style:_e.buttonPause,onClick:()=>this.onPause(),title:Oe.I18n.t("Pause execution"),size:"medium",children:M.jsx(Ht,{})}),!this.state.finished&&M.jsx(G.IconButton,{style:_e.buttonNext,disabled:v||!this.state.paused,onClick:()=>this.onNext(),title:Oe.I18n.t("Go to next line"),size:"medium",children:M.jsx(Gt,{})}),!this.state.finished&&M.jsx(G.IconButton,{style:_e.buttonStep,disabled:v||!this.state.paused,onClick:()=>this.onStepIn(),title:Oe.I18n.t("Step into function"),size:"medium",children:M.jsx(Yt,{})}),!this.state.finished&&M.jsx(G.IconButton,{style:_e.buttonOut,disabled:v||!this.state.paused,onClick:()=>this.onStepOut(),title:Oe.I18n.t("Step out from function"),size:"medium",children:M.jsx(Qt,{})}),!this.state.finished&&M.jsx(G.IconButton,{style:_e.buttonException,color:this.state.stopOnException?"primary":"default",disabled:v||!this.state.paused,onClick:()=>this.onToggleException(),title:Oe.I18n.t("Stop on exception"),size:"medium",children:M.jsx(Zt,{})}),this.renderTabs()]},"toolbar1")}getPossibleBreakpoints(v){const g={...v,columnNumber:1e3};this.sendToInstance({cmd:"getPossibleBreakpoints",start:v,end:g})}toggleBreakpoint(v){const g=this.state.breakpoints.find(a=>a.location.scriptId===this.state.selected&&a.location.lineNumber===v);if(g){const a=JSON.parse(JSON.stringify(this.state.breakpoints));this.setState({breakpoints:a},()=>this.sendToInstance({breakpoints:[g.id],cmd:"cb"}))}else this.getPossibleBreakpoints({scriptId:this.state.selected,lineNumber:v,columnNumber:0})}renderCode(){if(this.state.script&&this.state.started){const v=this.state.breakpoints.filter(g=>g.location.scriptId===this.state.selected);return M.jsx(aa,{runningInstances:this.props.runningInstances,socket:this.props.socket,adapterName:this.props.adapterName,scriptName:this.state.selected?this.state.tabs[this.state.selected]:"",sourceId:this.state.selected,script:this.state.script,paused:this.state.paused,breakpoints:v,location:this.state.location,themeType:this.props.themeType,themeName:this.props.themeName,onToggleBreakpoint:g=>this.toggleBreakpoint(g)})}return null}renderFrames(){var v;return this.state.paused?M.jsx(la,{currentScriptId:this.state.selected,scopes:this.state.scopes,expressions:this.state.expressions,themeType:this.props.themeType,callFrames:(v=this.state.context)==null?void 0:v.callFrames,currentFrame:this.state.currentFrame,onChangeCurrentFrame:g=>{this.setState({currentFrame:g,scopes:{}},()=>{this.readCurrentScope(),this.readExpressions()})},onWriteScopeValue:g=>{this.sendToInstance({cmd:"setValue",variableName:g.variableName,scopeNumber:g.scopeNumber,newValue:g.newValue,callFrameId:g.callFrameId})},onExpressionDelete:g=>{const a=JSON.parse(JSON.stringify(this.state.expressions));a.splice(g,1),this.setState({expressions:a}),window.localStorage.setItem(`javascript.tools.exps.${this.props.src}`,JSON.stringify(a.map(t=>t.name)))},onExpressionAdd:g=>{const a=JSON.parse(JSON.stringify(this.state.expressions));a.push({name:"",value:{value:""}}),this.setState({expressions:a},()=>g&&g(a.length-1,this.state.expressions[a.length-1]))},onExpressionNameUpdate:(g,a,t)=>{const e=JSON.parse(JSON.stringify(this.state.expressions));if(!a)e.splice(g,1);else{if(e.find(s=>s.name===a))return t&&t();e[g].name=a}this.setState({expressions:e},()=>{a&&this.readExpressions(g),t&&t()}),window.localStorage.setItem(`javascript.tools.exps.${this.props.src}`,JSON.stringify(e.map(s=>s.name)))}}):null}renderConsole(){return M.jsx(_t,{console:this.state.console,onClearAllLogs:()=>this.setState({console:[],logErrors:0,logWarnings:0,logs:0})})}renderTools(){const v=!this.state.tabs||!this.state.started;let g;return this.state.logErrors?g=M.jsx(G.Badge,{badgeContent:this.state.logErrors,color:"error",children:M.jsx("span",{children:Oe.I18n.t("Console")})}):this.state.logWarnings?g=M.jsx(G.Badge,{badgeContent:this.state.logWarnings,color:"secondary",children:M.jsx("span",{children:Oe.I18n.t("Console")})}):this.state.logs?g=M.jsx(G.Badge,{badgeContent:this.state.logs,color:"default",children:M.jsx("span",{children:Oe.I18n.t("Console")})}):g=Oe.I18n.t("Console"),M.jsxs("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[M.jsxs(G.Tabs,{sx:_e.tabsRoot,component:"div",indicatorColor:"primary",style:{position:"relative",width:"100%"},value:this.state.toolsTab,onChange:(a,t)=>{const e={toolsTab:t};this.console&&t==="console"&&(e.console=this.console,this.console=null,e.logs=0,e.logWarnings=0,e.logErrors=0),window.localStorage.setItem("javascript.tools.tab",t),this.setState(e)},scrollButtons:"auto",children:[M.jsx(G.Tab,{style:_e.tabRoot,disabled:v,label:Oe.I18n.t("Stack"),value:"stack"}),M.jsx(G.Tab,{style:_e.tabRoot,disabled:v,label:g,value:"console"})]}),M.jsxs("div",{style:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden"},children:[this.state.toolsTab==="stack"&&!v?this.renderFrames():null,this.state.toolsTab==="console"&&!v?this.renderConsole():null]})]})}render(){return M.jsxs(G.Box,{sx:_e.root,children:[this.state.starting?M.jsx(G.LinearProgress,{}):null,this.renderToolbar(),M.jsxs(Ft,{direction:Nt.Vertical,initialSizes:this.state.toolSizes,minHeights:[100,100],onResizeFinished:(v,g)=>{this.setState({toolSizes:g}),window.localStorage.setItem("JS.toolSizes",JSON.stringify(g))},gutterClassName:this.props.themeType==="dark"?"Dark visGutter":"Light visGutter",children:[M.jsxs("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[this.renderCode(),this.renderQueryBreakpoints()]}),M.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:this.renderTools()})]}),this.renderError()]},"debugger")}}export{kt as default};
|