import{af as Mr,ag as cr,Y as Nr,ah as Ir,ai as Pr,aj as Lr,ak as Dr,al as zr,am as jn,a0 as Z,an as Tr,a2 as an,a4 as I,ab as He,a8 as ft,ao as wt,ac as Ot,ap as _n,aq as Ze,a9 as kn,ar as kt,as as Br,at as lr,W as Wr,$ as on,au as ur,a3 as dr,av as qr,aw as $r,ax as Ur,aa as An,R as Kr,Q as Fn,ay as fr,az as pr,X as Hr,S as Je,aA as Rn,T as hr,aB as Jr,a1 as Vr,aC as pn,P as Gr,K as Yr,aD as Xr,aE as Kt,aF as Mn,aG as Nn}from"./index-F5308wi0.js";import{f as br,o as In,i as Pn}from"./formatSearchParams-C4IYAEpQ.js";import{c as Qr}from"./index.browser.esm-td0i8UXo.js";import{b as gr}from"./_baseIteratee-7dBAmCi8.js";import{b as Zr}from"./_baseUniq-CKqWSnHK.js";import{T as Ct}from"./index-5SwdtDpC.js";function is(){var r=arguments.length;if(!r)return[];for(var a=Array(r-1),c=arguments[0],t=r;t--;)a[t-1]=arguments[t];return Mr(Nr(c)?Ir(c):[c],cr(a))}var ea=Array.prototype,ta=ea.splice;function na(r,a){for(var c=r?a.length:0,t=c-1;c--;){var n=a[c];if(c==t||n!==e){var e=n;Pr(n)?ta.call(r,n,1):Lr(r,n)}}return r}function ra(r,a){var c=[];if(!(r&&r.length))return c;var t=-1,n=[],e=r.length;for(a=gr(a);++t<e;){var s=r[t];a(s,t,r)&&(c.push(s),n.push(t))}return na(r,n),c}var aa=Dr(function(r){var a=zr(r);return jn(a)&&(a=void 0),Zr(cr(r,1,jn,!0),gr(a))});const oa=66;var Nt=(r=>(r.FUNCTION="function",r.EVENT="event",r.JUMP="jump",r))(Nt||{});const ss=2,hn=["#FF0000","#BDB76B","#32CD32","#AD76E3","#FF00FF","#8478E3","#936FDB","#FFC0CB","#46E3C2","#6495ED","#20B2AA","#55E17C","#5F9EA0","#E9D46B","#78E06D","#FFA07A","#FFA07A","#7CFC00","#E9967A","#008080","#EE906F","#FFA500","#FFD700","#FA8072","#B0E0E6","#DC143C","#FF4500","#B22222","#00BFFF","#00FF7F","#BA55D3","#66CDAA","#FFE4B5","#9ACD32","#EEE8AA","#B0C4DE","#9ACD32","#FF1493","#CCDF6B","#EBB46E","#228B22","#58A3E4","#FF69B4","#F08080","#A5DF6C","#00CED1","#FFB6C1","#6083E3","#4DC3E2","#EE82EE","#FF8C00","#FF7F50","#FFEB80","#ADFF2F","#8FBC8B","#FF6347","#DB7093","#90EE90","#C71585","#9400D3","#F0E68C","#90EE90","#00FFFF","#F06C71"],Ln={dark:"#ffffff",light:"#000000"},Dn={dark:"#ffffff",light:"#000000"},zn={dark:"#1F2124",light:"#E6EFFE"},cs={dark:"transparent",light:"#ffffff"},Tn={dark:"#717171",light:"#4FA0FF"},ia={dark:"#515151",light:"#97C7FF"},ls="invocation_flow_options",Bn="vs_code_history",sa={CALL:"icon-operation-call",JUMP:"icon-operation-jump",STATICCALL:"icon-operation-staticcall",EVENT:"icon-operation-event",DELEGATECALL:"icon-operation-delegatecall",CREATE:"icon-operation-create",CREATE2:"icon-operation-create2",CALLCODE:"icon-operation-callcode",SELFDESTRUCT:"icon-operation-selfdestruct"},ca=42,Sn=["CREATE","CREATE2"],us={stepUpId:-2,previousId:-2,nextId:-2,stepInId:-2,stepOutId:-2},mr={id:-2,depth:-2,order:-2,key:-2,status:!0,revert:!1,value:"0",address:"",fromAddress:"",gasUsed:0,invocationType:"",operation:"",errorInfo:"",revertMessage:"",selector:"",callData:"",output:"",methodDecoded:!0,decodedMethod:{name:"",callParams:[{name:"",type:"",value:""}],returnParams:[{name:"",type:"",value:""}]},rootContract:"",isInternalCall:!1,topics:[],children:[]},la={function:"blue",event:"green",jump:"#4EC8AF"},ua={function:"#3c89e8",event:"#6abe39",jump:"#4EC8AF"},vr=-2,yr=-2,Lt=.5,sn=.6,ds={jsonView:null,debugTree:[]},Wn="sol",fs={codeHash:"",code:"",startColumn:1,endColumn:1,sourced:!1,startLine:1,endLine:1,fileIndex:-1,id:yr,fileName:"NoCode.sol",isDefine:!1},da={base:"vs-dark",inherit:!0,rules:[{background:"002240",token:""},{foreground:"e1efff",token:"punctuation - (punctuation.definition.string || punctuation.definition.comment)"},{foreground:"ff628c",token:"constant"},{foreground:"ffdd00",token:"entity"},{foreground:"ff9d00",token:"keyword"},{foreground:"ffee80",token:"storage"},{foreground:"3ad900",token:"string -string.unquoted.old-plist -string.unquoted.heredoc"},{foreground:"3ad900",token:"string.unquoted.heredoc string"},{foreground:"2f8af5",fontStyle:"italic",token:"comment"},{foreground:"80ffbb",token:"support"},{foreground:"cccccc",token:"variable"},{foreground:"ff80e1",token:"variable.language"},{foreground:"ffee80",token:"meta.function-call"},{foreground:"f8f8f8",background:"800f00",token:"invalid"},{foreground:"ffffff",background:"223545",token:"text source"},{foreground:"ffffff",background:"223545",token:"string.unquoted.heredoc"},{foreground:"ffffff",background:"223545",token:"source source"},{foreground:"80fcff",fontStyle:"italic",token:"entity.other.inherited-class"},{foreground:"9eff80",token:"string.quoted source"},{foreground:"80ff82",token:"string constant"},{foreground:"80ffc2",token:"string.regexp"},{foreground:"edef7d",token:"string variable"},{foreground:"ffb054",token:"support.function"},{foreground:"eb939a",token:"support.constant"},{foreground:"ff1e00",token:"support.type.exception"},{foreground:"8996a8",token:"meta.preprocessor.c"},{foreground:"afc4db",token:"meta.preprocessor.c keyword"},{foreground:"73817d",token:"meta.sgml.html meta.doctype"},{foreground:"73817d",token:"meta.sgml.html meta.doctype entity"},{foreground:"73817d",token:"meta.sgml.html meta.doctype string"},{foreground:"73817d",token:"meta.xml-processing"},{foreground:"73817d",token:"meta.xml-processing entity"},{foreground:"73817d",token:"meta.xml-processing string"},{foreground:"9effff",token:"meta.tag"},{foreground:"9effff",token:"meta.tag entity"},{foreground:"9effff",token:"meta.selector.css entity.name.tag"},{foreground:"ffb454",token:"meta.selector.css entity.other.attribute-name.id"},{foreground:"5fe461",token:"meta.selector.css entity.other.attribute-name.class"},{foreground:"9df39f",token:"support.type.property-name.css"},{foreground:"f6f080",token:"meta.property-group support.constant.property-value.css"},{foreground:"f6f080",token:"meta.property-value support.constant.property-value.css"},{foreground:"f6aa11",token:"meta.preprocessor.at-rule keyword.control.at-rule"},{foreground:"edf080",token:"meta.property-value support.constant.named-color.css"},{foreground:"edf080",token:"meta.property-value constant"},{foreground:"eb939a",token:"meta.constructor.argument.css"},{foreground:"f8f8f8",background:"000e1a",token:"meta.diff"},{foreground:"f8f8f8",background:"000e1a",token:"meta.diff.header"},{foreground:"f8f8f8",background:"4c0900",token:"markup.deleted"},{foreground:"f8f8f8",background:"806f00",token:"markup.changed"},{foreground:"f8f8f8",background:"154f00",token:"markup.inserted"},{background:"8fddf630",token:"markup.raw"},{background:"004480",token:"markup.quote"},{background:"130d26",token:"markup.list"},{foreground:"c1afff",fontStyle:"bold",token:"markup.bold"},{foreground:"b8ffd9",fontStyle:"italic",token:"markup.italic"},{foreground:"c8e4fd",background:"001221",fontStyle:"bold",token:"markup.heading"},{foreground:"ff9d00",token:"solidity"},{foreground:"c586c0",token:"return"},{foreground:"40e0d0",token:"public"},{foreground:"1e90ff",token:"function"},{foreground:"c51919",token:"custom.symbol"}],colors:{"editor.foreground":"#FFFFFF","editor.background":"#000000","editor.selectionBackground":"#B36539BF","editor.lineHighlightBackground":"#122E50","editorCursor.foreground":"#FFFFFF","editorWhitespace.foreground":"#FFFFFF26"}},fa={base:"vs",inherit:!0,rules:[{background:"FFFFFF",token:""},{background:"e2e9ff5e",token:"text.html source.active4d"},{foreground:"000000",token:"text.xml"},{foreground:"af82d4",token:"comment.line"},{foreground:"af82d4",token:"comment.block"},{foreground:"666666",token:"string"},{foreground:"66ccff",fontStyle:"bold",token:"string.interpolated variable"},{foreground:"a8017e",token:"constant.numeric"},{foreground:"66ccff",fontStyle:"bold",token:"constant.other.date"},{foreground:"66ccff",fontStyle:"bold",token:"constant.other.time"},{foreground:"a535ae",token:"constant.language"},{foreground:"6392ff",fontStyle:"bold",token:"variable.other.local"},{foreground:"0053ff",fontStyle:"bold",token:"variable"},{foreground:"6988ae",token:"variable.other.table-field"},{foreground:"006699",fontStyle:"bold",token:"keyword"},{foreground:"ff5600",token:"storage"},{foreground:"21439c",token:"entity.name.type"},{foreground:"21439c",token:"entity.name.function"},{foreground:"7a7a7a",token:"meta.tag"},{foreground:"016cff",token:"entity.name.tag"},{foreground:"963dff",token:"entity.other.attribute-name"},{foreground:"45ae34",fontStyle:"bold",token:"support.function"},{foreground:"b7734c",token:"support.constant"},{foreground:"a535ae",token:"support.type"},{foreground:"a535ae",token:"support.class"},{foreground:"a535ae",token:"support.variable"},{foreground:"ffffff",background:"990000",token:"invalid"},{foreground:"ffffff",background:"656565",token:"meta.diff"},{foreground:"ffffff",background:"1b63ff",token:"meta.diff.range"},{foreground:"000000",background:"ff7880",token:"markup.deleted.diff"},{foreground:"000000",background:"98ff9a",token:"markup.inserted.diff"},{foreground:"5e5e5e",token:"source.diff"},{foreground:"ff9d00",token:"solidity"},{foreground:"c586c0",token:"return"},{foreground:"40e0d0",token:"public"},{foreground:"1e90ff",token:"function"},{foreground:"FC4D4C",token:"custom.symbol"}],colors:{"editor.foreground":"#3B3B3B","editor.background":"#FFFFFF","editor.selectionBackground":"#BAD6FD","editor.lineHighlightBackground":"#00000012","editorCursor.foreground":"#000000","editorWhitespace.foreground":"#BFBFBF"}};let Ht;const pa=new Uint8Array(16);function ha(){if(!Ht&&(Ht=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ht))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ht(pa)}const Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function ba(r,a=0){return Ne[r[a+0]]+Ne[r[a+1]]+Ne[r[a+2]]+Ne[r[a+3]]+"-"+Ne[r[a+4]]+Ne[r[a+5]]+"-"+Ne[r[a+6]]+Ne[r[a+7]]+"-"+Ne[r[a+8]]+Ne[r[a+9]]+"-"+Ne[r[a+10]]+Ne[r[a+11]]+Ne[r[a+12]]+Ne[r[a+13]]+Ne[r[a+14]]+Ne[r[a+15]]}const ga=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qn={randomUUID:ga};function ps(r,a,c){if(qn.randomUUID&&!a&&!r)return qn.randomUUID();r=r||{};const t=r.random||(r.rng||ha)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,ba(t)}var ma=function(){var r=function(a,c){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(a,c)};return function(a,c){r(a,c);function t(){this.constructor=a}a.prototype=c===null?Object.create(c):(t.prototype=c.prototype,new t)}}(),we=function(){return we=Object.assign||function(r){for(var a,c=1,t=arguments.length;c<t;c++){a=arguments[c];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])}return r},we.apply(this,arguments)},$n={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Un={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Jt={width:"20px",height:"20px",position:"absolute"},va={top:we(we({},$n),{top:"-5px"}),right:we(we({},Un),{left:void 0,right:"-5px"}),bottom:we(we({},$n),{top:void 0,bottom:"-5px"}),left:we(we({},Un),{left:"-5px"}),topRight:we(we({},Jt),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:we(we({},Jt),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:we(we({},Jt),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:we(we({},Jt),{left:"-10px",top:"-10px",cursor:"nw-resize"})},ya=function(r){ma(a,r);function a(){var c=r!==null&&r.apply(this,arguments)||this;return c.onMouseDown=function(t){c.props.onResizeStart(t,c.props.direction)},c.onTouchStart=function(t){c.props.onResizeStart(t,c.props.direction)},c}return a.prototype.render=function(){return Z.createElement("div",{className:this.props.className||"",style:we(we({position:"absolute",userSelect:"none"},va[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},a}(Z.PureComponent),Ea=function(){var r=function(a,c){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(a,c)};return function(a,c){r(a,c);function t(){this.constructor=a}a.prototype=c===null?Object.create(c):(t.prototype=c.prototype,new t)}}(),Qe=function(){return Qe=Object.assign||function(r){for(var a,c=1,t=arguments.length;c<t;c++){a=arguments[c];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])}return r},Qe.apply(this,arguments)},xa={width:"auto",height:"auto"},Vt=function(r,a,c){return Math.max(Math.min(r,c),a)},Kn=function(r,a){return Math.round(r/a)*a},xt=function(r,a){return new RegExp(r,"i").test(a)},Gt=function(r){return!!(r.touches&&r.touches.length)},_a=function(r){return!!((r.clientX||r.clientX===0)&&(r.clientY||r.clientY===0))},Hn=function(r,a,c){c===void 0&&(c=0);var t=a.reduce(function(e,s,o){return Math.abs(s-r)<Math.abs(a[e]-r)?o:e},0),n=Math.abs(a[t]-r);return c===0||n<c?a[t]:r},bn=function(r){return r=r.toString(),r==="auto"||r.endsWith("px")||r.endsWith("%")||r.endsWith("vh")||r.endsWith("vw")||r.endsWith("vmax")||r.endsWith("vmin")?r:r+"px"},Yt=function(r,a,c,t){if(r&&typeof r=="string"){if(r.endsWith("px"))return Number(r.replace("px",""));if(r.endsWith("%")){var n=Number(r.replace("%",""))/100;return a*n}if(r.endsWith("vw")){var n=Number(r.replace("vw",""))/100;return c*n}if(r.endsWith("vh")){var n=Number(r.replace("vh",""))/100;return t*n}}return r},ka=function(r,a,c,t,n,e,s){return t=Yt(t,r.width,a,c),n=Yt(n,r.height,a,c),e=Yt(e,r.width,a,c),s=Yt(s,r.height,a,c),{maxWidth:typeof t>"u"?void 0:Number(t),maxHeight:typeof n>"u"?void 0:Number(n),minWidth:typeof e>"u"?void 0:Number(e),minHeight:typeof s>"u"?void 0:Number(s)}},Sa=function(r){return Array.isArray(r)?r:[r,r]},wa=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Jn="__resizable_base__",Ca=function(r){Ea(a,r);function a(c){var t,n,e,s,o=r.call(this,c)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var u=o.parentNode;if(!u)return null;var d=o.window.document.createElement("div");return d.style.width="100%",d.style.height="100%",d.style.position="absolute",d.style.transform="scale(0, 0)",d.style.left="0",d.style.flex="0 0 100%",d.classList?d.classList.add(Jn):d.className+=Jn,u.appendChild(d),d},o.removeBase=function(u){var d=o.parentNode;d&&d.removeChild(u)},o.state={isResizing:!1,width:(n=(t=o.propsSize)===null||t===void 0?void 0:t.width)!==null&&n!==void 0?n:"auto",height:(s=(e=o.propsSize)===null||e===void 0?void 0:e.height)!==null&&s!==void 0?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||xa},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"size",{get:function(){var c=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,e=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),c=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:n,t=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:e,this.resizable.style.position=s}return{width:c,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sizeStyle",{get:function(){var c=this,t=this.props.size,n=function(o){var u;if(typeof c.state[o]>"u"||c.state[o]==="auto")return"auto";if(c.propsSize&&c.propsSize[o]&&(!((u=c.propsSize[o])===null||u===void 0)&&u.toString().endsWith("%"))){if(c.state[o].toString().endsWith("%"))return c.state[o].toString();var d=c.getParentSize(),p=Number(c.state[o].toString().replace("px","")),m=p/d[o]*100;return m+"%"}return bn(c.state[o])},e=t&&typeof t.width<"u"&&!this.state.isResizing?bn(t.width):n("width"),s=t&&typeof t.height<"u"&&!this.state.isResizing?bn(t.height):n("height");return{width:e,height:s}},enumerable:!1,configurable:!0}),a.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var c=this.appendBase();if(!c)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;n!=="wrap"&&(t=!0,this.parentNode.style.flexWrap="wrap"),c.style.position="relative",c.style.minWidth="100%",c.style.minHeight="100%";var e={width:c.offsetWidth,height:c.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(c),e},a.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},a.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},a.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var c=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:c.flexBasis!=="auto"?c.flexBasis:void 0})}},a.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},a.prototype.createSizeForCssProperty=function(c,t){var n=this.propsSize&&this.propsSize[t];return this.state[t]==="auto"&&this.state.original[t]===c&&(typeof n>"u"||n==="auto")?"auto":c},a.prototype.calculateNewMaxFromBoundary=function(c,t){var n=this.props.boundsByDirection,e=this.state.direction,s=n&&xt("left",e),o=n&&xt("top",e),u,d;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(u=s?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),d=o?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,d=o?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),d=o?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(c=c&&c<u?c:u),d&&Number.isFinite(d)&&(t=t&&t<d?t:d),{maxWidth:c,maxHeight:t}},a.prototype.calculateNewSizeFromDirection=function(c,t){var n=this.props.scale||1,e=Sa(this.props.resizeRatio||1),s=e[0],o=e[1],u=this.state,d=u.direction,p=u.original,m=this.props,x=m.lockAspectRatio,v=m.lockAspectRatioExtraHeight,y=m.lockAspectRatioExtraWidth,O=p.width,U=p.height,$=v||0,R=y||0;return xt("right",d)&&(O=p.width+(c-p.x)*s/n,x&&(U=(O-R)/this.ratio+$)),xt("left",d)&&(O=p.width-(c-p.x)*s/n,x&&(U=(O-R)/this.ratio+$)),xt("bottom",d)&&(U=p.height+(t-p.y)*o/n,x&&(O=(U-$)*this.ratio+R)),xt("top",d)&&(U=p.height-(t-p.y)*o/n,x&&(O=(U-$)*this.ratio+R)),{newWidth:O,newHeight:U}},a.prototype.calculateNewSizeFromAspectRatio=function(c,t,n,e){var s=this.props,o=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,d=s.lockAspectRatioExtraWidth,p=typeof e.width>"u"?10:e.width,m=typeof n.width>"u"||n.width<0?c:n.width,x=typeof e.height>"u"?10:e.height,v=typeof n.height>"u"||n.height<0?t:n.height,y=u||0,O=d||0;if(o){var U=(x-y)*this.ratio+O,$=(v-y)*this.ratio+O,R=(p-O)/this.ratio+y,P=(m-O)/this.ratio+y,i=Math.max(p,U),M=Math.min(m,$),N=Math.max(x,R),z=Math.min(v,P);c=Vt(c,i,M),t=Vt(t,N,z)}else c=Vt(c,p,m),t=Vt(t,x,v);return{newWidth:c,newHeight:t}},a.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var c=this.parentNode;if(c){var t=c.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var e=this.resizable.getBoundingClientRect(),s=e.left,o=e.top,u=e.right,d=e.bottom;this.resizableLeft=s,this.resizableRight=u,this.resizableTop=o,this.resizableBottom=d}},a.prototype.onResizeStart=function(c,t){if(!(!this.resizable||!this.window)){var n=0,e=0;if(c.nativeEvent&&_a(c.nativeEvent)?(n=c.nativeEvent.clientX,e=c.nativeEvent.clientY):c.nativeEvent&&Gt(c.nativeEvent)&&(n=c.nativeEvent.touches[0].clientX,e=c.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(c,t,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var o,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var d=this.parentNode;if(d){var p=this.window.getComputedStyle(d).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",o=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var m={original:{x:n,y:e,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Qe(Qe({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(c.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(m)}},a.prototype.onMouseMove=function(c){var t=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Gt(c))try{c.preventDefault(),c.stopPropagation()}catch{}var n=this.props,e=n.maxWidth,s=n.maxHeight,o=n.minWidth,u=n.minHeight,d=Gt(c)?c.touches[0].clientX:c.clientX,p=Gt(c)?c.touches[0].clientY:c.clientY,m=this.state,x=m.direction,v=m.original,y=m.width,O=m.height,U=this.getParentSize(),$=ka(U,this.window.innerWidth,this.window.innerHeight,e,s,o,u);e=$.maxWidth,s=$.maxHeight,o=$.minWidth,u=$.minHeight;var R=this.calculateNewSizeFromDirection(d,p),P=R.newHeight,i=R.newWidth,M=this.calculateNewMaxFromBoundary(e,s);this.props.snap&&this.props.snap.x&&(i=Hn(i,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(P=Hn(P,this.props.snap.y,this.props.snapGap));var N=this.calculateNewSizeFromAspectRatio(i,P,{width:M.maxWidth,height:M.maxHeight},{width:o,height:u});if(i=N.newWidth,P=N.newHeight,this.props.grid){var z=Kn(i,this.props.grid[0]),K=Kn(P,this.props.grid[1]),E=this.props.snapGap||0,w=E===0||Math.abs(z-i)<=E?z:i,D=E===0||Math.abs(K-P)<=E?K:P;i=w,P=D}var H={width:i-v.width,height:P-v.height};if(y&&typeof y=="string"){if(y.endsWith("%")){var _=i/U.width*100;i=_+"%"}else if(y.endsWith("vw")){var ee=i/this.window.innerWidth*100;i=ee+"vw"}else if(y.endsWith("vh")){var T=i/this.window.innerHeight*100;i=T+"vh"}}if(O&&typeof O=="string"){if(O.endsWith("%")){var _=P/U.height*100;P=_+"%"}else if(O.endsWith("vw")){var ee=P/this.window.innerWidth*100;P=ee+"vw"}else if(O.endsWith("vh")){var T=P/this.window.innerHeight*100;P=T+"vh"}}var S={width:this.createSizeForCssProperty(i,"width"),height:this.createSizeForCssProperty(P,"height")};this.flexDir==="row"?S.flexBasis=S.width:this.flexDir==="column"&&(S.flexBasis=S.height);var J=this.state.width!==S.width,re=this.state.height!==S.height,ae=this.state.flexBasis!==S.flexBasis,X=J||re||ae;X&&Tr.flushSync(function(){t.setState(S)}),this.props.onResize&&X&&this.props.onResize(c,x,this.resizable,H)}},a.prototype.onMouseUp=function(c){var t,n,e=this.state,s=e.isResizing,o=e.direction,u=e.original;if(!(!s||!this.resizable)){var d={width:this.size.width-u.width,height:this.size.height-u.height};this.props.onResizeStop&&this.props.onResizeStop(c,o,this.resizable,d),this.props.size&&this.setState({width:(t=this.props.size.width)!==null&&t!==void 0?t:"auto",height:(n=this.props.size.height)!==null&&n!==void 0?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Qe(Qe({},this.state.backgroundStyle),{cursor:"auto"})})}},a.prototype.updateSize=function(c){var t,n;this.setState({width:(t=c.width)!==null&&t!==void 0?t:"auto",height:(n=c.height)!==null&&n!==void 0?n:"auto"})},a.prototype.renderResizer=function(){var c=this,t=this.props,n=t.enable,e=t.handleStyles,s=t.handleClasses,o=t.handleWrapperStyle,u=t.handleWrapperClass,d=t.handleComponent;if(!n)return null;var p=Object.keys(n).map(function(m){return n[m]!==!1?Z.createElement(ya,{key:m,direction:m,onResizeStart:c.onResizeStart,replaceStyles:e&&e[m],className:s&&s[m]},d&&d[m]?d[m]:null):null});return Z.createElement("div",{className:u,style:o},p)},a.prototype.render=function(){var c=this,t=Object.keys(this.props).reduce(function(s,o){return wa.indexOf(o)!==-1||(s[o]=c.props[o]),s},{}),n=Qe(Qe(Qe({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var e=this.props.as||"div";return Z.createElement(e,Qe({style:n,className:this.props.className},t,{ref:function(s){s&&(c.resizable=s)}}),this.state.isResizing&&Z.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},a.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},a}(Z.PureComponent);const Oa="_resize_1lk1y_1",ja="_header_1lk1y_4",Aa="_darkHeader_1lk1y_14",Fa="_left_1lk1y_18",Ra="_right_1lk1y_23",Ma="_useCollapse_1lk1y_27",Na="_content_1lk1y_34",Ia="_contentWithHeader_1lk1y_38",Ye={resize:Oa,header:ja,darkHeader:Aa,left:Fa,right:Ra,useCollapse:Ma,content:Na,contentWithHeader:Ia},hs=({children:r,handleWrapperClass:a,style:c,enable:t={top:!0},minHeight:n="",className:e,defaultSize:s={height:"50%",width:"100%"},onChange:o,header:u,useCollapse:d=!1,headerLeftClassName:p,collapseClassName:m})=>{var N,z;const{mode:x="light"}=Z.useContext(an),[v,y]=Z.useState(!1),[O,U]=Z.useState(null),[$,R]=Z.useState(s),P=(N=n==null?void 0:n.toString())!=null&&N.includes("%")?n.toString():O?`${parseFloat(n.toString())/((z=O==null?void 0:O.getParentSize())==null?void 0:z.height)*100}%`:"0%",i=(K,E,w)=>{w.classList.remove(Ye.resize)},M=(K,E,w)=>{O&&(parseFloat(w==null?void 0:w.style.height)<=parseFloat(P)?y(!0):(y(!1),R((O==null?void 0:O.sizeStyle)??{width:"",height:""})),w.classList.add(Ye.resize))};return Z.useEffect(()=>{O&&(v?(O==null||O.updateSize({...$,height:P}),o==null||o({...$,height:P})):(O==null||O.updateSize($),o==null||o($)))},[O,v]),I.jsxs(Ca,{onResize:()=>o==null?void 0:o(O==null?void 0:O.sizeStyle),ref:K=>U(K),enable:t,style:c,minHeight:P,className:He(Ye.resize,e),handleWrapperClass:a,onResizeStart:i,onResizeStop:M,children:[u&&I.jsxs("div",{className:He(Ye.header,{[Ye.darkHeader]:x==="dark"}),children:[I.jsx("div",{className:He(Ye.left,p),children:u}),I.jsx("div",{className:Ye.right,children:I.jsx(ft,{size:14,type:v?"icon-chevron-up":"icon-chevron-down",onClick:()=>{y(!v)}})})]}),d&&I.jsx(ft,{size:14,className:He(Ye.useCollapse,m),type:v?"icon-chevron-up":"icon-chevron-down",onClick:()=>{y(!v)}}),I.jsx("div",{className:He(Ye.content,{[Ye.contentWithHeader]:u}),children:r})]})};function Pa(r,a,c){return a in r?Object.defineProperty(r,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[a]=c,r}function Vn(r,a){var c=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),c.push.apply(c,t)}return c}function Gn(r){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?Vn(Object(c),!0).forEach(function(t){Pa(r,t,c[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):Vn(Object(c)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(c,t))})}return r}function La(r,a){if(r==null)return{};var c={},t=Object.keys(r),n,e;for(e=0;e<t.length;e++)n=t[e],!(a.indexOf(n)>=0)&&(c[n]=r[n]);return c}function Da(r,a){if(r==null)return{};var c=La(r,a),t,n;if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);for(n=0;n<e.length;n++)t=e[n],!(a.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(c[t]=r[t])}return c}function za(r,a){return Ta(r)||Ba(r,a)||Wa(r,a)||qa()}function Ta(r){if(Array.isArray(r))return r}function Ba(r,a){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(r)))){var c=[],t=!0,n=!1,e=void 0;try{for(var s=r[Symbol.iterator](),o;!(t=(o=s.next()).done)&&(c.push(o.value),!(a&&c.length===a));t=!0);}catch(u){n=!0,e=u}finally{try{!t&&s.return!=null&&s.return()}finally{if(n)throw e}}return c}}function Wa(r,a){if(r){if(typeof r=="string")return Yn(r,a);var c=Object.prototype.toString.call(r).slice(8,-1);if(c==="Object"&&r.constructor&&(c=r.constructor.name),c==="Map"||c==="Set")return Array.from(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Yn(r,a)}}function Yn(r,a){(a==null||a>r.length)&&(a=r.length);for(var c=0,t=new Array(a);c<a;c++)t[c]=r[c];return t}function qa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $a(r,a,c){return a in r?Object.defineProperty(r,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[a]=c,r}function Xn(r,a){var c=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),c.push.apply(c,t)}return c}function Qn(r){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?Xn(Object(c),!0).forEach(function(t){$a(r,t,c[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):Xn(Object(c)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(c,t))})}return r}function Ua(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return function(t){return a.reduceRight(function(n,e){return e(n)},t)}}function Mt(r){return function a(){for(var c=this,t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length>=r.length?r.apply(this,n):function(){for(var s=arguments.length,o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return a.apply(c,[].concat(n,o))}}}function en(r){return{}.toString.call(r).includes("Object")}function Ka(r){return!Object.keys(r).length}function Dt(r){return typeof r=="function"}function Ha(r,a){return Object.prototype.hasOwnProperty.call(r,a)}function Ja(r,a){return en(a)||dt("changeType"),Object.keys(a).some(function(c){return!Ha(r,c)})&&dt("changeField"),a}function Va(r){Dt(r)||dt("selectorType")}function Ga(r){Dt(r)||en(r)||dt("handlerType"),en(r)&&Object.values(r).some(function(a){return!Dt(a)})&&dt("handlersType")}function Ya(r){r||dt("initialIsRequired"),en(r)||dt("initialType"),Ka(r)&&dt("initialContent")}function Xa(r,a){throw new Error(r[a]||r.default)}var Qa={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},dt=Mt(Xa)(Qa),Xt={changes:Ja,selector:Va,handler:Ga,initial:Ya};function Za(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xt.initial(r),Xt.handler(a);var c={current:r},t=Mt(no)(c,a),n=Mt(to)(c),e=Mt(Xt.changes)(r),s=Mt(eo)(c);function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Xt.selector(d),d(c.current)}function u(d){Ua(t,n,e,s)(d)}return[o,u]}function eo(r,a){return Dt(a)?a(r.current):a}function to(r,a){return r.current=Qn(Qn({},r.current),a),a}function no(r,a,c){return Dt(a)?a(r.current):Object.keys(c).forEach(function(t){var n;return(n=a[t])===null||n===void 0?void 0:n.call(a,r.current[t])}),c}var ro={create:Za},ao={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function oo(r){return function a(){for(var c=this,t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length>=r.length?r.apply(this,n):function(){for(var s=arguments.length,o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return a.apply(c,[].concat(n,o))}}}function io(r){return{}.toString.call(r).includes("Object")}function so(r){return r||Zn("configIsRequired"),io(r)||Zn("configType"),r.urls?(co(),{paths:{vs:r.urls.monacoBase}}):r}function co(){console.warn(Er.deprecation)}function lo(r,a){throw new Error(r[a]||r.default)}var Er={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
    You are using deprecated way of configuration.

    Instead of using
      monaco.config({ urls: { monacoBase: '...' } })
    use
      monaco.config({ paths: { vs: '...' } })

    For more please check the link https://github.com/suren-atoyan/monaco-loader#config
  `},Zn=oo(lo)(Er),uo={config:so},fo=function(){for(var a=arguments.length,c=new Array(a),t=0;t<a;t++)c[t]=arguments[t];return function(n){return c.reduceRight(function(e,s){return s(e)},n)}};function xr(r,a){return Object.keys(a).forEach(function(c){a[c]instanceof Object&&r[c]&&Object.assign(a[c],xr(r[c],a[c]))}),Gn(Gn({},r),a)}var po={type:"cancelation",msg:"operation is manually canceled"};function gn(r){var a=!1,c=new Promise(function(t,n){r.then(function(e){return a?n(po):t(e)}),r.catch(n)});return c.cancel=function(){return a=!0},c}var ho=ro.create({config:ao,isInitialized:!1,resolve:null,reject:null,monaco:null}),_r=za(ho,2),Tt=_r[0],cn=_r[1];function bo(r){var a=uo.config(r),c=a.monaco,t=Da(a,["monaco"]);cn(function(n){return{config:xr(n.config,t),monaco:c}})}function go(){var r=Tt(function(a){var c=a.monaco,t=a.isInitialized,n=a.resolve;return{monaco:c,isInitialized:t,resolve:n}});if(!r.isInitialized){if(cn({isInitialized:!0}),r.monaco)return r.resolve(r.monaco),gn(mn);if(window.monaco&&window.monaco.editor)return kr(window.monaco),r.resolve(window.monaco),gn(mn);fo(mo,yo)(Eo)}return gn(mn)}function mo(r){return document.body.appendChild(r)}function vo(r){var a=document.createElement("script");return r&&(a.src=r),a}function yo(r){var a=Tt(function(t){var n=t.config,e=t.reject;return{config:n,reject:e}}),c=vo("".concat(a.config.paths.vs,"/loader.js"));return c.onload=function(){return r()},c.onerror=a.reject,c}function Eo(){var r=Tt(function(c){var t=c.config,n=c.resolve,e=c.reject;return{config:t,resolve:n,reject:e}}),a=window.require;a.config(r.config),a(["vs/editor/editor.main"],function(c){kr(c),r.resolve(c)},function(c){r.reject(c)})}function kr(r){Tt().monaco||cn({monaco:r})}function xo(){return Tt(function(r){var a=r.monaco;return a})}var mn=new Promise(function(r,a){return cn({resolve:r,reject:a})}),tn={config:bo,init:go,__getMonacoInstance:xo},_o={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vn=_o,ko={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},So=ko;function wo({children:r}){return wt.createElement("div",{style:So.container},r)}var Co=wo,Oo=Co;function jo({width:r,height:a,isEditorReady:c,loading:t,_ref:n,className:e,wrapperProps:s}){return wt.createElement("section",{style:{...vn.wrapper,width:r,height:a},...s},!c&&wt.createElement(Oo,null,t),wt.createElement("div",{ref:n,style:{...vn.fullWidth,...!c&&vn.hide},className:e}))}var Ao=jo,Sr=Z.memo(Ao);function Fo(r){Z.useEffect(r,[])}var wn=Fo;function Ro(r,a,c=!0){let t=Z.useRef(!0);Z.useEffect(t.current||!c?()=>{t.current=!1}:r,a)}var Be=Ro;function It(){}function St(r,a,c,t){return Mo(r,t)||No(r,a,c,t)}function Mo(r,a){return r.editor.getModel(wr(r,a))}function No(r,a,c,t){return r.editor.createModel(a,c,t?wr(r,t):void 0)}function wr(r,a){return r.Uri.parse(a)}function Io({original:r,modified:a,language:c,originalLanguage:t,modifiedLanguage:n,originalModelPath:e,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:u=!1,theme:d="light",loading:p="Loading...",options:m={},height:x="100%",width:v="100%",className:y,wrapperProps:O={},beforeMount:U=It,onMount:$=It}){let[R,P]=Z.useState(!1),[i,M]=Z.useState(!0),N=Z.useRef(null),z=Z.useRef(null),K=Z.useRef(null),E=Z.useRef($),w=Z.useRef(U),D=Z.useRef(!1);wn(()=>{let T=tn.init();return T.then(S=>(z.current=S)&&M(!1)).catch(S=>(S==null?void 0:S.type)!=="cancelation"&&console.error("Monaco initialization: error:",S)),()=>N.current?ee():T.cancel()}),Be(()=>{if(N.current&&z.current){let T=N.current.getOriginalEditor(),S=St(z.current,r||"",t||c||"text",e||"");S!==T.getModel()&&T.setModel(S)}},[e],R),Be(()=>{if(N.current&&z.current){let T=N.current.getModifiedEditor(),S=St(z.current,a||"",n||c||"text",s||"");S!==T.getModel()&&T.setModel(S)}},[s],R),Be(()=>{let T=N.current.getModifiedEditor();T.getOption(z.current.editor.EditorOption.readOnly)?T.setValue(a||""):a!==T.getValue()&&(T.executeEdits("",[{range:T.getModel().getFullModelRange(),text:a||"",forceMoveMarkers:!0}]),T.pushUndoStop())},[a],R),Be(()=>{var T,S;(S=(T=N.current)==null?void 0:T.getModel())==null||S.original.setValue(r||"")},[r],R),Be(()=>{let{original:T,modified:S}=N.current.getModel();z.current.editor.setModelLanguage(T,t||c||"text"),z.current.editor.setModelLanguage(S,n||c||"text")},[c,t,n],R),Be(()=>{var T;(T=z.current)==null||T.editor.setTheme(d)},[d],R),Be(()=>{var T;(T=N.current)==null||T.updateOptions(m)},[m],R);let H=Z.useCallback(()=>{var J;if(!z.current)return;w.current(z.current);let T=St(z.current,r||"",t||c||"text",e||""),S=St(z.current,a||"",n||c||"text",s||"");(J=N.current)==null||J.setModel({original:T,modified:S})},[c,a,n,r,t,e,s]),_=Z.useCallback(()=>{var T;!D.current&&K.current&&(N.current=z.current.editor.createDiffEditor(K.current,{automaticLayout:!0,...m}),H(),(T=z.current)==null||T.editor.setTheme(d),P(!0),D.current=!0)},[m,d,H]);Z.useEffect(()=>{R&&E.current(N.current,z.current)},[R]),Z.useEffect(()=>{!i&&!R&&_()},[i,R,_]);function ee(){var S,J,re,ae;let T=(S=N.current)==null?void 0:S.getModel();o||((J=T==null?void 0:T.original)==null||J.dispose()),u||((re=T==null?void 0:T.modified)==null||re.dispose()),(ae=N.current)==null||ae.dispose()}return wt.createElement(Sr,{width:v,height:x,isEditorReady:R,loading:p,_ref:K,className:y,wrapperProps:O})}var Po=Io;Z.memo(Po);function Lo(){let[r,a]=Z.useState(tn.__getMonacoInstance());return wn(()=>{let c;return r||(c=tn.init(),c.then(t=>{a(t)})),()=>c==null?void 0:c.cancel()}),r}var Do=Lo;function zo(r){let a=Z.useRef();return Z.useEffect(()=>{a.current=r},[r]),a.current}var To=zo,Qt=new Map;function Bo({defaultValue:r,defaultLanguage:a,defaultPath:c,value:t,language:n,path:e,theme:s="light",line:o,loading:u="Loading...",options:d={},overrideServices:p={},saveViewState:m=!0,keepCurrentModel:x=!1,width:v="100%",height:y="100%",className:O,wrapperProps:U={},beforeMount:$=It,onMount:R=It,onChange:P,onValidate:i=It}){let[M,N]=Z.useState(!1),[z,K]=Z.useState(!0),E=Z.useRef(null),w=Z.useRef(null),D=Z.useRef(null),H=Z.useRef(R),_=Z.useRef($),ee=Z.useRef(),T=Z.useRef(t),S=To(e),J=Z.useRef(!1),re=Z.useRef(!1);wn(()=>{let G=tn.init();return G.then(Y=>(E.current=Y)&&K(!1)).catch(Y=>(Y==null?void 0:Y.type)!=="cancelation"&&console.error("Monaco initialization: error:",Y)),()=>w.current?X():G.cancel()}),Be(()=>{var Y,Q,oe,ie;let G=St(E.current,r||t||"",a||n||"",e||c||"");G!==((Y=w.current)==null?void 0:Y.getModel())&&(m&&Qt.set(S,(Q=w.current)==null?void 0:Q.saveViewState()),(oe=w.current)==null||oe.setModel(G),m&&((ie=w.current)==null||ie.restoreViewState(Qt.get(e))))},[e],M),Be(()=>{var G;(G=w.current)==null||G.updateOptions(d)},[d],M),Be(()=>{!w.current||t===void 0||(w.current.getOption(E.current.editor.EditorOption.readOnly)?w.current.setValue(t):t!==w.current.getValue()&&(re.current=!0,w.current.executeEdits("",[{range:w.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),w.current.pushUndoStop(),re.current=!1))},[t],M),Be(()=>{var Y,Q;let G=(Y=w.current)==null?void 0:Y.getModel();G&&n&&((Q=E.current)==null||Q.editor.setModelLanguage(G,n))},[n],M),Be(()=>{var G;o!==void 0&&((G=w.current)==null||G.revealLine(o))},[o],M),Be(()=>{var G;(G=E.current)==null||G.editor.setTheme(s)},[s],M);let ae=Z.useCallback(()=>{var G;if(!(!D.current||!E.current)&&!J.current){_.current(E.current);let Y=e||c,Q=St(E.current,t||r||"",a||n||"",Y||"");w.current=(G=E.current)==null?void 0:G.editor.create(D.current,{model:Q,automaticLayout:!0,...d},p),m&&w.current.restoreViewState(Qt.get(Y)),E.current.editor.setTheme(s),o!==void 0&&w.current.revealLine(o),N(!0),J.current=!0}},[r,a,c,t,n,e,d,p,m,s,o]);Z.useEffect(()=>{M&&H.current(w.current,E.current)},[M]),Z.useEffect(()=>{!z&&!M&&ae()},[z,M,ae]),T.current=t,Z.useEffect(()=>{var G,Y;M&&P&&((G=ee.current)==null||G.dispose(),ee.current=(Y=w.current)==null?void 0:Y.onDidChangeModelContent(Q=>{re.current||P(w.current.getValue(),Q)}))},[M,P]),Z.useEffect(()=>{if(M){let G=E.current.editor.onDidChangeMarkers(Y=>{var oe;let Q=(oe=w.current.getModel())==null?void 0:oe.uri;if(Q&&Y.find(ie=>ie.path===Q.path)){let ie=E.current.editor.getModelMarkers({resource:Q});i==null||i(ie)}});return()=>{G==null||G.dispose()}}return()=>{}},[M,i]);function X(){var G,Y;(G=ee.current)==null||G.dispose(),x?m&&Qt.set(e,w.current.saveViewState()):(Y=w.current.getModel())==null||Y.dispose(),w.current.dispose()}return wt.createElement(Sr,{width:v,height:y,isEditorReady:M,loading:u,_ref:D,className:O,wrapperProps:U})}var Wo=Bo,qo=Z.memo(Wo),$o=qo;const Uo=r=>{let a=0;return r.forEach(c=>{c.children?a=Math.max(a,Uo(c.children)+1):a=Math.max(a,1)}),a},nn=({arr:r,globalMapList:a,network:c,delay:t,txProfileData:n,callback:e,forkId:s,address:o,addressLabels:u,onHighLightAddress:d,removeAddressHighLight:p})=>{function m({value:v,delay:y,decimalAvailable:O}){if(Br(v))return"";if(typeof v=="string"&&v.length>66)return I.jsx(Ze,{title:v,delay:y,trigger:["click"],children:I.jsx("span",{style:{color:"#909399"},children:"(long param)"})});if(v==="0x")return I.jsx("span",{children:'""'});if(yn(v)){const $=u==null?void 0:u.find(R=>R.address===v);return I.jsxs("span",{children:[v===(n==null?void 0:n.basicInfo.receiver)&&I.jsx("span",{style:{color:"#ff9900"},children:"[Receiver]"}),v===(n==null?void 0:n.basicInfo.sender)&&I.jsx("span",{style:{color:"#ff9900"},children:"[Sender]"}),zt({type:"account",value:Ft(JSON.stringify(v)),mapList:a,network:c,delay:y,forkId:s,callback:e,originLabel:($==null?void 0:$.label)||v,onHighLightAddress:d,removeAddressHighLight:p})]})}return Rt(v)?I.jsxs("span",{children:["[",v.map(($,R)=>{let P=null;return yn($)&&(P=u==null?void 0:u.find(i=>i.address===$)),I.jsxs("span",{children:[yn($)?zt({type:"account",value:Ft(JSON.stringify($)),mapList:a,network:c,delay:y,callback:e,originLabel:(P==null?void 0:P.label)||Ft(JSON.stringify($)),onHighLightAddress:d,removeAddressHighLight:p}):I.jsx(Ze,{trigger:["click"],title:Ft(JSON.stringify($)),delay:y,children:JSON.stringify($)}),R<v.length-1&&", "]},R)}),"]"]}):I.jsx(Ze,{title:v.toString(),delay:y,trigger:["click"],children:Ko({value:Ft(JSON.stringify(v),Rt(v)),address:o,decimalAvailable:O,txProfileData:n})})}function x(v,y,O){if(Rt(v))return I.jsxs(I.Fragment,{children:["[",nn({arr:v,globalMapList:a,network:c,address:o,addressLabels:u,delay:Lt}),"]"]});const{name:U,value:$,decimalAvailable:R}=v;return I.jsxs("span",{children:[Rt($)&&En($[0])?I.jsxs("span",{children:[U,"=[",$.map((P,i)=>Rt(P)?En(P[0])?I.jsxs("span",{children:["[",nn({arr:P,globalMapList:a,network:c,address:o,addressLabels:u,delay:Lt}),"]"]},i):I.jsxs(I.Fragment,{children:[m({value:P,delay:O,decimalAvailable:R}),i<$.length-1&&", "]}):I.jsx("span",{children:x(P,i<$.length-1,O)},i)),"]"]}):U?I.jsxs("span",{children:[U,"=",m({value:$,delay:O,decimalAvailable:R})]}):m({value:$,delay:O,decimalAvailable:R}),y&&", "]})}return I.jsx("span",{children:r==null?void 0:r.map((v,y)=>En(v)?I.jsx("span",{children:x(v,y<r.length-1,t)},y):null)})},zt=({type:r,value:a,mapList:c,network:t="",delay:n,callback:e,callData:s,operation:o,topics:u,forkId:d,filterInputValue:p,originLabel:m,onHighLightAddress:x,removeAddressHighLight:v})=>{var M;const y=c.filter(N=>N.type===r).find(N=>N.value.toUpperCase()===(a==null?void 0:a.toUpperCase())),O=r==="account",U=O?{color:"#2f8af5",cursor:"pointer"}:{cursor:"pointer"},$=Ot.isSolana(t),R=y?y.label?[y.label,y.value]:y.value:a;let P=O?Ot.getChainIconBySimpleName(t,a):void 0;P!=null&&P.icon&&d&&(P={icon:"https://assets.blocksec.com/image/1682582577863-2.svg",link:`${_n}/${d}/address/${a}`});let i=!1;return p&&(i=Pt(p,a)||Pt(p,(y==null?void 0:y.label)??"")||a&&(a==null?void 0:a.toLocaleLowerCase().indexOf(p.toLocaleLowerCase()))!==-1||!!(y!=null&&y.label)&&((M=y==null?void 0:y.label)==null?void 0:M.toLocaleLowerCase().indexOf(p.toLocaleLowerCase()))!==-1),I.jsx(Ze,{trigger:["click"],delay:n,title:R,type:r,onEdit:e,callData:s,operation:o,topics:u,chainIconData:P,originLabel:m,showDecoded:!$,children:I.jsx("span",{className:`address-${a}`,style:y!=null&&y.color?{backgroundColor:i?"#FFFF43":y.color,...U}:{backgroundColor:i?"#FFFF43":"",...U},children:I.jsx(kn,{title:"hidden tooltip",mouseEnterDelay:.3,rootClassName:"hidden",onOpenChange:N=>{N&&O?x==null||x(a):!N&&O&&(v==null||v(a))},children:I.jsx("span",{style:y!=null&&y.color&&(y==null?void 0:y.color)!=="transparent"&&!i?{color:"#fff"}:{},children:(y==null?void 0:y.label)||a})})})})},Ft=(r,a)=>a?r.replaceAll(/\"/g,""):r.replace(/^['|"](.*)['|"]$/,"$1"),bs=(r,a)=>{const c={valid:!1,title:"Bummer, we couldn't find this transaction"};if(r&&a){const t=Ot.validSimpleName(r),n=a.startsWith("0x")&&a.length===oa;c.valid=t&&n,t||(c.desc="This transaction probably has not been processed by us yet."),n||(c.title="Invalid Transaction hash",c.desc="Transaction hash is invalid. Please check the hash and try again.")}return c},gs=(r,a,c)=>(r||a||c)??"",ms=(r,a,c="light",t)=>{var $;const{network:n,event:e,forkId:s}=t,{basicInfo:o,fundFlow:u}=r,d=new Map,p=[],m=new Map,x=hn.concat(hn).concat(hn);u.forEach(R=>{m.has(R.token)||m.set(R.token,x.shift())});const v=new Map([]);($=o.signer)==null||$.forEach(R=>{v.set(R,["[ Signer ]",Tn,"signer"])});const y=new Map([[o==null?void 0:o.sender,["[ Sender ]",Tn,"sender"]],[o==null?void 0:o.receiver,["[ Receiver ]",ia,"receiver"]]]),O=new Map([...y,...v]);return{fundFlow:u.map(R=>{const{from:P,to:i,token:M,amount:N,tokenID:z,order:K}=R,E=N+" "+M,w=a.find(ee=>ee.address===P),D=a.find(ee=>ee.address===i),H=(w==null?void 0:w.label)??R.from,_=(D==null?void 0:D.label)??R.to;if(!d.has(`${P}`)){const[ee,T,S]=O.get(P)??["",zn,""],J=T[c],re=T[c];d.set(`${P}`,`"${H}" 
      [
        shape="rect"
        style="filled"
        id="${S}"
        color="${J}"
        fillcolor="${re}"
        label=<<table border="0">
        <tr><td align="center" cellpadding="0"><font color="${Dn[c]}">${H} ${ee}</font></td></tr>
        </table>>
        href="${e===kt.FORK?`${_n}/${s}/address/${P}`:Ot.getHrefBySimpleName(n,P)}"
        target="_blank"
        tooltip="${P}"
      ]`)}if(!d.has(`${i}`)){const[ee,T,S]=O.get(i)??["",zn,""],J=T[c],re=T[c];d.set(`${i}`,`"${_}" 
      [
        shape="rect"
        style="filled"
        id="${S}"
        color="${J}"
        fillcolor="${re}"
        href="${e===kt.FORK?`${_n}/${s}/address/${i}`:Ot.getHrefBySimpleName(n,i)}"
        target="_blank"
        label=
        <
          <table border="0">
            <tr>
              <td align="center" cellpadding="0" width="16px"><font color="${Dn[c]}">${_} ${ee}</font></td>
            </tr>
          </table>
        >
        tooltip="${i}"
      ]`)}return p.push(`"${H}" -> "${_}"
    [
      title="Hh"
      dir="forward"
      id="${M}"
      class="transfer-0"
      color="${m.get(M)}"
      style="solid"
      labeltooltip="${P} -> ${i}"
      label=<<table border="0">
      <tr><td align="center"  cellpadding="0"><font color="${m.get(M)}"><br/>[${K}] </font></td><td align="center" cellpadding="0"><font color="${Ln[c]}"><br/>${E}</font></td><td align="center"  cellpadding="0"><font color="${Ln[c]}"><br/>${z?`[ ${z} ]`:""}</font></td></tr>
      </table>>
    ]
  `),{...R,labelFrom:H,labelTo:_,description:E}}),node:[...d.values()],edge:p}},Ko=({value:r,decimalAvailable:a,address:c,txProfileData:t=null})=>{var n,e;if(!a)return I.jsx("span",{className:"integerPart",children:r});try{const s=(n=t==null?void 0:t.tokenInfos)==null?void 0:n.find(o=>o.address===c);if(s){const[o]=((e=r==null?void 0:r.replaceAll(",",""))==null?void 0:e.split("."))??[];if(o.length<=s.decimals)return I.jsx("span",{className:"decimalPart",children:r});const u=s.decimals+Math.floor(s.decimals/3),d=r.slice(r.length-u),p=r.slice(0,r.length-u);return I.jsxs(I.Fragment,{children:[I.jsx("span",{className:"integerPart",children:p}),I.jsx("span",{className:"decimalPart",children:d})]})}else return I.jsx("span",{className:"integerPart",children:r})}catch{return I.jsx("span",{className:"integerPart",children:r})}},yn=r=>typeof r=="string"?r.startsWith("0x")&&r.length===ca:!1,er=(r,a="",c)=>{const t=[];if(Sn.includes(c)){for(let e=0;e<a.length;e+=64)t.push(a.slice(e,e+64));return t.join(`
`)}const n=a.substring(2);for(let e=0;e<n.length;e+=64)t.push(n.slice(e,e+64));return(c==="EVENT"?"":`${r}
`)+t.join(`
`)},vs=(r="",a)=>{const c=[],t=r.substring(2);for(let n=0;n<t.length;n+=64)c.push(t.slice(n,n+64));return c.join(`
`)},tr=(r,a)=>a?`${a}${r.replaceAll(`
`,"")}`:`0x${r.replaceAll(`
`,"")}`,Rt=r=>Array.isArray(r),En=r=>r!==null&&typeof r=="object",Pt=(r,a)=>[r,`0x${r}`].some(c=>c.toLocaleLowerCase()===a.toLocaleLowerCase());var Ho=(r=>(r[r.FORWARD=0]="FORWARD",r[r.REVERSE=1]="REVERSE",r))(Ho||{});const ys=(r,a,c)=>{if(r.size>a){let t=Array.from(r);return c===1?t=t.slice(-a):t=t.slice(0,a),new Map(t)}return r},Es=(r=[],a=vr)=>{let c=null;const t=(n,e)=>{n.forEach(s=>{const o=s==null?void 0:s.children;s.id===e&&(c=s),t(o,e)})};return t(r,a),c},nr=(r="")=>{const a=r.search(/[a-zA-Z]/);return r.substring(a)},xn=()=>navigator.userAgent.indexOf("Macintosh")!==-1||navigator.userAgent.indexOf("Mac OS")!==-1;var Zt=(r=>(r[r.EXTERNAL_CALL=0]="EXTERNAL_CALL",r[r.EVENT=1]="EVENT",r[r.INTERNAL_CALL=2]="INTERNAL_CALL",r))(Zt||{}),_t=(r=>(r.MAINNET="onchain",r.SIMULATION="simulation",r.PRERUN="prerun",r.FORK="fork",r.TESTNET="testnet",r.MOPSUS="mopsus",r))(_t||{}),Jo=(r=>(r[r.NORMAL=1]="NORMAL",r[r.ARRAY=2]="ARRAY",r[r.STRUCT=3]="STRUCT",r[r.MAPPING=4]="MAPPING",r))(Jo||{});const xs=r=>{const{dataMap:a,mainTrace:c,parentIdMap:t,tidyTrace:n}=r;return{...r,mainTrace:rr(c,a,t),tidyTrace:rr(n,a,t)}},rr=(r=[],a={},c={})=>{const t=(n,e,s)=>{n.forEach(o=>{var p,m,x;const u=e[o.id],d=s==null?void 0:s[o.id];if(o.id!==-1){let v={};switch(d&&(v=(e==null?void 0:e[d])??{}),u==null?void 0:u.nodeType){case Zt.EXTERNAL_CALL:{const y=(p=v==null?void 0:v.invocation)==null?void 0:p.address;Object.assign(o,u.invocation,{rootContract:y,topics:[],isInternalCall:!1,invocationType:Nt.FUNCTION});break}case Zt.INTERNAL_CALL:{const{msgSender:y,contract:O,functionName:U,callParams:$,returnParams:R,...P}=u.instruction;Object.assign(o,{...P,address:O,fromAddress:y,selector:"",methodDecoded:!0,decodedMethod:{name:U,callParams:$,returnParams:R},output:"0x",isInternalCall:!0,invocationType:Nt.JUMP});break}case Zt.EVENT:{const{contract:y,topics:O=[],logDecoded:U,decodedLog:$,logData:R,...P}=u.event,{name:i,params:M=[]}=$??{},N=(m=v==null?void 0:v.invocation)==null?void 0:m.address;Object.assign(o,{...P,address:y,fromAddress:"",rootContract:N,topics:O,selector:(O==null?void 0:O[0])??"",methodDecoded:U,decodedMethod:{name:i,callParams:M},callData:R,isInternalCall:!1,invocationType:Nt.EVENT});break}}}else Object.assign(o,lr({...mr,address:u.invocation.address},["id","order","depth","children"]));(x=o==null?void 0:o.children)!=null&&x.length&&t(o.children,e,s)})};return t(r,a,c),r},Vo=(r,a,c)=>(r.forEach(t=>{var e;const n=a==null?void 0:a[t.id];n&&(t=Object.assign(t,n)),t.key=t.tag,(e=t.children)!=null&&e.length&&Vo(t.children,a)}),r),_s=({chainId:r,forkId:a,blockNumber:c,txnHash:t,event:n,blocked:e})=>{let s={chainID:r,txnHash:t,blocked:!!e},o=_t.MAINNET;switch(n){case kt.SIMULATE:o=_t.SIMULATION;break;case kt.PRERUN:o=_t.PRERUN;break;case kt.MOPSUS:o=_t.MOPSUS,s={...s,blockNumber:Number(c)};break;case kt.FORK:o=_t.FORK,s={...s,forkID:a};break}return{type:o,params:s}},Go=["returns","return","pragma","solidity","public","private","constant","immutable","constructor","external","internal"],ar=async({theme:r,monaco:a,callback:c})=>{const t=a.languages.getLanguages(),{language:n}=await t.find(s=>s.id==="sol").loader();n.keywords=ra(n.keywords,s=>!Go.includes(s)),n.tokenizer.root.unshift([/\bmsg\.(sender|data|sig|value)\b/,"solidity"],[/\bblock\.(basefee|chainid|coinbase|difficulty|gaslimit|number|timestamp)\b/,"solidity"],[/\btx\.(gasprice|origin)\b/,"solidity"],[/\babi\.(decode|encodePacked|encodeWithSelector|encodeWithSignature|encodeCall|encode)\b/,"solidity"],[/\bblockhash\b/,"solidity"],[/\b(return|returns|solidity|pragma|require)\b/,"return"],[/\b(public|private|constant|immutable|constructor|external|internal)\b/,"public"],[/\b(function)\b/,"function"],[/\b(>=|<=|==|===|=|!=)\b/,"custom.symbol"],[/\B(>=|<=|==|===|=|!=)\B/,"custom.symbol"],[/\B(>=|<=|==|===|=|!=)\b/,"custom.symbol"],[/\b(>=|<=|==|===|=|!=)\B/,"custom.symbol"]);const e=r==="light"?fa:da;a.editor.defineTheme("customTheme",e),a.editor.setTheme("customTheme"),c==null||c()},rn=r=>{let a=Wr(r);try{if(typeof a=="object")if(Array.isArray(a))for(let c=0;c<a.length;c++)a[c]=rn(a[c]);else for(const c in a)a.hasOwnProperty(c)&&(a[c]=rn(a[c]));else typeof a=="string"&&(a=a.replace(/,/g,""));return a}catch{return a}},Yo="_sourceCodeContainer_1xlpo_1",Xo="_actionBar_1xlpo_22",Qo="_header_1xlpo_29",Zo="_separateIcon_1xlpo_34",ei="_closeDebugBtn_1xlpo_37",ti="_exitIcon_1xlpo_42",ni="_editorTabs_1xlpo_51",ri="_darkEditorTabs_1xlpo_57",ai="_editorTab_1xlpo_51",oi="_title_1xlpo_70",ii="_closeIcon_1xlpo_79",si="_editorTabActived_1xlpo_87",ci="_dark_1xlpo_57",li="_noSourceCodeWrap_1xlpo_101",ui="_infoContainer_1xlpo_111",di="_desc_1xlpo_119",fi="_linkWrap_1xlpo_122",pi="_linkToImplementation_1xlpo_126",hi="_linkIcon_1xlpo_130",bi="_noSourceCodeWrapDark_1xlpo_133",gi="_debugViewStretchBar_1xlpo_136",Oe={sourceCodeContainer:Yo,actionBar:Xo,header:Qo,separateIcon:Zo,closeDebugBtn:ei,exitIcon:ti,editorTabs:ni,darkEditorTabs:ri,editorTab:ai,title:oi,closeIcon:ii,editorTabActived:si,dark:ci,noSourceCodeWrap:li,infoContainer:ui,desc:di,linkWrap:fi,linkToImplementation:pi,linkIcon:hi,noSourceCodeWrapDark:bi,debugViewStretchBar:gi},mi=({store:r,style:a,showClose:c=!1,showSeparate:t=!1})=>{var G,Y;const n=Do(),[e,s]=Z.useState([]),{jsonView:o,setControlStatus:u,debugGuideVisible:d,setCompleteTrace:p}=r,[m,x]=Z.useState(0),v=Z.useRef({lineNumber:-1,column:-1}),[y,O]=Z.useState(null),U=ur(),[$,R]=dr(),P=br($),{network:i,txnHash:M}=U,{mode:N="light"}=Z.useContext(an),z=(e==null?void 0:e[m])??{code:"",language:Wn,fileIndex:0,startLine:0,startColumn:0,fileName:""},{endColumn:K,row:E,column:w}=z,D=z.startLine??E,H=z.startColumn??w,_=z.endLine??E,ee=async Q=>{const oe=aa(Q,"id").map(he=>Kr(he)),ie=await Fn.getItem(Bn)??new Map;return ie.set(M,oe),Fn.setItem(Bn,ie),oe},T=({startLine:Q,endLine:oe,startColumn:ie,endColumn:he,className:me})=>{var le;try{let ce=(le=y==null?void 0:y.getModel())==null?void 0:le.getOverviewRulerDecorations();ce=(ce==null?void 0:ce.map(We=>We.id))??[];const Ae=oe===-1?[]:[{range:new n.Range(Q,ie,oe,he),options:{inlineClassName:me,overviewRuler:{color:"yellow",position:Q}}}];y==null||y.deltaDecorations(ce,[]),y==null||y.deltaDecorations([],Ae)}catch(ce){console.log(ce)}},S=()=>{T({endColumn:K,endLine:_,startColumn:H,startLine:D,className:"source_code_line"})},J=Q=>{var le,ce;const{metaKey:oe,ctrlKey:ie,shiftKey:he,altKey:me}=Q;if(D<=((le=v==null?void 0:v.current)==null?void 0:le.lineNumber)&&_>=((ce=v==null?void 0:v.current)==null?void 0:ce.lineNumber)){const Ae=xn()?oe:ie;if(xn()?he||me||ie:he||me||oe){T({endColumn:K,endLine:_,startColumn:H,startLine:D,className:"source_code_line"});return}T({endColumn:K,endLine:_,startColumn:H,startLine:D,className:Ae?"source_code_line_decorate":"source_code_line"})}},re=async Q=>{var me,le;const{event:oe,target:{position:{lineNumber:ie}}}=Q;if((xn()?oe.metaKey:oe.ctrlKey)&&ie<=((me=v==null?void 0:v.current)==null?void 0:me.lineNumber)&&ie>=((le=v==null?void 0:v.current)==null?void 0:le.lineNumber)){if(!o||o!=null&&o.withoutDefSourced)return;let ce=z.isDefine?o.codeFiles:o.defCodeFiles;ce=ce.concat(e),ce=await ee(ce),s(ce),x(0)}},ae=qr(Q=>{const{target:{position:oe}}=Q;v.current=oe},100),X=async()=>{let Q=o.defCodeFiles.concat(e);Q=await ee(Q),s(Q),x(0)};return Z.useEffect(()=>{x(0),s(o==null?void 0:o.codeFiles)},[JSON.stringify(o)]),Z.useEffect(()=>{y&&(y==null||y.revealPositionInCenterIfOutsideViewport({lineNumber:D,column:H}),y==null||y.setPosition({lineNumber:D,column:H}),T({startColumn:H,startLine:D,endColumn:K,endLine:_,className:"source_code_line"}),y==null||y.onMouseDown(re),y==null||y.onMouseMove(ae),y==null||y.onKeyDown(J),y==null||y.onKeyUp(S))},[z,y]),Z.useEffect(()=>{n&&ar({monaco:n,theme:N})},[N]),I.jsxs("div",{className:Oe.sourceCodeContainer,style:a,id:"source-code-panel",children:[I.jsxs("div",{className:Oe.header,children:[I.jsx("div",{className:He(Oe.editorTabs,{[Oe.darkEditorTabs]:N==="dark"}),children:e==null?void 0:e.map((Q,oe)=>I.jsxs("div",{className:He(Oe.editorTab,{[Oe.dark]:N==="dark",[Oe.editorTabActived]:m===oe}),onClick:()=>x(oe),children:[I.jsx("div",{className:Oe.title,children:Q==null?void 0:Q.fileName}),I.jsx(ft,{className:Oe.closeIcon,type:"icon-close",size:14,onClick:async()=>{const ie=e==null?void 0:e.filter(he=>he.id!==Q.id);ee(ie),s(ie)}})]},oe))}),t&&I.jsx(kn,{open:d,placement:"left",overlayStyle:{maxWidth:"max-content"},title:"Open the separate code view",children:I.jsx(kn,{title:"Separate debug view in another tab",showArrow:!1,placement:"left",children:I.jsx(ft,{type:"icon-split",size:18,id:"separate-btn",className:Oe.separateIcon,onClick:()=>{const{event:Q,blockNumber:oe,forkId:ie}=P,he=$r.stringify({network:i,txnHash:M,event:Q,blockNumber:oe,forkId:ie},{skipNull:!0});u(Ur.CODE_IN_SEPARATE_TAB),p(!0),window.open(`/explorer/focus?${he}`)}})})}),c&&I.jsx(An,{type:"primary",size:"small",className:Oe.closeDebugBtn,id:"exit-debug-btn",onClick:()=>{R(lr(P,["debugLine"]))},children:"Exit Debug Mode"})]}),((G=e==null?void 0:e[m])==null?void 0:G.id)===yr?I.jsx("div",{className:He(Oe.noSourceCodeWrap,{[Oe.noSourceCodeWrapDark]:N==="dark"}),children:I.jsxs("div",{className:Oe.infoContainer,children:[I.jsxs("div",{className:Oe.title,children:["No source for contract ",o==null?void 0:o.rootContract]}),I.jsx("div",{className:Oe.linkWrap,children:I.jsxs(An,{size:"small",type:"default",onClick:X,disabled:o==null?void 0:o.withoutDefSourced,className:Oe.linkToImplementation,children:[I.jsx(ft,{type:"icon-arrow-jump-outlined",className:Oe.linkIcon})," ","Go To ",(Y=o.json)==null?void 0:Y.func," Implementation"]})})]})}):I.jsx($o,{options:{fontSize:14,readOnly:!0,minimap:{enabled:!1},wordWrap:"on",contextmenu:!1},className:Oe.test,value:z==null?void 0:z.code,language:Wn,theme:"customTheme",onMount:Q=>{const oe=z.startLine??z.row,ie=z.startColumn??z.column;Q==null||Q.revealPositionInCenterIfOutsideViewport({lineNumber:oe,column:ie}),Q==null||Q.setPosition({lineNumber:z.startLine??z.row,column:ie}),O(Q)},beforeMount:Q=>{ar({monaco:Q,theme:N})}})]})},ks=on(mi),vi="_debugViewWrap_160da_1",yi={debugViewWrap:vi};var Ei={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},xi=function(a,c){return Z.createElement(fr,pr({},a,{ref:c,icon:Ei}))},or=Z.forwardRef(xi),_i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},ki=function(a,c){return Z.createElement(fr,pr({},a,{ref:c,icon:_i}))},Si=Z.forwardRef(ki);class wi{constructor(){this.autoExpandParent=!0,this.expendKeys=[],this.setExpendKeys=a=>{this.expendKeys=a},this.setAutoExpandParent=a=>{this.autoExpandParent=a},Hr(this)}}const Ci=(r,a="",c=Je.NO)=>{const{value:t}=r,n=c===Je.NO?Lt:sn;return I.jsx(I.Fragment,{children:!!t&&t!=="0"&&I.jsx(Ze,{title:new Rn(t).toFixed(),delay:n,children:I.jsx("span",{className:"text-[#9900cc] dark:text-[#da70d6]",children:` value: ${new Rn(t).toFixed()} ${Ot.getUnitBySimpleName(a)}`})})})},Oi=({nodeData:r,txProfileData:a,globalMapList:c,network:t="",addressLabels:n,position:e=Je.NO,onHighLightAddress:s,removeAddressHighLight:o})=>{const{depth:u,output:d,methodDecoded:p,decodedMethod:m,address:x}=r,v=u===-1,y=e===Je.NO?Lt:sn;return I.jsx(I.Fragment,{children:!v&&I.jsxs(Ct,{children:["(",d?p?nn({address:x,arr:m==null?void 0:m.returnParams,globalMapList:c,network:t,addressLabels:n,delay:y,txProfileData:a,onHighLightAddress:s,removeAddressHighLight:o}):I.jsx(Ze,{title:d,delay:y,children:"raw data"}):"",")"]})})},ji=r=>{const{revert:a,errorInfo:c,revertMessage:t}=r;return I.jsx(I.Fragment,{children:a?I.jsx("span",{style:{color:"#bb1141"},children:`(Reverted${t||c?`: ${nr(t)||c}`:""})`}):t||c?I.jsx("span",{style:{color:"#bb1141"},children:`${nr(t)||c})`}):null})},Ai=({store:r,nodeData:a,txProfileData:c,globalMapList:t,query:n,params:e,setSearchParams:s,position:o,isSimplify:u=!1,addressLabels:d})=>{var S,J;const p=o===Je.NO?Lt:sn,{id:m,address:x,selector:v,operation:y,topics:O,isInternalCall:U,methodDecoded:$,callData:R,decodedMethod:P}=a,i=m===((J=(S=r.debugTree)==null?void 0:S[0])==null?void 0:J.id),{forkId:M}=n,{txnHash:N,network:z=""}=e,{invFlowInputValue:K,onHighLightAddress:E,removeAddressHighLight:w}=r,D=Sn.includes(y)&&!$&&!v,H=()=>{const ae=t.filter(G=>G.type==="selector").find(G=>G.value===v);let X=!1;return ae||K&&(P?(X=Pt(K,(_==null?void 0:_.label)??""),X||(X=Pt(K,(P==null?void 0:P.name)??""))):X=Pt(K,v)),ae?I.jsx("span",{style:{color:"#FF7B72"},children:zt({type:"selector",value:v,mapList:t,delay:p,callback:r.setLabel,callData:R,operation:y,topics:O,filterInputValue:r.invFlowInputValue,originLabel:$?P==null?void 0:P.name:v,onHighLightAddress:E,removeAddressHighLight:w})}):I.jsx(Ze,{trigger:["click"],title:[P==null?void 0:P.name,v],type:"selector",onEdit:r.setLabel,callData:R,operation:y,topics:O,delay:p,overlayStyle:y==="EVENT"?{maxWidth:575}:{},originLabel:$?P==null?void 0:P.name:v,children:I.jsx("span",{style:{color:"#FF7B72",background:X?"#FFFF43":""},children:$?(_==null?void 0:_.label)||(P==null?void 0:P.name):v})})},_=t.find(re=>re.value===R),ee=d.find(re=>re.address===x),T=er(v,R,y)||R;return I.jsxs("span",{children:[!u&&I.jsxs(I.Fragment,{children:[" ",x===(c==null?void 0:c.basicInfo.receiver)&&I.jsx("span",{style:{color:"#ff9900"},children:" [Receiver]"}),x===(c==null?void 0:c.basicInfo.sender)&&I.jsx("span",{style:{color:"#ff9900"},children:" [Sender]"})," "]}),zt({type:"account",value:x,mapList:t,network:z,forkId:M,delay:p,callback:r.setLabel,filterInputValue:r.invFlowInputValue,originLabel:(ee==null?void 0:ee.label)||x,onHighLightAddress:E,removeAddressHighLight:w}),!D&&I.jsxs(I.Fragment,{children:[".",H(),!u&&((_==null?void 0:_.decode)||$)&&!U&&I.jsx(Ze,{trigger:["click"],delay:p,title:T==null?void 0:T.replaceAll(/\n/g,""),reference:T,children:I.jsx(ft,{type:!D&&Sn.includes(y)?"icon-arguments":"icon-calldata",size:12,className:"text-primary",ml:2,style:{cursor:"pointer",padding:"0 1px"},onClick:re=>{re.stopPropagation(),!(i&&o===Je.DEBUG)&&(U||s({...n,line:m}),r.parseDataForJsonView({txnHash:N,nodeData:a,position:o,debugAction:hr.CLICK}))}})}),!u&&I.jsxs(I.Fragment,{children:["(",_!=null&&_.decode||$?nn({address:x,addressLabels:d,arr:(_==null?void 0:_.decode)||P.callParams,globalMapList:t,network:z,delay:p,txProfileData:c,callback:r.setLabel,forkId:M,onHighLightAddress:E,removeAddressHighLight:w}):R?I.jsx(Ze,{trigger:["click"],title:er(v,R,y),copyText:R,delay:p,children:"raw data"}):"",")"]})]})]})},Fi=(r,a,c)=>{const{depth:t,operation:n,invocationType:e,fromAddress:s}=r,o=a===Je.NO?la:ua,u=c==null?void 0:c.find(d=>d.value===s);return a===Je.NO?s?I.jsxs(Ze,{title:`msg.sender: ${(u==null?void 0:u.label)||s}`,children:[" ",I.jsxs(Ct,{color:o[e],style:{marginRight:"5px"},children:[`${t} `,I.jsx(or,{}),` ${n}`]})]}):I.jsxs(Ct,{color:o[e],style:{marginRight:"5px"},children:[`${t} `,I.jsx(or,{}),` ${n}`]}):I.jsxs("div",{color:o[e],style:{marginRight:"5px",display:"inline-flex",alignItems:"center",color:o[e]},children:[a===Je.DEBUG?`(${t})`:`[${t}]`,I.jsx(ft,{type:sa[n],size:12})]})},Ri="_treeContainer_os8g2_1",Mi="_scrollDarkBar_os8g2_22",Ni="_focusContainer_os8g2_25",Ii="_tree_os8g2_1",Pi="_eventTreeTitle_os8g2_80",Li="_disabled_os8g2_83",Di="_treeSelected_os8g2_87",zi="_debugTreeSelected_os8g2_91",Ti="_darkTreeSelected_os8g2_95",Bi="_debugDarkTreeSelected_os8g2_98",Wi="_noDataSource_os8g2_101",Xe={treeContainer:Ri,scrollDarkBar:Mi,focusContainer:Ni,tree:Ii,eventTreeTitle:Pi,disabled:Li,treeSelected:Di,debugTreeSelected:zi,darkTreeSelected:Ti,debugDarkTreeSelected:Bi,noDataSource:Wi},qi=({store:r,dataSource:a=[],position:c=Je.DEBUG})=>{var S;const t=Z.useRef(null),n=ur(),{pathname:e}=Jr(),[s,o]=dr(),u=br(s),{network:d="",txnHash:p}=n,{txnHash:m,network:x,event:v,forkId:y,blockNumber:O,debugLine:U}=u,{mode:$="light"}=Z.useContext(an),R=`tree-container-${c}`,{autoExpandParent:P,setAutoExpandParent:i,expendKeys:M,setExpendKeys:N}=Vr(()=>new wi),{txProfileData:z,globalMapList:K,jsonView:E,addressLabels:w,onHighLightAddress:D,removeAddressHighLight:H}=r;Z.useEffect(()=>{e!=="/explorer/focus"&&N([])},[a]),Z.useEffect(()=>{var J;E&&(i(!0),e==="/explorer/focus"&&o(In({network:x,txnHash:m,forkId:y,event:v,blockNumber:O,debugLine:(J=E==null?void 0:E.debugInfo)==null?void 0:J.id,line:E==null?void 0:E.id},Pn)),setTimeout(()=>{var X;const re=document.querySelector(`#${R}`),ae=document.querySelector(`.ant-tree-treenode[data-position=position-${c}-${(X=E.debugInfo)==null?void 0:X.id}]`);Qr(re,ae,{top:document.body.clientHeight*.618})},60))},[(S=E==null?void 0:E.debugInfo)==null?void 0:S.id]);const _=(J=mr)=>{var ie,he,me,le;const{id:re,invocationType:ae,depth:X}=J,G=`${re}-${c}`,Y=ae===Nt.EVENT,Q=X===-1,oe=re===((he=(ie=r.debugTree)==null?void 0:ie[0])==null?void 0:he.id);return Q?I.jsxs("div",{id:G,children:[I.jsx(Ct,{color:"cyan",style:{marginRight:"20px"},children:I.jsx("span",{style:{color:"#ff9900"},children:"[Sender]"})}),I.jsx(Ct,{children:zt({type:"account",value:(z==null?void 0:z.basicInfo.sender)??"",mapList:K,network:d,delay:sn,callback:r.setLabel,forkId:y,filterInputValue:r.invFlowInputValue,onHighLightAddress:D,removeAddressHighLight:H})})]}):I.jsxs("div",{id:G,className:He({[Xe.eventTreeTitle]:Y,[Xe.debugTreeSelected]:re===((me=E==null?void 0:E.debugInfo)==null?void 0:me.id),[Xe.debugDarkTreeSelected]:re===((le=E==null?void 0:E.debugInfo)==null?void 0:le.id)&&$==="dark",[Xe.disabled]:oe},re===(E==null?void 0:E.id)&&"selected"),onClick:()=>{var ce;oe||(o(e==="/explorer/focus"?In({network:x,txnHash:m,forkId:y,event:v,blockNumber:O,debugLine:(ce=E==null?void 0:E.debugInfo)==null?void 0:ce.id,line:E==null?void 0:E.id},Pn):{...u,line:re.toString(),debugLine:re.toString()}),r.parseDataForJsonView({txnHash:p,nodeData:J,position:c,debugAction:hr.CLICK}))},children:[Fi(J,c,r.globalMapList),I.jsxs(Ct,{children:[ji(J),Ci(J,d,c),Ai({store:r,nodeData:J,txProfileData:z,globalMapList:K,query:u,params:n,setSearchParams:o,position:c,addressLabels:w})]}),!Y&&I.jsxs(I.Fragment,{children:[I.jsx(Si,{style:{color:"#0076FF",marginRight:"10px"}}),Oi({nodeData:J,txProfileData:z,globalMapList:K,network:d,position:c,addressLabels:w,onHighLightAddress:D,removeAddressHighLight:H})]})]})},ee=Z.useMemo(()=>{function J(re){return re.map(ae=>ae.children?I.jsx(pn.TreeNode,{title:_(ae),"data-order":ae.order,"data-position":`position-${c}-${ae.id}`,children:J(ae.children)},ae.id):I.jsx(pn.TreeNode,{title:_(ae),"data-order":ae.order,"data-position":`position-${c}-${ae.id}`},ae.id))}return J(a)},[a,JSON.stringify(E),JSON.stringify(K)]),T={expandedKeys:M.concat(Number(U??vr)),autoExpandParent:P,motion:!1,selectable:!1,virtual:!1,onExpand:J=>{i(!1),N(J)}};return I.jsx("div",{className:He(Xe.treeContainer,{[Xe.scrollDarkBar]:$==="dark",[Xe.focusContainer]:c!==Je.NO}),id:R,children:a.length>0?I.jsx(pn,{ref:t,...T,showLine:{showLeafIcon:!1},className:Xe.tree,rootClassName:Xe.tree,children:ee}):I.jsx("div",{className:Xe.noDataSource,children:"No internalCall for this call"})})},$i=on(qi),Ui=({store:r})=>I.jsx("div",{className:yi.debugViewWrap,id:"debug-trace",children:I.jsx($i,{store:r,dataSource:r.debugTree})}),Ss=on(Ui);var Cr={exports:{}};(function(r,a){(function(c,t){r.exports=t(Z)})(Gr,function(c){return function(t){var n={};function e(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(s,o,u){e.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:u})},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,o){if(1&o&&(s=e(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(e.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var d in s)e.d(u,d,(function(p){return s[p]}).bind(null,d));return u},e.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(o,"a",o),o},e.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},e.p="",e(e.s=48)}([function(t,n){t.exports=c},function(t,n){var e=t.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(t,n,e){var s=e(26)("wks"),o=e(17),u=e(3).Symbol,d=typeof u=="function";(t.exports=function(p){return s[p]||(s[p]=d&&u[p]||(d?u:o)("Symbol."+p))}).store=s},function(t,n){var e=t.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(t,n,e){t.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(t,n){var e={}.hasOwnProperty;t.exports=function(s,o){return e.call(s,o)}},function(t,n,e){var s=e(7),o=e(16);t.exports=e(4)?function(u,d,p){return s.f(u,d,o(1,p))}:function(u,d,p){return u[d]=p,u}},function(t,n,e){var s=e(10),o=e(35),u=e(23),d=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(p,m,x){if(s(p),m=u(m,!0),s(x),o)try{return d(p,m,x)}catch{}if("get"in x||"set"in x)throw TypeError("Accessors not supported!");return"value"in x&&(p[m]=x.value),p}},function(t,n){t.exports=function(e){try{return!!e()}catch{return!0}}},function(t,n,e){var s=e(40),o=e(22);t.exports=function(u){return s(o(u))}},function(t,n,e){var s=e(11);t.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},function(t,n){t.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(t,n){t.exports={}},function(t,n,e){var s=e(39),o=e(27);t.exports=Object.keys||function(u){return s(u,o)}},function(t,n){t.exports=!0},function(t,n,e){var s=e(3),o=e(1),u=e(53),d=e(6),p=e(5),m=function(x,v,y){var O,U,$,R=x&m.F,P=x&m.G,i=x&m.S,M=x&m.P,N=x&m.B,z=x&m.W,K=P?o:o[v]||(o[v]={}),E=K.prototype,w=P?s:i?s[v]:(s[v]||{}).prototype;for(O in P&&(y=v),y)(U=!R&&w&&w[O]!==void 0)&&p(K,O)||($=U?w[O]:y[O],K[O]=P&&typeof w[O]!="function"?y[O]:N&&U?u($,s):z&&w[O]==$?function(D){var H=function(_,ee,T){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(_);case 2:return new D(_,ee)}return new D(_,ee,T)}return D.apply(this,arguments)};return H.prototype=D.prototype,H}($):M&&typeof $=="function"?u(Function.call,$):$,M&&((K.virtual||(K.virtual={}))[O]=$,x&m.R&&E&&!E[O]&&d(E,O,$)))};m.F=1,m.G=2,m.S=4,m.P=8,m.B=16,m.W=32,m.U=64,m.R=128,t.exports=m},function(t,n){t.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(t,n){var e=0,s=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++e+s).toString(36))}},function(t,n,e){var s=e(22);t.exports=function(o){return Object(s(o))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var s=e(52)(!0);e(34)(String,"String",function(o){this._t=String(o),this._i=0},function(){var o,u=this._t,d=this._i;return d>=u.length?{value:void 0,done:!0}:(o=s(u,d),this._i+=o.length,{value:o,done:!1})})},function(t,n){var e=Math.ceil,s=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?s:e)(o)}},function(t,n){t.exports=function(e){if(e==null)throw TypeError("Can't call method on  "+e);return e}},function(t,n,e){var s=e(11);t.exports=function(o,u){if(!s(o))return o;var d,p;if(u&&typeof(d=o.toString)=="function"&&!s(p=d.call(o))||typeof(d=o.valueOf)=="function"&&!s(p=d.call(o))||!u&&typeof(d=o.toString)=="function"&&!s(p=d.call(o)))return p;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e={}.toString;t.exports=function(s){return e.call(s).slice(8,-1)}},function(t,n,e){var s=e(26)("keys"),o=e(17);t.exports=function(u){return s[u]||(s[u]=o(u))}},function(t,n,e){var s=e(1),o=e(3),u=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(d,p){return u[d]||(u[d]=p!==void 0?p:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var s=e(7).f,o=e(5),u=e(2)("toStringTag");t.exports=function(d,p,m){d&&!o(d=m?d:d.prototype,u)&&s(d,u,{configurable:!0,value:p})}},function(t,n,e){e(62);for(var s=e(3),o=e(6),u=e(12),d=e(2)("toStringTag"),p="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(","),m=0;m<p.length;m++){var x=p[m],v=s[x],y=v&&v.prototype;y&&!y[d]&&o(y,d,x),u[x]=u.Array}},function(t,n,e){n.f=e(2)},function(t,n,e){var s=e(3),o=e(1),u=e(14),d=e(30),p=e(7).f;t.exports=function(m){var x=o.Symbol||(o.Symbol=u?{}:s.Symbol||{});m.charAt(0)=="_"||m in x||p(x,m,{value:d.f(m)})}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){t.exports=function(e,s,o){return Math.min(Math.max(e,s),o)}},function(t,n,e){var s=e(14),o=e(15),u=e(37),d=e(6),p=e(12),m=e(55),x=e(28),v=e(61),y=e(2)("iterator"),O=!([].keys&&"next"in[].keys()),U=function(){return this};t.exports=function($,R,P,i,M,N,z){m(P,R,i);var K,E,w,D=function(X){if(!O&&X in T)return T[X];switch(X){case"keys":case"values":return function(){return new P(this,X)}}return function(){return new P(this,X)}},H=R+" Iterator",_=M=="values",ee=!1,T=$.prototype,S=T[y]||T["@@iterator"]||M&&T[M],J=S||D(M),re=M?_?D("entries"):J:void 0,ae=R=="Array"&&T.entries||S;if(ae&&(w=v(ae.call(new $)))!==Object.prototype&&w.next&&(x(w,H,!0),s||typeof w[y]=="function"||d(w,y,U)),_&&S&&S.name!=="values"&&(ee=!0,J=function(){return S.call(this)}),s&&!z||!O&&!ee&&T[y]||d(T,y,J),p[R]=J,p[H]=U,M)if(K={values:_?J:D("values"),keys:N?J:D("keys"),entries:re},z)for(E in K)E in T||u(T,E,K[E]);else o(o.P+o.F*(O||ee),R,K);return K}},function(t,n,e){t.exports=!e(4)&&!e(8)(function(){return Object.defineProperty(e(36)("div"),"a",{get:function(){return 7}}).a!=7})},function(t,n,e){var s=e(11),o=e(3).document,u=s(o)&&s(o.createElement);t.exports=function(d){return u?o.createElement(d):{}}},function(t,n,e){t.exports=e(6)},function(t,n,e){var s=e(10),o=e(56),u=e(27),d=e(25)("IE_PROTO"),p=function(){},m=function(){var x,v=e(36)("iframe"),y=u.length;for(v.style.display="none",e(60).appendChild(v),v.src="javascript:",(x=v.contentWindow.document).open(),x.write("<script>document.F=Object<\/script>"),x.close(),m=x.F;y--;)delete m.prototype[u[y]];return m()};t.exports=Object.create||function(x,v){var y;return x!==null?(p.prototype=s(x),y=new p,p.prototype=null,y[d]=x):y=m(),v===void 0?y:o(y,v)}},function(t,n,e){var s=e(5),o=e(9),u=e(57)(!1),d=e(25)("IE_PROTO");t.exports=function(p,m){var x,v=o(p),y=0,O=[];for(x in v)x!=d&&s(v,x)&&O.push(x);for(;m.length>y;)s(v,x=m[y++])&&(~u(O,x)||O.push(x));return O}},function(t,n,e){var s=e(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return s(o)=="String"?o.split(""):Object(o)}},function(t,n,e){var s=e(39),o=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(u){return s(u,o)}},function(t,n,e){var s=e(24),o=e(2)("toStringTag"),u=s(function(){return arguments}())=="Arguments";t.exports=function(d){var p,m,x;return d===void 0?"Undefined":d===null?"Null":typeof(m=function(v,y){try{return v[y]}catch{}}(p=Object(d),o))=="string"?m:u?s(p):(x=s(p))=="Object"&&typeof p.callee=="function"?"Arguments":x}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}t.exports=e},function(t,n){var e=/-?\d+(\.\d+)?%?/g;t.exports=function(s){return s.match(e)}},function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=U(e(49)),o=U(e(76)),u=U(e(81)),d=U(e(89)),p=U(e(93)),m=function(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(w[D]=E[D]);return w.default=E,w}(e(94)),x=U(e(132)),v=U(e(133)),y=U(e(138)),O=e(139);function U(E){return E&&E.__esModule?E:{default:E}}var $=m.default,R=(0,d.default)($),P=(0,y.default)(v.default,O.rgb2yuv,function(E){var w,D=(0,u.default)(E,3),H=D[0],_=D[1],ee=D[2];return[(w=H,w<.25?1:w<.5?.9-w:1.1-w),_,ee]},O.yuv2rgb,x.default),i=function(E){return function(w){return{className:[w.className,E.className].filter(Boolean).join(" "),style:(0,o.default)({},w.style||{},E.style||{})}}},M=function(E,w){var D=(0,d.default)(w);for(var H in E)D.indexOf(H)===-1&&D.push(H);return D.reduce(function(_,ee){return _[ee]=function(T,S){if(T===void 0)return S;if(S===void 0)return T;var J=T===void 0?"undefined":(0,s.default)(T),re=S===void 0?"undefined":(0,s.default)(S);switch(J){case"string":switch(re){case"string":return[S,T].filter(Boolean).join(" ");case"object":return i({className:T,style:S});case"function":return function(ae){for(var X=arguments.length,G=Array(X>1?X-1:0),Y=1;Y<X;Y++)G[Y-1]=arguments[Y];return i({className:T})(S.apply(void 0,[ae].concat(G)))}}case"object":switch(re){case"string":return i({className:S,style:T});case"object":return(0,o.default)({},S,T);case"function":return function(ae){for(var X=arguments.length,G=Array(X>1?X-1:0),Y=1;Y<X;Y++)G[Y-1]=arguments[Y];return i({style:T})(S.apply(void 0,[ae].concat(G)))}}case"function":switch(re){case"string":return function(ae){for(var X=arguments.length,G=Array(X>1?X-1:0),Y=1;Y<X;Y++)G[Y-1]=arguments[Y];return T.apply(void 0,[i(ae)({className:S})].concat(G))};case"object":return function(ae){for(var X=arguments.length,G=Array(X>1?X-1:0),Y=1;Y<X;Y++)G[Y-1]=arguments[Y];return T.apply(void 0,[i(ae)({style:S})].concat(G))};case"function":return function(ae){for(var X=arguments.length,G=Array(X>1?X-1:0),Y=1;Y<X;Y++)G[Y-1]=arguments[Y];return T.apply(void 0,[S.apply(void 0,[ae].concat(G))].concat(G))}}}}(E[ee],w[ee]),_},{})},N=function(E,w){for(var D=arguments.length,H=Array(D>2?D-2:0),_=2;_<D;_++)H[_-2]=arguments[_];if(w===null)return E;Array.isArray(w)||(w=[w]);var ee=w.map(function(S){return E[S]}).filter(Boolean),T=ee.reduce(function(S,J){return typeof J=="string"?S.className=[S.className,J].filter(Boolean).join(" "):(J===void 0?"undefined":(0,s.default)(J))==="object"?S.style=(0,o.default)({},S.style,J):typeof J=="function"&&(S=(0,o.default)({},S,J.apply(void 0,[S].concat(H)))),S},{className:"",style:{}});return T.className||delete T.className,(0,d.default)(T.style).length===0&&delete T.style,T},z=n.invertTheme=function(E){return(0,d.default)(E).reduce(function(w,D){return w[D]=/^base/.test(D)?P(E[D]):D==="scheme"?E[D]+":inverted":E[D],w},{})},K=(n.createStyling=(0,p.default)(function(E){for(var w=arguments.length,D=Array(w>3?w-3:0),H=3;H<w;H++)D[H-3]=arguments[H];var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=_.defaultBase16,S=T===void 0?$:T,J=_.base16Themes,re=J===void 0?null:J,ae=K(ee,re);ae&&(ee=(0,o.default)({},ae,ee));var X=R.reduce(function(oe,ie){return oe[ie]=ee[ie]||S[ie],oe},{}),G=(0,d.default)(ee).reduce(function(oe,ie){return R.indexOf(ie)===-1&&(oe[ie]=ee[ie]),oe},{}),Y=E(X),Q=M(G,Y);return(0,p.default)(N,2).apply(void 0,[Q].concat(D))},3),n.getBase16Theme=function(E,w){if(E&&E.extend&&(E=E.extend),typeof E=="string"){var D=E.split(":"),H=(0,u.default)(D,2),_=H[0],ee=H[1];E=(w||{})[_]||m[_],ee==="inverted"&&(E=z(E))}return E&&E.hasOwnProperty("base00")?E:void 0})},function(t,n,e){var s,o=typeof Reflect=="object"?Reflect:null,u=o&&typeof o.apply=="function"?o.apply:function(i,M,N){return Function.prototype.apply.call(i,M,N)};s=o&&typeof o.ownKeys=="function"?o.ownKeys:Object.getOwnPropertySymbols?function(i){return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i))}:function(i){return Object.getOwnPropertyNames(i)};var d=Number.isNaN||function(i){return i!=i};function p(){p.init.call(this)}t.exports=p,t.exports.once=function(i,M){return new Promise(function(N,z){function K(){E!==void 0&&i.removeListener("error",E),N([].slice.call(arguments))}var E;M!=="error"&&(E=function(w){i.removeListener(M,K),z(w)},i.once("error",E)),i.once(M,K)})},p.EventEmitter=p,p.prototype._events=void 0,p.prototype._eventsCount=0,p.prototype._maxListeners=void 0;var m=10;function x(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}function v(i){return i._maxListeners===void 0?p.defaultMaxListeners:i._maxListeners}function y(i,M,N,z){var K,E,w,D;if(x(N),(E=i._events)===void 0?(E=i._events=Object.create(null),i._eventsCount=0):(E.newListener!==void 0&&(i.emit("newListener",M,N.listener?N.listener:N),E=i._events),w=E[M]),w===void 0)w=E[M]=N,++i._eventsCount;else if(typeof w=="function"?w=E[M]=z?[N,w]:[w,N]:z?w.unshift(N):w.push(N),(K=v(i))>0&&w.length>K&&!w.warned){w.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=i,H.type=M,H.count=w.length,D=H,console&&console.warn&&console.warn(D)}return i}function O(){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 U(i,M,N){var z={fired:!1,wrapFn:void 0,target:i,type:M,listener:N},K=O.bind(z);return K.listener=N,z.wrapFn=K,K}function $(i,M,N){var z=i._events;if(z===void 0)return[];var K=z[M];return K===void 0?[]:typeof K=="function"?N?[K.listener||K]:[K]:N?function(E){for(var w=new Array(E.length),D=0;D<w.length;++D)w[D]=E[D].listener||E[D];return w}(K):P(K,K.length)}function R(i){var M=this._events;if(M!==void 0){var N=M[i];if(typeof N=="function")return 1;if(N!==void 0)return N.length}return 0}function P(i,M){for(var N=new Array(M),z=0;z<M;++z)N[z]=i[z];return N}Object.defineProperty(p,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(i){if(typeof i!="number"||i<0||d(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");m=i}}),p.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},p.prototype.setMaxListeners=function(i){if(typeof i!="number"||i<0||d(i))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+i+".");return this._maxListeners=i,this},p.prototype.getMaxListeners=function(){return v(this)},p.prototype.emit=function(i){for(var M=[],N=1;N<arguments.length;N++)M.push(arguments[N]);var z=i==="error",K=this._events;if(K!==void 0)z=z&&K.error===void 0;else if(!z)return!1;if(z){var E;if(M.length>0&&(E=M[0]),E instanceof Error)throw E;var w=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw w.context=E,w}var D=K[i];if(D===void 0)return!1;if(typeof D=="function")u(D,this,M);else{var H=D.length,_=P(D,H);for(N=0;N<H;++N)u(_[N],this,M)}return!0},p.prototype.addListener=function(i,M){return y(this,i,M,!1)},p.prototype.on=p.prototype.addListener,p.prototype.prependListener=function(i,M){return y(this,i,M,!0)},p.prototype.once=function(i,M){return x(M),this.on(i,U(this,i,M)),this},p.prototype.prependOnceListener=function(i,M){return x(M),this.prependListener(i,U(this,i,M)),this},p.prototype.removeListener=function(i,M){var N,z,K,E,w;if(x(M),(z=this._events)===void 0)return this;if((N=z[i])===void 0)return this;if(N===M||N.listener===M)--this._eventsCount==0?this._events=Object.create(null):(delete z[i],z.removeListener&&this.emit("removeListener",i,N.listener||M));else if(typeof N!="function"){for(K=-1,E=N.length-1;E>=0;E--)if(N[E]===M||N[E].listener===M){w=N[E].listener,K=E;break}if(K<0)return this;K===0?N.shift():function(D,H){for(;H+1<D.length;H++)D[H]=D[H+1];D.pop()}(N,K),N.length===1&&(z[i]=N[0]),z.removeListener!==void 0&&this.emit("removeListener",i,w||M)}return this},p.prototype.off=p.prototype.removeListener,p.prototype.removeAllListeners=function(i){var M,N,z;if((N=this._events)===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[i]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete N[i]),this;if(arguments.length===0){var K,E=Object.keys(N);for(z=0;z<E.length;++z)(K=E[z])!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(M=N[i])=="function")this.removeListener(i,M);else if(M!==void 0)for(z=M.length-1;z>=0;z--)this.removeListener(i,M[z]);return this},p.prototype.listeners=function(i){return $(this,i,!0)},p.prototype.rawListeners=function(i){return $(this,i,!1)},p.listenerCount=function(i,M){return typeof i.listenerCount=="function"?i.listenerCount(M):R.call(i,M)},p.prototype.listenerCount=R,p.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(t,n,e){t.exports.Dispatcher=e(140)},function(t,n,e){t.exports=e(142)},function(t,n,e){n.__esModule=!0;var s=d(e(50)),o=d(e(65)),u=typeof o.default=="function"&&typeof s.default=="symbol"?function(p){return typeof p}:function(p){return p&&typeof o.default=="function"&&p.constructor===o.default&&p!==o.default.prototype?"symbol":typeof p};function d(p){return p&&p.__esModule?p:{default:p}}n.default=typeof o.default=="function"&&u(s.default)==="symbol"?function(p){return p===void 0?"undefined":u(p)}:function(p){return p&&typeof o.default=="function"&&p.constructor===o.default&&p!==o.default.prototype?"symbol":p===void 0?"undefined":u(p)}},function(t,n,e){t.exports={default:e(51),__esModule:!0}},function(t,n,e){e(20),e(29),t.exports=e(30).f("iterator")},function(t,n,e){var s=e(21),o=e(22);t.exports=function(u){return function(d,p){var m,x,v=String(o(d)),y=s(p),O=v.length;return y<0||y>=O?u?"":void 0:(m=v.charCodeAt(y))<55296||m>56319||y+1===O||(x=v.charCodeAt(y+1))<56320||x>57343?u?v.charAt(y):m:u?v.slice(y,y+2):x-56320+(m-55296<<10)+65536}}},function(t,n,e){var s=e(54);t.exports=function(o,u,d){if(s(o),u===void 0)return o;switch(d){case 1:return function(p){return o.call(u,p)};case 2:return function(p,m){return o.call(u,p,m)};case 3:return function(p,m,x){return o.call(u,p,m,x)}}return function(){return o.apply(u,arguments)}}},function(t,n){t.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(t,n,e){var s=e(38),o=e(16),u=e(28),d={};e(6)(d,e(2)("iterator"),function(){return this}),t.exports=function(p,m,x){p.prototype=s(d,{next:o(1,x)}),u(p,m+" Iterator")}},function(t,n,e){var s=e(7),o=e(10),u=e(13);t.exports=e(4)?Object.defineProperties:function(d,p){o(d);for(var m,x=u(p),v=x.length,y=0;v>y;)s.f(d,m=x[y++],p[m]);return d}},function(t,n,e){var s=e(9),o=e(58),u=e(59);t.exports=function(d){return function(p,m,x){var v,y=s(p),O=o(y.length),U=u(x,O);if(d&&m!=m){for(;O>U;)if((v=y[U++])!=v)return!0}else for(;O>U;U++)if((d||U in y)&&y[U]===m)return d||U||0;return!d&&-1}}},function(t,n,e){var s=e(21),o=Math.min;t.exports=function(u){return u>0?o(s(u),9007199254740991):0}},function(t,n,e){var s=e(21),o=Math.max,u=Math.min;t.exports=function(d,p){return(d=s(d))<0?o(d+p,0):u(d,p)}},function(t,n,e){var s=e(3).document;t.exports=s&&s.documentElement},function(t,n,e){var s=e(5),o=e(18),u=e(25)("IE_PROTO"),d=Object.prototype;t.exports=Object.getPrototypeOf||function(p){return p=o(p),s(p,u)?p[u]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?d:null}},function(t,n,e){var s=e(63),o=e(64),u=e(12),d=e(9);t.exports=e(34)(Array,"Array",function(p,m){this._t=d(p),this._i=0,this._k=m},function(){var p=this._t,m=this._k,x=this._i++;return!p||x>=p.length?(this._t=void 0,o(1)):o(0,m=="keys"?x:m=="values"?p[x]:[x,p[x]])},"values"),u.Arguments=u.Array,s("keys"),s("values"),s("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(e,s){return{value:s,done:!!e}}},function(t,n,e){t.exports={default:e(66),__esModule:!0}},function(t,n,e){e(67),e(73),e(74),e(75),t.exports=e(1).Symbol},function(t,n,e){var s=e(3),o=e(5),u=e(4),d=e(15),p=e(37),m=e(68).KEY,x=e(8),v=e(26),y=e(28),O=e(17),U=e(2),$=e(30),R=e(31),P=e(69),i=e(70),M=e(10),N=e(11),z=e(18),K=e(9),E=e(23),w=e(16),D=e(38),H=e(71),_=e(72),ee=e(32),T=e(7),S=e(13),J=_.f,re=T.f,ae=H.f,X=s.Symbol,G=s.JSON,Y=G&&G.stringify,Q=U("_hidden"),oe=U("toPrimitive"),ie={}.propertyIsEnumerable,he=v("symbol-registry"),me=v("symbols"),le=v("op-symbols"),ce=Object.prototype,Ae=typeof X=="function"&&!!ee.f,We=s.QObject,et=!We||!We.prototype||!We.prototype.findChild,ot=u&&x(function(){return D(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a!=7})?function(A,W,V){var te=J(ce,W);te&&delete ce[W],re(A,W,V),te&&A!==ce&&re(ce,W,te)}:re,it=function(A){var W=me[A]=D(X.prototype);return W._k=A,W},st=Ae&&typeof X.iterator=="symbol"?function(A){return typeof A=="symbol"}:function(A){return A instanceof X},tt=function(A,W,V){return A===ce&&tt(le,W,V),M(A),W=E(W,!0),M(V),o(me,W)?(V.enumerable?(o(A,Q)&&A[Q][W]&&(A[Q][W]=!1),V=D(V,{enumerable:w(0,!1)})):(o(A,Q)||re(A,Q,w(1,{})),A[Q][W]=!0),ot(A,W,V)):re(A,W,V)},pt=function(A,W){M(A);for(var V,te=P(W=K(W)),fe=0,ue=te.length;ue>fe;)tt(A,V=te[fe++],W[V]);return A},ht=function(A){var W=ie.call(this,A=E(A,!0));return!(this===ce&&o(me,A)&&!o(le,A))&&(!(W||!o(this,A)||!o(me,A)||o(this,Q)&&this[Q][A])||W)},ct=function(A,W){if(A=K(A),W=E(W,!0),A!==ce||!o(me,W)||o(le,W)){var V=J(A,W);return!V||!o(me,W)||o(A,Q)&&A[Q][W]||(V.enumerable=!0),V}},bt=function(A){for(var W,V=ae(K(A)),te=[],fe=0;V.length>fe;)o(me,W=V[fe++])||W==Q||W==m||te.push(W);return te},nt=function(A){for(var W,V=A===ce,te=ae(V?le:K(A)),fe=[],ue=0;te.length>ue;)!o(me,W=te[ue++])||V&&!o(ce,W)||fe.push(me[W]);return fe};Ae||(p((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var A=O(arguments.length>0?arguments[0]:void 0),W=function(V){this===ce&&W.call(le,V),o(this,Q)&&o(this[Q],A)&&(this[Q][A]=!1),ot(this,A,w(1,V))};return u&&et&&ot(ce,A,{configurable:!0,set:W}),it(A)}).prototype,"toString",function(){return this._k}),_.f=ct,T.f=tt,e(41).f=H.f=bt,e(19).f=ht,ee.f=nt,u&&!e(14)&&p(ce,"propertyIsEnumerable",ht,!0),$.f=function(A){return it(U(A))}),d(d.G+d.W+d.F*!Ae,{Symbol:X});for(var qe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Fe=0;qe.length>Fe;)U(qe[Fe++]);for(var lt=S(U.store),B=0;lt.length>B;)R(lt[B++]);d(d.S+d.F*!Ae,"Symbol",{for:function(A){return o(he,A+="")?he[A]:he[A]=X(A)},keyFor:function(A){if(!st(A))throw TypeError(A+" is not a symbol!");for(var W in he)if(he[W]===A)return W},useSetter:function(){et=!0},useSimple:function(){et=!1}}),d(d.S+d.F*!Ae,"Object",{create:function(A,W){return W===void 0?D(A):pt(D(A),W)},defineProperty:tt,defineProperties:pt,getOwnPropertyDescriptor:ct,getOwnPropertyNames:bt,getOwnPropertySymbols:nt});var j=x(function(){ee.f(1)});d(d.S+d.F*j,"Object",{getOwnPropertySymbols:function(A){return ee.f(z(A))}}),G&&d(d.S+d.F*(!Ae||x(function(){var A=X();return Y([A])!="[null]"||Y({a:A})!="{}"||Y(Object(A))!="{}"})),"JSON",{stringify:function(A){for(var W,V,te=[A],fe=1;arguments.length>fe;)te.push(arguments[fe++]);if(V=W=te[1],(N(W)||A!==void 0)&&!st(A))return i(W)||(W=function(ue,ve){if(typeof V=="function"&&(ve=V.call(this,ue,ve)),!st(ve))return ve}),te[1]=W,Y.apply(G,te)}}),X.prototype[oe]||e(6)(X.prototype,oe,X.prototype.valueOf),y(X,"Symbol"),y(Math,"Math",!0),y(s.JSON,"JSON",!0)},function(t,n,e){var s=e(17)("meta"),o=e(11),u=e(5),d=e(7).f,p=0,m=Object.isExtensible||function(){return!0},x=!e(8)(function(){return m(Object.preventExtensions({}))}),v=function(O){d(O,s,{value:{i:"O"+ ++p,w:{}}})},y=t.exports={KEY:s,NEED:!1,fastKey:function(O,U){if(!o(O))return typeof O=="symbol"?O:(typeof O=="string"?"S":"P")+O;if(!u(O,s)){if(!m(O))return"F";if(!U)return"E";v(O)}return O[s].i},getWeak:function(O,U){if(!u(O,s)){if(!m(O))return!0;if(!U)return!1;v(O)}return O[s].w},onFreeze:function(O){return x&&y.NEED&&m(O)&&!u(O,s)&&v(O),O}}},function(t,n,e){var s=e(13),o=e(32),u=e(19);t.exports=function(d){var p=s(d),m=o.f;if(m)for(var x,v=m(d),y=u.f,O=0;v.length>O;)y.call(d,x=v[O++])&&p.push(x);return p}},function(t,n,e){var s=e(24);t.exports=Array.isArray||function(o){return s(o)=="Array"}},function(t,n,e){var s=e(9),o=e(41).f,u={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(p){return d&&u.call(p)=="[object Window]"?function(m){try{return o(m)}catch{return d.slice()}}(p):o(s(p))}},function(t,n,e){var s=e(19),o=e(16),u=e(9),d=e(23),p=e(5),m=e(35),x=Object.getOwnPropertyDescriptor;n.f=e(4)?x:function(v,y){if(v=u(v),y=d(y,!0),m)try{return x(v,y)}catch{}if(p(v,y))return o(!s.f.call(v,y),v[y])}},function(t,n){},function(t,n,e){e(31)("asyncIterator")},function(t,n,e){e(31)("observable")},function(t,n,e){n.__esModule=!0;var s,o=e(77),u=(s=o)&&s.__esModule?s:{default:s};n.default=u.default||function(d){for(var p=1;p<arguments.length;p++){var m=arguments[p];for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(d[x]=m[x])}return d}},function(t,n,e){t.exports={default:e(78),__esModule:!0}},function(t,n,e){e(79),t.exports=e(1).Object.assign},function(t,n,e){var s=e(15);s(s.S+s.F,"Object",{assign:e(80)})},function(t,n,e){var s=e(4),o=e(13),u=e(32),d=e(19),p=e(18),m=e(40),x=Object.assign;t.exports=!x||e(8)(function(){var v={},y={},O=Symbol(),U="abcdefghijklmnopqrst";return v[O]=7,U.split("").forEach(function($){y[$]=$}),x({},v)[O]!=7||Object.keys(x({},y)).join("")!=U})?function(v,y){for(var O=p(v),U=arguments.length,$=1,R=u.f,P=d.f;U>$;)for(var i,M=m(arguments[$++]),N=R?o(M).concat(R(M)):o(M),z=N.length,K=0;z>K;)i=N[K++],s&&!P.call(M,i)||(O[i]=M[i]);return O}:x},function(t,n,e){n.__esModule=!0;var s=u(e(82)),o=u(e(85));function u(d){return d&&d.__esModule?d:{default:d}}n.default=function(d,p){if(Array.isArray(d))return d;if((0,s.default)(Object(d)))return function(m,x){var v=[],y=!0,O=!1,U=void 0;try{for(var $,R=(0,o.default)(m);!(y=($=R.next()).done)&&(v.push($.value),!x||v.length!==x);y=!0);}catch(P){O=!0,U=P}finally{try{!y&&R.return&&R.return()}finally{if(O)throw U}}return v}(d,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,n,e){t.exports={default:e(83),__esModule:!0}},function(t,n,e){e(29),e(20),t.exports=e(84)},function(t,n,e){var s=e(42),o=e(2)("iterator"),u=e(12);t.exports=e(1).isIterable=function(d){var p=Object(d);return p[o]!==void 0||"@@iterator"in p||u.hasOwnProperty(s(p))}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){e(29),e(20),t.exports=e(87)},function(t,n,e){var s=e(10),o=e(88);t.exports=e(1).getIterator=function(u){var d=o(u);if(typeof d!="function")throw TypeError(u+" is not iterable!");return s(d.call(u))}},function(t,n,e){var s=e(42),o=e(2)("iterator"),u=e(12);t.exports=e(1).getIteratorMethod=function(d){if(d!=null)return d[o]||d["@@iterator"]||u[s(d)]}},function(t,n,e){t.exports={default:e(90),__esModule:!0}},function(t,n,e){e(91),t.exports=e(1).Object.keys},function(t,n,e){var s=e(18),o=e(13);e(92)("keys",function(){return function(u){return o(s(u))}})},function(t,n,e){var s=e(15),o=e(1),u=e(8);t.exports=function(d,p){var m=(o.Object||{})[d]||Object[d],x={};x[d]=p(m),s(s.S+s.F*u(function(){m(1)}),"Object",x)}},function(t,n,e){(function(s){var o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,d=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,p=/\{\n\/\* \[wrapped with (.+)\] \*/,m=/,? & /,x=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,y=/^\[object .+?Constructor\]$/,O=/^0o[0-7]+$/i,U=/^(?:0|[1-9]\d*)$/,$=parseInt,R=typeof s=="object"&&s&&s.Object===Object&&s,P=typeof self=="object"&&self&&self.Object===Object&&self,i=R||P||Function("return this")();function M(B,j,A){switch(A.length){case 0:return B.call(j);case 1:return B.call(j,A[0]);case 2:return B.call(j,A[0],A[1]);case 3:return B.call(j,A[0],A[1],A[2])}return B.apply(j,A)}function N(B,j){return!!(B&&B.length)&&function(A,W,V){if(W!=W)return function(ue,ve,_e,ke){for(var Re=ue.length,xe=_e+-1;++xe<Re;)if(ve(ue[xe],xe,ue))return xe;return-1}(A,z,V);for(var te=V-1,fe=A.length;++te<fe;)if(A[te]===W)return te;return-1}(B,j,0)>-1}function z(B){return B!=B}function K(B,j){for(var A=B.length,W=0;A--;)B[A]===j&&W++;return W}function E(B,j){for(var A=-1,W=B.length,V=0,te=[];++A<W;){var fe=B[A];fe!==j&&fe!=="__lodash_placeholder__"||(B[A]="__lodash_placeholder__",te[V++]=A)}return te}var w,D,H,_=Function.prototype,ee=Object.prototype,T=i["__core-js_shared__"],S=(w=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",J=_.toString,re=ee.hasOwnProperty,ae=ee.toString,X=RegExp("^"+J.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=Object.create,Y=Math.max,Q=Math.min,oe=(D=it(Object,"defineProperty"),(H=it.name)&&H.length>2?D:void 0);function ie(B){return qe(B)?G(B):{}}function he(B){return!(!qe(B)||function(j){return!!S&&S in j}(B))&&(function(j){var A=qe(j)?ae.call(j):"";return A=="[object Function]"||A=="[object GeneratorFunction]"}(B)||function(j){var A=!1;if(j!=null&&typeof j.toString!="function")try{A=!!(j+"")}catch{}return A}(B)?X:y).test(function(j){if(j!=null){try{return J.call(j)}catch{}try{return j+""}catch{}}return""}(B))}function me(B,j,A,W){for(var V=-1,te=B.length,fe=A.length,ue=-1,ve=j.length,_e=Y(te-fe,0),ke=Array(ve+_e),Re=!W;++ue<ve;)ke[ue]=j[ue];for(;++V<fe;)(Re||V<te)&&(ke[A[V]]=B[V]);for(;_e--;)ke[ue++]=B[V++];return ke}function le(B,j,A,W){for(var V=-1,te=B.length,fe=-1,ue=A.length,ve=-1,_e=j.length,ke=Y(te-ue,0),Re=Array(ke+_e),xe=!W;++V<ke;)Re[V]=B[V];for(var Le=V;++ve<_e;)Re[Le+ve]=j[ve];for(;++fe<ue;)(xe||V<te)&&(Re[Le+A[fe]]=B[V++]);return Re}function ce(B){return function(){var j=arguments;switch(j.length){case 0:return new B;case 1:return new B(j[0]);case 2:return new B(j[0],j[1]);case 3:return new B(j[0],j[1],j[2]);case 4:return new B(j[0],j[1],j[2],j[3]);case 5:return new B(j[0],j[1],j[2],j[3],j[4]);case 6:return new B(j[0],j[1],j[2],j[3],j[4],j[5]);case 7:return new B(j[0],j[1],j[2],j[3],j[4],j[5],j[6])}var A=ie(B.prototype),W=B.apply(A,j);return qe(W)?W:A}}function Ae(B,j,A,W,V,te,fe,ue,ve,_e){var ke=128&j,Re=1&j,xe=2&j,Le=24&j,De=512&j,Ve=xe?void 0:ce(B);return function $e(){for(var Ce=arguments.length,be=Array(Ce),Me=Ce;Me--;)be[Me]=arguments[Me];if(Le)var Pe=ot($e),Ge=K(be,Pe);if(W&&(be=me(be,W,V,Le)),te&&(be=le(be,te,fe,Le)),Ce-=Ge,Le&&Ce<_e){var Ue=E(be,Pe);return We(B,j,Ae,$e.placeholder,A,be,Ue,ue,ve,_e-Ce)}var ze=Re?A:this,Ke=xe?ze[B]:B;return Ce=be.length,ue?be=ht(be,ue):De&&Ce>1&&be.reverse(),ke&&ve<Ce&&(be.length=ve),this&&this!==i&&this instanceof $e&&(Ke=Ve||ce(Ke)),Ke.apply(ze,be)}}function We(B,j,A,W,V,te,fe,ue,ve,_e){var ke=8&j;j|=ke?32:64,4&(j&=~(ke?64:32))||(j&=-4);var Re=A(B,j,V,ke?te:void 0,ke?fe:void 0,ke?void 0:te,ke?void 0:fe,ue,ve,_e);return Re.placeholder=W,ct(Re,B,j)}function et(B,j,A,W,V,te,fe,ue){var ve=2&j;if(!ve&&typeof B!="function")throw new TypeError("Expected a function");var _e=W?W.length:0;if(_e||(j&=-97,W=V=void 0),fe=fe===void 0?fe:Y(lt(fe),0),ue=ue===void 0?ue:lt(ue),_e-=V?V.length:0,64&j){var ke=W,Re=V;W=V=void 0}var xe=[B,j,A,W,V,ke,Re,te,fe,ue];if(B=xe[0],j=xe[1],A=xe[2],W=xe[3],V=xe[4],!(ue=xe[9]=xe[9]==null?ve?0:B.length:Y(xe[9]-_e,0))&&24&j&&(j&=-25),j&&j!=1)Le=j==8||j==16?function(De,Ve,$e){var Ce=ce(De);return function be(){for(var Me=arguments.length,Pe=Array(Me),Ge=Me,Ue=ot(be);Ge--;)Pe[Ge]=arguments[Ge];var ze=Me<3&&Pe[0]!==Ue&&Pe[Me-1]!==Ue?[]:E(Pe,Ue);if((Me-=ze.length)<$e)return We(De,Ve,Ae,be.placeholder,void 0,Pe,ze,void 0,void 0,$e-Me);var Ke=this&&this!==i&&this instanceof be?Ce:De;return M(Ke,this,Pe)}}(B,j,ue):j!=32&&j!=33||V.length?Ae.apply(void 0,xe):function(De,Ve,$e,Ce){var be=1&Ve,Me=ce(De);return function Pe(){for(var Ge=-1,Ue=arguments.length,ze=-1,Ke=Ce.length,gt=Array(Ke+Ue),jt=this&&this!==i&&this instanceof Pe?Me:De;++ze<Ke;)gt[ze]=Ce[ze];for(;Ue--;)gt[ze++]=arguments[++Ge];return M(jt,be?$e:this,gt)}}(B,j,A,W);else var Le=function(De,Ve,$e){var Ce=1&Ve,be=ce(De);return function Me(){var Pe=this&&this!==i&&this instanceof Me?be:De;return Pe.apply(Ce?$e:this,arguments)}}(B,j,A);return ct(Le,B,j)}function ot(B){return B.placeholder}function it(B,j){var A=function(W,V){return W==null?void 0:W[V]}(B,j);return he(A)?A:void 0}function st(B){var j=B.match(p);return j?j[1].split(m):[]}function tt(B,j){var A=j.length,W=A-1;return j[W]=(A>1?"& ":"")+j[W],j=j.join(A>2?", ":" "),B.replace(d,`{
/* [wrapped with `+j+`] */
`)}function pt(B,j){return!!(j=j??9007199254740991)&&(typeof B=="number"||U.test(B))&&B>-1&&B%1==0&&B<j}function ht(B,j){for(var A=B.length,W=Q(j.length,A),V=function(fe,ue){var ve=-1,_e=fe.length;for(ue||(ue=Array(_e));++ve<_e;)ue[ve]=fe[ve];return ue}(B);W--;){var te=j[W];B[W]=pt(te,A)?V[te]:void 0}return B}var ct=oe?function(B,j,A){var W,V=j+"";return oe(B,"toString",{configurable:!0,enumerable:!1,value:(W=tt(V,bt(st(V),A)),function(){return W})})}:function(B){return B};function bt(B,j){return function(A,W){for(var V=-1,te=A?A.length:0;++V<te&&W(A[V],V,A)!==!1;);}(o,function(A){var W="_."+A[0];j&A[1]&&!N(B,W)&&B.push(W)}),B.sort()}function nt(B,j,A){var W=et(B,8,void 0,void 0,void 0,void 0,void 0,j=A?void 0:j);return W.placeholder=nt.placeholder,W}function qe(B){var j=typeof B;return!!B&&(j=="object"||j=="function")}function Fe(B){return B?(B=function(j){if(typeof j=="number")return j;if(function(V){return typeof V=="symbol"||function(te){return!!te&&typeof te=="object"}(V)&&ae.call(V)=="[object Symbol]"}(j))return NaN;if(qe(j)){var A=typeof j.valueOf=="function"?j.valueOf():j;j=qe(A)?A+"":A}if(typeof j!="string")return j===0?j:+j;j=j.replace(u,"");var W=v.test(j);return W||O.test(j)?$(j.slice(2),W?2:8):x.test(j)?NaN:+j}(B))===1/0||B===-1/0?17976931348623157e292*(B<0?-1:1):B==B?B:0:B===0?B:0}function lt(B){var j=Fe(B),A=j%1;return j==j?A?j-A:j:0}nt.placeholder={},t.exports=nt}).call(this,e(43))},function(t,n,e){function s(le){return le&&le.__esModule?le.default:le}n.__esModule=!0;var o=e(95);n.threezerotwofour=s(o);var u=e(96);n.apathy=s(u);var d=e(97);n.ashes=s(d);var p=e(98);n.atelierDune=s(p);var m=e(99);n.atelierForest=s(m);var x=e(100);n.atelierHeath=s(x);var v=e(101);n.atelierLakeside=s(v);var y=e(102);n.atelierSeaside=s(y);var O=e(103);n.bespin=s(O);var U=e(104);n.brewer=s(U);var $=e(105);n.bright=s($);var R=e(106);n.chalk=s(R);var P=e(107);n.codeschool=s(P);var i=e(108);n.colors=s(i);var M=e(109);n.default=s(M);var N=e(110);n.eighties=s(N);var z=e(111);n.embers=s(z);var K=e(112);n.flat=s(K);var E=e(113);n.google=s(E);var w=e(114);n.grayscale=s(w);var D=e(115);n.greenscreen=s(D);var H=e(116);n.harmonic=s(H);var _=e(117);n.hopscotch=s(_);var ee=e(118);n.isotope=s(ee);var T=e(119);n.marrakesh=s(T);var S=e(120);n.mocha=s(S);var J=e(121);n.monokai=s(J);var re=e(122);n.ocean=s(re);var ae=e(123);n.paraiso=s(ae);var X=e(124);n.pop=s(X);var G=e(125);n.railscasts=s(G);var Y=e(126);n.shapeshifter=s(Y);var Q=e(127);n.solarized=s(Q);var oe=e(128);n.summerfruit=s(oe);var ie=e(129);n.tomorrow=s(ie);var he=e(130);n.tube=s(he);var me=e(131);n.twilight=s(me)},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){n.__esModule=!0,n.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"},t.exports=n.default},function(t,n,e){var s=e(33);function o(u){var d=Math.round(s(u,0,255)).toString(16);return d.length==1?"0"+d:d}t.exports=function(u){var d=u.length===4?o(255*u[3]):"";return"#"+o(u[0])+o(u[1])+o(u[2])+d}},function(t,n,e){var s=e(134),o=e(135),u=e(136),d=e(137),p={"#":o,hsl:function(x){var v=s(x),y=d(v);return v.length===4&&y.push(v[3]),y},rgb:u};function m(x){for(var v in p)if(x.indexOf(v)===0)return p[v](x)}m.rgb=u,m.hsl=s,m.hex=o,t.exports=m},function(t,n,e){var s=e(44),o=e(33);function u(d,p){switch(d=parseFloat(d),p){case 0:return o(d,0,360);case 1:case 2:return o(d,0,100);case 3:return o(d,0,1)}}t.exports=function(d){return s(d).map(u)}},function(t,n){t.exports=function(e){e.length!==4&&e.length!==5||(e=function(u){for(var d="#",p=1;p<u.length;p++){var m=u.charAt(p);d+=m+m}return d}(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 o=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));s.push(o)}return s}},function(t,n,e){var s=e(44),o=e(33);function u(d,p){return p<3?d.indexOf("%")!=-1?Math.round(255*o(parseInt(d,10),0,100)/100):o(parseInt(d,10),0,255):o(parseFloat(d),0,1)}t.exports=function(d){return s(d).map(u)}},function(t,n){t.exports=function(e){var s,o,u,d,p,m=e[0]/360,x=e[1]/100,v=e[2]/100;if(x==0)return[p=255*v,p,p];s=2*v-(o=v<.5?v*(1+x):v+x-v*x),d=[0,0,0];for(var y=0;y<3;y++)(u=m+1/3*-(y-1))<0&&u++,u>1&&u--,p=6*u<1?s+6*(o-s)*u:2*u<1?o:3*u<2?s+(o-s)*(2/3-u)*6:s,d[y]=255*p;return d}},function(t,n,e){(function(s){var o=typeof s=="object"&&s&&s.Object===Object&&s,u=typeof self=="object"&&self&&self.Object===Object&&self,d=o||u||Function("return this")();function p(E,w,D){switch(D.length){case 0:return E.call(w);case 1:return E.call(w,D[0]);case 2:return E.call(w,D[0],D[1]);case 3:return E.call(w,D[0],D[1],D[2])}return E.apply(w,D)}function m(E,w){for(var D=-1,H=w.length,_=E.length;++D<H;)E[_+D]=w[D];return E}var x=Object.prototype,v=x.hasOwnProperty,y=x.toString,O=d.Symbol,U=x.propertyIsEnumerable,$=O?O.isConcatSpreadable:void 0,R=Math.max;function P(E){return i(E)||function(w){return function(D){return function(H){return!!H&&typeof H=="object"}(D)&&function(H){return H!=null&&function(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=9007199254740991}(H.length)&&!function(_){var ee=function(T){var S=typeof T;return!!T&&(S=="object"||S=="function")}(_)?y.call(_):"";return ee=="[object Function]"||ee=="[object GeneratorFunction]"}(H)}(D)}(w)&&v.call(w,"callee")&&(!U.call(w,"callee")||y.call(w)=="[object Arguments]")}(E)||!!($&&E&&E[$])}var i=Array.isArray,M,N,z,K=(N=function(E){var w=(E=function(_,ee,T,S,J){var re=-1,ae=_.length;for(T||(T=P),J||(J=[]);++re<ae;){var X=_[re];T(X)?m(J,X):J[J.length]=X}return J}(E)).length,D=w;for(M;D--;)if(typeof E[D]!="function")throw new TypeError("Expected a function");return function(){for(var H=0,_=w?E[H].apply(this,arguments):arguments[0];++H<w;)_=E[H].call(this,_);return _}},z=R(z===void 0?N.length-1:z,0),function(){for(var E=arguments,w=-1,D=R(E.length-z,0),H=Array(D);++w<D;)H[w]=E[z+w];w=-1;for(var _=Array(z+1);++w<z;)_[w]=E[w];return _[z]=H,p(N,this,_)});t.exports=K}).call(this,e(43))},function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.yuv2rgb=function(s){var o,u,d,p=s[0],m=s[1],x=s[2];return o=1*p+0*m+1.13983*x,u=1*p+-.39465*m+-.5806*x,d=1*p+2.02311*m+0*x,o=Math.min(Math.max(0,o),1),u=Math.min(Math.max(0,u),1),d=Math.min(Math.max(0,d),1),[255*o,255*u,255*d]},n.rgb2yuv=function(s){var o=s[0]/255,u=s[1]/255,d=s[2]/255;return[.299*o+.587*u+.114*d,-.14713*o+-.28886*u+.436*d,.615*o+-.51499*u+-.10001*d]}},function(t,n,e){function s(d,p,m){return p in d?Object.defineProperty(d,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[p]=m,d}var o=e(141),u=function(){function d(){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 p=d.prototype;return p.register=function(m){var x="ID_"+this._lastID++;return this._callbacks[x]=m,x},p.unregister=function(m){this._callbacks[m]||o(!1),delete this._callbacks[m]},p.waitFor=function(m){this._isDispatching||o(!1);for(var x=0;x<m.length;x++){var v=m[x];this._isPending[v]?this._isHandled[v]||o(!1):(this._callbacks[v]||o(!1),this._invokeCallback(v))}},p.dispatch=function(m){this._isDispatching&&o(!1),this._startDispatching(m);try{for(var x in this._callbacks)this._isPending[x]||this._invokeCallback(x)}finally{this._stopDispatching()}},p.isDispatching=function(){return this._isDispatching},p._invokeCallback=function(m){this._isPending[m]=!0,this._callbacks[m](this._pendingPayload),this._isHandled[m]=!0},p._startDispatching=function(m){for(var x in this._callbacks)this._isPending[x]=!1,this._isHandled[x]=!1;this._pendingPayload=m,this._isDispatching=!0},p._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},d}();t.exports=u},function(t,n,e){t.exports=function(s,o){for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];if(!s){var m;if(o===void 0)m=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=0;(m=new Error(o.replace(/%s/g,function(){return String(d[x++])}))).name="Invariant Violation"}throw m.framesToPop=1,m}}},function(t,n,e){function s(b,g,l){return g in b?Object.defineProperty(b,g,{value:l,enumerable:!0,configurable:!0,writable:!0}):b[g]=l,b}function o(b,g){var l=Object.keys(b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(b);g&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(b,h).enumerable})),l.push.apply(l,f)}return l}function u(b){for(var g=1;g<arguments.length;g++){var l=arguments[g]!=null?arguments[g]:{};g%2?o(Object(l),!0).forEach(function(f){s(b,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(f){Object.defineProperty(b,f,Object.getOwnPropertyDescriptor(l,f))})}return b}function d(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function p(b,g){for(var l=0;l<g.length;l++){var f=g[l];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(b,f.key,f)}}function m(b,g,l){return g&&p(b.prototype,g),l&&p(b,l),b}function x(b,g){return(x=Object.setPrototypeOf||function(l,f){return l.__proto__=f,l})(b,g)}function v(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),g&&x(b,g)}function y(b){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(b)}function O(b){return(O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(b)}function U(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function $(b,g){return!g||O(g)!=="object"&&typeof g!="function"?U(b):g}function R(b){var g=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 l,f=y(b);if(g){var h=y(this).constructor;l=Reflect.construct(f,arguments,h)}else l=f.apply(this,arguments);return $(this,l)}}e.r(n);var P=e(0),i=e.n(P);function M(){var b=this.constructor.getDerivedStateFromProps(this.props,this.state);b!=null&&this.setState(b)}function N(b){this.setState((function(g){var l=this.constructor.getDerivedStateFromProps(b,g);return l??null}).bind(this))}function z(b,g){try{var l=this.props,f=this.state;this.props=b,this.state=g,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(l,f)}finally{this.props=l,this.state=f}}function K(b){var g=b.prototype;if(!g||!g.isReactComponent)throw new Error("Can only polyfill class components");if(typeof b.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function")return b;var l=null,f=null,h=null;if(typeof g.componentWillMount=="function"?l="componentWillMount":typeof g.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof g.componentWillReceiveProps=="function"?f="componentWillReceiveProps":typeof g.UNSAFE_componentWillReceiveProps=="function"&&(f="UNSAFE_componentWillReceiveProps"),typeof g.componentWillUpdate=="function"?h="componentWillUpdate":typeof g.UNSAFE_componentWillUpdate=="function"&&(h="UNSAFE_componentWillUpdate"),l!==null||f!==null||h!==null){var C=b.displayName||b.name,L=typeof b.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

`+C+" uses "+L+" but also contains the following legacy lifecycles:"+(l!==null?`
  `+l:"")+(f!==null?`
  `+f:"")+(h!==null?`
  `+h:"")+`

The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof b.getDerivedStateFromProps=="function"&&(g.componentWillMount=M,g.componentWillReceiveProps=N),typeof g.getSnapshotBeforeUpdate=="function"){if(typeof g.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");g.componentWillUpdate=z;var F=g.componentDidUpdate;g.componentDidUpdate=function(k,q,ne){var pe=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:ne;F.call(this,k,q,pe)}}return b}function E(b,g){if(b==null)return{};var l,f,h=function(L,F){if(L==null)return{};var k,q,ne={},pe=Object.keys(L);for(q=0;q<pe.length;q++)k=pe[q],F.indexOf(k)>=0||(ne[k]=L[k]);return ne}(b,g);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(b);for(f=0;f<C.length;f++)l=C[f],g.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(b,l)&&(h[l]=b[l])}return h}function w(b){var g=function(l){return{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(b);return g==="number"&&(g=isNaN(b)?"nan":(0|b)!=b?"float":"integer"),g}M.__suppressDeprecationWarning=!0,N.__suppressDeprecationWarning=!0,z.__suppressDeprecationWarning=!0;var D={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"},H={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)"},_={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",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"},ee=e(45),T=function(b){var g=function(l){return{backgroundColor:l.base00,ellipsisColor:l.base09,braceColor:l.base07,expandedIcon:l.base0D,collapsedIcon:l.base0E,keyColor:l.base07,arrayKeyColor:l.base0C,objectSize:l.base04,copyToClipboard:l.base0F,copyToClipboardCheck:l.base0D,objectBorder:l.base02,dataTypes:{boolean:l.base0E,date:l.base0D,float:l.base0B,function:l.base0D,integer:l.base0F,string:l.base09,nan:l.base08,null:l.base0A,undefined:l.base05,regexp:l.base0A,background:l.base02},editVariable:{editIcon:l.base0E,cancelIcon:l.base09,removeIcon:l.base09,addIcon:l.base0E,checkIcon:l.base0E,background:l.base01,color:l.base0A,border:l.base07},addKeyModal:{background:l.base05,border:l.base04,color:l.base0A,labelColor:l.base01},validationFailure:{background:l.base09,iconColor:l.base01,fontColor:l.base01}}}(b);return{"app-container":{fontFamily:_.globalFontFamily,cursor:_.globalCursor,backgroundColor:g.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:g.ellipsisColor,fontSize:_.ellipsisFontSize,lineHeight:_.ellipsisLineHeight,cursor:_.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:_.braceCursor,fontWeight:_.braceFontWeight,color:g.braceColor},"expanded-icon":{color:g.expandedIcon},"collapsed-icon":{color:g.collapsedIcon},colon:{display:"inline-block",margin:_.keyMargin,color:g.keyColor,verticalAlign:"top"},objectKeyVal:function(l,f){return{style:u({paddingTop:_.keyValPaddingTop,paddingRight:_.keyValPaddingRight,paddingBottom:_.keyValPaddingBottom,borderLeft:_.keyValBorderLeft+" "+g.objectBorder,":hover":{paddingLeft:f.paddingLeft-1+"px",borderLeft:_.keyValBorderHover+" "+g.objectBorder}},f)}},"object-key-val-no-border":{padding:_.keyValPadding},"pushed-content":{marginLeft:_.pushedContentMarginLeft},variableValue:function(l,f){return{style:u({display:"inline-block",paddingRight:_.variableValuePaddingRight,position:"relative"},f)}},"object-name":{display:"inline-block",color:g.keyColor,letterSpacing:_.keyLetterSpacing,fontStyle:_.keyFontStyle,verticalAlign:_.keyVerticalAlign,opacity:_.keyOpacity,":hover":{opacity:_.keyOpacityHover}},"array-key":{display:"inline-block",color:g.arrayKeyColor,letterSpacing:_.keyLetterSpacing,fontStyle:_.keyFontStyle,verticalAlign:_.keyVerticalAlign,opacity:_.keyOpacity,":hover":{opacity:_.keyOpacityHover}},"object-size":{color:g.objectSize,borderRadius:_.objectSizeBorderRadius,fontStyle:_.objectSizeFontStyle,margin:_.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:_.dataTypeFontSize,marginRight:_.dataTypeMarginRight,opacity:_.datatypeOpacity},boolean:{display:"inline-block",color:g.dataTypes.boolean},date:{display:"inline-block",color:g.dataTypes.date},"date-value":{marginLeft:_.dateValueMarginLeft},float:{display:"inline-block",color:g.dataTypes.float},function:{display:"inline-block",color:g.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:g.dataTypes.integer},string:{display:"inline-block",color:g.dataTypes.string},nan:{display:"inline-block",color:g.dataTypes.nan,fontSize:_.nanFontSize,fontWeight:_.nanFontWeight,backgroundColor:g.dataTypes.background,padding:_.nanPadding,borderRadius:_.nanBorderRadius},null:{display:"inline-block",color:g.dataTypes.null,fontSize:_.nullFontSize,fontWeight:_.nullFontWeight,backgroundColor:g.dataTypes.background,padding:_.nullPadding,borderRadius:_.nullBorderRadius},undefined:{display:"inline-block",color:g.dataTypes.undefined,fontSize:_.undefinedFontSize,padding:_.undefinedPadding,borderRadius:_.undefinedBorderRadius,backgroundColor:g.dataTypes.background},regexp:{display:"inline-block",color:g.dataTypes.regexp},"copy-to-clipboard":{cursor:_.clipboardCursor},"copy-icon":{color:g.copyToClipboard,fontSize:_.iconFontSize,marginRight:_.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:g.copyToClipboardCheck,marginLeft:_.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:_.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:_.metaDataPadding},"icon-container":{display:"inline-block",width:_.iconContainerWidth},tooltip:{padding:_.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:g.editVariable.removeIcon,cursor:_.iconCursor,fontSize:_.iconFontSize,marginRight:_.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:g.editVariable.addIcon,cursor:_.iconCursor,fontSize:_.iconFontSize,marginRight:_.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:g.editVariable.editIcon,cursor:_.iconCursor,fontSize:_.iconFontSize,marginRight:_.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:_.iconCursor,color:g.editVariable.checkIcon,fontSize:_.iconFontSize,paddingRight:_.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:_.iconCursor,color:g.editVariable.cancelIcon,fontSize:_.iconFontSize,paddingRight:_.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:_.editInputMinWidth,borderRadius:_.editInputBorderRadius,backgroundColor:g.editVariable.background,color:g.editVariable.color,padding:_.editInputPadding,marginRight:_.editInputMarginRight,fontFamily:_.editInputFontFamily},"detected-row":{paddingTop:_.detectedRowPaddingTop},"key-modal-request":{position:_.addKeyCoverPosition,top:_.addKeyCoverPositionPx,left:_.addKeyCoverPositionPx,right:_.addKeyCoverPositionPx,bottom:_.addKeyCoverPositionPx,backgroundColor:_.addKeyCoverBackground},"key-modal":{width:_.addKeyModalWidth,backgroundColor:g.addKeyModal.background,marginLeft:_.addKeyModalMargin,marginRight:_.addKeyModalMargin,padding:_.addKeyModalPadding,borderRadius:_.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:g.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:g.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:g.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:g.addKeyModal.labelColor,fontSize:_.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:g.editVariable.addIcon,fontSize:_.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:g.ellipsisColor,fontSize:_.ellipsisFontSize,lineHeight:_.ellipsisLineHeight,cursor:_.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:g.validationFailure.fontColor,backgroundColor:g.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:g.validationFailure.iconColor,fontSize:_.iconFontSize,transform:"rotate(45deg)"}}};function S(b,g,l){return b||console.error("theme has not been set"),function(f){var h=D;return f!==!1&&f!=="none"||(h=H),Object(ee.createStyling)(T,{defaultBase16:h})(f)}(b)(g,l)}var J=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=(f.rjvId,f.type_name),C=f.displayDataTypes,L=f.theme;return C?i.a.createElement("span",Object.assign({className:"data-type-label"},S(L,"data-type-label")),h):null}}]),l}(i.a.PureComponent),re=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props;return i.a.createElement("div",S(f.theme,"boolean"),i.a.createElement(J,Object.assign({type_name:"bool"},f)),f.value?"true":"false")}}]),l}(i.a.PureComponent),ae=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props;return i.a.createElement("div",S(f.theme,"date"),i.a.createElement(J,Object.assign({type_name:"date"},f)),i.a.createElement("span",Object.assign({className:"date-value"},S(f.theme,"date-value")),f.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),l}(i.a.PureComponent),X=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props;return i.a.createElement("div",S(f.theme,"float"),i.a.createElement(J,Object.assign({type_name:"float"},f)),this.props.value)}}]),l}(i.a.PureComponent);function G(b,g){(g==null||g>b.length)&&(g=b.length);for(var l=0,f=new Array(g);l<g;l++)f[l]=b[l];return f}function Y(b,g){if(b){if(typeof b=="string")return G(b,g);var l=Object.prototype.toString.call(b).slice(8,-1);return l==="Object"&&b.constructor&&(l=b.constructor.name),l==="Map"||l==="Set"?Array.from(b):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?G(b,g):void 0}}function Q(b,g){var l;if(typeof Symbol>"u"||b[Symbol.iterator]==null){if(Array.isArray(b)||(l=Y(b))||g){l&&(b=l);var f=0,h=function(){};return{s:h,n:function(){return f>=b.length?{done:!0}:{done:!1,value:b[f++]}},e:function(k){throw k},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C,L=!0,F=!1;return{s:function(){l=b[Symbol.iterator]()},n:function(){var k=l.next();return L=k.done,k},e:function(k){F=!0,C=k},f:function(){try{L||l.return==null||l.return()}finally{if(F)throw C}}}}function oe(b){return function(g){if(Array.isArray(g))return G(g)}(b)||function(g){if(typeof Symbol<"u"&&Symbol.iterator in Object(g))return Array.from(g)}(b)||Y(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var ie=e(46),he=new(e(47)).Dispatcher,me=new(function(b){v(l,b);var g=R(l);function l(){var f;d(this,l);for(var h=arguments.length,C=new Array(h),L=0;L<h;L++)C[L]=arguments[L];return(f=g.call.apply(g,[this].concat(C))).objects={},f.set=function(F,k,q,ne){f.objects[F]===void 0&&(f.objects[F]={}),f.objects[F][k]===void 0&&(f.objects[F][k]={}),f.objects[F][k][q]=ne},f.get=function(F,k,q,ne){return f.objects[F]===void 0||f.objects[F][k]===void 0||f.objects[F][k][q]==null?ne:f.objects[F][k][q]},f.handleAction=function(F){var k=F.rjvId,q=F.data;switch(F.name){case"RESET":f.emit("reset-"+k);break;case"VARIABLE_UPDATED":F.data.updated_src=f.updateSrc(k,q),f.set(k,"action","variable-update",u(u({},q),{},{type:"variable-edited"})),f.emit("variable-update-"+k);break;case"VARIABLE_REMOVED":F.data.updated_src=f.updateSrc(k,q),f.set(k,"action","variable-update",u(u({},q),{},{type:"variable-removed"})),f.emit("variable-update-"+k);break;case"VARIABLE_ADDED":F.data.updated_src=f.updateSrc(k,q),f.set(k,"action","variable-update",u(u({},q),{},{type:"variable-added"})),f.emit("variable-update-"+k);break;case"ADD_VARIABLE_KEY_REQUEST":f.set(k,"action","new-key-request",q),f.emit("add-key-request-"+k)}},f.updateSrc=function(F,k){var q=k.name,ne=k.namespace,pe=k.new_value,ge=(k.existing_value,k.variable_removed);ne.shift();var ye,de=f.get(F,"global","src"),Ee=f.deepCopy(de,oe(ne)),Se=Ee,se=Q(ne);try{for(se.s();!(ye=se.n()).done;)Se=Se[ye.value]}catch(je){se.e(je)}finally{se.f()}return ge?w(Se)=="array"?Se.splice(q,1):delete Se[q]:q!==null?Se[q]=pe:Ee=pe,f.set(F,"global","src",Ee),Ee},f.deepCopy=function(F,k){var q,ne=w(F),pe=k.shift();return ne=="array"?q=oe(F):ne=="object"&&(q=u({},F)),pe!==void 0&&(q[pe]=f.deepCopy(F[pe],k)),q},f}return l}(ie.EventEmitter));he.register(me.handleAction.bind(me));var le=me,ce=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).toggleCollapsed=function(){h.setState({collapsed:!h.state.collapsed},function(){le.set(h.props.rjvId,h.props.namespace,"collapsed",h.state.collapsed)})},h.getFunctionDisplay=function(C){var L=U(h).props;return C?i.a.createElement("span",null,h.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),i.a.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},i.a.createElement("span",null,"{"),i.a.createElement("span",S(L.theme,"ellipsis"),"..."),i.a.createElement("span",null,"}"))):h.props.value.toString().slice(9,-1)},h.state={collapsed:le.get(f.rjvId,f.namespace,"collapsed",!0)},h}return m(l,[{key:"render",value:function(){var f=this.props,h=this.state.collapsed;return i.a.createElement("div",S(f.theme,"function"),i.a.createElement(J,Object.assign({type_name:"function"},f)),i.a.createElement("span",Object.assign({},S(f.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(h)))}}]),l}(i.a.PureComponent),Ae=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){return i.a.createElement("div",S(this.props.theme,"nan"),"NaN")}}]),l}(i.a.PureComponent),We=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){return i.a.createElement("div",S(this.props.theme,"null"),"NULL")}}]),l}(i.a.PureComponent),et=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props;return i.a.createElement("div",S(f.theme,"integer"),i.a.createElement(J,Object.assign({type_name:"int"},f)),this.props.value)}}]),l}(i.a.PureComponent),ot=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props;return i.a.createElement("div",S(f.theme,"regexp"),i.a.createElement(J,Object.assign({type_name:"regexp"},f)),this.props.value.toString())}}]),l}(i.a.PureComponent),it=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).toggleCollapsed=function(){h.setState({collapsed:!h.state.collapsed},function(){le.set(h.props.rjvId,h.props.namespace,"collapsed",h.state.collapsed)})},h.state={collapsed:le.get(f.rjvId,f.namespace,"collapsed",!0)},h}return m(l,[{key:"render",value:function(){this.state.collapsed;var f=this.props,h=f.collapseStringsAfterLength,C=f.theme,L=f.value,F={style:{cursor:"default"}};return w(h)==="integer"&&L.length>h&&(F.style.cursor="pointer",this.state.collapsed&&(L=i.a.createElement("span",null,L.substring(0,h),i.a.createElement("span",S(C,"ellipsis")," ...")))),i.a.createElement("div",S(C,"string"),i.a.createElement(J,Object.assign({type_name:"string"},f)),i.a.createElement("span",Object.assign({className:"string-value"},F,{onClick:this.toggleCollapsed}),'"',L,'"'))}}]),l}(i.a.PureComponent),st=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){return i.a.createElement("div",S(this.props.theme,"undefined"),"undefined")}}]),l}(i.a.PureComponent);function tt(){return(tt=Object.assign||function(b){for(var g=1;g<arguments.length;g++){var l=arguments[g];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(b[f]=l[f])}return b}).apply(this,arguments)}var pt=P.useLayoutEffect,ht=function(b){var g=Object(P.useRef)(b);return pt(function(){g.current=b}),g},ct=function(b,g){typeof b!="function"?b.current=g:b(g)},bt=function(b,g){var l=Object(P.useRef)();return Object(P.useCallback)(function(f){b.current=f,l.current&&ct(l.current,null),l.current=g,g&&ct(g,f)},[g])},nt={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},qe=function(b){Object.keys(nt).forEach(function(g){b.style.setProperty(g,nt[g],"important")})},Fe=null,lt=function(){},B=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],j=!!document.documentElement.currentStyle,A=function(b,g){var l=b.cacheMeasurements,f=b.maxRows,h=b.minRows,C=b.onChange,L=C===void 0?lt:C,F=b.onHeightChange,k=F===void 0?lt:F,q=function(se,je){if(se==null)return{};var Te,rt,qt={},at=Object.keys(se);for(rt=0;rt<at.length;rt++)Te=at[rt],je.indexOf(Te)>=0||(qt[Te]=se[Te]);return qt}(b,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),ne,pe=q.value!==void 0,ge=Object(P.useRef)(null),ye=bt(ge,g),de=Object(P.useRef)(0),Ee=Object(P.useRef)(),Se=function(){var se=ge.current,je=l&&Ee.current?Ee.current:function(at){var $t=window.getComputedStyle(at);if($t===null)return null;var mt,Ie=(mt=$t,B.reduce(function(At,yt){return At[yt]=mt[yt],At},{})),vt=Ie.boxSizing;return vt===""?null:(j&&vt==="border-box"&&(Ie.width=parseFloat(Ie.width)+parseFloat(Ie.borderRightWidth)+parseFloat(Ie.borderLeftWidth)+parseFloat(Ie.paddingRight)+parseFloat(Ie.paddingLeft)+"px"),{sizingStyle:Ie,paddingSize:parseFloat(Ie.paddingBottom)+parseFloat(Ie.paddingTop),borderSize:parseFloat(Ie.borderBottomWidth)+parseFloat(Ie.borderTopWidth)})}(se);if(je){Ee.current=je;var Te=function(at,$t,mt,Ie){mt===void 0&&(mt=1),Ie===void 0&&(Ie=1/0),Fe||((Fe=document.createElement("textarea")).setAttribute("tab-index","-1"),Fe.setAttribute("aria-hidden","true"),qe(Fe)),Fe.parentNode===null&&document.body.appendChild(Fe);var vt=at.paddingSize,At=at.borderSize,yt=at.sizingStyle,Cn=yt.boxSizing;Object.keys(yt).forEach(function(fn){var Et=fn;Fe.style[Et]=yt[Et]}),qe(Fe),Fe.value=$t;var Ut=function(fn,Et){var On=fn.scrollHeight;return Et.sizingStyle.boxSizing==="border-box"?On+Et.borderSize:On-Et.paddingSize}(Fe,at);Fe.value="x";var ln=Fe.scrollHeight-vt,un=ln*mt;Cn==="border-box"&&(un=un+vt+At),Ut=Math.max(un,Ut);var dn=ln*Ie;return Cn==="border-box"&&(dn=dn+vt+At),[Ut=Math.min(dn,Ut),ln]}(je,se.value||se.placeholder||"x",h,f),rt=Te[0],qt=Te[1];de.current!==rt&&(de.current=rt,se.style.setProperty("height",rt+"px","important"),k(rt,{rowHeight:qt}))}};return Object(P.useLayoutEffect)(Se),ne=ht(Se),Object(P.useLayoutEffect)(function(){var se=function(je){ne.current(je)};return window.addEventListener("resize",se),function(){window.removeEventListener("resize",se)}},[]),Object(P.createElement)("textarea",tt({},q,{onChange:function(se){pe||Se(),L(se)},ref:ye}))},W=Object(P.forwardRef)(A);function V(b){b=b.trim();try{if((b=JSON.stringify(JSON.parse(b)))[0]==="[")return te("array",JSON.parse(b));if(b[0]==="{")return te("object",JSON.parse(b));if(b.match(/\-?\d+\.\d+/)&&b.match(/\-?\d+\.\d+/)[0]===b)return te("float",parseFloat(b));if(b.match(/\-?\d+e-\d+/)&&b.match(/\-?\d+e-\d+/)[0]===b)return te("float",Number(b));if(b.match(/\-?\d+/)&&b.match(/\-?\d+/)[0]===b)return te("integer",parseInt(b));if(b.match(/\-?\d+e\+\d+/)&&b.match(/\-?\d+e\+\d+/)[0]===b)return te("integer",Number(b))}catch{}switch(b=b.toLowerCase()){case"undefined":return te("undefined",void 0);case"nan":return te("nan",NaN);case"null":return te("null",null);case"true":return te("boolean",!0);case"false":return te("boolean",!1);default:if(b=Date.parse(b))return te("date",new Date(b))}return te(!1,null)}function te(b,g){return{type:b,value:g}}var fe=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.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"})))}}]),l}(i.a.PureComponent),ue=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.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"})))}}]),l}(i.a.PureComponent),ve=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]),L=be(h).style;return i.a.createElement("span",C,i.a.createElement("svg",{fill:L.color,width:L.height,height:L.width,style:L,viewBox:"0 0 1792 1792"},i.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"})))}}]),l}(i.a.PureComponent),_e=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]),L=be(h).style;return i.a.createElement("span",C,i.a.createElement("svg",{fill:L.color,width:L.height,height:L.width,style:L,viewBox:"0 0 1792 1792"},i.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"})))}}]),l}(i.a.PureComponent),ke=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",{style:u(u({},be(h).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},i.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),l}(i.a.PureComponent),Re=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",{style:u(u({},be(h).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},i.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),l}(i.a.PureComponent),xe=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.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"}))))}}]),l}(i.a.PureComponent),Le=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.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"}))))}}]),l}(i.a.PureComponent),De=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.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"}))))}}]),l}(i.a.PureComponent),Ve=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),l}(i.a.PureComponent),$e=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.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"}))))}}]),l}(i.a.PureComponent),Ce=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.style,C=E(f,["style"]);return i.a.createElement("span",C,i.a.createElement("svg",Object.assign({},be(h),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),i.a.createElement("g",null,i.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"}))))}}]),l}(i.a.PureComponent);function be(b){return b||(b={}),{style:u(u({verticalAlign:"middle"},b),{},{color:b.color?b.color:"#000000",height:"1em",width:"1em"})}}var Me=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).copiedTimer=null,h.handleCopy=function(){var C=document.createElement("textarea"),L=h.props,F=L.clickCallback,k=L.src,q=L.namespace;C.innerHTML=JSON.stringify(h.clipboardValue(k),null,"  "),document.body.appendChild(C),C.select(),document.execCommand("copy"),document.body.removeChild(C),h.copiedTimer=setTimeout(function(){h.setState({copied:!1})},5500),h.setState({copied:!0},function(){typeof F=="function"&&F({src:k,namespace:q,name:q[q.length-1]})})},h.getClippyIcon=function(){var C=h.props.theme;return h.state.copied?i.a.createElement("span",null,i.a.createElement(xe,Object.assign({className:"copy-icon"},S(C,"copy-icon"))),i.a.createElement("span",S(C,"copy-icon-copied"),"✔")):i.a.createElement(xe,Object.assign({className:"copy-icon"},S(C,"copy-icon")))},h.clipboardValue=function(C){switch(w(C)){case"function":case"regexp":return C.toString();default:return C}},h.state={copied:!1},h}return m(l,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var f=this.props,h=(f.src,f.theme),C=f.hidden,L=f.rowHovered,F=S(h,"copy-to-clipboard").style,k="inline";return C&&(k="none"),i.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:L?"inline-block":"none"}},i.a.createElement("span",{style:u(u({},F),{},{display:k}),onClick:this.handleCopy},this.getClippyIcon()))}}]),l}(i.a.PureComponent),Pe=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).getEditIcon=function(){var C=h.props,L=C.variable,F=C.theme;return i.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:h.state.hovered?"inline-block":"none"}},i.a.createElement($e,Object.assign({className:"click-to-edit-icon"},S(F,"editVarIcon"),{onClick:function(){h.prepopInput(L)}})))},h.prepopInput=function(C){if(h.props.onEdit!==!1){var L=function(k){var q;switch(w(k)){case"undefined":q="undefined";break;case"nan":q="NaN";break;case"string":q=k;break;case"date":case"function":case"regexp":q=k.toString();break;default:try{q=JSON.stringify(k,null,"  ")}catch{q=""}}return q}(C.value),F=V(L);h.setState({editMode:!0,editValue:L,parsedInput:{type:F.type,value:F.value}})}},h.getRemoveIcon=function(){var C=h.props,L=C.variable,F=C.namespace,k=C.theme,q=C.rjvId;return i.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:h.state.hovered?"inline-block":"none"}},i.a.createElement(Le,Object.assign({className:"click-to-remove-icon"},S(k,"removeVarIcon"),{onClick:function(){he.dispatch({name:"VARIABLE_REMOVED",rjvId:q,data:{name:L.name,namespace:F,existing_value:L.value,variable_removed:!0}})}})))},h.getValue=function(C,L){var F=!L&&C.type,k=U(h).props;switch(F){case!1:return h.getEditInput();case"string":return i.a.createElement(it,Object.assign({value:C.value},k));case"integer":return i.a.createElement(et,Object.assign({value:C.value},k));case"float":return i.a.createElement(X,Object.assign({value:C.value},k));case"boolean":return i.a.createElement(re,Object.assign({value:C.value},k));case"function":return i.a.createElement(ce,Object.assign({value:C.value},k));case"null":return i.a.createElement(We,k);case"nan":return i.a.createElement(Ae,k);case"undefined":return i.a.createElement(st,k);case"date":return i.a.createElement(ae,Object.assign({value:C.value},k));case"regexp":return i.a.createElement(ot,Object.assign({value:C.value},k));default:return i.a.createElement("div",{className:"object-value"},JSON.stringify(C.value))}},h.getEditInput=function(){var C=h.props.theme,L=h.state.editValue;return i.a.createElement("div",null,i.a.createElement(W,Object.assign({type:"text",inputRef:function(F){return F&&F.focus()},value:L,className:"variable-editor",onChange:function(F){var k=F.target.value,q=V(k);h.setState({editValue:k,parsedInput:{type:q.type,value:q.value}})},onKeyDown:function(F){switch(F.key){case"Escape":h.setState({editMode:!1,editValue:""});break;case"Enter":(F.ctrlKey||F.metaKey)&&h.submitEdit(!0)}F.stopPropagation()},placeholder:"update this value",minRows:2},S(C,"edit-input"))),i.a.createElement("div",S(C,"edit-icon-container"),i.a.createElement(Le,Object.assign({className:"edit-cancel"},S(C,"cancel-icon"),{onClick:function(){h.setState({editMode:!1,editValue:""})}})),i.a.createElement(Ce,Object.assign({className:"edit-check string-value"},S(C,"check-icon"),{onClick:function(){h.submitEdit()}})),i.a.createElement("div",null,h.showDetected())))},h.submitEdit=function(C){var L=h.props,F=L.variable,k=L.namespace,q=L.rjvId,ne=h.state,pe=ne.editValue,ge=ne.parsedInput,ye=pe;C&&ge.type&&(ye=ge.value),h.setState({editMode:!1}),he.dispatch({name:"VARIABLE_UPDATED",rjvId:q,data:{name:F.name,namespace:k,existing_value:F.value,new_value:ye,variable_removed:!1}})},h.showDetected=function(){var C=h.props,L=C.theme,F=(C.variable,C.namespace,C.rjvId,h.state.parsedInput),k=(F.type,F.value,h.getDetectedInput());if(k)return i.a.createElement("div",null,i.a.createElement("div",S(L,"detected-row"),k,i.a.createElement(Ce,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},S(L,"check-icon").style),onClick:function(){h.submitEdit(!0)}})))},h.getDetectedInput=function(){var C=h.state.parsedInput,L=C.type,F=C.value,k=U(h).props,q=k.theme;if(L!==!1)switch(L.toLowerCase()){case"object":return i.a.createElement("span",null,i.a.createElement("span",{style:u(u({},S(q,"brace").style),{},{cursor:"default"})},"{"),i.a.createElement("span",{style:u(u({},S(q,"ellipsis").style),{},{cursor:"default"})},"..."),i.a.createElement("span",{style:u(u({},S(q,"brace").style),{},{cursor:"default"})},"}"));case"array":return i.a.createElement("span",null,i.a.createElement("span",{style:u(u({},S(q,"brace").style),{},{cursor:"default"})},"["),i.a.createElement("span",{style:u(u({},S(q,"ellipsis").style),{},{cursor:"default"})},"..."),i.a.createElement("span",{style:u(u({},S(q,"brace").style),{},{cursor:"default"})},"]"));case"string":return i.a.createElement(it,Object.assign({value:F},k));case"integer":return i.a.createElement(et,Object.assign({value:F},k));case"float":return i.a.createElement(X,Object.assign({value:F},k));case"boolean":return i.a.createElement(re,Object.assign({value:F},k));case"function":return i.a.createElement(ce,Object.assign({value:F},k));case"null":return i.a.createElement(We,k);case"nan":return i.a.createElement(Ae,k);case"undefined":return i.a.createElement(st,k);case"date":return i.a.createElement(ae,Object.assign({value:new Date(F)},k))}},h.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},h}return m(l,[{key:"render",value:function(){var f=this,h=this.props,C=h.variable,L=h.singleIndent,F=h.type,k=h.theme,q=h.namespace,ne=h.indentWidth,pe=h.enableClipboard,ge=h.onEdit,ye=h.onDelete,de=h.onSelect,Ee=h.displayArrayKey,Se=h.quotesOnKeys,se=this.state.editMode;return i.a.createElement("div",Object.assign({},S(k,"objectKeyVal",{paddingLeft:ne*L}),{onMouseEnter:function(){return f.setState(u(u({},f.state),{},{hovered:!0}))},onMouseLeave:function(){return f.setState(u(u({},f.state),{},{hovered:!1}))},className:"variable-row",key:C.name}),F=="array"?Ee?i.a.createElement("span",Object.assign({},S(k,"array-key"),{key:C.name+"_"+q}),C.name,i.a.createElement("div",S(k,"colon"),":")):null:i.a.createElement("span",null,i.a.createElement("span",Object.assign({},S(k,"object-name"),{className:"object-key",key:C.name+"_"+q}),!!Se&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"'),i.a.createElement("span",{style:{display:"inline-block"}},C.name),!!Se&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"')),i.a.createElement("span",S(k,"colon"),":")),i.a.createElement("div",Object.assign({className:"variable-value",onClick:de===!1&&ge===!1?null:function(je){var Te=oe(q);(je.ctrlKey||je.metaKey)&&ge!==!1?f.prepopInput(C):de!==!1&&(Te.shift(),de(u(u({},C),{},{namespace:Te})))}},S(k,"variableValue",{cursor:de===!1?"default":"pointer"})),this.getValue(C,se)),pe?i.a.createElement(Me,{rowHovered:this.state.hovered,hidden:se,src:C.value,clickCallback:pe,theme:k,namespace:[].concat(oe(q),[C.name])}):null,ge!==!1&&se==0?this.getEditIcon():null,ye!==!1&&se==0?this.getRemoveIcon():null)}}]),l}(i.a.PureComponent),Ge=function(b){v(l,b);var g=R(l);function l(){var f;d(this,l);for(var h=arguments.length,C=new Array(h),L=0;L<h;L++)C[L]=arguments[L];return(f=g.call.apply(g,[this].concat(C))).getObjectSize=function(){var F=f.props,k=F.size,q=F.theme;if(F.displayObjectSize)return i.a.createElement("span",Object.assign({className:"object-size"},S(q,"object-size")),k," item",k===1?"":"s")},f.getAddAttribute=function(F){var k=f.props,q=k.theme,ne=k.namespace,pe=k.name,ge=k.src,ye=k.rjvId,de=k.depth;return i.a.createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:F?"inline-block":"none"}},i.a.createElement(De,Object.assign({className:"click-to-add-icon"},S(q,"addVarIcon"),{onClick:function(){var Ee={name:de>0?pe:null,namespace:ne.splice(0,ne.length-1),existing_value:ge,variable_removed:!1,key_name:null};w(ge)==="object"?he.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ye,data:Ee}):he.dispatch({name:"VARIABLE_ADDED",rjvId:ye,data:u(u({},Ee),{},{new_value:[].concat(oe(ge),[null])})})}})))},f.getRemoveObject=function(F){var k=f.props,q=k.theme,ne=(k.hover,k.namespace),pe=k.name,ge=k.src,ye=k.rjvId;if(ne.length!==1)return i.a.createElement("span",{className:"click-to-remove",style:{display:F?"inline-block":"none"}},i.a.createElement(Le,Object.assign({className:"click-to-remove-icon"},S(q,"removeVarIcon"),{onClick:function(){he.dispatch({name:"VARIABLE_REMOVED",rjvId:ye,data:{name:pe,namespace:ne.splice(0,ne.length-1),existing_value:ge,variable_removed:!0}})}})))},f.render=function(){var F=f.props,k=F.theme,q=F.onDelete,ne=F.onAdd,pe=F.enableClipboard,ge=F.src,ye=F.namespace,de=F.rowHovered;return i.a.createElement("div",Object.assign({},S(k,"object-meta-data"),{className:"object-meta-data",onClick:function(Ee){Ee.stopPropagation()}}),f.getObjectSize(),pe?i.a.createElement(Me,{rowHovered:de,clickCallback:pe,src:ge,theme:k,namespace:ye}):null,ne!==!1?f.getAddAttribute(de):null,q!==!1?f.getRemoveObject(de):null)},f}return l}(i.a.PureComponent);function Ue(b){var g=b.parent_type,l=b.namespace,f=b.quotesOnKeys,h=b.theme,C=b.jsvRoot,L=b.name,F=b.displayArrayKey,k=b.name?b.name:"";return!C||L!==!1&&L!==null?g=="array"?F?i.a.createElement("span",Object.assign({},S(h,"array-key"),{key:l}),i.a.createElement("span",{className:"array-key"},k),i.a.createElement("span",S(h,"colon"),":")):i.a.createElement("span",null):i.a.createElement("span",Object.assign({},S(h,"object-name"),{key:l}),i.a.createElement("span",{className:"object-key"},f&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"'),i.a.createElement("span",null,k),f&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"')),i.a.createElement("span",S(h,"colon"),":")):i.a.createElement("span",null)}function ze(b){var g=b.theme;switch(b.iconStyle){case"triangle":return i.a.createElement(Re,Object.assign({},S(g,"expanded-icon"),{className:"expanded-icon"}));case"square":return i.a.createElement(ve,Object.assign({},S(g,"expanded-icon"),{className:"expanded-icon"}));default:return i.a.createElement(fe,Object.assign({},S(g,"expanded-icon"),{className:"expanded-icon"}))}}function Ke(b){var g=b.theme;switch(b.iconStyle){case"triangle":return i.a.createElement(ke,Object.assign({},S(g,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return i.a.createElement(_e,Object.assign({},S(g,"collapsed-icon"),{className:"collapsed-icon"}));default:return i.a.createElement(ue,Object.assign({},S(g,"collapsed-icon"),{className:"collapsed-icon"}))}}var gt=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).toggleCollapsed=function(C){var L=[];for(var F in h.state.expanded)L.push(h.state.expanded[F]);L[C]=!L[C],h.setState({expanded:L})},h.state={expanded:[]},h}return m(l,[{key:"getExpandedIcon",value:function(f){var h=this.props,C=h.theme,L=h.iconStyle;return this.state.expanded[f]?i.a.createElement(ze,{theme:C,iconStyle:L}):i.a.createElement(Ke,{theme:C,iconStyle:L})}},{key:"render",value:function(){var f=this,h=this.props,C=h.src,L=h.groupArraysAfterLength,F=(h.depth,h.name),k=h.theme,q=h.jsvRoot,ne=h.namespace,pe=(h.parent_type,E(h,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),ge=0,ye=5*this.props.indentWidth;q||(ge=5*this.props.indentWidth);var de=L,Ee=Math.ceil(C.length/de);return i.a.createElement("div",Object.assign({className:"object-key-val"},S(k,q?"jsv-root":"objectKeyVal",{paddingLeft:ge})),i.a.createElement(Ue,this.props),i.a.createElement("span",null,i.a.createElement(Ge,Object.assign({size:C.length},this.props))),oe(Array(Ee)).map(function(Se,se){return i.a.createElement("div",Object.assign({key:se,className:"object-key-val array-group"},S(k,"objectKeyVal",{marginLeft:6,paddingLeft:ye})),i.a.createElement("span",S(k,"brace-row"),i.a.createElement("div",Object.assign({className:"icon-container"},S(k,"icon-container"),{onClick:function(je){f.toggleCollapsed(se)}}),f.getExpandedIcon(se)),f.state.expanded[se]?i.a.createElement(Bt,Object.assign({key:F+se,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:de,index_offset:se*de,src:C.slice(se*de,se*de+de),namespace:ne,type:"array",parent_type:"array_group",theme:k},pe)):i.a.createElement("span",Object.assign({},S(k,"brace"),{onClick:function(je){f.toggleCollapsed(se)},className:"array-group-brace"}),"[",i.a.createElement("div",Object.assign({},S(k,"array-group-meta-data"),{className:"array-group-meta-data"}),i.a.createElement("span",Object.assign({className:"object-size"},S(k,"object-size")),se*de," - ",se*de+de>C.length?C.length:se*de+de)),"]")))}))}}]),l}(i.a.PureComponent),jt=function(b){v(l,b);var g=R(l);function l(f){var h;d(this,l),(h=g.call(this,f)).toggleCollapsed=function(){h.setState({expanded:!h.state.expanded},function(){le.set(h.props.rjvId,h.props.namespace,"expanded",h.state.expanded)})},h.getObjectContent=function(L,F,k){return i.a.createElement("div",{className:"pushed-content object-container"},i.a.createElement("div",Object.assign({className:"object-content"},S(h.props.theme,"pushed-content")),h.renderObjectContents(F,k)))},h.getEllipsis=function(){return h.state.size===0?null:i.a.createElement("div",Object.assign({},S(h.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:h.toggleCollapsed}),"...")},h.getObjectMetaData=function(L){var F=h.props,k=(F.rjvId,F.theme,h.state),q=k.size,ne=k.hovered;return i.a.createElement(Ge,Object.assign({rowHovered:ne,size:q},h.props))},h.renderObjectContents=function(L,F){var k,q=h.props,ne=q.depth,pe=q.parent_type,ge=q.index_offset,ye=q.groupArraysAfterLength,de=q.namespace,Ee=h.state.object_type,Se=[],se=Object.keys(L||{});return h.props.sortKeys&&Ee!=="array"&&(se=se.sort()),se.forEach(function(je){if(k=new Or(je,L[je]),pe==="array_group"&&ge&&(k.name=parseInt(k.name)+ge),L.hasOwnProperty(je))if(k.type==="object")Se.push(i.a.createElement(Bt,Object.assign({key:k.name,depth:ne+1,name:k.name,src:k.value,namespace:de.concat(k.name),parent_type:Ee},F)));else if(k.type==="array"){var Te=Bt;ye&&k.value.length>ye&&(Te=gt),Se.push(i.a.createElement(Te,Object.assign({key:k.name,depth:ne+1,name:k.name,src:k.value,namespace:de.concat(k.name),type:"array",parent_type:Ee},F)))}else Se.push(i.a.createElement(Pe,Object.assign({key:k.name+"_"+de,variable:k,singleIndent:5,namespace:de,type:h.props.type},F)))}),Se};var C=l.getState(f);return h.state=u(u({},C),{},{prevProps:{}}),h}return m(l,[{key:"getBraceStart",value:function(f,h){var C=this,L=this.props,F=L.src,k=L.theme,q=L.iconStyle;if(L.parent_type==="array_group")return i.a.createElement("span",null,i.a.createElement("span",S(k,"brace"),f==="array"?"[":"{"),h?this.getObjectMetaData(F):null);var ne=h?ze:Ke;return i.a.createElement("span",null,i.a.createElement("span",Object.assign({onClick:function(pe){C.toggleCollapsed()}},S(k,"brace-row")),i.a.createElement("div",Object.assign({className:"icon-container"},S(k,"icon-container")),i.a.createElement(ne,{theme:k,iconStyle:q})),i.a.createElement(Ue,this.props),i.a.createElement("span",S(k,"brace"),f==="array"?"[":"{")),h?this.getObjectMetaData(F):null)}},{key:"render",value:function(){var f=this,h=this.props,C=h.depth,L=h.src,F=(h.namespace,h.name,h.type,h.parent_type),k=h.theme,q=h.jsvRoot,ne=h.iconStyle,pe=E(h,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),ge=this.state,ye=ge.object_type,de=ge.expanded,Ee={};return q||F==="array_group"?F==="array_group"&&(Ee.borderLeft=0,Ee.display="inline"):Ee.paddingLeft=5*this.props.indentWidth,i.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return f.setState(u(u({},f.state),{},{hovered:!0}))},onMouseLeave:function(){return f.setState(u(u({},f.state),{},{hovered:!1}))}},S(k,q?"jsv-root":"objectKeyVal",Ee)),this.getBraceStart(ye,de),de?this.getObjectContent(C,L,u({theme:k,iconStyle:ne},pe)):this.getEllipsis(),i.a.createElement("span",{className:"brace-row"},i.a.createElement("span",{style:u(u({},S(k,"brace").style),{},{paddingLeft:de?"3px":"0px"})},ye==="array"?"]":"}"),de?null:this.getObjectMetaData(L)))}}],[{key:"getDerivedStateFromProps",value:function(f,h){var C=h.prevProps;return f.src!==C.src||f.collapsed!==C.collapsed||f.name!==C.name||f.namespace!==C.namespace||f.rjvId!==C.rjvId?u(u({},l.getState(f)),{},{prevProps:f}):null}}]),l}(i.a.PureComponent);jt.getState=function(b){var g=Object.keys(b.src).length,l=(b.collapsed===!1||b.collapsed!==!0&&b.collapsed>b.depth)&&(!b.shouldCollapse||b.shouldCollapse({name:b.name,src:b.src,type:w(b.src),namespace:b.namespace})===!1)&&g!==0;return{expanded:le.get(b.rjvId,b.namespace,"expanded",l),object_type:b.type==="array"?"array":"object",parent_type:b.type==="array"?"array":"object",size:g,hovered:!1}};var Or=function b(g,l){d(this,b),this.name=g,this.value=l,this.type=w(l)};K(jt);var Bt=jt,jr=function(b){v(l,b);var g=R(l);function l(){var f;d(this,l);for(var h=arguments.length,C=new Array(h),L=0;L<h;L++)C[L]=arguments[L];return(f=g.call.apply(g,[this].concat(C))).render=function(){var F=U(f).props,k=[F.name],q=Bt;return Array.isArray(F.src)&&F.groupArraysAfterLength&&F.src.length>F.groupArraysAfterLength&&(q=gt),i.a.createElement("div",{className:"pretty-json-container object-container"},i.a.createElement("div",{className:"object-content"},i.a.createElement(q,Object.assign({namespace:k,depth:0,jsvRoot:!0},F))))},f}return l}(i.a.PureComponent),Ar=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).closeModal=function(){he.dispatch({rjvId:h.props.rjvId,name:"RESET"})},h.submit=function(){h.props.submit(h.state.input)},h.state={input:f.input?f.input:""},h}return m(l,[{key:"render",value:function(){var f=this,h=this.props,C=h.theme,L=h.rjvId,F=h.isValid,k=this.state.input,q=F(k);return i.a.createElement("div",Object.assign({className:"key-modal-request"},S(C,"key-modal-request"),{onClick:this.closeModal}),i.a.createElement("div",Object.assign({},S(C,"key-modal"),{onClick:function(ne){ne.stopPropagation()}}),i.a.createElement("div",S(C,"key-modal-label"),"Key Name:"),i.a.createElement("div",{style:{position:"relative"}},i.a.createElement("input",Object.assign({},S(C,"key-modal-input"),{className:"key-modal-input",ref:function(ne){return ne&&ne.focus()},spellCheck:!1,value:k,placeholder:"...",onChange:function(ne){f.setState({input:ne.target.value})},onKeyPress:function(ne){q&&ne.key==="Enter"?f.submit():ne.key==="Escape"&&f.closeModal()}})),q?i.a.createElement(Ce,Object.assign({},S(C,"key-modal-submit"),{className:"key-modal-submit",onClick:function(ne){return f.submit()}})):null),i.a.createElement("span",S(C,"key-modal-cancel"),i.a.createElement(Ve,Object.assign({},S(C,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){he.dispatch({rjvId:L,name:"RESET"})}})))))}}]),l}(i.a.PureComponent),Fr=function(b){v(l,b);var g=R(l);function l(){var f;d(this,l);for(var h=arguments.length,C=new Array(h),L=0;L<h;L++)C[L]=arguments[L];return(f=g.call.apply(g,[this].concat(C))).isValid=function(F){var k=f.props.rjvId,q=le.get(k,"action","new-key-request");return F!=""&&Object.keys(q.existing_value).indexOf(F)===-1},f.submit=function(F){var k=f.props.rjvId,q=le.get(k,"action","new-key-request");q.new_value=u({},q.existing_value),q.new_value[F]=f.props.defaultValue,he.dispatch({name:"VARIABLE_ADDED",rjvId:k,data:q})},f}return m(l,[{key:"render",value:function(){var f=this.props,h=f.active,C=f.theme,L=f.rjvId;return h?i.a.createElement(Ar,{rjvId:L,theme:C,isValid:this.isValid,submit:this.submit}):null}}]),l}(i.a.PureComponent),Rr=function(b){v(l,b);var g=R(l);function l(){return d(this,l),g.apply(this,arguments)}return m(l,[{key:"render",value:function(){var f=this.props,h=f.message,C=f.active,L=f.theme,F=f.rjvId;return C?i.a.createElement("div",Object.assign({className:"validation-failure"},S(L,"validation-failure"),{onClick:function(){he.dispatch({rjvId:F,name:"RESET"})}}),i.a.createElement("span",S(L,"validation-failure-label"),h),i.a.createElement(Ve,S(L,"validation-failure-clear"))):null}}]),l}(i.a.PureComponent),Wt=function(b){v(l,b);var g=R(l);function l(f){var h;return d(this,l),(h=g.call(this,f)).rjvId=Date.now().toString(),h.getListeners=function(){return{reset:h.resetState,"variable-update":h.updateSrc,"add-key-request":h.addKeyRequest}},h.updateSrc=function(){var C,L=le.get(h.rjvId,"action","variable-update"),F=L.name,k=L.namespace,q=L.new_value,ne=L.existing_value,pe=(L.variable_removed,L.updated_src),ge=L.type,ye=h.props,de=ye.onEdit,Ee=ye.onDelete,Se=ye.onAdd,se={existing_src:h.state.src,new_value:q,updated_src:pe,name:F,namespace:k,existing_value:ne};switch(ge){case"variable-added":C=Se(se);break;case"variable-edited":C=de(se);break;case"variable-removed":C=Ee(se)}C!==!1?(le.set(h.rjvId,"global","src",pe),h.setState({src:pe})):h.setState({validationFailure:!0})},h.addKeyRequest=function(){h.setState({addKeyRequest:!0})},h.resetState=function(){h.setState({validationFailure:!1,addKeyRequest:!1})},h.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:l.defaultProps.src,name:l.defaultProps.name,theme:l.defaultProps.theme,validationMessage:l.defaultProps.validationMessage,prevSrc:l.defaultProps.src,prevName:l.defaultProps.name,prevTheme:l.defaultProps.theme},h}return m(l,[{key:"componentDidMount",value:function(){le.set(this.rjvId,"global","src",this.state.src);var f=this.getListeners();for(var h in f)le.on(h+"-"+this.rjvId,f[h]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(f,h){h.addKeyRequest!==!1&&this.setState({addKeyRequest:!1}),h.editKeyRequest!==!1&&this.setState({editKeyRequest:!1}),f.src!==this.state.src&&le.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var f=this.getListeners();for(var h in f)le.removeListener(h+"-"+this.rjvId,f[h])}},{key:"render",value:function(){var f=this.state,h=f.validationFailure,C=f.validationMessage,L=f.addKeyRequest,F=f.theme,k=f.src,q=f.name,ne=this.props,pe=ne.style,ge=ne.defaultValue;return i.a.createElement("div",{className:"react-json-view",style:u(u({},S(F,"app-container").style),pe)},i.a.createElement(Rr,{message:C,active:h,theme:F,rjvId:this.rjvId}),i.a.createElement(jr,Object.assign({},this.props,{src:k,name:q,theme:F,type:w(k),rjvId:this.rjvId})),i.a.createElement(Fr,{active:L,theme:F,rjvId:this.rjvId,defaultValue:ge}))}}],[{key:"getDerivedStateFromProps",value:function(f,h){if(f.src!==h.prevSrc||f.name!==h.prevName||f.theme!==h.prevTheme){var C={src:f.src,name:f.name,theme:f.theme,validationMessage:f.validationMessage,prevSrc:f.src,prevName:f.name,prevTheme:f.theme};return l.validateState(C)}return null}}]),l}(i.a.PureComponent);Wt.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},Wt.validateState=function(b){var g={};return w(b.theme)!=="object"||function(l){var f=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if(w(l)==="object"){for(var h=0;h<f.length;h++)if(!(f[h]in l))return!1;return!0}return!1}(b.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'),g.theme="rjv-default"),w(b.src)!=="object"&&w(b.src)!=="array"&&(console.error("react-json-view error:","src property must be a valid json object"),g.name="ERROR",g.src={message:"src property must be a valid json object"}),u(u({},b),g)},K(Wt),n.default=Wt}])})})(Cr);var Ki=Cr.exports;const ir=Yr(Ki),Hi="_jsonview_91oqd_1",Ji="_padding_91oqd_6",Vi="_lightJsonView_91oqd_41",Gi="_eventJsonView_91oqd_45",Yi="_eventPadding_91oqd_49",Xi="_eventTopics_91oqd_53",Qi="_eventData_91oqd_57",ut={jsonview:Hi,padding:Ji,lightJsonView:Vi,eventJsonView:Gi,eventPadding:Yi,eventTopics:Xi,eventData:Qi},sr={light:"shapeshifter:inverted",dark:"tomorrow"},Zi=({className:r,jsonView:a,style:c})=>{var o,u,d,p,m,x,v,y,O,U,$,R,P,i,M;const{mode:t="light"}=Z.useContext(an),[n,e]=Z.useState("json"),s=N=>{e(N),Mn.customEvent(Nn[`FOCUS_ON_CLICK_${N.toUpperCase()}`])};return I.jsx("div",{className:He(ut.jsonview,r,{[ut.eventJsonView]:(o=a==null?void 0:a.raw)==null?void 0:o.isEvent}),id:"json-view-panel",style:c,children:I.jsx(Xr,{onChange:s,items:(u=a==null?void 0:a.debugInfo)!=null&&u.isInternalCall?[{label:"JSON",key:"json",children:I.jsx("div",{className:ut.padding,children:I.jsx(ir,{theme:sr[t],displayArrayKey:!1,quotesOnKeys:!1,displayDataTypes:!1,src:(a==null?void 0:a.json)||{},name:!1,iconStyle:"circle",enableClipboard:!1,displayObjectSize:!1})})}]:[{label:"JSON",key:"json",children:I.jsx("div",{className:ut.padding,children:I.jsx(ir,{theme:sr[t],displayArrayKey:!1,quotesOnKeys:!1,displayDataTypes:!1,src:(a==null?void 0:a.json)||{},name:!1,iconStyle:"circle",enableClipboard:!1,displayObjectSize:!1})})},{label:"Rawdata",key:"rawdata",children:(d=a==null?void 0:a.raw)!=null&&d.isEvent?I.jsxs("div",{className:ut.eventPadding,children:[I.jsx("div",{style:{color:"#00CED1"},children:"Event Topics:"}),I.jsx("div",{className:ut.eventTopics,children:(m=(p=a==null?void 0:a.raw)==null?void 0:p.topics)==null?void 0:m.map(N=>I.jsxs("div",{children:[I.jsx("span",{style:{paddingRight:5},children:N},N),I.jsx(Kt,{text:N})]},N))}),I.jsx("div",{style:{color:"#00CED1"},children:"Event Data:"}),I.jsxs("div",{className:ut.eventData,children:[(x=a==null?void 0:a.raw)==null?void 0:x.inputs,((v=a==null?void 0:a.raw)==null?void 0:v.inputs)&&I.jsx(Kt,{text:(y=a==null?void 0:a.raw)!=null&&y.inputs?tr((O=a==null?void 0:a.raw)==null?void 0:O.inputs):""})]})]}):I.jsxs("div",{className:ut.padding,children:[I.jsx("div",{children:(U=a==null?void 0:a.raw)==null?void 0:U.selector}),I.jsx("div",{children:($=a==null?void 0:a.raw)==null?void 0:$.inputs})]})}],tabBarExtraContent:I.jsx("div",{style:{marginRight:10},children:I.jsx(Mn,{mode:["hit"],data:{customEvent:Nn.FOCUS_ON_JSON_RAW_COPY},children:(R=a==null?void 0:a.raw)!=null&&R.isEvent?n==="json"?I.jsx(Kt,{text:JSON.stringify(rn(a==null?void 0:a.json))}):null:I.jsx(Kt,{text:n==="json"?JSON.stringify(rn(a==null?void 0:a.json)):(P=a==null?void 0:a.raw)!=null&&P.inputs?tr((i=a==null?void 0:a.raw)==null?void 0:i.inputs,(M=a==null?void 0:a.raw)==null?void 0:M.selector):""})})})})})},ws=on(Zi);export{Si as A,Oi as B,ws as C,fs as D,Ca as E,nr as F,ss as G,Jo as H,ls as I,vr as J,ms as K,cs as L,Dn as M,zn as N,Ln as O,hs as R,ks as S,mr as T,Bn as V,Ho as a,us as b,is as c,xs as d,sn as e,vs as f,Ss as g,_s as h,Es as i,bs as j,zt as k,Vo as l,ys as m,Uo as n,gs as o,ds as p,Lt as q,Pt as r,Nt as s,rr as t,aa as u,ps as v,Fi as w,ji as x,Ci as y,Ai as z};