From 382775d514038e276a03acaed836298799efedfc Mon Sep 17 00:00:00 2001 From: Spaaaacccee Date: Mon, 20 May 2024 07:29:28 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Shortest?= =?UTF-8?q?PathLab/posthoc-app@106e556bd2b11663d6a4485f9d94b14c311b42cb=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-795fe74c.js => index-180dc655.js} | 2 +- assets/parseTrace.worker-170b3b1c.js | 27 ++++++++++++++ assets/parseTrace.worker-6a8ce322.js | 27 -------------- assets/parseTraceSlave.worker-06d8e902.js | 35 +++++++++++++++++++ assets/parseTraceSlave.worker-ee96b03a.js | 35 ------------------- index.html | 2 +- 6 files changed, 64 insertions(+), 64 deletions(-) rename assets/{index-795fe74c.js => index-180dc655.js} (99%) create mode 100644 assets/parseTrace.worker-170b3b1c.js delete mode 100644 assets/parseTrace.worker-6a8ce322.js create mode 100644 assets/parseTraceSlave.worker-06d8e902.js delete mode 100644 assets/parseTraceSlave.worker-ee96b03a.js diff --git a/assets/index-795fe74c.js b/assets/index-180dc655.js similarity index 99% rename from assets/index-795fe74c.js rename to assets/index-180dc655.js index 337f4c3..22dd8df 100644 --- a/assets/index-795fe74c.js +++ b/assets/index-180dc655.js @@ -1007,7 +1007,7 @@ void main() { const events = $.__internal__?.events; const parent = $.__internal__?.parent; return ${_e}; - `);return Dt=>Pt(new Proxy(normalize$1(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace$1=/^\$\{\{\s*/,closeBrace$1=/^\s*\}\}/,neverMatch$1=/\b\B/,parser$2=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace$1,VARIABLE_END:closeBrace$1,PIPE_START:neverMatch$1,PIPE_PARAMETER_START:neverMatch$1,QUOTED_STRING:neverMatch$1}),parseString$1=memoizee$1(_e=>{const Pt=parser$2(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken$1(Nt)(Dt)):parseToken$1(Pt.variables[0].name)},{primitive:!0});function parseProperty$1(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty$1);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty$1);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString$1(_e);default:return()=>_e}}function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,Pt){(function(Dt,Nt){typeof commonjsRequire=="function"?_e.exports=Nt():Dt.pluralize=Nt()})(commonjsGlobal,function(){var Dt=[],Nt=[],jt={},Ut={},Gt={};function Wt(nn){return typeof nn=="string"?new RegExp("^"+nn+"$","i"):nn}function qt(nn,rn){return nn===rn?rn:nn===nn.toLowerCase()?rn.toLowerCase():nn===nn.toUpperCase()?rn.toUpperCase():nn[0]===nn[0].toUpperCase()?rn.charAt(0).toUpperCase()+rn.substr(1).toLowerCase():rn.toLowerCase()}function Yt(nn,rn){return nn.replace(/\$(\d{1,2})/g,function(an,sn){return rn[sn]||""})}function Xt(nn,rn){return nn.replace(rn[0],function(an,sn){var ln=Yt(rn[1],arguments);return qt(an===""?nn[sn-1]:an,ln)})}function Zt(nn,rn,an){if(!nn.length||jt.hasOwnProperty(nn))return rn;for(var sn=an.length;sn--;){var ln=an[sn];if(ln[0].test(rn))return Xt(rn,ln)}return rn}function Qt(nn,rn,an){return function(sn){var ln=sn.toLowerCase();return rn.hasOwnProperty(ln)?qt(sn,ln):nn.hasOwnProperty(ln)?qt(sn,nn[ln]):Zt(ln,sn,an)}}function en(nn,rn,an,sn){return function(ln){var un=ln.toLowerCase();return rn.hasOwnProperty(un)?!0:nn.hasOwnProperty(un)?!1:Zt(un,un,an)===un}}function tn(nn,rn,an){var sn=rn===1?tn.singular(nn):tn.plural(nn);return(an?rn+" ":"")+sn}return tn.plural=Qt(Gt,Ut,Dt),tn.isPlural=en(Gt,Ut,Dt),tn.singular=Qt(Ut,Gt,Nt),tn.isSingular=en(Ut,Gt,Nt),tn.addPluralRule=function(nn,rn){Dt.push([Wt(nn),rn])},tn.addSingularRule=function(nn,rn){Nt.push([Wt(nn),rn])},tn.addUncountableRule=function(nn){if(typeof nn=="string"){jt[nn.toLowerCase()]=!0;return}tn.addPluralRule(nn,"$0"),tn.addSingularRule(nn,"$0")},tn.addIrregularRule=function(nn,rn){rn=rn.toLowerCase(),nn=nn.toLowerCase(),Gt[nn]=rn,Ut[rn]=nn},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(nn){return tn.addIrregularRule(nn[0],nn[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(nn){return tn.addPluralRule(nn[0],nn[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(nn){return tn.addSingularRule(nn[0],nn[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(tn.addUncountableRule),tn})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-d00400fc.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-6a8ce322.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}class ParseTraceWorkerLegacy extends Worker{constructor(){super(parseTraceWorkerLegacyUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker),parseTraceLegacyAsync=usingMemoizedWorkerTask(ParseTraceWorkerLegacy);function useTraceParser(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen");return reactExports.useCallback(()=>Dt(async()=>{var Nt;if(_e!=null&&_e.trace){Pt("Processing trace...");try{const jt=_e.trace.version==="1.4.0"?await parseTraceAsync(_e):await parseTraceLegacyAsync(_e);return Pt("Trace loaded",pluralize("step",((Nt=jt==null?void 0:jt.stepsPersistent)==null?void 0:Nt.length)??0,!0)),{components:jt,content:_e.trace}}catch(jt){return console.error(jt),Pt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[_e])}function mapProperties(_e={},Pt){const Dt={};for(const Nt of Object.keys(_e))Dt[Nt]=Nt==="$"?_e[Nt]:Pt(_e[Nt],Nt,_e);return Object.setPrototypeOf(Dt,_e)}function normalize(_e={}){return mapProperties(_e,Pt=>lodashExports$1.isFunction(Pt)?Pt:parseProperty(Pt))}const parseToken=_e=>{const Pt=Function("$",`return ${_e};`);return Dt=>Pt(new Proxy(normalize(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memoizee$1(_e=>{const Pt=parser$1(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken(Nt)(Dt)):parseToken(Pt.variables[0].name)},{primitive:!0});function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString(_e);default:return()=>_e}}function useTraceContent(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen"),Nt=useConnectionResolver(),[{traces:jt}]=useFeatures(),Ut=reactExports.useMemo(()=>memoizee$1(async({source:Xt,id:Zt})=>{if(Xt&&Zt){const Qt=Nt({url:Xt});if(Qt){Pt("Fetching trace...");const en=await Qt.transport().call("features/trace",{id:Zt});return en==null?void 0:en.content}}},{normalizer:JSON.stringify}),[Nt,Pt]),{content:Gt,source:Wt,id:qt}=_e??{},{lastModified:Yt}=lodashExports$1.find(jt,{id:qt,source:Wt})??{};return useAsync(()=>Dt(async()=>{if(qt)return{..._e,content:Gt||await Ut({source:Wt,id:qt,lastModified:Yt})}}),[Ut,Gt,Wt,qt,Yt])}const labelScale=1.25,reuseCanvas={canvas:document.createElement("canvas")};function getTextWidth(_e,Pt){const Nt=(reuseCanvas.canvas||(reuseCanvas.canvas=document.createElement("canvas"))).getContext("2d");return Nt.font=Pt,Nt.measureText(_e).width}const isNullish=_e=>_e==null;function makePathIndex(_e){const Pt=[],Dt={},Nt={},jt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Wt,qt)=>({step:qt,id:Wt.id,pId:Wt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Wt,pId:qt},Yt)=>{!isNullish(qt)&&Dt[Wt]!==qt&&(Pt.push({id:Wt,pId:qt,step:Yt,prev:lodashExports$1.last(Pt)}),Dt[Wt]=qt),Nt[Yt]=lodashExports$1.last(Pt)});const Ut=(Wt,qt=(Yt=>(Yt=_e==null?void 0:_e.events)==null?void 0:Yt.length)()??0)=>{let Xt=Nt[qt];for(;Xt;){if(Xt.id===Wt)return Xt.pId;Xt=Xt.prev}};return{getParent:Ut,getPath:Wt=>{const qt=[Wt];let Yt={...(_e.events??[])[Wt],step:Wt};for(;Yt;){const Xt=Ut(Yt.id,Yt.step);if(Xt){const Zt=lodashExports$1.findLast(jt[Xt],Qt=>Qt.step<=Yt.step);if(Zt)qt.push(Zt.step),Yt=Zt;else break}else break}return qt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Trace"},error:_e=>{var Pt,Dt,Nt,jt;return((Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.error)||((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async Pt=>{Pt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Dt){return console.error(Dt),Pt(`Error opening, ${lodashExports$1.get(Dt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Dt,"message"),name:lodashExports$1.startCase(name$2(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:Pt})=>{var Dt,Nt,jt,Ut,Gt,Wt,qt,Yt,Xt,Zt,Qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:en=>Pt(tn=>lodashExports$1.set(tn,"source.trace",en)),value:(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace})}),((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.trace)==null?void 0:jt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Gt=(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace)==null?void 0:Gt.error})}),((qt=(Wt=_e==null?void 0:_e.source)==null?void 0:Wt.parsedTrace)==null?void 0:qt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Qt=(Zt=_e==null?void 0:_e.source)==null?void 0:Zt.parsedTrace)==null?void 0:Qt.content})})]})}),service:withProduce(({value:_e,produce:Pt})=>{var Ut;const{palette:Dt}=useTheme(),{result:Nt}=useTraceContent((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace),jt=useTraceParser({trace:Nt==null?void 0:Nt.content,context:{theme:{foreground:Dt.text.primary,background:Dt.background.paper,accent:Dt.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(Gt,Wt)=>getShade(Wt,Dt.mode,500,400))},themeAccent:Dt.primary.main,themeTextPrimary:Dt.text.primary,themeBackground:Dt.background.paper},view:"main"});return reactExports.useEffect(()=>{Pt(Gt=>{var Wt,qt;return lodashExports$1.set(Gt,"source.playbackTo",((qt=(Wt=Nt==null?void 0:Nt.content)==null?void 0:Wt.events)==null?void 0:qt.length)??0)})},[Nt==null?void 0:Nt.key,Nt==null?void 0:Nt.lastModified]),useEffectWhen(async()=>{const Gt=await jt();Pt(Wt=>{lodashExports$1.set(Wt,"source.parsedTrace",Gt),lodashExports$1.set(Wt,"viewKey",nanoid$1())})},[jt],[Nt==null?void 0:Nt.key,Dt.mode]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:Pt})=>{var qt,Yt,Xt;const Dt=(Yt=(qt=_e==null?void 0:_e.source)==null?void 0:qt.parsedTrace)==null?void 0:Yt.components,Nt=useThrottle$1(((Xt=_e==null?void 0:_e.source)==null?void 0:Xt.step)??0,1e3/60),jt=use2DPath(_e,Pt,Nt),Ut=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsPersistent,Zt=>lodashExports$1.map(Zt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Gt=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsTransient,Zt=>lodashExports$1.map(Zt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Wt=reactExports.useMemo(()=>[Gt[Nt]??[]],[Gt,Nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{end:Nt,nodes:Ut}),jsxRuntimeExports.jsx(NodeList,{nodes:Wt}),jt]})},steps:_e=>{var Pt,Dt,Nt;return((Nt=(Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedTrace)==null?void 0:Dt.content)==null?void 0:Nt.events)??[]},provideSelectionInfo:({layer:_e,event:Pt,children:Dt})=>{const{layer:Nt,setLayer:jt}=useLayer(_e),Ut=reactExports.useMemo(()=>{var Yt,Xt,Zt,Qt,en;const Gt=((Zt=(Xt=(Yt=Nt==null?void 0:Nt.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.content)==null?void 0:Zt.events)??[],Wt=lodashExports$1.chain((Qt=Pt==null?void 0:Pt.info)==null?void 0:Qt.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).map(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((tn,nn)=>tn-nn).value(),qt=lodashExports$1.chain((en=Pt==null?void 0:Pt.info)==null?void 0:en.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).filter(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.info}).value();if(Wt.length&&Nt){const tn=lodashExports$1.last(Wt),nn=Gt[tn];if(nn)return{...lodashExports$1.keyBy(lodashExports$1.map(qt,(rn,an)=>({key:`${Nt.key}.${an}`,primary:`Selection in ${inferLayerName(Nt)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:rn.meta.info,vertical:!0})}}})),"key"),[Nt.key]:{primary:inferLayerName(Nt),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:nn,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:nn,trigger:rn=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:rn,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",children:["Step ",tn]})]})})},[`${nn}`]:{primary:`Go to step ${tn}`,secondary:`${lodashExports$1.startCase(nn.type)}`,action:()=>jt(produce(Nt,rn=>{lodashExports$1.set(rn,"source.step",tn)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[Nt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Dt==null?void 0:Dt(Ut)})},getSources:_e=>{var Dt;const Pt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace;return Pt?[{id:"trace",name:`(Source) ${Pt.name}`,language:"yaml",content:dump(Pt.content,{noCompatMode:!0})}]:[]}},labelSize=.8;function use2DPath(_e,Pt=0,Dt=0){var Gt,Wt,qt;const{palette:Nt}=useTheme(),{getPath:jt}=reactExports.useMemo(()=>{var Yt,Xt,Zt;return((Yt=_e==null?void 0:_e.source)==null?void 0:Yt.playback)!=="playing"&&((Zt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)!=null&&Zt.content)?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Wt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:Wt.content,(qt=_e==null?void 0:_e.source)==null?void 0:qt.playback]);return reactExports.useMemo(()=>{var Zt,Qt,en,tn,nn,rn,an,sn,ln,un,pn,mn;const Yt=interpolate$1([Nt.background.paper,Nt.text.primary])(.05),Xt=(Qt=(Zt=_e==null?void 0:_e.source)==null?void 0:Zt.parsedTrace)==null?void 0:Qt.content;if((en=Xt==null?void 0:Xt.render)!=null&&en.path||Xt!=null&&Xt.pivot){const dn=((nn=(tn=Xt==null?void 0:Xt.render)==null?void 0:tn.path)==null?void 0:nn.pivot)??(Xt==null?void 0:Xt.pivot)??{},hn=(an=(rn=Xt==null?void 0:Xt.render)==null?void 0:rn.path)!=null&&an.scale?Xt.render.path.scale*(1/.3):((sn=Xt==null?void 0:Xt.pivot)==null?void 0:sn.scale)??1,{x:vn,y:En}=dn,_n=(Xt==null?void 0:Xt.version)==="1.4.0"?parseProperty$1:Fn=>Bn=>parseProperty(Fn)({event:Bn}),Cn=vn?_n(vn):Fn=>Fn.x,Tn=En?_n(En):Fn=>Fn.y,yn=lodashExports$1.map(jt(Dt),Fn=>{var Bn;return(Bn=Xt==null?void 0:Xt.events)==null?void 0:Bn[Fn]}),Nn={x:Cn({x:0,y:0,...lodashExports$1.head(yn)}),y:Tn({x:0,y:0,...lodashExports$1.head(yn)})};if(yn.length){const Fn=`${lodashExports$1.startCase((ln=lodashExports$1.head(yn))==null?void 0:ln.type)} ${(un=lodashExports$1.head(yn))==null?void 0:un.id}`,Bn=getTextWidth(Fn,`${labelSize*hn*labelScale}px Inter`),Sn=[{$:"circle",x:Cn({x:0,y:0,...lodashExports$1.last(yn)}),y:Tn({x:0,y:0,...lodashExports$1.last(yn)}),fill:Nt.primary.main,radius:.3*hn},{$:"path",points:yn.map(kn=>({x:Cn({x:0,y:0,...kn}),y:Tn({x:0,y:0,...kn})})),fill:Nt.primary.main,alpha:1,lineWidth:.3*hn},{$:"circle",...Nn,fill:Nt.primary.main,radius:.3*hn},{$:"rect",alpha:.85,fill:Yt,x:Nn.x-.3*hn*labelScale,y:Nn.y-2*hn*labelScale,width:Bn+(.8+.5)*hn*labelScale,height:1.4*hn*labelScale},{$:"path",points:[{x:Nn.x,y:Nn.y},{x:Nn.x+(-.3-.05)*hn*labelScale,y:Nn.y+(-2+1.4)*hn*labelScale}],fill:getColorHex((pn=lodashExports$1.head(yn))==null?void 0:pn.type),alpha:1,lineWidth:.1*hn*labelScale},{$:"rect",x:Nn.x+(-.3-.1)*hn*labelScale,y:Nn.y+-2*hn*labelScale,fill:getColorHex((mn=lodashExports$1.head(yn))==null?void 0:mn.type),height:1.4*hn*labelScale,width:.1*hn*labelScale},{$:"rect",alpha:0,fill:"rgba(255, 255, 255, 0)",x:Nn.x-.3*hn*labelScale,y:Nn.y-2*hn*labelScale,width:Bn*2,height:1*hn*labelScale,label:Fn,"label-size":labelSize*hn*labelScale,"label-x":(.1+.5)*hn*labelScale,"label-y":1*hn*labelScale,"label-color":Nt.text.primary}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Sn,kn=>({component:kn,meta:{source:"path",sourceLayerIndex:-99999+Pt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,Pt,Dt,Nt,jt])}const mapValuesDeep=(_e,Pt)=>lodashExports$1.isArray(_e)?lodashExports$1.map(_e,Dt=>mapValuesDeep(Dt,Pt)):lodashExports$1.isObject(_e)?lodashExports$1.mapValues(_e,Dt=>mapValuesDeep(Dt,Pt)):Pt(_e);async function findConnection(_e,Pt,Dt){for(const Nt of _e){const jt=await Nt.transport().call("features/algorithms"),Ut=await Nt.transport().call("features/formats");if(lodashExports$1.find(jt,{id:Pt})&&lodashExports$1.find(Ut,{id:Dt}))return Nt}}const maxStringPropLength=40,controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:Pt})=>{var Yt,Xt;const{algorithm:Dt}=(_e==null?void 0:_e.source)??{},{layers:Nt,allLayers:jt,layer:Ut,key:Gt}=useLayer(void 0,Zt=>{var Qt;return((Qt=Zt.source)==null?void 0:Qt.type)==="map"}),[{algorithms:Wt}]=useFeatures(),[qt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Dt,items:Wt.map(Zt=>{var Qt;return{...Zt,description:(Qt=lodashExports$1.find(qt,{url:Zt.source}))==null?void 0:Qt.name}}),onChange:async Zt=>Pt(Qt=>lodashExports$1.set(Qt,"source.algorithm",Zt))})}),!(Wt!=null&&Wt.length)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Gt,items:jt.map(Zt=>({id:Zt.key,hidden:!lodashExports$1.find(Nt,Qt=>Qt.key===Zt.key),name:inferLayerName(Zt)})),onChange:async Zt=>Pt(Qt=>lodashExports$1.set(Qt,"source.mapLayerKey",Zt))})}),Ut&&jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Ut)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.trace)==null?void 0:Xt.content})})]})}),service:withProduce(({value:_e,produce:Pt,onChange:Dt})=>{var tn;const Nt=controller$1.service,jt=useSnackbar(),{algorithm:Ut,mapLayerKey:Gt,start:Wt,end:qt}=(_e==null?void 0:_e.source)??{},[{layers:Yt}]=useLayers(),[Xt]=useConnections(),[{algorithms:Zt}]=useFeatures(),Qt=reactExports.useMemo(()=>{if(Gt&&Ut)return lodashExports$1.find(Yt,{key:Gt})},[Gt,Ut,Yt]),{result:en}=useMapContent((tn=Qt==null?void 0:Qt.source)==null?void 0:tn.map);return useEffectWhenAsync(async nn=>{var rn;if(Qt&&en&&Ut){const{format:an}=((rn=Qt==null?void 0:Qt.source)==null?void 0:rn.map)??{},{content:sn}=en??{};if(an&&sn){const ln=await findConnection(Xt,Ut,an),un=lodashExports$1.find(Zt,{id:Ut});if(ln){jt(`Executing ${inferLayerName(_e)} using ${ln.name}...`);const pn={format:an,instances:[{start:Wt??0,end:qt??0}],mapURI:`map:${encodeURIComponent(sn)}`,algorithm:Ut},mn=await ln.transport().call("solve/pathfinding",pn);nn.aborted?jt("Canceled"):Pt(dn=>{lodashExports$1.set(dn,"source.trace",{name:`${un==null?void 0:un.name}`,content:mn,key:nanoid$1(),id:nanoid$1()}),lodashExports$1.set(dn,"source.query",pn)})}}}},[Qt,Xt,Ut,Wt,qt,Pt,jt,_e,Zt],[Qt,en,Xt,Ut,Wt,qt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Nt,{value:_e,onChange:Dt})})}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:Pt,layer:Dt})=>{const Nt=controller$1.provideSelectionInfo,{layer:jt,setLayer:Ut,layers:Gt}=useLayer(Dt),Wt=reactExports.useMemo(()=>{const Yt=lodashExports$1.filter(Gt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(Yt,Xt=>{var Qt,en,tn,nn;const{parsedMap:Zt}=(Xt==null?void 0:Xt.source)??{};if(Zt&&Pt){const rn=(nn=(tn=getParser((en=(Qt=Xt==null?void 0:Xt.source)==null?void 0:Qt.map)==null?void 0:en.format))==null?void 0:tn.hydrate)==null?void 0:nn.call(tn,Zt);if(rn){const an=(Pt==null?void 0:Pt.world)&&rn.snap(Pt.world);if(an){const sn=(Pt==null?void 0:Pt.world)&&rn.nodeAt(an);return{point:an,node:sn,key:Xt.key,name:inferLayerName(Xt)}}}}}))},[Gt]),qt=reactExports.useMemo(()=>!!jt&&!!Wt.length&&{[jt.key]:{primary:inferLayerName(jt),items:{...lodashExports$1.reduce(Wt,(Yt,Xt)=>({...Yt,[`${Dt}-${Xt==null?void 0:Xt.key}-source`]:{primary:"Set as source",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Zt=>{lodashExports$1.set(Zt,"source.start",Xt==null?void 0:Xt.node),lodashExports$1.set(Zt,"source.query",void 0),lodashExports$1.set(Zt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Zt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Dt}-${Xt==null?void 0:Xt.key}-destination`]:{primary:"Set as destination",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Zt=>{lodashExports$1.set(Zt,"source.end",Xt==null?void 0:Xt.node),lodashExports$1.set(Zt,"source.query",void 0),lodashExports$1.set(Zt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Zt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Wt,jt,Gt,Ut]);return jsxRuntimeExports.jsx(Nt,{event:Pt,layer:Dt,children:Yt=>_e==null?void 0:_e(lodashExports$1.merge(Yt,qt))})},getSources:_e=>{const{algorithm:Pt=null,start:Dt=0,end:Nt=0,query:jt}=(_e==null?void 0:_e.source)??{};return[{id:"params",name:"Query",language:"yaml",content:dump({algorithm:Pt,instances:[{start:Dt,end:Nt}],mapURI:"(...)",format:"(...)",...mapValuesDeep(jt,Ut=>typeof Ut=="string"&&Ut.length>maxStringPropLength?`${lodashExports$1.truncate(Ut,{length:maxStringPropLength})} (${Ut.length} characters)`:Ut)},{noCompatMode:!0})},...controller$1.getSources(_e)]}};function getLayerHandler(_e){var Pt;return layerHandlers[((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var Pt,Dt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(Pt=_e==null?void 0:_e.source)!=null&&Pt.type?layerHandlers[(Dt=_e.source)==null?void 0:Dt.type].inferName(_e):"Untitled Layer"}var ReactReduxContext=React.createContext(null);function defaultNoopBatch(_e){_e()}var batch=defaultNoopBatch,setBatch=function(Pt){return batch=Pt},getBatch=function(){return batch};function createListenerCollection(){var _e=getBatch(),Pt=null,Dt=null;return{clear:function(){Pt=null,Dt=null},notify:function(){_e(function(){for(var jt=Pt;jt;)jt.callback(),jt=jt.next})},get:function(){for(var jt=[],Ut=Pt;Ut;)jt.push(Ut),Ut=Ut.next;return jt},subscribe:function(jt){var Ut=!0,Gt=Dt={callback:jt,next:null,prev:Dt};return Gt.prev?Gt.prev.next=Gt:Pt=Gt,function(){!Ut||Pt===null||(Ut=!1,Gt.next?Gt.next.prev=Gt.prev:Dt=Gt.prev,Gt.prev?Gt.prev.next=Gt.next:Pt=Gt.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(_e,Pt){var Dt,Nt=nullListeners;function jt(Zt){return qt(),Nt.subscribe(Zt)}function Ut(){Nt.notify()}function Gt(){Xt.onStateChange&&Xt.onStateChange()}function Wt(){return!!Dt}function qt(){Dt||(Dt=Pt?Pt.addNestedSub(Gt):_e.subscribe(Gt),Nt=createListenerCollection())}function Yt(){Dt&&(Dt(),Dt=void 0,Nt.clear(),Nt=nullListeners)}var Xt={addNestedSub:jt,notifyNestedSubs:Ut,handleChangeWrapper:Gt,isSubscribed:Wt,trySubscribe:qt,tryUnsubscribe:Yt,getListeners:function(){return Nt}};return Xt}var useIsomorphicLayoutEffect$4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(_e){var Pt=_e.store,Dt=_e.context,Nt=_e.children,jt=reactExports.useMemo(function(){var Wt=createSubscription(Pt);return{store:Pt,subscription:Wt}},[Pt]),Ut=reactExports.useMemo(function(){return Pt.getState()},[Pt]);useIsomorphicLayoutEffect$4(function(){var Wt=jt.subscription;return Wt.onStateChange=Wt.notifyNestedSubs,Wt.trySubscribe(),Ut!==Pt.getState()&&Wt.notifyNestedSubs(),function(){Wt.tryUnsubscribe(),Wt.onStateChange=null}},[jt,Ut]);var Gt=Dt||ReactReduxContext;return React.createElement(Gt.Provider,{value:jt},Nt)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(_e,Pt){var Dt=_e[1];return[Pt.payload,Dt+1]}function useIsomorphicLayoutEffectWithArgs(_e,Pt,Dt){useIsomorphicLayoutEffect$4(function(){return _e.apply(void 0,Pt)},Dt)}function captureWrapperProps(_e,Pt,Dt,Nt,jt,Ut,Gt){_e.current=Nt,Pt.current=jt,Dt.current=!1,Ut.current&&(Ut.current=null,Gt())}function subscribeUpdates(_e,Pt,Dt,Nt,jt,Ut,Gt,Wt,qt,Yt){if(_e){var Xt=!1,Zt=null,Qt=function(){if(!Xt){var nn=Pt.getState(),rn,an;try{rn=Nt(nn,jt.current)}catch(sn){an=sn,Zt=sn}an||(Zt=null),rn===Ut.current?Gt.current||qt():(Ut.current=rn,Wt.current=rn,Gt.current=!0,Yt({type:"STORE_UPDATED",payload:{error:an}}))}};Dt.onStateChange=Qt,Dt.trySubscribe(),Qt();var en=function(){if(Xt=!0,Dt.tryUnsubscribe(),Dt.onStateChange=null,Zt)throw Zt};return en}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(_e,Pt){Pt===void 0&&(Pt={});var Dt=Pt,Nt=Dt.getDisplayName,jt=Nt===void 0?function(ln){return"ConnectAdvanced("+ln+")"}:Nt,Ut=Dt.methodName,Gt=Ut===void 0?"connectAdvanced":Ut,Wt=Dt.renderCountProp,qt=Wt===void 0?void 0:Wt,Yt=Dt.shouldHandleStateChanges,Xt=Yt===void 0?!0:Yt,Zt=Dt.storeKey,Qt=Zt===void 0?"store":Zt;Dt.withRef;var en=Dt.forwardRef,tn=en===void 0?!1:en,nn=Dt.context,rn=nn===void 0?ReactReduxContext:nn,an=_objectWithoutPropertiesLoose$3(Dt,_excluded$2),sn=rn;return function(un){var pn=un.displayName||un.name||"Component",mn=jt(pn),dn=_extends$2({},an,{getDisplayName:jt,methodName:Gt,renderCountProp:qt,shouldHandleStateChanges:Xt,storeKey:Qt,displayName:mn,wrappedComponentName:pn,WrappedComponent:un}),hn=an.pure;function vn(yn){return _e(yn.dispatch,dn)}var En=hn?reactExports.useMemo:function(yn){return yn()};function _n(yn){var Nn=reactExports.useMemo(function(){var fr=yn.reactReduxForwardedRef,yr=_objectWithoutPropertiesLoose$3(yn,_excluded2);return[yn.context,fr,yr]},[yn]),Fn=Nn[0],Bn=Nn[1],Sn=Nn[2],kn=reactExports.useMemo(function(){return Fn&&Fn.Consumer&&reactIsExports.isContextConsumer(React.createElement(Fn.Consumer,null))?Fn:sn},[Fn,sn]),zn=reactExports.useContext(kn),In=!!yn.store&&!!yn.store.getState&&!!yn.store.dispatch;zn&&zn.store;var Rn=In?yn.store:zn.store,Kn=reactExports.useMemo(function(){return vn(Rn)},[Rn]),Jn=reactExports.useMemo(function(){if(!Xt)return NO_SUBSCRIPTION_ARRAY;var fr=createSubscription(Rn,In?null:zn.subscription),yr=fr.notifyNestedSubs.bind(fr);return[fr,yr]},[Rn,In,zn]),ar=Jn[0],$n=Jn[1],On=reactExports.useMemo(function(){return In?zn:_extends$2({},zn,{subscription:ar})},[In,zn,ar]),Mn=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),Vn=Mn[0],gn=Vn[0],bn=Mn[1];if(gn&&gn.error)throw gn.error;var wn=reactExports.useRef(),Gn=reactExports.useRef(Sn),Zn=reactExports.useRef(),Pn=reactExports.useRef(!1),er=En(function(){return Zn.current&&Sn===Gn.current?Zn.current:Kn(Rn.getState(),Sn)},[Rn,gn,Sn]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Gn,wn,Pn,Sn,er,Zn,$n]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[Xt,Rn,ar,Kn,Gn,wn,Pn,Zn,$n,bn],[Rn,ar,Kn]);var or=reactExports.useMemo(function(){return React.createElement(un,_extends$2({},er,{ref:Bn}))},[Bn,un,er]),tr=reactExports.useMemo(function(){return Xt?React.createElement(kn.Provider,{value:On},or):or},[kn,or,On]);return tr}var Cn=hn?React.memo(_n):_n;if(Cn.WrappedComponent=un,Cn.displayName=_n.displayName=mn,tn){var Tn=React.forwardRef(function(Nn,Fn){return React.createElement(Cn,_extends$2({},Nn,{reactReduxForwardedRef:Fn}))});return Tn.displayName=mn,Tn.WrappedComponent=un,hoistStatics(Tn,un)}return hoistStatics(Cn,un)}}function is$5(_e,Pt){return _e===Pt?_e!==0||Pt!==0||1/_e===1/Pt:_e!==_e&&Pt!==Pt}function shallowEqual(_e,Pt){if(is$5(_e,Pt))return!0;if(typeof _e!="object"||_e===null||typeof Pt!="object"||Pt===null)return!1;var Dt=Object.keys(_e),Nt=Object.keys(Pt);if(Dt.length!==Nt.length)return!1;for(var jt=0;jt=0;Nt--){var jt=Pt[Nt](_e);if(jt)return jt}return function(Ut,Gt){throw new Error("Invalid value of type "+typeof _e+" for "+Dt+" argument when connecting component "+Gt.wrappedComponentName+".")}}function strictEqual(_e,Pt){return _e===Pt}function createConnect(_e){var Pt=_e===void 0?{}:_e,Dt=Pt.connectHOC,Nt=Dt===void 0?connectAdvanced:Dt,jt=Pt.mapStateToPropsFactories,Ut=jt===void 0?defaultMapStateToPropsFactories:jt,Gt=Pt.mapDispatchToPropsFactories,Wt=Gt===void 0?defaultMapDispatchToPropsFactories:Gt,qt=Pt.mergePropsFactories,Yt=qt===void 0?defaultMergePropsFactories:qt,Xt=Pt.selectorFactory,Zt=Xt===void 0?finalPropsSelectorFactory:Xt;return function(en,tn,nn,rn){rn===void 0&&(rn={});var an=rn,sn=an.pure,ln=sn===void 0?!0:sn,un=an.areStatesEqual,pn=un===void 0?strictEqual:un,mn=an.areOwnPropsEqual,dn=mn===void 0?shallowEqual:mn,hn=an.areStatePropsEqual,vn=hn===void 0?shallowEqual:hn,En=an.areMergedPropsEqual,_n=En===void 0?shallowEqual:En,Cn=_objectWithoutPropertiesLoose$3(an,_excluded),Tn=match(en,Ut,"mapStateToProps"),yn=match(tn,Wt,"mapDispatchToProps"),Nn=match(nn,Yt,"mergeProps");return Nt(Zt,_extends$2({methodName:"connect",getDisplayName:function(Bn){return"Connect("+Bn+")"},shouldHandleStateChanges:!!en,initMapStateToProps:Tn,initMapDispatchToProps:yn,initMergeProps:Nn,pure:ln,areStatesEqual:pn,areOwnPropsEqual:dn,areStatePropsEqual:vn,areMergedPropsEqual:_n},Cn))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(_e[Dt]!==Pt[Dt])return!1;return!0}function useMemoOne(_e,Pt){var Dt=reactExports.useState(function(){return{inputs:Pt,result:_e()}})[0],Nt=reactExports.useRef(!0),jt=reactExports.useRef(Dt),Ut=Nt.current||!!(Pt&&jt.current.inputs&&areInputsEqual$1(Pt,jt.current.inputs)),Gt=Ut?jt.current:{inputs:Pt,result:_e()};return reactExports.useEffect(function(){Nt.current=!1,jt.current=Gt},[Gt]),Gt.result}function useCallbackOne(_e,Pt){return useMemoOne(function(){return _e},Pt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,Pt){if(!_e){if(isProduction)throw new Error(prefix$2);var Dt=typeof Pt=="function"?Pt():Pt,Nt=Dt?"".concat(prefix$2,": ").concat(Dt):prefix$2;throw new Error(Nt)}}var getRect=function(Pt){var Dt=Pt.top,Nt=Pt.right,jt=Pt.bottom,Ut=Pt.left,Gt=Nt-Ut,Wt=jt-Dt,qt={top:Dt,right:Nt,bottom:jt,left:Ut,width:Gt,height:Wt,x:Ut,y:Dt,center:{x:(Nt+Ut)/2,y:(jt+Dt)/2}};return qt},expand=function(Pt,Dt){return{top:Pt.top-Dt.top,left:Pt.left-Dt.left,bottom:Pt.bottom+Dt.bottom,right:Pt.right+Dt.right}},shrink=function(Pt,Dt){return{top:Pt.top+Dt.top,left:Pt.left+Dt.left,bottom:Pt.bottom-Dt.bottom,right:Pt.right-Dt.right}},shift=function(Pt,Dt){return{top:Pt.top+Dt.y,left:Pt.left+Dt.x,bottom:Pt.bottom+Dt.y,right:Pt.right+Dt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(Pt){var Dt=Pt.borderBox,Nt=Pt.margin,jt=Nt===void 0?noSpacing$1:Nt,Ut=Pt.border,Gt=Ut===void 0?noSpacing$1:Ut,Wt=Pt.padding,qt=Wt===void 0?noSpacing$1:Wt,Yt=getRect(expand(Dt,jt)),Xt=getRect(shrink(Dt,Gt)),Zt=getRect(shrink(Xt,qt));return{marginBox:Yt,borderBox:getRect(Dt),paddingBox:Xt,contentBox:Zt,margin:jt,border:Gt,padding:qt}},parse$6=function(Pt){var Dt=Pt.slice(0,-2),Nt=Pt.slice(-2);if(Nt!=="px")return 0;var jt=Number(Dt);return isNaN(jt)&&invariant$1(!1),jt},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function(Pt,Dt){var Nt=Pt.borderBox,jt=Pt.border,Ut=Pt.margin,Gt=Pt.padding,Wt=shift(Nt,Dt);return createBox({borderBox:Wt,border:jt,margin:Ut,padding:Gt})},withScroll=function(Pt,Dt){return Dt===void 0&&(Dt=getWindowScroll$1()),offset(Pt,Dt)},calculateBox=function(Pt,Dt){var Nt={top:parse$6(Dt.marginTop),right:parse$6(Dt.marginRight),bottom:parse$6(Dt.marginBottom),left:parse$6(Dt.marginLeft)},jt={top:parse$6(Dt.paddingTop),right:parse$6(Dt.paddingRight),bottom:parse$6(Dt.paddingBottom),left:parse$6(Dt.paddingLeft)},Ut={top:parse$6(Dt.borderTopWidth),right:parse$6(Dt.borderRightWidth),bottom:parse$6(Dt.borderBottomWidth),left:parse$6(Dt.borderLeftWidth)};return createBox({borderBox:Pt,margin:Nt,padding:jt,border:Ut})},getBox=function(Pt){var Dt=Pt.getBoundingClientRect(),Nt=window.getComputedStyle(Pt);return calculateBox(Dt,Nt)},safeIsNaN=Number.isNaN||function(Pt){return typeof Pt=="number"&&Pt!==Pt};function isEqual$2(_e,Pt){return!!(_e===Pt||safeIsNaN(_e)&&safeIsNaN(Pt))}function areInputsEqual(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(!isEqual$2(_e[Dt],Pt[Dt]))return!1;return!0}function memoizeOne(_e,Pt){Pt===void 0&&(Pt=areInputsEqual);var Dt,Nt=[],jt,Ut=!1;function Gt(){for(var Wt=[],qt=0;qt");return Nt.callbacks},Nt.setCallbacks=function(Wt){Nt.callbacks=Wt},Nt}var Dt=Pt.prototype;return Dt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Dt.componentDidCatch=function(jt){if(jt instanceof RbdInvariant){this.setState({});return}throw jt},Dt.componentWillUnmount=function(){this.unbind()},Dt.render=function(){return this.props.children(this.setCallbacks)},Pt}(React.Component),dragHandleUsageInstructions=` + `);return Dt=>Pt(new Proxy(normalize$1(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace$1=/^\$\{\{\s*/,closeBrace$1=/^\s*\}\}/,neverMatch$1=/\b\B/,parser$2=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace$1,VARIABLE_END:closeBrace$1,PIPE_START:neverMatch$1,PIPE_PARAMETER_START:neverMatch$1,QUOTED_STRING:neverMatch$1}),parseString$1=memoizee$1(_e=>{const Pt=parser$2(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken$1(Nt)(Dt)):parseToken$1(Pt.variables[0].name)},{primitive:!0});function parseProperty$1(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty$1);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty$1);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString$1(_e);default:return()=>_e}}function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,Pt){(function(Dt,Nt){typeof commonjsRequire=="function"?_e.exports=Nt():Dt.pluralize=Nt()})(commonjsGlobal,function(){var Dt=[],Nt=[],jt={},Ut={},Gt={};function Wt(nn){return typeof nn=="string"?new RegExp("^"+nn+"$","i"):nn}function qt(nn,rn){return nn===rn?rn:nn===nn.toLowerCase()?rn.toLowerCase():nn===nn.toUpperCase()?rn.toUpperCase():nn[0]===nn[0].toUpperCase()?rn.charAt(0).toUpperCase()+rn.substr(1).toLowerCase():rn.toLowerCase()}function Yt(nn,rn){return nn.replace(/\$(\d{1,2})/g,function(an,sn){return rn[sn]||""})}function Xt(nn,rn){return nn.replace(rn[0],function(an,sn){var ln=Yt(rn[1],arguments);return qt(an===""?nn[sn-1]:an,ln)})}function Zt(nn,rn,an){if(!nn.length||jt.hasOwnProperty(nn))return rn;for(var sn=an.length;sn--;){var ln=an[sn];if(ln[0].test(rn))return Xt(rn,ln)}return rn}function Qt(nn,rn,an){return function(sn){var ln=sn.toLowerCase();return rn.hasOwnProperty(ln)?qt(sn,ln):nn.hasOwnProperty(ln)?qt(sn,nn[ln]):Zt(ln,sn,an)}}function en(nn,rn,an,sn){return function(ln){var un=ln.toLowerCase();return rn.hasOwnProperty(un)?!0:nn.hasOwnProperty(un)?!1:Zt(un,un,an)===un}}function tn(nn,rn,an){var sn=rn===1?tn.singular(nn):tn.plural(nn);return(an?rn+" ":"")+sn}return tn.plural=Qt(Gt,Ut,Dt),tn.isPlural=en(Gt,Ut,Dt),tn.singular=Qt(Ut,Gt,Nt),tn.isSingular=en(Ut,Gt,Nt),tn.addPluralRule=function(nn,rn){Dt.push([Wt(nn),rn])},tn.addSingularRule=function(nn,rn){Nt.push([Wt(nn),rn])},tn.addUncountableRule=function(nn){if(typeof nn=="string"){jt[nn.toLowerCase()]=!0;return}tn.addPluralRule(nn,"$0"),tn.addSingularRule(nn,"$0")},tn.addIrregularRule=function(nn,rn){rn=rn.toLowerCase(),nn=nn.toLowerCase(),Gt[nn]=rn,Ut[rn]=nn},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(nn){return tn.addIrregularRule(nn[0],nn[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(nn){return tn.addPluralRule(nn[0],nn[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(nn){return tn.addSingularRule(nn[0],nn[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(tn.addUncountableRule),tn})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-d00400fc.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-170b3b1c.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}class ParseTraceWorkerLegacy extends Worker{constructor(){super(parseTraceWorkerLegacyUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker),parseTraceLegacyAsync=usingMemoizedWorkerTask(ParseTraceWorkerLegacy);function useTraceParser(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen");return reactExports.useCallback(()=>Dt(async()=>{var Nt;if(_e!=null&&_e.trace){Pt("Processing trace...");try{const jt=_e.trace.version==="1.4.0"?await parseTraceAsync(_e):await parseTraceLegacyAsync(_e);return Pt("Trace loaded",pluralize("step",((Nt=jt==null?void 0:jt.stepsPersistent)==null?void 0:Nt.length)??0,!0)),{components:jt,content:_e.trace}}catch(jt){return console.error(jt),Pt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[_e])}function mapProperties(_e={},Pt){const Dt={};for(const Nt of Object.keys(_e))Dt[Nt]=Nt==="$"?_e[Nt]:Pt(_e[Nt],Nt,_e);return Object.setPrototypeOf(Dt,_e)}function normalize(_e={}){return mapProperties(_e,Pt=>lodashExports$1.isFunction(Pt)?Pt:parseProperty(Pt))}const parseToken=_e=>{const Pt=Function("$",`return ${_e};`);return Dt=>Pt(new Proxy(normalize(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memoizee$1(_e=>{const Pt=parser$1(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken(Nt)(Dt)):parseToken(Pt.variables[0].name)},{primitive:!0});function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString(_e);default:return()=>_e}}function useTraceContent(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen"),Nt=useConnectionResolver(),[{traces:jt}]=useFeatures(),Ut=reactExports.useMemo(()=>memoizee$1(async({source:Xt,id:Zt})=>{if(Xt&&Zt){const Qt=Nt({url:Xt});if(Qt){Pt("Fetching trace...");const en=await Qt.transport().call("features/trace",{id:Zt});return en==null?void 0:en.content}}},{normalizer:JSON.stringify}),[Nt,Pt]),{content:Gt,source:Wt,id:qt}=_e??{},{lastModified:Yt}=lodashExports$1.find(jt,{id:qt,source:Wt})??{};return useAsync(()=>Dt(async()=>{if(qt)return{..._e,content:Gt||await Ut({source:Wt,id:qt,lastModified:Yt})}}),[Ut,Gt,Wt,qt,Yt])}const labelScale=1.25,reuseCanvas={canvas:document.createElement("canvas")};function getTextWidth(_e,Pt){const Nt=(reuseCanvas.canvas||(reuseCanvas.canvas=document.createElement("canvas"))).getContext("2d");return Nt.font=Pt,Nt.measureText(_e).width}const isNullish=_e=>_e==null;function makePathIndex(_e){const Pt=[],Dt={},Nt={},jt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Wt,qt)=>({step:qt,id:Wt.id,pId:Wt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Wt,pId:qt},Yt)=>{!isNullish(qt)&&Dt[Wt]!==qt&&(Pt.push({id:Wt,pId:qt,step:Yt,prev:lodashExports$1.last(Pt)}),Dt[Wt]=qt),Nt[Yt]=lodashExports$1.last(Pt)});const Ut=(Wt,qt=(Yt=>(Yt=_e==null?void 0:_e.events)==null?void 0:Yt.length)()??0)=>{let Xt=Nt[qt];for(;Xt;){if(Xt.id===Wt)return Xt.pId;Xt=Xt.prev}};return{getParent:Ut,getPath:Wt=>{const qt=[Wt];let Yt={...(_e.events??[])[Wt],step:Wt};for(;Yt;){const Xt=Ut(Yt.id,Yt.step);if(Xt){const Zt=lodashExports$1.findLast(jt[Xt],Qt=>Qt.step<=Yt.step);if(Zt)qt.push(Zt.step),Yt=Zt;else break}else break}return qt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Trace"},error:_e=>{var Pt,Dt,Nt,jt;return((Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.error)||((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async Pt=>{Pt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Dt){return console.error(Dt),Pt(`Error opening, ${lodashExports$1.get(Dt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Dt,"message"),name:lodashExports$1.startCase(name$2(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:Pt})=>{var Dt,Nt,jt,Ut,Gt,Wt,qt,Yt,Xt,Zt,Qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:en=>Pt(tn=>lodashExports$1.set(tn,"source.trace",en)),value:(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace})}),((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.trace)==null?void 0:jt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Gt=(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace)==null?void 0:Gt.error})}),((qt=(Wt=_e==null?void 0:_e.source)==null?void 0:Wt.parsedTrace)==null?void 0:qt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Qt=(Zt=_e==null?void 0:_e.source)==null?void 0:Zt.parsedTrace)==null?void 0:Qt.content})})]})}),service:withProduce(({value:_e,produce:Pt})=>{var Ut;const{palette:Dt}=useTheme(),{result:Nt}=useTraceContent((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace),jt=useTraceParser({trace:Nt==null?void 0:Nt.content,context:{theme:{foreground:Dt.text.primary,background:Dt.background.paper,accent:Dt.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(Gt,Wt)=>getShade(Wt,Dt.mode,500,400))},themeAccent:Dt.primary.main,themeTextPrimary:Dt.text.primary,themeBackground:Dt.background.paper},view:"main"});return reactExports.useEffect(()=>{Pt(Gt=>{var Wt,qt;return lodashExports$1.set(Gt,"source.playbackTo",((qt=(Wt=Nt==null?void 0:Nt.content)==null?void 0:Wt.events)==null?void 0:qt.length)??0)})},[Nt==null?void 0:Nt.key,Nt==null?void 0:Nt.lastModified]),useEffectWhen(async()=>{const Gt=await jt();Pt(Wt=>{lodashExports$1.set(Wt,"source.parsedTrace",Gt),lodashExports$1.set(Wt,"viewKey",nanoid$1())})},[jt],[Nt==null?void 0:Nt.key,Dt.mode]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:Pt})=>{var qt,Yt,Xt;const Dt=(Yt=(qt=_e==null?void 0:_e.source)==null?void 0:qt.parsedTrace)==null?void 0:Yt.components,Nt=useThrottle$1(((Xt=_e==null?void 0:_e.source)==null?void 0:Xt.step)??0,1e3/60),jt=use2DPath(_e,Pt,Nt),Ut=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsPersistent,Zt=>lodashExports$1.map(Zt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Gt=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsTransient,Zt=>lodashExports$1.map(Zt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Wt=reactExports.useMemo(()=>[Gt[Nt]??[]],[Gt,Nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{end:Nt,nodes:Ut}),jsxRuntimeExports.jsx(NodeList,{nodes:Wt}),jt]})},steps:_e=>{var Pt,Dt,Nt;return((Nt=(Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedTrace)==null?void 0:Dt.content)==null?void 0:Nt.events)??[]},provideSelectionInfo:({layer:_e,event:Pt,children:Dt})=>{const{layer:Nt,setLayer:jt}=useLayer(_e),Ut=reactExports.useMemo(()=>{var Yt,Xt,Zt,Qt,en;const Gt=((Zt=(Xt=(Yt=Nt==null?void 0:Nt.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.content)==null?void 0:Zt.events)??[],Wt=lodashExports$1.chain((Qt=Pt==null?void 0:Pt.info)==null?void 0:Qt.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).map(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((tn,nn)=>tn-nn).value(),qt=lodashExports$1.chain((en=Pt==null?void 0:Pt.info)==null?void 0:en.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).filter(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.info}).value();if(Wt.length&&Nt){const tn=lodashExports$1.last(Wt),nn=Gt[tn];if(nn)return{...lodashExports$1.keyBy(lodashExports$1.map(qt,(rn,an)=>({key:`${Nt.key}.${an}`,primary:`Selection in ${inferLayerName(Nt)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:rn.meta.info,vertical:!0})}}})),"key"),[Nt.key]:{primary:inferLayerName(Nt),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:nn,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:nn,trigger:rn=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:rn,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",children:["Step ",tn]})]})})},[`${nn}`]:{primary:`Go to step ${tn}`,secondary:`${lodashExports$1.startCase(nn.type)}`,action:()=>jt(produce(Nt,rn=>{lodashExports$1.set(rn,"source.step",tn)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[Nt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Dt==null?void 0:Dt(Ut)})},getSources:_e=>{var Dt;const Pt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace;return Pt?[{id:"trace",name:`(Source) ${Pt.name}`,language:"yaml",content:dump(Pt.content,{noCompatMode:!0})}]:[]}},labelSize=.8;function use2DPath(_e,Pt=0,Dt=0){var Gt,Wt,qt;const{palette:Nt}=useTheme(),{getPath:jt}=reactExports.useMemo(()=>{var Yt,Xt,Zt;return((Yt=_e==null?void 0:_e.source)==null?void 0:Yt.playback)!=="playing"&&((Zt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)!=null&&Zt.content)?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Wt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:Wt.content,(qt=_e==null?void 0:_e.source)==null?void 0:qt.playback]);return reactExports.useMemo(()=>{var Zt,Qt,en,tn,nn,rn,an,sn,ln,un,pn,mn;const Yt=interpolate$1([Nt.background.paper,Nt.text.primary])(.05),Xt=(Qt=(Zt=_e==null?void 0:_e.source)==null?void 0:Zt.parsedTrace)==null?void 0:Qt.content;if((en=Xt==null?void 0:Xt.render)!=null&&en.path||Xt!=null&&Xt.pivot){const dn=((nn=(tn=Xt==null?void 0:Xt.render)==null?void 0:tn.path)==null?void 0:nn.pivot)??(Xt==null?void 0:Xt.pivot)??{},hn=(an=(rn=Xt==null?void 0:Xt.render)==null?void 0:rn.path)!=null&&an.scale?Xt.render.path.scale*(1/.3):((sn=Xt==null?void 0:Xt.pivot)==null?void 0:sn.scale)??1,{x:vn,y:En}=dn,_n=(Xt==null?void 0:Xt.version)==="1.4.0"?parseProperty$1:Fn=>Bn=>parseProperty(Fn)({event:Bn}),Cn=vn?_n(vn):Fn=>Fn.x,Tn=En?_n(En):Fn=>Fn.y,yn=lodashExports$1.map(jt(Dt),Fn=>{var Bn;return(Bn=Xt==null?void 0:Xt.events)==null?void 0:Bn[Fn]}),Nn={x:Cn({x:0,y:0,...lodashExports$1.head(yn)}),y:Tn({x:0,y:0,...lodashExports$1.head(yn)})};if(yn.length){const Fn=`${lodashExports$1.startCase((ln=lodashExports$1.head(yn))==null?void 0:ln.type)} ${(un=lodashExports$1.head(yn))==null?void 0:un.id}`,Bn=getTextWidth(Fn,`${labelSize*hn*labelScale}px Inter`),Sn=[{$:"circle",x:Cn({x:0,y:0,...lodashExports$1.last(yn)}),y:Tn({x:0,y:0,...lodashExports$1.last(yn)}),fill:Nt.primary.main,radius:.3*hn},{$:"path",points:yn.map(kn=>({x:Cn({x:0,y:0,...kn}),y:Tn({x:0,y:0,...kn})})),fill:Nt.primary.main,alpha:1,lineWidth:.3*hn},{$:"circle",...Nn,fill:Nt.primary.main,radius:.3*hn},{$:"rect",alpha:.85,fill:Yt,x:Nn.x-.3*hn*labelScale,y:Nn.y-2*hn*labelScale,width:Bn+(.8+.5)*hn*labelScale,height:1.4*hn*labelScale},{$:"path",points:[{x:Nn.x,y:Nn.y},{x:Nn.x+(-.3-.05)*hn*labelScale,y:Nn.y+(-2+1.4)*hn*labelScale}],fill:getColorHex((pn=lodashExports$1.head(yn))==null?void 0:pn.type),alpha:1,lineWidth:.1*hn*labelScale},{$:"rect",x:Nn.x+(-.3-.1)*hn*labelScale,y:Nn.y+-2*hn*labelScale,fill:getColorHex((mn=lodashExports$1.head(yn))==null?void 0:mn.type),height:1.4*hn*labelScale,width:.1*hn*labelScale},{$:"rect",alpha:0,fill:"rgba(255, 255, 255, 0)",x:Nn.x-.3*hn*labelScale,y:Nn.y-2*hn*labelScale,width:Bn*2,height:1*hn*labelScale,label:Fn,"label-size":labelSize*hn*labelScale,"label-x":(.1+.5)*hn*labelScale,"label-y":1*hn*labelScale,"label-color":Nt.text.primary}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Sn,kn=>({component:kn,meta:{source:"path",sourceLayerIndex:-99999+Pt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,Pt,Dt,Nt,jt])}const mapValuesDeep=(_e,Pt)=>lodashExports$1.isArray(_e)?lodashExports$1.map(_e,Dt=>mapValuesDeep(Dt,Pt)):lodashExports$1.isObject(_e)?lodashExports$1.mapValues(_e,Dt=>mapValuesDeep(Dt,Pt)):Pt(_e);async function findConnection(_e,Pt,Dt){for(const Nt of _e){const jt=await Nt.transport().call("features/algorithms"),Ut=await Nt.transport().call("features/formats");if(lodashExports$1.find(jt,{id:Pt})&&lodashExports$1.find(Ut,{id:Dt}))return Nt}}const maxStringPropLength=40,controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:Pt})=>{var Yt,Xt;const{algorithm:Dt}=(_e==null?void 0:_e.source)??{},{layers:Nt,allLayers:jt,layer:Ut,key:Gt}=useLayer(void 0,Zt=>{var Qt;return((Qt=Zt.source)==null?void 0:Qt.type)==="map"}),[{algorithms:Wt}]=useFeatures(),[qt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Dt,items:Wt.map(Zt=>{var Qt;return{...Zt,description:(Qt=lodashExports$1.find(qt,{url:Zt.source}))==null?void 0:Qt.name}}),onChange:async Zt=>Pt(Qt=>lodashExports$1.set(Qt,"source.algorithm",Zt))})}),!(Wt!=null&&Wt.length)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Gt,items:jt.map(Zt=>({id:Zt.key,hidden:!lodashExports$1.find(Nt,Qt=>Qt.key===Zt.key),name:inferLayerName(Zt)})),onChange:async Zt=>Pt(Qt=>lodashExports$1.set(Qt,"source.mapLayerKey",Zt))})}),Ut&&jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Ut)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.trace)==null?void 0:Xt.content})})]})}),service:withProduce(({value:_e,produce:Pt,onChange:Dt})=>{var tn;const Nt=controller$1.service,jt=useSnackbar(),{algorithm:Ut,mapLayerKey:Gt,start:Wt,end:qt}=(_e==null?void 0:_e.source)??{},[{layers:Yt}]=useLayers(),[Xt]=useConnections(),[{algorithms:Zt}]=useFeatures(),Qt=reactExports.useMemo(()=>{if(Gt&&Ut)return lodashExports$1.find(Yt,{key:Gt})},[Gt,Ut,Yt]),{result:en}=useMapContent((tn=Qt==null?void 0:Qt.source)==null?void 0:tn.map);return useEffectWhenAsync(async nn=>{var rn;if(Qt&&en&&Ut){const{format:an}=((rn=Qt==null?void 0:Qt.source)==null?void 0:rn.map)??{},{content:sn}=en??{};if(an&&sn){const ln=await findConnection(Xt,Ut,an),un=lodashExports$1.find(Zt,{id:Ut});if(ln){jt(`Executing ${inferLayerName(_e)} using ${ln.name}...`);const pn={format:an,instances:[{start:Wt??0,end:qt??0}],mapURI:`map:${encodeURIComponent(sn)}`,algorithm:Ut},mn=await ln.transport().call("solve/pathfinding",pn);nn.aborted?jt("Canceled"):Pt(dn=>{lodashExports$1.set(dn,"source.trace",{name:`${un==null?void 0:un.name}`,content:mn,key:nanoid$1(),id:nanoid$1()}),lodashExports$1.set(dn,"source.query",pn)})}}}},[Qt,Xt,Ut,Wt,qt,Pt,jt,_e,Zt],[Qt,en,Xt,Ut,Wt,qt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Nt,{value:_e,onChange:Dt})})}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:Pt,layer:Dt})=>{const Nt=controller$1.provideSelectionInfo,{layer:jt,setLayer:Ut,layers:Gt}=useLayer(Dt),Wt=reactExports.useMemo(()=>{const Yt=lodashExports$1.filter(Gt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(Yt,Xt=>{var Qt,en,tn,nn;const{parsedMap:Zt}=(Xt==null?void 0:Xt.source)??{};if(Zt&&Pt){const rn=(nn=(tn=getParser((en=(Qt=Xt==null?void 0:Xt.source)==null?void 0:Qt.map)==null?void 0:en.format))==null?void 0:tn.hydrate)==null?void 0:nn.call(tn,Zt);if(rn){const an=(Pt==null?void 0:Pt.world)&&rn.snap(Pt.world);if(an){const sn=(Pt==null?void 0:Pt.world)&&rn.nodeAt(an);return{point:an,node:sn,key:Xt.key,name:inferLayerName(Xt)}}}}}))},[Gt]),qt=reactExports.useMemo(()=>!!jt&&!!Wt.length&&{[jt.key]:{primary:inferLayerName(jt),items:{...lodashExports$1.reduce(Wt,(Yt,Xt)=>({...Yt,[`${Dt}-${Xt==null?void 0:Xt.key}-source`]:{primary:"Set as source",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Zt=>{lodashExports$1.set(Zt,"source.start",Xt==null?void 0:Xt.node),lodashExports$1.set(Zt,"source.query",void 0),lodashExports$1.set(Zt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Zt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Dt}-${Xt==null?void 0:Xt.key}-destination`]:{primary:"Set as destination",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Zt=>{lodashExports$1.set(Zt,"source.end",Xt==null?void 0:Xt.node),lodashExports$1.set(Zt,"source.query",void 0),lodashExports$1.set(Zt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Zt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Wt,jt,Gt,Ut]);return jsxRuntimeExports.jsx(Nt,{event:Pt,layer:Dt,children:Yt=>_e==null?void 0:_e(lodashExports$1.merge(Yt,qt))})},getSources:_e=>{const{algorithm:Pt=null,start:Dt=0,end:Nt=0,query:jt}=(_e==null?void 0:_e.source)??{};return[{id:"params",name:"Query",language:"yaml",content:dump({algorithm:Pt,instances:[{start:Dt,end:Nt}],mapURI:"(...)",format:"(...)",...mapValuesDeep(jt,Ut=>typeof Ut=="string"&&Ut.length>maxStringPropLength?`${lodashExports$1.truncate(Ut,{length:maxStringPropLength})} (${Ut.length} characters)`:Ut)},{noCompatMode:!0})},...controller$1.getSources(_e)]}};function getLayerHandler(_e){var Pt;return layerHandlers[((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var Pt,Dt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(Pt=_e==null?void 0:_e.source)!=null&&Pt.type?layerHandlers[(Dt=_e.source)==null?void 0:Dt.type].inferName(_e):"Untitled Layer"}var ReactReduxContext=React.createContext(null);function defaultNoopBatch(_e){_e()}var batch=defaultNoopBatch,setBatch=function(Pt){return batch=Pt},getBatch=function(){return batch};function createListenerCollection(){var _e=getBatch(),Pt=null,Dt=null;return{clear:function(){Pt=null,Dt=null},notify:function(){_e(function(){for(var jt=Pt;jt;)jt.callback(),jt=jt.next})},get:function(){for(var jt=[],Ut=Pt;Ut;)jt.push(Ut),Ut=Ut.next;return jt},subscribe:function(jt){var Ut=!0,Gt=Dt={callback:jt,next:null,prev:Dt};return Gt.prev?Gt.prev.next=Gt:Pt=Gt,function(){!Ut||Pt===null||(Ut=!1,Gt.next?Gt.next.prev=Gt.prev:Dt=Gt.prev,Gt.prev?Gt.prev.next=Gt.next:Pt=Gt.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(_e,Pt){var Dt,Nt=nullListeners;function jt(Zt){return qt(),Nt.subscribe(Zt)}function Ut(){Nt.notify()}function Gt(){Xt.onStateChange&&Xt.onStateChange()}function Wt(){return!!Dt}function qt(){Dt||(Dt=Pt?Pt.addNestedSub(Gt):_e.subscribe(Gt),Nt=createListenerCollection())}function Yt(){Dt&&(Dt(),Dt=void 0,Nt.clear(),Nt=nullListeners)}var Xt={addNestedSub:jt,notifyNestedSubs:Ut,handleChangeWrapper:Gt,isSubscribed:Wt,trySubscribe:qt,tryUnsubscribe:Yt,getListeners:function(){return Nt}};return Xt}var useIsomorphicLayoutEffect$4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(_e){var Pt=_e.store,Dt=_e.context,Nt=_e.children,jt=reactExports.useMemo(function(){var Wt=createSubscription(Pt);return{store:Pt,subscription:Wt}},[Pt]),Ut=reactExports.useMemo(function(){return Pt.getState()},[Pt]);useIsomorphicLayoutEffect$4(function(){var Wt=jt.subscription;return Wt.onStateChange=Wt.notifyNestedSubs,Wt.trySubscribe(),Ut!==Pt.getState()&&Wt.notifyNestedSubs(),function(){Wt.tryUnsubscribe(),Wt.onStateChange=null}},[jt,Ut]);var Gt=Dt||ReactReduxContext;return React.createElement(Gt.Provider,{value:jt},Nt)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(_e,Pt){var Dt=_e[1];return[Pt.payload,Dt+1]}function useIsomorphicLayoutEffectWithArgs(_e,Pt,Dt){useIsomorphicLayoutEffect$4(function(){return _e.apply(void 0,Pt)},Dt)}function captureWrapperProps(_e,Pt,Dt,Nt,jt,Ut,Gt){_e.current=Nt,Pt.current=jt,Dt.current=!1,Ut.current&&(Ut.current=null,Gt())}function subscribeUpdates(_e,Pt,Dt,Nt,jt,Ut,Gt,Wt,qt,Yt){if(_e){var Xt=!1,Zt=null,Qt=function(){if(!Xt){var nn=Pt.getState(),rn,an;try{rn=Nt(nn,jt.current)}catch(sn){an=sn,Zt=sn}an||(Zt=null),rn===Ut.current?Gt.current||qt():(Ut.current=rn,Wt.current=rn,Gt.current=!0,Yt({type:"STORE_UPDATED",payload:{error:an}}))}};Dt.onStateChange=Qt,Dt.trySubscribe(),Qt();var en=function(){if(Xt=!0,Dt.tryUnsubscribe(),Dt.onStateChange=null,Zt)throw Zt};return en}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(_e,Pt){Pt===void 0&&(Pt={});var Dt=Pt,Nt=Dt.getDisplayName,jt=Nt===void 0?function(ln){return"ConnectAdvanced("+ln+")"}:Nt,Ut=Dt.methodName,Gt=Ut===void 0?"connectAdvanced":Ut,Wt=Dt.renderCountProp,qt=Wt===void 0?void 0:Wt,Yt=Dt.shouldHandleStateChanges,Xt=Yt===void 0?!0:Yt,Zt=Dt.storeKey,Qt=Zt===void 0?"store":Zt;Dt.withRef;var en=Dt.forwardRef,tn=en===void 0?!1:en,nn=Dt.context,rn=nn===void 0?ReactReduxContext:nn,an=_objectWithoutPropertiesLoose$3(Dt,_excluded$2),sn=rn;return function(un){var pn=un.displayName||un.name||"Component",mn=jt(pn),dn=_extends$2({},an,{getDisplayName:jt,methodName:Gt,renderCountProp:qt,shouldHandleStateChanges:Xt,storeKey:Qt,displayName:mn,wrappedComponentName:pn,WrappedComponent:un}),hn=an.pure;function vn(yn){return _e(yn.dispatch,dn)}var En=hn?reactExports.useMemo:function(yn){return yn()};function _n(yn){var Nn=reactExports.useMemo(function(){var fr=yn.reactReduxForwardedRef,yr=_objectWithoutPropertiesLoose$3(yn,_excluded2);return[yn.context,fr,yr]},[yn]),Fn=Nn[0],Bn=Nn[1],Sn=Nn[2],kn=reactExports.useMemo(function(){return Fn&&Fn.Consumer&&reactIsExports.isContextConsumer(React.createElement(Fn.Consumer,null))?Fn:sn},[Fn,sn]),zn=reactExports.useContext(kn),In=!!yn.store&&!!yn.store.getState&&!!yn.store.dispatch;zn&&zn.store;var Rn=In?yn.store:zn.store,Kn=reactExports.useMemo(function(){return vn(Rn)},[Rn]),Jn=reactExports.useMemo(function(){if(!Xt)return NO_SUBSCRIPTION_ARRAY;var fr=createSubscription(Rn,In?null:zn.subscription),yr=fr.notifyNestedSubs.bind(fr);return[fr,yr]},[Rn,In,zn]),ar=Jn[0],$n=Jn[1],On=reactExports.useMemo(function(){return In?zn:_extends$2({},zn,{subscription:ar})},[In,zn,ar]),Mn=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),Vn=Mn[0],gn=Vn[0],bn=Mn[1];if(gn&&gn.error)throw gn.error;var wn=reactExports.useRef(),Gn=reactExports.useRef(Sn),Zn=reactExports.useRef(),Pn=reactExports.useRef(!1),er=En(function(){return Zn.current&&Sn===Gn.current?Zn.current:Kn(Rn.getState(),Sn)},[Rn,gn,Sn]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Gn,wn,Pn,Sn,er,Zn,$n]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[Xt,Rn,ar,Kn,Gn,wn,Pn,Zn,$n,bn],[Rn,ar,Kn]);var or=reactExports.useMemo(function(){return React.createElement(un,_extends$2({},er,{ref:Bn}))},[Bn,un,er]),tr=reactExports.useMemo(function(){return Xt?React.createElement(kn.Provider,{value:On},or):or},[kn,or,On]);return tr}var Cn=hn?React.memo(_n):_n;if(Cn.WrappedComponent=un,Cn.displayName=_n.displayName=mn,tn){var Tn=React.forwardRef(function(Nn,Fn){return React.createElement(Cn,_extends$2({},Nn,{reactReduxForwardedRef:Fn}))});return Tn.displayName=mn,Tn.WrappedComponent=un,hoistStatics(Tn,un)}return hoistStatics(Cn,un)}}function is$5(_e,Pt){return _e===Pt?_e!==0||Pt!==0||1/_e===1/Pt:_e!==_e&&Pt!==Pt}function shallowEqual(_e,Pt){if(is$5(_e,Pt))return!0;if(typeof _e!="object"||_e===null||typeof Pt!="object"||Pt===null)return!1;var Dt=Object.keys(_e),Nt=Object.keys(Pt);if(Dt.length!==Nt.length)return!1;for(var jt=0;jt=0;Nt--){var jt=Pt[Nt](_e);if(jt)return jt}return function(Ut,Gt){throw new Error("Invalid value of type "+typeof _e+" for "+Dt+" argument when connecting component "+Gt.wrappedComponentName+".")}}function strictEqual(_e,Pt){return _e===Pt}function createConnect(_e){var Pt=_e===void 0?{}:_e,Dt=Pt.connectHOC,Nt=Dt===void 0?connectAdvanced:Dt,jt=Pt.mapStateToPropsFactories,Ut=jt===void 0?defaultMapStateToPropsFactories:jt,Gt=Pt.mapDispatchToPropsFactories,Wt=Gt===void 0?defaultMapDispatchToPropsFactories:Gt,qt=Pt.mergePropsFactories,Yt=qt===void 0?defaultMergePropsFactories:qt,Xt=Pt.selectorFactory,Zt=Xt===void 0?finalPropsSelectorFactory:Xt;return function(en,tn,nn,rn){rn===void 0&&(rn={});var an=rn,sn=an.pure,ln=sn===void 0?!0:sn,un=an.areStatesEqual,pn=un===void 0?strictEqual:un,mn=an.areOwnPropsEqual,dn=mn===void 0?shallowEqual:mn,hn=an.areStatePropsEqual,vn=hn===void 0?shallowEqual:hn,En=an.areMergedPropsEqual,_n=En===void 0?shallowEqual:En,Cn=_objectWithoutPropertiesLoose$3(an,_excluded),Tn=match(en,Ut,"mapStateToProps"),yn=match(tn,Wt,"mapDispatchToProps"),Nn=match(nn,Yt,"mergeProps");return Nt(Zt,_extends$2({methodName:"connect",getDisplayName:function(Bn){return"Connect("+Bn+")"},shouldHandleStateChanges:!!en,initMapStateToProps:Tn,initMapDispatchToProps:yn,initMergeProps:Nn,pure:ln,areStatesEqual:pn,areOwnPropsEqual:dn,areStatePropsEqual:vn,areMergedPropsEqual:_n},Cn))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(_e[Dt]!==Pt[Dt])return!1;return!0}function useMemoOne(_e,Pt){var Dt=reactExports.useState(function(){return{inputs:Pt,result:_e()}})[0],Nt=reactExports.useRef(!0),jt=reactExports.useRef(Dt),Ut=Nt.current||!!(Pt&&jt.current.inputs&&areInputsEqual$1(Pt,jt.current.inputs)),Gt=Ut?jt.current:{inputs:Pt,result:_e()};return reactExports.useEffect(function(){Nt.current=!1,jt.current=Gt},[Gt]),Gt.result}function useCallbackOne(_e,Pt){return useMemoOne(function(){return _e},Pt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,Pt){if(!_e){if(isProduction)throw new Error(prefix$2);var Dt=typeof Pt=="function"?Pt():Pt,Nt=Dt?"".concat(prefix$2,": ").concat(Dt):prefix$2;throw new Error(Nt)}}var getRect=function(Pt){var Dt=Pt.top,Nt=Pt.right,jt=Pt.bottom,Ut=Pt.left,Gt=Nt-Ut,Wt=jt-Dt,qt={top:Dt,right:Nt,bottom:jt,left:Ut,width:Gt,height:Wt,x:Ut,y:Dt,center:{x:(Nt+Ut)/2,y:(jt+Dt)/2}};return qt},expand=function(Pt,Dt){return{top:Pt.top-Dt.top,left:Pt.left-Dt.left,bottom:Pt.bottom+Dt.bottom,right:Pt.right+Dt.right}},shrink=function(Pt,Dt){return{top:Pt.top+Dt.top,left:Pt.left+Dt.left,bottom:Pt.bottom-Dt.bottom,right:Pt.right-Dt.right}},shift=function(Pt,Dt){return{top:Pt.top+Dt.y,left:Pt.left+Dt.x,bottom:Pt.bottom+Dt.y,right:Pt.right+Dt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(Pt){var Dt=Pt.borderBox,Nt=Pt.margin,jt=Nt===void 0?noSpacing$1:Nt,Ut=Pt.border,Gt=Ut===void 0?noSpacing$1:Ut,Wt=Pt.padding,qt=Wt===void 0?noSpacing$1:Wt,Yt=getRect(expand(Dt,jt)),Xt=getRect(shrink(Dt,Gt)),Zt=getRect(shrink(Xt,qt));return{marginBox:Yt,borderBox:getRect(Dt),paddingBox:Xt,contentBox:Zt,margin:jt,border:Gt,padding:qt}},parse$6=function(Pt){var Dt=Pt.slice(0,-2),Nt=Pt.slice(-2);if(Nt!=="px")return 0;var jt=Number(Dt);return isNaN(jt)&&invariant$1(!1),jt},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function(Pt,Dt){var Nt=Pt.borderBox,jt=Pt.border,Ut=Pt.margin,Gt=Pt.padding,Wt=shift(Nt,Dt);return createBox({borderBox:Wt,border:jt,margin:Ut,padding:Gt})},withScroll=function(Pt,Dt){return Dt===void 0&&(Dt=getWindowScroll$1()),offset(Pt,Dt)},calculateBox=function(Pt,Dt){var Nt={top:parse$6(Dt.marginTop),right:parse$6(Dt.marginRight),bottom:parse$6(Dt.marginBottom),left:parse$6(Dt.marginLeft)},jt={top:parse$6(Dt.paddingTop),right:parse$6(Dt.paddingRight),bottom:parse$6(Dt.paddingBottom),left:parse$6(Dt.paddingLeft)},Ut={top:parse$6(Dt.borderTopWidth),right:parse$6(Dt.borderRightWidth),bottom:parse$6(Dt.borderBottomWidth),left:parse$6(Dt.borderLeftWidth)};return createBox({borderBox:Pt,margin:Nt,padding:jt,border:Ut})},getBox=function(Pt){var Dt=Pt.getBoundingClientRect(),Nt=window.getComputedStyle(Pt);return calculateBox(Dt,Nt)},safeIsNaN=Number.isNaN||function(Pt){return typeof Pt=="number"&&Pt!==Pt};function isEqual$2(_e,Pt){return!!(_e===Pt||safeIsNaN(_e)&&safeIsNaN(Pt))}function areInputsEqual(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(!isEqual$2(_e[Dt],Pt[Dt]))return!1;return!0}function memoizeOne(_e,Pt){Pt===void 0&&(Pt=areInputsEqual);var Dt,Nt=[],jt,Ut=!1;function Gt(){for(var Wt=[],qt=0;qt");return Nt.callbacks},Nt.setCallbacks=function(Wt){Nt.callbacks=Wt},Nt}var Dt=Pt.prototype;return Dt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Dt.componentDidCatch=function(jt){if(jt instanceof RbdInvariant){this.setState({});return}throw jt},Dt.componentWillUnmount=function(){this.unbind()},Dt.render=function(){return this.props.children(this.setCallbacks)},Pt}(React.Component),dragHandleUsageInstructions=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key diff --git a/assets/parseTrace.worker-170b3b1c.js b/assets/parseTrace.worker-170b3b1c.js new file mode 100644 index 0000000..77b2fc7 --- /dev/null +++ b/assets/parseTrace.worker-170b3b1c.js @@ -0,0 +1,27 @@ +(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vt.exports,function(h,w){(function(){var f,L="4.17.21",O=200,P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",j="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",H=500,D="__lodash_placeholder__",Q=1,q=2,z=4,an=1,un=2,C=1,_n=2,W=4,A=8,$=16,X=32,V=64,en=128,cn=256,Br=512,Ls=30,Ps="...",Ws=800,Fs=16,qu=1,Ms=2,Bs=3,we=1/0,ae=9007199254740991,Us=17976931348623157e292,mt=0/0,Xn=4294967295,Ds=Xn-1,qs=Xn>>>1,$s=[["ary",en],["bind",C],["bindKey",_n],["curry",A],["curryRight",$],["flip",Br],["partial",X],["partialRight",V],["rearg",cn]],Ee="[object Arguments]",xt="[object Array]",Ns="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Gs="[object DOMException]",yt="[object Error]",At="[object Function]",$u="[object GeneratorFunction]",Gn="[object Map]",Qe="[object Number]",Hs="[object Null]",kn="[object Object]",Nu="[object Promise]",zs="[object Proxy]",Ve="[object RegExp]",Hn="[object Set]",ke="[object String]",St="[object Symbol]",Ks="[object Undefined]",je="[object WeakMap]",Zs="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Ur="[object Float32Array]",Dr="[object Float64Array]",qr="[object Int8Array]",$r="[object Int16Array]",Nr="[object Int32Array]",Gr="[object Uint8Array]",Hr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Kr="[object Uint32Array]",Ys=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Js=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gu=/&(?:amp|lt|gt|quot|#39);/g,Hu=/[&<>"']/g,Qs=RegExp(Gu.source),Vs=RegExp(Hu.source),ks=/<%-([\s\S]+?)%>/g,js=/<%([\s\S]+?)%>/g,zu=/<%=([\s\S]+?)%>/g,nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,el=/^\w*$/,tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/[\\^$.*+?()[\]{}|]/g,rl=RegExp(Zr.source),Yr=/^\s+/,il=/\s/,ul=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fl=/\{\n\/\* \[wrapped with (.+)\] \*/,ol=/,? & /,al=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sl=/[()=,{}\[\]\/\s]/,ll=/\\(\\)?/g,cl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ku=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,gl=/^0b[01]+$/i,pl=/^\[object .+?Constructor\]$/,_l=/^0o[0-7]+$/i,vl=/^(?:0|[1-9]\d*)$/,dl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,wl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",ml="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",yl="\\u20d0-\\u20ff",Zu=ml+xl+yl,Yu="\\u2700-\\u27bf",Xu="a-z\\xdf-\\xf6\\xf8-\\xff",Al="\\xac\\xb1\\xd7\\xf7",Sl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bl="\\u2000-\\u206f",Il=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ju="A-Z\\xc0-\\xd6\\xd8-\\xde",Qu="\\ufe0e\\ufe0f",Vu=Al+Sl+bl+Il,Xr="['’]",Rl="["+It+"]",ku="["+Vu+"]",Rt="["+Zu+"]",ju="\\d+",Tl="["+Yu+"]",nf="["+Xu+"]",ef="[^"+It+Vu+ju+Yu+Xu+Ju+"]",Jr="\\ud83c[\\udffb-\\udfff]",Ol="(?:"+Rt+"|"+Jr+")",tf="[^"+It+"]",Qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ju+"]",rf="\\u200d",uf="(?:"+nf+"|"+ef+")",El="(?:"+Le+"|"+ef+")",ff="(?:"+Xr+"(?:d|ll|m|re|s|t|ve))?",of="(?:"+Xr+"(?:D|LL|M|RE|S|T|VE))?",af=Ol+"?",sf="["+Qu+"]?",Cl="(?:"+rf+"(?:"+[tf,Qr,Vr].join("|")+")"+sf+af+")*",Ll="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lf=sf+af+Cl,Wl="(?:"+[Tl,Qr,Vr].join("|")+")"+lf,Fl="(?:"+[tf+Rt+"?",Rt,Qr,Vr,Rl].join("|")+")",Ml=RegExp(Xr,"g"),Bl=RegExp(Rt,"g"),kr=RegExp(Jr+"(?="+Jr+")|"+Fl+lf,"g"),Ul=RegExp([Le+"?"+nf+"+"+ff+"(?="+[ku,Le,"$"].join("|")+")",El+"+"+of+"(?="+[ku,Le+uf,"$"].join("|")+")",Le+"?"+uf+"+"+ff,Le+"+"+of,Pl,Ll,ju,Wl].join("|"),"g"),Dl=RegExp("["+rf+It+Zu+Qu+"]"),ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$l=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nl=-1,tn={};tn[Ur]=tn[Dr]=tn[qr]=tn[$r]=tn[Nr]=tn[Gr]=tn[Hr]=tn[zr]=tn[Kr]=!0,tn[Ee]=tn[xt]=tn[nt]=tn[Xe]=tn[Ce]=tn[Je]=tn[yt]=tn[At]=tn[Gn]=tn[Qe]=tn[kn]=tn[Ve]=tn[Hn]=tn[ke]=tn[je]=!1;var nn={};nn[Ee]=nn[xt]=nn[nt]=nn[Ce]=nn[Xe]=nn[Je]=nn[Ur]=nn[Dr]=nn[qr]=nn[$r]=nn[Nr]=nn[Gn]=nn[Qe]=nn[kn]=nn[Ve]=nn[Hn]=nn[ke]=nn[St]=nn[Gr]=nn[Hr]=nn[zr]=nn[Kr]=!0,nn[yt]=nn[At]=nn[je]=!1;var Gl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Hl={"&":"&","<":"<",">":">",'"':""","'":"'"},zl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zl=parseFloat,Yl=parseInt,cf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Xl=typeof self=="object"&&self&&self.Object===Object&&self,vn=cf||Xl||Function("return this")(),jr=w&&!w.nodeType&&w,me=jr&&!0&&h&&!h.nodeType&&h,hf=me&&me.exports===jr,ni=hf&&cf.process,Wn=function(){try{var l=me&&me.require&&me.require("util").types;return l||ni&&ni.binding&&ni.binding("util")}catch{}}(),gf=Wn&&Wn.isArrayBuffer,pf=Wn&&Wn.isDate,_f=Wn&&Wn.isMap,vf=Wn&&Wn.isRegExp,df=Wn&&Wn.isSet,wf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function Jl(l,p,g,x){for(var T=-1,K=l==null?0:l.length;++T-1}function ei(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function Rf(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function ic(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var uc=ui(Gl),fc=ui(Hl);function oc(l){return"\\"+Kl[l]}function ac(l,p){return l==null?f:l[p]}function We(l){return Dl.test(l)}function sc(l){return ql.test(l)}function lc(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function si(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function Tf(l,p){return function(g){return l(p(g))}}function ce(l,p){for(var g=-1,x=l.length,T=0,K=[];++g-1}function Vc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}jn.prototype.clear=Yc,jn.prototype.delete=Xc,jn.prototype.get=Jc,jn.prototype.has=Qc,jn.prototype.set=Vc;function ne(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&Q,c=e&q,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!fn(n))return n;var v=E(n);if(v){if(a=eg(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==$u;if(de(n))return so(n,s);if(d==kn||d==Ee||m&&!i){if(a=c||m?{}:Eo(n),!s)return c?zh(n,gh(a,n)):Hh(n,qf(a,n))}else{if(!nn[d])return i?n:{};a=tg(n,d,s)}}o||(o=new Kn);var y=o.get(n);if(y)return y;o.set(n,a),ia(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):ta(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Mi:Fi:c?In:pn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function ph(n){var e=pn(n);return function(t){return $f(t,n,e)}}function $f(n,e,t){var r=t.length;if(n==null)return!r;for(n=k(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function Nf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=rn(e,On(t))),r?(o=ei,a=!1):e.length>=O&&(o=et,a=!1,e=new Ae(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:fa(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):le(i,s):r||(i[i.length]=s)}return i}var vi=_o(),zf=_o(!0);function Jn(n,e){return n&&vi(n,e,pn)}function di(n,e){return n&&zf(n,e,pn)}function Zt(n,e){return se(e,function(t){return ue(n[t])})}function be(n,e){e=_e(e,n);for(var t=0,r=e.length;n!=null&&te}function dh(n,e){return n!=null&&J.call(n,e)}function wh(n,e){return n!=null&&e in k(n)}function mh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new Ae(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function eo(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ie(i)?Ut.call(n,i,1):Ti(n,i)}}return n}function bi(n,e){return n+$t(Mf()*(e-n+1))}function Ph(n,e,t,r){for(var i=-1,o=gn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ii(n,e){var t="";if(!n||e<1||e>ae)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Gi(Po(n,e,Rn),n+"")}function Wh(n){return Df(ze(n))}function Fh(n,e){var t=ze(n);return rr(t,Se(e,0,t.length))}function ct(n,e,t,r){if(!fn(n))return n;e=_e(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Xh(n);if(_)return Et(_);a=!1,i=et,c=new Ae}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var ao=Ic||function(n){return vn.clearTimeout(n)};function so(n,e){if(e)return n.slice();var t=n.length,r=Cf?Cf(t):new n.constructor(t);return n.copy(r),r}function Li(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function qh(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function $h(n){var e=new n.constructor(n.source,Ku.exec(n));return e.lastIndex=n.lastIndex,e}function Nh(n){return ft?k(ft.call(n)):{}}function lo(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function co(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function ho(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=gn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=k(e);++r-1?i[o?e[a]:a]:f}}function mo(n){return re(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&G.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&un?new Ae:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ul,`{ +/* [wrapped with `+e+`] */ +`)}function ig(n){return E(n)||Te(n)||!!(Wf&&n&&n[Wf])}function ie(n,e){var t=typeof n;return e=e??ae,!!e&&(t=="number"||t!="symbol"&&vl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Ws)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,zo(n,t)});function Ko(n){var e=u(n);return e.__chain__=!0,e}function _p(n,e){return e(n),n}function ir(n,e){return e(n)}var vp=re(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return _i(o,n)};return e>1||this.__actions__.length||!(r instanceof N)||!ie(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function dp(){return Ko(this)}function wp(){return new Bn(this.value(),this.__chain__)}function mp(){this.__values__===f&&(this.__values__=ua(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function xp(){return this}function yp(n){for(var e,t=this;t instanceof Ht;){var r=Do(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Ap(){var n=this.__wrapped__;if(n instanceof N){var e=n;return this.__actions__.length&&(e=new N(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[Hi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(Hi)}function Sp(){return fo(this.__wrapped__,this.__actions__)}var bp=Qt(function(n,e,t){J.call(n,t)?++n[t]:ee(n,t,1)});function Ip(n,e,t){var r=E(n)?mf:_h;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Rp(n,e){var t=E(n)?se:Hf;return t(n,S(e,3))}var Tp=wo(qo),Op=wo($o);function Ep(n,e){return dn(ur(n,e),1)}function Cp(n,e){return dn(ur(n,e),we)}function Lp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Zo(n,e){var t=E(n)?Fn:ge;return t(n,S(e,3))}function Yo(n,e){var t=E(n)?Ql:Gf;return t(n,S(e,3))}var Pp=Qt(function(n,e,t){J.call(n,t)?n[t].push(e):ee(n,t,[e])});function Wp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=gn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Fp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return ge(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Mp=Qt(function(n,e,t){ee(n,t,e)});function ur(n,e){var t=E(n)?rn:Jf;return t(n,S(e,3))}function Bp(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),jf(n,e,t))}var Up=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Dp(n,e,t){var r=E(n)?ti:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,ge)}function qp(n,e,t){var r=E(n)?Vl:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,Gf)}function $p(n,e){var t=E(n)?se:Hf;return t(n,ar(S(e,3)))}function Np(n){var e=E(n)?Df:Wh;return e(n)}function Gp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?lh:Fh;return r(n,e)}function Hp(n){var e=E(n)?ch:Bh;return e(n)}function zp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Gn||e==Hn?n.size:yi(n).length}function Kp(n,e,t){var r=E(n)?ri:Uh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Zp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),jf(n,dn(e,1),[])}),fr=Rc||function(){return vn.Date.now()};function Yp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Xo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,te(n,en,f,f,f,f,e)}function Jo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Ki=B(function(n,e,t){var r=C;if(t.length){var i=ce(t,Ge(Ki));r|=X}return te(n,r,e,t,i)}),Qo=B(function(n,e,t){var r=C|_n;if(t.length){var i=ce(t,Ge(Qo));r|=X}return te(e,r,n,t,i)});function Vo(n,e,t){e=t?f:e;var r=te(n,A,f,f,f,f,f,e);return r.placeholder=Vo.placeholder,r}function ko(n,e,t){e=t?f:e;var r=te(n,$,f,f,f,f,f,e);return r.placeholder=ko.placeholder,r}function jo(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,fn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?gn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(ln){var Yn=r,oe=i;return r=i=f,_=ln,a=n.apply(oe,Yn),a}function b(ln){return _=ln,s=pt(U,e),v?y(ln):a}function M(ln){var Yn=ln-c,oe=ln-_,wa=e-Yn;return d?wn(wa,o-oe):wa}function I(ln){var Yn=ln-c,oe=ln-_;return c===f||Yn>=e||Yn<0||d&&oe>=o}function U(){var ln=fr();if(I(ln))return G(ln);s=pt(U,M(ln))}function G(ln){return s=f,m&&r?y(ln):(r=i=f,a)}function Ln(){s!==f&&ao(s),_=0,r=c=i=s=f}function An(){return s===f?a:G(fr())}function Pn(){var ln=fr(),Yn=I(ln);if(r=arguments,i=this,c=ln,Yn){if(s===f)return b(c);if(d)return ao(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Xp=B(function(n,e){return Nf(n,1,e)}),Jp=B(function(n,e,t){return Nf(n,$n(e)||0,t)});function Qp(n){return te(n,Br)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||ne),t}or.Cache=ne;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Vp(n){return Jo(2,n)}var kp=Dh(function(n,e){e=e.length==1&&E(e[0])?rn(e[0],On(S())):rn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Te=Zf(function(){return arguments}())?Zf:function(n){return on(n)&&J.call(n,"callee")&&!Pf.call(n,"callee")},E=g.isArray,g_=gf?On(gf):yh;function bn(n){return n!=null&&sr(n.length)&&!ue(n)}function sn(n){return on(n)&&bn(n)}function p_(n){return n===!0||n===!1||on(n)&&xn(n)==Xe}var de=Oc||ru,__=pf?On(pf):Ah;function v_(n){return on(n)&&n.nodeType===1&&!_t(n)}function d_(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||de(n)||He(n)||Te(n)))return!n.length;var e=mn(n);if(e==Gn||e==Hn)return!n.size;if(gt(n))return!yi(n).length;for(var t in n)if(J.call(n,t))return!1;return!0}function w_(n,e){return lt(n,e)}function m_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Yi(n){if(!on(n))return!1;var e=xn(n);return e==yt||e==Gs||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function x_(n){return typeof n=="number"&&Ff(n)}function ue(n){if(!fn(n))return!1;var e=xn(n);return e==At||e==$u||e==Ns||e==zs}function ea(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ae}function fn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function on(n){return n!=null&&typeof n=="object"}var ta=_f?On(_f):bh;function y_(n,e){return n===e||xi(n,e,Ui(e))}function A_(n,e,t){return t=typeof t=="function"?t:f,xi(n,e,Ui(e),t)}function S_(n){return ra(n)&&n!=+n}function b_(n){if(og(n))throw new T(P);return Yf(n)}function I_(n){return n===null}function R_(n){return n==null}function ra(n){return typeof n=="number"||on(n)&&xn(n)==Qe}function _t(n){if(!on(n)||xn(n)!=kn)return!1;var e=Bt(n);if(e===null)return!0;var t=J.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==Ac}var Xi=vf?On(vf):Ih;function T_(n){return ea(n)&&n>=-ae&&n<=ae}var ia=df?On(df):Rh;function lr(n){return typeof n=="string"||!E(n)&&on(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||on(n)&&xn(n)==St}var He=wf?On(wf):Th;function O_(n){return n===f}function E_(n){return on(n)&&mn(n)==je}function C_(n){return on(n)&&xn(n)==Zs}var L_=nr(Ai),P_=nr(function(n,e){return n<=e});function ua(n){if(!n)return[];if(bn(n))return lr(n)?zn(n):Sn(n);if(tt&&n[tt])return lc(n[tt]());var e=mn(n),t=e==Gn?si:e==Hn?Et:ze;return t(n)}function fe(n){if(!n)return n===0?n:0;if(n=$n(n),n===we||n===-we){var e=n<0?-1:1;return e*Us}return n===n?n:0}function F(n){var e=fe(n),t=e%1;return e===e?t?e-t:e:0}function fa(n){return n?Se(F(n),0,Xn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(fn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=fn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bf(n);var t=gl.test(n);return t||_l.test(n)?Yl(n.slice(2),t?2:8):hl.test(n)?mt:+n}function oa(n){return Qn(n,In(n))}function W_(n){return n?Se(F(n),-ae,ae):n===0?n:0}function Z(n){return n==null?"":En(n)}var F_=$e(function(n,e){if(gt(e)||bn(e)){Qn(e,pn(e),n);return}for(var t in e)J.call(e,t)&&ot(n,t,e[t])}),aa=$e(function(n,e){Qn(e,In(e),n)}),cr=$e(function(n,e,t,r){Qn(e,In(e),n,r)}),M_=$e(function(n,e,t,r){Qn(e,pn(e),n,r)}),B_=re(_i);function U_(n,e){var t=qe(n);return e==null?t:qf(t,e)}var D_=B(function(n,e){n=k(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Qn(n,Mi(n),t),r&&(t=Un(t,Q|q|z,Jh));for(var i=e.length;i--;)Ti(t,e[i]);return t});function tv(n,e){return la(n,ar(S(e)))}var rv=re(function(n,e){return n==null?{}:Ch(n,e)});function la(n,e){if(n==null)return{};var t=rn(Mi(n),function(r){return[r]});return e=S(e),no(n,t,function(r,i){return e(r,i[0])})}function iv(n,e,t){e=_e(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Mf();return wn(n+i*(e-n+Zl("1e-"+((i+"").length-1))),e)}return bi(n,e)}var _v=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ga(e):e)});function ga(n){return Vi(Z(n).toLowerCase())}function pa(n){return n=Z(n),n&&n.replace(dl,uc).replace(Bl,"")}function vv(n,e,t){n=Z(n),e=En(e);var r=n.length;t=t===f?r:Se(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function dv(n){return n=Z(n),n&&Vs.test(n)?n.replace(Hu,fc):n}function wv(n){return n=Z(n),n&&rl.test(n)?n.replace(Zr,"\\$&"):n}var mv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),xv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),yv=vo("toLowerCase");function Av(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function Sv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=Z(n),n&&(typeof e=="string"||e!=null&&!Xi(e))&&(e=En(e),!e&&We(n))?ve(zn(n),0,t):n.split(e,t)):[]}var Cv=Ne(function(n,e,t){return n+(t?" ":"")+Vi(e)});function Lv(n,e,t){return n=Z(n),t=t==null?0:Se(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Pv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=Z(n),e=cr({},e,r,bo);var i=cr({},e.imports,r.imports,bo),o=pn(i),a=ai(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=li((e.escape||bt).source+"|"+v.source+"|"+(v===zu?cl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(J.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nl+"]")+` +`;n.replace(m,function(I,U,G,Ln,An,Pn){return G||(G=Ln),d+=n.slice(_,Pn).replace(wl,oc),U&&(s=!0,d+=`' + +__e(`+U+`) + +'`),An&&(c=!0,d+=`'; +`+An+`; +__p += '`),G&&(d+=`' + +((__t = (`+G+`)) == null ? '' : __t) + +'`),_=Pn+I.length,I}),d+=`'; +`;var b=J.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { +`+d+` +} +`;else if(sl.test(b))throw new T(j);d=(c?d.replace(Ys,""):d).replace(Xs,"$1").replace(Js,"$1;"),d="function("+(b||"obj")+`) { +`+(b?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var M=va(function(){return K(o,y+"return "+d).apply(f,a)});if(M.source=d,Yi(M))throw M;return M}function Wv(n){return Z(n).toLowerCase()}function Fv(n){return Z(n).toUpperCase()}function Mv(n,e,t){if(n=Z(n),n&&(t||e===f))return bf(n);if(!n||!(e=En(e)))return n;var r=zn(n),i=zn(e),o=If(r,i),a=Rf(r,i)+1;return ve(r,o,a).join("")}function Bv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.slice(0,Of(n)+1);if(!n||!(e=En(e)))return n;var r=zn(n),i=Rf(r,zn(e))+1;return ve(r,0,i).join("")}function Uv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.replace(Yr,"");if(!n||!(e=En(e)))return n;var r=zn(n),i=If(r,zn(e));return ve(r,i).join("")}function Dv(n,e){var t=Ls,r=Ps;if(fn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=Z(n);var o=n.length;if(We(n)){var a=zn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?ve(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Xi(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=li(i.source,Z(Ku.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function qv(n){return n=Z(n),n&&Qs.test(n)?n.replace(Gu,pc):n}var $v=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Vi=vo("toUpperCase");function _a(n,e,t){return n=Z(n),e=t?f:e,e===f?sc(n)?dc(n):nc(n):n.match(e)||[]}var va=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Yi(t)?t:new T(t)}}),Nv=re(function(n,e){return Fn(e,function(t){t=Vn(t),ee(n,t,Ki(n[t],n))}),n});function Gv(n){var e=n==null?0:n.length,t=S();return n=e?rn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++iae)return[];var t=Xn,r=wn(n,Xn);e=S(e),n-=Xn;for(var i=oi(r,e);++t0||e<0)?new N(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},N.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},N.prototype.toArray=function(){return this.take(Xn)},Jn(N.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof N,_=s[0],v=c||E(a),d=function(U){var G=i.apply(u,le([U],s));return r&&m?G[0]:G};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new N(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Jn(N.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";J.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],N.prototype.clone=qc,N.prototype.reverse=$c,N.prototype.value=Nc,u.prototype.at=vp,u.prototype.chain=dp,u.prototype.commit=wp,u.prototype.next=mp,u.prototype.plant=yp,u.prototype.reverse=Ap,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Sp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=xp),u},Me=wc();me?((me.exports=Me)._=Me,jr._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Nn=vt.exports,ma=function(){},xa=ma(),Oe=function(h){return h!==xa&&h!==null},ya=Oe,Aa=Array.prototype.forEach,Sa=Object.create,ba=function(h,w){var f;for(f in h)w[f]=h[f]},Ia=function(h){var w=Sa(null);return Aa.call(arguments,function(f){ya(f)&&ba(Object(f),w)}),w},Ra=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,iu;function Ta(){return iu||(iu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Oa=Ra()?Math.sign:Ta(),Ea=Oa,Ca=Math.abs,La=Math.floor,Pa=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:Ea(h)*La(Ca(h)))},Wa=Pa,Fa=Math.max,Ma=function(h){return Fa(0,Wa(h))},uu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Ba=Oe,fu=function(h){if(!Ba(h))throw new TypeError("Cannot use null or undefined");return h},Ua={exports:{}},Da=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,ou;function qa(){return ou||(ou=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,au;function $a(){if(au)return pr;au=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,su;function Na(){return su||(su=1,_r=qa()()?Object.keys:$a()),_r}var vr,lu;function Ga(){if(lu)return vr;lu=1;var h=Na(),w=fu,f=Math.max;return vr=function(L,O){var P,R,j=f(arguments.length,2),Y;for(L=Object(w(L)),Y=function(H){try{L[H]=O[H]}catch(D){P||(P=D)}},R=1;R-1},wr}var fs=is()?String.prototype.contains:us(),dt=pu,vu=rs,du=cu,wu=Ia,Ze=fs,os=gu.exports=function(h,w){var f,L,O,P,R;return arguments.length<2||typeof h!="string"?(P=w,w=h,h=null):P=arguments[2],dt(h)?(f=Ze.call(h,"c"),L=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,L=!1),R={value:w,configurable:f,enumerable:L,writable:O},P?du(wu(P),R):R};os.gs=function(h,w,f){var L,O,P,R;return typeof h!="string"?(P=f,f=w,w=h,h=null):P=arguments[3],dt(w)?vu(w)?dt(f)?vu(f)||(P=f,f=void 0):f=void 0:(P=w,w=f=void 0):w=void 0,dt(h)?(L=Ze.call(h,"c"),O=Ze.call(h,"e")):(L=!0,O=!1),R={get:w,set:f,configurable:L,enumerable:O},P?du(wu(P),R):R};var Ye=gu.exports,mr={exports:{}};(function(h,w){var f=Ye,L=uu,O=Function.prototype.apply,P=Function.prototype.call,R=Object.create,j=Object.defineProperty,Y=Object.defineProperties,H=Object.prototype.hasOwnProperty,D={configurable:!0,enumerable:!1,writable:!0},Q,q,z,an,un,C,_n;Q=function(W,A){var $;return L(A),H.call(this,"__ee__")?$=this.__ee__:($=D.value=R(null),j(this,"__ee__",D),D.value=null),$[W]?typeof $[W]=="object"?$[W].push(A):$[W]=[$[W],A]:$[W]=A,this},q=function(W,A){var $,X;return L(A),X=this,Q.call(this,W,$=function(){z.call(X,W,$),O.call(A,this,arguments)}),$.__eeOnceListener__=A,this},z=function(W,A){var $,X,V,en;if(L(A),!H.call(this,"__ee__"))return this;if($=this.__ee__,!$[W])return this;if(X=$[W],typeof X=="object")for(en=0;V=X[en];++en)(V===A||V.__eeOnceListener__===A)&&(X.length===2?$[W]=X[en?0:1]:X.splice(en,1));else(X===A||X.__eeOnceListener__===A)&&delete $[W];return this},an=function(W){var A,$,X,V,en;if(H.call(this,"__ee__")&&(V=this.__ee__[W],!!V))if(typeof V=="object"){for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];for(V=V.slice(),A=0;X=V[A];++A)O.call(X,this,en)}else switch(arguments.length){case 1:P.call(V,this);break;case 2:P.call(V,this,arguments[1]);break;case 3:P.call(V,this,arguments[1],arguments[2]);break;default:for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];O.call(V,this,en)}},un={on:Q,once:q,off:z,emit:an},C={on:f(Q),once:f(q),off:f(z),emit:f(an)},_n=Y({},C),h.exports=w=function(W){return W==null?R(_n):Y(Object(W),C)},w.methods=un})(mr,mr.exports);var as=mr.exports,xr,mu;function ss(){return mu||(mu=1,xr=function(){var h=Array.from,w,f;return typeof h!="function"?!1:(w=["raz","dwa"],f=h(w),!!(f&&f!==w&&f[1]==="dwa"))}),xr}var yr,xu;function ls(){return xu||(xu=1,yr=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),yr}var Ar,yu;function cs(){if(yu)return Ar;yu=1;var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Ar=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}(),Ar}var Sr,Au;function wt(){return Au||(Au=1,Sr=ls()()?globalThis:cs()),Sr}var br,Su;function hs(){if(Su)return br;Su=1;var h=wt(),w={object:!0,symbol:!0};return br=function(){var f=h.Symbol,L;if(typeof f!="function")return!1;L=f("test symbol");try{String(L)}catch{return!1}return!(!w[typeof f.iterator]||!w[typeof f.toPrimitive]||!w[typeof f.toStringTag])},br}var Ir,bu;function gs(){return bu||(bu=1,Ir=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}),Ir}var Rr,Iu;function Ru(){if(Iu)return Rr;Iu=1;var h=gs();return Rr=function(w){if(!h(w))throw new TypeError(w+" is not a symbol");return w},Rr}var Tr,Tu;function ps(){if(Tu)return Tr;Tu=1;var h=Ye,w=Object.create,f=Object.defineProperty,L=Object.prototype,O=w(null);return Tr=function(P){for(var R=0,j,Y;O[P+(R||"")];)++R;return P+=R||"",O[P]=!0,j="@@"+P,f(L,j,h.gs(null,function(H){Y||(Y=!0,f(this,j,h(H)),Y=!1)})),j},Tr}var Or,Ou;function _s(){if(Ou)return Or;Ou=1;var h=Ye,w=wt().Symbol;return Or=function(f){return Object.defineProperties(f,{hasInstance:h("",w&&w.hasInstance||f("hasInstance")),isConcatSpreadable:h("",w&&w.isConcatSpreadable||f("isConcatSpreadable")),iterator:h("",w&&w.iterator||f("iterator")),match:h("",w&&w.match||f("match")),replace:h("",w&&w.replace||f("replace")),search:h("",w&&w.search||f("search")),species:h("",w&&w.species||f("species")),split:h("",w&&w.split||f("split")),toPrimitive:h("",w&&w.toPrimitive||f("toPrimitive")),toStringTag:h("",w&&w.toStringTag||f("toStringTag")),unscopables:h("",w&&w.unscopables||f("unscopables"))})},Or}var Er,Eu;function vs(){if(Eu)return Er;Eu=1;var h=Ye,w=Ru(),f=Object.create(null);return Er=function(L){return Object.defineProperties(L,{for:h(function(O){return f[O]?f[O]:f[O]=L(String(O))}),keyFor:h(function(O){var P;w(O);for(P in f)if(f[P]===O)return P})})},Er}var Cr,Cu;function ds(){if(Cu)return Cr;Cu=1;var h=Ye,w=Ru(),f=wt().Symbol,L=ps(),O=_s(),P=vs(),R=Object.create,j=Object.defineProperties,Y=Object.defineProperty,H,D,Q;if(typeof f=="function")try{String(f()),Q=!0}catch{}else f=null;return D=function(z){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return H(z)},Cr=H=function q(z){var an;if(this instanceof q)throw new TypeError("Symbol is not a constructor");return Q?f(z):(an=R(D.prototype),z=z===void 0?"":String(z),j(an,{__description__:h("",z),__name__:h("",L(z))}))},O(H),P(H),j(D.prototype,{constructor:h(H),toString:h("",function(){return this.__name__})}),j(H.prototype,{toString:h(function(){return"Symbol ("+w(this).__description__+")"}),valueOf:h(function(){return w(this)})}),Y(H.prototype,H.toPrimitive,h("",function(){var q=w(this);return typeof q=="symbol"?q:q.toString()})),Y(H.prototype,H.toStringTag,h("c","Symbol")),Y(D.prototype,H.toStringTag,h("c",H.prototype[H.toStringTag])),Y(D.prototype,H.toPrimitive,h("c",H.prototype[H.toPrimitive])),Cr}var Lr,Lu;function ws(){return Lu||(Lu=1,Lr=hs()()?wt().Symbol:ds()),Lr}var Pr,Pu;function ms(){if(Pu)return Pr;Pu=1;var h=Object.prototype.toString,w=h.call(function(){return arguments}());return Pr=function(f){return h.call(f)===w},Pr}var Wr,Wu;function xs(){if(Wu)return Wr;Wu=1;var h=Object.prototype.toString,w=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Wr=function(f){return typeof f=="function"&&w(h.call(f))},Wr}var Fr,Fu;function ys(){if(Fu)return Fr;Fu=1;var h=Object.prototype.toString,w=h.call("");return Fr=function(f){return typeof f=="string"||f&&typeof f=="object"&&(f instanceof String||h.call(f)===w)||!1},Fr}var Mr,Mu;function As(){if(Mu)return Mr;Mu=1;var h=ws().iterator,w=ms(),f=xs(),L=Ma,O=uu,P=fu,R=Oe,j=ys(),Y=Array.isArray,H=Function.prototype.call,D={configurable:!0,enumerable:!0,writable:!0,value:null},Q=Object.defineProperty;return Mr=function(q){var z=arguments[1],an=arguments[2],un,C,_n,W,A,$,X,V,en,cn;if(q=Object(P(q)),R(z)&&O(z),!this||this===Array||!f(this)){if(!z){if(w(q))return A=q.length,A!==1?Array.apply(null,q):(W=new Array(1),W[0]=q[0],W);if(Y(q)){for(W=new Array(A=q.length),C=0;C=55296&&$<=56319&&(cn+=q[++C])),cn=z?H.call(z,an,cn,_n):cn,un?(D.value=cn,Q(W,_n,D)):W[_n]=cn,++_n;A=_n}}if(A===void 0)for(A=L(q.length),un&&(W=new un(A)),C=0;Casync w=>{const f=new h,L=await w(f);return f.terminate(),L},bs=h=>w=>Ss(h)(f=>(f.postMessage(w),new Promise((L,O)=>{f.onmessage=P=>{L(P.data)},f.onerror=O})));var Is=""+new URL("parseTraceSlave.worker-06d8e902.js",self.location.href).href;const Uu=(h="",w="")=>`${h}::::${w}`,Du=({component:h})=>h&&Object.hasOwn(h,"alpha")?Nn.get(h,"alpha")>0:!0,{min:Rs}=Math,Ts=navigator.hardwareConcurrency??8;class Os extends Worker{constructor(){super(Is,{type:"module"})}}const Es=bs(Os);async function Cs({trace:h,context:w,view:f="main"}){var Y,H;const L=Nn.ceil((((Y=h==null?void 0:h.events)==null?void 0:Y.length)??0)/Ts),O=Nn.range(0,(H=h==null?void 0:h.events)==null?void 0:H.length,L),P=Nn.flatten(await Promise.all(Nn.map(O,D=>{var Q;return Es({trace:h,context:w,view:f,from:D,to:Rs(D+L,((Q=h==null?void 0:h.events)==null?void 0:Q.length)??0)})}))),R={},j=[];for(const{event:D,components:{transient:Q=[],special:q=[],persistent:z=[]}}of P){delete R[Uu(D.id,D.type)],Q.push(...Nn.values(R).flat());for(const an of q){const un=Uu(D.id,Nn.get(an.component,"clear"));R[un]=R[un]??[],R[un].push(an),Q.push(an)}j.push({transient:Q,persistent:z})}return{stepsPersistent:Nn.map(j,"persistent").map(D=>Nn.filter(D,Du)),stepsTransient:Nn.map(j,"transient").map(D=>Nn.filter(D,Du))}}onmessage=async({data:h})=>{postMessage(await Cs(h))}})(); diff --git a/assets/parseTrace.worker-6a8ce322.js b/assets/parseTrace.worker-6a8ce322.js deleted file mode 100644 index 3628744..0000000 --- a/assets/parseTrace.worker-6a8ce322.js +++ /dev/null @@ -1,27 +0,0 @@ -(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */vt.exports,function(h,w){(function(){var f,L="4.17.21",O=200,P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",j="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",H=500,D="__lodash_placeholder__",Q=1,q=2,z=4,an=1,un=2,C=1,_n=2,W=4,A=8,$=16,X=32,V=64,en=128,cn=256,Ur=512,Fs=30,Ms="...",Bs=800,Us=16,Nu=1,Ds=2,qs=3,we=1/0,ae=9007199254740991,$s=17976931348623157e292,mt=0/0,Xn=4294967295,Ns=Xn-1,Gs=Xn>>>1,Hs=[["ary",en],["bind",C],["bindKey",_n],["curry",A],["curryRight",$],["flip",Ur],["partial",X],["partialRight",V],["rearg",cn]],Ee="[object Arguments]",xt="[object Array]",zs="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Ks="[object DOMException]",yt="[object Error]",At="[object Function]",Gu="[object GeneratorFunction]",Gn="[object Map]",Qe="[object Number]",Zs="[object Null]",kn="[object Object]",Hu="[object Promise]",Ys="[object Proxy]",Ve="[object RegExp]",Hn="[object Set]",ke="[object String]",St="[object Symbol]",Xs="[object Undefined]",je="[object WeakMap]",Js="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Dr="[object Float32Array]",qr="[object Float64Array]",$r="[object Int8Array]",Nr="[object Int16Array]",Gr="[object Int32Array]",Hr="[object Uint8Array]",zr="[object Uint8ClampedArray]",Kr="[object Uint16Array]",Zr="[object Uint32Array]",Qs=/\b__p \+= '';/g,Vs=/\b(__p \+=) '' \+/g,ks=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zu=/&(?:amp|lt|gt|quot|#39);/g,Ku=/[&<>"']/g,js=RegExp(zu.source),nl=RegExp(Ku.source),el=/<%-([\s\S]+?)%>/g,tl=/<%([\s\S]+?)%>/g,Zu=/<%=([\s\S]+?)%>/g,rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,il=/^\w*$/,ul=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,fl=RegExp(Yr.source),Xr=/^\s+/,ol=/\s/,al=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /,cl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hl=/[()=,{}\[\]\/\s]/,gl=/\\(\\)?/g,pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yu=/\w*$/,_l=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,dl=/^\[object .+?Constructor\]$/,wl=/^0o[0-7]+$/i,ml=/^(?:0|[1-9]\d*)$/,xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,yl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",Al="\\u0300-\\u036f",Sl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",Xu=Al+Sl+bl,Ju="\\u2700-\\u27bf",Qu="a-z\\xdf-\\xf6\\xf8-\\xff",Il="\\xac\\xb1\\xd7\\xf7",Rl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tl="\\u2000-\\u206f",Ol=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vu="A-Z\\xc0-\\xd6\\xd8-\\xde",ku="\\ufe0e\\ufe0f",ju=Il+Rl+Tl+Ol,Jr="['’]",El="["+It+"]",nf="["+ju+"]",Rt="["+Xu+"]",ef="\\d+",Cl="["+Ju+"]",tf="["+Qu+"]",rf="[^"+It+ju+ef+Ju+Qu+Vu+"]",Qr="\\ud83c[\\udffb-\\udfff]",Ll="(?:"+Rt+"|"+Qr+")",uf="[^"+It+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Vu+"]",ff="\\u200d",of="(?:"+tf+"|"+rf+")",Pl="(?:"+Le+"|"+rf+")",af="(?:"+Jr+"(?:d|ll|m|re|s|t|ve))?",sf="(?:"+Jr+"(?:D|LL|M|RE|S|T|VE))?",lf=Ll+"?",cf="["+ku+"]?",Wl="(?:"+ff+"(?:"+[uf,Vr,kr].join("|")+")"+cf+lf+")*",Fl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ml="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hf=cf+lf+Wl,Bl="(?:"+[Cl,Vr,kr].join("|")+")"+hf,Ul="(?:"+[uf+Rt+"?",Rt,Vr,kr,El].join("|")+")",Dl=RegExp(Jr,"g"),ql=RegExp(Rt,"g"),jr=RegExp(Qr+"(?="+Qr+")|"+Ul+hf,"g"),$l=RegExp([Le+"?"+tf+"+"+af+"(?="+[nf,Le,"$"].join("|")+")",Pl+"+"+sf+"(?="+[nf,Le+of,"$"].join("|")+")",Le+"?"+of+"+"+af,Le+"+"+sf,Ml,Fl,ef,Bl].join("|"),"g"),Nl=RegExp("["+ff+It+Xu+ku+"]"),Gl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zl=-1,tn={};tn[Dr]=tn[qr]=tn[$r]=tn[Nr]=tn[Gr]=tn[Hr]=tn[zr]=tn[Kr]=tn[Zr]=!0,tn[Ee]=tn[xt]=tn[nt]=tn[Xe]=tn[Ce]=tn[Je]=tn[yt]=tn[At]=tn[Gn]=tn[Qe]=tn[kn]=tn[Ve]=tn[Hn]=tn[ke]=tn[je]=!1;var nn={};nn[Ee]=nn[xt]=nn[nt]=nn[Ce]=nn[Xe]=nn[Je]=nn[Dr]=nn[qr]=nn[$r]=nn[Nr]=nn[Gr]=nn[Gn]=nn[Qe]=nn[kn]=nn[Ve]=nn[Hn]=nn[ke]=nn[St]=nn[Hr]=nn[zr]=nn[Kr]=nn[Zr]=!0,nn[yt]=nn[At]=nn[je]=!1;var Kl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Yl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jl=parseFloat,Ql=parseInt,gf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Vl=typeof self=="object"&&self&&self.Object===Object&&self,vn=gf||Vl||Function("return this")(),ni=w&&!w.nodeType&&w,me=ni&&!0&&h&&!h.nodeType&&h,pf=me&&me.exports===ni,ei=pf&&gf.process,Wn=function(){try{var l=me&&me.require&&me.require("util").types;return l||ei&&ei.binding&&ei.binding("util")}catch{}}(),_f=Wn&&Wn.isArrayBuffer,vf=Wn&&Wn.isDate,df=Wn&&Wn.isMap,wf=Wn&&Wn.isRegExp,mf=Wn&&Wn.isSet,xf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function kl(l,p,g,x){for(var T=-1,K=l==null?0:l.length;++T-1}function ti(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function Of(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function oc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var ac=fi(Kl),sc=fi(Zl);function lc(l){return"\\"+Xl[l]}function cc(l,p){return l==null?f:l[p]}function We(l){return Nl.test(l)}function hc(l){return Gl.test(l)}function gc(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function li(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function Ef(l,p){return function(g){return l(p(g))}}function ce(l,p){for(var g=-1,x=l.length,T=0,K=[];++g-1}function nh(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}jn.prototype.clear=Qc,jn.prototype.delete=Vc,jn.prototype.get=kc,jn.prototype.has=jc,jn.prototype.set=nh;function ne(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&Q,c=e&q,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!fn(n))return n;var v=E(n);if(v){if(a=ig(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==Gu;if(de(n))return co(n,s);if(d==kn||d==Ee||m&&!i){if(a=c||m?{}:Lo(n),!s)return c?Yh(n,vh(a,n)):Zh(n,Nf(a,n))}else{if(!nn[d])return i?n:{};a=ug(n,d,s)}}o||(o=new Kn);var y=o.get(n);if(y)return y;o.set(n,a),fa(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):ia(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Bi:Mi:c?In:pn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function dh(n){var e=pn(n);return function(t){return Gf(t,n,e)}}function Gf(n,e,t){var r=t.length;if(n==null)return!r;for(n=k(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function Hf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=rn(e,On(t))),r?(o=ti,a=!1):e.length>=O&&(o=et,a=!1,e=new Ae(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:aa(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):le(i,s):r||(i[i.length]=s)}return i}var di=wo(),Zf=wo(!0);function Jn(n,e){return n&&di(n,e,pn)}function wi(n,e){return n&&Zf(n,e,pn)}function Zt(n,e){return se(e,function(t){return ue(n[t])})}function be(n,e){e=_e(e,n);for(var t=0,r=e.length;n!=null&&te}function xh(n,e){return n!=null&&J.call(n,e)}function yh(n,e){return n!=null&&e in k(n)}function Ah(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new Ae(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function ro(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ie(i)?Ut.call(n,i,1):Oi(n,i)}}return n}function Ii(n,e){return n+$t(Uf()*(e-n+1))}function Mh(n,e,t,r){for(var i=-1,o=gn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ri(n,e){var t="";if(!n||e<1||e>ae)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Hi(Fo(n,e,Rn),n+"")}function Bh(n){return $f(ze(n))}function Uh(n,e){var t=ze(n);return rr(t,Se(e,0,t.length))}function ct(n,e,t,r){if(!fn(n))return n;e=_e(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Vh(n);if(_)return Et(_);a=!1,i=et,c=new Ae}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var lo=Oc||function(n){return vn.clearTimeout(n)};function co(n,e){if(e)return n.slice();var t=n.length,r=Pf?Pf(t):new n.constructor(t);return n.copy(r),r}function Pi(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function Gh(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Hh(n){var e=new n.constructor(n.source,Yu.exec(n));return e.lastIndex=n.lastIndex,e}function zh(n){return ft?k(ft.call(n)):{}}function ho(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function go(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function po(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=gn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=k(e);++r-1?i[o?e[a]:a]:f}}function yo(n){return re(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&G.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&un?new Ae:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(al,`{ -/* [wrapped with `+e+`] */ -`)}function og(n){return E(n)||Te(n)||!!(Mf&&n&&n[Mf])}function ie(n,e){var t=typeof n;return e=e??ae,!!e&&(t=="number"||t!="symbol"&&ml.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Bs)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,Zo(n,t)});function Yo(n){var e=u(n);return e.__chain__=!0,e}function wp(n,e){return e(n),n}function ir(n,e){return e(n)}var mp=re(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return vi(o,n)};return e>1||this.__actions__.length||!(r instanceof N)||!ie(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function xp(){return Yo(this)}function yp(){return new Bn(this.value(),this.__chain__)}function Ap(){this.__values__===f&&(this.__values__=oa(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function Sp(){return this}function bp(n){for(var e,t=this;t instanceof Ht;){var r=$o(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Ip(){var n=this.__wrapped__;if(n instanceof N){var e=n;return this.__actions__.length&&(e=new N(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[zi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(zi)}function Rp(){return ao(this.__wrapped__,this.__actions__)}var Tp=Qt(function(n,e,t){J.call(n,t)?++n[t]:ee(n,t,1)});function Op(n,e,t){var r=E(n)?yf:wh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Ep(n,e){var t=E(n)?se:Kf;return t(n,S(e,3))}var Cp=xo(No),Lp=xo(Go);function Pp(n,e){return dn(ur(n,e),1)}function Wp(n,e){return dn(ur(n,e),we)}function Fp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Xo(n,e){var t=E(n)?Fn:ge;return t(n,S(e,3))}function Jo(n,e){var t=E(n)?jl:zf;return t(n,S(e,3))}var Mp=Qt(function(n,e,t){J.call(n,t)?n[t].push(e):ee(n,t,[e])});function Bp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=gn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Up=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return ge(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Dp=Qt(function(n,e,t){ee(n,t,e)});function ur(n,e){var t=E(n)?rn:Vf;return t(n,S(e,3))}function qp(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),eo(n,e,t))}var $p=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Np(n,e,t){var r=E(n)?ri:If,i=arguments.length<3;return r(n,S(e,4),t,i,ge)}function Gp(n,e,t){var r=E(n)?nc:If,i=arguments.length<3;return r(n,S(e,4),t,i,zf)}function Hp(n,e){var t=E(n)?se:Kf;return t(n,ar(S(e,3)))}function zp(n){var e=E(n)?$f:Bh;return e(n)}function Kp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?gh:Uh;return r(n,e)}function Zp(n){var e=E(n)?ph:qh;return e(n)}function Yp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Gn||e==Hn?n.size:Ai(n).length}function Xp(n,e,t){var r=E(n)?ii:$h;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Jp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),eo(n,dn(e,1),[])}),fr=Ec||function(){return vn.Date.now()};function Qp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Qo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,te(n,en,f,f,f,f,e)}function Vo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Zi=B(function(n,e,t){var r=C;if(t.length){var i=ce(t,Ge(Zi));r|=X}return te(n,r,e,t,i)}),ko=B(function(n,e,t){var r=C|_n;if(t.length){var i=ce(t,Ge(ko));r|=X}return te(e,r,n,t,i)});function jo(n,e,t){e=t?f:e;var r=te(n,A,f,f,f,f,f,e);return r.placeholder=jo.placeholder,r}function na(n,e,t){e=t?f:e;var r=te(n,$,f,f,f,f,f,e);return r.placeholder=na.placeholder,r}function ea(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,fn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?gn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(ln){var Yn=r,oe=i;return r=i=f,_=ln,a=n.apply(oe,Yn),a}function b(ln){return _=ln,s=pt(U,e),v?y(ln):a}function M(ln){var Yn=ln-c,oe=ln-_,xa=e-Yn;return d?wn(xa,o-oe):xa}function I(ln){var Yn=ln-c,oe=ln-_;return c===f||Yn>=e||Yn<0||d&&oe>=o}function U(){var ln=fr();if(I(ln))return G(ln);s=pt(U,M(ln))}function G(ln){return s=f,m&&r?y(ln):(r=i=f,a)}function Ln(){s!==f&&lo(s),_=0,r=c=i=s=f}function An(){return s===f?a:G(fr())}function Pn(){var ln=fr(),Yn=I(ln);if(r=arguments,i=this,c=ln,Yn){if(s===f)return b(c);if(d)return lo(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Vp=B(function(n,e){return Hf(n,1,e)}),kp=B(function(n,e,t){return Hf(n,$n(e)||0,t)});function jp(n){return te(n,Ur)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||ne),t}or.Cache=ne;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function n_(n){return Vo(2,n)}var e_=Nh(function(n,e){e=e.length==1&&E(e[0])?rn(e[0],On(S())):rn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Te=Xf(function(){return arguments}())?Xf:function(n){return on(n)&&J.call(n,"callee")&&!Ff.call(n,"callee")},E=g.isArray,v_=_f?On(_f):bh;function bn(n){return n!=null&&sr(n.length)&&!ue(n)}function sn(n){return on(n)&&bn(n)}function d_(n){return n===!0||n===!1||on(n)&&xn(n)==Xe}var de=Lc||iu,w_=vf?On(vf):Ih;function m_(n){return on(n)&&n.nodeType===1&&!_t(n)}function x_(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||de(n)||He(n)||Te(n)))return!n.length;var e=mn(n);if(e==Gn||e==Hn)return!n.size;if(gt(n))return!Ai(n).length;for(var t in n)if(J.call(n,t))return!1;return!0}function y_(n,e){return lt(n,e)}function A_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Xi(n){if(!on(n))return!1;var e=xn(n);return e==yt||e==Ks||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function S_(n){return typeof n=="number"&&Bf(n)}function ue(n){if(!fn(n))return!1;var e=xn(n);return e==At||e==Gu||e==zs||e==Ys}function ra(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ae}function fn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function on(n){return n!=null&&typeof n=="object"}var ia=df?On(df):Th;function b_(n,e){return n===e||yi(n,e,Di(e))}function I_(n,e,t){return t=typeof t=="function"?t:f,yi(n,e,Di(e),t)}function R_(n){return ua(n)&&n!=+n}function T_(n){if(lg(n))throw new T(P);return Jf(n)}function O_(n){return n===null}function E_(n){return n==null}function ua(n){return typeof n=="number"||on(n)&&xn(n)==Qe}function _t(n){if(!on(n)||xn(n)!=kn)return!1;var e=Bt(n);if(e===null)return!0;var t=J.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==Ic}var Ji=wf?On(wf):Oh;function C_(n){return ra(n)&&n>=-ae&&n<=ae}var fa=mf?On(mf):Eh;function lr(n){return typeof n=="string"||!E(n)&&on(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||on(n)&&xn(n)==St}var He=xf?On(xf):Ch;function L_(n){return n===f}function P_(n){return on(n)&&mn(n)==je}function W_(n){return on(n)&&xn(n)==Js}var F_=nr(Si),M_=nr(function(n,e){return n<=e});function oa(n){if(!n)return[];if(bn(n))return lr(n)?zn(n):Sn(n);if(tt&&n[tt])return gc(n[tt]());var e=mn(n),t=e==Gn?li:e==Hn?Et:ze;return t(n)}function fe(n){if(!n)return n===0?n:0;if(n=$n(n),n===we||n===-we){var e=n<0?-1:1;return e*$s}return n===n?n:0}function F(n){var e=fe(n),t=e%1;return e===e?t?e-t:e:0}function aa(n){return n?Se(F(n),0,Xn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(fn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=fn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Rf(n);var t=vl.test(n);return t||wl.test(n)?Ql(n.slice(2),t?2:8):_l.test(n)?mt:+n}function sa(n){return Qn(n,In(n))}function B_(n){return n?Se(F(n),-ae,ae):n===0?n:0}function Z(n){return n==null?"":En(n)}var U_=$e(function(n,e){if(gt(e)||bn(e)){Qn(e,pn(e),n);return}for(var t in e)J.call(e,t)&&ot(n,t,e[t])}),la=$e(function(n,e){Qn(e,In(e),n)}),cr=$e(function(n,e,t,r){Qn(e,In(e),n,r)}),D_=$e(function(n,e,t,r){Qn(e,pn(e),n,r)}),q_=re(vi);function $_(n,e){var t=qe(n);return e==null?t:Nf(t,e)}var N_=B(function(n,e){n=k(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Qn(n,Bi(n),t),r&&(t=Un(t,Q|q|z,kh));for(var i=e.length;i--;)Oi(t,e[i]);return t});function uv(n,e){return ha(n,ar(S(e)))}var fv=re(function(n,e){return n==null?{}:Wh(n,e)});function ha(n,e){if(n==null)return{};var t=rn(Bi(n),function(r){return[r]});return e=S(e),to(n,t,function(r,i){return e(r,i[0])})}function ov(n,e,t){e=_e(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Uf();return wn(n+i*(e-n+Jl("1e-"+((i+"").length-1))),e)}return Ii(n,e)}var wv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?_a(e):e)});function _a(n){return ki(Z(n).toLowerCase())}function va(n){return n=Z(n),n&&n.replace(xl,ac).replace(ql,"")}function mv(n,e,t){n=Z(n),e=En(e);var r=n.length;t=t===f?r:Se(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function xv(n){return n=Z(n),n&&nl.test(n)?n.replace(Ku,sc):n}function yv(n){return n=Z(n),n&&fl.test(n)?n.replace(Yr,"\\$&"):n}var Av=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Sv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),bv=mo("toLowerCase");function Iv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function Rv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=Z(n),n&&(typeof e=="string"||e!=null&&!Ji(e))&&(e=En(e),!e&&We(n))?ve(zn(n),0,t):n.split(e,t)):[]}var Wv=Ne(function(n,e,t){return n+(t?" ":"")+ki(e)});function Fv(n,e,t){return n=Z(n),t=t==null?0:Se(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Mv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=Z(n),e=cr({},e,r,Ro);var i=cr({},e.imports,r.imports,Ro),o=pn(i),a=si(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=ci((e.escape||bt).source+"|"+v.source+"|"+(v===Zu?pl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(J.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zl+"]")+` -`;n.replace(m,function(I,U,G,Ln,An,Pn){return G||(G=Ln),d+=n.slice(_,Pn).replace(yl,lc),U&&(s=!0,d+=`' + -__e(`+U+`) + -'`),An&&(c=!0,d+=`'; -`+An+`; -__p += '`),G&&(d+=`' + -((__t = (`+G+`)) == null ? '' : __t) + -'`),_=Pn+I.length,I}),d+=`'; -`;var b=J.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { -`+d+` -} -`;else if(hl.test(b))throw new T(j);d=(c?d.replace(Qs,""):d).replace(Vs,"$1").replace(ks,"$1;"),d="function("+(b||"obj")+`) { -`+(b?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+d+`return __p -}`;var M=wa(function(){return K(o,y+"return "+d).apply(f,a)});if(M.source=d,Xi(M))throw M;return M}function Bv(n){return Z(n).toLowerCase()}function Uv(n){return Z(n).toUpperCase()}function Dv(n,e,t){if(n=Z(n),n&&(t||e===f))return Rf(n);if(!n||!(e=En(e)))return n;var r=zn(n),i=zn(e),o=Tf(r,i),a=Of(r,i)+1;return ve(r,o,a).join("")}function qv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.slice(0,Cf(n)+1);if(!n||!(e=En(e)))return n;var r=zn(n),i=Of(r,zn(e))+1;return ve(r,0,i).join("")}function $v(n,e,t){if(n=Z(n),n&&(t||e===f))return n.replace(Xr,"");if(!n||!(e=En(e)))return n;var r=zn(n),i=Tf(r,zn(e));return ve(r,i).join("")}function Nv(n,e){var t=Fs,r=Ms;if(fn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=Z(n);var o=n.length;if(We(n)){var a=zn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?ve(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Ji(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=ci(i.source,Z(Yu.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function Gv(n){return n=Z(n),n&&js.test(n)?n.replace(zu,dc):n}var Hv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ki=mo("toUpperCase");function da(n,e,t){return n=Z(n),e=t?f:e,e===f?hc(n)?xc(n):rc(n):n.match(e)||[]}var wa=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Xi(t)?t:new T(t)}}),zv=re(function(n,e){return Fn(e,function(t){t=Vn(t),ee(n,t,Zi(n[t],n))}),n});function Kv(n){var e=n==null?0:n.length,t=S();return n=e?rn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++iae)return[];var t=Xn,r=wn(n,Xn);e=S(e),n-=Xn;for(var i=ai(r,e);++t0||e<0)?new N(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},N.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},N.prototype.toArray=function(){return this.take(Xn)},Jn(N.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof N,_=s[0],v=c||E(a),d=function(U){var G=i.apply(u,le([U],s));return r&&m?G[0]:G};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new N(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Jn(N.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";J.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],N.prototype.clone=Gc,N.prototype.reverse=Hc,N.prototype.value=zc,u.prototype.at=mp,u.prototype.chain=xp,u.prototype.commit=yp,u.prototype.next=Ap,u.prototype.plant=bp,u.prototype.reverse=Ip,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Rp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=Sp),u},Me=yc();me?((me.exports=Me)._=Me,ni._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Nn=vt.exports,ya=function(){},Aa=ya(),Oe=function(h){return h!==Aa&&h!==null},Sa=Oe,ba=Array.prototype.forEach,Ia=Object.create,Ra=function(h,w){var f;for(f in h)w[f]=h[f]},Ta=function(h){var w=Ia(null);return ba.call(arguments,function(f){Sa(f)&&Ra(Object(f),w)}),w},Oa=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,uu;function Ea(){return uu||(uu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Ca=Oa()?Math.sign:Ea(),La=Ca,Pa=Math.abs,Wa=Math.floor,Fa=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:La(h)*Wa(Pa(h)))},Ma=Fa,Ba=Math.max,Ua=function(h){return Ba(0,Ma(h))},fu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Da=Oe,ou=function(h){if(!Da(h))throw new TypeError("Cannot use null or undefined");return h},qa={exports:{}},$a=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,au;function Na(){return au||(au=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,su;function Ga(){if(su)return pr;su=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,lu;function Ha(){return lu||(lu=1,_r=Na()()?Object.keys:Ga()),_r}var vr,cu;function za(){if(cu)return vr;cu=1;var h=Ha(),w=ou,f=Math.max;return vr=function(L,O){var P,R,j=f(arguments.length,2),Y;for(L=Object(w(L)),Y=function(H){try{L[H]=O[H]}catch(D){P||(P=D)}},R=1;R-1},wr}var as=fs()?String.prototype.contains:os(),dt=_u,du=us,wu=hu,mu=Ta,Ze=as,ss=pu.exports=function(h,w){var f,L,O,P,R;return arguments.length<2||typeof h!="string"?(P=w,w=h,h=null):P=arguments[2],dt(h)?(f=Ze.call(h,"c"),L=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,L=!1),R={value:w,configurable:f,enumerable:L,writable:O},P?wu(mu(P),R):R};ss.gs=function(h,w,f){var L,O,P,R;return typeof h!="string"?(P=f,f=w,w=h,h=null):P=arguments[3],dt(w)?du(w)?dt(f)?du(f)||(P=f,f=void 0):f=void 0:(P=w,w=f=void 0):w=void 0,dt(h)?(L=Ze.call(h,"c"),O=Ze.call(h,"e")):(L=!0,O=!1),R={get:w,set:f,configurable:L,enumerable:O},P?wu(mu(P),R):R};var Ye=pu.exports,mr={exports:{}};(function(h,w){var f=Ye,L=fu,O=Function.prototype.apply,P=Function.prototype.call,R=Object.create,j=Object.defineProperty,Y=Object.defineProperties,H=Object.prototype.hasOwnProperty,D={configurable:!0,enumerable:!1,writable:!0},Q,q,z,an,un,C,_n;Q=function(W,A){var $;return L(A),H.call(this,"__ee__")?$=this.__ee__:($=D.value=R(null),j(this,"__ee__",D),D.value=null),$[W]?typeof $[W]=="object"?$[W].push(A):$[W]=[$[W],A]:$[W]=A,this},q=function(W,A){var $,X;return L(A),X=this,Q.call(this,W,$=function(){z.call(X,W,$),O.call(A,this,arguments)}),$.__eeOnceListener__=A,this},z=function(W,A){var $,X,V,en;if(L(A),!H.call(this,"__ee__"))return this;if($=this.__ee__,!$[W])return this;if(X=$[W],typeof X=="object")for(en=0;V=X[en];++en)(V===A||V.__eeOnceListener__===A)&&(X.length===2?$[W]=X[en?0:1]:X.splice(en,1));else(X===A||X.__eeOnceListener__===A)&&delete $[W];return this},an=function(W){var A,$,X,V,en;if(H.call(this,"__ee__")&&(V=this.__ee__[W],!!V))if(typeof V=="object"){for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];for(V=V.slice(),A=0;X=V[A];++A)O.call(X,this,en)}else switch(arguments.length){case 1:P.call(V,this);break;case 2:P.call(V,this,arguments[1]);break;case 3:P.call(V,this,arguments[1],arguments[2]);break;default:for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];O.call(V,this,en)}},un={on:Q,once:q,off:z,emit:an},C={on:f(Q),once:f(q),off:f(z),emit:f(an)},_n=Y({},C),h.exports=w=function(W){return W==null?R(_n):Y(Object(W),C)},w.methods=un})(mr,mr.exports);var ls=mr.exports,xr,xu;function cs(){return xu||(xu=1,xr=function(){var h=Array.from,w,f;return typeof h!="function"?!1:(w=["raz","dwa"],f=h(w),!!(f&&f!==w&&f[1]==="dwa"))}),xr}var yr,yu;function hs(){return yu||(yu=1,yr=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),yr}var Ar,Au;function gs(){if(Au)return Ar;Au=1;var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Ar=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}(),Ar}var Sr,Su;function wt(){return Su||(Su=1,Sr=hs()()?globalThis:gs()),Sr}var br,bu;function ps(){if(bu)return br;bu=1;var h=wt(),w={object:!0,symbol:!0};return br=function(){var f=h.Symbol,L;if(typeof f!="function")return!1;L=f("test symbol");try{String(L)}catch{return!1}return!(!w[typeof f.iterator]||!w[typeof f.toPrimitive]||!w[typeof f.toStringTag])},br}var Ir,Iu;function _s(){return Iu||(Iu=1,Ir=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}),Ir}var Rr,Ru;function Tu(){if(Ru)return Rr;Ru=1;var h=_s();return Rr=function(w){if(!h(w))throw new TypeError(w+" is not a symbol");return w},Rr}var Tr,Ou;function vs(){if(Ou)return Tr;Ou=1;var h=Ye,w=Object.create,f=Object.defineProperty,L=Object.prototype,O=w(null);return Tr=function(P){for(var R=0,j,Y;O[P+(R||"")];)++R;return P+=R||"",O[P]=!0,j="@@"+P,f(L,j,h.gs(null,function(H){Y||(Y=!0,f(this,j,h(H)),Y=!1)})),j},Tr}var Or,Eu;function ds(){if(Eu)return Or;Eu=1;var h=Ye,w=wt().Symbol;return Or=function(f){return Object.defineProperties(f,{hasInstance:h("",w&&w.hasInstance||f("hasInstance")),isConcatSpreadable:h("",w&&w.isConcatSpreadable||f("isConcatSpreadable")),iterator:h("",w&&w.iterator||f("iterator")),match:h("",w&&w.match||f("match")),replace:h("",w&&w.replace||f("replace")),search:h("",w&&w.search||f("search")),species:h("",w&&w.species||f("species")),split:h("",w&&w.split||f("split")),toPrimitive:h("",w&&w.toPrimitive||f("toPrimitive")),toStringTag:h("",w&&w.toStringTag||f("toStringTag")),unscopables:h("",w&&w.unscopables||f("unscopables"))})},Or}var Er,Cu;function ws(){if(Cu)return Er;Cu=1;var h=Ye,w=Tu(),f=Object.create(null);return Er=function(L){return Object.defineProperties(L,{for:h(function(O){return f[O]?f[O]:f[O]=L(String(O))}),keyFor:h(function(O){var P;w(O);for(P in f)if(f[P]===O)return P})})},Er}var Cr,Lu;function ms(){if(Lu)return Cr;Lu=1;var h=Ye,w=Tu(),f=wt().Symbol,L=vs(),O=ds(),P=ws(),R=Object.create,j=Object.defineProperties,Y=Object.defineProperty,H,D,Q;if(typeof f=="function")try{String(f()),Q=!0}catch{}else f=null;return D=function(z){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return H(z)},Cr=H=function q(z){var an;if(this instanceof q)throw new TypeError("Symbol is not a constructor");return Q?f(z):(an=R(D.prototype),z=z===void 0?"":String(z),j(an,{__description__:h("",z),__name__:h("",L(z))}))},O(H),P(H),j(D.prototype,{constructor:h(H),toString:h("",function(){return this.__name__})}),j(H.prototype,{toString:h(function(){return"Symbol ("+w(this).__description__+")"}),valueOf:h(function(){return w(this)})}),Y(H.prototype,H.toPrimitive,h("",function(){var q=w(this);return typeof q=="symbol"?q:q.toString()})),Y(H.prototype,H.toStringTag,h("c","Symbol")),Y(D.prototype,H.toStringTag,h("c",H.prototype[H.toStringTag])),Y(D.prototype,H.toPrimitive,h("c",H.prototype[H.toPrimitive])),Cr}var Lr,Pu;function xs(){return Pu||(Pu=1,Lr=ps()()?wt().Symbol:ms()),Lr}var Pr,Wu;function ys(){if(Wu)return Pr;Wu=1;var h=Object.prototype.toString,w=h.call(function(){return arguments}());return Pr=function(f){return h.call(f)===w},Pr}var Wr,Fu;function As(){if(Fu)return Wr;Fu=1;var h=Object.prototype.toString,w=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Wr=function(f){return typeof f=="function"&&w(h.call(f))},Wr}var Fr,Mu;function Ss(){if(Mu)return Fr;Mu=1;var h=Object.prototype.toString,w=h.call("");return Fr=function(f){return typeof f=="string"||f&&typeof f=="object"&&(f instanceof String||h.call(f)===w)||!1},Fr}var Mr,Bu;function bs(){if(Bu)return Mr;Bu=1;var h=xs().iterator,w=ys(),f=As(),L=Ua,O=fu,P=ou,R=Oe,j=Ss(),Y=Array.isArray,H=Function.prototype.call,D={configurable:!0,enumerable:!0,writable:!0,value:null},Q=Object.defineProperty;return Mr=function(q){var z=arguments[1],an=arguments[2],un,C,_n,W,A,$,X,V,en,cn;if(q=Object(P(q)),R(z)&&O(z),!this||this===Array||!f(this)){if(!z){if(w(q))return A=q.length,A!==1?Array.apply(null,q):(W=new Array(1),W[0]=q[0],W);if(Y(q)){for(W=new Array(A=q.length),C=0;C=55296&&$<=56319&&(cn+=q[++C])),cn=z?H.call(z,an,cn,_n):cn,un?(D.value=cn,Q(W,_n,D)):W[_n]=cn,++_n;A=_n}}if(A===void 0)for(A=L(q.length),un&&(W=new un(A)),C=0;Casync w=>{const f=new h,L=await w(f);return f.terminate(),L},Ts=h=>w=>Rs(h)(f=>(f.postMessage(w),new Promise((L,O)=>{f.onmessage=P=>{L(P.data)},f.onerror=O})));var Os=""+new URL("parseTraceSlave.worker-ee96b03a.js",self.location.href).href;const qu=(h="",w="")=>`${h}::::${w}`,$u=({component:h})=>h&&Object.hasOwn(h,"alpha")?Nn.get(h,"alpha")>0:!0,{min:Es}=Math,Cs=navigator.hardwareConcurrency??8;class Ls extends Worker{constructor(){super(Os,{type:"module"})}}const Ps=Ts(Ls);async function Ws({trace:h,context:w,view:f="main"}){var Y,H;const L=Nn.ceil((((Y=h==null?void 0:h.events)==null?void 0:Y.length)??0)/Cs),O=Nn.range(0,(H=h==null?void 0:h.events)==null?void 0:H.length,L),P=Nn.flatten(await Promise.all(Nn.map(O,D=>{var Q;return Ps({trace:h,context:w,view:f,from:D,to:Es(D+L,((Q=h==null?void 0:h.events)==null?void 0:Q.length)??0)})}))),R={},j=[];for(const{event:D,components:{transient:Q=[],special:q=[],persistent:z=[]}}of P){delete R[qu(D.id,D.type)],Q.push(...Nn.values(R).flat());for(const an of q){const un=qu(D.id,Nn.get(an.component,"clear"));R[un]=R[un]??[],R[un].push(an),Q.push(an)}j.push({transient:Q,persistent:z})}return{stepsPersistent:Nn.map(j,"persistent").map(D=>Nn.filter(D,$u)),stepsTransient:Nn.map(j,"transient").map(D=>Nn.filter(D,$u))}}onmessage=async({data:h})=>{postMessage(await Ws(h))}})(); diff --git a/assets/parseTraceSlave.worker-06d8e902.js b/assets/parseTraceSlave.worker-06d8e902.js new file mode 100644 index 0000000..662f9d9 --- /dev/null +++ b/assets/parseTraceSlave.worker-06d8e902.js @@ -0,0 +1,35 @@ +(function(){"use strict";var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,x="__lodash_placeholder__",E=1,M=2,C=4,N=1,D=2,L=1,P=2,q=4,A=8,R=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Wi=800,Kt=16,vt=1,Bi=2,Ui=3,Nn=1/0,wn=9007199254740991,We=17976931348623157e292,ae=0/0,$n=4294967295,Gi=$n-1,Zt=$n>>>1,Yt=[["ary",J],["bind",L],["bindKey",P],["curry",A],["curryRight",R],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Vt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Lh="[object Undefined]",mt="[object WeakMap]",qh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",zi="[object Float32Array]",Hi="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",Yi="[object Int32Array]",Vi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Ji="[object Uint32Array]",Mh=/\b__p \+= '';/g,Fh=/\b(__p \+=) '' \+/g,Nh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Go=/&(?:amp|lt|gt|quot|#39);/g,zo=/[&<>"']/g,$h=RegExp(Go.source),Dh=RegExp(zo.source),Wh=/<%-([\s\S]+?)%>/g,Bh=/<%([\s\S]+?)%>/g,Ho=/<%=([\s\S]+?)%>/g,Uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gh=/^\w*$/,zh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ji=/[\\^$.*+?()[\]{}|]/g,Hh=RegExp(ji.source),ki=/^\s+/,Kh=/\s/,Zh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yh=/\{\n\/\* \[wrapped with (.+)\] \*/,Vh=/,? & /,Qh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xh=/[()=,{}\[\]\/\s]/,Jh=/\\(\\)?/g,jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ko=/\w*$/,kh=/^[-+]0x[0-9a-f]+$/i,np=/^0b[01]+$/i,ep=/^\[object .+?Constructor\]$/,tp=/^0o[0-7]+$/i,rp=/^(?:0|[1-9]\d*)$/,ip=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,up=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",fp="\\u0300-\\u036f",op="\\ufe20-\\ufe2f",ap="\\u20d0-\\u20ff",Zo=fp+op+ap,Yo="\\u2700-\\u27bf",Vo="a-z\\xdf-\\xf6\\xf8-\\xff",lp="\\xac\\xb1\\xd7\\xf7",sp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cp="\\u2000-\\u206f",hp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qo="A-Z\\xc0-\\xd6\\xd8-\\xde",Xo="\\ufe0e\\ufe0f",Jo=lp+sp+cp+hp,nu="['’]",pp="["+Jt+"]",jo="["+Jo+"]",jt="["+Zo+"]",ko="\\d+",gp="["+Yo+"]",na="["+Vo+"]",ea="[^"+Jt+Jo+ko+Yo+Vo+Qo+"]",eu="\\ud83c[\\udffb-\\udfff]",vp="(?:"+jt+"|"+eu+")",ta="[^"+Jt+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Qo+"]",ra="\\u200d",ia="(?:"+na+"|"+ea+")",dp="(?:"+je+"|"+ea+")",ua="(?:"+nu+"(?:d|ll|m|re|s|t|ve))?",fa="(?:"+nu+"(?:D|LL|M|RE|S|T|VE))?",oa=vp+"?",aa="["+Xo+"]?",_p="(?:"+ra+"(?:"+[ta,tu,ru].join("|")+")"+aa+oa+")*",mp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",la=aa+oa+_p,wp="(?:"+[gp,tu,ru].join("|")+")"+la,xp="(?:"+[ta+jt+"?",jt,tu,ru,pp].join("|")+")",bp=RegExp(nu,"g"),Sp=RegExp(jt,"g"),iu=RegExp(eu+"(?="+eu+")|"+xp+la,"g"),Ap=RegExp([je+"?"+na+"+"+ua+"(?="+[jo,je,"$"].join("|")+")",dp+"+"+fa+"(?="+[jo,je+ia,"$"].join("|")+")",je+"?"+ia+"+"+ua,je+"+"+fa,yp,mp,ko,wp].join("|"),"g"),Op=RegExp("["+ra+Jt+Zo+Xo+"]"),Tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ip=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rp=-1,ln={};ln[zi]=ln[Hi]=ln[Ki]=ln[Zi]=ln[Yi]=ln[Vi]=ln[Qi]=ln[Xi]=ln[Ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[zi]=on[Hi]=on[Ki]=on[Zi]=on[Yi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Vi]=on[Qi]=on[Xi]=on[Ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Ep={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pp={"&":"&","<":"<",">":">",'"':""","'":"'"},Cp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Lp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qp=parseFloat,Mp=parseInt,sa=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,Fp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=sa||Fp||Function("return this")(),uu=l&&!l.nodeType&&l,Be=uu&&!0&&f&&!f.nodeType&&f,ca=Be&&Be.exports===uu,fu=ca&&sa.process,Kn=function(){try{var p=Be&&Be.require&&Be.require("util").types;return p||fu&&fu.binding&&fu.binding("util")}catch{}}(),ha=Kn&&Kn.isArrayBuffer,pa=Kn&&Kn.isDate,ga=Kn&&Kn.isMap,va=Kn&&Kn.isRegExp,da=Kn&&Kn.isSet,_a=Kn&&Kn.isTypedArray;function Dn(p,S,b){switch(b.length){case 0:return p.call(S);case 1:return p.call(S,b[0]);case 2:return p.call(S,b[0],b[1]);case 3:return p.call(S,b[0],b[1],b[2])}return p.apply(S,b)}function Np(p,S,b,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function ou(p,S,b){for(var $=-1,K=p==null?0:p.length;++$-1;);return b}function Oa(p,S){for(var b=p.length;b--&&ke(S,p[b],0)>-1;);return b}function Kp(p,S){for(var b=p.length,$=0;b--;)p[b]===S&&++$;return $}var Zp=cu(Ep),Yp=cu(Pp);function Vp(p){return"\\"+Lp[p]}function Qp(p,S){return p==null?i:p[S]}function nt(p){return Op.test(p)}function Xp(p){return Tp.test(p)}function Jp(p){for(var S,b=[];!(S=p.next()).done;)b.push(S.value);return b}function vu(p){var S=-1,b=Array(p.size);return p.forEach(function($,K){b[++S]=[K,$]}),b}function Ta(p,S){return function(b){return p(S(b))}}function Ie(p,S){for(var b=-1,$=p.length,K=0,nn=[];++b<$;){var mn=p[b];(mn===S||mn===x)&&(p[b]=x,nn[K++]=b)}return nn}function er(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=$}),b}function jp(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=[$,$]}),b}function kp(p,S,b){for(var $=b-1,K=p.length;++$-1}function Dg(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Mg,ce.prototype.delete=Fg,ce.prototype.get=Ng,ce.prototype.has=$g,ce.prototype.set=Dg;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&E,v=e&M,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!cn(n))return n;var T=Z(n);if(T){if(s=Gv(n),!c)return Ln(n,s)}else{var I=Tn(n),F=I==xn||I==Se;if(qe(n))return al(n,c);if(I==Hn||I==le||F&&!u){if(s=v||F?{}:Il(n),!c)return v?Cv(n,nv(s,n)):Pv(n,Da(s,n))}else{if(!on[I])return u?n:{};s=zv(n,I,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),ts(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):ns(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Uu:Bu:v?Mn:bn,V=T?i:z(n);return Zn(V||n,function(H,X){V&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function ev(n){var e=bn(n);return function(t){return Wa(t,n,e)}}function Wa(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ba(n,e,t){if(typeof n!="function")throw new Yn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=ou,s=!1):e.length>=m&&(a=wt,s=!1,e=new ze(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:Y(r),r<0&&(r+=u),r=t>r?0:is(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var bu=gl(),za=gl(!0);function ue(n,e){return n&&bu(n,e,bn)}function Su(n,e){return n&&za(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function Ke(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function iv(n,e){return n!=null&&tn.call(n,e)}function uv(n,e){return n!=null&&e in fn(n)}function fv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new ze(s&&T):i}T=n[0];var I=-1,F=c[0];n:for(;++I-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function nl(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):qu(n,u)}}return n}function Pu(n,e){return n+hr(Ma()*(e-n+1))}function yv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=b(a);a--;)s[r?a:++u]=n,n+=t;return s}function Cu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Vu(Pl(n,e,Fn),n+"")}function wv(n){return $a(ct(n))}function xv(n,e){var t=ct(n);return Er(t,He(e,0,t.length))}function Pt(n,e,t,r){if(!cn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=b(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:Fv(n);if(O)return er(O);s=!1,u=wt,v=new ze}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var ol=hg||function(n){return Sn.clearTimeout(n)};function al(n,e){if(e)return n.slice();var t=n.length,r=Ea?Ea(t):new n.constructor(t);return n.copy(r),r}function $u(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Tv(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Iv(n){var e=new n.constructor(n.source,Ko.exec(n));return e.lastIndex=n.lastIndex,e}function Rv(n){return Ot?fn(Ot.call(n)):{}}function ll(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function sl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function cl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=b(v+O),I=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function _l(n){return ve(function(e){var t=e.length,r=t,u=Vn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Yn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Vn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var I=-1,F=!0,B=t&D?new ze:i;for(a.set(n,e),a.set(e,n);++I1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Zh,`{ +/* [wrapped with `+e+`] */ +`)}function Kv(n){return Z(n)||Ve(n)||!!(La&&n&&n[La])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&rp.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Wi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Gl(n,t)});function zl(n){var e=o(n);return e.__chain__=!0,e}function t_(n,e){return e(n),n}function Pr(n,e){return e(n)}var r_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return xu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Vn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function i_(){return zl(this)}function u_(){return new Vn(this.value(),this.__chain__)}function f_(){this.__values__===i&&(this.__values__=rs(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function o_(){return this}function a_(n){for(var e,t=this;t instanceof vr;){var r=Nl(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function l_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Qu],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(Qu)}function s_(){return ul(this.__wrapped__,this.__actions__)}var c_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function h_(n,e,t){var r=Z(n)?ma:tv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function p_(n,e){var t=Z(n)?Oe:Ga;return t(n,G(e,3))}var g_=dl($l),v_=dl(Dl);function d_(n,e){return An(Cr(n,e),1)}function __(n,e){return An(Cr(n,e),Nn)}function m_(n,e,t){return t=t===i?1:Y(t),An(Cr(n,e),t)}function Hl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Kl(n,e){var t=Z(n)?$p:Ua;return t(n,G(e,3))}var y_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function w_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?Y(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var x_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?b(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),b_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Va;return t(n,G(e,3))}function S_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),ja(n,e,t))}var A_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function O_(n,e,t){var r=Z(n)?au:ba,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function T_(n,e,t){var r=Z(n)?Dp:ba,u=arguments.length<3;return r(n,G(e,4),t,u,Ua)}function I_(n,e){var t=Z(n)?Oe:Ga;return t(n,Mr(G(e,3)))}function R_(n){var e=Z(n)?$a:wv;return e(n)}function E_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=Y(e);var r=Z(n)?Jg:xv;return r(n,e)}function P_(n){var e=Z(n)?jg:Sv;return e(n)}function C_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Iu(n).length}function L_(n,e,t){var r=Z(n)?lu:Av;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var q_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),ja(n,An(e,1),[])}),Lr=pg||function(){return Sn.Date.now()};function M_(n,e){if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){if(--n<1)return e.apply(this,arguments)}}function Zl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Yl(n,e){var t;if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var Ju=Q(function(n,e,t){var r=L;if(t.length){var u=Ie(t,lt(Ju));r|=W}return ge(n,r,e,t,u)}),Vl=Q(function(n,e,t){var r=L|P;if(t.length){var u=Ie(t,lt(Vl));r|=W}return ge(e,r,n,t,u)});function Ql(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Ql.placeholder,r}function Xl(n,e,t){e=t?i:e;var r=ge(n,R,i,i,i,i,i,e);return r.placeholder=Xl.placeholder,r}function Jl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,I=!1,F=!0;if(typeof n!="function")throw new Yn(g);e=jn(e)||0,cn(t)&&(T=!!t.leading,I="maxWait"in t,a=I?yn(jn(t.maxWait)||0,e):a,F="trailing"in t?!!t.trailing:F);function B(gn){var re=r,ye=u;return r=u=i,O=gn,s=n.apply(ye,re),s}function z(gn){return O=gn,c=qt(X,e),T?B(gn):s}function V(gn){var re=gn-v,ye=gn-O,ds=e-re;return I?On(ds,a-ye):ds}function H(gn){var re=gn-v,ye=gn-O;return v===i||re>=e||re<0||I&&ye>=a}function X(){var gn=Lr();if(H(gn))return k(gn);c=qt(X,V(gn))}function k(gn){return c=i,F&&r?B(gn):(r=u=i,s)}function Gn(){c!==i&&ol(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var gn=Lr(),re=H(gn);if(r=arguments,u=this,v=gn,re){if(c===i)return z(v);if(I)return ol(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var F_=Q(function(n,e){return Ba(n,1,e)}),N_=Q(function(n,e,t){return Ba(n,jn(e)||0,t)});function $_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Yn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Yn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function D_(n){return Yl(2,n)}var W_=Ov(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Ka(function(){return arguments}())?Ka:function(n){return hn(n)&&tn.call(n,"callee")&&!Ca.call(n,"callee")},Z=b.isArray,n0=ha?Wn(ha):av;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function pn(n){return hn(n)&&qn(n)}function e0(n){return n===!0||n===!1||hn(n)&&In(n)==se}var qe=vg||sf,t0=pa?Wn(pa):lv;function r0(n){return hn(n)&&n.nodeType===1&&!Mt(n)}function i0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Iu(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function u0(n,e){return Et(n,e)}function f0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function ku(n){if(!hn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function o0(n){return typeof n=="number"&&qa(n)}function _e(n){if(!cn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Vt}function kl(n){return typeof n=="number"&&n==Y(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hn(n){return n!=null&&typeof n=="object"}var ns=ga?Wn(ga):cv;function a0(n,e){return n===e||Tu(n,e,zu(e))}function l0(n,e,t){return t=typeof t=="function"?t:i,Tu(n,e,zu(e),t)}function s0(n){return es(n)&&n!=+n}function c0(n){if(Vv(n))throw new K(d);return Za(n)}function h0(n){return n===null}function p0(n){return n==null}function es(n){return typeof n=="number"||hn(n)&&In(n)==Cn}function Mt(n){if(!hn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==lg}var nf=va?Wn(va):hv;function g0(n){return kl(n)&&n>=-wn&&n<=wn}var ts=da?Wn(da):pv;function Nr(n){return typeof n=="string"||!Z(n)&&hn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||hn(n)&&In(n)==Qt}var st=_a?Wn(_a):gv;function v0(n){return n===i}function d0(n){return hn(n)&&Tn(n)==mt}function _0(n){return hn(n)&&In(n)==qh}var m0=Tr(Ru),y0=Tr(function(n,e){return n<=e});function rs(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return Jp(n[xt]());var e=Tn(n),t=e==dn?vu:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*We}return n===n?n:0}function Y(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function is(n){return n?He(Y(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(cn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=cn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Sa(n);var t=np.test(n);return t||tp.test(n)?Mp(n.slice(2),t?2:8):kh.test(n)?ae:+n}function us(n){return fe(n,Mn(n))}function w0(n){return n?He(Y(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var x0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),fs=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),b0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),S0=ve(xu);function A0(n,e){var t=ft(n);return e==null?t:Da(t,e)}var O0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Uu(n),t),r&&(t=Qn(t,E|M|C,Nv));for(var u=e.length;u--;)qu(t,e[u]);return t});function z0(n,e){return as(n,Mr(G(e)))}var H0=ve(function(n,e){return n==null?{}:_v(n,e)});function as(n,e){if(n==null)return{};var t=sn(Uu(n),function(r){return[r]});return e=G(e),ka(n,t,function(r,u){return e(r,u[0])})}function K0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Ma();return On(n+u*(e-n+qp("1e-"+((u+"").length-1))),e)}return Pu(n,e)}var t1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?cs(e):e)});function cs(n){return rf(en(n).toLowerCase())}function hs(n){return n=en(n),n&&n.replace(ip,Zp).replace(Sp,"")}function r1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:He(Y(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function i1(n){return n=en(n),n&&Dh.test(n)?n.replace(zo,Yp):n}function u1(n){return n=en(n),n&&Hh.test(n)?n.replace(ji,"\\$&"):n}var f1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),o1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),a1=vl("toLowerCase");function l1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function s1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!nf(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var _1=at(function(n,e,t){return n+(t?" ":"")+rf(e)});function m1(n,e,t){return n=en(n),t=t==null?0:He(Y(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function y1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,bl);var u=$r({},e.imports,r.imports,bl),a=bn(u),s=gu(u,a),c,v,O=0,T=e.interpolate||Xt,I="__p += '",F=du((e.escape||Xt).source+"|"+T.source+"|"+(T===Ho?jh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rp+"]")+` +`;n.replace(F,function(H,X,k,Gn,En,zn){return k||(k=Gn),I+=n.slice(O,zn).replace(up,Vp),X&&(c=!0,I+=`' + +__e(`+X+`) + +'`),En&&(v=!0,I+=`'; +`+En+`; +__p += '`),k&&(I+=`' + +((__t = (`+k+`)) == null ? '' : __t) + +'`),O=zn+H.length,H}),I+=`'; +`;var z=tn.call(e,"variable")&&e.variable;if(!z)I=`with (obj) { +`+I+` +} +`;else if(Xh.test(z))throw new K(y);I=(v?I.replace(Mh,""):I).replace(Fh,"$1").replace(Nh,"$1;"),I="function("+(z||"obj")+`) { +`+(z?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+I+`return __p +}`;var V=gs(function(){return nn(a,B+"return "+I).apply(i,s)});if(V.source=I,ku(V))throw V;return V}function w1(n){return en(n).toLowerCase()}function x1(n){return en(n).toUpperCase()}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return Sa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Aa(r,u),s=Oa(r,u)+1;return Le(r,a,s).join("")}function S1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ia(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Oa(r,ne(e))+1;return Le(r,0,u).join("")}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(ki,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Aa(r,ne(e));return Le(r,u).join("")}function O1(n,e){var t=gt,r=Ht;if(cn(e)){var u="separator"in e?e.separator:u;t="length"in e?Y(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),nf(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=du(u.source,en(Ko.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var I=O.index;v=v.slice(0,I===i?c:I)}}else if(n.indexOf(Bn(u),c)!=c){var F=v.lastIndexOf(u);F>-1&&(v=v.slice(0,F))}return v+r}function T1(n){return n=en(n),n&&$h.test(n)?n.replace(Go,eg):n}var I1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),rf=vl("toUpperCase");function ps(n,e,t){return n=en(n),e=t?i:e,e===i?Xp(n)?ig(n):Up(n):n.match(e)||[]}var gs=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return ku(t)?t:new K(t)}}),R1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,Ju(n[t],n))}),n});function E1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Yn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=pu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=Y(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),I=function(X){var k=u.apply(o,Te([X],c));return r&&F?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var F=this.__chain__,B=!!this.__actions__.length,z=a&&!F,V=v&&!B;if(!a&&T){s=V?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[I],thisArg:i}),new Vn(H,F)}return z&&V?n.apply(this,c):(H=this.thru(I),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Tg,j.prototype.reverse=Ig,j.prototype.value=Rg,o.prototype.at=r_,o.prototype.chain=i_,o.prototype.commit=u_,o.prototype.next=f_,o.prototype.plant=a_,o.prototype.reverse=l_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=s_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=o_),o},tt=ug();Be?((Be.exports=tt)._=tt,uu._=tt):Sn._=tt}).call(Qe)}(Ft,Ft.exports);var vn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var ms=function(){},ys=ms(),Me=function(f){return f!==ys&&f!==null},ws=Me,xs=Array.prototype.forEach,bs=Object.create,Ss=function(f,l){var i;for(i in f)l[i]=f[i]},cf=function(f){var l=bs(null);return xs.call(arguments,function(i){ws(i)&&Ss(Object(i),l)}),l},As=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,hf;function Os(){return hf||(hf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Ts=As()?Math.sign:Os(),Is=Ts,Rs=Math.abs,Es=Math.floor,Ps=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Is(f)*Es(Rs(f)))},Cs=Ps,Ls=Math.max,Fe=function(f){return Ls(0,Cs(f))},qs=Fe,pf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:qs(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Ms=Me,Xe=function(f){if(!Ms(f))throw new TypeError("Cannot use null or undefined");return f},Fs=we,Ns=Xe,$s=Function.prototype.bind,gf=Function.prototype.call,Ds=Object.keys,Ws=Object.prototype.propertyIsEnumerable,Bs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ns(i)),Fs(h),m=Ds(i),g&&m.sort(typeof g=="function"?$s.call(g,i):void 0),typeof f!="function"&&(f=m[f]),gf.call(f,m,function(y,w){return Ws.call(i,y)?gf.call(h,d,i[y],y,i,w):l})}},Nt=Bs("forEach"),Ne={},vf={exports:{}},Us=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,df;function Gs(){return df||(df=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,_f;function zs(){if(_f)return Ur;_f=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,mf;function Hs(){return mf||(mf=1,Gr=Gs()()?Object.keys:zs()),Gr}var zr,yf;function Ks(){if(yf)return zr;yf=1;var f=Hs(),l=Xe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(x){d||(d=x)}},g=1;g-1},Vr}var sc=ac()?String.prototype.contains:lc(),$t=Pf,Lf=oc,qf=wf,Mf=cf,ht=sc,cc=Ef.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?qf(Mf(d),g):g};cc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?Lf(l)?$t(i)?Lf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?qf(Mf(d),g):g};var $e=Ef.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,x={configurable:!0,enumerable:!1,writable:!0},E,M,C,N,D,L,P;E=function(q,A){var R;return h(A),_.call(this,"__ee__")?R=this.__ee__:(R=x.value=g(null),y(this,"__ee__",x),x.value=null),R[q]?typeof R[q]=="object"?R[q].push(A):R[q]=[R[q],A]:R[q]=A,this},M=function(q,A){var R,W;return h(A),W=this,E.call(this,q,R=function(){C.call(W,q,R),m.call(A,this,arguments)}),R.__eeOnceListener__=A,this},C=function(q,A){var R,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(R=this.__ee__,!R[q])return this;if(W=R[q],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?R[q]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete R[q];return this},N=function(q){var A,R,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[q],!!U))if(typeof U=="object"){for(R=arguments.length,J=new Array(R-1),A=1;A=55296&&R<=56319&&(rn+=M[++L])),rn=C?_.call(C,N,rn,P):rn,D?(x.value=rn,E(q,P,x)):q[P]=rn,++P;A=P}}if(A===void 0)for(A=h(M.length),D&&(q=new D(A)),L=0;L=0?x=g(x):x=l(this.length)-g(d(x)),w=x;w<_;++w)if(m.call(this,w)&&(E=this[w],f(E)))return w;return-1},wi}var bi,ao;function jc(){if(ao)return bi;ao=1;var f=xi(),l=Object.create;return bi=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],x=_.length,E=[];if(x===0)delete y[x];else if(y=y[x]){for(;g"}},Li}var qi,Ao;function fh(){if(Ao)return qi;Ao=1;var f=uh(),l=/[\n\r\u2028\u2029]/g;return qi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},qi}var Gt={exports:{}},Oo;function To(){if(Oo)return Gt.exports;Oo=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Io;function oh(){if(Io)return _o;Io=1;var f=po(),l=th(),i=ih(),h=fh(),m=To(),d=Ii(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var x=g(null),E=g(null),M=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,N,D){var L=!1;if(!m(D)){E[C]=D,_.emit("setasync",C,1);return}x[C]=1,M[C]=D;var P=function(W){var U=x[C];if(L)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);U&&(delete x[C],E[C]=W,_.emit("setasync",C,U))},q=function(){L=!0,x[C]&&(delete x[C],delete M[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var R=function(){d(q)};D=D.then(function(W){d(P.bind(this,W))},R),typeof D.finally=="function"&&D.finally(R)}else if(A==="done"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");D.done(P,q)}else if(A==="done:finally"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof D.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");D.done(P),D.finally(q)}}),_.on("get",function(C,N,D){var L;if(x[C]){++x[C];return}L=M[C];var P=function(){_.emit("getasync",C,N,D)};m(L)?typeof L.done=="function"?L.done(P):L.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete M[C],x[C]){delete x[C];return}if(hasOwnProperty.call(E,C)){var N=E[C];delete E[C],_.emit("deleteasync",C,[N])}}),_.on("clear",function(){var C=E;E=g(null),x=g(null),M=g(null),_.emit("clearasync",f(C,function(N){return[N]}))})},_o}var Ro={},Eo;function ah(){if(Eo)return Ro;Eo=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,x){y(x,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,x){y(x,_)})})},Ro}var Po={},Mi,Co;function lh(){return Co||(Co=1,Mi=2147483647),Mi}var Fi,Lo;function sh(){if(Lo)return Fi;Lo=1;var f=Fe,l=lh();return Fi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Fi}var qo;function ch(){if(qo)return Po;qo=1;var f=hi,l=Nt,i=Ii(),h=To(),m=sh(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(x,E,M){var C,N,D,L;x=m(x),x&&(C=_(null),N=M.async&&d.async||M.promise&&d.promise?"async":"",E.on("set"+N,function(P){C[P]=setTimeout(function(){E.delete(P)},x),typeof C[P].unref=="function"&&C[P].unref(),L&&(L[P]&&L[P]!=="nextTick"&&clearTimeout(L[P]),L[P]=setTimeout(function(){delete L[P]},D),typeof L[P].unref=="function"&&L[P].unref())}),E.on("delete"+N,function(P){clearTimeout(C[P]),delete C[P],L&&(L[P]!=="nextTick"&&clearTimeout(L[P]),delete L[P])}),M.preFetch&&(M.preFetch===!0||isNaN(M.preFetch)?D=.333:D=y(w(Number(M.preFetch),1),0),D&&(L={},D=(1-D)*x,E.on("get"+N,function(P,q,A){L[P]||(L[P]="nextTick",i(function(){var R;L[P]==="nextTick"&&(delete L[P],E.delete(P),M.async&&(q=f(q),q.push(g)),R=E.memoized.apply(A,q),M.promise&&h(R)&&(typeof R.done=="function"?R.done(g,g):R.then(g,g)))}))}))),E.on("clear"+N,function(){l(C,function(P){clearTimeout(P)}),C={},L&&(l(L,function(P){P!=="nextTick"&&clearTimeout(P)}),L={})}))},Po}var Mo={},Ni,Fo;function hh(){if(Fo)return Ni;Fo=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return Ni=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(x){var E=y[x],M=++w;if(g[M]=x,y[x]=M,!E)return++m,m<=h?void 0:(x=g[d],_(x),x);if(delete g[E],d===E)for(;!i.call(g,++d););},delete:_=function(x){var E=y[x];if(E&&(delete g[E],delete y[x],--m,d===E)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},Ni}var No;function ph(){if(No)return Mo;No=1;var f=Fe,l=hh(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},Mo}var $o={},Do;function gh(){if(Do)return $o;Do=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,x){y[_]=x||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},$o}var vh=cf,dh=pf,_h=Zc,mh=function(f){var l=vh(arguments[1]),i;return l.normalizer||(i=l.length=dh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Yc():i>1&&(l.normalizer=Vc()(i)):i===!1?l.normalizer=jc()():i===1?l.normalizer=kc()():l.normalizer=nh()(i))),l.async&&eh(),l.promise&&oh(),l.dispose&&ah(),l.maxAge&&ch(),l.max&&ph(),l.refCounter&&gh(),_h(f,l)},yh=_s(mh),Wo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Qe,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,x=_===void 0?/^\\/:_,E=w.VARIABLE_START,M=E===void 0?/^\${\s*/:E,C=w.VARIABLE_END,N=C===void 0?/^\s*}/:C,D=w.PIPE_START,L=D===void 0?/^\s*\|\s*/:D,P=w.PIPE_PARAMETER_START,q=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,R=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Wi=Ht===void 0?null:Ht,Kt=U||function(Nn){return R.test(Nn)},vt=rn||g(R),Bi=gt||function(Nn){return R.test(Nn)},Ui=Wi||g(R);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function We(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return We(x),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function Gi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Yt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Vt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!N.test(un)&&(We(N),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Gi(),xn=0,!0)}function se(){return!!L.test(un)&&(We(L),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!q.test(un)&&(We(q),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Vt=!1;un&&un.length>0;)switch(xn){case 0:if(x.test(un)){Se+=ae();continue}if(M.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",We(M);continue}Se+=un[0],wn();break;case 1:if(x.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(x.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(x.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Bi(un)){Ae+=Ui(un,wn);continue}Ae+=un[0],wn()}return Vt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var x=w.match(y);return _(x[0].length),x.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(x){return function(E){return x.hasOwnProperty(E)?x[E]:E.split(".").reduce(function(M,C){return M.hasOwnProperty(C)?M[C]:""},x)}}function g(x,E,M,C){C===void 0&&(C=d(E));var N=C(x.name);return x.pipes.reduce(function(D,L){return M.hasOwnProperty(L.name)?M[L.name](D,L.parameters):D},N??"")}function y(x,E,M,C){return C===void 0&&(C=d(E)),x.literals.length===0?"":x.literals.slice(1).reduce(function(N,D,L){return""+N+g(x.variables[L],E,M,C)+D},x.literals[0])}function w(x,E,M){return y(_.parseStringTemplate(x),E,M)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Wo);var Bo=Wo.exports;const Uo=f=>{const l=Function("$",` + const theme = $.__internal__?.context.theme; + const color = $.__internal__?.context.color; + const step = $.__internal__?.step; + const events = $.__internal__?.events; + const parent = $.__internal__?.parent; + return ${f}; + `);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},wh=/^\$\{\{\s*/,xh=/^\s*\}\}/,$i=/\b\B/,bh=Bo.parseStringTemplateGenerator({VARIABLE_START:wh,VARIABLE_END:xh,PIPE_START:$i,PIPE_PARAMETER_START:$i,QUOTED_STRING:$i}),Sh=yh(f=>{const l=bh(f);return vn.join(l.literals,"")?i=>Bo.evaluateParsedString(l,{},{},h=>Uo(h)(i)):Uo(l.variables[0].name)},{primitive:!0});function De(f){switch(f==null?void 0:f.constructor){case Array:{const l=vn.map(f,De);return i=>vn.map(l,h=>h(i))}case Object:{const l=vn.mapValues(f,De);return i=>vn.mapValues(l,h=>h(i))}case String:return Sh(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>vn.isFunction(l)?l:De(l))}function Ah(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Di(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Oh(f){const{$for:l,$if:i,...h}=f;if(l||i){const{$let:m="i",$from:d=0,$to:g=1,$step:y=1}=l??{},w=De(i),_=De(d),x=De(g),E=De(y);return(M={})=>!i||w(M)?vn.range(_(M),x(M),E(M)).map(C=>{const N=Di(M,zt({[m]:C}));return Di(N,zt(h))}):[]}else return(m={})=>[Di(m,zt(h))]}function Th(f,l){const i=d=>{const{$:g}=d,y=Oh(d);return g in l?w=>vn.flatMap(y(w),_=>vn.flatMap(h[g],x=>x(_))):w=>vn.map(y(w),_=>Object.setPrototypeOf(Dr(_,x=>x(_)),null))},h=vn.mapValues(l,d=>vn.map(d,i)),m=vn.flatMap(f,i);return d=>vn.flatMap(m,g=>g(d))}const Ih=f=>f==null,Rh=f=>f.clear?typeof f.clear=="string"?"special":"transient":"persistent";function Eh(f,l){return Object.setPrototypeOf(f,l),f}const Ph="#808080";function Ch({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var _;const g=Th(((_=f==null?void 0:f.views)==null?void 0:_[i])??[],(f==null?void 0:f.views)??{}),y=x=>E=>({component:E,meta:{source:"trace",step:h+x,info:E.$info}}),w=vn.chain(f==null?void 0:f.events).map((x,E)=>({step:E,id:x.id,data:x,pId:x.pId})).groupBy("id").value();return vn.chain(vn.range(h,m)).map(x=>{var N;const E=f.events[x],M=f.events,C=g(Ah(Eh({alpha:1,fill:Ph,__internal__:{context:l,step:x,parent:Ih(E.pId)?void 0:M[((N=vn.findLast(w[E.pId],D=>D.step<=x))==null?void 0:N.step)??0],events:M}},E)));return{event:E,components:vn.groupBy(C,Rh)}}).map((x,E)=>({event:x.event,components:vn.mapValues(x.components,M=>M.map(y(E)))})).value()}onmessage=({data:f})=>{postMessage(Ch(f))}})(); diff --git a/assets/parseTraceSlave.worker-ee96b03a.js b/assets/parseTraceSlave.worker-ee96b03a.js deleted file mode 100644 index 2f82acf..0000000 --- a/assets/parseTraceSlave.worker-ee96b03a.js +++ /dev/null @@ -1,35 +0,0 @@ -(function(){"use strict";var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ys(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,x="__lodash_placeholder__",E=1,M=2,C=4,N=1,D=2,L=1,P=2,q=4,A=8,R=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Bi=800,Kt=16,vt=1,Ui=2,Gi=3,Nn=1/0,wn=9007199254740991,We=17976931348623157e292,ae=0/0,$n=4294967295,zi=$n-1,Zt=$n>>>1,Yt=[["ary",J],["bind",L],["bindKey",P],["curry",A],["curryRight",R],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Vt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Mh="[object Undefined]",mt="[object WeakMap]",Fh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",Hi="[object Float32Array]",Ki="[object Float64Array]",Zi="[object Int8Array]",Yi="[object Int16Array]",Vi="[object Int32Array]",Qi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ji="[object Uint16Array]",ji="[object Uint32Array]",Nh=/\b__p \+= '';/g,$h=/\b(__p \+=) '' \+/g,Dh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ho=/&(?:amp|lt|gt|quot|#39);/g,Ko=/[&<>"']/g,Wh=RegExp(Ho.source),Bh=RegExp(Ko.source),Uh=/<%-([\s\S]+?)%>/g,Gh=/<%([\s\S]+?)%>/g,Zo=/<%=([\s\S]+?)%>/g,zh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hh=/^\w*$/,Kh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Zh=RegExp(ki.source),nu=/^\s+/,Yh=/\s/,Vh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qh=/\{\n\/\* \[wrapped with (.+)\] \*/,Xh=/,? & /,Jh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jh=/[()=,{}\[\]\/\s]/,kh=/\\(\\)?/g,np=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,ep=/^[-+]0x[0-9a-f]+$/i,tp=/^0b[01]+$/i,rp=/^\[object .+?Constructor\]$/,ip=/^0o[0-7]+$/i,up=/^(?:0|[1-9]\d*)$/,fp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,op=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",ap="\\u0300-\\u036f",lp="\\ufe20-\\ufe2f",sp="\\u20d0-\\u20ff",Vo=ap+lp+sp,Qo="\\u2700-\\u27bf",Xo="a-z\\xdf-\\xf6\\xf8-\\xff",cp="\\xac\\xb1\\xd7\\xf7",hp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pp="\\u2000-\\u206f",gp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jo="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",ko=cp+hp+pp+gp,eu="['’]",vp="["+Jt+"]",na="["+ko+"]",jt="["+Vo+"]",ea="\\d+",dp="["+Qo+"]",ta="["+Xo+"]",ra="[^"+Jt+ko+ea+Qo+Xo+Jo+"]",tu="\\ud83c[\\udffb-\\udfff]",_p="(?:"+jt+"|"+tu+")",ia="[^"+Jt+"]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Jo+"]",ua="\\u200d",fa="(?:"+ta+"|"+ra+")",mp="(?:"+je+"|"+ra+")",oa="(?:"+eu+"(?:d|ll|m|re|s|t|ve))?",aa="(?:"+eu+"(?:D|LL|M|RE|S|T|VE))?",la=_p+"?",sa="["+jo+"]?",yp="(?:"+ua+"(?:"+[ia,ru,iu].join("|")+")"+sa+la+")*",wp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ca=sa+la+yp,bp="(?:"+[dp,ru,iu].join("|")+")"+ca,Sp="(?:"+[ia+jt+"?",jt,ru,iu,vp].join("|")+")",Ap=RegExp(eu,"g"),Op=RegExp(jt,"g"),uu=RegExp(tu+"(?="+tu+")|"+Sp+ca,"g"),Tp=RegExp([je+"?"+ta+"+"+oa+"(?="+[na,je,"$"].join("|")+")",mp+"+"+aa+"(?="+[na,je+fa,"$"].join("|")+")",je+"?"+fa+"+"+oa,je+"+"+aa,xp,wp,ea,bp].join("|"),"g"),Ip=RegExp("["+ua+Jt+Vo+jo+"]"),Rp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ep=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pp=-1,ln={};ln[Hi]=ln[Ki]=ln[Zi]=ln[Yi]=ln[Vi]=ln[Qi]=ln[Xi]=ln[Ji]=ln[ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[Hi]=on[Ki]=on[Zi]=on[Yi]=on[Vi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Qi]=on[Xi]=on[Ji]=on[ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Cp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lp={"&":"&","<":"<",">":">",'"':""","'":"'"},qp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Mp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fp=parseFloat,Np=parseInt,ha=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,$p=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ha||$p||Function("return this")(),fu=l&&!l.nodeType&&l,Be=fu&&!0&&f&&!f.nodeType&&f,pa=Be&&Be.exports===fu,ou=pa&&ha.process,Kn=function(){try{var p=Be&&Be.require&&Be.require("util").types;return p||ou&&ou.binding&&ou.binding("util")}catch{}}(),ga=Kn&&Kn.isArrayBuffer,va=Kn&&Kn.isDate,da=Kn&&Kn.isMap,_a=Kn&&Kn.isRegExp,ma=Kn&&Kn.isSet,ya=Kn&&Kn.isTypedArray;function Dn(p,S,b){switch(b.length){case 0:return p.call(S);case 1:return p.call(S,b[0]);case 2:return p.call(S,b[0],b[1]);case 3:return p.call(S,b[0],b[1],b[2])}return p.apply(S,b)}function Dp(p,S,b,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function au(p,S,b){for(var $=-1,K=p==null?0:p.length;++$-1;);return b}function Ia(p,S){for(var b=p.length;b--&&ke(S,p[b],0)>-1;);return b}function Yp(p,S){for(var b=p.length,$=0;b--;)p[b]===S&&++$;return $}var Vp=hu(Cp),Qp=hu(Lp);function Xp(p){return"\\"+Mp[p]}function Jp(p,S){return p==null?i:p[S]}function nt(p){return Ip.test(p)}function jp(p){return Rp.test(p)}function kp(p){for(var S,b=[];!(S=p.next()).done;)b.push(S.value);return b}function du(p){var S=-1,b=Array(p.size);return p.forEach(function($,K){b[++S]=[K,$]}),b}function Ra(p,S){return function(b){return p(S(b))}}function Ie(p,S){for(var b=-1,$=p.length,K=0,nn=[];++b<$;){var mn=p[b];(mn===S||mn===x)&&(p[b]=x,nn[K++]=b)}return nn}function er(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=$}),b}function ng(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=[$,$]}),b}function eg(p,S,b){for(var $=b-1,K=p.length;++$-1}function Bg(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Ng,ce.prototype.delete=$g,ce.prototype.get=Dg,ce.prototype.has=Wg,ce.prototype.set=Bg;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&E,v=e&M,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!cn(n))return n;var T=Z(n);if(T){if(s=Hv(n),!c)return Ln(n,s)}else{var I=Tn(n),F=I==xn||I==Se;if(qe(n))return sl(n,c);if(I==Hn||I==le||F&&!u){if(s=v||F?{}:El(n),!c)return v?qv(n,tv(s,n)):Lv(n,Ba(s,n))}else{if(!on[I])return u?n:{};s=Kv(n,I,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),is(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):ts(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Gu:Uu:v?Mn:bn,V=T?i:z(n);return Zn(V||n,function(H,X){V&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function rv(n){var e=bn(n);return function(t){return Ua(t,n,e)}}function Ua(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ga(n,e,t){if(typeof n!="function")throw new Yn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=au,s=!1):e.length>=m&&(a=wt,s=!1,e=new ze(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:Y(r),r<0&&(r+=u),r=t>r?0:fs(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var Su=dl(),Ka=dl(!0);function ue(n,e){return n&&Su(n,e,bn)}function Au(n,e){return n&&Ka(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function Ke(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function fv(n,e){return n!=null&&tn.call(n,e)}function ov(n,e){return n!=null&&e in fn(n)}function av(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new ze(s&&T):i}T=n[0];var I=-1,F=c[0];n:for(;++I-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function tl(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):Mu(n,u)}}return n}function Cu(n,e){return n+hr(Na()*(e-n+1))}function xv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=b(a);a--;)s[r?a:++u]=n,n+=t;return s}function Lu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Qu(Ll(n,e,Fn),n+"")}function bv(n){return Wa(ct(n))}function Sv(n,e){var t=ct(n);return Er(t,He(e,0,t.length))}function Pt(n,e,t,r){if(!cn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=b(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:$v(n);if(O)return er(O);s=!1,u=wt,v=new ze}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var ll=gg||function(n){return Sn.clearTimeout(n)};function sl(n,e){if(e)return n.slice();var t=n.length,r=Ca?Ca(t):new n.constructor(t);return n.copy(r),r}function Du(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Rv(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Ev(n){var e=new n.constructor(n.source,Yo.exec(n));return e.lastIndex=n.lastIndex,e}function Pv(n){return Ot?fn(Ot.call(n)):{}}function cl(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function hl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function pl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=b(v+O),I=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function yl(n){return ve(function(e){var t=e.length,r=t,u=Vn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Yn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Vn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var I=-1,F=!0,B=t&D?new ze:i;for(a.set(n,e),a.set(e,n);++I1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Vh,`{ -/* [wrapped with `+e+`] */ -`)}function Yv(n){return Z(n)||Ve(n)||!!(Ma&&n&&n[Ma])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&up.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Bi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Hl(n,t)});function Kl(n){var e=o(n);return e.__chain__=!0,e}function i_(n,e){return e(n),n}function Pr(n,e){return e(n)}var u_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return bu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Vn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function f_(){return Kl(this)}function o_(){return new Vn(this.value(),this.__chain__)}function a_(){this.__values__===i&&(this.__values__=us(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function l_(){return this}function s_(n){for(var e,t=this;t instanceof vr;){var r=Dl(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function c_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Xu],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(Xu)}function h_(){return ol(this.__wrapped__,this.__actions__)}var p_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function g_(n,e,t){var r=Z(n)?wa:iv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function v_(n,e){var t=Z(n)?Oe:Ha;return t(n,G(e,3))}var d_=ml(Wl),__=ml(Bl);function m_(n,e){return An(Cr(n,e),1)}function y_(n,e){return An(Cr(n,e),Nn)}function w_(n,e,t){return t=t===i?1:Y(t),An(Cr(n,e),t)}function Zl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Yl(n,e){var t=Z(n)?Wp:za;return t(n,G(e,3))}var x_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function b_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?Y(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var S_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?b(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),A_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Xa;return t(n,G(e,3))}function O_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),nl(n,e,t))}var T_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function I_(n,e,t){var r=Z(n)?lu:Aa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function R_(n,e,t){var r=Z(n)?Bp:Aa,u=arguments.length<3;return r(n,G(e,4),t,u,za)}function E_(n,e){var t=Z(n)?Oe:Ha;return t(n,Mr(G(e,3)))}function P_(n){var e=Z(n)?Wa:bv;return e(n)}function C_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=Y(e);var r=Z(n)?kg:Sv;return r(n,e)}function L_(n){var e=Z(n)?nv:Ov;return e(n)}function q_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Ru(n).length}function M_(n,e,t){var r=Z(n)?su:Tv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var F_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),nl(n,An(e,1),[])}),Lr=vg||function(){return Sn.Date.now()};function N_(n,e){if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){if(--n<1)return e.apply(this,arguments)}}function Vl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Ql(n,e){var t;if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var ju=Q(function(n,e,t){var r=L;if(t.length){var u=Ie(t,lt(ju));r|=W}return ge(n,r,e,t,u)}),Xl=Q(function(n,e,t){var r=L|P;if(t.length){var u=Ie(t,lt(Xl));r|=W}return ge(e,r,n,t,u)});function Jl(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Jl.placeholder,r}function jl(n,e,t){e=t?i:e;var r=ge(n,R,i,i,i,i,i,e);return r.placeholder=jl.placeholder,r}function kl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,I=!1,F=!0;if(typeof n!="function")throw new Yn(g);e=jn(e)||0,cn(t)&&(T=!!t.leading,I="maxWait"in t,a=I?yn(jn(t.maxWait)||0,e):a,F="trailing"in t?!!t.trailing:F);function B(gn){var re=r,ye=u;return r=u=i,O=gn,s=n.apply(ye,re),s}function z(gn){return O=gn,c=qt(X,e),T?B(gn):s}function V(gn){var re=gn-v,ye=gn-O,ms=e-re;return I?On(ms,a-ye):ms}function H(gn){var re=gn-v,ye=gn-O;return v===i||re>=e||re<0||I&&ye>=a}function X(){var gn=Lr();if(H(gn))return k(gn);c=qt(X,V(gn))}function k(gn){return c=i,F&&r?B(gn):(r=u=i,s)}function Gn(){c!==i&&ll(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var gn=Lr(),re=H(gn);if(r=arguments,u=this,v=gn,re){if(c===i)return z(v);if(I)return ll(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var $_=Q(function(n,e){return Ga(n,1,e)}),D_=Q(function(n,e,t){return Ga(n,jn(e)||0,t)});function W_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Yn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Yn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function B_(n){return Ql(2,n)}var U_=Iv(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Ya(function(){return arguments}())?Ya:function(n){return hn(n)&&tn.call(n,"callee")&&!qa.call(n,"callee")},Z=b.isArray,t0=ga?Wn(ga):sv;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function pn(n){return hn(n)&&qn(n)}function r0(n){return n===!0||n===!1||hn(n)&&In(n)==se}var qe=_g||cf,i0=va?Wn(va):cv;function u0(n){return hn(n)&&n.nodeType===1&&!Mt(n)}function f0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Ru(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function o0(n,e){return Et(n,e)}function a0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function nf(n){if(!hn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function l0(n){return typeof n=="number"&&Fa(n)}function _e(n){if(!cn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Vt}function es(n){return typeof n=="number"&&n==Y(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hn(n){return n!=null&&typeof n=="object"}var ts=da?Wn(da):pv;function s0(n,e){return n===e||Iu(n,e,Hu(e))}function c0(n,e,t){return t=typeof t=="function"?t:i,Iu(n,e,Hu(e),t)}function h0(n){return rs(n)&&n!=+n}function p0(n){if(Xv(n))throw new K(d);return Va(n)}function g0(n){return n===null}function v0(n){return n==null}function rs(n){return typeof n=="number"||hn(n)&&In(n)==Cn}function Mt(n){if(!hn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==cg}var ef=_a?Wn(_a):gv;function d0(n){return es(n)&&n>=-wn&&n<=wn}var is=ma?Wn(ma):vv;function Nr(n){return typeof n=="string"||!Z(n)&&hn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||hn(n)&&In(n)==Qt}var st=ya?Wn(ya):dv;function _0(n){return n===i}function m0(n){return hn(n)&&Tn(n)==mt}function y0(n){return hn(n)&&In(n)==Fh}var w0=Tr(Eu),x0=Tr(function(n,e){return n<=e});function us(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return kp(n[xt]());var e=Tn(n),t=e==dn?du:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*We}return n===n?n:0}function Y(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function fs(n){return n?He(Y(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(cn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=cn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Oa(n);var t=tp.test(n);return t||ip.test(n)?Np(n.slice(2),t?2:8):ep.test(n)?ae:+n}function os(n){return fe(n,Mn(n))}function b0(n){return n?He(Y(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var S0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),as=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),A0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),O0=ve(bu);function T0(n,e){var t=ft(n);return e==null?t:Ba(t,e)}var I0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Gu(n),t),r&&(t=Qn(t,E|M|C,Dv));for(var u=e.length;u--;)Mu(t,e[u]);return t});function K0(n,e){return ss(n,Mr(G(e)))}var Z0=ve(function(n,e){return n==null?{}:yv(n,e)});function ss(n,e){if(n==null)return{};var t=sn(Gu(n),function(r){return[r]});return e=G(e),el(n,t,function(r,u){return e(r,u[0])})}function Y0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Na();return On(n+u*(e-n+Fp("1e-"+((u+"").length-1))),e)}return Cu(n,e)}var i1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?ps(e):e)});function ps(n){return uf(en(n).toLowerCase())}function gs(n){return n=en(n),n&&n.replace(fp,Vp).replace(Op,"")}function u1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:He(Y(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function f1(n){return n=en(n),n&&Bh.test(n)?n.replace(Ko,Qp):n}function o1(n){return n=en(n),n&&Zh.test(n)?n.replace(ki,"\\$&"):n}var a1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),l1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),s1=_l("toLowerCase");function c1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function h1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!ef(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var y1=at(function(n,e,t){return n+(t?" ":"")+uf(e)});function w1(n,e,t){return n=en(n),t=t==null?0:He(Y(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function x1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Al);var u=$r({},e.imports,r.imports,Al),a=bn(u),s=vu(u,a),c,v,O=0,T=e.interpolate||Xt,I="__p += '",F=_u((e.escape||Xt).source+"|"+T.source+"|"+(T===Zo?np:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pp+"]")+` -`;n.replace(F,function(H,X,k,Gn,En,zn){return k||(k=Gn),I+=n.slice(O,zn).replace(op,Xp),X&&(c=!0,I+=`' + -__e(`+X+`) + -'`),En&&(v=!0,I+=`'; -`+En+`; -__p += '`),k&&(I+=`' + -((__t = (`+k+`)) == null ? '' : __t) + -'`),O=zn+H.length,H}),I+=`'; -`;var z=tn.call(e,"variable")&&e.variable;if(!z)I=`with (obj) { -`+I+` -} -`;else if(jh.test(z))throw new K(y);I=(v?I.replace(Nh,""):I).replace($h,"$1").replace(Dh,"$1;"),I="function("+(z||"obj")+`) { -`+(z?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+I+`return __p -}`;var V=ds(function(){return nn(a,B+"return "+I).apply(i,s)});if(V.source=I,nf(V))throw V;return V}function b1(n){return en(n).toLowerCase()}function S1(n){return en(n).toUpperCase()}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return Oa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Ta(r,u),s=Ia(r,u)+1;return Le(r,a,s).join("")}function O1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ea(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ia(r,ne(e))+1;return Le(r,0,u).join("")}function T1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(nu,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ta(r,ne(e));return Le(r,u).join("")}function I1(n,e){var t=gt,r=Ht;if(cn(e)){var u="separator"in e?e.separator:u;t="length"in e?Y(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),ef(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=_u(u.source,en(Yo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var I=O.index;v=v.slice(0,I===i?c:I)}}else if(n.indexOf(Bn(u),c)!=c){var F=v.lastIndexOf(u);F>-1&&(v=v.slice(0,F))}return v+r}function R1(n){return n=en(n),n&&Wh.test(n)?n.replace(Ho,rg):n}var E1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),uf=_l("toUpperCase");function vs(n,e,t){return n=en(n),e=t?i:e,e===i?jp(n)?fg(n):zp(n):n.match(e)||[]}var ds=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return nf(t)?t:new K(t)}}),P1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,ju(n[t],n))}),n});function C1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Yn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=gu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=Y(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),I=function(X){var k=u.apply(o,Te([X],c));return r&&F?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var F=this.__chain__,B=!!this.__actions__.length,z=a&&!F,V=v&&!B;if(!a&&T){s=V?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[I],thisArg:i}),new Vn(H,F)}return z&&V?n.apply(this,c):(H=this.thru(I),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Rg,j.prototype.reverse=Eg,j.prototype.value=Pg,o.prototype.at=u_,o.prototype.chain=f_,o.prototype.commit=o_,o.prototype.next=a_,o.prototype.plant=s_,o.prototype.reverse=c_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=h_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=l_),o},tt=og();Be?((Be.exports=tt)._=tt,fu._=tt):Sn._=tt}).call(Qe)}(Ft,Ft.exports);var vn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var ws=function(){},xs=ws(),Me=function(f){return f!==xs&&f!==null},bs=Me,Ss=Array.prototype.forEach,As=Object.create,Os=function(f,l){var i;for(i in f)l[i]=f[i]},hf=function(f){var l=As(null);return Ss.call(arguments,function(i){bs(i)&&Os(Object(i),l)}),l},Ts=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,pf;function Is(){return pf||(pf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Rs=Ts()?Math.sign:Is(),Es=Rs,Ps=Math.abs,Cs=Math.floor,Ls=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Es(f)*Cs(Ps(f)))},qs=Ls,Ms=Math.max,Fe=function(f){return Ms(0,qs(f))},Fs=Fe,gf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:Fs(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Ns=Me,Xe=function(f){if(!Ns(f))throw new TypeError("Cannot use null or undefined");return f},$s=we,Ds=Xe,Ws=Function.prototype.bind,vf=Function.prototype.call,Bs=Object.keys,Us=Object.prototype.propertyIsEnumerable,Gs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ds(i)),$s(h),m=Bs(i),g&&m.sort(typeof g=="function"?Ws.call(g,i):void 0),typeof f!="function"&&(f=m[f]),vf.call(f,m,function(y,w){return Us.call(i,y)?vf.call(h,d,i[y],y,i,w):l})}},Nt=Gs("forEach"),Ne={},df={exports:{}},zs=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,_f;function Hs(){return _f||(_f=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,mf;function Ks(){if(mf)return Ur;mf=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,yf;function Zs(){return yf||(yf=1,Gr=Hs()()?Object.keys:Ks()),Gr}var zr,wf;function Ys(){if(wf)return zr;wf=1;var f=Zs(),l=Xe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(x){d||(d=x)}},g=1;g-1},Vr}var hc=sc()?String.prototype.contains:cc(),$t=Cf,qf=lc,Mf=xf,Ff=hf,ht=hc,pc=Pf.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?Mf(Ff(d),g):g};pc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?qf(l)?$t(i)?qf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?Mf(Ff(d),g):g};var $e=Pf.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,x={configurable:!0,enumerable:!1,writable:!0},E,M,C,N,D,L,P;E=function(q,A){var R;return h(A),_.call(this,"__ee__")?R=this.__ee__:(R=x.value=g(null),y(this,"__ee__",x),x.value=null),R[q]?typeof R[q]=="object"?R[q].push(A):R[q]=[R[q],A]:R[q]=A,this},M=function(q,A){var R,W;return h(A),W=this,E.call(this,q,R=function(){C.call(W,q,R),m.call(A,this,arguments)}),R.__eeOnceListener__=A,this},C=function(q,A){var R,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(R=this.__ee__,!R[q])return this;if(W=R[q],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?R[q]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete R[q];return this},N=function(q){var A,R,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[q],!!U))if(typeof U=="object"){for(R=arguments.length,J=new Array(R-1),A=1;A=55296&&R<=56319&&(rn+=M[++L])),rn=C?_.call(C,N,rn,P):rn,D?(x.value=rn,E(q,P,x)):q[P]=rn,++P;A=P}}if(A===void 0)for(A=h(M.length),D&&(q=new D(A)),L=0;L=0?x=g(x):x=l(this.length)-g(d(x)),w=x;w<_;++w)if(m.call(this,w)&&(E=this[w],f(E)))return w;return-1},xi}var Si,so;function nh(){if(so)return Si;so=1;var f=bi(),l=Object.create;return Si=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],x=_.length,E=[];if(x===0)delete y[x];else if(y=y[x]){for(;g"}},qi}var Mi,To;function ah(){if(To)return Mi;To=1;var f=oh(),l=/[\n\r\u2028\u2029]/g;return Mi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},Mi}var Gt={exports:{}},Io;function Ro(){if(Io)return Gt.exports;Io=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Eo;function lh(){if(Eo)return yo;Eo=1;var f=vo(),l=ih(),i=fh(),h=ah(),m=Ro(),d=Ri(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var x=g(null),E=g(null),M=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,N,D){var L=!1;if(!m(D)){E[C]=D,_.emit("setasync",C,1);return}x[C]=1,M[C]=D;var P=function(W){var U=x[C];if(L)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);U&&(delete x[C],E[C]=W,_.emit("setasync",C,U))},q=function(){L=!0,x[C]&&(delete x[C],delete M[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var R=function(){d(q)};D=D.then(function(W){d(P.bind(this,W))},R),typeof D.finally=="function"&&D.finally(R)}else if(A==="done"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");D.done(P,q)}else if(A==="done:finally"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof D.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");D.done(P),D.finally(q)}}),_.on("get",function(C,N,D){var L;if(x[C]){++x[C];return}L=M[C];var P=function(){_.emit("getasync",C,N,D)};m(L)?typeof L.done=="function"?L.done(P):L.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete M[C],x[C]){delete x[C];return}if(hasOwnProperty.call(E,C)){var N=E[C];delete E[C],_.emit("deleteasync",C,[N])}}),_.on("clear",function(){var C=E;E=g(null),x=g(null),M=g(null),_.emit("clearasync",f(C,function(N){return[N]}))})},yo}var Po={},Co;function sh(){if(Co)return Po;Co=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,x){y(x,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,x){y(x,_)})})},Po}var Lo={},Fi,qo;function ch(){return qo||(qo=1,Fi=2147483647),Fi}var Ni,Mo;function hh(){if(Mo)return Ni;Mo=1;var f=Fe,l=ch();return Ni=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Ni}var Fo;function ph(){if(Fo)return Lo;Fo=1;var f=pi(),l=Nt,i=Ri(),h=Ro(),m=hh(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(x,E,M){var C,N,D,L;x=m(x),x&&(C=_(null),N=M.async&&d.async||M.promise&&d.promise?"async":"",E.on("set"+N,function(P){C[P]=setTimeout(function(){E.delete(P)},x),typeof C[P].unref=="function"&&C[P].unref(),L&&(L[P]&&L[P]!=="nextTick"&&clearTimeout(L[P]),L[P]=setTimeout(function(){delete L[P]},D),typeof L[P].unref=="function"&&L[P].unref())}),E.on("delete"+N,function(P){clearTimeout(C[P]),delete C[P],L&&(L[P]!=="nextTick"&&clearTimeout(L[P]),delete L[P])}),M.preFetch&&(M.preFetch===!0||isNaN(M.preFetch)?D=.333:D=y(w(Number(M.preFetch),1),0),D&&(L={},D=(1-D)*x,E.on("get"+N,function(P,q,A){L[P]||(L[P]="nextTick",i(function(){var R;L[P]==="nextTick"&&(delete L[P],E.delete(P),M.async&&(q=f(q),q.push(g)),R=E.memoized.apply(A,q),M.promise&&h(R)&&(typeof R.done=="function"?R.done(g,g):R.then(g,g)))}))}))),E.on("clear"+N,function(){l(C,function(P){clearTimeout(P)}),C={},L&&(l(L,function(P){P!=="nextTick"&&clearTimeout(P)}),L={})}))},Lo}var No={},$i,$o;function gh(){if($o)return $i;$o=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return $i=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(x){var E=y[x],M=++w;if(g[M]=x,y[x]=M,!E)return++m,m<=h?void 0:(x=g[d],_(x),x);if(delete g[E],d===E)for(;!i.call(g,++d););},delete:_=function(x){var E=y[x];if(E&&(delete g[E],delete y[x],--m,d===E)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},$i}var Do;function vh(){if(Do)return No;Do=1;var f=Fe,l=gh(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},No}var Wo={},Bo;function dh(){if(Bo)return Wo;Bo=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,x){y[_]=x||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},Wo}var _h=hf,mh=gf,yh=Vc,wh=function(f){var l=_h(arguments[1]),i;return l.normalizer||(i=l.length=mh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Qc():i>1&&(l.normalizer=Xc()(i)):i===!1?l.normalizer=nh()():i===1?l.normalizer=eh()():l.normalizer=th()(i))),l.async&&rh(),l.promise&&lh(),l.dispose&&sh(),l.maxAge&&ph(),l.max&&vh(),l.refCounter&&dh(),yh(f,l)},xh=ys(wh),Uo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Qe,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,x=_===void 0?/^\\/:_,E=w.VARIABLE_START,M=E===void 0?/^\${\s*/:E,C=w.VARIABLE_END,N=C===void 0?/^\s*}/:C,D=w.PIPE_START,L=D===void 0?/^\s*\|\s*/:D,P=w.PIPE_PARAMETER_START,q=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,R=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Bi=Ht===void 0?null:Ht,Kt=U||function(Nn){return R.test(Nn)},vt=rn||g(R),Ui=gt||function(Nn){return R.test(Nn)},Gi=Bi||g(R);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function We(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return We(x),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function zi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Yt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Vt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!N.test(un)&&(We(N),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&zi(),xn=0,!0)}function se(){return!!L.test(un)&&(We(L),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!q.test(un)&&(We(q),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Vt=!1;un&&un.length>0;)switch(xn){case 0:if(x.test(un)){Se+=ae();continue}if(M.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",We(M);continue}Se+=un[0],wn();break;case 1:if(x.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(x.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(x.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Ui(un)){Ae+=Gi(un,wn);continue}Ae+=un[0],wn()}return Vt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var x=w.match(y);return _(x[0].length),x.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(x){return function(E){return x.hasOwnProperty(E)?x[E]:E.split(".").reduce(function(M,C){return M.hasOwnProperty(C)?M[C]:""},x)}}function g(x,E,M,C){C===void 0&&(C=d(E));var N=C(x.name);return x.pipes.reduce(function(D,L){return M.hasOwnProperty(L.name)?M[L.name](D,L.parameters):D},N??"")}function y(x,E,M,C){return C===void 0&&(C=d(E)),x.literals.length===0?"":x.literals.slice(1).reduce(function(N,D,L){return""+N+g(x.variables[L],E,M,C)+D},x.literals[0])}function w(x,E,M){return y(_.parseStringTemplate(x),E,M)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Uo);var Go=Uo.exports;const zo=f=>{const l=Function("$",` - const theme = $.__internal__?.context.theme; - const color = $.__internal__?.context.color; - const step = $.__internal__?.step; - const events = $.__internal__?.events; - const parent = $.__internal__?.parent; - return ${f}; - `);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},bh=/^\$\{\{\s*/,Sh=/^\s*\}\}/,Di=/\b\B/,Ah=Go.parseStringTemplateGenerator({VARIABLE_START:bh,VARIABLE_END:Sh,PIPE_START:Di,PIPE_PARAMETER_START:Di,QUOTED_STRING:Di}),Oh=xh(f=>{const l=Ah(f);return vn.join(l.literals,"")?i=>Go.evaluateParsedString(l,{},{},h=>zo(h)(i)):zo(l.variables[0].name)},{primitive:!0});function De(f){switch(f==null?void 0:f.constructor){case Array:{const l=vn.map(f,De);return i=>vn.map(l,h=>h(i))}case Object:{const l=vn.mapValues(f,De);return i=>vn.mapValues(l,h=>h(i))}case String:return Oh(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>vn.isFunction(l)?l:De(l))}function Th(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Wi(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Ih(f){const{$for:l,$if:i,...h}=f;if(l||i){const{$let:m="i",$from:d=0,$to:g=1,$step:y=1}=l??{},w=De(i),_=De(d),x=De(g),E=De(y);return(M={})=>!i||w(M)?vn.range(_(M),x(M),E(M)).map(C=>{const N=Wi(M,zt({[m]:C}));return Wi(N,zt(h))}):[]}else return(m={})=>[Wi(m,zt(h))]}function Rh(f,l){const i=d=>{const{$:g}=d,y=Ih(d);return g in l?w=>vn.flatMap(y(w),_=>vn.flatMap(h[g],x=>x(_))):w=>vn.map(y(w),_=>Object.setPrototypeOf(Dr(_,x=>x(_)),null))},h=vn.mapValues(l,d=>vn.map(d,i)),m=vn.flatMap(f,i);return d=>vn.flatMap(m,g=>g(d))}const Eh=f=>f==null,Ph=f=>f.clear?typeof f.clear=="string"?"special":"transient":"persistent";function Ch(f,l){return Object.setPrototypeOf(f,l),f}const Lh="#808080";function qh({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var _;const g=Rh(((_=f==null?void 0:f.views)==null?void 0:_[i])??[],(f==null?void 0:f.views)??{}),y=x=>E=>({component:E,meta:{source:"trace",step:h+x,info:E.$info}}),w=vn.chain(f==null?void 0:f.events).map((x,E)=>({step:E,id:x.id,data:x,pId:x.pId})).groupBy("id").value();return vn.chain(vn.range(h,m)).map(x=>{var N;const E=f.events[x],M=f.events,C=g(Th(Ch({alpha:1,fill:Lh,__internal__:{context:l,step:x,parent:Eh(E.pId)?void 0:M[((N=vn.findLast(w[E.pId],D=>D.step<=x))==null?void 0:N.step)??0],events:M}},E)));return{event:E,components:vn.groupBy(C,Ph)}}).map((x,E)=>({event:x.event,components:vn.mapValues(x.components,M=>M.map(y(E)))})).value()}onmessage=({data:f})=>{postMessage(qh(f))}})(); diff --git a/index.html b/index.html index 1d7690d..48e3a82 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - +